yy-vue-easytable 2.27.2
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/LICENSE +22 -0
- package/README.md +187 -0
- package/libs/font/demo.css +539 -0
- package/libs/font/demo_index.html +400 -0
- package/libs/font/iconfont.css +57 -0
- package/libs/font/iconfont.eot +0 -0
- package/libs/font/iconfont.js +1 -0
- package/libs/font/iconfont.json +79 -0
- package/libs/font/iconfont.svg +56 -0
- package/libs/font/iconfont.ttf +0 -0
- package/libs/font/iconfont.woff +0 -0
- package/libs/font/iconfont.woff2 +0 -0
- package/libs/locale/lang/af-ZA.js +48 -0
- package/libs/locale/lang/en-US.js +48 -0
- package/libs/locale/lang/fr-FR.js +48 -0
- package/libs/locale/lang/ko-KR.js +48 -0
- package/libs/locale/lang/pt-BR.js +48 -0
- package/libs/locale/lang/ru-RU.js +48 -0
- package/libs/locale/lang/zh-CN.js +48 -0
- package/libs/locale/lang/zh-TW.js +48 -0
- package/libs/locale/lang/zu-ZA.js +48 -0
- package/libs/main.js +1 -0
- package/libs/theme-dark/base.css +1 -0
- package/libs/theme-dark/index.css +1253 -0
- package/libs/theme-dark/var.css +7 -0
- package/libs/theme-dark/ve-checkbox.css +150 -0
- package/libs/theme-dark/ve-contextmenu.css +71 -0
- package/libs/theme-dark/ve-dropdown.css +177 -0
- package/libs/theme-dark/ve-icon.css +10 -0
- package/libs/theme-dark/ve-loading.css +218 -0
- package/libs/theme-dark/ve-pagination.css +136 -0
- package/libs/theme-dark/ve-radio.css +111 -0
- package/libs/theme-dark/ve-select.css +50 -0
- package/libs/theme-dark/ve-table.css +385 -0
- package/libs/theme-default/base.css +1 -0
- package/libs/theme-default/index.css +1253 -0
- package/libs/theme-default/var.css +7 -0
- package/libs/theme-default/ve-checkbox.css +150 -0
- package/libs/theme-default/ve-contextmenu.css +71 -0
- package/libs/theme-default/ve-dropdown.css +177 -0
- package/libs/theme-default/ve-icon.css +10 -0
- package/libs/theme-default/ve-loading.css +218 -0
- package/libs/theme-default/ve-pagination.css +136 -0
- package/libs/theme-default/ve-radio.css +111 -0
- package/libs/theme-default/ve-select.css +50 -0
- package/libs/theme-default/ve-table.css +385 -0
- package/libs/umd/index.js +9 -0
- package/libs/ve-checkbox-group.js +1 -0
- package/libs/ve-checkbox.js +1 -0
- package/libs/ve-contextmenu.js +1 -0
- package/libs/ve-dropdown.js +1 -0
- package/libs/ve-icon.js +1 -0
- package/libs/ve-loading.js +1 -0
- package/libs/ve-locale.js +1 -0
- package/libs/ve-pagination.js +1 -0
- package/libs/ve-radio.js +1 -0
- package/libs/ve-select.js +1 -0
- package/libs/ve-table.js +1 -0
- package/package.json +142 -0
- package/packages/font/demo.css +539 -0
- package/packages/font/demo_index.html +400 -0
- package/packages/font/iconfont.css +57 -0
- package/packages/font/iconfont.eot +0 -0
- package/packages/font/iconfont.js +1 -0
- package/packages/font/iconfont.json +79 -0
- package/packages/font/iconfont.svg +56 -0
- package/packages/font/iconfont.ttf +0 -0
- package/packages/font/iconfont.woff +0 -0
- package/packages/font/iconfont.woff2 +0 -0
- package/packages/index.js +75 -0
- package/packages/src/comps/resize-observer/index.js +2 -0
- package/packages/src/comps/resize-observer/src/index.jsx +38 -0
- package/packages/src/directives/clickoutside.js +31 -0
- package/packages/src/directives/events-outside.js +79 -0
- package/packages/src/directives/focus.js +28 -0
- package/packages/src/locale/index.js +27 -0
- package/packages/src/locale/lang/af-ZA.js +29 -0
- package/packages/src/locale/lang/en-US.js +30 -0
- package/packages/src/locale/lang/fr-FR.js +29 -0
- package/packages/src/locale/lang/ko-KR.js +29 -0
- package/packages/src/locale/lang/pt-BR.js +29 -0
- package/packages/src/locale/lang/ru-RU.js +29 -0
- package/packages/src/locale/lang/zh-CN.js +30 -0
- package/packages/src/locale/lang/zh-TW.js +29 -0
- package/packages/src/locale/lang/zu-ZA.js +29 -0
- package/packages/src/mixins/emitter.js +39 -0
- package/packages/src/utils/animation-frame.js +39 -0
- package/packages/src/utils/auto-resize.js +179 -0
- package/packages/src/utils/constant.js +42 -0
- package/packages/src/utils/dom.js +239 -0
- package/packages/src/utils/event-key-codes.js +53 -0
- package/packages/src/utils/hooks-manager.js +76 -0
- package/packages/src/utils/index.js +161 -0
- package/packages/src/utils/mouse-event.js +24 -0
- package/packages/src/utils/random.js +6 -0
- package/packages/src/utils/request-animation-timeout.js +36 -0
- package/packages/src/utils/resize-event.js +40 -0
- package/packages/src/utils/scroll-bar.js +27 -0
- package/packages/style/ve-checkbox.less +179 -0
- package/packages/style/ve-contextmenu.less +76 -0
- package/packages/style/ve-dropdown.less +204 -0
- package/packages/style/ve-icon.less +3 -0
- package/packages/style/ve-loading.less +242 -0
- package/packages/style/ve-pagination.less +153 -0
- package/packages/style/ve-radio.less +126 -0
- package/packages/style/ve-select.less +48 -0
- package/packages/style/ve-table.less +539 -0
- package/packages/theme-dark/base.less +1 -0
- package/packages/theme-dark/index.less +12 -0
- package/packages/theme-dark/var.less +111 -0
- package/packages/theme-dark/ve-checkbox.less +2 -0
- package/packages/theme-dark/ve-contextmenu.less +2 -0
- package/packages/theme-dark/ve-dropdown.less +2 -0
- package/packages/theme-dark/ve-icon.less +2 -0
- package/packages/theme-dark/ve-loading.less +2 -0
- package/packages/theme-dark/ve-pagination.less +2 -0
- package/packages/theme-dark/ve-radio.less +2 -0
- package/packages/theme-dark/ve-select.less +2 -0
- package/packages/theme-dark/ve-table.less +2 -0
- package/packages/theme-default/base.less +1 -0
- package/packages/theme-default/index.less +12 -0
- package/packages/theme-default/var.less +111 -0
- package/packages/theme-default/ve-checkbox.less +2 -0
- package/packages/theme-default/ve-contextmenu.less +2 -0
- package/packages/theme-default/ve-dropdown.less +2 -0
- package/packages/theme-default/ve-icon.less +2 -0
- package/packages/theme-default/ve-loading.less +2 -0
- package/packages/theme-default/ve-pagination.less +2 -0
- package/packages/theme-default/ve-radio.less +2 -0
- package/packages/theme-default/ve-select.less +2 -0
- package/packages/theme-default/ve-table.less +2 -0
- package/packages/ve-checkbox/index.js +7 -0
- package/packages/ve-checkbox/src/index.jsx +175 -0
- package/packages/ve-checkbox/src/util/constant.js +14 -0
- package/packages/ve-checkbox/src/util/index.js +10 -0
- package/packages/ve-checkbox-group/index.js +7 -0
- package/packages/ve-checkbox-group/src/index.jsx +53 -0
- package/packages/ve-checkbox-group/src/util/constant.js +14 -0
- package/packages/ve-checkbox-group/src/util/index.js +10 -0
- package/packages/ve-contextmenu/index.js +7 -0
- package/packages/ve-contextmenu/src/index.jsx +731 -0
- package/packages/ve-contextmenu/src/util/constant.js +29 -0
- package/packages/ve-contextmenu/src/util/index.js +10 -0
- package/packages/ve-dropdown/index.js +7 -0
- package/packages/ve-dropdown/src/index.jsx +720 -0
- package/packages/ve-dropdown/src/util/constant.js +15 -0
- package/packages/ve-dropdown/src/util/index.js +10 -0
- package/packages/ve-icon/index.js +7 -0
- package/packages/ve-icon/src/index.jsx +52 -0
- package/packages/ve-icon/src/util/constant.js +10 -0
- package/packages/ve-icon/src/util/index.js +10 -0
- package/packages/ve-loading/index.js +8 -0
- package/packages/ve-loading/src/bounce.jsx +50 -0
- package/packages/ve-loading/src/flow.jsx +51 -0
- package/packages/ve-loading/src/grid.jsx +57 -0
- package/packages/ve-loading/src/index.js +106 -0
- package/packages/ve-loading/src/loading.jsx +63 -0
- package/packages/ve-loading/src/plane.jsx +38 -0
- package/packages/ve-loading/src/pulse.jsx +38 -0
- package/packages/ve-loading/src/util/constant.js +31 -0
- package/packages/ve-loading/src/util/index.js +10 -0
- package/packages/ve-loading/src/wave.jsx +53 -0
- package/packages/ve-locale/index.js +28 -0
- package/packages/ve-pagination/index.js +7 -0
- package/packages/ve-pagination/src/index.jsx +304 -0
- package/packages/ve-pagination/src/pager.jsx +166 -0
- package/packages/ve-pagination/src/util/constant.js +16 -0
- package/packages/ve-pagination/src/util/index.js +10 -0
- package/packages/ve-radio/index.js +7 -0
- package/packages/ve-radio/src/index.jsx +121 -0
- package/packages/ve-radio/src/util/constant.js +13 -0
- package/packages/ve-radio/src/util/index.js +10 -0
- package/packages/ve-select/index.js +7 -0
- package/packages/ve-select/src/index.jsx +193 -0
- package/packages/ve-select/src/util/constant.js +13 -0
- package/packages/ve-select/src/util/index.js +10 -0
- package/packages/ve-table/index.js +7 -0
- package/packages/ve-table/src/body/body-checkbox-content.jsx +126 -0
- package/packages/ve-table/src/body/body-radio-content.jsx +113 -0
- package/packages/ve-table/src/body/body-td.jsx +671 -0
- package/packages/ve-table/src/body/body-tr-scrolling.jsx +38 -0
- package/packages/ve-table/src/body/body-tr.jsx +383 -0
- package/packages/ve-table/src/body/expand-tr-icon.jsx +80 -0
- package/packages/ve-table/src/body/expand-tr.jsx +147 -0
- package/packages/ve-table/src/body/index.jsx +943 -0
- package/packages/ve-table/src/colgroup/index.jsx +48 -0
- package/packages/ve-table/src/column-resizer/index.jsx +318 -0
- package/packages/ve-table/src/editor/constant.js +5 -0
- package/packages/ve-table/src/editor/index.jsx +533 -0
- package/packages/ve-table/src/footer/footer-td.jsx +396 -0
- package/packages/ve-table/src/footer/footer-tr.jsx +249 -0
- package/packages/ve-table/src/footer/index.jsx +108 -0
- package/packages/ve-table/src/header/header-checkbox-content.jsx +69 -0
- package/packages/ve-table/src/header/header-filter-content.jsx +100 -0
- package/packages/ve-table/src/header/header-filter-custom-content.jsx +110 -0
- package/packages/ve-table/src/header/header-th.jsx +664 -0
- package/packages/ve-table/src/header/header-tr.jsx +255 -0
- package/packages/ve-table/src/header/index.jsx +195 -0
- package/packages/ve-table/src/index.jsx +4196 -0
- package/packages/ve-table/src/selection/constant.js +5 -0
- package/packages/ve-table/src/selection/index.jsx +1643 -0
- package/packages/ve-table/src/util/clipboard.js +428 -0
- package/packages/ve-table/src/util/constant.js +269 -0
- package/packages/ve-table/src/util/index.js +1585 -0
- package/packages/ve-table/src/util/store.js +14 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("VETable",["vue"],t):"object"==typeof exports?exports.VETable=t(require("vue")):e.VETable=t(e.Vue)}("undefined"!=typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=186)}([function(e,t,n){"use strict";var r=n(5),o=n(48).f,i=n(54),l=n(31),u=n(115),a=n(146),c=n(99);e.exports=function(e,t){var n,s,f,d,h,p=e.target,y=e.global,v=e.stat;if(n=y?r:v?r[p]||u(p,{}):r[p]&&r[p].prototype)for(s in t){if(d=t[s],f=e.dontCallGetSet?(h=o(n,s))&&h.value:n[s],!c(y?s:p+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;a(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),l(n,s,d,e)}}},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(112),o=n(31),i=n(188);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(0),o=n(26),i=n(19),l=n(5),u=n(120),a=n(4),c=n(99),s=n(20),f=n(156),d=n(53),h=n(76),p=n(143),y=n(1),v=n(80).f,m=n(48).f,g=n(32).f,b=n(204),w=n(157).trim,C=l.Number,x=u.Number,S=C.prototype,R=l.TypeError,O=a("".slice),_=a("".charCodeAt),K=function(e){var t=p(e,"number");return"bigint"==typeof t?t:I(t)},I=function(e){var t,n,r,o,i,l,u,a,c=p(e,"number");if(h(c))throw new R("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=_(c,0))||45===t){if(88===(n=_(c,2))||120===n)return NaN}else if(48===t){switch(_(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(l=(i=O(c,2)).length,u=0;u<l;u++)if((a=_(i,u))<48||a>o)return NaN;return parseInt(i,r)}return+c},E=c("Number",!C(" 0o1")||!C("0b1")||C("+0x1")),k=function(e){return d(S,e)&&y((function(){b(e)}))},T=function(e){var t=arguments.length<1?0:C(K(e));return k(this)?f(Object(t),this,T):t};T.prototype=S,E&&!o&&(S.constructor=T),r({global:!0,constructor:!0,wrap:!0,forced:E},{Number:T});var D=function(e,t){for(var n,r=i?v(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)s(t,n=r[o])&&!s(e,n)&&g(e,n,m(t,n))};o&&x&&D(u.Number,x),(E||o)&&D(u.Number,C)},function(e,t,n){"use strict";var r=n(91),o=Function.prototype,i=o.call,l=r&&o.bind.bind(i,i);e.exports=r?l:function(e){return function(){return i.apply(e,arguments)}}},function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n(113))},function(e,t,n){"use strict";var r=n(91),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){"use strict";n(205)},function(e,t,n){"use strict";var r=n(5),o=n(62),i=n(20),l=n(73),u=n(64),a=n(140),c=r.Symbol,s=o("wks"),f=a?c.for||c:c&&c.withoutSetter||l;e.exports=function(e){return i(s,e)||(s[e]=u&&i(c,e)?c[e]:f("Symbol."+e)),s[e]}},function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(34),o=n(84),i=n(85),l=n(41),u=n(32).f,a=n(124),c=n(105),s=n(26),f=n(19),d=l.set,h=l.getterFor("Array Iterator");e.exports=a(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&f&&"values"!==p.name)try{u(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(21),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},function(e,t,n){"use strict";n(189),n(192),n(193),n(123),n(197)},function(e,t,n){"use strict";var r=n(0),o=n(19),i=n(5),l=n(4),u=n(20),a=n(9),c=n(53),s=n(24),f=n(67),d=n(146),h=i.Symbol,p=h&&h.prototype;if(o&&a(h)&&(!("description"in p)||void 0!==h().description)){var y={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(y[t]=!0),t};d(v,h),v.prototype=p,p.constructor=v;var m="Symbol(description detection)"===String(h("description detection")),g=l(p.valueOf),b=l(p.toString),w=/^Symbol\((.*)\)[^)]+$/,C=l("".replace),x=l("".slice);f(p,"description",{configurable:!0,get:function(){var e=g(this);if(u(y,e))return"";var t=b(e),n=m?x(t,7,-1):C(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(e,t,n){"use strict";n(119)("iterator")},function(e,t,n){"use strict";var r=n(159).charAt,o=n(24),i=n(41),l=n(124),u=n(105),a=i.set,c=i.getterFor("String Iterator");l(String,"String",(function(e){a(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?u(void 0,!0):(e=r(n,o),t.index+=e.length,u(e,!1))}))},function(e,t,n){"use strict";var r=n(5),o=n(160),i=n(161),l=n(10),u=n(54),a=n(68),c=n(8)("iterator"),s=l.values,f=function(e,t){if(e){if(e[c]!==s)try{u(e,c,s)}catch(t){e[c]=s}if(a(e,t,!0),o[t])for(var n in l)if(e[n]!==l[n])try{u(e,n,l[n])}catch(t){e[n]=l[n]}}};for(var d in o)f(r[d]&&r[d].prototype,d);f(i,"DOMTokenList")},function(e,t,n){"use strict";var r=n(119),o=n(154);r("toPrimitive"),o()},function(e,t,n){"use strict";var r=n(20),o=n(31),i=n(203),l=n(8)("toPrimitive"),u=Date.prototype;r(u,l)||o(u,l,i)},function(e,t,n){"use strict";var r=n(1);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(4),o=n(33),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){(function(e,r){var o;
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Lodash <https://lodash.com/>
|
|
5
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
6
|
+
* Released under MIT license <https://lodash.com/license>
|
|
7
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
8
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
9
|
+
*/(function(){var i="Expected a function",l="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",c="[object Array]",s="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",y="[object Map]",v="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",C="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",R="[object DataView]",O="[object Float32Array]",_="[object Float64Array]",K="[object Int8Array]",I="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",T="[object Uint16Array]",D="[object Uint32Array]",j=/\b__p \+= '';/g,A=/\b(__p \+=) '' \+/g,P=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,M=RegExp(B.source),F=RegExp(N.source),L=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,U=RegExp(q.source),G=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,le=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",ye="["+he+"]",ve="["+de+"]",me="\\d+",ge="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",_e="(?:"+be+"|"+we+")",Ke="(?:"+Oe+"|"+we+")",Ie="(?:"+ve+"|"+Ce+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Ie+("(?:\\u200d(?:"+[xe,Se,Re].join("|")+")[\\ufe0e\\ufe0f]?"+Ie+")*"),ke="(?:"+[ge,Se,Re].join("|")+")"+Ee,Te="(?:"+[xe+ve+"?",ve,Se,Re,pe].join("|")+")",De=RegExp("['’]","g"),je=RegExp(ve,"g"),Ae=RegExp(Ce+"(?="+Ce+")|"+Te+Ee,"g"),Pe=RegExp([Oe+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ye,Oe,"$"].join("|")+")",Ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ye,Oe+_e,"$"].join("|")+")",Oe+"?"+_e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,ke].join("|"),"g"),Be=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Me=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Le={};Le[O]=Le[_]=Le[K]=Le[I]=Le[E]=Le[k]=Le["[object Uint8ClampedArray]"]=Le[T]=Le[D]=!0,Le[a]=Le[c]=Le[S]=Le[s]=Le[R]=Le[f]=Le[d]=Le[h]=Le[y]=Le[v]=Le[m]=Le[g]=Le[b]=Le[w]=Le[x]=!1;var Ve={};Ve[a]=Ve[c]=Ve[S]=Ve[R]=Ve[s]=Ve[f]=Ve[O]=Ve[_]=Ve[K]=Ve[I]=Ve[E]=Ve[y]=Ve[v]=Ve[m]=Ve[g]=Ve[b]=Ve[w]=Ve[C]=Ve[k]=Ve["[object Uint8ClampedArray]"]=Ve[T]=Ve[D]=!0,Ve[d]=Ve[h]=Ve[x]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},We=parseFloat,ze=parseInt,$e="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ue=$e||qe||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=Ye&&Ye.exports===Ge,Je=Xe&&$e.process,Ze=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,ot=Ze&&Ze.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function lt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var l=e[o];t(r,l,n(l),e)}return r}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function at(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[o++]=l)}return i}function ft(e,t){return!!(null==e?0:e.length)&&Ct(e,t,0)>-1}function dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function yt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function vt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gt=Ot("length");function bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function wt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ct(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,St,n)}function xt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function St(e){return e!=e}function Rt(e,t){var n=null==e?0:e.length;return n?It(e,t)/n:NaN}function Ot(e){return function(t){return null==t?void 0:t[e]}}function _t(e){return function(t){return null==e?void 0:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function It(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Et(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function kt(e){return e?e.slice(0,Gt(e)+1).replace(G,""):e}function Tt(e){return function(t){return e(t)}}function Dt(e,t){return ht(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function At(e,t){for(var n=-1,r=e.length;++n<r&&Ct(t,e[n],0)>-1;);return n}function Pt(e,t){for(var n=e.length;n--&&Ct(t,e[n],0)>-1;);return n}function Bt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Nt=_t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mt=_t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+He[e]}function Lt(e){return Be.test(e)}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var u=e[n];u!==t&&u!==l||(e[n]=l,i[o++]=n)}return i}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function $t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Lt(e)?function(e){var t=Ae.lastIndex=0;for(;Ae.test(e);)++t;return t}(e):gt(e)}function Ut(e){return Lt(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.split("")}(e)}function Gt(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var Yt=_t({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xt=function e(t){var n,r=(t=null==t?Ue:Xt.defaults(Ue.Object(),t,Xt.pick(Ue,Me))).Array,o=t.Date,Y=t.Error,de=t.Function,he=t.Math,pe=t.Object,ye=t.RegExp,ve=t.String,me=t.TypeError,ge=r.prototype,be=de.prototype,we=pe.prototype,Ce=t["__core-js_shared__"],xe=be.toString,Se=we.hasOwnProperty,Re=0,Oe=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",_e=we.toString,Ke=xe.call(pe),Ie=Ue._,Ee=ye("^"+xe.call(Se).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=Xe?t.Buffer:void 0,Te=t.Symbol,Ae=t.Uint8Array,Be=ke?ke.allocUnsafe:void 0,He=Ht(pe.getPrototypeOf,pe),$e=pe.create,qe=we.propertyIsEnumerable,Ge=ge.splice,Ye=Te?Te.isConcatSpreadable:void 0,Je=Te?Te.iterator:void 0,Ze=Te?Te.toStringTag:void 0,gt=function(){try{var e=ti(pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),_t=t.clearTimeout!==Ue.clearTimeout&&t.clearTimeout,Jt=o&&o.now!==Ue.Date.now&&o.now,Zt=t.setTimeout!==Ue.setTimeout&&t.setTimeout,Qt=he.ceil,en=he.floor,tn=pe.getOwnPropertySymbols,nn=ke?ke.isBuffer:void 0,rn=t.isFinite,on=ge.join,ln=Ht(pe.keys,pe),un=he.max,an=he.min,cn=o.now,sn=t.parseInt,fn=he.random,dn=ge.reverse,hn=ti(t,"DataView"),pn=ti(t,"Map"),yn=ti(t,"Promise"),vn=ti(t,"Set"),mn=ti(t,"WeakMap"),gn=ti(pe,"create"),bn=mn&&new mn,wn={},Cn=Ii(hn),xn=Ii(pn),Sn=Ii(yn),Rn=Ii(vn),On=Ii(mn),_n=Te?Te.prototype:void 0,Kn=_n?_n.valueOf:void 0,In=_n?_n.toString:void 0;function En(e){if($l(e)&&!Al(e)&&!(e instanceof jn)){if(e instanceof Dn)return e;if(Se.call(e,"__wrapped__"))return Ei(e)}return new Dn(e)}var kn=function(){function e(){}return function(t){if(!zl(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Tn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Bn;++t<n;)this.add(e[t])}function Mn(e){var t=this.__data__=new Pn(e);this.size=t.size}function Fn(e,t){var n=Al(e),r=!n&&jl(e),o=!n&&!r&&Ml(e),i=!n&&!r&&!o&&Ql(e),l=n||r||o||i,u=l?Et(e.length,ve):[],a=u.length;for(var c in e)!t&&!Se.call(e,c)||l&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ai(c,a))||u.push(c);return u}function Ln(e){var t=e.length;return t?e[Nr(0,t-1)]:void 0}function Vn(e,t){return Oi(bo(e),Xn(t,0,e.length))}function Hn(e){return Oi(bo(e))}function Wn(e,t,n){(void 0!==n&&!kl(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function zn(e,t,n){var r=e[t];Se.call(e,t)&&kl(r,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function $n(e,t){for(var n=e.length;n--;)if(kl(e[n][0],t))return n;return-1}function qn(e,t,n,r){return tr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Un(e,t){return e&&wo(t,Cu(t),e)}function Gn(e,t,n){"__proto__"==t&>?gt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,o=t.length,i=r(o),l=null==e;++n<o;)i[n]=l?void 0:vu(e,t[n]);return i}function Xn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Jn(e,t,n,r,o,i){var l,u=1&t,c=2&t,d=4&t;if(n&&(l=o?n(e,r,o,i):n(e)),void 0!==l)return l;if(!zl(e))return e;var x=Al(e);if(x){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return bo(e,l)}else{var j=oi(e),A=j==h||j==p;if(Ml(e))return ho(e,u);if(j==m||j==a||A&&!o){if(l=c||A?{}:li(e),!u)return c?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,xu(t),e)}(l,e)):function(e,t){return wo(e,ni(e),t)}(e,Un(l,e))}else{if(!Ve[j])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case S:return po(e);case s:case f:return new r(+e);case R:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case _:case K:case I:case E:case k:case"[object Uint8ClampedArray]":case T:case D:return yo(e,n);case y:return new r;case v:case w:return new r(e);case g:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case C:return o=e,Kn?pe(Kn.call(o)):{}}var o}(e,j,u)}}i||(i=new Mn);var P=i.get(e);if(P)return P;i.set(e,l),Xl(e)?e.forEach((function(r){l.add(Jn(r,t,n,r,e,i))})):ql(e)&&e.forEach((function(r,o){l.set(o,Jn(r,t,n,o,e,i))}));var B=x?void 0:(d?c?Go:Uo:c?xu:Cu)(e);return ut(B||e,(function(r,o){B&&(r=e[o=r]),zn(l,o,Jn(r,t,n,o,e,i))})),l}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var o=n[r],i=t[o],l=e[o];if(void 0===l&&!(o in e)||!i(l))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new me(i);return Ci((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=ft,l=!0,u=e.length,a=[],c=t.length;if(!u)return a;n&&(t=ht(t,Tt(n))),r?(i=dt,l=!1):t.length>=200&&(i=jt,l=!1,t=new Nn(t));e:for(;++o<u;){var s=e[o],f=null==n?s:n(s);if(s=r||0!==s?s:0,l&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;a.push(s)}else i(t,f,r)||a.push(s)}return a}En.templateSettings={escape:L,evaluate:V,interpolate:H,variable:"",imports:{_:En}},En.prototype=Tn.prototype,En.prototype.constructor=En,Dn.prototype=kn(Tn.prototype),Dn.prototype.constructor=Dn,jn.prototype=kn(Tn.prototype),jn.prototype.constructor=jn,An.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},An.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},An.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},An.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Se.call(t,e)},An.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},Pn.prototype.clear=function(){this.__data__=[],this.size=0},Pn.prototype.delete=function(e){var t=this.__data__,n=$n(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Pn.prototype.get=function(e){var t=this.__data__,n=$n(t,e);return n<0?void 0:t[n][1]},Pn.prototype.has=function(e){return $n(this.__data__,e)>-1},Pn.prototype.set=function(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Bn.prototype.clear=function(){this.size=0,this.__data__={hash:new An,map:new(pn||Pn),string:new An}},Bn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Bn.prototype.get=function(e){return Qo(this,e).get(e)},Bn.prototype.has=function(e){return Qo(this,e).has(e)},Bn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.clear=function(){this.__data__=new Pn,this.size=0},Mn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mn.prototype.get=function(e){return this.__data__.get(e)},Mn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bn(r)}return n.set(e,t),this.size=n.size,this};var tr=So(cr),nr=So(sr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],l=t(i);if(null!=l&&(void 0===u?l==l&&!Zl(l):n(l,u)))var u=l,a=i}return a}function ir(e,t){var n=[];return tr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function lr(e,t,n,r,o){var i=-1,l=e.length;for(n||(n=ui),o||(o=[]);++i<l;){var u=e[i];t>0&&n(u)?t>1?lr(u,t-1,n,r,o):pt(o,u):r||(o[o.length]=u)}return o}var ur=Ro(),ar=Ro(!0);function cr(e,t){return e&&ur(e,t,Cu)}function sr(e,t){return e&&ar(e,t,Cu)}function fr(e,t){return st(t,(function(t){return Vl(e[t])}))}function dr(e,t){for(var n=0,r=(t=ao(t,e)).length;null!=e&&n<r;)e=e[Ki(t[n++])];return n&&n==r?e:void 0}function hr(e,t,n){var r=t(e);return Al(e)?r:pt(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in pe(e)?function(e){var t=Se.call(e,Ze),n=e[Ze];try{e[Ze]=void 0;var r=!0}catch(e){}var o=_e.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return o}(e):function(e){return _e.call(e)}(e)}function yr(e,t){return e>t}function vr(e,t){return null!=e&&Se.call(e,t)}function mr(e,t){return null!=e&&t in pe(e)}function gr(e,t,n){for(var o=n?dt:ft,i=e[0].length,l=e.length,u=l,a=r(l),c=1/0,s=[];u--;){var f=e[u];u&&t&&(f=ht(f,Tt(t))),c=an(f.length,c),a[u]=!n&&(t||i>=120&&f.length>=120)?new Nn(u&&f):void 0}f=e[0];var d=-1,h=a[0];e:for(;++d<i&&s.length<c;){var p=f[d],y=t?t(p):p;if(p=n||0!==p?p:0,!(h?jt(h,y):o(s,y,n))){for(u=l;--u;){var v=a[u];if(!(v?jt(v,y):o(e[u],y,n)))continue e}h&&h.push(y),s.push(p)}}return s}function br(e,t,n){var r=null==(e=mi(e,t=ao(t,e)))?e:e[Ki(Li(t))];return null==r?void 0:it(r,e,n)}function wr(e){return $l(e)&&pr(e)==a}function Cr(e,t,n,r,o){return e===t||(null==e||null==t||!$l(e)&&!$l(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var l=Al(e),u=Al(t),h=l?c:oi(e),p=u?c:oi(t),x=(h=h==a?m:h)==m,O=(p=p==a?m:p)==m,_=h==p;if(_&&Ml(e)){if(!Ml(t))return!1;l=!0,x=!1}if(_&&!x)return i||(i=new Mn),l||Ql(e)?$o(e,t,n,r,o,i):function(e,t,n,r,o,i,l){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!i(new Ae(e),new Ae(t)));case s:case f:case v:return kl(+e,+t);case d:return e.name==t.name&&e.message==t.message;case g:case w:return e==t+"";case y:var u=Vt;case b:var a=1&r;if(u||(u=zt),e.size!=t.size&&!a)return!1;var c=l.get(e);if(c)return c==t;r|=2,l.set(e,t);var h=$o(u(e),u(t),r,o,i,l);return l.delete(e),h;case C:if(Kn)return Kn.call(e)==Kn.call(t)}return!1}(e,t,h,n,r,o,i);if(!(1&n)){var K=x&&Se.call(e,"__wrapped__"),I=O&&Se.call(t,"__wrapped__");if(K||I){var E=K?e.value():e,k=I?t.value():t;return i||(i=new Mn),o(E,k,n,r,i)}}if(!_)return!1;return i||(i=new Mn),function(e,t,n,r,o,i){var l=1&n,u=Uo(e),a=u.length,c=Uo(t).length;if(a!=c&&!l)return!1;var s=a;for(;s--;){var f=u[s];if(!(l?f in t:Se.call(t,f)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);var y=l;for(;++s<a;){f=u[s];var v=e[f],m=t[f];if(r)var g=l?r(m,v,f,t,e,i):r(v,m,f,e,t,i);if(!(void 0===g?v===m||o(v,m,n,r,i):g)){p=!1;break}y||(y="constructor"==f)}if(p&&!y){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i)}(e,t,n,r,Cr,o))}function xr(e,t,n,r){var o=n.length,i=o,l=!r;if(null==e)return!i;for(e=pe(e);o--;){var u=n[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var a=(u=n[o])[0],c=e[a],s=u[1];if(l&&u[2]){if(void 0===c&&!(a in e))return!1}else{var f=new Mn;if(r)var d=r(c,s,a,e,t,f);if(!(void 0===d?Cr(s,c,3,r,f):d))return!1}}return!0}function Sr(e){return!(!zl(e)||(t=e,Oe&&Oe in t))&&(Vl(e)?Ee:le).test(Ii(e));var t}function Rr(e){return"function"==typeof e?e:null==e?Uu:"object"==typeof e?Al(e)?kr(e[0],e[1]):Er(e):na(e)}function Or(e){if(!hi(e))return ln(e);var t=[];for(var n in pe(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function _r(e){if(!zl(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=hi(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Kr(e,t){return e<t}function Ir(e,t){var n=-1,o=Bl(e)?r(e.length):[];return tr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Er(e){var t=ei(e);return 1==t.length&&t[0][2]?yi(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}}function kr(e,t){return si(e)&&pi(t)?yi(Ki(e),t):function(n){var r=vu(n,e);return void 0===r&&r===t?mu(n,e):Cr(t,r,3)}}function Tr(e,t,n,r,o){e!==t&&ur(t,(function(i,l){if(o||(o=new Mn),zl(i))!function(e,t,n,r,o,i,l){var u=bi(e,n),a=bi(t,n),c=l.get(a);if(c)return void Wn(e,n,c);var s=i?i(u,a,n+"",e,t,l):void 0,f=void 0===s;if(f){var d=Al(a),h=!d&&Ml(a),p=!d&&!h&&Ql(a);s=a,d||h||p?Al(u)?s=u:Nl(u)?s=bo(u):h?(f=!1,s=ho(a,!0)):p?(f=!1,s=yo(a,!0)):s=[]:Gl(a)||jl(a)?(s=u,jl(u)?s=uu(u):zl(u)&&!Vl(u)||(s=li(a))):f=!1}f&&(l.set(a,s),o(s,a,r,i,l),l.delete(a));Wn(e,n,s)}(e,t,l,n,Tr,r,o);else{var u=r?r(bi(e,l),i,l+"",e,t,o):void 0;void 0===u&&(u=i),Wn(e,l,u)}}),xu)}function Dr(e,t){var n=e.length;if(n)return ai(t+=t<0?n:0,n)?e[t]:void 0}function jr(e,t,n){t=t.length?ht(t,(function(e){return Al(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Uu];var r=-1;return t=ht(t,Tt(Zo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ir(e,(function(e,n,o){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,l=o.length,u=n.length;for(;++r<l;){var a=vo(o[r],i[r]);if(a){if(r>=u)return a;var c=n[r];return a*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ar(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var l=t[r],u=dr(e,l);n(u,l)&&Hr(i,ao(l,e),u)}return i}function Pr(e,t,n,r){var o=r?xt:Ct,i=-1,l=t.length,u=e;for(e===t&&(t=bo(t)),n&&(u=ht(e,Tt(n)));++i<l;)for(var a=0,c=t[i],s=n?n(c):c;(a=o(u,s,a,r))>-1;)u!==e&&Ge.call(u,a,1),Ge.call(e,a,1);return e}function Br(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ai(o)?Ge.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function Mr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return xi(vi(e,t,Uu),e+"")}function Lr(e){return Ln(ku(e))}function Vr(e,t){var n=ku(e);return Oi(n,Xn(t,0,n.length))}function Hr(e,t,n,r){if(!zl(e))return e;for(var o=-1,i=(t=ao(t,e)).length,l=i-1,u=e;null!=u&&++o<i;){var a=Ki(t[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(o!=l){var s=u[a];void 0===(c=r?r(s,a,u):void 0)&&(c=zl(s)?s:ai(t[o+1])?[]:{})}zn(u,a,c),u=u[a]}return e}var Wr=bn?function(e,t){return bn.set(e,t),e}:Uu,zr=gt?function(e,t){return gt(e,"toString",{configurable:!0,enumerable:!1,value:zu(t),writable:!0})}:Uu;function $r(e){return Oi(ku(e))}function qr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=r(i);++o<i;)l[o]=e[o+t];return l}function Ur(e,t){var n;return tr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Gr(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,l=e[i];null!==l&&!Zl(l)&&(n?l<=t:l<t)?r=i+1:o=i}return o}return Yr(e,t,Uu,n)}function Yr(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=n(t))!=t,u=null===t,a=Zl(t),c=void 0===t;o<i;){var s=en((o+i)/2),f=n(e[s]),d=void 0!==f,h=null===f,p=f==f,y=Zl(f);if(l)var v=r||p;else v=c?p&&(r||d):u?p&&d&&(r||!h):a?p&&d&&!h&&(r||!y):!h&&!y&&(r?f<=t:f<t);v?o=s+1:i=s}return an(i,4294967294)}function Xr(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var l=e[n],u=t?t(l):l;if(!n||!kl(u,a)){var a=u;i[o++]=0===l?0:l}}return i}function Jr(e){return"number"==typeof e?e:Zl(e)?NaN:+e}function Zr(e){if("string"==typeof e)return e;if(Al(e))return ht(e,Zr)+"";if(Zl(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,o=ft,i=e.length,l=!0,u=[],a=u;if(n)l=!1,o=dt;else if(i>=200){var c=t?null:Fo(e);if(c)return zt(c);l=!1,o=jt,a=new Nn}else a=t?[]:u;e:for(;++r<i;){var s=e[r],f=t?t(s):s;if(s=n||0!==s?s:0,l&&f==f){for(var d=a.length;d--;)if(a[d]===f)continue e;t&&a.push(f),u.push(s)}else o(a,f,n)||(a!==u&&a.push(f),u.push(s))}return u}function eo(e,t){var n=-1,r=(t=ao(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!Se.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var l=mi(e,t);return null==l||delete l[Ki(Li(t))]}function to(e,t,n,r){return Hr(e,t,n(dr(e,t)),r)}function no(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?qr(e,r?0:i,r?i+1:o):qr(e,r?i+1:0,r?o:i)}function ro(e,t){var n=e;return n instanceof jn&&(n=n.value()),yt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function oo(e,t,n){var o=e.length;if(o<2)return o?Qr(e[0]):[];for(var i=-1,l=r(o);++i<o;)for(var u=e[i],a=-1;++a<o;)a!=i&&(l[i]=er(l[i]||u,e[a],t,n));return Qr(lr(l,1),t,n)}function io(e,t,n){for(var r=-1,o=e.length,i=t.length,l={};++r<o;){var u=r<i?t[r]:void 0;n(l,e[r],u)}return l}function lo(e){return Nl(e)?e:[]}function uo(e){return"function"==typeof e?e:Uu}function ao(e,t){return Al(e)?e:si(e,t)?[e]:_i(au(e))}var co=Fr;function so(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var fo=_t||function(e){return Ue.clearTimeout(e)};function ho(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Ae(t).set(new Ae(e)),t}function yo(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function vo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Zl(e),l=void 0!==t,u=null===t,a=t==t,c=Zl(t);if(!u&&!c&&!i&&e>t||i&&l&&a&&!u&&!c||r&&l&&a||!n&&a||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||u&&n&&o||!l&&o||!a)return-1}return 0}function mo(e,t,n,o){for(var i=-1,l=e.length,u=n.length,a=-1,c=t.length,s=un(l-u,0),f=r(c+s),d=!o;++a<c;)f[a]=t[a];for(;++i<u;)(d||i<l)&&(f[n[i]]=e[i]);for(;s--;)f[a++]=e[i++];return f}function go(e,t,n,o){for(var i=-1,l=e.length,u=-1,a=n.length,c=-1,s=t.length,f=un(l-a,0),d=r(f+s),h=!o;++i<f;)d[i]=e[i];for(var p=i;++c<s;)d[p+c]=t[c];for(;++u<a;)(h||i<l)&&(d[p+n[u]]=e[i++]);return d}function bo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function wo(e,t,n,r){var o=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var u=t[i],a=r?r(n[u],e[u],u,n,e):void 0;void 0===a&&(a=e[u]),o?Gn(n,u,a):zn(n,u,a)}return n}function Co(e,t){return function(n,r){var o=Al(n)?lt:qn,i=t?t():{};return o(n,e,Zo(r,2),i)}}function xo(e){return Fr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,l&&ci(n[0],n[1],l)&&(i=o<3?void 0:i,o=1),t=pe(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t}))}function So(e,t){return function(n,r){if(null==n)return n;if(!Bl(n))return e(n,r);for(var o=n.length,i=t?o:-1,l=pe(n);(t?i--:++i<o)&&!1!==r(l[i],i,l););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=pe(t),l=r(t),u=l.length;u--;){var a=l[e?u:++o];if(!1===n(i[a],a,i))break}return t}}function Oo(e){return function(t){var n=Lt(t=au(t))?Ut(t):void 0,r=n?n[0]:t.charAt(0),o=n?so(n,1).join(""):t.slice(1);return r[e]()+o}}function _o(e){return function(t){return yt(Vu(ju(t).replace(De,"")),e,"")}}function Ko(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kn(e.prototype),r=e.apply(n,t);return zl(r)?r:n}}function Io(e){return function(t,n,r){var o=pe(t);if(!Bl(t)){var i=Zo(n,3);t=Cu(t),n=function(e){return i(o[e],e,o)}}var l=e(t,n,r);return l>-1?o[i?t[l]:l]:void 0}}function Eo(e){return qo((function(t){var n=t.length,r=n,o=Dn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new me(i);if(o&&!u&&"wrapper"==Xo(l))var u=new Dn([],!0)}for(r=u?r:n;++r<n;){var a=Xo(l=t[r]),c="wrapper"==a?Yo(l):void 0;u=c&&fi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[Xo(c[0])].apply(u,c[3]):1==l.length&&fi(l)?u[a]():u.thru(l)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Al(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function ko(e,t,n,o,i,l,u,a,c,s){var f=128&t,d=1&t,h=2&t,p=24&t,y=512&t,v=h?void 0:Ko(e);return function m(){for(var g=arguments.length,b=r(g),w=g;w--;)b[w]=arguments[w];if(p)var C=Jo(m),x=Bt(b,C);if(o&&(b=mo(b,o,i,p)),l&&(b=go(b,l,u,p)),g-=x,p&&g<s){var S=Wt(b,C);return No(e,t,ko,m.placeholder,n,b,S,a,c,s-g)}var R=d?n:this,O=h?R[e]:e;return g=b.length,a?b=gi(b,a):y&&g>1&&b.reverse(),f&&c<g&&(b.length=c),this&&this!==Ue&&this instanceof m&&(O=v||Ko(O)),O.apply(R,b)}}function To(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Do(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Jr(n),r=Jr(r)),o=e(n,r)}return o}}function jo(e){return qo((function(t){return t=ht(t,Tt(Zo())),Fr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function Ao(e,t){var n=(t=void 0===t?" ":Zr(t)).length;if(n<2)return n?Mr(t,e):t;var r=Mr(t,Qt(e/qt(t)));return Lt(t)?so(Ut(r),0,e).join(""):r.slice(0,e)}function Po(e){return function(t,n,o){return o&&"number"!=typeof o&&ci(t,n,o)&&(n=o=void 0),t=ru(t),void 0===n?(n=t,t=0):n=ru(n),function(e,t,n,o){for(var i=-1,l=un(Qt((t-e)/(n||1)),0),u=r(l);l--;)u[o?l:++i]=e,e+=n;return u}(t,n,o=void 0===o?t<n?1:-1:ru(o),e)}}function Bo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=lu(t),n=lu(n)),e(t,n)}}function No(e,t,n,r,o,i,l,u,a,c){var s=8&t;t|=s?32:64,4&(t&=~(s?64:32))||(t&=-4);var f=[e,t,o,s?i:void 0,s?l:void 0,s?void 0:i,s?void 0:l,u,a,c],d=n.apply(void 0,f);return fi(e)&&wi(d,f),d.placeholder=r,Si(d,e,t)}function Mo(e){var t=he[e];return function(e,n){if(e=lu(e),(n=null==n?0:an(ou(n),292))&&rn(e)){var r=(au(e)+"e").split("e");return+((r=(au(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Fo=vn&&1/zt(new vn([,-0]))[1]==1/0?function(e){return new vn(e)}:Zu;function Lo(e){return function(t){var n=oi(t);return n==y?Vt(t):n==b?$t(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Vo(e,t,n,o,u,a,c,s){var f=2&t;if(!f&&"function"!=typeof e)throw new me(i);var d=o?o.length:0;if(d||(t&=-97,o=u=void 0),c=void 0===c?c:un(ou(c),0),s=void 0===s?s:ou(s),d-=u?u.length:0,64&t){var h=o,p=u;o=u=void 0}var y=f?void 0:Yo(e),v=[e,t,n,o,u,h,p,a,c,s];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,u=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!u)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var a=t[3];if(a){var c=e[3];e[3]=c?mo(c,a,t[4]):a,e[4]=c?Wt(e[3],l):t[4]}(a=t[5])&&(c=e[5],e[5]=c?go(c,a,t[6]):a,e[6]=c?Wt(e[5],l):t[6]);(a=t[7])&&(e[7]=a);128&r&&(e[8]=null==e[8]?t[8]:an(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(v,y),e=v[0],t=v[1],n=v[2],o=v[3],u=v[4],!(s=v[9]=void 0===v[9]?f?0:e.length:un(v[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||16==t?function(e,t,n){var o=Ko(e);return function i(){for(var l=arguments.length,u=r(l),a=l,c=Jo(i);a--;)u[a]=arguments[a];var s=l<3&&u[0]!==c&&u[l-1]!==c?[]:Wt(u,c);if((l-=s.length)<n)return No(e,t,ko,i.placeholder,void 0,u,s,void 0,void 0,n-l);var f=this&&this!==Ue&&this instanceof i?o:e;return it(f,this,u)}}(e,t,s):32!=t&&33!=t||u.length?ko.apply(void 0,v):function(e,t,n,o){var i=1&t,l=Ko(e);return function t(){for(var u=-1,a=arguments.length,c=-1,s=o.length,f=r(s+a),d=this&&this!==Ue&&this instanceof t?l:e;++c<s;)f[c]=o[c];for(;a--;)f[c++]=arguments[++u];return it(d,i?n:this,f)}}(e,t,n,o);else var m=function(e,t,n){var r=1&t,o=Ko(e);return function t(){var i=this&&this!==Ue&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return Si((y?Wr:wi)(m,v),e,t)}function Ho(e,t,n,r){return void 0===e||kl(e,we[n])&&!Se.call(r,n)?t:e}function Wo(e,t,n,r,o,i){return zl(e)&&zl(t)&&(i.set(t,e),Tr(e,t,void 0,Wo,i),i.delete(t)),e}function zo(e){return Gl(e)?void 0:e}function $o(e,t,n,r,o,i){var l=1&n,u=e.length,a=t.length;if(u!=a&&!(l&&a>u))return!1;var c=i.get(e),s=i.get(t);if(c&&s)return c==t&&s==e;var f=-1,d=!0,h=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var p=e[f],y=t[f];if(r)var v=l?r(y,p,f,t,e,i):r(p,y,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(h){if(!mt(t,(function(e,t){if(!jt(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(p!==y&&!o(p,y,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function qo(e){return xi(vi(e,void 0,Pi),e+"")}function Uo(e){return hr(e,Cu,ni)}function Go(e){return hr(e,xu,ri)}var Yo=bn?function(e){return bn.get(e)}:Zu;function Xo(e){for(var t=e.name+"",n=wn[t],r=Se.call(wn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Jo(e){return(Se.call(En,"placeholder")?En:e).placeholder}function Zo(){var e=En.iteratee||Gu;return e=e===Gu?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ei(e){for(var t=Cu(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,pi(o)]}return t}function ti(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Sr(n)?n:void 0}var ni=tn?function(e){return null==e?[]:(e=pe(e),st(tn(e),(function(t){return qe.call(e,t)})))}:ia,ri=tn?function(e){for(var t=[];e;)pt(t,ni(e)),e=He(e);return t}:ia,oi=pr;function ii(e,t,n){for(var r=-1,o=(t=ao(t,e)).length,i=!1;++r<o;){var l=Ki(t[r]);if(!(i=null!=e&&n(e,l)))break;e=e[l]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Wl(o)&&ai(l,o)&&(Al(e)||jl(e))}function li(e){return"function"!=typeof e.constructor||hi(e)?{}:kn(He(e))}function ui(e){return Al(e)||jl(e)||!!(Ye&&e&&e[Ye])}function ai(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ae.test(e))&&e>-1&&e%1==0&&e<t}function ci(e,t,n){if(!zl(n))return!1;var r=typeof t;return!!("number"==r?Bl(n)&&ai(t,n.length):"string"==r&&t in n)&&kl(n[t],e)}function si(e,t){if(Al(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Zl(e))||(z.test(e)||!W.test(e)||null!=t&&e in pe(t))}function fi(e){var t=Xo(e),n=En[t];if("function"!=typeof n||!(t in jn.prototype))return!1;if(e===n)return!0;var r=Yo(n);return!!r&&e===r[0]}(hn&&oi(new hn(new ArrayBuffer(1)))!=R||pn&&oi(new pn)!=y||yn&&"[object Promise]"!=oi(yn.resolve())||vn&&oi(new vn)!=b||mn&&oi(new mn)!=x)&&(oi=function(e){var t=pr(e),n=t==m?e.constructor:void 0,r=n?Ii(n):"";if(r)switch(r){case Cn:return R;case xn:return y;case Sn:return"[object Promise]";case Rn:return b;case On:return x}return t});var di=Ce?Vl:la;function hi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function pi(e){return e==e&&!zl(e)}function yi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function vi(e,t,n){return t=un(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,l=un(o.length-t,0),u=r(l);++i<l;)u[i]=o[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=o[i];return a[t]=n(u),it(e,this,a)}}function mi(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function gi(e,t){for(var n=e.length,r=an(t.length,n),o=bo(e);r--;){var i=t[r];e[r]=ai(i,n)?o[i]:void 0}return e}function bi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wi=Ri(Wr),Ci=Zt||function(e,t){return Ue.setTimeout(e,t)},xi=Ri(zr);function Si(e,t,n){var r=t+"";return xi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return ut(u,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=cn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Oi(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Nr(n,o),l=e[i];e[i]=e[n],e[n]=l}return e.length=t,e}var _i=function(e){var t=Rl(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace($,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function Ki(e){if("string"==typeof e||Zl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ii(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ei(e){if(e instanceof jn)return e.clone();var t=new Dn(e.__wrapped__,e.__chain__);return t.__actions__=bo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ki=Fr((function(e,t){return Nl(e)?er(e,lr(t,1,Nl,!0)):[]})),Ti=Fr((function(e,t){var n=Li(t);return Nl(n)&&(n=void 0),Nl(e)?er(e,lr(t,1,Nl,!0),Zo(n,2)):[]})),Di=Fr((function(e,t){var n=Li(t);return Nl(n)&&(n=void 0),Nl(e)?er(e,lr(t,1,Nl,!0),void 0,n):[]}));function ji(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),wt(e,Zo(t,3),o)}function Ai(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=ou(n),o=n<0?un(r+o,0):an(o,r-1)),wt(e,Zo(t,3),o,!0)}function Pi(e){return(null==e?0:e.length)?lr(e,1):[]}function Bi(e){return e&&e.length?e[0]:void 0}var Ni=Fr((function(e){var t=ht(e,lo);return t.length&&t[0]===e[0]?gr(t):[]})),Mi=Fr((function(e){var t=Li(e),n=ht(e,lo);return t===Li(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Zo(t,2)):[]})),Fi=Fr((function(e){var t=Li(e),n=ht(e,lo);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Li(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Vi=Fr(Hi);function Hi(e,t){return e&&e.length&&t&&t.length?Pr(e,t):e}var Wi=qo((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return Br(e,ht(t,(function(e){return ai(e,n)?+e:e})).sort(vo)),r}));function zi(e){return null==e?e:dn.call(e)}var $i=Fr((function(e){return Qr(lr(e,1,Nl,!0))})),qi=Fr((function(e){var t=Li(e);return Nl(t)&&(t=void 0),Qr(lr(e,1,Nl,!0),Zo(t,2))})),Ui=Fr((function(e){var t=Li(e);return t="function"==typeof t?t:void 0,Qr(lr(e,1,Nl,!0),void 0,t)}));function Gi(e){if(!e||!e.length)return[];var t=0;return e=st(e,(function(e){if(Nl(e))return t=un(e.length,t),!0})),Et(t,(function(t){return ht(e,Ot(t))}))}function Yi(e,t){if(!e||!e.length)return[];var n=Gi(e);return null==t?n:ht(n,(function(e){return it(t,void 0,e)}))}var Xi=Fr((function(e,t){return Nl(e)?er(e,t):[]})),Ji=Fr((function(e){return oo(st(e,Nl))})),Zi=Fr((function(e){var t=Li(e);return Nl(t)&&(t=void 0),oo(st(e,Nl),Zo(t,2))})),Qi=Fr((function(e){var t=Li(e);return t="function"==typeof t?t:void 0,oo(st(e,Nl),void 0,t)})),el=Fr(Gi);var tl=Fr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yi(e,n)}));function nl(e){var t=En(e);return t.__chain__=!0,t}function rl(e,t){return t(e)}var ol=qo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof jn&&ai(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:rl,args:[o],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var il=Co((function(e,t,n){Se.call(e,n)?++e[n]:Gn(e,n,1)}));var ll=Io(ji),ul=Io(Ai);function al(e,t){return(Al(e)?ut:tr)(e,Zo(t,3))}function cl(e,t){return(Al(e)?at:nr)(e,Zo(t,3))}var sl=Co((function(e,t,n){Se.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var fl=Fr((function(e,t,n){var o=-1,i="function"==typeof t,l=Bl(e)?r(e.length):[];return tr(e,(function(e){l[++o]=i?it(t,e,n):br(e,t,n)})),l})),dl=Co((function(e,t,n){Gn(e,n,t)}));function hl(e,t){return(Al(e)?ht:Ir)(e,Zo(t,3))}var pl=Co((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var yl=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ci(e,t[0],t[1])?t=[]:n>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,lr(t,1),[])})),vl=Jt||function(){return Ue.Date.now()};function ml(e,t,n){return t=n?void 0:t,Vo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function gl(e,t){var n;if("function"!=typeof t)throw new me(i);return e=ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bl=Fr((function(e,t,n){var r=1;if(n.length){var o=Wt(n,Jo(bl));r|=32}return Vo(e,r,t,n,o)})),wl=Fr((function(e,t,n){var r=3;if(n.length){var o=Wt(n,Jo(wl));r|=32}return Vo(t,r,e,n,o)}));function Cl(e,t,n){var r,o,l,u,a,c,s=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new me(i);function p(t){var n=r,i=o;return r=o=void 0,s=t,u=e.apply(i,n)}function y(e){return s=e,a=Ci(m,t),f?p(e):u}function v(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-s>=l}function m(){var e=vl();if(v(e))return g(e);a=Ci(m,function(e){var n=t-(e-c);return d?an(n,l-(e-s)):n}(e))}function g(e){return a=void 0,h&&r?p(e):(r=o=void 0,u)}function b(){var e=vl(),n=v(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return y(c);if(d)return fo(a),a=Ci(m,t),p(c)}return void 0===a&&(a=Ci(m,t)),u}return t=lu(t)||0,zl(n)&&(f=!!n.leading,l=(d="maxWait"in n)?un(lu(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==a&&fo(a),s=0,r=c=o=a=void 0},b.flush=function(){return void 0===a?u:g(vl())},b}var xl=Fr((function(e,t){return Qn(e,1,t)})),Sl=Fr((function(e,t,n){return Qn(e,lu(t)||0,n)}));function Rl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var l=e.apply(this,r);return n.cache=i.set(o,l)||i,l};return n.cache=new(Rl.Cache||Bn),n}function Ol(e){if("function"!=typeof e)throw new me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Rl.Cache=Bn;var _l=co((function(e,t){var n=(t=1==t.length&&Al(t[0])?ht(t[0],Tt(Zo())):ht(lr(t,1),Tt(Zo()))).length;return Fr((function(r){for(var o=-1,i=an(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),Kl=Fr((function(e,t){return Vo(e,32,void 0,t,Wt(t,Jo(Kl)))})),Il=Fr((function(e,t){return Vo(e,64,void 0,t,Wt(t,Jo(Il)))})),El=qo((function(e,t){return Vo(e,256,void 0,void 0,void 0,t)}));function kl(e,t){return e===t||e!=e&&t!=t}var Tl=Bo(yr),Dl=Bo((function(e,t){return e>=t})),jl=wr(function(){return arguments}())?wr:function(e){return $l(e)&&Se.call(e,"callee")&&!qe.call(e,"callee")},Al=r.isArray,Pl=Qe?Tt(Qe):function(e){return $l(e)&&pr(e)==S};function Bl(e){return null!=e&&Wl(e.length)&&!Vl(e)}function Nl(e){return $l(e)&&Bl(e)}var Ml=nn||la,Fl=et?Tt(et):function(e){return $l(e)&&pr(e)==f};function Ll(e){if(!$l(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Gl(e)}function Vl(e){if(!zl(e))return!1;var t=pr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Hl(e){return"number"==typeof e&&e==ou(e)}function Wl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function zl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function $l(e){return null!=e&&"object"==typeof e}var ql=tt?Tt(tt):function(e){return $l(e)&&oi(e)==y};function Ul(e){return"number"==typeof e||$l(e)&&pr(e)==v}function Gl(e){if(!$l(e)||pr(e)!=m)return!1;var t=He(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ke}var Yl=nt?Tt(nt):function(e){return $l(e)&&pr(e)==g};var Xl=rt?Tt(rt):function(e){return $l(e)&&oi(e)==b};function Jl(e){return"string"==typeof e||!Al(e)&&$l(e)&&pr(e)==w}function Zl(e){return"symbol"==typeof e||$l(e)&&pr(e)==C}var Ql=ot?Tt(ot):function(e){return $l(e)&&Wl(e.length)&&!!Le[pr(e)]};var eu=Bo(Kr),tu=Bo((function(e,t){return e<=t}));function nu(e){if(!e)return[];if(Bl(e))return Jl(e)?Ut(e):bo(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=oi(e);return(t==y?Vt:t==b?zt:ku)(e)}function ru(e){return e?(e=lu(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ou(e){var t=ru(e),n=t%1;return t==t?n?t-n:t:0}function iu(e){return e?Xn(ou(e),0,4294967295):0}function lu(e){if("number"==typeof e)return e;if(Zl(e))return NaN;if(zl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kt(e);var n=ie.test(e);return n||ue.test(e)?ze(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function uu(e){return wo(e,xu(e))}function au(e){return null==e?"":Zr(e)}var cu=xo((function(e,t){if(hi(t)||Bl(t))wo(t,Cu(t),e);else for(var n in t)Se.call(t,n)&&zn(e,n,t[n])})),su=xo((function(e,t){wo(t,xu(t),e)})),fu=xo((function(e,t,n,r){wo(t,xu(t),e,r)})),du=xo((function(e,t,n,r){wo(t,Cu(t),e,r)})),hu=qo(Yn);var pu=Fr((function(e,t){e=pe(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ci(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],l=xu(i),u=-1,a=l.length;++u<a;){var c=l[u],s=e[c];(void 0===s||kl(s,we[c])&&!Se.call(e,c))&&(e[c]=i[c])}return e})),yu=Fr((function(e){return e.push(void 0,Wo),it(Ru,void 0,e)}));function vu(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function mu(e,t){return null!=e&&ii(e,t,mr)}var gu=To((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=_e.call(t)),e[t]=n}),zu(Uu)),bu=To((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=_e.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Zo),wu=Fr(br);function Cu(e){return Bl(e)?Fn(e):Or(e)}function xu(e){return Bl(e)?Fn(e,!0):_r(e)}var Su=xo((function(e,t,n){Tr(e,t,n)})),Ru=xo((function(e,t,n,r){Tr(e,t,n,r)})),Ou=qo((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=ao(t,e),r||(r=t.length>1),t})),wo(e,Go(e),n),r&&(n=Jn(n,7,zo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var _u=qo((function(e,t){return null==e?{}:function(e,t){return Ar(e,t,(function(t,n){return mu(e,n)}))}(e,t)}));function Ku(e,t){if(null==e)return{};var n=ht(Go(e),(function(e){return[e]}));return t=Zo(t),Ar(e,n,(function(e,n){return t(e,n[0])}))}var Iu=Lo(Cu),Eu=Lo(xu);function ku(e){return null==e?[]:Dt(e,Cu(e))}var Tu=_o((function(e,t,n){return t=t.toLowerCase(),e+(n?Du(t):t)}));function Du(e){return Lu(au(e).toLowerCase())}function ju(e){return(e=au(e))&&e.replace(ce,Nt).replace(je,"")}var Au=_o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Pu=_o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Bu=Oo("toLowerCase");var Nu=_o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Mu=_o((function(e,t,n){return e+(n?" ":"")+Lu(t)}));var Fu=_o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Lu=Oo("toUpperCase");function Vu(e,t,n){return e=au(e),void 0===(t=n?void 0:t)?function(e){return Ne.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Hu=Fr((function(e,t){try{return it(e,void 0,t)}catch(e){return Ll(e)?e:new Y(e)}})),Wu=qo((function(e,t){return ut(t,(function(t){t=Ki(t),Gn(e,t,bl(e[t],e))})),e}));function zu(e){return function(){return e}}var $u=Eo(),qu=Eo(!0);function Uu(e){return e}function Gu(e){return Rr("function"==typeof e?e:Jn(e,1))}var Yu=Fr((function(e,t){return function(n){return br(n,e,t)}})),Xu=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Ju(e,t,n){var r=Cu(t),o=fr(t,r);null!=n||zl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,Cu(t)));var i=!(zl(n)&&"chain"in n&&!n.chain),l=Vl(e);return ut(o,(function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Zu(){}var Qu=jo(ht),ea=jo(ct),ta=jo(mt);function na(e){return si(e)?Ot(Ki(e)):function(e){return function(t){return dr(t,e)}}(e)}var ra=Po(),oa=Po(!0);function ia(){return[]}function la(){return!1}var ua=Do((function(e,t){return e+t}),0),aa=Mo("ceil"),ca=Do((function(e,t){return e/t}),1),sa=Mo("floor");var fa,da=Do((function(e,t){return e*t}),1),ha=Mo("round"),pa=Do((function(e,t){return e-t}),0);return En.after=function(e,t){if("function"!=typeof t)throw new me(i);return e=ou(e),function(){if(--e<1)return t.apply(this,arguments)}},En.ary=ml,En.assign=cu,En.assignIn=su,En.assignInWith=fu,En.assignWith=du,En.at=hu,En.before=gl,En.bind=bl,En.bindAll=Wu,En.bindKey=wl,En.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Al(e)?e:[e]},En.chain=nl,En.chunk=function(e,t,n){t=(n?ci(e,t,n):void 0===t)?1:un(ou(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,l=0,u=r(Qt(o/t));i<o;)u[l++]=qr(e,i,i+=t);return u},En.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},En.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(Al(n)?bo(n):[n],lr(t,1))},En.cond=function(e){var t=null==e?0:e.length,n=Zo();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new me(i);return[n(e[0]),e[1]]})):[],Fr((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},En.conforms=function(e){return function(e){var t=Cu(e);return function(n){return Zn(n,e,t)}}(Jn(e,1))},En.constant=zu,En.countBy=il,En.create=function(e,t){var n=kn(e);return null==t?n:Un(n,t)},En.curry=function e(t,n,r){var o=Vo(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},En.curryRight=function e(t,n,r){var o=Vo(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},En.debounce=Cl,En.defaults=pu,En.defaultsDeep=yu,En.defer=xl,En.delay=Sl,En.difference=ki,En.differenceBy=Ti,En.differenceWith=Di,En.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:ou(t))<0?0:t,r):[]},En.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:ou(t)))<0?0:t):[]},En.dropRightWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!0,!0):[]},En.dropWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!0):[]},En.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ci(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ou(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},En.filter=function(e,t){return(Al(e)?st:ir)(e,Zo(t,3))},En.flatMap=function(e,t){return lr(hl(e,t),1)},En.flatMapDeep=function(e,t){return lr(hl(e,t),1/0)},En.flatMapDepth=function(e,t,n){return n=void 0===n?1:ou(n),lr(hl(e,t),n)},En.flatten=Pi,En.flattenDeep=function(e){return(null==e?0:e.length)?lr(e,1/0):[]},En.flattenDepth=function(e,t){return(null==e?0:e.length)?lr(e,t=void 0===t?1:ou(t)):[]},En.flip=function(e){return Vo(e,512)},En.flow=$u,En.flowRight=qu,En.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},En.functions=function(e){return null==e?[]:fr(e,Cu(e))},En.functionsIn=function(e){return null==e?[]:fr(e,xu(e))},En.groupBy=sl,En.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},En.intersection=Ni,En.intersectionBy=Mi,En.intersectionWith=Fi,En.invert=gu,En.invertBy=bu,En.invokeMap=fl,En.iteratee=Gu,En.keyBy=dl,En.keys=Cu,En.keysIn=xu,En.map=hl,En.mapKeys=function(e,t){var n={};return t=Zo(t,3),cr(e,(function(e,r,o){Gn(n,t(e,r,o),e)})),n},En.mapValues=function(e,t){var n={};return t=Zo(t,3),cr(e,(function(e,r,o){Gn(n,r,t(e,r,o))})),n},En.matches=function(e){return Er(Jn(e,1))},En.matchesProperty=function(e,t){return kr(e,Jn(t,1))},En.memoize=Rl,En.merge=Su,En.mergeWith=Ru,En.method=Yu,En.methodOf=Xu,En.mixin=Ju,En.negate=Ol,En.nthArg=function(e){return e=ou(e),Fr((function(t){return Dr(t,e)}))},En.omit=Ou,En.omitBy=function(e,t){return Ku(e,Ol(Zo(t)))},En.once=function(e){return gl(2,e)},En.orderBy=function(e,t,n,r){return null==e?[]:(Al(t)||(t=null==t?[]:[t]),Al(n=r?void 0:n)||(n=null==n?[]:[n]),jr(e,t,n))},En.over=Qu,En.overArgs=_l,En.overEvery=ea,En.overSome=ta,En.partial=Kl,En.partialRight=Il,En.partition=pl,En.pick=_u,En.pickBy=Ku,En.property=na,En.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},En.pull=Vi,En.pullAll=Hi,En.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,Zo(n,2)):e},En.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,void 0,n):e},En.pullAt=Wi,En.range=ra,En.rangeRight=oa,En.rearg=El,En.reject=function(e,t){return(Al(e)?st:ir)(e,Ol(Zo(t,3)))},En.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Zo(t,3);++r<i;){var l=e[r];t(l,r,e)&&(n.push(l),o.push(r))}return Br(e,o),n},En.rest=function(e,t){if("function"!=typeof e)throw new me(i);return Fr(e,t=void 0===t?t:ou(t))},En.reverse=zi,En.sampleSize=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:ou(t),(Al(e)?Vn:Vr)(e,t)},En.set=function(e,t,n){return null==e?e:Hr(e,t,n)},En.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Hr(e,t,n,r)},En.shuffle=function(e){return(Al(e)?Hn:$r)(e)},En.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ci(e,t,n)?(t=0,n=r):(t=null==t?0:ou(t),n=void 0===n?r:ou(n)),qr(e,t,n)):[]},En.sortBy=yl,En.sortedUniq=function(e){return e&&e.length?Xr(e):[]},En.sortedUniqBy=function(e,t){return e&&e.length?Xr(e,Zo(t,2)):[]},En.split=function(e,t,n){return n&&"number"!=typeof n&&ci(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=au(e))&&("string"==typeof t||null!=t&&!Yl(t))&&!(t=Zr(t))&&Lt(e)?so(Ut(e),0,n):e.split(t,n):[]},En.spread=function(e,t){if("function"!=typeof e)throw new me(i);return t=null==t?0:un(ou(t),0),Fr((function(n){var r=n[t],o=so(n,0,t);return r&&pt(o,r),it(e,this,o)}))},En.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},En.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:ou(t))<0?0:t):[]},En.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:ou(t)))<0?0:t,r):[]},En.takeRightWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!1,!0):[]},En.takeWhile=function(e,t){return e&&e.length?no(e,Zo(t,3)):[]},En.tap=function(e,t){return t(e),e},En.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new me(i);return zl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Cl(e,t,{leading:r,maxWait:t,trailing:o})},En.thru=rl,En.toArray=nu,En.toPairs=Iu,En.toPairsIn=Eu,En.toPath=function(e){return Al(e)?ht(e,Ki):Zl(e)?[e]:bo(_i(au(e)))},En.toPlainObject=uu,En.transform=function(e,t,n){var r=Al(e),o=r||Ml(e)||Ql(e);if(t=Zo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:zl(e)&&Vl(i)?kn(He(e)):{}}return(o?ut:cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},En.unary=function(e){return ml(e,1)},En.union=$i,En.unionBy=qi,En.unionWith=Ui,En.uniq=function(e){return e&&e.length?Qr(e):[]},En.uniqBy=function(e,t){return e&&e.length?Qr(e,Zo(t,2)):[]},En.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},En.unset=function(e,t){return null==e||eo(e,t)},En.unzip=Gi,En.unzipWith=Yi,En.update=function(e,t,n){return null==e?e:to(e,t,uo(n))},En.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,uo(n),r)},En.values=ku,En.valuesIn=function(e){return null==e?[]:Dt(e,xu(e))},En.without=Xi,En.words=Vu,En.wrap=function(e,t){return Kl(uo(t),e)},En.xor=Ji,En.xorBy=Zi,En.xorWith=Qi,En.zip=el,En.zipObject=function(e,t){return io(e||[],t||[],zn)},En.zipObjectDeep=function(e,t){return io(e||[],t||[],Hr)},En.zipWith=tl,En.entries=Iu,En.entriesIn=Eu,En.extend=su,En.extendWith=fu,Ju(En,En),En.add=ua,En.attempt=Hu,En.camelCase=Tu,En.capitalize=Du,En.ceil=aa,En.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=lu(n))==n?n:0),void 0!==t&&(t=(t=lu(t))==t?t:0),Xn(lu(e),t,n)},En.clone=function(e){return Jn(e,4)},En.cloneDeep=function(e){return Jn(e,5)},En.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},En.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},En.conformsTo=function(e,t){return null==t||Zn(e,t,Cu(t))},En.deburr=ju,En.defaultTo=function(e,t){return null==e||e!=e?t:e},En.divide=ca,En.endsWith=function(e,t,n){e=au(e),t=Zr(t);var r=e.length,o=n=void 0===n?r:Xn(ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},En.eq=kl,En.escape=function(e){return(e=au(e))&&F.test(e)?e.replace(N,Mt):e},En.escapeRegExp=function(e){return(e=au(e))&&U.test(e)?e.replace(q,"\\$&"):e},En.every=function(e,t,n){var r=Al(e)?ct:rr;return n&&ci(e,t,n)&&(t=void 0),r(e,Zo(t,3))},En.find=ll,En.findIndex=ji,En.findKey=function(e,t){return bt(e,Zo(t,3),cr)},En.findLast=ul,En.findLastIndex=Ai,En.findLastKey=function(e,t){return bt(e,Zo(t,3),sr)},En.floor=sa,En.forEach=al,En.forEachRight=cl,En.forIn=function(e,t){return null==e?e:ur(e,Zo(t,3),xu)},En.forInRight=function(e,t){return null==e?e:ar(e,Zo(t,3),xu)},En.forOwn=function(e,t){return e&&cr(e,Zo(t,3))},En.forOwnRight=function(e,t){return e&&sr(e,Zo(t,3))},En.get=vu,En.gt=Tl,En.gte=Dl,En.has=function(e,t){return null!=e&&ii(e,t,vr)},En.hasIn=mu,En.head=Bi,En.identity=Uu,En.includes=function(e,t,n,r){e=Bl(e)?e:ku(e),n=n&&!r?ou(n):0;var o=e.length;return n<0&&(n=un(o+n,0)),Jl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ct(e,t,n)>-1},En.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),Ct(e,t,o)},En.inRange=function(e,t,n){return t=ru(t),void 0===n?(n=t,t=0):n=ru(n),function(e,t,n){return e>=an(t,n)&&e<un(t,n)}(e=lu(e),t,n)},En.invoke=wu,En.isArguments=jl,En.isArray=Al,En.isArrayBuffer=Pl,En.isArrayLike=Bl,En.isArrayLikeObject=Nl,En.isBoolean=function(e){return!0===e||!1===e||$l(e)&&pr(e)==s},En.isBuffer=Ml,En.isDate=Fl,En.isElement=function(e){return $l(e)&&1===e.nodeType&&!Gl(e)},En.isEmpty=function(e){if(null==e)return!0;if(Bl(e)&&(Al(e)||"string"==typeof e||"function"==typeof e.splice||Ml(e)||Ql(e)||jl(e)))return!e.length;var t=oi(e);if(t==y||t==b)return!e.size;if(hi(e))return!Or(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},En.isEqual=function(e,t){return Cr(e,t)},En.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Cr(e,t,void 0,n):!!r},En.isError=Ll,En.isFinite=function(e){return"number"==typeof e&&rn(e)},En.isFunction=Vl,En.isInteger=Hl,En.isLength=Wl,En.isMap=ql,En.isMatch=function(e,t){return e===t||xr(e,t,ei(t))},En.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,xr(e,t,ei(t),n)},En.isNaN=function(e){return Ul(e)&&e!=+e},En.isNative=function(e){if(di(e))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sr(e)},En.isNil=function(e){return null==e},En.isNull=function(e){return null===e},En.isNumber=Ul,En.isObject=zl,En.isObjectLike=$l,En.isPlainObject=Gl,En.isRegExp=Yl,En.isSafeInteger=function(e){return Hl(e)&&e>=-9007199254740991&&e<=9007199254740991},En.isSet=Xl,En.isString=Jl,En.isSymbol=Zl,En.isTypedArray=Ql,En.isUndefined=function(e){return void 0===e},En.isWeakMap=function(e){return $l(e)&&oi(e)==x},En.isWeakSet=function(e){return $l(e)&&"[object WeakSet]"==pr(e)},En.join=function(e,t){return null==e?"":on.call(e,t)},En.kebabCase=Au,En.last=Li,En.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):wt(e,St,o,!0)},En.lowerCase=Pu,En.lowerFirst=Bu,En.lt=eu,En.lte=tu,En.max=function(e){return e&&e.length?or(e,Uu,yr):void 0},En.maxBy=function(e,t){return e&&e.length?or(e,Zo(t,2),yr):void 0},En.mean=function(e){return Rt(e,Uu)},En.meanBy=function(e,t){return Rt(e,Zo(t,2))},En.min=function(e){return e&&e.length?or(e,Uu,Kr):void 0},En.minBy=function(e,t){return e&&e.length?or(e,Zo(t,2),Kr):void 0},En.stubArray=ia,En.stubFalse=la,En.stubObject=function(){return{}},En.stubString=function(){return""},En.stubTrue=function(){return!0},En.multiply=da,En.nth=function(e,t){return e&&e.length?Dr(e,ou(t)):void 0},En.noConflict=function(){return Ue._===this&&(Ue._=Ie),this},En.noop=Zu,En.now=vl,En.pad=function(e,t,n){e=au(e);var r=(t=ou(t))?qt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ao(en(o),n)+e+Ao(Qt(o),n)},En.padEnd=function(e,t,n){e=au(e);var r=(t=ou(t))?qt(e):0;return t&&r<t?e+Ao(t-r,n):e},En.padStart=function(e,t,n){e=au(e);var r=(t=ou(t))?qt(e):0;return t&&r<t?Ao(t-r,n)+e:e},En.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),sn(au(e).replace(G,""),t||0)},En.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ci(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ru(e),void 0===t?(t=e,e=0):t=ru(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return an(e+o*(t-e+We("1e-"+((o+"").length-1))),t)}return Nr(e,t)},En.reduce=function(e,t,n){var r=Al(e)?yt:Kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,tr)},En.reduceRight=function(e,t,n){var r=Al(e)?vt:Kt,o=arguments.length<3;return r(e,Zo(t,4),n,o,nr)},En.repeat=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:ou(t),Mr(au(e),t)},En.replace=function(){var e=arguments,t=au(e[0]);return e.length<3?t:t.replace(e[1],e[2])},En.result=function(e,t,n){var r=-1,o=(t=ao(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Ki(t[r])];void 0===i&&(r=o,i=n),e=Vl(i)?i.call(e):i}return e},En.round=ha,En.runInContext=e,En.sample=function(e){return(Al(e)?Ln:Lr)(e)},En.size=function(e){if(null==e)return 0;if(Bl(e))return Jl(e)?qt(e):e.length;var t=oi(e);return t==y||t==b?e.size:Or(e).length},En.snakeCase=Nu,En.some=function(e,t,n){var r=Al(e)?mt:Ur;return n&&ci(e,t,n)&&(t=void 0),r(e,Zo(t,3))},En.sortedIndex=function(e,t){return Gr(e,t)},En.sortedIndexBy=function(e,t,n){return Yr(e,t,Zo(n,2))},En.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Gr(e,t);if(r<n&&kl(e[r],t))return r}return-1},En.sortedLastIndex=function(e,t){return Gr(e,t,!0)},En.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Zo(n,2),!0)},En.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gr(e,t,!0)-1;if(kl(e[n],t))return n}return-1},En.startCase=Mu,En.startsWith=function(e,t,n){return e=au(e),n=null==n?0:Xn(ou(n),0,e.length),t=Zr(t),e.slice(n,n+t.length)==t},En.subtract=pa,En.sum=function(e){return e&&e.length?It(e,Uu):0},En.sumBy=function(e,t){return e&&e.length?It(e,Zo(t,2)):0},En.template=function(e,t,n){var r=En.templateSettings;n&&ci(e,t,n)&&(t=void 0),e=au(e),t=fu({},t,r,Ho);var o,i,l=fu({},t.imports,r.imports,Ho),u=Cu(l),a=Dt(l,u),c=0,s=t.interpolate||se,f="__p += '",d=ye((t.escape||se).source+"|"+s.source+"|"+(s===H?ne:se).source+"|"+(t.evaluate||se).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(d,(function(t,n,r,l,u,a){return r||(r=l),f+=e.slice(c,a).replace(fe,Ft),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+t.length,t})),f+="';\n";var p=Se.call(t,"variable")&&t.variable;if(p){if(ee.test(p))throw new Y("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(j,""):f).replace(A,"$1").replace(P,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var y=Hu((function(){return de(u,h+"return "+f).apply(void 0,a)}));if(y.source=f,Ll(y))throw y;return y},En.times=function(e,t){if((e=ou(e))<1||e>9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Et(r,t=Zo(t));++n<e;)t(n);return o},En.toFinite=ru,En.toInteger=ou,En.toLength=iu,En.toLower=function(e){return au(e).toLowerCase()},En.toNumber=lu,En.toSafeInteger=function(e){return e?Xn(ou(e),-9007199254740991,9007199254740991):0===e?e:0},En.toString=au,En.toUpper=function(e){return au(e).toUpperCase()},En.trim=function(e,t,n){if((e=au(e))&&(n||void 0===t))return kt(e);if(!e||!(t=Zr(t)))return e;var r=Ut(e),o=Ut(t);return so(r,At(r,o),Pt(r,o)+1).join("")},En.trimEnd=function(e,t,n){if((e=au(e))&&(n||void 0===t))return e.slice(0,Gt(e)+1);if(!e||!(t=Zr(t)))return e;var r=Ut(e);return so(r,0,Pt(r,Ut(t))+1).join("")},En.trimStart=function(e,t,n){if((e=au(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Zr(t)))return e;var r=Ut(e);return so(r,At(r,Ut(t))).join("")},En.truncate=function(e,t){var n=30,r="...";if(zl(t)){var o="separator"in t?t.separator:o;n="length"in t?ou(t.length):n,r="omission"in t?Zr(t.omission):r}var i=(e=au(e)).length;if(Lt(e)){var l=Ut(e);i=l.length}if(n>=i)return e;var u=n-qt(r);if(u<1)return r;var a=l?so(l,0,u).join(""):e.slice(0,u);if(void 0===o)return a+r;if(l&&(u+=a.length-u),Yl(o)){if(e.slice(u).search(o)){var c,s=a;for(o.global||(o=ye(o.source,au(re.exec(o))+"g")),o.lastIndex=0;c=o.exec(s);)var f=c.index;a=a.slice(0,void 0===f?u:f)}}else if(e.indexOf(Zr(o),u)!=u){var d=a.lastIndexOf(o);d>-1&&(a=a.slice(0,d))}return a+r},En.unescape=function(e){return(e=au(e))&&M.test(e)?e.replace(B,Yt):e},En.uniqueId=function(e){var t=++Re;return au(e)+t},En.upperCase=Fu,En.upperFirst=Lu,En.each=al,En.eachRight=cl,En.first=Bi,Ju(En,(fa={},cr(En,(function(e,t){Se.call(En.prototype,t)||(fa[t]=e)})),fa),{chain:!1}),En.VERSION="4.17.23",ut(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){En[e].placeholder=En})),ut(["drop","take"],(function(e,t){jn.prototype[e]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!t?new jn(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ut(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;jn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),ut(["head","last"],(function(e,t){var n="take"+(t?"Right":"");jn.prototype[e]=function(){return this[n](1).value()[0]}})),ut(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[n](1)}})),jn.prototype.compact=function(){return this.filter(Uu)},jn.prototype.find=function(e){return this.filter(e).head()},jn.prototype.findLast=function(e){return this.reverse().find(e)},jn.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new jn(this):this.map((function(n){return br(n,e,t)}))})),jn.prototype.reject=function(e){return this.filter(Ol(Zo(e)))},jn.prototype.slice=function(e,t){e=ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jn.prototype.toArray=function(){return this.take(4294967295)},cr(jn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=En[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(En.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof jn,a=l[0],c=u||Al(t),s=function(e){var t=o.apply(En,pt([e],l));return r&&f?t[0]:t};c&&n&&"function"==typeof a&&1!=a.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=i&&!f,p=u&&!d;if(!i&&c){t=p?t:new jn(this);var y=e.apply(t,l);return y.__actions__.push({func:rl,args:[s],thisArg:void 0}),new Dn(y,f)}return h&&p?e.apply(this,l):(y=this.thru(s),h?r?y.value()[0]:y.value():y)})})),ut(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ge[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);En.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Al(o)?o:[],e)}return this[n]((function(n){return t.apply(Al(n)?n:[],e)}))}})),cr(jn.prototype,(function(e,t){var n=En[t];if(n){var r=n.name+"";Se.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[ko(void 0,2).name]=[{name:"wrapper",func:void 0}],jn.prototype.clone=function(){var e=new jn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},jn.prototype.reverse=function(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Al(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],l=i.size;switch(i.type){case"drop":e+=l;break;case"dropRight":t-=l;break;case"take":t=an(t,e+l);break;case"takeRight":e=un(e,t-l)}}return{start:e,end:t}}(0,o,this.__views__),l=i.start,u=i.end,a=u-l,c=r?u:l-1,s=this.__iteratees__,f=s.length,d=0,h=an(a,this.__takeCount__);if(!n||!r&&o==a&&h==a)return ro(e,this.__actions__);var p=[];e:for(;a--&&d<h;){for(var y=-1,v=e[c+=t];++y<f;){var m=s[y],g=m.iteratee,b=m.type,w=g(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},En.prototype.at=ol,En.prototype.chain=function(){return nl(this)},En.prototype.commit=function(){return new Dn(this.value(),this.__chain__)},En.prototype.next=function(){void 0===this.__values__&&(this.__values__=nu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},En.prototype.plant=function(e){for(var t,n=this;n instanceof Tn;){var r=Ei(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},En.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jn){var t=e;return this.__actions__.length&&(t=new jn(this)),(t=t.reverse()).__actions__.push({func:rl,args:[zi],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(zi)},En.prototype.toJSON=En.prototype.valueOf=En.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},En.prototype.first=En.prototype.head,Je&&(En.prototype[Je]=function(){return this}),En}();Ue._=Xt,void 0===(o=function(){return Xt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(113),n(208)(e))},function(e,t,n){"use strict";var r=n(19),o=n(93).EXISTS,i=n(4),l=n(67),u=Function.prototype,a=i(u.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(c.exec);r&&!o&&l(u,"name",{configurable:!0,get:function(){try{return s(c,a(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(95),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(9),o=n(66),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(0),o=n(69).map;r({target:"Array",proto:!0,forced:!n(86)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(214)},function(e,t,n){"use strict";n(206)},function(e,t,n){"use strict";var r=n(5),o=n(160),i=n(161),l=n(207),u=n(54),a=function(e){if(e&&e.forEach!==l)try{u(e,"forEach",l)}catch(t){e.forEach=l}};for(var c in o)o[c]&&a(r[c]&&r[c].prototype);a(i)},function(e,t,n){"use strict";var r=n(9),o=n(32),i=n(145),l=n(115);e.exports=function(e,t,n,u){u||(u={});var a=u.enumerable,c=void 0!==u.name?u.name:t;if(r(n)&&i(n,c,u),u.global)a?e[t]=n:l(t,n);else{try{u.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},function(e,t,n){"use strict";var r=n(19),o=n(141),i=n(142),l=n(11),u=n(116),a=TypeError,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(l(e),t=u(t),l(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=s(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(l(e),t=u(t),l(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(35),o=Object;e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";var r=n(79),o=n(35);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(63),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(65);e.exports=function(e,t,n){var l,u;o(e);try{if(!(l=i(e,"return"))){if("throw"===t)throw n;return n}l=r(l,e)}catch(e){u=!0,l=e}if("throw"===t)throw n;if(u)throw l;return o(l),n}},function(e,t,n){"use strict";var r=n(5),o=n(9),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";var r=n(4),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,t,n){"use strict";var r=n(0),o=n(69).filter;r({target:"Array",proto:!0,forced:!n(86)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(212)},function(e,t,n){"use strict";var r,o,i,l=n(187),u=n(5),a=n(21),c=n(54),s=n(20),f=n(114),d=n(94),h=n(78),p=u.TypeError,y=u.WeakMap;if(l||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new p("Object already initialized");return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var m=d("state");h[m]=!0,r=function(e,t){if(s(e,m))throw new p("Object already initialized");return t.facade=e,c(e,m,t),t},o=function(e){return s(e,m)?e[m]:{}},i=function(e){return s(e,m)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=o(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(82);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(70),o=n(6),i=n(11),l=n(66),u=n(162),a=n(42),c=n(53),s=n(163),f=n(126),d=n(36),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},y=p.prototype;e.exports=function(e,t,n){var v,m,g,b,w,C,x,S=n&&n.that,R=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),_=!(!n||!n.IS_ITERATOR),K=!(!n||!n.INTERRUPTED),I=r(t,S),E=function(e){return v&&d(v,"normal"),new p(!0,e)},k=function(e){return R?(i(e),K?I(e[0],e[1],E):I(e[0],e[1])):K?I(e,E):I(e)};if(O)v=e.iterator;else if(_)v=e;else{if(!(m=f(e)))throw new h(l(e)+" is not iterable");if(u(m)){for(g=0,b=a(e);b>g;g++)if((w=k(e[g]))&&c(y,w))return w;return new p(!1)}v=s(e,m)}for(C=O?e.next:v.next;!(x=o(C,v)).done;){try{w=k(x.value)}catch(e){d(v,"throw",e)}if("object"==typeof w&&w&&c(y,w))return w}return new p(!1)}},function(e,t,n){"use strict";var r=n(0),o=n(149).includes,i=n(1),l=n(84);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),l("includes")},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(130),l=n(35),u=n(24),a=n(131),c=o("".indexOf);r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~c(u(l(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0),o=n(221);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(0),o=n(232);r({target:"String",proto:!0,forced:n(233)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(19),o=n(6),i=n(96),l=n(77),u=n(34),a=n(116),c=n(20),s=n(141),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=u(e),t=a(t),s)try{return f(e,t)}catch(e){}if(c(e,t))return l(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";var r=n(0),o=n(69).findIndex,i=n(84),l=!0;"findIndex"in[]&&Array(1).findIndex((function(){l=!1})),r({target:"Array",proto:!0,forced:l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0),o=n(69).find,i=n(84),l=!0;"find"in[]&&Array(1).find((function(){l=!1})),r({target:"Array",proto:!0,forced:l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";n(224)},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(4);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(19),o=n(32),i=n(77);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r,o=n(11),i=n(150),l=n(118),u=n(78),a=n(151),c=n(92),s=n(94),f=s("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(r);for(var n=l.length;n--;)delete y.prototype[l[n]];return y()};u[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:i.f(n,t)}},function(e,t,n){"use strict";var r=n(19),o=n(32),i=n(77);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){var n=r.Iterator,o=n&&n.prototype,i=o&&o[e],l=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){l=!0}},-1)}catch(e){e instanceof t||(l=!1)}if(!l)return i}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(71),l=n(21),u=n(33),a=n(42),c=n(164),s=n(56),f=n(107),d=n(122),h=n(86),p=n(8),y=n(74),v=p("isConcatSpreadable"),m=y>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),g=function(e){if(!l(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(e){var t,n,r,o,i,l=u(this),h=d(l,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(g(i=-1===t?l:arguments[t]))for(o=a(i),c(p+o),n=0;n<o;n++,p++)n in i&&s(h,p,i[n]);else c(p+1),s(h,p++,i);return f(h,p),h}})},function(e,t,n){"use strict";var r=n(0),o=n(133);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(0),o=n(71),i=n(101),l=n(21),u=n(97),a=n(42),c=n(34),s=n(56),f=n(107),d=n(8),h=n(86),p=n(100),y=h("slice"),v=d("species"),m=Array,g=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(e,t){var n,r,d,h=c(this),y=a(h),b=u(e,y),w=u(void 0===t?y:t,y);if(o(h)&&(n=h.constructor,(i(n)&&(n===m||o(n.prototype))||l(n)&&null===(n=n[v]))&&(n=void 0),n===m||void 0===n))return p(h,b,w);for(r=new(void 0===n?m:n)(g(w-b,0)),d=0;b<w;b++,d++)b in h&&s(r,d,h[b]);return f(r,d),r}})},function(e,t,n){"use strict";var r=n(114);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(74),o=n(1),i=n(5).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){"use strict";var r=n(25),o=n(63);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){"use strict";var r=n(145),o=n(32);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,t,n){"use strict";var r=n(32).f,o=n(20),i=n(8)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(70),o=n(79),i=n(33),l=n(42),u=n(122),a=n(56),c=function(e){var t=1===e,n=2===e,c=3===e,s=4===e,f=6===e,d=7===e,h=5===e||f;return function(p,y,v){for(var m,g,b=i(p),w=o(b),C=l(w),x=r(y,v),S=0,R=0,O=t?u(p,C):n||d?u(p,0):void 0;C>S;S++)if((h||S in w)&&(g=x(m=w[S],S,b),e))if(t)a(O,S,g);else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:a(O,R++,m)}else switch(e){case 4:return!1;case 7:a(O,R++,m)}return f?-1:c||s?s:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){"use strict";var r=n(121),o=n(25),i=n(91),l=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?l(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(38);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(33),i=n(83);r({target:"Object",stat:!0,forced:n(1)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(4),o=0,i=Math.random(),l=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+l(++o+i,36)}},function(e,t,n){"use strict";var r,o,i=n(5),l=n(75),u=i.process,a=i.Deno,c=u&&u.versions||a&&a.version,s=c&&c.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&l&&(!(r=l.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=l.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){"use strict";var r=n(5).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},function(e,t,n){"use strict";var r=n(37),o=n(9),i=n(53),l=n(140),u=Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,u(e))}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(4),o=n(1),i=n(38),l=Object,u=r("".split);e.exports=o((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?u(e,""):l(e)}:l},function(e,t,n){"use strict";var r=n(148),o=n(118).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(190);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(81),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},function(e,t,n){"use strict";var r=n(148),o=n(118);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(8),o=n(55),i=n(32).f,l=r("unscopables"),u=Array.prototype;void 0===u[l]&&i(u,l,{configurable:!0,value:o(null)}),e.exports=function(e){u[l][e]=!0}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(1),o=n(8),i=n(74),l=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[l]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(0),o=n(33),i=n(97),l=n(81),u=n(42),a=n(107),c=n(164),s=n(122),f=n(56),d=n(209),h=n(86)("splice"),p=Math.max,y=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,h,v,m,g,b=o(this),w=u(b),C=i(e,w),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=w-C):(n=x-2,r=y(p(l(t),0),w-C)),c(w+n-r),h=s(b,r),v=0;v<r;v++)(m=C+v)in b&&f(h,v,b[m]);if(a(h,r),n<r){for(v=C;v<w-r;v++)g=v+n,(m=v+r)in b?b[g]=b[m]:d(b,g);for(v=w;v>w-r+n;v--)d(b,v-1)}else if(n>r)for(v=w-r;v>C;v--)g=v+n-1,(m=v+r-1)in b?b[g]=b[m]:d(b,g);for(v=0;v<n;v++)b[v+C]=arguments[v+2];return a(b,w-r+n),h}})},function(e,t,n){"use strict";var r=n(5);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(5),o=n(88),i=n(9),l=n(99),u=n(117),a=n(8),c=n(175),s=n(26),f=n(74),d=o&&o.prototype,h=a("species"),p=!1,y=i(r.PromiseRejectionEvent),v=l("Promise",(function(){var e=u(o),t=e!==String(o);if(!t&&66===f)return!0;if(s&&(!d.catch||!d.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||y)}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:y,SUBCLASSING:p}},function(e,t,n){"use strict";var r=n(25),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(1);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";var r=n(5),o=n(21),i=r.document,l=o(i)&&o(i.createElement);e.exports=function(e){return l?i.createElement(e):{}}},function(e,t,n){"use strict";var r=n(19),o=n(20),i=Function.prototype,l=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,c=u&&(!r||r&&l(i,"name").configurable);e.exports={EXISTS:u,PROPER:a,CONFIGURABLE:c}},function(e,t,n){"use strict";var r=n(62),o=n(73),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r=n(112),o=n(9),i=n(38),l=n(8)("toStringTag"),u=Object,a="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=u(e),l))?n:a?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(81),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(1),o=n(9),i=/#|\.prototype\./,l=function(e,t){var n=a[u(e)];return n===s||n!==c&&(o(t)?r(t):!!t)},u=l.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=l.data={},c=l.NATIVE="N",s=l.POLYFILL="P";e.exports=l},function(e,t,n){"use strict";var r=n(4);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(4),o=n(1),i=n(9),l=n(95),u=n(37),a=n(117),c=function(){},s=u("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(c),p=function(e){if(!i(e))return!1;try{return s(c,[],e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(l(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,a(e))}catch(e){return!0}};y.sham=!0,e.exports=!s||o((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?y:p},function(e,t,n){"use strict";var r=n(91),o=Function.prototype,i=o.apply,l=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?l.bind(i):function(){return l.apply(i,arguments)})},function(e,t,n){"use strict";var r,o,i,l=n(1),u=n(9),a=n(21),c=n(55),s=n(104),f=n(31),d=n(8),h=n(26),p=d("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):y=!0),!a(r)||l((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=c(r)),u(r[p])||f(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},function(e,t,n){"use strict";var r=n(20),o=n(9),i=n(33),l=n(94),u=n(199),a=l("IE_PROTO"),c=Object,s=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var t=i(e);if(r(t,a))return t[a];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?s:null}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(53),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},function(e,t,n){"use strict";var r=n(19),o=n(71),i=TypeError,l=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!l(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";n(222)},function(e,t,n){"use strict";var r=n(0),o=n(226).left,i=n(127),l=n(74);r({target:"Array",proto:!0,forced:!n(110)&&l>79&&l<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(175);e.exports="NODE"===r},function(e,t,n){"use strict";n(234)},function(e,t,n){"use strict";var r={};r[n(8)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(26),o=n(5),i=n(115),l=e.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(l.versions||(l.versions=[])).push({version:"3.48.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(5),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(143),o=n(76);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){"use strict";var r=n(4),o=n(9),i=n(114),l=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return l(e)}),e.exports=i.inspectSource},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r=n(120),o=n(20),i=n(153),l=n(32).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||l(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";var r=n(5);e.exports=r},function(e,t,n){"use strict";var r=n(38),o=n(4);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,t,n){"use strict";var r=n(191);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(0),o=n(37),i=n(102),l=n(6),u=n(4),a=n(1),c=n(71),s=n(9),f=n(194),d=n(76),h=n(38),p=n(24),y=n(100),v=n(195),m=n(73),g=n(64),b=n(196),w=String,C=o("JSON","stringify"),x=u(/./.exec),S=u("".charAt),R=u("".charCodeAt),O=u("".replace),_=u("".slice),K=u([].push),I=u(1.1.toString),E=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,D=m(),j=D.length,A=!g||a((function(){var e=o("Symbol")("stringify detection");return"[null]"!==C([e])||"{}"!==C({a:e})||"{}"!==C(Object(e))})),P=a((function(){return'"\\udf06\\ud834"'!==C("\udf06\ud834")||'"\\udead"'!==C("\udead")})),B=A?function(e,t){var n=y(arguments),r=M(t);if(s(r)||void 0!==e&&!d(e))return n[1]=function(e,t){if(s(r)&&(t=l(r,this,w(e),t)),!d(t))return t},i(C,null,n)}:C,N=function(e,t,n){var r=S(n,t-1),o=S(n,t+1);return x(k,e)&&!x(T,o)||x(T,e)&&!x(k,r)?"\\u"+I(R(e,0),16):e},M=function(e){if(s(e))return e;if(c(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?K(n,o):"number"!=typeof o&&"Number"!==h(o)&&"String"!==h(o)||K(n,p(o))}var i=n.length,l=!0;return function(e,t){if(l)return l=!1,t;if(c(this))return t;for(var r=0;r<i;r++)if(n[r]===e)return t}}};C&&r({target:"JSON",stat:!0,arity:3,forced:A||P||!b},{stringify:function(e,t,n){var r=M(t),o=[],i=B(e,(function(e,t){var n=s(r)?l(r,this,w(e),t):t;return!b&&f(n)?D+(K(o,n.rawJSON)-1):n}),n);if("string"!=typeof i)return i;if(P&&(i=O(i,E,N)),b)return i;for(var u="",a=i.length,c=0;c<a;c++){var d=S(i,c);if('"'===d){var h=v(i,++c).end-1,p=_(i,c,h);u+=_(p,0,j)===D?o[_(p,j)]:'"'+p+'"',c=h}else u+=d}return u}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(26),l=n(93),u=n(9),a=n(198),c=n(104),s=n(125),f=n(68),d=n(54),h=n(31),p=n(8),y=n(85),v=n(103),m=l.PROPER,g=l.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,C=p("iterator"),x=function(){return this};e.exports=function(e,t,n,l,p,v,S){a(n,t,l);var R,O,_,K=function(e){if(e===p&&D)return D;if(!w&&e&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",E=!1,k=e.prototype,T=k[C]||k["@@iterator"]||p&&k[p],D=!w&&T||K(p),j="Array"===t&&k.entries||T;if(j&&(R=c(j.call(new e)))!==Object.prototype&&R.next&&(i||c(R)===b||(s?s(R,b):u(R[C])||h(R,C,x)),f(R,I,!0,!0),i&&(y[I]=x)),m&&"values"===p&&T&&"values"!==T.name&&(!i&&g?d(k,"name","values"):(E=!0,D=function(){return o(T,this)})),p)if(O={values:K("values"),keys:v?D:K("keys"),entries:K("entries")},S)for(_ in O)(w||E||!(_ in k))&&h(k,_,O[_]);else r({target:t,proto:!0,forced:w||E},O);return i&&!S||k[C]===D||h(k,C,D,{name:p}),y[t]=D,O}},function(e,t,n){"use strict";var r=n(200),o=n(21),i=n(35),l=n(201);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),l(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},function(e,t,n){"use strict";var r=n(95),o=n(65),i=n(63),l=n(85),u=n(8)("iterator");e.exports=function(e){if(!i(e))return o(e,u)||o(e,"@@iterator")||l[r(e)]}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(34),l=n(48).f,u=n(19);r({target:"Object",stat:!0,forced:!u||o((function(){l(1)})),sham:!u},{getOwnPropertyDescriptor:function(e,t){return l(i(e),t)}})},function(e,t,n){"use strict";var r=n(0),o=n(19),i=n(147),l=n(34),u=n(48),a=n(56);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=l(e),o=u.f,c=i(r),s={},f=0;c.length>f;)void 0!==(n=o(r,t=c[f++]))&&a(s,t,n);return s}})},function(e,t,n){"use strict";var r=n(211),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(11),o=n(36);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r,o,i=n(6),l=n(4),u=n(24),a=n(169),c=n(216),s=n(62),f=n(55),d=n(41).get,h=n(217),p=n(218),y=s("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,m=v,g=l("".charAt),b=l("".indexOf),w=l("".replace),C=l("".slice),x=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=c.BROKEN_CARET,R=void 0!==/()??/.exec("")[1];(x||R||S||h||p)&&(m=function(e){var t,n,r,o,l,c,s,h=this,p=d(h),O=u(e),_=p.raw;if(_)return _.lastIndex=h.lastIndex,t=i(m,_,O),h.lastIndex=_.lastIndex,t;var K=p.groups,I=S&&h.sticky,E=i(a,h),k=h.source,T=0,D=O;if(I&&(E=w(E,"y",""),-1===b(E,"g")&&(E+="g"),D=C(O,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==g(O,h.lastIndex-1))&&(k="(?: "+k+")",D=" "+D,T++),n=new RegExp("^(?:"+k+")",E)),R&&(n=new RegExp("^"+k+"$(?!\\s)",E)),x&&(r=h.lastIndex),o=i(v,I?n:h,D),I?o?(o.input=C(o.input,T),o[0]=C(o[0],T),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:x&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),R&&o&&o.length>1&&i(y,o[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(o[l]=void 0)})),o&&K)for(o.groups=c=f(null),l=0;l<K.length;l++)c[(s=K[l])[0]]=o[s[1]];return o}),e.exports=m},function(e,t,n){"use strict";var r=n(102),o=n(6),i=n(4),l=n(170),u=n(1),a=n(11),c=n(9),s=n(21),f=n(81),d=n(82),h=n(24),p=n(35),y=n(171),v=n(65),m=n(219),g=n(135),b=n(172),w=n(8)("replace"),C=Math.max,x=Math.min,S=i([].concat),R=i([].push),O=i("".indexOf),_=i("".slice),K="$0"==="a".replace(/./,"$0"),I=!!/./[w]&&""===/./[w]("a","$0");l("replace",(function(e,t,n){var i=I?"$":"$0";return[function(e,n){var r=p(this),i=s(e)?v(e,w):void 0;return i?o(i,e,r,n):o(t,h(r),e,n)},function(e,o){var l=a(this),u=h(e);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var s=n(t,l,u,o);if(s.done)return s.value}var p=c(o);p||(o=h(o));var v,w=h(g(l)),K=-1!==O(w,"g");K&&(v=-1!==O(w,"u"),l.lastIndex=0);for(var I,E=[];null!==(I=b(l,u))&&(R(E,I),K);){""===h(I[0])&&(l.lastIndex=y(u,d(l.lastIndex),v))}for(var k,T="",D=0,j=0;j<E.length;j++){for(var A,P=h((I=E[j])[0]),B=C(x(f(I.index),u.length),0),N=[],M=1;M<I.length;M++)R(N,void 0===(k=I[M])?k:String(k));var F=I.groups;if(p){var L=S([P],N,B,u);void 0!==F&&R(L,F),A=h(r(o,void 0,L))}else A=m(P,u,B,N,F,o);B>=D&&(T+=_(u,D,B)+A,D=B+P.length)}return T+_(u,D)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!K||I)},function(e,t,n){"use strict";var r=n(6),o=n(20),i=n(53),l=n(220),u=n(169),a=RegExp.prototype;e.exports=l.correct?function(e){return e.flags}:function(e){return l.correct||!i(a,e)||o(e,"flags")?e.flags:r(u,e)}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(79),l=n(34),u=n(127),a=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!u("join",",")},{join:function(e){return a(l(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(223);r({global:!0,forced:parseInt!==o},{parseInt:o})},function(e,t,n){"use strict";var r=n(8)("iterator"),o=!1;try{var i=0,l={next:function(){return{done:!!i++}},return:function(){o=!0}};l[r]=function(){return this},Array.from(l,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(64);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(19),o=n(1),i=n(92);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(19),o=n(1);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){"use strict";var r=n(6),o=n(21),i=n(76),l=n(65),u=n(144),a=n(8),c=TypeError,s=a("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,a=l(e,s);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},function(e,t,n){"use strict";var r=n(6),o=n(9),i=n(21),l=TypeError;e.exports=function(e,t){var n,u;if("string"===t&&o(n=e.toString)&&!i(u=r(n,e)))return u;if(o(n=e.valueOf)&&!i(u=r(n,e)))return u;if("string"!==t&&o(n=e.toString)&&!i(u=r(n,e)))return u;throw new l("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(4),o=n(1),i=n(9),l=n(20),u=n(19),a=n(93).CONFIGURABLE,c=n(117),s=n(41),f=s.enforce,d=s.get,h=String,p=Object.defineProperty,y=r("".slice),v=r("".replace),m=r([].join),g=u&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===y(h(t),0,7)&&(t="["+v(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!l(e,"name")||a&&e.name!==t)&&(u?p(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&l(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&l(n,"constructor")&&n.constructor?u&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return l(r,"source")||(r.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var r=n(20),o=n(147),i=n(48),l=n(32);e.exports=function(e,t,n){for(var u=o(t),a=l.f,c=i.f,s=0;s<u.length;s++){var f=u[s];r(e,f)||n&&r(n,f)||a(e,f,c(t,f))}}},function(e,t,n){"use strict";var r=n(37),o=n(4),i=n(80),l=n(98),u=n(11),a=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(u(e)),n=l.f;return n?a(t,n(e)):t}},function(e,t,n){"use strict";var r=n(4),o=n(20),i=n(34),l=n(149).indexOf,u=n(78),a=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,s=[];for(n in r)!o(u,n)&&o(r,n)&&a(s,n);for(;t.length>c;)o(r,n=t[c++])&&(~l(s,n)||a(s,n));return s}},function(e,t,n){"use strict";var r=n(34),o=n(97),i=n(42),l=function(e){return function(t,n,l){var u=r(t),a=i(u);if(0===a)return!e&&-1;var c,s=o(l,a);if(e&&n!=n){for(;a>s;)if((c=u[s++])!=c)return!0}else for(;a>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},function(e,t,n){"use strict";var r=n(19),o=n(142),i=n(32),l=n(11),u=n(34),a=n(83);t.f=r&&!o?Object.defineProperties:function(e,t){l(e);for(var n,r=u(t),o=a(t),c=o.length,s=0;c>s;)i.f(e,n=o[s++],r[n]);return e}},function(e,t,n){"use strict";var r=n(37);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(38),o=n(34),i=n(80).f,l=n(100),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return l(u)}}(e):i(o(e))}},function(e,t,n){"use strict";var r=n(8);t.f=r},function(e,t,n){"use strict";var r=n(6),o=n(37),i=n(8),l=n(31);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,u=i("toPrimitive");t&&!t[u]&&l(t,u,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){"use strict";var r=n(64);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r=n(9),o=n(21),i=n(125);e.exports=function(e,t,n){var l,u;return i&&r(l=t.constructor)&&l!==n&&o(u=l.prototype)&&u!==n.prototype&&i(e,u),e}},function(e,t,n){"use strict";var r=n(4),o=n(35),i=n(24),l=n(158),u=r("".replace),a=RegExp("^["+l+"]+"),c=RegExp("(^|[^"+l+"])["+l+"]+$"),s=function(e){return function(t){var n=i(o(t));return 1&e&&(n=u(n,a,"")),2&e&&(n=u(n,c,"$1")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(4),o=n(81),i=n(24),l=n(35),u=r("".charAt),a=r("".charCodeAt),c=r("".slice),s=function(e){return function(t,n){var r,s,f=i(l(t)),d=o(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=a(f,d))<55296||r>56319||d+1===h||(s=a(f,d+1))<56320||s>57343?e?u(f,d):r:e?c(f,d,d+2):s-56320+(r-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(92)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";var r=n(8),o=n(85),i=r("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||l[i]===e)}},function(e,t,n){"use strict";var r=n(6),o=n(25),i=n(11),l=n(66),u=n(126),a=TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(o(n))return i(r(n,e));throw new a(l(e)+" is not iterable")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var r=n(6),o=n(55),i=n(54),l=n(166),u=n(8),a=n(41),c=n(65),s=n(103).IteratorPrototype,f=n(105),d=n(36),h=n(213),p=u("toStringTag"),y=a.set,v=function(e){var t=a.getterFor(e?"WrapForValidIterator":"IteratorHelper");return l(o(s),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),o=n.iterator;if(n.done=!0,e){var i=c(o,"return");return i?r(i,o):f(void 0,!0)}if(n.inner)try{d(n.inner.iterator,"normal")}catch(e){return d(o,"throw",e)}if(n.openIters)try{h(n.openIters,"normal")}catch(e){return d(o,"throw",e)}return o&&d(o,"normal"),f(void 0,!0)}})},m=v(!0),g=v(!1);i(g,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=t?"WrapForValidIterator":"IteratorHelper",o.returnHandlerResult=!!n,o.nextHandler=e,o.counter=0,o.done=!1,y(this,o)};return r.prototype=t?m:g,r}},function(e,t,n){"use strict";var r=n(31);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(0),o=n(215).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(11);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";n(60);var r=n(6),o=n(31),i=n(133),l=n(1),u=n(8),a=n(54),c=u("species"),s=RegExp.prototype;e.exports=function(e,t,n,f){var d=u(e),h=!l((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=h&&!l((function(){var t=!1,n=/a/;if("split"===e){var r={};r[c]=function(){return n},(n={constructor:r,flags:""})[d]=/./[d]}return n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var y=/./[d],v=t(d,""[e],(function(e,t,n,o,l){var u=t.exec;return u===i||u===s.exec?h&&!l?{done:!0,value:r(y,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,d,v[1])}f&&a(s[d],"sham",!0)}},function(e,t,n){"use strict";var r=n(159).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(9),l=n(38),u=n(133),a=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&o(c),c}if("RegExp"===l(e))return r(u,e,t);throw new a("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(93).PROPER,o=n(31),i=n(11),l=n(24),u=n(1),a=n(135),c=RegExp.prototype,s=c.toString,f=u((function(){return"/a/b"!==s.call({source:"a",flags:"b"})})),d=r&&"toString"!==s.name;(f||d)&&o(c,"toString",(function(){var e=i(this);return"/"+l(e.source)+"/"+l(a(e))}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(0),o=n(225);r({target:"Array",stat:!0,forced:!n(138)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(5),o=n(75),i=n(38),l=function(e){return o.slice(0,e.length)===e};e.exports=l("Bun/")?"BUN":l("Cloudflare-Workers")?"CLOUDFLARE":l("Deno/")?"DENO":l("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(4),l=n(99),u=n(31),a=n(177),c=n(43),s=n(106),f=n(9),d=n(63),h=n(21),p=n(1),y=n(138),v=n(68),m=n(156);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=g?"set":"add",C=o[e],x=C&&C.prototype,S=C,R={},O=function(e){var t=i(x[e]);u(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(l(e,!f(C)||!(b||x.forEach&&!p((function(){(new C).entries().next()})))))S=n.getConstructor(t,e,g,w),a.enable();else if(l(e,!0)){var _=new S,K=_[w](b?{}:-0,1)!==_,I=p((function(){_.has(1)})),E=y((function(e){new C(e)})),k=!b&&p((function(){for(var e=new C,t=5;t--;)e[w](t,t);return!e.has(-0)}));E||((S=t((function(e,t){s(e,x);var n=m(new C,e,S);return d(t)||c(t,n[w],{that:n,AS_ENTRIES:g}),n}))).prototype=x,x.constructor=S),(I||k)&&(O("delete"),O("has"),g&&O("get")),(k||K)&&O(w),b&&x.clear&&delete x.clear}return R[e]=S,r({global:!0,constructor:!0,forced:S!==C},R),v(S,e),b||n.setStrong(S,e,g),S}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(78),l=n(21),u=n(20),a=n(32).f,c=n(80),s=n(152),f=n(229),d=n(73),h=n(231),p=!1,y=d("meta"),v=0,m=function(e){a(e,y,{value:{objectID:"O"+v++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},p=!0;var e=c.f,t=o([].splice),n={};n[y]=1,e(n).length&&(c.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===y){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(e,t){if(!l(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,y)){if(!f(e))return"F";if(!t)return"E";m(e)}return e[y].objectID},getWeakData:function(e,t){if(!u(e,y)){if(!f(e))return!0;if(!t)return!1;m(e)}return e[y].weakData},onFreeze:function(e){return h&&p&&f(e)&&!u(e,y)&&m(e),e}};i[y]=!0},function(e,t,n){"use strict";var r=n(55),o=n(67),i=n(166),l=n(70),u=n(106),a=n(63),c=n(43),s=n(124),f=n(105),d=n(179),h=n(19),p=n(177).fastKey,y=n(41),v=y.set,m=y.getterFor;e.exports={getConstructor:function(e,t,n,s){var f=e((function(e,o){u(e,d),v(e,{type:t,index:r(null),first:null,last:null,size:0}),h||(e.size=0),a(o)||c(o,e[s],{that:e,AS_ENTRIES:n})})),d=f.prototype,y=m(t),g=function(e,t,n){var r,o,i=y(e),l=b(e,t);return l?l.value=n:(i.last=l={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=l),r&&(r.next=l),h?i.size++:e.size++,"F"!==o&&(i.index[o]=l)),e},b=function(e,t){var n,r=y(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(d,{clear:function(){for(var e=y(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),h?e.size=0:this.size=0},delete:function(e){var t=y(this),n=b(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first===n&&(t.first=r),t.last===n&&(t.last=o),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=y(this),r=l(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&o(d,"size",{configurable:!0,get:function(){return y(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);s(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(37),o=n(67),i=n(8),l=n(19),u=i("species");e.exports=function(e){var t=r(e);l&&t&&!t[u]&&o(t,u,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r,o,i,l,u=n(5),a=n(102),c=n(70),s=n(9),f=n(20),d=n(1),h=n(151),p=n(100),y=n(92),v=n(244),m=n(181),g=n(110),b=u.setImmediate,w=u.clearImmediate,C=u.process,x=u.Dispatch,S=u.Function,R=u.MessageChannel,O=u.String,_=0,K={};d((function(){r=u.location}));var I=function(e){if(f(K,e)){var t=K[e];delete K[e],t()}},E=function(e){return function(){I(e)}},k=function(e){I(e.data)},T=function(e){u.postMessage(O(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){v(arguments.length,1);var t=s(e)?e:S(e),n=p(arguments,1);return K[++_]=function(){a(t,void 0,n)},o(_),_},w=function(e){delete K[e]},g?o=function(e){C.nextTick(E(e))}:x&&x.now?o=function(e){x.now(E(e))}:R&&!m?(l=(i=new R).port2,i.port1.onmessage=k,o=c(l.postMessage,l)):u.addEventListener&&s(u.postMessage)&&!u.importScripts&&r&&"file:"!==r.protocol&&!d(T)?(o=T,u.addEventListener("message",k,!1)):o="onreadystatechange"in y("script")?function(e){h.appendChild(y("script")).onreadystatechange=function(){h.removeChild(this),I(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:b,clear:w}},function(e,t,n){"use strict";var r=n(75);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},function(e,t,n){"use strict";var r=n(88),o=n(138),i=n(89).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";n(60);var r,o,i=n(0),l=n(6),u=n(9),a=n(11),c=n(24),s=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),f=/./.test;i({target:"RegExp",proto:!0,forced:!s},{test:function(e){var t=a(this),n=c(e),r=t.exec;if(!u(r))return l(f,t,n);var o=l(r,t,n);return null!==o&&(a(o),!0)}})},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,a=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&a()}function u(){i(l)}function a(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},s=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=m(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=s(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,l=o.top+o.bottom,u=d(r.width),a=d(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=h(r,"left","right")+i),Math.round(a+l)!==n&&(a-=h(r,"top","bottom")+l)),!function(e){return e===s(e).document.documentElement}(e)){var c=Math.round(u+i)-t,p=Math.round(a+l)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(p)&&(a-=p)}return m(o.left,o.top,u,a)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof s(e).SVGGraphicsElement}:function(e){return e instanceof s(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return r?y(e)?function(e){var t=e.getBBox();return m(0,0,t.width,t.height)}(e):p(e):f}function m(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,i,l,u,a,s=(r=(n=t).x,o=n.y,i=n.width,l=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(u.prototype),c(a,{x:r,y:o,width:i,height:l,top:o,right:r+i,bottom:l+o,left:r}),a);c(this,{target:e,contentRect:s})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof s(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof s(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new n,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=a.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var S=void 0!==o.ResizeObserver?o.ResizeObserver:x;t.a=S}).call(this,n(113))},function(e,t,n){e.exports=n(260)},function(e,t,n){"use strict";var r=n(5),o=n(9),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){"use strict";var r=n(112),o=n(95);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(6),l=n(4),u=n(26),a=n(19),c=n(64),s=n(1),f=n(20),d=n(53),h=n(11),p=n(34),y=n(116),v=n(24),m=n(77),g=n(55),b=n(83),w=n(80),C=n(152),x=n(98),S=n(48),R=n(32),O=n(150),_=n(96),K=n(31),I=n(67),E=n(62),k=n(94),T=n(78),D=n(73),j=n(8),A=n(153),P=n(119),B=n(154),N=n(68),M=n(41),F=n(69).forEach,L=k("hidden"),V=M.set,H=M.getterFor("Symbol"),W=Object.prototype,z=o.Symbol,$=z&&z.prototype,q=o.RangeError,U=o.TypeError,G=o.QObject,Y=S.f,X=R.f,J=C.f,Z=_.f,Q=l([].push),ee=E("symbols"),te=E("op-symbols"),ne=E("wks"),re=!G||!G.prototype||!G.prototype.findChild,oe=function(e,t,n){var r=Y(W,t);r&&delete W[t],X(e,t,n),r&&e!==W&&X(W,t,r)},ie=a&&s((function(){return 7!==g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?oe:X,le=function(e,t){var n=ee[e]=g($);return V(n,{type:"Symbol",tag:e,description:t}),a||(n.description=t),n},ue=function(e,t,n){e===W&&ue(te,t,n),h(e);var r=y(t);return h(n),f(ee,r)?(n.enumerable?(f(e,L)&&e[L][r]&&(e[L][r]=!1),n=g(n,{enumerable:m(0,!1)})):(f(e,L)||X(e,L,m(1,g(null))),e[L][r]=!0),ie(e,r,n)):X(e,r,n)},ae=function(e,t){h(e);var n=p(t),r=b(n).concat(de(n));return F(r,(function(t){a&&!i(ce,n,t)||ue(e,t,n[t])})),e},ce=function(e){var t=y(e),n=i(Z,this,t);return!(this===W&&f(ee,t)&&!f(te,t))&&(!(n||!f(this,t)||!f(ee,t)||f(this,L)&&this[L][t])||n)},se=function(e,t){var n=p(e),r=y(t);if(n!==W||!f(ee,r)||f(te,r)){var o=Y(n,r);return!o||!f(ee,r)||f(n,L)&&n[L][r]||(o.enumerable=!0),o}},fe=function(e){var t=J(p(e)),n=[];return F(t,(function(e){f(ee,e)||f(T,e)||Q(n,e)})),n},de=function(e){var t=e===W,n=J(t?te:p(e)),r=[];return F(n,(function(e){!f(ee,e)||t&&!f(W,e)||Q(r,ee[e])})),r};c||(K($=(z=function(){if(d($,this))throw new U("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=D(e),n=function(e){var r=void 0===this?o:this;r===W&&i(n,te,e),f(r,L)&&f(r[L],t)&&(r[L][t]=!1);var l=m(1,e);try{ie(r,t,l)}catch(e){if(!(e instanceof q))throw e;oe(r,t,l)}};return a&&re&&ie(W,t,{configurable:!0,set:n}),le(t,e)}).prototype,"toString",(function(){return H(this).tag})),K(z,"withoutSetter",(function(e){return le(D(e),e)})),_.f=ce,R.f=ue,O.f=ae,S.f=se,w.f=C.f=fe,x.f=de,A.f=function(e){return le(j(e),e)},a&&(I($,"description",{configurable:!0,get:function(){return H(this).description}}),u||K(W,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),F(b(ne),(function(e){P(e)})),r({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!a},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ue,defineProperties:ae,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),B(),N(z,"Symbol"),T[L]=!0},function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},function(e,t,n){"use strict";var r=n(71),o=n(101),i=n(21),l=n(8)("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===u||r(t.prototype))||i(t)&&null===(t=t[l]))&&(t=void 0)),void 0===t?u:t}},function(e,t,n){"use strict";var r=n(0),o=n(37),i=n(20),l=n(24),u=n(62),a=n(155),c=u("string-to-symbol-registry"),s=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{for:function(e){var t=l(e);if(i(c,t))return c[t];var n=o("Symbol")(t);return c[t]=n,s[n]=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(20),i=n(76),l=n(66),u=n(62),a=n(155),c=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!i(e))throw new TypeError(l(e)+" is not a symbol");if(o(c,e))return c[e]}})},function(e,t,n){"use strict";var r=n(21),o=n(41).get;e.exports=function(e){if(!r(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},function(e,t,n){"use strict";var r=n(4),o=n(20),i=SyntaxError,l=parseInt,u=String.fromCharCode,a=r("".charAt),c=r("".slice),s=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var p=a(e,t);if("\\"===p){var y=c(e,t,t+2);if(o(f,y))r+=f[y],t+=2;else{if("\\u"!==y)throw new i('Unknown escape sequence: "'+y+'"');var v=c(e,t+=2,t+4);if(!s(d,v))throw new i("Bad Unicode escape at: "+t);r+=u(l(v,16)),t+=4}}else{if('"'===p){n=!1,t++;break}if(s(h,p))throw new i("Bad control character in string literal at: "+t);r+=p,t++}}if(n)throw new i("Unterminated string at: "+t);return{value:r,end:t}}},function(e,t,n){"use strict";var r=n(1);e.exports=!r((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},function(e,t,n){"use strict";var r=n(0),o=n(64),i=n(1),l=n(98),u=n(33);r({target:"Object",stat:!0,forced:!o||i((function(){l.f(1)}))},{getOwnPropertySymbols:function(e){var t=l.f;return t?t(u(e)):[]}})},function(e,t,n){"use strict";var r=n(103).IteratorPrototype,o=n(55),i=n(77),l=n(68),u=n(85),a=function(){return this};e.exports=function(e,t,n,c){var s=t+" Iterator";return e.prototype=o(r,{next:i(+!c,n)}),l(e,s,!1,!0),u[s]=a,e}},function(e,t,n){"use strict";var r=n(1);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(4),o=n(25);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){"use strict";var r=n(202),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(11),o=n(144),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},function(e,t,n){"use strict";var r=n(4);e.exports=r(1.1.valueOf)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(106),l=n(11),u=n(9),a=n(104),c=n(67),s=n(56),f=n(1),d=n(20),h=n(8),p=n(103).IteratorPrototype,y=n(19),v=n(26),m=h("toStringTag"),g=TypeError,b=o.Iterator,w=v||!u(b)||b.prototype!==p||!f((function(){b({})})),C=function(){if(i(this,p),a(this)===p)throw new g("Abstract class Iterator not directly constructable")},x=function(e,t){y?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(l(this),this===p)throw new g("You can't redefine this property");d(this,e)?this[e]=t:s(this,e,t)}}):p[e]=t};d(p,m)||x(m,"Iterator"),!w&&d(p,"constructor")&&p.constructor!==Object||x("constructor",C),C.prototype=p,r({global:!0,constructor:!0,forced:w},{Iterator:C})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(43),l=n(25),u=n(11),a=n(57),c=n(36),s=n(58)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:s},{forEach:function(e){u(this);try{l(e)}catch(e){c(this,"throw",e)}if(s)return o(s,this,e);var t=a(this),n=0;i(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},function(e,t,n){"use strict";var r=n(69).forEach,o=n(127)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(66),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(71),l=o([].reverse),u=[1,2];r({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),l(this)}})},function(e,t,n){"use strict";var r=n(21),o=n(38),i=n(8)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(25),l=n(11),u=n(57),a=n(165),c=n(132),s=n(26),f=n(36),d=n(167),h=n(58),p=!s&&!d("filter",(function(){})),y=!s&&!p&&h("filter",TypeError),v=s||p||y,m=a((function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=l(o(i,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(e){l(this);try{i(e)}catch(e){f(this,"throw",e)}return y?o(y,this,e):new m(u(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(36);e.exports=function(e,t,n){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{n=r(e[o].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(25),l=n(11),u=n(57),a=n(165),c=n(132),s=n(36),f=n(167),d=n(58),h=n(26),p=!h&&!f("map",(function(){})),y=!h&&!p&&d("map",TypeError),v=h||p||y,m=a((function(){var e=this.iterator,t=l(o(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(e){l(this);try{i(e)}catch(e){s(this,"throw",e)}return y?o(y,this,e):new m(u(this),{mapper:e})}})},function(e,t,n){"use strict";var r=n(19),o=n(1),i=n(4),l=n(104),u=n(83),a=n(34),c=i(n(96).f),s=i([].push),f=r&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var n,o=a(t),i=u(o),d=f&&null===l(o),h=i.length,p=0,y=[];h>p;)n=i[p++],r&&!(d?n in o:c(o,n))||s(y,e?[n,o[n]]:o[n]);return y}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,n){"use strict";var r=n(1),o=n(5).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),l=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:l,UNSUPPORTED_Y:i}},function(e,t,n){"use strict";var r=n(1),o=n(5).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var r=n(1),o=n(5).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){"use strict";var r=n(4),o=n(33),i=Math.floor,l=r("".charAt),u=r("".replace),a=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var h=n+e.length,p=r.length,y=s;return void 0!==f&&(f=o(f),y=c),u(d,y,(function(o,u){var c;switch(l(u,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,n);case"'":return a(t,h);case"<":c=f[a(u,1,-1)];break;default:var s=+u;if(0===s)return o;if(s>p){var d=i(s/10);return 0===d?o:d<=p?void 0===r[d-1]?l(u,1):r[d-1]+l(u,1):o}c=r[s-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var r=n(5),o=n(1),i=r.RegExp,l=!o((function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in e&&(l.hasIndices="d"),l)o(u,l[u]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r}));e.exports={correct:l}},function(e,t,n){"use strict";var r=n(19),o=n(4),i=n(6),l=n(1),u=n(83),a=n(98),c=n(96),s=n(33),f=n(79),d=Object.assign,h=Object.defineProperty,p=o([].concat);e.exports=!d||l((function(){if(r&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||"abcdefghijklmnopqrst"!==u(d({},t)).join("")}))?function(e,t){for(var n=s(e),o=arguments.length,l=1,d=a.f,h=c.f;o>l;)for(var y,v=f(arguments[l++]),m=d?p(u(v),d(v)):u(v),g=m.length,b=0;g>b;)y=m[b++],r&&!i(h,v,y)||(n[y]=v[y]);return n}:d},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(43),l=n(25),u=n(11),a=n(57),c=n(36),s=n(58)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:s},{some:function(e){u(this);try{l(e)}catch(e){c(this,"throw",e)}if(s)return o(s,this,e);var t=a(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(4),l=n(24),u=n(157).trim,a=n(158),c=r.parseInt,s=r.Symbol,f=s&&s.iterator,d=/^[+-]?0x/i,h=i(d.exec),p=8!==c(a+"08")||22!==c(a+"0x16")||f&&!o((function(){c(Object(f))}));e.exports=p?function(e,t){var n=u(l(e));return c(n,t>>>0||(h(d,n)?16:10))}:c},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(43),l=n(25),u=n(11),a=n(57),c=n(36),s=n(58)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:s},{find:function(e){u(this);try{l(e)}catch(e){c(this,"throw",e)}if(s)return o(s,this,e);var t=a(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(70),o=n(6),i=n(33),l=n(132),u=n(162),a=n(101),c=n(42),s=n(56),f=n(107),d=n(163),h=n(126),p=Array;e.exports=function(e){var t=i(e),n=a(this),y=arguments.length,v=y>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,y>2?arguments[2]:void 0));var g,b,w,C,x,S,R=h(t),O=0;if(!R||this===p&&u(R))for(g=c(t),b=n?new this(g):p(g);g>O;O++)S=m?v(t[O],O):t[O],s(b,O,S);else for(b=n?new this:[],x=(C=d(t,R)).next;!(w=o(x,C)).done;O++)S=m?l(C,v,[w.value,O],!0):w.value,s(b,O,S);return f(b,O),b}},function(e,t,n){"use strict";var r=n(25),o=n(33),i=n(79),l=n(42),u=TypeError,a="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,s){var f=o(t),d=i(f),h=l(f);if(r(n),0===h&&c<2)throw new u(a);var p=e?h-1:0,y=e?-1:1;if(c<2)for(;;){if(p in d){s=d[p],p+=y;break}if(p+=y,e?p<0:h<=p)throw new u(a)}for(;e?p>=0:h>p;p+=y)p in d&&(s=n(s,d[p],p,f));return s}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";n(228)},function(e,t,n){"use strict";n(176)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(178))},function(e,t,n){"use strict";var r=n(1),o=n(21),i=n(38),l=n(230),u=Object.isExtensible,a=r((function(){u(1)}));e.exports=a||l?function(e){return!!o(e)&&((!l||"ArrayBuffer"!==i(e))&&(!u||u(e)))}:u},function(e,t,n){"use strict";var r=n(1);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var r=n(1);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(4),o=n(35),i=n(24),l=/"/g,u=r("".replace);e.exports=function(e,t,n,r){var a=i(o(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+u(i(r),l,""")+'"'),c+">"+a+"</"+t+">"}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var r=n(0),o=n(43),i=n(25),l=n(11),u=n(57),a=n(36),c=n(58),s=n(102),f=n(1),d=TypeError,h=f((function(){[].keys().reduce((function(){}),void 0)})),p=!h&&c("reduce",d);r({target:"Iterator",proto:!0,real:!0,forced:h||p},{reduce:function(e){l(this);try{i(e)}catch(e){a(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return s(p,this,t?[e]:[e,n]);var r=u(this),c=0;if(o(r,(function(r){t?(t=!1,n=r):n=e(n,r,c),c++}),{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return n}})},function(e,t,n){"use strict";var r,o=n(0),i=n(121),l=n(48).f,u=n(82),a=n(24),c=n(130),s=n(35),f=n(131),d=n(26),h=i("".slice),p=Math.min,y=f("endsWith");o({target:"String",proto:!0,forced:!!(d||y||(r=l(String.prototype,"endsWith"),!r||r.writable))&&!y},{endsWith:function(e){var t=a(s(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:p(u(n),r),i=a(e);return h(t,o-i.length,o)===i}})},function(e,t,n){"use strict";var r=n(0),o=n(237),i=n(84);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(33),o=n(97),i=n(42);e.exports=function(e){for(var t=r(this),n=i(t),l=arguments.length,u=o(l>1?arguments[1]:void 0,n),a=l>2?arguments[2]:void 0,c=void 0===a?n:o(a,n);c>u;)t[u++]=e;return t}},function(e,t,n){"use strict";var r=n(6),o=n(4),i=n(170),l=n(11),u=n(21),a=n(82),c=n(24),s=n(35),f=n(65),d=n(171),h=n(135),p=n(172),y=o("".indexOf);i("match",(function(e,t,n){return[function(t){var n=s(this),o=u(t)?f(t,e):void 0;return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=l(this),o=c(e),i=n(t,r,o);if(i.done)return i.value;var u=c(h(r));if(-1===y(u,"g"))return p(r,o);var s=-1!==y(u,"u");r.lastIndex=0;for(var f,v=[],m=0;null!==(f=p(r,o));){var g=c(f[0]);v[m]=g,""===g&&(r.lastIndex=d(o,a(r.lastIndex),s)),m++}return 0===m?null:v}]}))},function(e,t,n){"use strict";var r,o=n(0),i=n(121),l=n(48).f,u=n(82),a=n(24),c=n(130),s=n(35),f=n(131),d=n(26),h=i("".slice),p=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!!(d||y||(r=l(String.prototype,"startsWith"),!r||r.writable))&&!y},{startsWith:function(e){var t=a(s(this));c(e);var n=u(p(arguments.length>1?arguments[1]:void 0,t.length)),r=a(e);return h(t,n,n+r.length)===r}})},function(e,t,n){"use strict";n(241),n(250),n(251),n(252),n(253),n(254)},function(e,t,n){"use strict";var r,o,i,l,u=n(0),a=n(26),c=n(110),s=n(5),f=n(120),d=n(6),h=n(31),p=n(125),y=n(68),v=n(179),m=n(25),g=n(9),b=n(21),w=n(106),C=n(242),x=n(180).set,S=n(245),R=n(249),O=n(139),_=n(182),K=n(41),I=n(88),E=n(89),k=n(90),T=E.CONSTRUCTOR,D=E.REJECTION_EVENT,j=E.SUBCLASSING,A=K.getterFor("Promise"),P=K.set,B=I&&I.prototype,N=I,M=B,F=s.TypeError,L=s.document,V=s.process,H=k.f,W=H,z=!!(L&&L.createEvent&&s.dispatchEvent),$=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},q=function(e,t){var n,r,o,i=t.value,l=1===t.state,u=l?e.ok:e.fail,a=e.resolve,c=e.reject,s=e.domain;try{u?(l||(2===t.rejection&&J(t),t.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===e.promise?c(new F("Promise-chain cycle")):(r=$(n))?d(r,n,a,c):a(n)):c(i)}catch(e){s&&!o&&s.exit(),c(e)}},U=function(e,t){e.notified||(e.notified=!0,S((function(){for(var n,r=e.reactions;n=r.get();)q(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},G=function(e,t,n){var r,o;z?((r=L.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!D&&(o=s["on"+e])?o(r):"unhandledrejection"===e&&R("Unhandled promise rejection",n)},Y=function(e){d(x,s,(function(){var t,n=e.facade,r=e.value;if(X(e)&&(t=O((function(){c?V.emit("unhandledRejection",r,n):G("unhandledrejection",n,r)})),e.rejection=c||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},J=function(e){d(x,s,(function(){var t=e.facade;c?V.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Z=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,U(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new F("Promise can't be resolved itself");var r=$(t);r?S((function(){var n={done:!1};try{d(r,t,Z(ee,n,e),Z(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,U(e,!1))}catch(t){Q({done:!1},t,e)}}};if(T&&(M=(N=function(e){w(this,M),m(e),d(r,this);var t=A(this);try{e(Z(ee,t),Z(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){P(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=h(M,"then",(function(e,t){var n=A(this),r=H(C(this,N));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?V.domain:void 0,0===n.state?n.reactions.add(r):S((function(){q(r,n)})),r.promise})),o=function(){var e=new r,t=A(e);this.promise=e,this.resolve=Z(ee,t),this.reject=Z(Q,t)},k.f=H=function(e){return e===N||e===i?new o(e):W(e)},!a&&g(I)&&B!==Object.prototype)){l=B.then,j||h(B,"then",(function(e,t){var n=this;return new N((function(e,t){d(l,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete B.constructor}catch(e){}p&&p(B,M)}u({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:N}),i=f.Promise,y(N,"Promise",!1,!0),v("Promise")},function(e,t,n){"use strict";var r=n(11),o=n(243),i=n(63),l=n(8)("species");e.exports=function(e,t){var n,u=r(e).constructor;return void 0===u||i(n=r(u)[l])?t:o(n)}},function(e,t,n){"use strict";var r=n(101),o=n(66),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r,o,i,l,u,a=n(5),c=n(246),s=n(70),f=n(180).set,d=n(182),h=n(181),p=n(247),y=n(248),v=n(110),m=a.MutationObserver||a.WebKitMutationObserver,g=a.document,b=a.process,w=a.Promise,C=c("queueMicrotask");if(!C){var x=new d,S=function(){var e,t;for(v&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};h||v||y||!m||!g?!p&&w&&w.resolve?((l=w.resolve(void 0)).constructor=w,u=s(l.then,l),r=function(){u(S)}):v?r=function(){b.nextTick(S)}:(f=s(f,a),r=function(){f(S)}):(o=!0,i=g.createTextNode(""),new m(S).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),C=function(e){x.head||r(),x.add(e)}}e.exports=C},function(e,t,n){"use strict";var r=n(5),o=n(19),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=n(75);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(e,t,n){"use strict";var r=n(75);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(25),l=n(90),u=n(139),a=n(43);r({target:"Promise",stat:!0,forced:n(183)},{all:function(e){var t=this,n=l.f(t),r=n.resolve,c=n.reject,s=u((function(){var n=i(t.resolve),l=[],u=0,s=1;a(e,(function(e){var i=u++,a=!1;s++,o(n,t,e).then((function(e){a||(a=!0,l[i]=e,--s||r(l))}),c)})),--s||r(l)}));return s.error&&c(s.value),n.promise}})},function(e,t,n){"use strict";var r=n(0),o=n(26),i=n(89).CONSTRUCTOR,l=n(88),u=n(37),a=n(9),c=n(31),s=l&&l.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&a(l)){var f=u("Promise").prototype.catch;s.catch!==f&&c(s,"catch",f,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(25),l=n(90),u=n(139),a=n(43);r({target:"Promise",stat:!0,forced:n(183)},{race:function(e){var t=this,n=l.f(t),r=n.reject,c=u((function(){var l=i(t.resolve);a(e,(function(e){o(l,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(0),o=n(90);r({target:"Promise",stat:!0,forced:n(89).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},function(e,t,n){"use strict";var r=n(0),o=n(37),i=n(26),l=n(88),u=n(89).CONSTRUCTOR,a=n(255),c=o("Promise"),s=i&&!u;r({target:"Promise",stat:!0,forced:i||u},{resolve:function(e){return a(s&&this===c?l:this,e)}})},function(e,t,n){"use strict";var r=n(11),o=n(21),i=n(90);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";n(257)},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(43),l=n(25),u=n(11),a=n(57),c=n(36),s=n(58)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:s},{every:function(e){u(this);try{l(e)}catch(e){c(this,"throw",e)}if(s)return o(s,this,e);var t=a(this),n=0;return!i(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";n(259)},function(e,t,n){"use strict";n(176)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(178))},function(e,t,n){"use strict";n.r(t),n.d(t,"install",(function(){return oi})),n.d(t,"version",(function(){return ni})),n.d(t,"VeCheckbox",(function(){return R})),n.d(t,"VeCheckboxGroup",(function(){return I})),n.d(t,"VeContextmenu",(function(){return le})),n.d(t,"VeDropdown",(function(){return xe})),n.d(t,"VeIcon",(function(){return Y})),n.d(t,"VeLoading",(function(){return Be})),n.d(t,"VeLocale",(function(){return a})),n.d(t,"VePagination",(function(){return Xe})),n.d(t,"VeRadio",(function(){return he})),n.d(t,"VeSelect",(function(){return Ue})),n.d(t,"VeTable",(function(){return ti}));n(2),n(23),n(12),n(13),n(14),n(17),n(10),n(18),n(3),n(15),n(16),n(7),n(29),n(30),n(59),n(123);var r=n(52),o=n.n(r),i=n(22),l=o.a.util.defineReactive,u=o.a.prototype;u.$veTableMessages=u.$veTableMessages||{},l(u,"$veTableMessages",Object(i.cloneDeep)({lang:{pagination:{goto:"Go to",page:"",itemsPerPage:" / page",total:function(e){return"Total ".concat(e)},prev5:"Previous 5 Pages",next5:"Next 5 Pages"},table:{confirmFilter:"Confirm",resetFilter:"Reset",cut:"Cut",copy:"Copy",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",removeRow:"Remove $1 row",emptyRow:"Empty $1 row",emptyColumn:"Empty $1 column",emptyCell:"Empty cell",leftFixedColumnTo:"Left fixed column to",cancelLeftFixedColumnTo:"Cancel left fixed column to",rightFixedColumnTo:"Right fixed column to",cancelRightFixedColumnTo:"Cancel right fixed column to"}}}));var a={getMessage:function(){return u.$veTableMessages.lang},use:function(e){this.update(e)},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(i.merge)(u.$veTableMessages.lang,e)}};function c(e){return function(e){return function(t){var n="",r=a.getMessage();if(r[e]){for(var o=r[e][t],i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];n=h(o)?o.apply(void 0,l):o}else console.error("can't find ".concat(e," in ").concat(JSON.stringify(r)));return n}}(e)}function s(e){return!(Array.isArray(e)&&e.length>0)}function f(e){return!(""!==e&&null!=e)}function d(e){return null!=e}function h(e){return"function"==typeof e}function p(e){return"boolean"==typeof e}function y(e){return"number"==typeof e}function v(e){return"number"==typeof e?e+"px":e}function m(e,t){if(h(e.scrollTo))e.scrollTo(t);else{var n=t.top,r=t.left;e.scrollTop=n,e.scrollLeft=r}}var g="on-checked-change",b="VeCheckboxGroup";function w(e){return"ve-checkbox-"+e}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S={name:"VeCheckbox",props:{value:{type:[String,Number,Boolean],default:null},label:{type:[String],default:null},disabled:Boolean,indeterminate:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value,checkboxGroup:{}}},computed:{checkboxClass:function(){return[w("content"),x(x(x({},w("checked"),this.internalIsSelected),w("disabled"),this.disabled),w("indeterminate"),this.indeterminate)]},checkboxStyle:function(){return{display:this.checkboxGroup&&this.checkboxGroup.isVerticalShow?"block":"inline-block"}},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkboxChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit(g,t),this.isCheckBoxGroup()&&this.checkboxGroup.updateModel(this.label,t)},isCheckBoxGroup:function(){return this.checkboxGroup=function(e,t){for(var n=e.$parent;n;){if(n.$options.name===t)return n;n=n.$parent}return null}(this,b),!!this.checkboxGroup},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){if(this.isCheckBoxGroup()){var e=this.checkboxGroup;Array.isArray(e.value)&&e.value.length>0&&e.value.indexOf(this.label)>-1&&(this.model=!0)}else this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)},updateModelByGroup:function(e){e.indexOf(this.label)>-1?this.disabled||(this.model=!0):this.disabled||(this.model=!1)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.checkboxStyle,n=this.label,r=this.checkboxClass,o=this.checkboxChange,i=this.getLabelContent,l=this.internalIsSelected;return e("label",{class:"ve-checkbox",style:t},[e("span",{class:r},[e("input",{domProps:{checked:l,value:n},class:w("input"),attrs:{type:"checkbox"},on:{change:o}}),e("span",{class:w("inner")})]),e("span",{class:w("label")},[i()])])},install:function(e){e.component(S.name,S)}},R=S,O=(n(87),"on-checked-change"),_="VeCheckbox",K={name:"VeCheckboxGroup",props:{value:{type:Array,default:function(){return[]}},isVerticalShow:{type:Boolean,default:!1}},watch:{value:function(e){var t=function(e,t){for(var n=[],r=e.$children;r&&r.length>0;)r.forEach((function(e){r=e.$children?e.$children:null,e.$options.name===t&&n.push(e)}));return n}(this,_);t.length>0&&t.forEach((function(t){t.updateModelByGroup(e)}))}},methods:{updateModel:function(e,t){var n=this.value.indexOf(e);n>-1?t||this.value.splice(n,1):t&&this.value.push(e),this.$emit("input",this.value),this.$emit(O,this.value)}},render:function(){var e=arguments[0];return e("div",{class:"ve-checkbox-group"},[this.$slots.default])},install:function(e){e.component(K.name,K)}},I=K,E=(n(39),n(49),n(44),n(27),n(210),n(128),n(129),n(72),n(45),n(40),n(28),"on-node-click"),k=-1,T="SEPARATOR";function D(e){return"ve-contextmenu-"+e}n(168);var j=8,A=9,P=13,B=32,N=37,M=38,F=39,L=40,V=46,H=113,W={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},z=1,$=2,q=2,U="VeIcon",G={name:U,props:{name:{type:String,required:!0},color:{type:String,default:null},size:{type:[Number,String],default:""}},computed:{iconStyle:function(){return{color:this.color,"font-size":v(this.size)}},iconClass:function(){var e=this.name;return Object.values(W).includes(e)||console.error("".concat(e," is not found in ").concat(U,".")),"iconfont-vet icon-vet-".concat(e)}},render:function(){var e=arguments[0],t=this.iconStyle,n=this.iconClass;return e("i",{style:t,class:["ve-icon",n]})},install:function(e){e.component(G.name,G)}},Y=G;n(60),n(134);function X(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),o=0,i=r.length;o<i;o++){var l=r[o];l&&(e.classList?e.classList.add(l):Z(e,l)||(n+=" "+l))}e.classList||(e.className=n)}}function J(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",o=0,i=n.length;o<i;o++){var l=n[o];l&&(e.classList?e.classList.remove(l):Z(e,l)&&(r=r.replace(" "+l+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}function Z(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function Q(e){var t=document.documentElement,n=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():0,r=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),o=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),i=n.left+window.pageXOffset,l=n.top+window.pageYOffset,u=i-r,a=l-o;return{offsetTop:l,offsetLeft:i,left:u,top:a,right:window.document.documentElement.clientWidth-n.width-u,bottom:window.document.documentElement.clientHeight-n.height-a,right2:window.document.documentElement.clientWidth-u,bottom2:window.document.documentElement.clientHeight-a}}function ee(e){var t=0,n=0,r=document.documentElement,o=document.body;return e||(e=window.event),window.pageYoffset?(t=window.pageXOffset,n=window.pageYOffset):(t=(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),n=(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),{left:t+=e.clientX,top:n+=e.clientY,right:r.clientWidth-e.clientX,bottom:r.clientHeight-e.clientY}}n(173);function te(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie={name:"VeContextmenu",directives:{"events-outside":{bind:function(e,t,n){var r=t.value,o=r.events,i=r.callback;if(Array.isArray(o)&&o.length&&"function"==typeof i){var l=function(t){if(e.contains(t.target)||e===t.target)return!1;i(t)};e.__eventsOutside__=l,o.forEach((function(e){document.addEventListener(e,l,!0)}))}else{var u=n.context.name;console.error("[events-outside] Please provided 'events' and 'callback' in ".concat(u))}},unbind:function(e,t,n){t.value.events.forEach((function(t){document.removeEventListener(t,e.__eventsOutside__,!0)})),e.__eventsOutside__=null}}},props:{options:{type:Array,required:!0},eventTarget:{type:[String,HTMLElement],required:!0}},data:function(){return{internalOptions:[],panelOptions:[],eventTargetEl:"",rootContextmenuId:"",isChildrenPanelsClicked:!1,isPanelRightDirection:!0,isPanelsEmptyed:!0}},computed:{activeMenuIds:function(){return this.panelOptions.map((function(e){return e.parentId}))}},watch:{options:{handler:function(e){Array.isArray(e)&&e.length>0&&(this.removeOrEmptyPanels(!0),this.rootContextmenuId=this.getRandomIdWithPrefix(),this.createInternalOptions(),this.createPanelOptions({options:this.internalOptions}),this.resetContextmenu(),this.addRootContextmenuPanelToBody())},immediate:!0},eventTarget:{handler:function(e){e&&this.registerContextmenuEvent()},immediate:!0}},methods:oe({getRandomIdWithPrefix:function(){return D(te())},hasChildren:function(e){return Array.isArray(e.children)&&e.children.length},getPanelOptionByMenuId:function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return e[n].children;if(e[n].children){var r=this.getPanelOptionByMenuId(e[n].children,t);if(r)return r}}},getParentContextmenuPanelEl:function(e){var t,n=this.panelOptions,r=n.findIndex((function(t){return t.parentId===e}));if(r>0){var o=n[r-1].parentId;t=document.querySelector("#".concat(o))}return t},createPanelByHover:function(e){var t=this,n=e.event,r=e.menu,o=this.internalOptions,i=this.panelOptions;if(this.isPanelsEmptyed)return!1;if(i.findIndex((function(e){return e.parentId===r.id}))>-1)return!1;var l=i.filter((function(e){return e.parentDeep>=r.deep})).map((function(e){return e.parentDeep})).reverse();if(l.length)for(var u=function(e){var n=i.findIndex((function(t){return t.parentDeep===l[e]}));n>-1&&t.panelOptions.splice(n,1)},a=l.length-1;a>=0;a--)u(a);var c=this.getPanelOptionByMenuId(o,r.id);c&&(this.createPanelOptions({options:c,currentMenu:r}),this.$nextTick((function(){t.addContextmenuPanelToBody({contextmenuId:r.id}),t.showContextmenuPanel({event:n,contextmenuId:r.id})})))},createPanelOptions:function(e){var t=e.options,n=e.currentMenu,r=this.hasChildren,o=this.rootContextmenuId;if(Array.isArray(t)){var i=t.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasChildren:r(e)},e)}));this.panelOptions.push({parentId:n?n.id:o,parentDeep:n?n.deep:k,menus:i})}},createInternalOptionsRecursion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.id=this.getRandomIdWithPrefix(),e.deep=n,n++,Array.isArray(e.children)&&e.children.map((function(e){return t.createInternalOptionsRecursion(e,n)})),e},createInternalOptions:function(){var e=this;this.internalOptions=Object(i.cloneDeep)(this.options).map((function(t){return e.createInternalOptionsRecursion(t)}))},showRootContextmenuPanel:function(e){e.preventDefault();var t=this.rootContextmenuId;t&&(this.resetContextmenu(),this.showContextmenuPanel({event:e,contextmenuId:t,isRootContextmenu:!0}),this.isPanelsEmptyed=!1)},showContextmenuPanel:function(e){var t=e.event,n=e.contextmenuId,r=e.isRootContextmenu,o=this.getParentContextmenuPanelEl,i=document.querySelector("#".concat(n));if(i){i.innerHTML="",i.appendChild(this.$refs[n]),i.style.position="absolute",i.classList.add(D("popper"));var l=i.getBoundingClientRect(),u=l.width,a=l.height;if(r){var c=ee(t),s=c.left,f=c.top,d=c.right,h=c.bottom,p=0,y=0;d>=u?(p=s,this.isPanelRightDirection=!0):(p=s-u,this.isPanelRightDirection=!1),y=h>=a?f:f-a,i.style.left=p+"px",i.style.top=y+"px"}else{var v=o(n);if(v){var m=Q(v),g=m.left,b=m.right,w=ee(t),C=w.top,x=w.bottom,S=v.getBoundingClientRect().width,R=0,O=0;R=this.isPanelRightDirection?b>=u?g+S:g-S:g>=u?g-S:g+S,O=x>=a?C:C-a,i.style.left=R+"px",i.style.top=O+"px"}}}},emptyContextmenuPanels:function(){var e=this;setTimeout((function(){e.isChildrenPanelsClicked?e.isChildrenPanelsClicked=!1:(e.removeOrEmptyPanels(),e.isPanelsEmptyed=!0)}))},removeOrEmptyPanels:function(e){this.panelOptions.forEach((function(t){var n=document.querySelector("#".concat(t.parentId));n&&(e?n.remove():n.innerHTML="")}))},resetContextmenu:function(){this.panelOptions=[],this.createPanelOptions({options:this.internalOptions})},addContextmenuPanelToBody:function(e){var t=e.contextmenuId;if(document.querySelector("#".concat(t)))return!1;var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n)},addRootContextmenuPanelToBody:function(){this.rootContextmenuId&&this.addContextmenuPanelToBody({contextmenuId:this.rootContextmenuId})},registerContextmenuEvent:function(){var e=this.eventTarget;"string"==typeof e&&e.length>0?this.eventTargetEl=document.querySelector(e):this.eventTargetEl=e,this.eventTargetEl&&this.eventTargetEl.addEventListener("contextmenu",this.showRootContextmenuPanel)},removeContextmenuEvent:function(){this.eventTargetEl&&this.eventTargetEl.removeEventListener("contextmenu",this.showRootContextmenuPanel)}},"hideContextmenu",(function(){this.emptyContextmenuPanels()})),created:function(){this.debounceCreatePanelByHover=Object(i.debounce)(this.createPanelByHover,300)},mounted:function(){this.addRootContextmenuPanelToBody()},destroyed:function(){this.removeContextmenuEvent(),this.removeOrEmptyPanels(!0)},render:function(){var e=this,t=arguments[0],n=this.panelOptions,r=this.activeMenuIds,o=this.hasChildren,i=this.emptyContextmenuPanels,l=this.debounceCreatePanelByHover,u={class:["ve-contextmenu"],style:{display:"none"}};return t("div",u,[n.map((function(n,u){var a={ref:n.parentId,class:oe({},D("panel"),!0),directives:[{name:"events-outside",value:{events:["click"],callback:function(e){0===u&&i()}}}],on:{click:function(){0!==u&&(e.isChildrenPanelsClicked=!0)},contextmenu:function(e){e.preventDefault()}}};return t("div",a,[t("ul",{class:D("list")},[n.menus.map((function(n){var u;return u=n.type!==T?{class:oe(oe(oe({},D("node"),!0),D("node-active"),r.includes(n.id)),D("node-disabled"),n.disabled),on:{mouseover:function(e){n.disabled||l({event:e,menu:n})},click:function(){n.disabled||o(n)||(e.$emit(E,n.type),setTimeout((function(){i()}),50))}}}:{class:oe({},D("node-separator"),!0)},n.type!==T?t("li",u,[t("span",{class:D("node-label")},[n.label]),n.hasChildren&&t(Y,{class:D("node-icon-postfix"),attrs:{name:W.RIGHT_ARROW}})]):t("li",u)}))])])}))])},install:function(e){e.component(ie.name,ie)}},le=ie,ue=(n(136),n(46),n(108),{bind:function(e,t,n){if("function"!=typeof t.value){var r="in [clickoutside] directives, provided expression '".concat(t.expression,"' is not a function "),o=n.context.name;o&&(r+="in ".concat(o)),console.error(r)}var i=function(n){if(e.contains(n.target)||e===n.target)return!1;t.value(n)};e.__clickOutSide__=i,document.addEventListener("click",i,!0)},unbind:function(e){document.removeEventListener("click",e.__clickOutSide__,!0),e.__clickOutSide__=null}}),ae="on-radio-change";function ce(e){return"ve-radio-"+e}function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de={name:"VeRadio",props:{value:{type:[String,Number,Boolean],default:null},label:{type:String,default:null},disabled:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value}},computed:{radioClass:function(){return[ce("container"),fe(fe({},ce("checked"),this.internalIsSelected),ce("disabled"),this.disabled)]},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkedChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit(ae,t)},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.label,n=this.radioClass,r=this.checkedChange,o=this.getLabelContent,i=this.internalIsSelected;return e("label",{class:"ve-radio"},[e("span",{class:n},[e("input",{domProps:{checked:i,value:t},class:ce("input"),attrs:{type:"radio"},on:{change:r}}),e("span",{class:ce("inner")})]),e("span",{class:ce("label")},[o()])])},install:function(e){e.component(de.name,de)}},he=de,pe="on-filter-reset",ye="on-filter-confirm",ve="on-dropdown-visible-change",me="on-item-select-change";function ge(e){return"ve-dropdown-"+e}function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce={name:"VeDropdown",directives:{"click-outside":ue},props:{isSelect:{type:Boolean,default:!1},showOperation:{type:Boolean,default:!1},width:{type:Number,default:90},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:1e3},isMultiple:{type:Boolean,default:!1},value:{type:[Array],default:null},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},confirmFilterText:{type:String,default:""},resetFilterText:{type:String,default:""},hideByItemClick:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},isControlled:{type:Boolean,default:!1},isCustomContent:{type:Boolean,default:!1},defaultInstance:{type:Number,default:5},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}},beforeVisibleChange:{type:Function,default:null}},data:function(){return{internalVisible:!1,internalOptions:[],inputValue:"",isDropdownShowTriggerClicked:!1,rootId:"",dropdownItemsPanelId:"",popperAppendToEl:null,appendToElTagName:null}},computed:{isDropdownVisible:function(){return this.isControlled?this.visible:this.internalVisible},getMaxWidth:function(){var e=1/0,t=this.maxWidth,n=this.width;return t&&t>0&&t>n&&(e=t),e},selectedLabels:function(){return this.internalOptions.filter((function(e){return e.selected})).map((function(e){if(e.selected)return e.label}))},operationFilterClass:function(){return we({},ge("filter-disable"),0===this.selectedLabels.length)},dropdownItemsClass:function(){return we(we({},ge("dd"),!0),ge("dd-show"),this.isDropdownVisible)}},watch:{value:function(){this.init()},visible:{handler:function(e){var t=this.isControlled,n=this.showDropDown,r=this.hideDropDown;setTimeout((function(){t&&(e?n():r())}))},immediate:!0}},methods:{init:function(){this.internalOptions=Object.assign([],this.value),this.isInput&&this.setInputValue()},confirm:function(){this.$emit("input",this.internalOptions),this.$emit(ye,this.internalOptions),this.hideDropDown()},reset:function(){this.internalOptions.some((function(e){return e.selected}))&&(this.internalOptions.map((function(e){return e.selected&&(e.selected=!1),e})),this.$emit("input",this.internalOptions),this.$emit(pe,this.internalOptions)),this.hideDropDown()},showDropDown:function(){var e=this.rootId,t=this.dropdownItemsPanelId,n=this.beforeVisibleChangeCallback(!0);if(p(n)&&!n)return!1;var r=document.querySelector("#".concat(e));r&&(r.innerHTML="",r.appendChild(this.$refs[t]),r.style.position="absolute",r.classList.add(ge("popper")),this.changDropdownPanelPosition()),this.internalVisible=!0,this.$emit(ve,!0)},hideDropDown:function(){var e=this,t=this.beforeVisibleChangeCallback(!1);if(p(t)&&!t)return!1;this.$emit(ve,!1),setTimeout((function(){e.internalVisible=!1,e.removeOrEmptyRootPanel()}),150)},beforeVisibleChangeCallback:function(e){var t=this.beforeVisibleChange;if(e!==this.isDropdownVisible&&h(t))return t({nextVisible:e})},removeOrEmptyRootPanel:function(){var e=this.rootId,t=document.querySelector("#".concat(e));t&&(t.innerHTML="")},changDropdownPanelPosition:function(){var e=this.defaultInstance,t=this.rootId,n=this.popperAppendToEl,r=this.appendToElTagName,o=document.querySelector("#".concat(t));if(o){var i=o.getBoundingClientRect(),l=i.width,u=i.height,a=this.$el.querySelector(".ve-dropdown-dt"),c=a.getBoundingClientRect().height;if(!n)return!1;var s="BODY"===r,f=s?Q(a):function(e,t){var n=Q(e),r=n.offsetTop,o=n.offsetLeft,i=n.left,l=n.top,u=n.right,a=n.bottom,c=n.right2,s=n.bottom2,f=Q(t);return{offsetTop:r-f.offsetTop,offsetLeft:o-f.offsetLeft,left:i-f.left,top:l-f.top,right:u-f.right,bottom:a-f.bottom,right2:c-f.right2,bottom2:s-f.bottom2}}(a,n),d=f.offsetLeft,h=f.offsetTop,p=f.right,y=f.bottom,v=0,m=0,g=0,b=0;s||(g=n.scrollLeft,b=n.scrollTop),v=p>=l?d+g:d-l+g,m=y>=u?h+c+e+b:h-u-e+b,o.style.left=v+"px",o.style.top=m+"px"}},setInputValue:function(){var e,t;t=this.selectedLabels,Array.isArray(t)&&t.length>0&&(e=t.join()),this.inputValue=e},dropdownPanelClick:function(){this.isDropdownShowTriggerClicked=!0,this.dropdownShowToggle()},dropdownShowToggle:function(){this.isDropdownVisible?this.hideDropDown():this.showDropDown()},singleSelectOptionClick:function(e,t){this.internalOptions=this.internalOptions.map((function(e){return t.label===e.label?e.selected=!0:e.selected=!1,e})),this.hideByItemClick&&this.hideDropDown(),this.isInput&&this.setInputValue(),this.$emit("input",this.internalOptions),this.$emit(me,this.internalOptions)},getTextAlignClass:function(){return ge("items-li-a-".concat(this.textAlign))},dropdownClickOutside:function(){var e=this;setTimeout((function(){e.isDropdownShowTriggerClicked?e.isDropdownShowTriggerClicked=!1:e.hideDropDown()}))},checkedChangeControl:function(e,t){this.internalOptions=this.internalOptions.map((function(n){return n.label===e.label&&(n.selected=t),n})),this.$emit(me,this.internalOptions)},getRandomIdWithPrefix:function(){return ge(te())},addRootElementToElement:function(){var e=this,t=this.popperAppendTo;if(this.rootId=this.getRandomIdWithPrefix(),this.dropdownItemsPanelId=this.getRandomIdWithPrefix(),document.querySelector("#".concat(this.rootId)))return!1;this.$nextTick((function(){var n=document.createElement("div");n.setAttribute("id",e.rootId),"string"==typeof t&&t.length>0?e.popperAppendToEl=document.querySelector(t):e.popperAppendToEl=t,e.appendToElTagName=e.popperAppendToEl.tagName,e.popperAppendToEl.appendChild(n)}))}},created:function(){this.init()},mounted:function(){var e=this;this.addRootElementToElement(),this.$nextTick((function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).addEventListener("scroll",e.changDropdownPanelPosition)})),window.addEventListener("resize",this.changDropdownPanelPosition)},destroyed:function(){var e=this;this.removeOrEmptyRootPanel(),this.$nextTick((function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).removeEventListener("scroll",e.changDropdownPanelPosition)})),window.removeEventListener("resize",this.changDropdownPanelPosition)},render:function(){var e=this,t=arguments[0],n=this.isMultiple,r=this.getTextAlignClass,o=this.internalOptions,i=this.isSelect,l=this.width,u=this.maxHeight,a=this.dropdownPanelClick,c=this.getMaxWidth,s=this.reset,f=this.singleSelectOptionClick,d=this.showOperation,h=this.isCustomContent,p=this.dropdownItemsClass,y=this.dropdownItemsPanelId,v="";v=n?o.map((function(n,o){var i={key:n.label,props:{isControlled:!0,label:n.label,showLine:n.showLine,isSelected:n.selected},on:{"on-checked-change":function(t){return e.checkedChangeControl(n,t)}}};return t("li",{key:o,class:[ge("items-multiple"),ge("items-li"),r()]},[t(R,i)])})):o.map((function(n,o){var i={props:{isControlled:!0,isSelected:n.selected},on:{"on-radio-change":function(){}}};return t("li",{key:o,class:[ge("items-li"),n.selected?"active":""],on:{click:function(e){return f(e,n)}}},[t("a",{class:[ge("items-li-a"),r()],attrs:{href:"javascript:void(0);"}},[e.showRadio?t(he,i,[n.label]):n.label])])}));var m={class:["ve-dropdown"]},g={ref:y,class:p,directives:[{name:"click-outside",value:this.dropdownClickOutside}]};return t("dl",m,[t("dt",{class:"ve-dropdown-dt",on:{click:a}},[t("a",{class:[i?ge("dt-selected"):""],style:{width:l+"px"}},[this.$slots.default])]),t("div",{style:{display:"none"}},[t("dd",g,[t("ul",{class:ge("items"),style:{"min-width":l+"px","max-width":c+"px"}},[h&&this.$slots["custom-content"],!h&&t("div",[t("div",{style:{"max-height":u+"px"},class:ge("items-warpper")},[v]),d&&t("li",{class:ge("operation")},[t("a",{class:[ge("operation-item"),this.operationFilterClass],attrs:{href:"javascript:void(0)"},on:{click:s}},[this.resetFilterText]),t("a",{class:ge("operation-item"),attrs:{href:"javascript:void(0)"},on:{click:this.confirm}},[this.confirmFilterText])])])])])])])},install:function(e){e.component(Ce.name,Ce)}},xe=Ce,Se="VeLoading",Re={PLANE:"plane",GRID:"grid",WAVE:"wave",FLOW:"flow",BOUNCE:"bounce",PULSE:"pulse"};function Oe(e){return"ve-loading-"+e}function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie={name:Se,components:{Plane:{name:"VeLoadingPlane",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:v(t),height:v(n),"background-color":e}}},render:function(){var e=arguments[0];return e("div",{style:this.spinStyle,class:Oe("plane")})}},Bounce:{name:"VeLoadingBounce",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:v(e),height:v(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:Oe("bounce")},[e("div",{style:n,class:Oe("bounce-dot")}),e("div",{style:n,class:Oe("bounce-dot")})])}},Wave:{name:"VeLoadingWave",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:v(e),height:v(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:Oe("wave")},[e("div",{style:n,class:Oe("wave-rect")}),e("div",{style:n,class:Oe("wave-rect")}),e("div",{style:n,class:Oe("wave-rect")}),e("div",{style:n,class:Oe("wave-rect")}),e("div",{style:n,class:Oe("wave-rect")})])}},Pulse:{name:"VeLoadingPulse",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:v(t),height:v(n),"background-color":e}}},render:function(){var e=arguments[0];return e("div",{style:this.spinStyle,class:Oe("pulse")})}},Flow:{name:"VeLoadingFlow",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:v(e),height:v(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:Oe("flow")},[e("div",{style:n,class:Oe("flow-dot")}),e("div",{style:n,class:Oe("flow-dot")}),e("div",{style:n,class:Oe("flow-dot")})])}},Grid:{name:"VeLoadingGrid",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:v(e),height:v(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:Oe("grid")},[e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")}),e("div",{style:n,class:Oe("grid-cube")})])}}},computed:{loadingClass:function(){var e=this.visible,t=this.fullscreen;return Ke(Ke(Ke({},Oe("overlay"),!0),Oe("fixed"),t),Oe("hide"),!e)},loadingStyle:function(){return{"background-color":this.overlayBackgroundColor}}},render:function(){var e=arguments[0],t=this.width,n=this.height,r=this.color,o={props:{width:t,height:n,color:r}};return e("div",{style:this.loadingStyle,class:["ve-loading",this.loadingClass]},[e("div",{class:Oe("spin-container")},[e("div",{class:Oe("spin")},[e(this.name,o)]),e("div",{style:{color:r},class:Oe("spin-tip")},[this.tip])])])}},Ee={name:"plane",visible:!1,color:"#1890ff",overlayBackgroundColor:"rgba(255, 255, 255, 0.5)",width:40,height:40,tip:"",fullscreen:!1,target:"",lock:!1,parent__:null},ke=Oe("parent-relative"),Te=Oe("parent-lock"),De=o.a.extend(Ie);function je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new De({el:document.createElement("div"),data:e})}function Ae(e){Object.values(Re).includes(e)||console.error("".concat(e," is not found in ").concat(Se,"."))}De.prototype.show=function(){var e=this;o.a.nextTick((function(){e.lock&&X(e.parent__,Te),e.visible=!0}))},De.prototype.close=function(){var e=this;o.a.nextTick((function(){e.lock&&J(e.parent__,Te),e.visible=!1}))},De.prototype.destroy=function(){J(this.parent__,ke),J(this.parent__,Te),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.$destroy(),this.visible=!1};var Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof(e=Object.assign({},Ee,e)).target&&e.target.length>0&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,Ae(e.name),e.target!==document.body?e.fullscreen=!1:e.fullscreen=!0;var t=je(e);return e.parent__=e.fullscreen?document.body:e.target,X(e.parent__,ke),e.parent__.appendChild(t.$el),t};Pe.install=function(e){e.prototype.$veLoading=Pe};var Be=Pe,Ne=(n(50),n(137),n(51),"on-page-number-change"),Me="on-page-size-change";function Fe(e){return"ve-pagination-"+e}var Le=c("pagination"),Ve={props:{pageCount:{type:Number,required:!0},pageIndex:{type:Number,required:!0},pagingCount:{type:Number,required:!0}},computed:{numOffset:function(){return Math.floor((this.pagingCount+2)/2)-1},showJumpPrev:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex>this.pagingCount},showJumpNext:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex<=this.pageCount-this.pagingCount},pagingCounts:function(){var e=[],t=this.showJumpPrev,n=this.showJumpNext;if(t&&!n)for(var r=this.pageCount-this.pagingCount;r<this.pageCount;r++)e.push(r);else if(!t&&n)for(var o=2;o<this.pagingCount+2;o++)e.push(o);else if(t&&n)for(var i=this.pageIndex-this.numOffset;i<=this.pageIndex+this.numOffset;i++)e.push(i);else for(var l=2;l<this.pageCount;l++)e.push(l);return e}},methods:{jumpPage:function(e){this.$emit("jumpPageHandler",e)}},render:function(){var e=arguments[0],t=this.pageIndex,n=this.jumpPage,r=this.showJumpPrev,o=this.pagingCount,i=this.pagingCounts,l=this.showJumpNext,u=this.pageCount;return e("span",{class:Fe("pager")},[e("li",{class:[1===t?Fe("li-active"):"",Fe("li")],on:{click:function(){return n(1)}}},[e("a",["1"])]),r&&e("li",{class:[1===t?"disabled":"",Fe("li"),Fe("jump-prev")],attrs:{title:Le("prev5",o)},on:{click:function(){return n(t-o)}}},[e("a",[e(Y,{attrs:{name:W.DOUBLE_LEFT_ARROW}})])]),i.map((function(r,o){return e("li",{key:o,class:[r===t?Fe("li-active"):"",Fe("li")],on:{click:function(){return n(r)}}},[e("a",[r])])})),l&&e("li",{class:[Fe("li"),Fe("jump-next")],attrs:{title:Le("next5",o)},on:{click:function(){return n(t+o)}}},[e("a",[e(Y,{attrs:{name:W.DOUBLE_RIGHT_ARROW}})])]),u>1&&e("li",{class:[t===u?Fe("li-active"):"",Fe("li")],on:{click:function(){return n(u)}}},[e("a",[u])])])}},He="on-select-change";function We(e){return"ve-select-"+e}function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qe={name:"VeSelect",props:{width:{type:Number,default:90},maxWidth:{type:Number,default:0},isMultiple:{type:Boolean,default:!1},value:{type:Array,default:null},placeholder:{type:String,default:"请选择",validator:function(e){return e.length>0}},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{visible:!1,internalOptions:[],inputValue:"",dropdownVisible:!1}},computed:{iconClass:function(){return $e($e({},We("show"),this.dropdownVisible),We("toggle-icon"),!0)}},watch:{value:function(){this.init()}},methods:{init:function(){this.internalOptions=Object.assign([],this.value)},showSelectInfo:function(){var e;return e=this.selectedLabels(),Array.isArray(e)&&e.length>0?e.join():this.placeholder},selectedLabels:function(){return this.internalOptions.filter((function(e){return e.selected})).map((function(e){if(e.selected)return e.label}))},dropdownChange:function(){this.$emit("input",this.internalOptions),this.$emit(He,this.internalOptions)}},created:function(){this.init()},render:function(){var e=this,t=arguments[0],n=this.isInput,r={class:"ve-select",props:{isSelect:!0,width:this.width,maxWidth:this.maxWidth,isMultiple:this.isMultiple,textAlign:this.textAlign,isInput:this.isInput,value:this.internalOptions,hideByItemClick:!0,popperAppendTo:this.popperAppendTo},style:{width:this.width},on:{input:function(t){e.internalOptions=t,e.dropdownChange()},"dropdown-visible-change":function(t){e.dropdownVisible=t}}},o="";return o=n?t("input",{class:We("input"),attrs:{placeholder:this.placeholder,type:"text"},directives:[{name:"model",value:this.inputValue}]}):t("span",{class:We("selected-span")},[this.showSelectInfo()]),t(xe,r,[t("span",[o,t(Y,{attrs:{name:W.BOTTOM_ARROW},class:this.iconClass})])])},install:function(e){e.component(qe.name,qe)}},Ue=qe,Ge=c("pagination"),Ye={name:"VePagination",components:{Total:{render:function(){var e=arguments[0];return e("span",{class:Fe("total")},[Ge("total",this.$parent.total)])}},Prev:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.prevPage},class:[1===this.$parent.newPageIndex?Fe("disabled"):"",Fe("li"),Fe("prev")]},[e("a",[e(Y,{attrs:{name:W.LEFT_ARROW}})])])}},Pager:Ve,Next:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.nextPage},class:[this.$parent.newPageIndex===this.$parent.pageCount?Fe("disabled"):"",Fe("li"),Fe("next")]},[e("a",[e(Y,{attrs:{name:W.RIGHT_ARROW}})])])}},Sizer:{render:function(){var e=arguments[0];return e(Ue,{class:Fe("select"),attrs:{value:this.$parent.newPageSizeOption,popperAppendTo:this.$parent.popperAppendTo},on:{input:this.handleChange}})},methods:{handleChange:function(e){if(Array.isArray(e)&&e.length>0){var t=e.find((function(e){return e.selected}));t&&this.$parent.pageSizeChangeHandler(t.value)}}}},Jumper:{methods:{jumperEnter:function(e){if(13===e.keyCode){var t=this.$parent.getValidNum(e.target.value);e.target.value=t,this.$parent.jumpPageHandler(t)}}},render:function(){var e=arguments[0];return e("span",{class:Fe("goto")},[" ",Ge("goto")," ",e("input",{class:Fe("goto-input"),domProps:{value:this.$parent.newPageIndex},on:{keyup:this.jumperEnter},attrs:{type:"input"}})," ",Ge("page")," "])}}},props:{layout:{type:Array,default:function(){return["total","prev","pager","next","sizer","jumper"]}},total:{type:Number,required:!0},pageIndex:{type:Number,default:1},pagingCount:{type:Number,default:5},pageSize:{type:Number,default:10},pageSizeOption:{type:Array,default:function(){return[10,20,30]}},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{newPageIndex:this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1,newPageSize:this.pageSize}},computed:{pageCount:function(){return Math.ceil(this.total/this.newPageSize)},newPageSizeOption:function(){var e=this;return this.pageSizeOption.map((function(t){var n={};return n.value=t,n.label=t+Ge("itemsPerPage"),e.newPageSize==t&&(n.selected=!0),n}))}},watch:{pageIndex:function(e){this.newPageIndex=e},pageSize:function(e){this.newPageSize=e}},methods:{getValidNum:function(e){return e=parseInt(e,10),isNaN(e)||e<1||e<1?1:e>this.pageCount?this.pageCount:e},jumpPageHandler:function(e){this.newPageIndex=e,this.$emit(Ne,this.newPageIndex)},prevPage:function(){this.newPageIndex>1&&(this.newPageIndex=this.newPageIndex-1,this.$emit(Ne,this.newPageIndex))},nextPage:function(){this.newPageIndex<this.pageCount&&(this.newPageIndex=this.newPageIndex+1,this.$emit(Ne,this.newPageIndex))},pageSizeChangeHandler:function(){var e=this.newPageSizeOption.find((function(e){return e.selected}));e&&(this.newPageSize=e.value,this.newPageIndex=1,this.$emit(Me,this.newPageSize))},goBackPageIndex:function(){this.newPageIndex=this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1},goBackPageSize:function(){this.pageSize>0&&(this.newPageSize=this.pageSize)}},render:function(){var e=arguments[0],t=e("ul",{class:"ve-pagination"}),n={total:e("total"),prev:e("prev"),pager:e("pager",{attrs:{pageCount:this.pageCount,pageIndex:this.newPageIndex,pagingCount:this.pagingCount},on:{jumpPageHandler:this.jumpPageHandler}}),next:e("next"),sizer:e("sizer"),jumper:e("jumper",{on:{jumpPageHandler:this.jumpPageHandler}})};return t.children=t.children||[],this.layout.forEach((function(e){t.children.push(n[e])})),t},install:function(e){e.component(Ye.name,Ye)}},Xe=Ye,Je=(n(174),n(109),n(61),n(227),n(47),n(111),n(235),"expand"),Ze="checkbox",Qe="radio",et="left",tt="right",nt="icon",rt="cell",ot="row",it="up",lt="right",ut="down",at="left",ct="up",st="right",ft="down",dt="left",ht="single",pt="range",yt="on-body-cell-width-change",vt="on-header-row-height-change",mt="on-footer-row-height-change",gt="on-body-row-height-change",bt="on-body-row-click",wt="on-body-cell-click",Ct="on-body-cell-mouseover",xt="on-body-cell-mousedown",St="on-body-cell-mousemove",Rt="on-body-cell-mouseup",Ot="on-body-cell-double-click",_t="on-body-cell-contextmenu",Kt="on-expand-row-change",It="on-checkbox-selected-row-change",Et="on-checkbox-selected-all-change",kt="on-checkbox-selected-all-info",Tt="on-radio-selected-row-change",Dt="on-sort-change",jt="on-cell-selection-range-data-change",At="on-filter-confirm",Pt="on-filter-reset",Bt="on-header-cell-click",Nt="on-header-cell-contextmenu",Mt="on-header-cell-mousedown",Ft="on-header-cell-mouseover",Lt="on-header-cell-mousemove",Vt="on-header-cell-mouseleave",Ht="on-highlight-row-change",Wt="on-edit-input-click",zt="on-edit-input-value-change",$t="on-edit-input-copy",qt="on-edit-input-paste",Ut="on-edit-input-cut",Gt="selection-corner-mousedown",Yt="selection-corner-mouseup",Xt="autofilling-direction-change",Jt="table-container-scroll",Zt="table-size-change",Qt="table-cell-width-change",en="clipboard-cell-value-change",tn="header-cell-mousemove",nn="body-cell-mousemove",rn="VeTable",on="VeTableHeader",ln="VeTableHeaderTr",un="VeTableHeaderTh",an="VeTableHeaderCheckboxContent",cn="VeTableHeaderFilterContent",sn="VeTableHeaderFilterCustomContent",fn="VeTableBody",dn="VeTableBodyTr",hn="VeTableBodyTrScrolling",pn="VeTableBodyCheckboxContent",yn="VeTableBodyRadioContent",vn="VeTableBodyTd",mn="VeTableColgroup",gn="VeTableFooter",bn="VeTableExpandTr",wn="VeTableExpandTrIcon",Cn="VeTableEditInput",xn="VeTableSelection",Sn="VeTableColumnResizer",Rn="row-key",On="col-key",_n="scrollTo",Kn="scrollToRowKey",In="scrollToColKey",En="startEditingCell",kn="stopEditingCell",Tn="setHighlightRow",Dn="setCellSelection",jn="setRangeCellSelection",An="getRangeCellSelection",Pn="setAllCellSelection",Bn="hideColumnsByKeys",Nn="showColumnsByKeys",Mn="headerContextmenu",Fn="bodyContextmenu",Ln={SEPARATOR:"SEPARATOR",CUT:"CUT",COPY:"COPY",INSERT_ROW_ABOVE:"INSERT_ROW_ABOVE",INSERT_ROW_BELOW:"INSERT_ROW_BELOW",REMOVE_ROW:"REMOVE_ROW",EMPTY_ROW:"EMPTY_ROW",EMPTY_COLUMN:"EMPTY_COLUMN",EMPTY_CELL:"EMPTY_CELL",LEFT_FIXED_COLUMN_TO:"LEFT_FIXED_COLUMN_TO",CANCEL_LEFT_FIXED_COLUMN_TO:"CANCEL_LEFT_FIXED_COLUMN_TO",RIGHT_FIXED_COLUMN_TO:"RIGHT_FIXED_COLUMN_TO",CANCEL_RIGHT_FIXED_COLUMN_TO:"CANCEL_RIGHT_FIXED_COLUMN_TO"};function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Vn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function zn(e){return"ve-table-"+e}function $n(e,t){var n=null;return e&&t&&(n=e[t]),n}function qn(e,t){return e?t.find((function(t){return t.key===e})):null}function Un(e,t){if(!f(e)&&!s(t)){var n=t[0];if(n.key===e&&n.operationColumn)return!0}return!1}function Gn(e,t){var n=e;return(n||0==n)&&(n=e+"@"+t),n}function Yn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,o=t.findIndex((function(e){return e.key===n})),i=0;return r===et?i=t.reduce((function(e,t,n){return n<o&&t.fixed==et?t._realTimeWidth+e:e}),0):r===tt&&(i=t.reduce((function(e,t,n){return n>o&&t.fixed==tt?t._realTimeWidth+e:e}),0)),i}function Xn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,o=t.findIndex((function(e){return e.key===n})),i=0;return r===et?i=t.reduce((function(e,t,n){return n<o&&!t.fixed?t._realTimeWidth+e:e}),0):r===tt&&(i=t.reduce((function(e,t,n){return n>o&&!t.fixed?t._realTimeWidth+e:e}),0)),i}function Jn(e){var t=e.colKeys;return e.colgroups.reduce((function(e,n,r){return t.indexOf(n.key)>-1?n._realTimeWidth+e:e}),0)}function Zn(e){var t=e.column,n=e.contextmenuHeaderOption,r=e.cellSelectionRangeData,o=e.colgroups,i=e.allRowKeys,l=e.headerIndicatorColKeys,u=e.enableHeaderContextmenu,a=e.t,c=[];if(u){var s=ur({cellSelectionRangeData:r}),d=ar({cellSelectionRangeData:r,colgroups:o,allRowKeys:i}),p=Un(t.key,o),y=d.endColIndex-d.startColIndex+1,v=n.contextmenus,m=n.beforeShow,g=!f(l.startColKey),b=or({fixedType:et,colgroups:o,isExcludeOperationColumn:!0}),w=or({fixedType:tt,colgroups:o,isExcludeOperationColumn:!0});h(m)&&m({isWholeColSelection:g,selectionRangeKeys:s,selectionRangeIndexes:d});var C=function(e){return[{type:Ln.SEPARATOR},{label:e("cut"),type:Ln.CUT},{label:e("copy"),type:Ln.COPY},{label:e("removeColumn"),type:Ln.REMOVE_COLUMN},{label:e("emptyColumn"),type:Ln.EMPTY_COLUMN},{label:e("hideColumn"),type:Ln.HIDE_COLUMN},{label:e("leftFixedColumnTo"),type:Ln.LEFT_FIXED_COLUMN_TO},{label:e("cancelLeftFixedColumnTo"),type:Ln.CANCEL_LEFT_FIXED_COLUMN_TO},{label:e("rightFixedColumnTo"),type:Ln.RIGHT_FIXED_COLUMN_TO},{label:e("cancelRightFixedColumnTo"),type:Ln.CANCEL_RIGHT_FIXED_COLUMN_TO}]}(a);v.forEach((function(e){var t=C.find((function(t){return t.type===e.type}));if(t){var n=!0;t.type===Ln.EMPTY_COLUMN?g?t.label=t.label.replace("$1",y):n=!1:t.type===Ln.LEFT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Ln.CANCEL_LEFT_FIXED_COLUMN_TO?b.length<1&&(t.disabled=!0):t.type===Ln.RIGHT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Ln.CANCEL_RIGHT_FIXED_COLUMN_TO&&w.length<1&&(t.disabled=!0),n&&c.push(t)}else c.push(e)}))}return c}function Qn(e){var t=e.enableBodyContextmenu,n=e.contextmenuBodyOption,r=e.cellSelectionRangeData,o=e.colgroups,i=e.allRowKeys,l=e.bodyIndicatorRowKeys,u=e.t,a=[];if(t){var c=ur({cellSelectionRangeData:r}),s=ar({cellSelectionRangeData:r,colgroups:o,allRowKeys:i}),d=s.endRowIndex-s.startRowIndex+1,p=s.endColIndex-s.startColIndex+1,y=n.contextmenus,v=n.beforeShow,m=!f(l.startRowKey);h(v)&&v({isWholeRowSelection:m,selectionRangeKeys:c,selectionRangeIndexes:s});var g=function(e){return[{type:Ln.SEPARATOR},{label:e("cut"),type:Ln.CUT},{label:e("copy"),type:Ln.COPY},{label:e("insertRowAbove"),type:Ln.INSERT_ROW_ABOVE},{label:e("insertRowBelow"),type:Ln.INSERT_ROW_BELOW},{label:e("removeRow"),type:Ln.REMOVE_ROW},{label:e("emptyRow"),type:Ln.EMPTY_ROW},{label:e("removeColumn"),type:Ln.REMOVE_COLUMN},{label:e("emptyCell"),type:Ln.EMPTY_CELL}]}(u);y.forEach((function(e){var t=g.find((function(t){return t.type===e.type}));if(t){var n=!0;t.type===Ln.REMOVE_ROW?t.label=t.label.replace("$1",d):t.type===Ln.EMPTY_ROW?m?t.label=t.label.replace("$1",d):n=!1:t.type===Ln.EMPTY_CELL?n=!m:t.type===Ln.REMOVE_COLUMN&&(m?n=!1:t.label=t.label.replace("$1",p)),n&&a.push(t)}else a.push(e)}))}return a}function er(e){var t=e.colgroups,n=Hn({},e.rowKeyFieldName,te());return t.forEach((function(e){e.field&&(n[e.field]="")})),n}function tr(e){var t=null;return(t=e.headerColumnItem._keys.split("|")).length>1&&(t=t.slice(0,t.length-1)),t}function nr(e){var t=e.colKey1,n=e.colKey2,r=e.colgroups,o=null,i=r.findIndex((function(e){return e.key===t})),l=r.findIndex((function(e){return e.key===n}));if(-1!==i&&-1!==i){var u=i<l?i:l,a=i<l?l:i;o=r.slice(u,a+1).map((function(e){return e.key}))}return o}function rr(e){var t=e.colKeys,n=e.fixedType,r=e.colgroups,o=null;return Array.isArray(t)&&(o=r.filter((function(e){return t.indexOf(e.key)>-1&&e.fixed===n})).map((function(e){return e.key}))),o}function or(e){var t=e.fixedType,n=e.colgroups,r=e.isExcludeOperationColumn;return n.filter((function(e){var n=e.fixed===t;return r?n&&!e.operationColumn:n})).map((function(e){return e.key}))}function ir(e){var t=e.topRowKey,n=e.bottomRowKey,r=e.allRowKeys,o=null,i=r.findIndex((function(e){return e===t})),l=r.findIndex((function(e){return e===n}));return-1!==i&&-1!==l&&(o=r.slice(i,l+1)),o}function lr(e){var t=e.cellData,n=e.cellSelectionRangeData,r=e.colgroups,o=e.allRowKeys,i=n.leftColKey,l=n.rightColKey,u=n.topRowKey,a=n.bottomRowKey,c=nr({colKey1:i,colKey2:l,colgroups:r}),s=ir({topRowKey:u,bottomRowKey:a,allRowKeys:o});return c.indexOf(t.colKey)>-1&&s.indexOf(t.rowKey)>-1}function ur(e){var t=e.cellSelectionRangeData;return{startColKey:t.leftColKey,endColKey:t.rightColKey,startRowKey:t.topRowKey,endRowKey:t.bottomRowKey}}function ar(e){var t=e.cellSelectionRangeData,n=e.colgroups,r=e.allRowKeys,o=t.leftColKey,i=t.rightColKey,l=t.topRowKey,u=t.bottomRowKey;return{startColIndex:n.findIndex((function(e){return e.key===o})),endColIndex:n.findIndex((function(e){return e.key===i})),startRowIndex:r.indexOf(l),endRowIndex:r.indexOf(u)}}function cr(e){var t=e.cellSelectionRangeData,n=e.resultType,r=void 0===n?"normal":n,o=e.tableData,i=e.colgroups,l=e.allRowKeys,u=t.leftColKey,a=t.rightColKey,c=t.topRowKey,s=t.bottomRowKey,f=i.findIndex((function(e){return e.key===u})),d=i.findIndex((function(e){return e.key===a})),h=l.indexOf(c),p=l.indexOf(s),y=i.slice(f,d+1).map((function(e){return e.field}));return"normal"===r?o.slice(h,p+1).map((function(e){var t={};return y.forEach((function(n){var r;t[n]=null!==(r=e[n])&&void 0!==r?r:""})),t})):o.slice(h,p+1).map((function(e){var t=[];return y.forEach((function(n){var r;t.push(null!==(r=e[n])&&void 0!==r?r:"")})),t}))}function sr(e){var t=e.fixedType,n=e.colKeys,r=e.colgroups,o=!1;return Array.isArray(n)&&(o=r.some((function(e){return n.indexOf(e.key)>-1&&e.fixed===t}))),o}function fr(e){var t=e.colKeys,n=e.colgroups,r=!1;return Array.isArray(t)&&(r=n.filter((function(e){return!e.fixed&&t.indexOf(e.key)>-1})).length),r}function dr(e){var t=e.type,n=e.colgroups,r=e.colKeys,o=null;if(Array.isArray(r)&&r.length){var i={colKey:null,colIndex:null};r.forEach((function(e){var r=n.findIndex((function(t){return t.key===e}));if(-1===r)return console.warn("getLeftmostOrRightmostColKey error:: can't find colKey:".concat(e)),!1;f(i.colKey)?i={colKey:e,colIndex:r}:"leftmost"===t?r<i.colIndex&&(i={colKey:e,colIndex:r}):"rightmost"===t&&r>i.colIndex&&(i={colKey:e,colIndex:r})})),o=i.colKey}return o}function hr(e){return dr({type:"leftmost",colgroups:e.colgroups,colKeys:e.colKeys})}function pr(e){var t,n=e.isReplaceData,r=e.tableData,o=e.allRowKeys,i=e.colgroups,l=e.direction,u=e.rowKeyFieldName,a=e.cellSelectionRangeData,c=e.nextCurrentCell,s=e.nextNormalEndCell,f=a.leftColKey,d=a.rightColKey,h=a.topRowKey,p=a.bottomRowKey,y={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1},v={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1};if(y.startRowIndex=o.indexOf(h),y.endRowIndex=o.indexOf(p),y.startColIndex=i.findIndex((function(e){return e.key===f})),y.endColIndex=i.findIndex((function(e){return e.key===d})),t=r.slice(y.startRowIndex,y.endRowIndex+1),l===ct){if(v.startRowIndex=o.indexOf(c.rowKey),v.endRowIndex=y.startRowIndex-1,v.startColIndex=y.startColIndex,v.endColIndex=y.endColIndex,n)for(var m=t.length-1,g=v.endRowIndex;g>=v.startRowIndex;g--){for(var b=v.startColIndex;b<=v.endColIndex;b++){var w=i[b].field;m<0&&(m=t.length-1),r[g][w]=t[m][w]}--m}}else if(l===ft){if(v.startRowIndex=y.endRowIndex+1,v.endRowIndex=o.indexOf(s.rowKey),v.startColIndex=y.startColIndex,v.endColIndex=y.endColIndex,n)for(var C=0,x=v.startRowIndex;x<=v.endRowIndex;x++){for(var S=v.startColIndex;S<=v.endColIndex;S++){var R=i[S].field;C>t.length-1&&(C=0),r[x][R]=t[C][R]}++C}}else if(l===dt){if(v.startRowIndex=y.startRowIndex,v.endRowIndex=y.endRowIndex,v.startColIndex=i.findIndex((function(e){return e.key===c.colKey})),v.endColIndex=y.startColIndex-1,n)for(var O=0,_=v.startRowIndex;_<=v.endRowIndex;_++){for(var K=y.endColIndex,I=v.endColIndex;I>=v.startColIndex;I--){var E=i[I].field;K<y.startColIndex&&(K=y.endColIndex),r[_][E]=t[O][i[K].field],--K}++O}}else if(l===st&&(v.startRowIndex=y.startRowIndex,v.endRowIndex=y.endRowIndex,v.startColIndex=y.endColIndex+1,v.endColIndex=i.findIndex((function(e){return e.key===s.colKey})),n))for(var k=0,T=v.startRowIndex;T<=v.endRowIndex;T++){for(var D=y.startColIndex,j=v.startColIndex;j<=v.endColIndex;j++){var A=i[j].field;D>y.startColIndex+(y.endColIndex-y.startColIndex)&&(D=y.startColIndex),r[T][A]=t[k][i[D].field],++D}++k}var P={direction:l,sourceSelectionRangeIndexes:y,targetSelectionRangeIndexes:v,sourceSelectionData:[],targetSelectionData:[]},B=i.slice(y.startColIndex,y.endColIndex+1).map((function(e){return e.field}));P.sourceSelectionData=r.slice(y.startRowIndex,y.endRowIndex+1).map((function(e){var t=Hn({},u,e[u]);return B.forEach((function(n){t[n]=e[n]})),t}));var N=i.slice(v.startColIndex,v.endColIndex+1).map((function(e){return e.field}));return P.targetSelectionData=r.slice(v.startRowIndex,v.endRowIndex+1).map((function(e){var t=Hn({},u,e[u]);return N.forEach((function(n){t[n]=e[n]})),t})),P}function yr(e){var t,n=e.cloneColumns,r=e.cellSelectionRangeData,o=e.fixedType,i=e.colgroups,l=e.enableColumnResize,u=n,a=r.leftColKey,c=r.rightColKey;et===o?t=c:tt===o&&(t=a);var s=n.findIndex((function(e){return 1===e._level&&e.key===t||(tr({headerColumnItem:e}).indexOf(t)>-1||void 0)}));if(s>-1){var d=n[s].fixed;if(!f(d)&&d!==o)return!1;u=n.map((function(e,t){if(e.fixed===o&&(e.fixed=""),l&&(!Array.isArray(e.children)||!e.children.length)){var r=i.find((function(t){return t.key===e.key&&!f(t.key)}));r&&(e.width=r._columnResizeWidth)}return et===o?t<=s&&t<n.length&&(e.fixed=o):t>=s&&t>0&&(e.fixed=o),e}))}return u}function vr(e){var t=e.cloneColumns,n=e.colgroups,r=e.fixedType,o=e.enableColumnResize;return t.map((function(e){if(o&&(!Array.isArray(e.children)||!e.children.length)){var t=n.find((function(t){return t.key===e.key&&!f(t.key)}));t&&(e.width=t._columnResizeWidth)}return et===r?e.fixed!==r||Un(e.key,n)||(e.fixed=""):e.fixed===r&&(e.fixed=""),e}))}n(236),n(238),n(239);var mr=/^(\r\n|\n\r|\r|\n)/,gr=/^[^\t\r\n]+/,br=/^\t/;function wr(e){var t,n,r,o,i,l="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(l+="\t"),"string"==typeof(i=e[t][r])?i.indexOf("\n")>-1?l+='"'.concat(i.replace(/"/g,'""'),'"'):l+=i:l+=null==i?"":i;t!==n-1&&(l+="\n")}return l}function Cr(e){var t,n=e.event,r=e.cellSelectionRangeData,o=e.colgroups,i=e.allRowKeys;if(n.clipboardData?t=n.clipboardData.getData("text/plain"):window.clipboardData&&(t=window.clipboardData.getData("Text")),"string"!=typeof t)return null;var l=function(e){var t=[[""]];if(0===e.length)return t;for(var n,r=0,o=0;e.length>0&&n!==e.length;)if(n=e.length,e.match(br))e=e.replace(br,""),r+=1,t[o][r]="";else if(e.match(mr))e=e.replace(mr,""),r=0,t[o+=1]=[""];else{var i="";if(e.startsWith('"')){for(var l=0,u=!0;u;){var a=e.slice(0,1);'"'===a&&(l+=1),i+=a,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&l%2==0)&&(u=!1)}i=i.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")}))}else{var c=e.match(gr);i=c?c[0]:"",e=e.slice(i.length)}t[o][r]=i}return Array.isArray(t)&&t.length>1&&1===t[t.length-1].length&&""===t[t.length-1][0]&&(t=t.slice(0,t.length-1)),t}(t),u=o.findIndex((function(e){return e.key===r.leftColKey})),a=Math.min(u+l[0].length-1,o.length-1),c=i.indexOf(r.topRowKey),s=Math.min(c+l.length-1,i.length-1),f={selectionRangeIndexes:{startColIndex:u,endColIndex:a,startRowIndex:c,endRowIndex:s},selectionRangeKeys:{startColKey:o[u].key,endColKey:o[a].key,startRowKey:i[c],endRowKey:i[s]},data:[]},d=o.slice(u,a+1).map((function(e){return e.field}));return f.data=l.slice(0,s-c+1).map((function(e){var t={};return e.forEach((function(e,n){n<=a-u&&(t[d[n]]=e)})),t})),f}n(240);var xr,Sr=(xr="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||xr.webkitRequestAnimationFrame||xr.mozRequestAnimationFrame||xr.oRequestAnimationFrame||xr.msRequestAnimationFrame||function(e){return xr.setTimeout(e,1e3/60)},Rr=xr.cancelAnimationFrame||xr.webkitCancelAnimationFrame||xr.mozCancelAnimationFrame||xr.oCancelAnimationFrame||xr.msCancelAnimationFrame||function(e){xr.clearTimeout(e)},Or=Sr,_r=Rr;function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Er(r.key),r)}}function Er(e){var t=function(e,t){if("object"!=Kr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kr(t)?t:t+""}var kr,Tr,Dr,jr=(kr=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks={}},(Tr=[{key:"addHook",value:function(e,t){var n;this.hooks[e]||(this.hooks[e]=[]),n=this.hooks[e];for(var r=!1,o=0;o<n.length;o++)if(n[o]===t){r=!0;break}r?console.warn("Repeat hook name:".concat(e)):n.push(t)}},{key:"triggerHook",value:function(e){var t=this.hooks[e];if(t&&t.length){var n=Array.prototype.slice.call(arguments);t.forEach((function(e){e.apply(null,n.slice(1))}))}}}])&&Ir(kr.prototype,Tr),Dr&&Ir(kr,Dr),Object.defineProperty(kr,"prototype",{writable:!1}),kr);function Ar(e){var t=null;if(!e)return t;var n=void 0!==e.which?e.which:e.button;return 1==n?t=z:2==n?t=$:3==n&&(t=q),t}function Pr(e,t,n){this.$children.forEach((function(r){r.$options.name===e?r.$emit.apply(r,[t].concat(n)):Pr.apply(r,[e,t].concat([n]))}))}var Br={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,o=r.$options.name;r&&(!o||o!==e);)(r=r.$parent)&&(o=r.$options.name);r?r.$emit.apply(r,[t].concat(n)):console.error("".concat(e," was not found."))},broadcast:function(e,t,n){Pr.call(this,e,t,n)}}},Nr={name:mn,props:{colgroups:{type:Array,required:!0},enableColumnResize:{type:Boolean,required:!0}},methods:{getValByUnit:function(e){return v(this.enableColumnResize&&e._columnResizeWidth?e._columnResizeWidth:e.width)}},render:function(){var e=this,t=arguments[0];return t("colgroup",[this.colgroups.map((function(n){return t("col",{key:n.key,style:{width:e.getValByUnit(n)}})}))])}},Mr=(n(256),{name:an,mixins:[Br],props:{checkboxOption:{type:Object,default:function(){return null}}},data:function(){return{isSelected:!1,isIndeterminate:!1}},methods:{selectedChange:function(e){this.isSelected=e,this.dispatch(rn,Et,{isSelected:e})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.isSelected=t,this.isIndeterminate=n}},mounted:function(){var e=this;this.$on(kt,(function(t){e.setSelectedAllInfo(t)}))},render:function(){var e=arguments[0],t=this.isSelected,n=this.isIndeterminate,r=this.selectedChange,o={class:zn("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,indeterminate:n},on:{"on-checked-change":function(e){return r(e)}}};return e(R,o)}});function Fr(e){return(Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Fr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vr=c("table"),Hr={name:cn,props:{column:{type:Object,required:!0}},data:function(){return{filterList:[]}},watch:{column:{handler:function(e){e.filter&&Array.isArray(e.filter.filterList)&&(this.filterList=e.filter.filterList)},immediate:!0,deep:!0}},methods:{filterConfirm:function(){var e=this.column.filter.filterConfirm;e&&e(this.filterList)},filterReset:function(){var e=this.column.filter.filterReset;e&&e(this.filterList)},getIcon:function(e){var t=this.column.filter.filterIcon;return h(t)?t(e):e(Y,{attrs:{name:W.FILTER}})}},render:function(e){var t=this,n=this.column.filter,r=n.filterList,o=n.isMultiple,i=n.maxHeight,l=n.beforeVisibleChange,u={props:{value:r,showOperation:!0,isMultiple:o,showRadio:!0,confirmFilterText:Vr("confirmFilter"),resetFilterText:Vr("resetFilter"),beforeVisibleChange:l},on:Lr(Lr(Lr({},At,this.filterConfirm),Pt,this.filterReset),"input",(function(e){t.filterList=e}))};return"number"==typeof i&&(u.props.maxHeight=i),e(xe,u,[e("span",{class:zn("filter")},[e("span",{class:zn("filter-icon")},[this.getIcon(e)])])])}},Wr={name:sn,props:{column:{type:Object,required:!0}},data:function(){return{internalVisible:!1}},watch:{column:{handler:function(e){e.filterCustom&&p(e.filterCustom.defaultVisible)&&(this.internalVisible=e.filterCustom.defaultVisible)},immediate:!0,deep:!0}},methods:{visibleChange:function(e){this.internalVisible=e},getCustomContent:function(e){var t=null,n=this.column.filterCustom.render;if(h(n)){t=e("div",{slot:"custom-content"},[n({showFn:this.show,closeFn:this.close},e)])}return t},getIcon:function(e){var t=this.column.filterCustom.filterIcon;return h(t)?t(e):e(Y,{attrs:{name:W.FILTER}})},close:function(){this.internalVisible=!1},show:function(){this.internalVisible=!0}},render:function(e){var t={props:{isCustomContent:!0,isControlled:!0,visible:this.internalVisible,beforeVisibleChange:this.column.filterCustom.beforeVisibleChange},on:{"on-dropdown-visible-change":this.visibleChange}};return e(xe,t,[e("span",{class:zn("filter")},[e("span",{class:zn("filter-icon")},[this.getIcon(e)])]),this.getCustomContent(e)])}};function zr(e){return(zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qr={name:un,mixins:[Br],props:{groupColumn:{type:Array,required:!0},groupColumnItem:{type:Object,required:!0},colgroups:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},fixedHeader:{type:Boolean},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,o=n._keys;if("left"===r){var i=t.filter((function(e){return"left"===e.fixed}));i.findIndex((function(e){return e._keys===o}))===i.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,o=n._keys;"right"===r&&(t.filter((function(e){return"right"===e.fixed}))[0]._keys===o&&(e=!0));return e},isLastCloumn:function(){var e=!1,t=this.colgroups,n=this.groupColumnItem,r=t[t.length-1].key,o=n._keys.split("|");return o.length&&(1===o.length?o[0]===r&&(e=!0):o[o.length-2]===r&&(e=!0)),e},isSortableCloumn:function(){var e=!1,t=this.sortColumns,n=this.groupColumnItem.field;return Object.keys(t).includes(n)&&(e=!0),e}},methods:{getTheadThClass:function(e){var t=e.fixed,n=$r($r($r($r($r($r($r({},zn("header-th"),!0),zn("fixed-left"),"left"===t),zn("fixed-right"),"right"===t),zn("last-left-fixed-column"),this.isLastLeftFixedColumn),zn("first-right-fixed-column"),this.isfirstRightFixedColumn),zn("last-column"),this.isLastCloumn),zn("sortable-column"),this.isSortableCloumn),r=this.cellStyleOption,o=this.rowIndex,i=this.groupColumnItem,l=this.cellSelectionRangeData,u=this.colgroups,a=this.isGroupHeader,c=this.headerIndicatorColKeys;if(l){var s=l.leftColKey,d=l.rightColKey,h=c.startColKeyIndex>-1;if(!f(s)){var p,y=[];if(s===d)y=[s];else y=null!==(p=nr({colKey1:s,colKey2:d,colgroups:u}))&&void 0!==p?p:[];var v=!1;if(a)v=tr({headerColumnItem:i}).every((function(e){return y.indexOf(e)>-1}));else y.indexOf(i.key)>-1&&(v=!0);v&&(h?n[zn("cell-indicator-active")]=!0:n[zn("cell-indicator")]=!0)}}if(r&&"function"==typeof r.headerCellClass){var m=r.headerCellClass({column:i,rowIndex:o});m&&(n[m]=!0)}return n},getTheadThStyle:function(e,t){var n=e._keys,r=e.align,o=e.fixed,i={},l=this.colgroups,u=this.headerRows;if(i["text-align"]=r||"center",o){var a="",c=0,s=n.split("|");if("left"===o?a=s[0]:"right"===o&&(a=1===s.length?s[0]:s[s.length-2]),a){var f=l.findIndex((function(e){return e.key===a}));("left"===o&&f>0||"right"===o&&f<l.length-1)&&(c=v(c=Yn({colgroups:l,colKey:a,fixed:o})))}i.left="left"===o?c:"",i.right="right"===o?c:""}if(this.fixedHeader){var d=0;t>0&&(d=u.reduce((function(e,n,r){return r<t?n.rowHeight+e:e}),0)),d=v(d),i.top=d}return i},getCheckboxContent:function(){var e=this.$createElement,t=null,n=this.checkboxOption;if(this.groupColumnItem.type===Ze&&!n.hideSelectAll){var r={props:{column:this.groupColumnItem,checkboxOption:this.checkboxOption}};t=e(Mr,r)}return t},sortChange:function(){var e="",t=this.sortColumns,n=this.groupColumnItem,r=this.sortOption.sortAlways,o=n.field,i=t[o];e=r?"desc"===i?"asc":"desc":"desc"===i?"asc":"asc"===i?"":"desc",this.dispatch(on,Dt,{currentField:o,sortResult:e})},getSortContent:function(){var e=this.$createElement,t=null,n=this.sortColumns,r=this.groupColumnItem.field;if(Object.keys(n).includes(r)){var o=n[r];t=e("span",{class:zn("sort")},[e(Y,{class:[zn("sort-icon"),zn("sort-icon-top"),"asc"===o?"active":""],attrs:{name:W.SORT_TOP_ARROW}}),e(Y,{class:[zn("sort-icon"),zn("sort-icon-bottom"),"desc"===o?"active":""],attrs:{name:W.SORT_BOTTOM_ARROW}})])}return t},getFilterContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filter){var n={props:{column:this.groupColumnItem}};t=e(Hr,n)}return t},getFilterCustomContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filterCustom){var n={props:{column:this.groupColumnItem}};t=e(Wr,n)}return t},cellClick:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Bt,{event:e,column:n})},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Nt,{event:e,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Vt,{event:e,column:n})},cellMousemove:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Lt,{event:e,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Ft,{event:e,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(rn,Mt,{event:e,column:n})},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t,n=this,r=this.groupColumnItem,o=this.getTheadThClass,i=this.getTheadThStyle,l=this.rowIndex,u=this.eventCustomOption;if("function"==typeof r.renderHeaderCell){var a=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(r),r));t=r.renderHeaderCell({column:a},e)}else t=r.title;var c={};if(u){var s=u.headerCellEvents;c=s?s({column:r,rowIndex:l}):{}}var f=c,d=f.click,h=f.dblclick,p=f.contextmenu,y=f.mouseenter,v=f.mouseleave,m=f.mousemove,g=f.mouseover,b=f.mousedown,w=f.mouseup,C={click:function(e){n.cellClick(e,d),n.isSortableCloumn&&e.target instanceof HTMLTableCellElement&&n.sortChange()},dblclick:function(e){n.cellDblclick(e,h)},contextmenu:function(e){n.cellContextmenu(e,p)},mouseenter:function(e){n.cellMouseenter(e,y)},mouseleave:function(e){n.cellMouseleave(e,v)},mousemove:function(e){n.cellMousemove(e,m)},mouseover:function(e){n.cellMouseover(e,g)},mousedown:function(e){n.cellMousedown(e,b)},mouseup:function(e){n.cellMouseup(e,w)}};return e("th",{style:i(r,l),class:o(r),attrs:{rowspan:r._rowspan,colspan:r._colspan},on:C},[this.getCheckboxContent(),t,this.getSortContent(),this.getFilterContent(),this.getFilterCustomContent()])}},Ur=(n(184),n(185));function Gr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Yr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xr=function(e){var t,n=Gr(e);try{var r=function(){var e=t.value,n=e.target.__resizeListeners__||[];n.length&&n.forEach((function(t){t(e.contentRect)}))};for(n.s();!(t=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}},Jr={name:"vue-dom-resize-observer",props:{tagName:{type:String,required:!0},id:{type:[String,Number],default:null}},methods:{resizeListener:function(e){var t=e.left,n=e.top,r=e.width,o=e.height;this.$emit("on-dom-resize-change",{key:this.id,left:t,top:n,width:r,height:o})}},mounted:function(){var e,t;e=this.$el,t=this.resizeListener,e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new Ur.a(Xr),e.__ro__.observe(e)),e.__resizeListeners__.push(t)},destroyed:function(){var e,t;e=this.$el,t=this.resizeListener,e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())},render:function(){var e=arguments[0];return e(this.tagName,[this.$slots.default])}},Zr={name:ln,mixins:[Br],props:{columnsOptionResetTime:{type:Number,default:0},groupColumn:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(rn,vt,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.groupColumn,r=this.colgroups,o=this.headerRows,i=this.fixedHeader,l=this.rowIndex,u=this.trHeightChange,a=this.checkboxOption,c=this.sortOption,s=this.sortColumns,f=this.cellStyleOption,d=this.eventCustomOption,h=this.cellSelectionData,p={};if(d){var y=d.headerRowEvents;p=y?y({rowIndex:l}):{}}var v=p,m=v.click,g=v.dblclick,b=v.contextmenu,w=v.mouseenter,C=v.mouseleave,x=v.mousemove,S=v.mouseover,R=v.mousedown,O=v.mouseup,_={click:function(t){e.rowClick(t,m)},dblclick:function(t){e.rowDblclick(t,g)},contextmenu:function(t){e.rowContextmenu(t,b)},mouseenter:function(t){e.rowMouseenter(t,w)},mouseleave:function(t){e.rowMouseleave(t,C)},mousemove:function(t){e.rowMousemove(t,x)},mouseover:function(t){e.rowMouseover(t,S)},mousedown:function(t){e.rowMousedown(t,R)},mouseup:function(t){e.rowMouseup(t,O)}},K={key:Gn(l,this.columnsOptionResetTime),class:zn("header-tr"),props:{tagName:"tr"},on:{"on-dom-resize-change":u},nativeOn:_};return t(Jr,K,[n.map((function(u){var d={key:u.key,props:{groupColumn:n,groupColumnItem:u,colgroups:r,headerRows:o,fixedHeader:i,isGroupHeader:e.isGroupHeader,rowIndex:l,checkboxOption:a,sortOption:c,sortColumns:s,cellStyleOption:f,eventCustomOption:e.eventCustomOption,cellSelectionData:h,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t(qr,d)}))])}};function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Qr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var to={name:on,mixins:[Br],props:{columnsOptionResetTime:{type:Number,default:0},groupColumns:{type:Array,required:!0},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},headerRows:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},data:function(){return{sortColumns:{}}},computed:{headerClass:function(){return eo({},zn("fixed-header"),this.fixedHeader)}},watch:{colgroups:{handler:function(){this.initSortColumns()},immediate:!0}},methods:{sortChange:function(e){var t=e.currentField,n=e.sortResult,r=this.sortColumns,o=this.sortOption,i=o.multipleSort,l=o.sortChange;if(this.sortColumns[t]=n,!i)for(var u in r)u!==t&&(r[u]="");this.dispatch(rn,Dt,r),l(r)},initSortColumns:function(){var e=this.colgroups,t={};e.forEach((function(e){"string"==typeof e.sortBy&&(t[e.field]=e.sortBy)})),this.sortColumns=t}},mounted:function(){var e=this;this.$on(Dt,(function(t){e.sortChange(t)}))},render:function(){var e=this,t=arguments[0],n=this.headerClass,r=this.groupColumns,o=this.colgroups,i=this.fixedHeader,l=this.headerRows,u=this.checkboxOption,a=this.sortOption,c=this.sortColumns,s=this.cellStyleOption,f=this.cellSelectionData;return t("thead",{class:n},[r.map((function(n,r){var d={key:r,props:{columnsOptionResetTime:e.columnsOptionResetTime,groupColumn:n,headerRows:l,colgroups:o,fixedHeader:i,isGroupHeader:e.isGroupHeader,rowIndex:r,checkboxOption:u,sortOption:a,sortColumns:c,cellStyleOption:s,eventCustomOption:e.eventCustomOption,cellSelectionData:f,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t(Zr,d)}))])}},no=(n(258),{name:pn,mixins:[Br],props:{checkboxOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.checkboxOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.checkboxOption;return e&&Array.isArray(e.selectedRowKeys)}},watch:{internalCheckboxSelectedRowKeys:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){var e=!1,t=this.rowKey,n=this.internalCheckboxSelectedRowKeys;Array.isArray(n)&&n.includes(t)&&(e=!0),this.isSelected=e},selectedChange:function(e){this.isControlledProp||(this.isSelected=e),this.dispatch(fn,It,{rowKey:this.rowKey,isSelected:e})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,o={class:zn("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-checked-change":function(e){return n(e)}}};return e(R,o)}}),ro={name:yn,mixins:[Br],props:{radioOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalRadioSelectedRowKey:{type:[String,Number],default:null}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.radioOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{internalRadioSelectedRowKey:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){this.isSelected=this.internalRadioSelectedRowKey===this.rowKey},selectedChange:function(){this.isControlledProp||(this.isSelected=!0),this.dispatch(fn,Tt,{rowKey:this.rowKey})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,o={class:zn("radio-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-radio-change":function(){return n()}}};return e(he,o)}};function oo(e){return(oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function io(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=oo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo={name:wn,props:{column:{type:Object,required:!0},expandOption:{type:Object,default:function(){return null}},rowData:{type:Object,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},rowKeyFieldName:{type:String,default:null},cellClick:{type:Function,default:null}},computed:{isExpanded:function(){var e=!1,t=this.column,n=this.rowData,r=this.expandedRowkeys,o=this.rowKeyFieldName;if(t.type===Je){var i=n[o];e=r.includes(i)}return e},expandRowIconContainerClass:function(){return io(io({},zn("row-expand-icon"),!0),zn("expand-icon-collapsed"),this.isExpanded)}},render:function(){var e=arguments[0],t=null,n=this.cellClick,r=this.column,o=this.expandRowIconContainerClass;return r.type===Je&&(t=e("span",{on:{click:function(e){return n(e)}},class:o},[e(Y,{attrs:{name:W.RIGHT_ARROW}})])),t}};function uo(e){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ao(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=uo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var co={name:vn,mixins:[Br],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},columnCollection:{type:Array,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{rawCellValue:""}},computed:{currentColumnCollectionItem:function(){var e=this.columnCollection,t=this.column;return e.find((function(e){return e.colKey===t.key}))},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]}},watch:{rowData:{handler:function(e){var t=this.column;t&&(this.rawCellValue=e[t.field])},deep:!0,immediate:!0}},methods:{bodyTdStyle:function(){var e=this.currentColumnCollectionItem,t={};return e&&(t=Object.assign(t,e.style)),t},bodyTdClass:function(){var e=this.currentColumnCollectionItem,t=this.column,n=t.fixed,r=t.operationColumn,o=ao({},zn("body-td"),!0),i=this.cellStyleOption,l=this.rowData,u=this.column,a=this.rowIndex,c=this.allRowKeys,s=this.cellSelectionData,d=this.cellSelectionRangeData,h=this.bodyIndicatorRowKeys,p=this.currentRowKey;if(n&&(o[zn("fixed-left")]="left"===n,o[zn("fixed-right")]="right"===n),r&&(o[zn("operation-col")]=!0),i&&"function"==typeof i.bodyCellClass){var y=i.bodyCellClass({row:l,column:u,rowIndex:a});y&&(o[y]=!0)}if(s){var v=s.currentCell,m=v.rowKey,g=v.colKey;if(!f(m)&&!f(g)&&(p===m&&u.key===g&&(o[zn("cell-selection")]=!0),r)){var b=d.topRowKey,w=d.bottomRowKey,C=h.startRowKeyIndex>-1;(b===w?[b]:ir({topRowKey:b,bottomRowKey:w,allRowKeys:c})).indexOf(p)>-1&&(C?o[zn("cell-indicator-active")]=!0:o[zn("cell-indicator")]=!0)}}return e&&(o=Object.assign(o,e.class)),o},getEllipsisContentStyle:function(){var e={},t=this.column.ellipsis;if(t){var n=t.lineClamp,r=y(n)?n:1;e["-webkit-line-clamp"]=r}return e},getRenderContent:function(e){var t=null,n=this.column,r=this.rowData,o=this.rowIndex,i=this.rawCellValue;"function"==typeof n.renderBodyCell?t=n.renderBodyCell({row:r,column:n,rowIndex:o},e):t=i;if(n.ellipsis){var l=n.ellipsis.showTitle;t=e("span",{attrs:{title:!p(l)||l?t:""},style:this.getEllipsisContentStyle(),class:zn("body-td-span-ellipsis")},[t])}return t},getCheckboxContent:function(){var e=this.$createElement;if(this.column.type===Ze){var t={props:{column:this.column,checkboxOption:this.checkboxOption,rowKey:this.rowData[this.rowKeyFieldName],internalCheckboxSelectedRowKeys:this.internalCheckboxSelectedRowKeys}};return e(no,t)}return null},getRadioContent:function(){var e=this.$createElement;if(this.column.type===Qe){var t={props:{column:this.column,radioOption:this.radioOption,rowKey:this.rowData[this.rowKeyFieldName],internalRadioSelectedRowKey:this.internalRadioSelectedRowKey}};return e(ro,t)}return null},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,o=1,i=1;if(e){var l=e.bodyCellSpan;if("function"==typeof l){var u=l({row:t,column:n,rowIndex:r});"object"===uo(u)&&(o=u.rowspan,i=u.colspan)}}return{rowspan:o,colspan:i}},cellClick:function(e,t){t&&t(e);var n=this.column,r=this.expandOption,o=this.rowData;if(this.dispatch(rn,wt,{event:e,rowData:o,column:n}),n.type!==Je)return!1;if(r){var i=e.target.nodeName,l=r.trigger;l&&l!==nt?l===rt&&(e.stopPropagation(),this.$emit(Kt)):"TD"!==i&&(e.stopPropagation(),this.$emit(Kt))}},cellDblclick:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,Ot,{event:e,rowData:r,column:n})},cellContextmenu:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,_t,{event:e,rowData:r,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,St,{event:e,rowData:r,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,Ct,{event:e,rowData:r,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,xt,{event:e,rowData:r,column:n})},cellMouseup:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(rn,Rt,{event:e,rowData:r,column:n})}},render:function(e){var t=this,n=this.column,r=this.cellClick,o=this.rowData,i=this.isExpandRow,l=this.expandOption,u=this.expandedRowkeys,a=this.rowKeyFieldName,c=this.eventCustomOption,s=this.rowIndex,f={props:{rowData:o,column:n,expandOption:l,expandedRowkeys:u,rowKeyFieldName:a,cellClick:r}},d=this.getCellSpan(),h=d.rowspan,p=d.colspan;if(!h||!p)return null;var y={};if(c){var v=c.bodyCellEvents;y=v?v({row:o,column:n,rowIndex:s}):{}}var m=y,g=m.click,b=m.dblclick,w=m.contextmenu,C=m.mouseenter,x=m.mouseleave,S=m.mousemove,R=m.mouseover,O=m.mousedown,_=m.mouseup,K={click:function(e){t.cellClick(e,g)},dblclick:function(e){t.cellDblclick(e,b)},contextmenu:function(e){t.cellContextmenu(e,w)},mouseenter:function(e){t.cellMouseenter(e,C)},mouseleave:function(e){t.cellMouseleave(e,x)},mousemove:function(e){t.cellMousemove(e,S)},mouseover:function(e){t.cellMouseover(e,R)},mousedown:function(e){t.cellMousedown(e,O)},mouseup:function(e){t.cellMouseup(e,_)}};return e("td",{class:this.bodyTdClass(),style:this.bodyTdStyle(),attrs:ao({rowspan:h,colspan:p},On,n.key),on:K},[i&&e(lo,f),this.getCheckboxContent(),this.getRadioContent(),this.getRenderContent(e)])}};function so(e){return(so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=so(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=so(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==so(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho={name:dn,mixins:[Br],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},columnCollection:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},expandRowChange:{type:Function,default:null},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},isVirtualScroll:{type:Boolean,default:!1},cellStyleOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){var e=this.highlightRowKey,t=this.currentRowKey,n=!1;return f(e)||e===t&&(n=!0),fo(fo({},zn("body-tr"),!0),zn("tr-highlight"),n)}},methods:{rowClick:function(e,t){t&&t(e);var n=this.rowData,r=this.rowIndex;this.dispatch(fn,bt,{rowData:n,rowIndex:r})},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.expandOption,o=this.expandRowChange,i=this.isExpandRow,l=this.expandedRowkeys,u=this.checkboxOption,a=this.rowKeyFieldName,c=this.rowIndex,s=this.rowData,f=this.internalCheckboxSelectedRowKeys,d=this.internalRadioSelectedRowKey,h=this.radioOption,p=this.cellStyleOption,y=this.eventCustomOption,v=function(){return n.map((function(v){var m={key:v.key,props:{rowIndex:c,rowData:s,column:v,columnCollection:e.columnCollection,colgroups:n,expandOption:r,expandedRowkeys:l,checkboxOption:u,rowKeyFieldName:a,allRowKeys:e.allRowKeys,isExpandRow:i,internalCheckboxSelectedRowKeys:f,internalRadioSelectedRowKey:d,radioOption:h,cellStyleOption:p,cellSpanOption:e.cellSpanOption,eventCustomOption:y,cellSelectionData:e.cellSelectionData,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys,editOption:e.editOption},on:fo({},Kt,(function(){return o(s,c)}))};return t(co,m)}))},m=null,g={};if(y){var b=y.bodyRowEvents;g=b?b({row:s,rowIndex:c}):{}}var w=g,C=w.click,x=w.dblclick,S=w.contextmenu,R=w.mouseenter,O=w.mouseleave,_=w.mousemove,K=w.mouseover,I=w.mousedown,E=w.mouseup,k={click:function(t){e.rowClick(t,C)},dblclick:function(t){e.rowDblclick(t,x)},contextmenu:function(t){e.rowContextmenu(t,S)},mouseenter:function(t){e.rowMouseenter(t,R)},mouseleave:function(t){e.rowMouseleave(t,O)},mousemove:function(t){e.rowMousemove(t,_)},mouseover:function(t){e.rowMouseover(t,K)},mousedown:function(t){e.rowMousedown(t,I)},mouseup:function(t){e.rowMouseup(t,E)}};if(this.isVirtualScroll){var T={class:this.trClass,props:{tagName:"tr",id:this.currentRowKey},attrs:fo({},Rn,this.currentRowKey),on:{"on-dom-resize-change":function(t){var n=t.key,r=t.height;e.dispatch(rn,gt,{rowKey:n,height:r})}},nativeOn:k};m=t(Jr,T,[v()])}else{var D={class:this.trClass,attrs:fo({},Rn,this.currentRowKey),on:k};m=t("tr",D,[v()])}return m}};function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==po(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vo={name:hn,props:{colgroups:{type:Array,required:!0}},computed:{trClass:function(){return yo(yo({},zn("body-tr"),!0),zn("body-row-scrolling"),!0)}},render:function(){var e=arguments[0],t=this.colgroups,n={class:this.trClass};return e("tr",n,[e("td",{attrs:{colSpan:t.length}})])}};function mo(e){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function go(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=mo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bo={name:bn,mixins:[Br],props:{tableViewportWidth:{type:Number,default:0},expandColumn:{type:Object,default:function(){return null}},colgroups:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},expandedRowkeys:{type:Array,default:function(){return[]}},rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},rowKeyFieldName:{type:String,default:null}},computed:{columnCount:function(){return this.colgroups.length},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]},isRowExpanded:function(){var e=!1,t=this.expandOption,n=this.expandedRowkeys,r=this.currentRowKey;return(t.defaultExpandAllRows||n.includes(r))&&(e=!0),e},expanRowClass:function(){return go({},zn("expand-tr"),!0)},hasLeftFixedColumn:function(){return this.colgroups.some((function(e){return"left"===e.fixed}))},expandTdContentStyle:function(){var e={},t=this.hasLeftFixedColumn,n=this.tableViewportWidth;return t&&n&&(e.width=n+"px"),e}},methods:{getExpandRowContent:function(e){var t=this.expandOption;return t.render&&t.render({row:this.rowData,column:this.expandColumn,rowIndex:this.rowIndex},e)}},render:function(e){var t=this.isRowExpanded,n=this.columnCount,r=this.getExpandRowContent,o=null;if(t){var i=r(e);o=e("tr",{class:this.expanRowClass},[e("td",{class:zn("expand-td"),attrs:{colSpan:n}},[e("div",{class:zn("expand-td-content"),style:this.expandTdContentStyle},[i])])])}return o}};function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Co(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xo={name:fn,mixins:[Br],props:{tableViewportWidth:{type:Number,default:0},columnsOptionResetTime:{type:Number,default:0},colgroups:{type:Array,required:!0},actualRenderTableData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},isVirtualScroll:{type:Boolean,default:!1},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{colsWidths:new Map,internalExpandRowkeys:[],internalCheckboxSelectedRowKeys:[],internalRadioSelectedRowKey:null,virtualScrollPreviewRenderedRowKeys:[],virtualScrollRepeatRenderedRowKeys:[]}},computed:{columnCollection:function(){var e=this,t=[],n=this.colgroups;return n.forEach((function(r){var o=r.key,i={colKey:o,class:Co(Co({},zn("last-left-fixed-column"),e.isLastLeftFixedColumn(r)),zn("first-right-fixed-column"),e.isfirstRightFixedColumn(r)),style:{}},l=r.fixed,u=r.align;if(i.style["text-align"]=u||"center",l){var a=0,c=n.findIndex((function(e){return e.key===o}));("left"===l&&c>0||"right"===l&&c<n.length-1)&&(a=v(a=Yn({colgroups:n,colKey:o,fixed:l}))),i.style.left="left"===l?a:"",i.style.right="right"===l?a:""}t.push(i)})),t},expandColumn:function(){return this.colgroups.find((function(e){return e.type===Je}))},isControlledExpand:function(){return this.expandOption&&Array.isArray(this.expandOption.expandedRowKeys)},expandedRowkeys:function(){return this.isControlledExpand?this.expandOption.expandedRowKeys:this.internalExpandRowkeys},disableCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return n.length>0&&Array.isArray(r)&&r.length>0&&r.forEach((function(t){n.includes(t)&&e.push(t)})),e},disableCheckboxUnselectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.length>0&&r.forEach((function(t){n.includes(t)||e.push(t)})),e},isCheckboxSelectedAll:function(){return this.allRowKeys.length>0&&this.internalCheckboxSelectedRowKeys.length+this.disableCheckboxUnselectedRowKeys.length===this.allRowKeys.length},isCheckboxIndeterminate:function(){var e=this.internalCheckboxSelectedRowKeys,t=this.allRowKeys;return e.length>0&&e.length<t.length},isControlledRadio:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{expandOption:{handler:function(){this.initInternalExpandRowKeys()},immediate:!0},"expandOption.expandedRowKeys":{handler:function(){this.initInternalExpandRowKeys()}},checkboxOption:{handler:function(){this.initInternalCheckboxSelectedRowKeys()},immediate:!0},"checkboxOption.selectedRowKeys":{handler:function(){this.resetInternalCheckboxSelectedRowKeys()}},internalCheckboxSelectedRowKeys:{handler:function(){this.sendToCheckboxAll()}},radioOption:{handler:function(){this.initInternalRadioSelectedRowKey()},immediate:!0},"radioOption.selectedRowKey":{handler:function(){this.initInternalRadioSelectedRowKey()}}},methods:{isLastLeftFixedColumn:function(e){var t=!1,n=this.colgroups;if("left"===e.fixed){var r=e.field,o=n.filter((function(e){return"left"===e.fixed}));o.findIndex((function(e){return e.field===r}))===o.length-1&&(t=!0)}return t},isfirstRightFixedColumn:function(e){var t=!1,n=this.colgroups;if("right"===e.fixed){var r=e.field;n.filter((function(e){return"right"===e.fixed}))[0].field===r&&(t=!0)}return t},expandRowChange:function(e,t){var n=this.expandOption,r=this.internalExpandRowkeys,o=this.expandedRowkeys,i=this.rowKeyFieldName;if("function"==typeof n.beforeExpandRowChange&&!1===n.beforeExpandRowChange({beforeExpandedRowKeys:o,row:e,rowIndex:t}))return!1;var l=e[i],u=r.indexOf(l);u>-1?r.splice(u,1):r.push(l),"function"==typeof n.afterExpandRowChange&&n.afterExpandRowChange({afterExpandedRowKeys:r,row:e,rowIndex:t})},rowClick:function(e){var t=e.rowData,n=e.rowIndex,r=this.expandOption,o=this.isExpandRow,i=this.expandRowChange,l=this.rowKeyFieldName;if(l){var u=t[l];this.$emit(Ht,{rowKey:u})}if(!o({rowData:t,rowIndex:n}))return!1;r.trigger===ot&&i(t,n)},isExpandRow:function(e){var t=e.rowData,n=e.rowIndex,r=!1,o=this.expandColumn,i=this.expandOption;if(o&&i){var l=!0;"function"==typeof i.expandable&&(l=i.expandable({row:t,column:o,rowIndex:n})),!1!==l&&(r=!0)}return r},tdSizeChange:function(e){var t=e.key,n=e.width,r=this.colsWidths;r.set(t,n),this.$emit(yt,r)},initInternalExpandRowKeys:function(){var e=this.expandOption,t=this.isControlledExpand,n=this.allRowKeys;if(!e)return!1;t?this.internalExpandRowkeys=e.expandedRowKeys.slice(0):e.defaultExpandAllRows?this.internalExpandRowkeys=n:e.defaultExpandedRowKeys&&(this.internalExpandRowkeys=e.defaultExpandedRowKeys.slice(0))},getExpandRowComp:function(e){var t=e.rowData,n=e.rowIndex,r=this.$createElement;if(this.isExpandRow({rowData:t,rowIndex:n})){var o={props:{tableViewportWidth:this.tableViewportWidth,colgroups:this.colgroups,expandOption:this.expandOption,expandedRowkeys:this.expandedRowkeys,expandColumn:this.expandColumn,rowKeyFieldName:this.rowKeyFieldName,rowData:t,rowIndex:n}};return r(bo,o)}return null},sendToCheckboxAll:function(){var e=this.isCheckboxSelectedAll,t=this.isCheckboxIndeterminate;this.dispatch(rn,kt,{isIndeterminate:t,isSelected:e})},initInternalRadioSelectedRowKey:function(){var e=this.radioOption,t=this.isControlledRadio;if(!e)return!1;var n=e.selectedRowKey,r=e.defaultSelectedRowKey;this.internalRadioSelectedRowKey=t?n:r},initInternalCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.allRowKeys;if(!t)return!1;var r=t.selectedRowKeys,o=t.defaultSelectedAllRows,i=t.defaultSelectedRowKeys;Array.isArray(r)?e=r:o?e=n:Array.isArray(i)&&(e=i),this.internalCheckboxSelectedRowKeys=e},resetInternalCheckboxSelectedRowKeys:function(){this.internalCheckboxSelectedRowKeys=this.checkboxOption.selectedRowKeys.slice(0)},checkboxSelectedRowChange:function(e){var t=e.rowKey,n=e.isSelected,r=this.checkboxOption,o=this.internalCheckboxSelectedRowKeys,i=this.rowKeyFieldName,l=r.selectedRowChange,u=r.selectedRowKeys,a=o.slice(0),c=a.indexOf(t);n?-1===c&&a.push(t):c>-1&&a.splice(c,1),Array.isArray(u)||(this.internalCheckboxSelectedRowKeys=a),l({row:this.actualRenderTableData.find((function(e){return e[i]===t})),isSelected:n,selectedRowKeys:a})},checkboxSelectedAllChange:function(e){var t=e.isSelected,n=this.checkboxOption,r=this.internalCheckboxSelectedRowKeys,o=this.allRowKeys,i=this.disableCheckboxSelectedRowKeys,l=this.disableCheckboxUnselectedRowKeys,u=n.selectedAllChange,a=n.selectedRowKeys,c=r.slice(0);if(t){var s=o.slice(0);l.length>0&&l.forEach((function(e){var t=s.indexOf(e);t>-1&&s.splice(t,1)})),c=s}else c=i;Array.isArray(a)||(this.internalCheckboxSelectedRowKeys=c),u&&u({isSelected:t,selectedRowKeys:c})},radioSelectedRowChange:function(e){var t=e.rowKey,n=this.radioOption,r=this.rowKeyFieldName,o=this.isControlledRadio,i=n.selectedRowChange;o||(this.internalRadioSelectedRowKey=t),i({row:this.actualRenderTableData.find((function(e){return e[r]===t}))})},getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n},renderingRowKeys:function(e){var t=this.virtualScrollPreviewRenderedRowKeys;this.virtualScrollRepeatRenderedRowKeys=e.filter((function(e){return-1!=t.indexOf(e)})),this.virtualScrollPreviewRenderedRowKeys=e}},mounted:function(){var e=this;this.$on(It,(function(t){e.checkboxSelectedRowChange(t)})),this.$on(Et,(function(t){e.checkboxSelectedAllChange(t)})),this.$on(Tt,(function(t){e.radioSelectedRowChange(t)})),this.$on(bt,(function(t){e.rowClick(t)})),this.checkboxOption&&this.$nextTick((function(){e.sendToCheckboxAll()}))},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.actualRenderTableData,o=this.expandOption,i=this.expandRowChange,l=this.isExpandRow,u=this.getExpandRowComp,a=this.expandedRowkeys,c=this.checkboxOption,s=this.radioOption,f=this.rowKeyFieldName,d=this.tdSizeChange,h=this.internalCheckboxSelectedRowKeys,p=this.internalRadioSelectedRowKey,y=this.isVirtualScroll,v=this.cellStyleOption,m=this.showVirtualScrollingPlaceholder,g=this.virtualScrollRepeatRenderedRowKeys;return t("tbody",[t("tr",{style:"height:0;"},[n.map((function(n){var r={key:Gn(n.key,e.columnsOptionResetTime),props:{tagName:"td",id:n.key},on:{"on-dom-resize-change":d},style:{padding:0,border:0,height:0}};return t(Jr,r)}))]),r.map((function(r,d){var b={key:e.getTrKey({rowData:r,rowIndex:d}),props:{rowIndex:d,rowData:r,colgroups:n,expandOption:o,expandedRowkeys:a,checkboxOption:c,radioOption:s,rowKeyFieldName:f,allRowKeys:e.allRowKeys,expandRowChange:i,internalCheckboxSelectedRowKeys:h,internalRadioSelectedRowKey:p,isVirtualScroll:y,isExpandRow:l({rowData:r,rowIndex:d}),cellStyleOption:v,cellSpanOption:e.cellSpanOption,highlightRowKey:e.highlightRowKey,eventCustomOption:e.eventCustomOption,cellSelectionData:e.cellSelectionData,editOption:e.editOption,columnCollection:e.columnCollection,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys}};if(m){var w={key:e.getTrKey({rowData:r,rowIndex:d}),props:{colgroups:n}};return-1!=g.indexOf(r[e.rowKeyFieldName])?[t(ho,b)]:t(vo,w)}return[t(ho,b),u({rowData:r,rowIndex:d})]})),this.$slots.default])}};function So(e){return(So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ro(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=So(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=So(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==So(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo={name:vn,mixins:[Br],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellSpanOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("left"===n.fixed){var r=n.field,o=t.filter((function(e){return"left"===e.fixed}));o.findIndex((function(e){return e.field===r}))===o.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("right"===n.fixed){var r=n.field;t.filter((function(e){return"right"===e.fixed}))[0].field===r&&(e=!0)}return e}},methods:{getBodyTdClass:function(e){var t=e.fixed,n=Ro({},zn("footer-td"),!0),r=this.cellStyleOption,o=this.rowData,i=this.column,l=this.rowIndex,u=this.cellSelectionData,a=this.rowKeyFieldName;if(t&&(n[zn("fixed-left")]="left"===t,n[zn("fixed-right")]="right"===t,n[zn("last-left-fixed-column")]=this.isLastLeftFixedColumn,n[zn("first-right-fixed-column")]=this.isfirstRightFixedColumn),r&&"function"==typeof r.footerCellClass){var c=r.footerCellClass({row:o,column:i,rowIndex:l});c&&(n[c]=!0)}if(u){var s=u.currentCell,f=s.rowKey,d=s.colKey;o[a]===f&&i.key===d&&(n[zn("cell-selection")]=!0)}return n},getBodyTdStyle:function(e){var t=e.key,n=e.align,r=e.fixed,o={},i=this.colgroups,l=this.rowIndex,u=this.footerRows;if(o["text-align"]=n||"center",r){var a=0,c=i.findIndex((function(e){return e.key===t}));("left"===r&&c>0||"right"===r&&c<i.length-1)&&(a=v(a=Yn({colgroups:i,colKey:t,fixed:r}))),o.left="left"===r?a:"",o.right="right"===r?a:""}if(this.fixedFooter){var s=0;l!==u.length-1&&(s=u.reduce((function(e,t,n){return n>l?t.rowHeight+e:e}),0)),s=v(s),o.bottom=s}return o},getRenderContent:function(e){var t=null,n=this.column,r=this.rowData,o=this.rowIndex;"function"==typeof n.renderFooterCell?t=n.renderFooterCell({row:r,column:n,rowIndex:o},e):t=r[n.field];return t},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,o=1,i=1;if(e){var l=e.footerCellSpan;if("function"==typeof l){var u=l({row:t,column:n,rowIndex:r});"object"===So(u)&&(o=u.rowspan,i=u.colspan)}}return{rowspan:o,colspan:i}},cellClick:function(e,t){t&&t(e)},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e)},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e)},cellMouseover:function(e,t){t&&t(e)},cellMousedown:function(e,t){t&&t(e)},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t=this,n=this.column,r=this.rowData,o=this.rowIndex,i=this.eventCustomOption,l=this.getCellSpan(),u=l.rowspan,a=l.colspan;if(!u||!a)return null;var c={};if(i){var s=i.footerCellEvents;c=s?s({row:r,column:n,rowIndex:o}):{}}var f=c,d=f.click,h=f.dblclick,p=f.contextmenu,y=f.mouseenter,v=f.mouseleave,m=f.mousemove,g=f.mouseover,b=f.mousedown,w=f.mouseup,C={click:function(e){t.cellClick(e,d)},dblclick:function(e){t.cellDblclick(e,h)},contextmenu:function(e){t.cellContextmenu(e,p)},mouseenter:function(e){t.cellMouseenter(e,y)},mouseleave:function(e){t.cellMouseleave(e,v)},mousemove:function(e){t.cellMousemove(e,m)},mouseover:function(e){t.cellMouseover(e,g)},mousedown:function(e){t.cellMousedown(e,b)},mouseup:function(e){t.cellMouseup(e,w)}};return e("td",{class:this.getBodyTdClass(n),style:this.getBodyTdStyle(n),attrs:{rowspan:u,colspan:a},on:C},[this.getRenderContent(e)])}};function _o(e){return(_o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ko(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Io={name:dn,mixins:[Br],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){return Ko({},zn("footer-tr"),!0)}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(rn,mt,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,o=this.rowIndex,i=this.rowData,l=this.cellStyleOption,u=this.eventCustomOption,a=function(){return n.map((function(u){var a={key:u.key,props:{rowIndex:o,rowData:i,column:u,colgroups:n,rowKeyFieldName:r,cellStyleOption:l,cellSelectionData:e.cellSelectionData,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(Oo,a)}))},c={};if(u){var s=u.footerRowEvents;c=s?s({row:i,rowIndex:o}):{}}var f=c,d=f.click,h=f.dblclick,p=f.contextmenu,y=f.mouseenter,v=f.mouseleave,m=f.mousemove,g=f.mouseover,b=f.mousedown,w=f.mouseup,C={click:function(t){e.rowClick(t,d)},dblclick:function(t){e.rowDblclick(t,h)},contextmenu:function(t){e.rowContextmenu(t,p)},mouseenter:function(t){e.rowMouseenter(t,y)},mouseleave:function(t){e.rowMouseleave(t,v)},mousemove:function(t){e.rowMousemove(t,m)},mouseover:function(t){e.rowMouseover(t,g)},mousedown:function(t){e.rowMousedown(t,b)},mouseup:function(t){e.rowMouseup(t,w)}},x={class:this.trClass,props:{tagName:"tr"},attrs:Ko({},Rn,this.currentRowKey),nativeOn:C,on:{"on-dom-resize-change":this.trHeightChange}};return t(Jr,x,[a()])}};function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Eo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var To={name:gn,props:{colgroups:{type:Array,required:!0},footerData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0},cellSpanOption:{type:Object,default:function(){return null}}},computed:{footerClass:function(){return ko({},zn("fixed-footer"),this.fixedFooter)}},methods:{getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,o=this.cellStyleOption;return t("tfoot",{class:this.footerClass},[this.footerData.map((function(i,l){var u={key:e.getTrKey({rowData:i,rowIndex:l}),props:{rowIndex:l,rowData:i,colgroups:n,rowKeyFieldName:r,cellStyleOption:o,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(Io,u)})),this.$slots.default])}},Do="textareaAddNewLine",jo="textareaSelect";function Ao(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,paddingWidth:16},n=document.body,r=document.createTextNode(""),o=document.createElement("SPAN"),i=function(e,t,n){e.addEventListener(t,n,!1)},l=function(e,t,n){e.removeEventListener(t,n,!1)},u=function(i){var l,u;i?/^[a-zA-Z \.,\\\/\|0-9]$/.test(i)||(i="."):i="",void 0!==r.textContent?r.textContent=e.value+i:r.data=e.value+i,o.style.fontSize=s(e).fontSize,o.style.fontFamily=s(e).fontFamily,o.style.whiteSpace="pre",n.appendChild(o),l=o.clientWidth+t.paddingWidth,n.removeChild(o),e.style.height=t.minHeight+"px",t.minWidth>l?e.style.width=t.minWidth+"px":l>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=l+"px",u=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>u?e.style.height=t.minHeight+"px":t.maxHeight<u?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=u+"px"},a=function(){window.setTimeout(u,0)},c=function(n,l,c){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var i=parseInt(n.minHeight);isNaN(i)||(t.minHeight=i)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var l=parseInt(n.maxHeight);isNaN(l)||(t.maxHeight=l)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var u=parseInt(n.minWidth);isNaN(u)||(t.minWidth=u)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var a=parseInt(n.maxWidth);isNaN(a)||(t.maxWidth=a)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(l),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),c&&(i(e,"change",u),i(e,"cut",a),i(e,"paste",a),i(e,"drop",a),i(e,"keydown",a),i(e,"focus",u),i(e,"compositionstart",a),i(e,"compositionupdate",a),i(e,"compositionend",a)),u()};function s(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){c(e,t,n)},unObserve:function(){if(!e)return!1;l(e,"change",u),l(e,"cut",a),l(e,"paste",a),l(e,"drop",a),l(e,"keydown",a),l(e,"focus",u),l(e,"compositionstart",a),l(e,"compositionupdate",a),l(e,"compositionend",a)},resize:u}}function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Po(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No={name:Cn,directives:{focus:{bind:function(e,t,n){var r=t.value;if(r){var o=r.focus,i=r.select;n.context.$nextTick((function(){o&&e.focus(),i&&e.select()}))}},update:function(e,t){var n=t.value;n&&(n.focus&&e.focus())}}},mixins:[Br],props:{parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},inputStartValue:{type:[String,Number],required:!0},rowKeyFieldName:{type:String,default:null},tableData:{type:Array,required:!0},colgroups:{type:Array,required:!0},cellSelectionData:{type:Object,required:!0},editingCell:{type:Object,required:!0},isCellEditing:{type:Boolean,required:!0},hasXScrollBar:{type:Boolean,required:!0},hasYScrollBar:{type:Boolean,required:!0},hasRightFixedColumn:{type:Boolean,required:!0},scrollBarWidth:{type:Number,required:!0}},data:function(){return{textareaInputRef:"textareaInputRef",rawCellValue:"",displayTextarea:!1,overflowViewport:!1,textareaRect:{left:0,top:0},tableEl:null,cellEl:null,autoResize:null,isEditCellFocus:!1}},computed:{currentColumn:function(){var e=null,t=this.colgroups,n=this.cellSelectionData.currentCell;return f(n.rowKey)||f(n.colKey)||(e=t.find((function(e){return e.key===n.colKey}))),e},containerClass:function(){var e=this.displayTextarea,t=this.overflowViewport;return Bo(Bo({},zn("edit-input-container"),!0),zn("edit-input-container-show"),e&&!t)},containerStyle:function(){var e=this.displayTextarea,t=this.overflowViewport,n=this.textareaRect,r=this.currentColumn,o=n.top,i=n.left;return e&&!t?{top:o+"px",left:i+"px",height:null,"z-index":r.fixed?10:0,opacity:1}:{top:o+"px",left:i+"px",height:"1px","z-index":-1,opacity:0}},textareaClass:function(){return Bo({},zn("edit-input"),!0)}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.setTableEl(),this.hooks.addHook(Jt,(function(){t.displayTextarea&&(t.cellEl||t.setCellEl()),t.debounceSetCellEl(),t.setTextareaPosition(),t.debounceSetTextareaPosition()})),this.hooks.addHook(Zt,(function(){t.setTextareaPosition()})))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=this;this.isEditCellFocus=!1;var n=e.rowKey,r=e.colKey;f(n)||f(r)||(this.setCellEl(),this.$nextTick((function(){t.setTextareaPosition(),setTimeout((function(){t.isEditCellFocus=!0}))})))},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){f(e.colKey)||this[jo]()},deep:!0,immediate:!0},isCellEditing:{handler:function(e){e?this.showTextarea():this.hideTextarea()},deep:!0,immediate:!0},inputStartValue:{handler:function(){this.setRawCellValue()},immediate:!0}},methods:Bo(Bo({setTableEl:function(){var e=this;this.$nextTick((function(){var t=e.$el.previousElementSibling;e.tableEl=t}))},setCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.currentCell,r=n.rowKey,o=n.colKey;if(t){var i=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(o,'"]'));i&&(this.cellEl=i,this.overflowViewport=!1)}},setTextareaPosition:function(){var e=this.hasXScrollBar,t=this.hasYScrollBar,n=this.scrollBarWidth,r=this.colgroups,o=this.hasRightFixedColumn,i=this.currentColumn,l=this.cellEl,u=this.tableEl;if(l&&u){var a=u.getBoundingClientRect(),c=a.left,s=a.top,f=a.right,d=a.bottom,h=l.getBoundingClientRect(),p=h.left,y=h.top,v=h.height,m=h.width,g=h.right,b=h.bottom;if(v&&m){var w=v+d-b,C=m+f-g;if(e&&(w-=n),t&&(C-=n),o&&i&&!i.fixed){var x=Yn({colgroups:r,colKey:i.key,fixed:"right"});x&&(C-=x)}this.autoResize.init(this.$refs[this.textareaInputRef],{minHeight:Math.min(v,w),maxHeight:w,minWidth:Math.min(m,C),maxWidth:C},!0),this.textareaRect={left:p-c,top:y-s}}else this.textareaRect={left:0,top:0},this.cellEl=null,this.overflowViewport=!0}},showTextarea:function(){this.setRawCellValue(),this.displayTextarea=!0},hideTextarea:function(){this.displayTextarea=!1,this.textareaUnObserve()},textareaUnObserve:function(){this.autoResize&&this.autoResize.unObserve()},setRawCellValue:function(){this.rawCellValue=this.inputStartValue},textareaValueChange:function(e){this.$emit(zt,e)}},jo,(function(){var e=this.$refs[this.textareaInputRef];e&&e.select()})),Do,(function(){var e=this.isCellEditing,t=this.editingCell;if(e){var n=this.$refs[this.textareaInputRef],r=function(e){var t=document;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0}(n),o=t.row[t.colKey],i="".concat((o+="").slice(0,r),"\n").concat(o.slice(r));n.value=i,this.textareaValueChange(i),function(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}}(n,r+1)}})),created:function(){var e=this;this.debounceSetTextareaPosition=Object(i.debounce)(this.setTextareaPosition,210),this.debounceSetCellEl=Object(i.debounce)((function(){e.displayTextarea&&(e.cellEl||e.setCellEl())}),200)},mounted:function(){this.autoResize=Ao()},destroyed:function(){this.textareaUnObserve()},render:function(){var e=this,t=arguments[0],n=this.containerClass,r=this.containerStyle,o=this.textareaClass,i=this.rawCellValue,l=this.isCellEditing,u=this.isEditCellFocus,a={style:r,class:n},c={ref:this.textareaInputRef,class:o,directives:[{name:"focus",value:{focus:u}}],domProps:{value:i},attrs:{tabindex:-1},on:{input:function(t){l&&(e.textareaValueChange(t.target.value),e.rawCellValue=t.target.value)},click:function(){e.$emit(Wt)},copy:function(t){e.$emit($t,t)},paste:function(t){e.$emit(qt,t)},cut:function(t){e.$emit(Ut,t)}}};return t("div",a,[t("textarea",c)])}},Mo="clearCurrentCellRect",Fo="clearNormalEndCellRect";function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo={name:xn,mixins:[Br],props:{tableEl:{type:HTMLTableElement,default:null},allRowKeys:{type:Array,required:!0},colgroups:{type:Array,required:!0},parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},cellSelectionData:{type:Object,required:!0},cellSelectionRangeData:{type:Object,required:!0},isAutofillStarting:{type:Boolean,required:!0},currentCellSelectionType:{type:String,default:""},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},isVirtualScroll:{type:Boolean,default:!1},virtualScrollVisibleIndexs:{type:Object,required:!0},isCellEditing:{type:Boolean,default:!1}},data:function(){return{currentCellEl:null,normalEndCellEl:null,autoFillEndCellEl:null,cellSelectionRect:{currentCellRect:{left:0,top:0,width:0,height:0},normalEndCellRect:{left:0,top:0,width:0,height:0},autoFillEndCellRect:{left:0,top:0,width:0,height:0}}}},computed:{selectionBordersVisibility:function(){var e=!0;if(this.isVirtualScroll){var t=this.showVirtualScrollingPlaceholder,n=this.cellSelectionData,r=this.virtualScrollVisibleIndexs,o=this.currentCellSelectionType;if(t)e=!1;else{var i=n.currentCell,l=n.normalEndCell;o===ht&&(i.rowIndex<r.start||i.rowIndex>r.end)&&(e=!1),o===pt&&(i.rowIndex<r.start&&l.rowIndex<r.start||i.rowIndex>r.end&&l.rowIndex>r.end)&&(e=!1)}}return e},showCorner:function(){var e=!0;if(this.cellAutofillOption){var t=this.cellAutofillOption,n=t.directionX,r=t.directionY;p(r)&&!r&&p(n)&&!n&&(e=!1)}else e=!1;return e},cornerCellInfo:function(){var e=this.allRowKeys,t=this.colgroups,n=this.cellSelectionRangeData,r=n.rightColKey,o=n.bottomRowKey,i=!1;if(function(e,t){return!f(e)&&!s(t)&&t[t.length-1].key===e}(r,t))i=!0;else{var l=t.findIndex((function(e){return e.key===r}));t[l+1].fixed===tt&&t[l].fixed!==tt&&(i=!0)}var u=!1;return function(e,t){return!f(e)&&!s(t)&&t[t.length-1]===e}(o,e)&&(u=!0),{isLastColumn:i,isLastRow:u}},isFirstSelectionRow:function(){var e=this.allRowKeys,t=this.cellSelectionRangeData;return e[0]===t.topRowKey},isFirstSelectionCol:function(){var e=this.colgroups,t=this.cellSelectionRangeData;return e[0].key===t.leftColKey},isFirstNotFixedSelectionCol:function(){var e=!1,t=this.colgroups,n=this.cellSelectionRangeData;if(t.find((function(e){return"left"===e.fixed}))){var r=t.find((function(e){return!e.fixed}));r&&r.field===n.leftColKey&&(e=!0)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.hooks.addHook(Jt,(function(){t.setCellEls(),t.debounceSetCellEls(),t.resetCellPositions(),t.debounceResetCellPositions()})),this.hooks.addHook(Zt,(function(){t.debounceResetCellPositions()})),this.hooks.addHook(Qt,(function(){t.$nextTick((function(){t.resetCellPositions()}))})),this.hooks.addHook(en,(function(){t.$nextTick((function(){t.resetCellPositions()}))})))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=e.rowKey,n=e.colKey;f(t)||f(n)?this[Mo]():(this.setCurrentCellEl(),this.setSelectionPositions({type:"currentCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;f(t)||f(n)?this[Fo]():(this.setNormalEndCellEl(),this.setSelectionPositions({type:"normalEndCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.autoFillEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;f(t)||f(n)?this.clearAutofillEndCellRect():(this.setAutofillEndCellEl(),this.setSelectionPositions({type:"autoFillEndCell"}))},deep:!0,immediate:!0}},methods:Wo(Wo({resetCellPositions:function(){var e=this.cellSelectionData,t=e.currentCell,n=e.normalEndCell;f(t.rowKey)||f(t.colKey)||this.setSelectionPositions({type:"currentCell"}),f(n.rowKey)||f(n.colKey)||this.setSelectionPositions({type:"normalEndCell"})},setCellEls:function(){this.isVirtualScroll&&this.selectionBordersVisibility&&(this.setCurrentCellEl(),this.setNormalEndCellEl())},setCellSelectionRangeData:function(){var e=this.currentCellSelectionType,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell,o={};if(e===ht)o={leftColKey:n.colKey,rightColKey:n.colKey,topRowKey:n.rowKey,bottomRowKey:n.rowKey};else if(e===pt){hr({colgroups:this.colgroups,colKeys:[n.colKey,r.colKey]})===n.colKey?(o.leftColKey=n.colKey,o.rightColKey=r.colKey):(o.leftColKey=r.colKey,o.rightColKey=n.colKey),n.rowIndex<r.rowIndex?(o.topRowKey=n.rowKey,o.bottomRowKey=r.rowKey):(o.topRowKey=r.rowKey,o.bottomRowKey=n.rowKey)}else o={leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""};this.$emit(jt,o)},getCellPosition:function(e){var t=e.cellEl,n=e.tableLeft,r=e.tableTop;if(!this.selectionBordersVisibility)return!1;var o=t.getBoundingClientRect(),i=o.left,l=o.top,u=o.height,a=o.width;return u&&a?{left:i-n,top:l-r,width:a,height:u}:void 0},getCellPositionByColKey:function(e){var t,n=e.tableLeft,r=e.tableTop,o=e.colKey,i=e.isFirstRow,l=e.isLastRow;if(!this.selectionBordersVisibility)return!1;if(i?t=this.getTableFirstRowCellByColKey(o):l&&(t=this.getTableLastRowCellByColKey(o)),t){var u=t.getBoundingClientRect(),a=u.left,c=u.top,s=u.width;return s?{left:a-n,top:c-r,width:s}:void 0}},setSelectionPositions:function(e){var t=e.type,n=this.allRowKeys,r=this.tableEl,o=this.currentCellEl,i=this.normalEndCellEl,l=this.autoFillEndCellEl,u=this.cellSelectionData,a=this.virtualScrollVisibleIndexs;if(0===n.length)return!1;if(!r)return!1;var c=r.getBoundingClientRect(),s=c.left,f=c.top,d=!1,h=!1;if("currentCell"===t&&(d=!0,o)){var p=this.getCellPosition({cellEl:o,tableLeft:s,tableTop:f});p&&(d=!1,this.cellSelectionRect.currentCellRect=p)}if("normalEndCell"===t&&(h=!0,i)){var y=this.getCellPosition({cellEl:i,tableLeft:s,tableTop:f});y&&(h=!1,this.cellSelectionRect.normalEndCellRect=y)}if((d||h)&&this.isVirtualScroll){var v,m,g,b=u.currentCell,w=u.normalEndCell;if(d?(v=b.colKey,m=b.rowIndex):(v=w.colKey,m=w.rowIndex),d&&!this.cellSelectionRect.currentCellRect.height||h&&!this.cellSelectionRect.normalEndCellRect.height){var C={tableLeft:s,tableTop:f,colKey:v};m<a.start?g=this.getCellPositionByColKey(Ho(Ho({},C),{},{isFirstRow:!0})):m>a.end&&(g=this.getCellPositionByColKey(Ho(Ho({},C),{},{isLastRow:!0})))}else m<a.start?g={top:0}:m>a.end&&(g={top:r.clientHeight});d?Object.assign(this.cellSelectionRect.currentCellRect,g):Object.assign(this.cellSelectionRect.normalEndCellRect,g)}if(l&&"autoFillEndCell"===t){var x=this.getCellPosition({cellEl:l,tableLeft:s,tableTop:f});x&&(this.cellSelectionRect.autoFillEndCellRect=x)}},getSelectionCurrent:function(e){var t=e.fixedType,n={selectionCurrent:null,autoFillArea:null},r=this.cellSelectionRect,o=this.colgroups,i=this.cellSelectionData,l=r.currentCellRect,u=r.normalEndCellRect;if(!l.width)return n;var a={borderWidth:l.width+1,borderHeight:l.height,topBorder:{show:!0,width:0,height:2,top:l.top-1,left:l.left-1},rightBorder:{show:!0,width:2,height:0,top:l.top,left:l.left+l.width-2},bottomBorder:{show:!0,width:0,height:2,top:l.top+l.height-2,left:l.left-1},leftBorder:{show:!0,width:2,height:0,top:l.top,left:l.left-1},corner:{show:!u.width,top:0,left:0}};a.corner.top=a.bottomBorder.top-3,a.corner.left=a.rightBorder.left-3,u.width||(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:a,fixedType:t}));var c=[i.currentCell.colKey],s=rr({colKeys:c,fixedType:t,colgroups:o});return n.selectionCurrent=this.getBorders(Ho(Ho({},a),{},{showCorner:!u.width,className:"selection-current",fixedType:t,totalColKeys:c,fixedColKeys:s})),n},getSelectionAreas:function(e){var t=e.fixedType,n={normalArea:null,autoFillArea:null},r=this.cellSelectionData,o=r.currentCell,i=r.normalEndCell,l=this.cellSelectionRect,u=this.cellSelectionRangeData,a=this.colgroups,c=l.currentCellRect,s=l.normalEndCellRect;if(!c.width||!s.width)return n;var f={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!0,top:0,left:0}},d=hr({colgroups:this.colgroups,colKeys:[o.colKey,i.colKey]});d===o.colKey?(f.borderWidth=s.left-c.left+s.width+1,f.topBorder.left=c.left-1,f.bottomBorder.left=c.left-1,f.leftBorder.left=c.left-1,f.rightBorder.left=s.left+s.width-1):d===i.colKey&&(f.borderWidth=c.left-s.left+c.width+1,f.topBorder.left=s.left-1,f.rightBorder.left=c.left+c.width-1,f.bottomBorder.left=s.left-1,f.leftBorder.left=s.left-1),s.top>c.top?(f.borderHeight=s.top-c.top+s.height,f.topBorder.top=c.top-1,f.rightBorder.top=c.top,f.bottomBorder.top=s.top+s.height-1,f.leftBorder.top=c.top):s.top<=c.top&&(f.borderHeight=c.top-s.top+c.height,f.topBorder.top=s.top-1,f.rightBorder.top=s.top,f.bottomBorder.top=c.top+c.height-1,f.leftBorder.top=s.top),f.corner.top=f.bottomBorder.top-4,f.corner.left=f.rightBorder.left-4,s.width&&(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:f,fixedType:t}));var h=nr({colKey1:u.leftColKey,colKey2:u.rightColKey,colgroups:a}),p=rr({colKeys:h,fixedType:t,colgroups:a});return n.normalArea=this.getBorders(Ho(Ho({},f),{},{className:"selection-normal-area",fixedType:t,totalColKeys:h,fixedColKeys:p})),n.normalAreaLayer=this.getAreaLayer(Ho(Ho({},f),{},{className:"selection-normal-area-layer",fixedType:t,totalColKeys:h,fixedColKeys:p})),n},getSelectionAutofillArea:function(e){var t=e.areaPostions,n=e.fixedType,r=null,o=this.cellAutofillOption,i=this.cellSelectionRangeData,l=this.cellSelectionRect,u=this.cellSelectionData,a=this.isAutofillStarting,c=this.currentCellSelectionType,s=this.colgroups;if(!a)return r;var d=l.currentCellRect,h=l.autoFillEndCellRect;if(!d.width||!h.width)return r;if(!t)return r;var y,v,m,g,b,w,C={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!1,top:0,left:0}},x=u.currentCell,S=u.autoFillEndCell,R=i.leftColKey,O=i.rightColKey;if(c===ht&&(R=x.colKey,O=x.colKey),R!==S.colKey&&(y=hr({colgroups:s,colKeys:[R,S.colKey]})),O!==S.colKey&&(v=dr({type:"rightmost",colgroups:(m={colgroups:s,colKeys:[O,S.colKey]}).colgroups,colKeys:m.colKeys})),h.top>t.bottomBorder.top)g=ft,b=R,w=O,C.topBorder.show=!1,C.borderWidth=t.borderWidth,C.borderHeight=h.top-t.bottomBorder.top+h.height,C.rightBorder.top=t.bottomBorder.top,C.rightBorder.left=t.rightBorder.left,c===ht&&C.rightBorder.left++,C.leftBorder.top=t.bottomBorder.top,C.leftBorder.left=t.leftBorder.left,C.bottomBorder.top=h.top+h.height-1,C.bottomBorder.left=t.bottomBorder.left;else if(h.top<t.topBorder.top)g=ct,b=R,w=O,C.bottomBorder.show=!1,C.borderWidth=t.borderWidth,C.borderHeight=t.topBorder.top-h.top,C.topBorder.top=h.top-1,C.topBorder.left=t.topBorder.left,C.rightBorder.top=h.top,C.rightBorder.left=t.rightBorder.left,c===ht&&C.rightBorder.left++,C.leftBorder.top=h.top,C.leftBorder.left=t.leftBorder.left;else if(v!==S.colKey||f(v)){if(y!==S.colKey||f(y))return r;g=dt,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!f(n)){var o=t.findIndex((function(e){return e.key===n}));0===o?r=n:o>0&&(r=t[o-1].key)}return r}({colgroups:s,currentColKey:R}),w=S.colKey,C.rightBorder.show=!1,C.borderWidth=t.leftBorder.left-h.left+1,C.borderHeight=t.borderHeight,C.topBorder.top=t.topBorder.top,C.topBorder.left=h.left,C.rightBorder.left=t.topBorder.left,C.bottomBorder.top=t.bottomBorder.top,C.bottomBorder.left=h.left,C.leftBorder.top=t.topBorder.top,C.leftBorder.left=h.left}else g=st,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!f(n)){var o=t.findIndex((function(e){return e.key===n}));o===t.length-1?r=n:o<t.length-1&&(r=t[o+1].key)}return r}({colgroups:s,currentColKey:O}),w=S.colKey,C.leftBorder.show=!1,C.borderWidth=h.left-t.rightBorder.left+h.width+1,C.borderHeight=t.borderHeight,C.topBorder.top=t.topBorder.top,C.topBorder.left=t.rightBorder.left-1,C.rightBorder.top=t.topBorder.top,C.rightBorder.left=h.left+h.width-1,C.bottomBorder.top=t.bottomBorder.top,C.bottomBorder.left=t.rightBorder.left-1;var _=o.directionX,K=o.directionY;if(p(_)&&!_&&(g===dt||g===st))return!1;if(p(K)&&!K&&(g===ct||g===ft))return!1;var I=nr({colKey1:b,colKey2:w,colgroups:s}),E=rr({colKeys:I,fixedType:n,colgroups:s});return(r=this.getBorders(Ho(Ho({className:"selection-autofill-area"},C),{},{fixedType:n,totalColKeys:I,fixedColKeys:E})))&&this.dispatch(rn,Xt,g),r},getBorders:function(e){var t=this,n=e.borderWidth,r=e.borderHeight,o=e.topBorder,i=e.rightBorder,l=e.bottomBorder,u=e.leftBorder,a=e.corner,c=e.className,s=e.fixedType,f=e.totalColKeys,d=e.fixedColKeys,h=this.$createElement,p=this.cornerCellInfo,y=this.colgroups,v=this.isFirstSelectionRow,m=this.isFirstSelectionCol,g=this.isFirstNotFixedSelectionCol,b=this.showCorner;if(!(s?sr({fixedType:s,colKeys:f,colgroups:y}):fr({colKeys:f,colgroups:y})))return null;var w=0;d.length&&(w=Jn({colKeys:d,colgroups:y})),s&&(n=w,s===et&&(n+=1)),s===et&&f.length!==d.length&&(i.show=!1,a.show=!1),s===tt&&(f.length!==d.length&&(u.show=!1),o.left=i.left-n+1,l.left=i.left-n+1),v&&(o.top+=1),m&&(u.left+=1),g&&(u.left+=1);var C=a.top,x=a.left,S="1px",R="1px";p.isLastRow&&(C-=3,R="0px"),p.isLastColumn&&(x-=3,S="0px"),b||(a.show=!1);var O={class:zn("selection-corner"),style:{display:a.show?"block":"none",top:C+"px",left:x+"px",borderWidth:"1px ".concat(S," ").concat(R," 1px")},on:{mousedown:function(e){t.dispatch(rn,Gt,{event:e})},mouseup:function(e){t.dispatch(rn,Yt,{event:e})}}};return h("div",{class:zn(c)},[h("div",{style:{display:o.show?"block":"none",width:n+"px",height:o.height+"px",top:o.top+"px",left:o.left+"px"},class:zn("selection-border")}),h("div",{style:{display:i.show?"block":"none",width:i.width+"px",height:r+"px",top:i.top+"px",left:i.left+"px"},class:zn("selection-border")}),h("div",{style:{display:l.show?"block":"none",width:n+"px",height:l.height+"px",top:l.top+"px",left:l.left+"px"},class:zn("selection-border")}),h("div",{style:{display:u.show?"block":"none",width:u.width+"px",height:r+"px",top:u.top+"px",left:u.left+"px"},class:zn("selection-border")}),h("div",O)])},getAreaLayer:function(e){var t=e.borderWidth,n=e.borderHeight,r=e.topBorder,o=e.className,i=e.fixedType,l=e.totalColKeys,u=e.fixedColKeys,a=this.$createElement,c=this.colgroups;if(!(i?sr({fixedType:i,colKeys:l,colgroups:c}):fr({colKeys:l,colgroups:c})))return null;var s=0;return u.length&&(s=Jn({colKeys:u,colgroups:c})),i&&(t=s,i===et&&(t+=1)),a("div",{class:zn(o),style:{top:r.top+"px",left:r.left+"px",width:t+"px",height:n+"px"}})},getTableFirstRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr td[col-key="'.concat(e,'"]'))),t},getTableLastRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr:last-child td[col-key="'.concat(e,'"]'))),t},getTableCellEl:function(e){var t=e.rowKey,n=e.colKey,r=null,o=this.tableEl;return o&&(r=o.querySelector('tbody.ve-table-body tr[row-key="'.concat(t,'"] td[col-key="').concat(n,'"]'))),r},setCurrentCellEl:function(){var e=this.cellSelectionData.currentCell,t=e.rowKey,n=e.colKey;if(!f(t)&&!f(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.currentCellEl=r)}},setNormalEndCellEl:function(){var e=this.cellSelectionData.normalEndCell,t=e.rowKey,n=e.colKey;if(!f(t)&&!f(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.normalEndCellEl=r)}},setAutofillEndCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.autoFillEndCell,r=n.rowKey,o=n.colKey;if(t){var i=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(o,'"]'));i&&(this.autoFillEndCellEl=i)}},clearAutofillEndCellRect:function(){this.autoFillEndCellEl=null,this.cellSelectionRect.autoFillEndCellRect={left:0,top:0,width:0,height:0}}},Mo,(function(){this.currentCellEl=null,this.cellSelectionRect.currentCellRect={left:0,top:0,width:0,height:0}})),Fo,(function(){this.normalEndCellEl=null,this.cellSelectionRect.normalEndCellRect={left:0,top:0,width:0,height:0}})),created:function(){this.debounceResetCellPositions=Object(i.debounce)(this.resetCellPositions,210),this.debounceSetCellEls=Object(i.debounce)(this.setCellEls,200)},render:function(){var e=arguments[0];if(!this.selectionBordersVisibility)return null;var t=this.getSelectionCurrent({fixedType:et}),n=this.getSelectionAreas({fixedType:et}),r=t.autoFillArea||n.autoFillArea,o=this.getSelectionCurrent({fixedType:""}),i=this.getSelectionAreas({fixedType:""}),l=o.autoFillArea||i.autoFillArea,u=this.getSelectionCurrent({fixedType:tt}),a=this.getSelectionAreas({fixedType:tt}),c=u.autoFillArea||a.autoFillArea;return e("div",{class:zn("selection-wrapper"),style:{visibility:this.isCellEditing?"hidden":""}},[e("div",{class:zn("selection-fixed-left")},[t.selectionCurrent,n.normalArea,r,n.normalAreaLayer]),e("div",{class:zn("selection-middle")},[o.selectionCurrent,i.normalArea,l,i.normalAreaLayer]),e("div",{class:zn("selection-fixed-right")},[u.selectionCurrent,a.normalArea,c,a.normalAreaLayer])])}};function $o(e){return($o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo,Go={name:Sn,props:{parentRendered:{type:Boolean,required:!0},tableContainerEl:{type:HTMLDivElement,default:null},hooks:{type:Object,required:!0},colgroups:{type:Array,required:!0},isColumnResizerHover:{type:Boolean,required:!0},isColumnResizing:{type:Boolean,required:!0},setIsColumnResizerHover:{type:Function,required:!0},setIsColumnResizing:{type:Function,required:!0},setColumnWidth:{type:Function,required:!0},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{columnResizerStartX:0,currentResizingColumn:null,columnResizerHandlerWidth:5,columnResizerRect:{top:0,left:0,height:0}}},computed:{columnMinWidth:function(){var e=30,t=this.columnWidthResizeOption;if(t){var n=t.minWidth;y(n)&&n>0&&(e=n)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&this.hooks.addHook(tn,(function(e){var n=e.event,r=e.column;r.disableResizing||t.initColumnResizerPosition({event:n,column:r})}))},immediate:!0}},methods:{initColumnResizerPosition:function(e){var t=e.event,n=e.column,r=this.tableContainerEl,o=this.isColumnResizing;if(r&&!o){var i=r.getBoundingClientRect(),l=i.left,u=i.top,a=this.colgroups.find((function(e){return e.key===n.key}));if(!a)return!1;if(a._realTimeWidth){var c=t.target.getBoundingClientRect(),s=c.height,f=c.left,d=c.top;this.columnResizerRect.left=f+a._realTimeWidth-l,this.columnResizerRect.top=d-u,this.columnResizerRect.height=s,this.currentResizingColumn=a,this.columnResizerStartX=f+a._realTimeWidth}else console.warn("Resizer column needs set column width")}},setColumnResizerPositionByDrag:function(e){var t=this.tableContainerEl,n=this.isColumnResizing,r=this.currentResizingColumn;if(t&&n){var o=t.getBoundingClientRect().left;if(n&&r){var i=this.columnResizerStartX,l=this.columnMinWidth;r._realTimeWidth+(e.clientX-i)>l&&(this.columnResizerRect.left=e.clientX-o)}}},columnResizerHandlerMousedown:function(e){e.event;this.isColumnResizerHover&&(this.setIsColumnResizing(!0),document.addEventListener("mousemove",this.setColumnResizerPositionByDrag),document.addEventListener("mouseup",this.columnResizerMouseup),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1})},columnResizerMouseup:function(e){var t,n=this.isColumnResizing,r=this.currentResizingColumn,o=this.columnResizerStartX,i=this.setColumnWidth,l=this.columnWidthResizeOption,u=this.columnMinWidth;if(!n||!r)return!1;if(t=r._realTimeWidth+(e.clientX-o)<u?u-r._realTimeWidth:e.clientX-o,t=Math.floor(t),Math.abs(t)>1){var a=r._realTimeWidth;if(a+=t,i({colKey:r.key,width:a}),l){var c=l.sizeChange;c&&c({column:r,differWidth:t,columnWidth:a})}}this.clearColumnResizerStatus(),document.removeEventListener("mousemove",this.setColumnResizerPositionByDrag),document.removeEventListener("mouseup",this.columnResizerMouseup)},clearColumnResizerStatus:function(){this.currentResizingColumn=null,this.columnResizerStartX=0,this.setIsColumnResizerHover(!1),this.setIsColumnResizing(!1),document.onselectstart=function(){return!0},document.ondragstart=function(){return!0}}},render:function(){var e=this,t=arguments[0],n=this.isColumnResizerHover,r=this.isColumnResizing,o=this.columnResizerRect,i=this.columnResizerHandlerWidth,l=o.left,u=o.top,a=o.height,c={class:qo(qo({},zn("column-resizer-handler"),!0),"active",n||r),style:{left:l-i+"px",top:u+"px",height:a+"px"},on:{click:function(){},mousedown:function(t){e.columnResizerHandlerMousedown({event:t})},mouseenter:function(){e.setIsColumnResizerHover(!0)},mouseleave:function(){e.setIsColumnResizerHover(!1)},mouseup:function(t){e.columnResizerMouseup(t)}}},s={class:[zn("column-resizer-line")],style:{display:r?"block":"none",left:l+"px"}};return t("div",{class:zn("column-resizer")},[t("div",c),t("div",s)])}};function Yo(e){return(Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){Zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Yo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qo=c("table"),ei={name:rn,directives:{"click-outside":ue},mixins:[Br],props:{tableData:{required:!0,type:Array},footerData:{type:Array,default:function(){return[]}},showHeader:{type:Boolean,default:!0},columns:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},scrollWidth:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},fixedHeader:{type:Boolean,default:!0},fixedFooter:{type:Boolean,default:!0},borderAround:{type:Boolean,default:!0},borderX:{type:Boolean,default:!0},borderY:{type:Boolean,default:!1},eventCustomOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},rowStyleOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},sortOption:{type:Object,default:function(){return null}},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},editOption:{type:Object,default:function(){return null}},columnHiddenOption:{type:Object,default:function(){return null}},contextmenuHeaderOption:{type:Object,default:function(){return null}},contextmenuBodyOption:{type:Object,default:function(){return null}},clipboardOption:{type:Object,default:function(){return null}},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{hooks:{},parentRendered:!1,tableViewportWidth:0,columnsOptionResetTime:0,tableRootRef:"tableRootRef",tableContainerWrapperRef:"tableContainerWrapperRef",tableContainerRef:"tableContainerRef",tableRef:"tableRef",tableBodyRef:"tableBodyRef",tableContentWrapperRef:"tableContentWrapperRef",virtualPhantomRef:"virtualPhantomRef",editInputRef:"editInputRef",cellSelectionRef:"cellSelectionRef",contextmenuRef:"contextmenuRef",cloneColumns:[],isGroupHeader:!1,headerRows:[],footerRows:[],colgroups:[],groupColumns:[],hiddenColumns:[],virtualScrollVisibleData:[],virtualScrollVisibleIndexs:{start:-1,end:-1},defaultVirtualScrollBufferScale:1,defaultVirtualScrollMinRowHeight:40,defaultPlaceholderPerScrollingRowCount:8,virtualScrollStartIndex:0,previewVirtualScrollStartIndex:0,virtualScrollEndIndex:0,showVirtualScrollingPlaceholder:!1,disablePointerEventsTimeoutId:null,isLeftScrolling:!1,isRightScrolling:!1,isVerticalScrolling:!1,hasXScrollBar:!1,hasYScrollBar:!1,scrollBarWidth:0,previewTableContainerScrollLeft:null,headerIndicatorColKeys:{startColKey:"",startColKeyIndex:-1,endColKey:"",endColKeyIndex:-1},bodyIndicatorRowKeys:{startRowKey:"",startRowKeyIndex:-1,endRowKey:"",endRowKeyIndex:-1},cellSelectionData:{currentCell:{rowKey:"",colKey:"",rowIndex:-1},normalEndCell:{rowKey:"",colKey:"",rowIndex:-1},autoFillEndCell:{rowKey:"",colKey:""}},cellSelectionRangeData:{leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""},isHeaderCellMousedown:!1,isBodyCellMousedown:!1,isBodyOperationColumnMousedown:!1,isAutofillStarting:!1,autofillingDirection:null,currentCellSelectionType:"",tableOffestHeight:0,tableHeight:0,highlightRowKey:"",editingCell:{rowKey:"",colKey:"",row:null,column:null},editorInputStartValue:"",enableStopEditing:!0,contextmenuEventTarget:"",contextmenuOptions:[],isColumnResizerHover:!1,isColumnResizing:!1}},computed:{actualRenderTableData:function(){return this.isVirtualScroll?this.virtualScrollVisibleData:this.tableData},allRowKeys:function(){var e=[],t=this.tableData,n=this.rowKeyFieldName;return n&&(e=t.map((function(e){return e[n]}))),e},virtualScrollBufferCount:function(){var e=0,t=this.virtualScrollOption,n=this.defaultVirtualScrollBufferScale,r=this.virtualScrollVisibleCount;if(t){var o=t.bufferScale;e=(y(o)&&o>0?o:n)*r}return e},virtualScrollVisibleCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollOption,r=this.defaultVirtualScrollMinRowHeight,o=this.maxHeight,i=this.tableOffestHeight;if(t&&o){var l=y(n.minRowHeight)?n.minRowHeight:r;y(o)?e=Math.ceil(o/l):i&&(e=Math.ceil(i/l))}return e},tableContainerWrapperStyle:function(){return{width:"100%"}},tableContainerStyle:function(){var e=v(this.maxHeight),t=null;this.isVirtualScroll?e?t=e:console.error("maxHeight prop is required when 'virtualScrollOption.enable = true'"):(t=this.tableHeight,this.hasXScrollBar&&(t+=this.getScrollBarWidth()),t=v(t));return{"max-height":e,height:t}},tableStyle:function(){return{width:v(this.scrollWidth)}},tableClass:function(){return Zo(Zo({},zn("border-x"),this.borderX),zn("border-y"),this.borderY)},tableContainerClass:function(){var e=this.isVirtualScroll,t=this.isLeftScrolling,n=this.isRightScrolling,r=this.isVerticalScrolling,o=this.isCellEditing,i=this.isAutofillStarting,l=this.enableCellSelection;return Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo({},zn("container"),!0),zn("virtual-scroll"),e),zn("container-left-scrolling"),t),zn("container-right-scrolling"),n),zn("container-vertical-scrolling"),r),zn("is-cell-editing"),o),zn("autofilling"),i),zn("enable-cell-selection"),l)},tableBodyClass:function(){var e=this.rowStyleOption,t=!0,n=!0,r=!1;return e&&(t=e.hoverHighlight,n=e.clickHighlight,r=e.stripe),Zo(Zo(Zo({},zn("stripe"),!0===r),zn("row-hover"),!1!==t),zn("row-highlight"),!1!==n)},isVirtualScroll:function(){var e=this.virtualScrollOption;return e&&e.enable},hasFixedColumn:function(){return this.colgroups.some((function(e){return e.fixed===et||e.fixed===tt}))},hasLeftFixedColumn:function(){return this.colgroups.some((function(e){return e.fixed===et}))},hasRightFixedColumn:function(){return this.colgroups.some((function(e){return e.fixed===tt}))},isCellEditing:function(){var e=this.editingCell;return!f(e.rowKey)&&!f(e.colKey)},hasEditColumn:function(){return this.colgroups.some((function(e){return e.edit}))},enableHeaderContextmenu:function(){var e=!1,t=this.contextmenuHeaderOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},enableBodyContextmenu:function(){var e=!1,t=this.contextmenuBodyOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},contextMenuType:function(){return this.headerIndicatorColKeys.startColKeyIndex>-1?Mn:Fn},enableCellSelection:function(){var e=!0,t=this.cellSelectionOption;return(f(this.rowKeyFieldName)||t&&p(t.enable)&&!1===t.enable)&&(e=!1),e},enableClipboard:function(){return this.rowKeyFieldName},enableColumnResize:function(){var e=!1,t=this.columnWidthResizeOption;if(t){var n=t.enable;p(n)&&(e=n)}return e},headerTotalHeight:function(){var e=0;return this.showHeader&&(e=this.headerRows.reduce((function(e,t){return t.rowHeight+e}),0)),e},footerTotalHeight:function(){return this.footerRows.reduce((function(e,t){return t.rowHeight+e}),0)}},watch:{tableData:{handler:function(e,t){this.initVirtualScrollPositions(),t&&this.initVirtualScroll()},immediate:!0},allRowKeys:{handler:function(e){if(Array.isArray(e)){var t=this.cellSelectionData.currentCell;t.rowIndex>-1&&-1===e.indexOf(t.rowKey)&&this.clearCellSelectionCurrentCell()}},immediate:!1},columns:{handler:function(e,t){this.initColumns(),this.initGroupColumns(),this.initColumnWidthByColumnResize(),e!=t&&t&&(this.columnsOptionResetTime++,this.initScrolling())},immediate:!0},cloneColumns:{handler:function(){this.initGroupColumns(),this.initColumnWidthByColumnResize(),this.columnsOptionResetTime++,this.initScrolling()},immediate:!1},groupColumns:{handler:function(e){s(e)||this.initHeaderRows()},immediate:!0},footerData:{handler:function(e){s(e)||this.initFooterRows()},immediate:!0},"virtualScrollOption.enable":{handler:function(e){e?(this.initVirtualScrollPositions(),this.initVirtualScroll()):this.setTableContentTopValue({top:0})},immediate:!1},isAutofillStarting:{handler:function(e){e||(this.setCellSelectionByAutofill(),this.clearCellSelectionAutofillEndCell())}},"cellSelectionData.currentCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},headerIndicatorColKeys:{handler:function(){this.setRangeCellSelectionByHeaderIndicator()},deep:!0},bodyIndicatorRowKeys:{handler:function(){this.setRangeCellSelectionByBodyIndicator()},deep:!0}},methods:(Uo={initHeaderRows:function(){var e=this.groupColumns;Array.isArray(e)&&(this.headerRows=e.map((function(){return{rowHeight:0}})))},initFooterRows:function(){var e=this.footerData;Array.isArray(e)&&(this.footerRows=e.map((function(){return{rowHeight:0}})))},headerRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.headerRows.splice(t,1,{rowHeight:n})},footRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.footerRows.splice(t,1,{rowHeight:n})},bodyCellWidthChange:function(e){this.colgroups=this.colgroups.map((function(t){return t._realTimeWidth=e.get(t.key),t})),this.hooks.triggerHook(Qt)},setColumnWidth:function(e){var t=this,n=e.colKey,r=e.width;this.colgroups=this.colgroups.map((function(e){return e.key===n&&(e._columnResizeWidth=r),e})),this.$nextTick((function(){t.setScrollBarStatus()})),this.hooks.triggerHook(Qt)},updateColgroupsBySortChange:function(e){this.colgroups=this.colgroups.map((function(t){return Object.keys(e).indexOf(t.field)>-1&&(t.sortBy=e[t.field]),t}))},initColumnWidthByColumnResize:function(){var e=this.enableColumnResize;e&&(this.colgroups=this.colgroups.map((function(e){var t=50;return y(e.width)&&(t=e.width),e._columnResizeWidth=t,e})))},initColumns:function(){var e=this.columnHiddenOption;if(e){var t=e.defaultHiddenColumnKeys;s(t)||(this.hiddenColumns=t)}this.showOrHideColumns()},showOrHideColumns:function(){var e=Object(i.cloneDeep)(this.columns);e=e.map((function(e){return e.operationColumn&&(e.fixed=et),e}));var t=this.hiddenColumns;s(t)||t.forEach((function(t){e=function e(t,n){return t.filter((function(t){return"children"in t&&(t.children=e(t.children,n)),t.key!==n}))}(e,t)})),this.cloneColumns=e},initGroupColumns:function(){var e=function(e){var t=[],n=[],r=1,o=function(e,t){t&&(e._level=t._level+1,r<e._level&&(r=e._level)),e.children&&e.children.forEach((function(t){t.fixed=e.fixed,o(t,e)}))};e.forEach((function(e){e._level=1,o(e)}));var i=function(e){if(e.children){var t="",n=0;e.children.forEach((function(e){i(e),n+=e._colspan,t+=e._keys.endsWith("|")?e._keys:e._keys+"|"})),e._keys=t,e._colspan=n,e._rowspan=1}else e._keys=e.key,e._colspan=1,e._rowspan=r-e._level+1};e.forEach((function(e){i(e)}));for(var l=0;l<r;l++)n.push([]);var u=function(e){if(!s(e.children)||!f(e.key)){var r=Object.assign({},(Wn(e),e));if(n[e._level-1].push(r),e.children)e.children.forEach((function(e){u(e)}));else{var o=Object.assign({},(Wn(e),e));o._realTimeWidth=o.width,t.push(o)}}};return e.forEach((function(e){u(e)})),{isGroupHeader:r>1,colgroups:t,groupColumns:n}}(this.cloneColumns);this.isGroupHeader=e.isGroupHeader,this.colgroups=e.colgroups,this.groupColumns=e.groupColumns},getScrollBarWidth:function(){var e=0,t=this.scrollBarWidth;return t?e=t:(e=function(){var e=document.createElement("div");e.className="ve-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),t-r}(),this.scrollBarWidth=e),e},selectedAllChange:function(e){var t=e.isSelected;this.broadcast(fn,Et,{isSelected:t})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.broadcast(an,kt,{isSelected:t,isIndeterminate:n})},cellSelectionCurrentCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.currentCell.colKey=n,this.cellSelectionData.currentCell.rowKey=t,this.cellSelectionData.currentCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionNormalEndCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.normalEndCell.colKey=n,this.cellSelectionData.normalEndCell.rowKey=t,this.cellSelectionData.normalEndCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionAutofillCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.autoFillEndCell.colKey=n,this.cellSelectionData.autoFillEndCell.rowKey=t},clearCellSelectionCurrentCell:function(){this.cellSelectionCurrentCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionNormalEndCell:function(){this.cellSelectionNormalEndCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionAutofillEndCell:function(){this.cellSelectionAutofillCellChange({rowKey:"",colKey:""})},headerIndicatorColKeysChange:function(e){var t=e.startColKey,n=e.endColKey,r=this.colgroups;this.headerIndicatorColKeys.startColKey=t,this.headerIndicatorColKeys.startColKeyIndex=r.findIndex((function(e){return e.key===t})),this.headerIndicatorColKeys.endColKey=n,this.headerIndicatorColKeys.endColKeyIndex=r.findIndex((function(e){return e.key===n}))},clearHeaderIndicatorColKeys:function(){this.headerIndicatorColKeys.startColKey="",this.headerIndicatorColKeys.startColKeyIndex=-1,this.headerIndicatorColKeys.endColKey="",this.headerIndicatorColKeys.endColKeyIndex=-1},bodyIndicatorRowKeysChange:function(e){var t=e.startRowKey,n=e.endRowKey,r=this.allRowKeys;this.bodyIndicatorRowKeys.startRowKey=t,this.bodyIndicatorRowKeys.startRowKeyIndex=r.indexOf(t),this.bodyIndicatorRowKeys.endRowKey=n,this.bodyIndicatorRowKeys.endRowKeyIndex=r.indexOf(n)},clearBodyIndicatorRowKeys:function(){this.bodyIndicatorRowKeys.startRowKey="",this.bodyIndicatorRowKeys.startRowKeyIndex=-1,this.bodyIndicatorRowKeys.endRowKey="",this.bodyIndicatorRowKeys.endRowKeyIndex=-1},setCellSelectionByAutofill:function(){var e=this.cellAutofillOption,t=this.cellSelectionRangeData,n=this.colgroups,r=this.allRowKeys,o=this.autofillingDirection,i=this.currentCellSelectionType,l=this.cellSelectionData,u=l.autoFillEndCell,a=l.currentCell,c=u.rowKey,s=u.colKey;if(f(c)||f(s))return!1;var d={},y={},v=t.leftColKey,m=t.rightColKey,g=t.topRowKey,b=t.bottomRowKey;if(i===pt){if(lr({cellData:u,cellSelectionRangeData:t,colgroups:n,allRowKeys:r}))return!1;o===st?(d={rowKey:g,colKey:v},y={rowKey:b,colKey:s}):o===ft?(d={rowKey:g,colKey:v},y={rowKey:c,colKey:m}):o===ct?(d={rowKey:c,colKey:v},y={rowKey:b,colKey:m}):o===dt&&(d={rowKey:g,colKey:s},y={rowKey:b,colKey:m})}else if(i===ht){if(a.rowKey===c&&a.colKey===s)return!1;o===st?(d={rowKey:c,colKey:v},y={rowKey:c,colKey:s}):o===ft?(d={rowKey:g,colKey:v},y={rowKey:c,colKey:v}):o===ct?(d={rowKey:c,colKey:v},y={rowKey:b,colKey:v}):o===dt&&(d={rowKey:c,colKey:s},y={rowKey:c,colKey:m})}var w={tableData:this.tableData,allRowKeys:this.allRowKeys,colgroups:this.colgroups,rowKeyFieldName:this.rowKeyFieldName,direction:o,currentCellSelectionType:i,cellSelectionRangeData:t,nextCurrentCell:d,nextNormalEndCell:y};if(e){var C=e.beforeAutofill,x=e.afterAutofill;if(h(C)){var S=C(pr(Jo({isReplaceData:!1},w)));if(p(S)&&!S)return!1}var R=pr(Jo({isReplaceData:!0},w));h(x)&&x(R)}f(d.rowKey)||this.cellSelectionCurrentCellChange({rowKey:d.rowKey,colKey:d.colKey}),f(y.rowKey)||this.cellSelectionNormalEndCellChange({rowKey:y.rowKey,colKey:y.colKey})},cellSelectionRangeDataChange:function(e){this.cellSelectionRangeData=Object.assign(this.cellSelectionRangeData,e)},autofillingDirectionChange:function(e){this.autofillingDirection=e},setCurrentCellSelectionType:function(){var e,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell;e=f(n.rowKey)||f(n.colKey)?"":f(r.rowKey)||f(r.colKey)?ht:pt,this.currentCellSelectionType=e},dealKeydownEvent:function(e){var t=this.colgroups,n=this.cellSelectionData,r=this.enableStopEditing,o=this.isCellEditing,i=e.keyCode,l=e.ctrlKey,u=e.shiftKey,a=e.altKey,c=n.currentCell,s=c.rowKey,d=c.colKey,h=t.find((function(e){return e.key===d}));if(!f(s)&&!f(d))switch(i){case A:var p;p=u?at:lt,this.selectCellByDirection({direction:p}),this.clearCellSelectionNormalEndCell(),this[kn](),e.preventDefault();break;case N:var y=at;r&&(this.selectCellByDirection({direction:y}),this.clearCellSelectionNormalEndCell(),this[kn](),e.preventDefault());break;case F:var v=lt;r&&(this.selectCellByDirection({direction:v}),this.clearCellSelectionNormalEndCell(),this[kn](),e.preventDefault());break;case M:var m=it;r&&(this.selectCellByDirection({direction:m}),this.clearCellSelectionNormalEndCell(),this[kn](),e.preventDefault());break;case L:var g=ut;r&&(this.selectCellByDirection({direction:g}),this.clearCellSelectionNormalEndCell(),this[kn](),e.preventDefault());break;case P:var b;if(a)this.$refs[this.editInputRef].textareaAddNewLine();else u?(b=it,this[kn]()):(l||(b=ut),this[kn]());b&&(this.clearCellSelectionNormalEndCell(),this.selectCellByDirection({direction:b})),e.preventDefault();break;case B:o||(this[En]({rowKey:s,colKey:d,defaultValue:" "}),e.preventDefault());break;case j:o||(this[En]({rowKey:s,colKey:d,defaultValue:""}),e.preventDefault());break;case V:o||(this.deleteCellSelectionRangeValue(),e.preventDefault());break;case H:o||(h.edit&&(this.enableStopEditing=!1,this[En]({rowKey:s,colKey:d})),e.preventDefault());break;default:(function(e){var t=!1,n=e.keyCode,r=e.altKey,o=e.ctrlKey,i=e.shiftKey,l=e.metaKey;return r||o||i||l||(n>=48&&n<=57||n>=96&&n<=105||n>=65&&n<=90||[186,187,188,189,190,191,192,219,220,221,222].indexOf(n)>-1||229==n)&&(t=!0),t})(e)&&this[En]({rowKey:s,colKey:d,defaultValue:""})}},selectCellByDirection:function(e){var t=e.direction,n=this.colgroups,r=this.allRowKeys,o=this.cellSelectionData.currentCell,i=o.rowKey,l=o.colKey,u=n.findIndex((function(e){return e.key===l})),a=r.indexOf(i);if(t===at){if(u>0){var c=n[u-1];this.cellSelectionData.currentCell.colKey=c.key,this.columnToVisible(c)}}else if(t===lt){if(u<n.length-1){var s=n[u+1];this.cellSelectionData.currentCell.colKey=s.key,this.columnToVisible(s)}}else if(t===it){if(a>0){var f=r[a-1];this.rowToVisible(M,f)}}else if(t===ut&&a<r.length-1){var d=r[a+1];this.rowToVisible(L,d)}},columnToVisible:function(e){var t=this.hasXScrollBar,n=this.colgroups;if(!t)return!1;var r=this.$refs[this.tableContainerRef],o=r.scrollWidth,i=r.clientWidth,l=r.scrollLeft;if(!e.fixed){var u=Xn({colgroups:n,colKey:e.key,fixed:et}),a=Xn({colgroups:n,colKey:e.key,fixed:tt});if(l){var c=l-u;c>0&&(r.scrollLeft=l-c)}var s=o-i-l;if(s){var f=s-a;f>0&&(r.scrollLeft=l+f)}}},rowToVisible:function(e,t){var n=this.$refs[this.tableContainerRef],r=this.$refs[this.tableContentWrapperRef].$el,o=this.isVirtualScroll,i=this.headerTotalHeight,l=this.footerTotalHeight,u=n.clientHeight,a=n.scrollTop,c=this.$el.querySelector("tbody tr[".concat(Rn,'="').concat(t,'"]'));if(c){var s=c.offsetTop,f=c.clientHeight,d=r.offsetTop;if(e===M){var h=0;(h=o?i-(s-(a-d)):a+i-s)>0&&(n.scrollTop=a-h)}else if(e===L){var p=0;(p=o?s-(a-d)+f+l-u:s+f+l-(u+a))>=0&&(n.scrollTop=a+p)}var y=this.cellSelectionData.currentCell;this.cellSelectionCurrentCellChange({rowKey:t,colKey:y.colKey})}},setVirtualScrollVisibleData:function(){var e=this.tableData,t=this.virtualScrollStartIndex,n=this.virtualScrollEndIndex,r=t-this.getVirtualScrollAboveCount(),o=n+this.getVirtualScrollBelowCount();this.virtualScrollVisibleIndexs.start=r,this.virtualScrollVisibleIndexs.end=o-1,this.virtualScrollVisibleData=e.slice(r,o)},getVirtualScrollAboveCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollBufferCount,r=this.virtualScrollStartIndex;return t&&(e=Math.min(r,n)),e},getVirtualScrollBelowCount:function(){var e=0,t=this.isVirtualScroll,n=this.tableData,r=this.virtualScrollBufferCount,o=this.virtualScrollEndIndex;return t&&(e=Math.min(n.length-o,r)),e},getVirtualViewPhantom:function(){var e=this,t=this.$createElement,n=null,r=this.isVirtualScroll,o=this.hasLeftFixedColumn,i=this.expandOption;if(r||o&&i){var l={props:{tagName:"div"},style:{width:"100%"},on:{"on-dom-resize-change":function(t){var n=t.width;e.tableViewportWidth=n}}};n=t("div",{ref:this.virtualPhantomRef,class:[zn("virtual-phantom"),r?zn("virtual-scroll"):""]},[t(Jr,l)])}return n},initVirtualScrollPositions:function(){if(this.isVirtualScroll){var e=this.virtualScrollOption,t=this.rowKeyFieldName,n=this.tableData,r=this.defaultVirtualScrollMinRowHeight,o=y(e.minRowHeight)?e.minRowHeight:r;this.virtualScrollPositions=n.map((function(e,n){return{rowKey:e[t],height:o,top:n*o,bottom:(n+1)*o}}))}},bodyRowHeightChange:function(e){var t=e.rowKey,n=e.height,r=this.virtualScrollPositions.findIndex((function(e){return e.rowKey===t})),o=this.virtualScrollPositions[r].height-n;if(o){this.virtualScrollPositions[r].bottom=this.virtualScrollPositions[r].bottom-o,this.virtualScrollPositions[r].height=n;for(var i=r+1;i<this.virtualScrollPositions.length;i++)this.virtualScrollPositions[i].top=this.virtualScrollPositions[i-1].bottom,this.virtualScrollPositions[i].bottom=this.virtualScrollPositions[i].bottom-o;this.setVirtualPhantomHeight(),this.setVirtualScrollStartOffset()}},setVirtualPhantomHeight:function(){var e=0;this.virtualScrollPositions.length&&(e=this.virtualScrollPositions[this.virtualScrollPositions.length-1].bottom),this.$refs[this.virtualPhantomRef].style.height=e+"px"},setVirtualScrollStartOffset:function(){var e=this.virtualScrollStartIndex,t=this.getVirtualScrollAboveCount(),n=0;if(e>=1){var r=this.virtualScrollPositions[e].top-(this.virtualScrollPositions[e-t]?this.virtualScrollPositions[e-t].top:0);n=this.virtualScrollPositions[e-1].bottom-r}this.setTableContentTopValue({top:n})},setTableContentTopValue:function(e){var t=this,n=e.top;window.requestAnimationFrame((function(){var e=t.$refs[t.tableContentWrapperRef];e&&(e.$el.style.top="".concat(n,"px"))}))},getVirtualScrollStartIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.virtualScrollBinarySearch(this.virtualScrollPositions,e)},virtualScrollBinarySearch:function(e,t){for(var n=0,r=e.length-1,o=null;n<=r;){var i=parseInt((n+r)/2),l=e[i].bottom;if(l===t)return i+1;l<t?n=i+1:l>t&&((null===o||o>i)&&(o=i),r-=1)}return o},tableContainerVirtualScrollHandler:function(e){var t=this.virtualScrollVisibleCount,n=this.virtualScrollOption,r=e.scrollTop,o=this.getVirtualScrollStartIndex(r);this.virtualScrollStartIndex=o;var i=o+t;this.virtualScrollEndIndex=i;var l=this.getVirtualScrollAboveCount(),u=this.getVirtualScrollBelowCount();if(this.setVirtualScrollStartOffset(),!this.showVirtualScrollingPlaceholder){var a=this.$refs[this.tableBodyRef];a&&a.renderingRowKeys(this.allRowKeys.slice(o-l,i+u))}var c=n.scrolling;if(h(c)){var s=this.getVirtualScrollAboveCount(),f=o-s;c({startRowIndex:f>0?f:0,visibleStartIndex:o,visibleEndIndex:i,visibleAboveCount:s,visibleBelowCount:this.getVirtualScrollBelowCount()})}this.setVirtualScrollVisibleData()},debounceScrollEnded:function(){var e=this.disablePointerEventsTimeoutId;e&&_r(e.id),this.disablePointerEventsTimeoutId=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r=function(){Date.now()-n>=t?e.call():o.id=Or(r)},o={id:Or(r)};return o}(this.debounceScrollEndedCallback,150)},debounceScrollEndedCallback:function(){this.disablePointerEventsTimeoutId=null,this.showVirtualScrollingPlaceholder=!1},initVirtualScroll:function(){var e=this;if(this.isVirtualScroll){this.virtualScrollStartIndex=0,this.virtualScrollEndIndex=0+this.virtualScrollVisibleCount,this.$nextTick((function(){var t=e.$refs[e.tableContainerRef];e.tableContainerVirtualScrollHandler(t),e.setVirtualPhantomHeight()}))}},setScrolling:function(e){if(this.hasFixedColumn){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollLeft,o=this.previewTableContainerScrollLeft;0!==o&&o===r||(this.previewTableContainerScrollLeft=r,this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r),this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r}if(this.fixedHeader){var i=e.scrollTop;this.isVerticalScrolling=i>0}},setScrollBarStatus:function(){var e=this.$refs[this.tableContainerRef];if(e){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollHeight,o=e.clientHeight;t&&n&&(this.hasXScrollBar=!!(t-n)),r&&o&&(this.hasYScrollBar=!!(r-o))}},initScrolling:function(){this.setScrolling(this.$refs[this.tableContainerRef])},tableClickOutside:function(e){if(t=e,n=!1,r=document.querySelectorAll(".ve-contextmenu-popper"),[].forEach.call(r,(function(e){e.contains(t.target)&&(n=!0)})),n)return!1;var t,n,r;this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1,this.setIsColumnResizing(!1),this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),this[kn]()},saveCellWhenStopEditing:function(){var e=this.colgroups,t=this.rowKeyFieldName,n=this.editOption,r=this.editingCell,o=this.isCellEditing,l=n.cellValueChange,u=n.beforeCellValueChange,a=n.afterCellValueChange;if(o){var c=r.rowKey,s=r.colKey,f=this.tableData.find((function(e){return e[t]===c}));if(f){var d=e.find((function(e){return e.key===s})),y=r.row[d.field];if(h(u)){var v=u({row:Object(i.cloneDeep)(f),column:d,changeValue:y});if(p(v)&&!v)return this.clearEditingCell(),!1}f[d.field]=y,l&&l({row:f,column:d,changeValue:y}),a&&a({row:f,column:d,changeValue:y}),this.clearEditingCell()}this.enableStopEditing=!0}},cellSelectionByClick:function(e){var t=e.rowData,n=e.column,r=$n(t,this.rowKeyFieldName);this[Dn]({rowKey:r,colKey:n.key,isScrollToRow:!1}),this.rowToVisible(M,r),this.rowToVisible(L,r)},bodyCellContextmenu:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,o=this.rowKeyFieldName;if(r){var i=$n(t,o);this.editCellByClick({isDblclick:!1,rowKey:i,colKey:n.key})}this.setContextmenuOptions(n)},bodyCellDoubleClick:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,o=this.rowKeyFieldName,i=this.colgroups;if(Un(n.key,i))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this[kn](),!1;if(r){var l=$n(t,o);this.editCellByClick({isDblclick:!0,rowKey:l,colKey:n.key})}},bodyCellClick:function(e){e.event,e.rowData,e.column},bodyCellMousedown:function(e){var t=e.event,n=e.rowData,r=e.column;if(!this.enableCellSelection)return!1;var o=t.shiftKey,i=this.editOption,l=this.rowKeyFieldName,u=this.colgroups,a=this.cellSelectionData,c=this.cellSelectionRangeData,s=this.allRowKeys,d=$n(n,l),h=r.key,p=a.currentCell,y=Ar(t);if(Un(h,u)){this.clearHeaderIndicatorColKeys();var v=this.bodyIndicatorRowKeys;this.isBodyOperationColumnMousedown=!0;var m=v.startRowKey,g=v.endRowKey,b=v.startRowKeyIndex,w=v.endRowKeyIndex,C=m,x=g;if(o&&(b>-1||p.rowIndex>-1))C=f(p.rowKey)?m:p.rowKey,x=d;else{var S=s.indexOf(d);(y===z||S<b||S>w)&&(C=d,x=d)}this.bodyIndicatorRowKeysChange({startRowKey:C,endRowKey:x})}else{this.isBodyCellMousedown=!0,function(e){var t=e.mouseEventClickType,n=e.cellData,r=e.cellSelectionData,o=e.cellSelectionRangeData,i=e.colgroups,l=e.allRowKeys,u=!0;return t===q&&r.normalEndCell.rowIndex>-1&&(u=!lr({cellData:n,cellSelectionRangeData:o,colgroups:i,allRowKeys:l})),u}({mouseEventClickType:y,cellData:{rowKey:d,colKey:h},cellSelectionData:a,cellSelectionRangeData:c,colgroups:u,allRowKeys:s})&&(this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),o&&p.rowIndex>-1?this.cellSelectionNormalEndCellChange({rowKey:d,colKey:h}):(this.cellSelectionByClick({rowData:n,column:r}),this.clearCellSelectionNormalEndCell()))}i&&this.editCellByClick({isDblclick:!1,rowKey:d,colKey:h})},bodyCellMouseover:function(e){e.event;var t=e.rowData,n=e.column,r=this.rowKeyFieldName,o=this.isBodyCellMousedown,i=this.isAutofillStarting,l=this.isHeaderCellMousedown,u=this.isBodyOperationColumnMousedown,a=$n(t,r),c=n.key;if(o){if(Un(c,this.colgroups))return!1;this.cellSelectionNormalEndCellChange({rowKey:a,colKey:c})}if(u&&this.bodyIndicatorRowKeysChange({startRowKey:this.bodyIndicatorRowKeys.startRowKey,endRowKey:a}),l&&this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:c}),i){if(Un(c,this.colgroups))return!1;this.cellSelectionAutofillCellChange({rowKey:a,colKey:c})}},bodyCellMousemove:function(e){var t=e.event,n=(e.rowData,e.column);this.hooks.triggerHook(nn,{event:t,column:n})},bodyCellMouseup:function(e){e.event,e.rowData,e.column},headerCellClick:function(e){e.event,e.column},headerCellContextmenu:function(e){e.event;var t=e.column;this.setContextmenuOptions(t)},setContextmenuOptions:function(e){var t=this.contextMenuType;this.contextmenuOptions=t===Mn?Zn({column:e,contextmenuHeaderOption:this.contextmenuHeaderOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,headerIndicatorColKeys:this.headerIndicatorColKeys,enableHeaderContextmenu:this.enableHeaderContextmenu,t:Qo}):Qn({enableBodyContextmenu:this.enableBodyContextmenu,contextmenuBodyOption:this.contextmenuBodyOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,bodyIndicatorRowKeys:this.bodyIndicatorRowKeys,t:Qo})},headerCellMousedown:function(e){var t=this,n=e.event,r=e.column;if(!this.enableCellSelection)return!1;this.isHeaderCellMousedown=!0;var o,i=n.shiftKey,l=this.isGroupHeader,u=this.colgroups,a=this.headerIndicatorColKeys,c=this.cellSelectionData;this.clearBodyIndicatorRowKeys();var s=(o=l?tr({headerColumnItem:r}):[r.key])[0],d=o[o.length-1],h=c.currentCell;if(Un(r.key,u))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.$nextTick((function(){t[Pn]()})),!1;f(a.startColKey)&&(JSON.stringify(o)!=JSON.stringify([h.colKey])&&this.$refs[this.cellSelectionRef].clearCurrentCellRect(),this.$refs[this.cellSelectionRef].clearNormalEndCellRect());var p=a.startColKey,y=a.endColKey,v=a.startColKeyIndex,m=a.endColKeyIndex,g=p,b=y;if(i){if(f(p))if(f(h.colKey))g=s,b=d;else{var w=hr({colgroups:u,colKeys:o.concat([h.colKey])});g=h.colKey,b=w===h.colKey?d:s}else g=p,b=hr({colgroups:u,colKeys:o.concat([p])})===p?d:s}else{var C=Ar(n),x=u.findIndex((function(e){return e.key===d})),S=u.findIndex((function(e){return e.key===s}));(C===z||x<v||S<v||x>m||S>m)&&(g=s,b=d)}this.headerIndicatorColKeysChange({startColKey:g,endColKey:b})},headerCellMouseover:function(e){e.event;var t,n,r=e.column,o=this.colgroups,i=this.isGroupHeader,l=this.isHeaderCellMousedown,u=this.headerIndicatorColKeys;l&&!Un(r.key,o)&&(n=hr({colgroups:o,colKeys:(t=i?tr({headerColumnItem:r}):[r.key]).concat([u.startColKey])})===u.startColKey?t[t.length-1]:t[0],this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:n}))},headerCellMousemove:function(e){var t=e.event,n=e.column;this.hooks.triggerHook(tn,{event:t,column:n})},headerCellMouseleave:function(e){e.event,e.column},headerMouseleave:function(e){this.setIsColumnResizerHover(!1)},tableContainerMouseup:function(){this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1},cellSelectionCornerMousedown:function(e){e.event;this.isAutofillStarting=!0},cellSelectionCornerMouseup:function(e){e.event;this.isAutofillStarting=!1},isEditColumn:function(e){return this.colgroups.some((function(t){return t.key===e&&t.edit}))},editCellByClick:function(e){var t=e.isDblclick,n=e.rowKey,r=e.colKey,o=this.editOption,i=this.isCellEditing,l=this.hasEditColumn,u=this.editingCell,a=this.isEditColumn;return!!o&&(!!l&&(!f(n)&&!f(r)&&((!u||u.rowKey!=n||u.colKey!=r)&&(i&&this[kn](),void(t&&a(r)?(this.enableStopEditing=!1,this[En]({rowKey:n,colKey:r})):this.enableStopEditing=!0)))))},setEditingCell:function(e){var t=e.rowKey,n=e.colKey,r=e.column,o=e.row;this.editingCell={rowKey:t,row:Object(i.cloneDeep)(o),colKey:n,column:r}},updateEditingCellValue:function(e){var t=this.editingCell,n=t.row;n[t.column.field]=e,this.editingCell.row=n},clearEditingCell:function(){this.editingCell={rowKey:"",colKey:"",row:null,column:null}},contextmenuItemClick:function(e){this.contextMenuType===Mn?this.headerContextmenuItemClick(e):this.bodyContextmenuItemClick(e)},headerContextmenuItemClick:function(e){var t=this.contextmenuHeaderOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,o=this.allRowKeys,i=this.colgroups,l=this.enableColumnResize,u=n.currentCell,a=u.rowKey,c=u.colKey,s=t.afterMenuClick;if(!f(a)&&!f(c)){var d=ur({cellSelectionRangeData:r}),y=ar({cellSelectionRangeData:r,colgroups:i,allRowKeys:o});if(h(s)){var v=s({type:e,selectionRangeKeys:d,selectionRangeIndexes:y});if(p(v)&&!v)return!1}var m=this.$refs[this.editInputRef];Ln.CUT===e?(m.textareaSelect(),document.execCommand("cut")):Ln.COPY===e?(m.textareaSelect(),document.execCommand("copy")):Ln.EMPTY_COLUMN===e?this.deleteCellSelectionRangeValue():Ln.LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=yr({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:et,colgroups:i,enableColumnResize:l}):Ln.CANCEL_LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=vr({cloneColumns:this.cloneColumns,colgroups:i,fixedType:et,enableColumnResize:l}):Ln.RIGHT_FIXED_COLUMN_TO===e?this.cloneColumns=yr({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:tt,colgroups:i,enableColumnResize:l}):Ln.CANCEL_RIGHT_FIXED_COLUMN_TO===e&&(this.cloneColumns=vr({cloneColumns:this.cloneColumns,colgroups:i,fixedType:tt,enableColumnResize:l}))}},bodyContextmenuItemClick:function(e){var t=this.contextmenuBodyOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,o=this.tableData,i=this.allRowKeys,l=this.colgroups,u=this.rowKeyFieldName,a=n.currentCell,c=a.rowKey,s=a.colKey,d=t.afterMenuClick;if(!f(c)&&!f(s)){var y=ur({cellSelectionRangeData:r}),v=ar({cellSelectionRangeData:r,colgroups:l,allRowKeys:i});if(h(d)){var m=d({type:e,selectionRangeKeys:y,selectionRangeIndexes:v});if(p(m)&&!m)return!1}var g=v.startRowIndex,b=v.endRowIndex,w=i.findIndex((function(e){return e===c})),C=this.$refs[this.editInputRef];Ln.CUT===e?(C.textareaSelect(),document.execCommand("cut")):Ln.COPY===e?(C.textareaSelect(),document.execCommand("copy")):Ln.REMOVE_ROW===e?o.splice(g,b-g+1):Ln.EMPTY_ROW===e||Ln.EMPTY_CELL===e?this.deleteCellSelectionRangeValue():Ln.INSERT_ROW_ABOVE===e?o.splice(w,0,er({colgroups:l,rowKeyFieldName:u})):Ln.INSERT_ROW_BELOW===e&&o.splice(w+1,0,er({colgroups:l,rowKeyFieldName:u}))}},editorCopy:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,o=this.cellSelectionRangeData,i=this.tableData,l=this.colgroups,u=this.allRowKeys;if(!n)return!1;if(t)return!1;var a=r||{},c=a.copy,s=a.beforeCopy,f=a.afterCopy;if(p(c)&&!c)return!1;e.preventDefault();var d=cr({cellSelectionRangeData:o,resultType:"flat",tableData:i,colgroups:l,allRowKeys:u}),y=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,o=e.allRowKeys,i=t.leftColKey,l=t.rightColKey,u=t.topRowKey,a=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex((function(e){return e.key===i})),endColIndex:r.findIndex((function(e){return e.key===l})),startRowIndex:o.indexOf(u),endRowIndex:o.indexOf(a)},selectionRangeKeys:{startColKey:i,endColKey:l,startRowKey:u,endRowKey:a},data:n}}({cellSelectionRangeData:o,selectionRangeData:d,colgroups:l,allRowKeys:u});if(h(s)){var v=s(y);if(p(v)&&!v)return!1}!function(e){var t=e.event,n=wr(e.selectionRangeData);t.clipboardData?t.clipboardData.setData("text/plain",n):window.clipboardData&&window.clipboardData.setData("Text",n)}({event:e,selectionRangeData:d}),h(f)&&f(y)},editorPaste:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption;if(!n)return!1;if(t)return!1;var o=r||{},i=o.paste,l=o.beforePaste,u=o.afterPaste;if(p(i)&&!i)return!1;e.preventDefault();var a,c,s,f,d,y=Cr({event:e,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,rowKeyFieldName:this.rowKeyFieldName});if(y&&Array.isArray(y.data)&&y.data.length){if(h(l)){var v=l(y);if(p(v)&&!v)return!1}a={tableData:this.tableData,beforePasteResponse:y},c=a.tableData,s=a.beforePasteResponse,f=s.data,d=s.selectionRangeIndexes,f.forEach((function(e,t){Object.assign(c[d.startRowIndex+t],e)})),h(u)&&u(y);var m=y.selectionRangeKeys,g=m.startColKey,b=m.endColKey,w=m.startRowKey,C=m.endRowKey;this.cellSelectionCurrentCellChange({rowKey:w,colKey:g}),this.cellSelectionNormalEndCellChange({rowKey:C,colKey:b}),this.hooks.triggerHook(en)}},editorCut:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,o=this.cellSelectionRangeData,i=this.tableData,l=this.colgroups,u=this.allRowKeys;if(!n)return!1;if(t)return!1;var a=r||{},c=a.cut,s=a.beforeCut,f=a.afterCut;if(p(c)&&!c)return!1;e.preventDefault();var d=cr({cellSelectionRangeData:o,resultType:"flat",tableData:i,colgroups:l,allRowKeys:u}),y=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,o=e.allRowKeys,i=t.leftColKey,l=t.rightColKey,u=t.topRowKey,a=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex((function(e){return e.key===i})),endColIndex:r.findIndex((function(e){return e.key===l})),startRowIndex:o.indexOf(u),endRowIndex:o.indexOf(a)},selectionRangeKeys:{startColKey:i,endColKey:l,startRowKey:u,endRowKey:a},data:n}}({cellSelectionRangeData:o,selectionRangeData:d,colgroups:l,allRowKeys:u});if(h(s)){var v=s(y);if(p(v)&&!v)return!1}!function(e){var t=e.event,n=e.tableData,r=e.colgroups,o=e.selectionRangeData,i=e.selectionRangeIndexes,l=wr(o),u=i.endColIndex,a=i.endRowIndex,c=i.startColIndex,s=i.startRowIndex,f=r.slice(c,u+1).map((function(e){return e.field}));n.forEach((function(e,t){t>=s&&t<=a&&f.forEach((function(t){e[t]=""}))})),t.clipboardData?t.clipboardData.setData("text/plain",l):window.clipboardData&&window.clipboardData.setData("Text",l)}({event:e,tableData:i,colgroups:l,selectionRangeData:d,selectionRangeIndexes:y.selectionRangeIndexes}),h(f)&&f(y)},deleteCellSelectionRangeValue:function(){var e=this.isCellEditing,t=this.enableClipboard,n=this.clipboardOption,r=this.cellSelectionRangeData,o=this.tableData,i=this.colgroups,l=this.allRowKeys;if(!t)return!1;if(e)return!1;var u=n||{},a=u.delete,c=u.beforeDelete,s=u.afterDelete;if(p(a)&&!a)return!1;var f=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,o=e.allRowKeys,i=t.leftColKey,l=t.rightColKey,u=t.topRowKey,a=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex((function(e){return e.key===i})),endColIndex:r.findIndex((function(e){return e.key===l})),startRowIndex:o.indexOf(u),endRowIndex:o.indexOf(a)},selectionRangeKeys:{startColKey:i,endColKey:l,startRowKey:u,endRowKey:a},data:n}}({cellSelectionRangeData:r,selectionRangeData:cr({cellSelectionRangeData:r,resultType:"flat",tableData:o,colgroups:i,allRowKeys:l}),colgroups:i,allRowKeys:l});if(h(c)){var d=c(f);if(p(d)&&!d)return!1}!function(e){var t=e.tableData,n=e.colgroups,r=e.selectionRangeIndexes,o=r.endColIndex,i=r.endRowIndex,l=r.startColIndex,u=r.startRowIndex,a=n.slice(l,o+1).map((function(e){return e.field}));t.forEach((function(e,t){t>=u&&t<=i&&a.forEach((function(t){e[t]=""}))}))}({tableData:o,colgroups:i,selectionRangeIndexes:f.selectionRangeIndexes}),h(s)&&s(f)},setRangeCellSelectionByHeaderIndicator:function(){var e=this.headerIndicatorColKeys,t=this.allRowKeys,n=e.startColKey,r=e.endColKey;if(f(n)||f(r))return!1;this.cellSelectionCurrentCellChange({rowKey:t[0],colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:t[t.length-1],colKey:r})},setRangeCellSelectionByBodyIndicator:function(){var e=this.bodyIndicatorRowKeys,t=this.colgroups,n=e.startRowKey,r=e.endRowKey;if(f(n)||f(r))return!1;t.length>1&&(this.cellSelectionCurrentCellChange({rowKey:n,colKey:t[1].key}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:t[t.length-1].key}))},setIsColumnResizerHover:function(e){this.isColumnResizerHover=e},setIsColumnResizing:function(e){this.isColumnResizing=e}},Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Zo(Uo,Dn,(function(e){var t=e.rowKey,n=e.colKey,r=e.isScrollToRow,o=void 0===r||r;if(!this.enableCellSelection)return!1;if(!f(t)&&!f(n)){this.cellSelectionCurrentCellChange({rowKey:t,colKey:n});var i=qn(n,this.colgroups);this.columnToVisible(i),o&&this[Kn]({rowKey:t})}})),jn,(function(e){var t=e.startRowKey,n=e.startColKey,r=e.endRowKey,o=e.endColKey,i=e.isScrollToStartCell,l=void 0!==i&&i;if(!this.enableCellSelection)return!1;if(f(t)||f(n)||f(r)||f(o))return!1;if(this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:o}),l){var u=qn(n,this.colgroups);this.columnToVisible(u),this[Kn]({rowKey:t})}})),An,(function(){var e=this.cellSelectionData,t=this.cellSelectionRangeData,n=this.allRowKeys,r=this.colgroups,o=e.currentCell,i=o.rowKey,l=o.colKey;if(!f(i)&&!f(l))return{selectionRangeKeys:ur({cellSelectionRangeData:t}),selectionRangeIndexes:ar({cellSelectionRangeData:t,colgroups:r,allRowKeys:n})}})),Pn,(function(){if(!this.enableCellSelection)return!1;var e=this.colgroups,t=this.allRowKeys;if(e.length){var n=e.filter((function(e){return!e.operationColumn})).map((function(e){return e.key}));n.length&&this.headerIndicatorColKeysChange({startColKey:n[0],endColKey:n[n.length-1]})}t.length&&this.bodyIndicatorRowKeysChange({startRowKey:t[0],endRowKey:t[t.length-1]})})),Bn,(function(e){s(e)||(this.hiddenColumns=Array.from(new Set(this.hiddenColumns.concat(e))),this.showOrHideColumns())})),Nn,(function(e){if(!s(e)){for(var t=e.length-1;t>=0;t--){var n=this.hiddenColumns.indexOf(e[t]);n>-1&&this.hiddenColumns.splice(n,1)}this.showOrHideColumns()}})),_n,(function(e){m(this.$refs[this.tableContainerRef],e)})),Kn,(function(e){var t=e.rowKey;if(f(t))return console.warn("Row key can't be empty!"),!1;var n=0,r=this.isVirtualScroll,o=this.headerTotalHeight,i=this.$refs[this.tableContainerRef];if(r){var l=this.virtualScrollPositions.find((function(e){return e.rowKey===t}));l&&(n=l.top),setTimeout((function(){m(i,{top:n,behavior:"auto"})}),200)}else{var u=this.$el.querySelector("tbody tr[".concat(Rn,'="').concat(t,'"]'));n=u.offsetTop-o}m(i,{top:n,behavior:r?"auto":"smooth"})})),In,(function(e){var t=qn(e.colKey,this.colgroups);t&&this.columnToVisible(t)})),En,(function(e){var t=e.rowKey,n=e.colKey,r=e.defaultValue,o=this.editOption,l=this.colgroups,u=this.rowKeyFieldName,a=this.editingCell,c=this.cellSelectionData;if(!o)return!1;var s=this.tableData.find((function(e){return e[u]===t}));if(s=Object(i.cloneDeep)(s),a.rowKey===t&&a.colKey===n)return!1;var f=l.find((function(e){return e.key===n}));if(!f.edit)return!1;var y=o.beforeStartCellEditing;if(h(y)){var v=y({row:Object(i.cloneDeep)(s),column:f,cellValue:d(r)?r:s[f.field]});if(p(v)&&!v)return!1}d(r)?(this.editorInputStartValue=r,s[f.field]=r):this.editorInputStartValue=s[f.field],c.currentCell.colKey===n&&c.currentCell.rowKey===t||this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.setEditingCell({rowKey:t,colKey:n,column:f,row:Object(i.cloneDeep)(s)})})),Zo(Zo(Uo,kn,(function(){var e=this.editOption,t=this.isCellEditing;if(!e)return!1;this.editorInputStartValue="",t&&this.saveCellWhenStopEditing()})),Tn,(function(e){var t=e.rowKey;this.highlightRowKey=t}))),created:function(){this.debouncedBodyCellWidthChange=Object(i.debounce)(this.bodyCellWidthChange,0)},mounted:function(){var e=this;this.parentRendered=!0,this.contextmenuEventTarget=this.$el.querySelector(".".concat(zn("content"))),this.hooks=new jr,this.$on(Dt,(function(t){e.updateColgroupsBySortChange(t)})),this.$on(Et,(function(t){e.selectedAllChange(t)})),this.$on(kt,(function(t){e.setSelectedAllInfo(t)})),this.$on(vt,(function(t){var n=t.rowIndex,r=t.height;e.headerRowHeightChange({rowIndex:n,height:r})})),this.$on(gt,(function(t){var n=t.rowKey,r=t.height;e.bodyRowHeightChange({rowKey:n,height:r})})),this.$on(mt,(function(t){var n=t.rowIndex,r=t.height;e.footRowHeightChange({rowIndex:n,height:r})})),this.$on(wt,(function(t){e.bodyCellClick(t)})),this.$on(Ct,(function(t){e.bodyCellMouseover(t)})),this.$on(xt,(function(t){e.bodyCellMousedown(t)})),this.$on(St,(function(t){e.bodyCellMousemove(t)})),this.$on(Rt,(function(t){e.bodyCellMouseup(t)})),this.$on(Gt,(function(t){e.cellSelectionCornerMousedown(t)})),this.$on(Yt,(function(t){e.cellSelectionCornerMouseup(t)})),this.$on(Xt,(function(t){e.autofillingDirectionChange(t)})),this.$on(_t,(function(t){e.bodyCellContextmenu(t)})),this.$on(Ot,(function(t){e.bodyCellDoubleClick(t)})),this.$on(Bt,(function(t){e.headerCellClick(t)})),this.$on(Nt,(function(t){e.headerCellContextmenu(t)})),this.$on(Mt,(function(t){e.headerCellMousedown(t)})),this.$on(Ft,(function(t){e.headerCellMouseover(t)})),this.$on(Lt,(function(t){e.headerCellMousemove(t)})),this.$on(Vt,(function(t){e.headerCellMouseleave(t)})),document.addEventListener("keydown",this.dealKeydownEvent),this.initScrolling()},destroyed:function(){document.removeEventListener("keydown",this.dealKeydownEvent)},render:function(){var e=this,t=arguments[0],n=this.showHeader,r=this.tableViewportWidth,o=this.tableContainerStyle,i=this.tableStyle,l=this.tableClass,u=this.colgroups,a=this.groupColumns,c=this.fixedHeader,s=this.fixedFooter,f=this.actualRenderTableData,d=this.debouncedBodyCellWidthChange,h=this.expandOption,p=this.checkboxOption,y=this.radioOption,v=this.rowKeyFieldName,m=this.virtualScrollOption,g=this.isVirtualScroll,b=this.sortOption,w=this.cellStyleOption,C=this.showVirtualScrollingPlaceholder,x=this.cellSelectionData,S=this.editOption,R=this.contextmenuOptions,O=this.allRowKeys,_=this.enableCellSelection,K=this.enableColumnResize,I=this.cellSelectionRangeData,E=this.headerIndicatorColKeys,k=this.bodyIndicatorRowKeys,T={class:zn("header"),style:{cursor:this.isColumnResizerHover||this.isColumnResizing?"col-resize":""},props:{columnsOptionResetTime:this.columnsOptionResetTime,tableViewportWidth:r,groupColumns:a,colgroups:u,isGroupHeader:this.isGroupHeader,fixedHeader:c,checkboxOption:p,sortOption:b,cellStyleOption:w,eventCustomOption:this.eventCustomOption,headerRows:this.headerRows,cellSelectionData:x,cellSelectionRangeData:I,headerIndicatorColKeys:E},nativeOn:{click:function(){e[kn]()},mouseleave:function(t){e.headerMouseleave(t)}}},D={ref:this.tableBodyRef,class:[zn("body"),this.tableBodyClass],props:{tableViewportWidth:r,columnsOptionResetTime:this.columnsOptionResetTime,colgroups:u,expandOption:h,checkboxOption:p,actualRenderTableData:f,rowKeyFieldName:v,radioOption:y,virtualScrollOption:m,isVirtualScroll:g,cellStyleOption:w,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,cellSelectionOption:this.cellSelectionOption,hasFixedColumn:this.hasFixedColumn,cellSelectionData:x,cellSelectionRangeData:I,allRowKeys:O,editOption:S,highlightRowKey:this.highlightRowKey,showVirtualScrollingPlaceholder:C,bodyIndicatorRowKeys:k},on:Zo(Zo({},yt,d),Ht,this[Tn]),scopedSlots:{body:this.$slots.body}},j={class:[zn("footer")],props:{colgroups:u,footerData:this.footerData,rowKeyFieldName:v,cellStyleOption:w,fixedFooter:s,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,hasFixedColumn:this.hasFixedColumn,allRowKeys:O,footerRows:this.footerRows},nativeOn:{click:function(){e[kn]()}}},A={ref:this.tableRootRef,class:{"vue-table-root":!0}},P={ref:this.tableContainerWrapperRef,style:this.tableContainerWrapperStyle,class:Zo({"ve-table":!0},zn("border-around"),this.borderAround),props:{tagName:"div"},on:{"on-dom-resize-change":function(t){var n=t.height;e.tableOffestHeight=n,e.initVirtualScroll(),e.initScrolling(),e.setScrollBarStatus(),e.hooks.triggerHook(Zt)}},directives:[{name:"click-outside",value:function(t){e.tableClickOutside(t)}}]},B={ref:this.tableContainerRef,class:this.tableContainerClass,style:o,on:{scroll:function(){var t=e.$refs[e.tableContainerRef];if(e.hooks.triggerHook(Jt,t),e.setScrolling(t),g){e.tableContainerVirtualScrollHandler(t);var n=e.virtualScrollStartIndex,r=e.previewVirtualScrollStartIndex,o=Math.abs(n-r);e.previewVirtualScrollStartIndex=n,o>e.defaultPlaceholderPerScrollingRowCount?e.showVirtualScrollingPlaceholder=!0:e.showVirtualScrollingPlaceholder=!1,e.debounceScrollEnded()}},mouseup:function(){e.tableContainerMouseup()},mousemove:function(e){}}},N={ref:this.tableContentWrapperRef,class:[zn("content-wrapper")],props:{tagName:"div"},on:{"on-dom-resize-change":function(t){var n=t.height;e.tableHeight=n}}},M={ref:this.tableRef,class:[zn("content"),l],style:i},F={ref:this.cellSelectionRef,props:{tableEl:this.$refs[this.tableRef],allRowKeys:O,colgroups:u,parentRendered:this.parentRendered,hooks:this.hooks,cellSelectionData:x,isAutofillStarting:this.isAutofillStarting,cellSelectionRangeData:I,currentCellSelectionType:this.currentCellSelectionType,showVirtualScrollingPlaceholder:C,isVirtualScroll:g,virtualScrollVisibleIndexs:this.virtualScrollVisibleIndexs,isCellEditing:this.isCellEditing,cellAutofillOption:this.cellAutofillOption},on:Zo({},jt,(function(t){e.cellSelectionRangeDataChange(t)}))},L={ref:this.editInputRef,props:{hooks:this.hooks,parentRendered:this.parentRendered,inputStartValue:this.editorInputStartValue,rowKeyFieldName:v,tableData:this.tableData,cellSelectionData:x,colgroups:u,editingCell:this.editingCell,isCellEditing:this.isCellEditing,allRowKeys:O,hasXScrollBar:this.hasXScrollBar,hasYScrollBar:this.hasYScrollBar,hasRightFixedColumn:this.hasRightFixedColumn,scrollBarWidth:this.getScrollBarWidth()},on:Zo(Zo(Zo(Zo(Zo({},Wt,(function(){e.enableStopEditing=!1})),zt,(function(t){e.updateEditingCellValue(t)})),$t,(function(t){e.editorCopy(t)})),qt,(function(t){e.editorPaste(t)})),Ut,(function(t){e.editorCut(t)}))},V={ref:this.contextmenuRef,props:{eventTarget:this.contextmenuEventTarget,options:R},on:{"on-node-click":function(t){e.contextmenuItemClick(t)}}},H={props:{parentRendered:this.parentRendered,tableContainerEl:this.$refs[this.tableContainerRef],hooks:this.hooks,colgroups:u,isColumnResizerHover:this.isColumnResizerHover,isColumnResizing:this.isColumnResizing,setIsColumnResizerHover:this.setIsColumnResizerHover,setIsColumnResizing:this.setIsColumnResizing,setColumnWidth:this.setColumnWidth,columnWidthResizeOption:this.columnWidthResizeOption}};return t("div",A,[t(Jr,P,[t("div",B,[this.getVirtualViewPhantom(),t(Jr,N,[t("table",M,[t(Nr,{attrs:{colgroups:u,enableColumnResize:K}}),n&&t(to,T),t(xo,D,[this.$slots.body]),t(To,j,[this.$slots.footer])]),_&&t(zo,F)])]),_&&t(No,L),(this.enableHeaderContextmenu||this.enableBodyContextmenu)&&t(le,V),K&&t(Go,H)])])},install:function(e){e.component(ei.name,ei)}},ti=ei,ni="2.27.2",ri=[R,I,le,xe,Y,Be,a,Xe,he,Ue,ti],oi=function(e){ri.forEach((function(t){e.use(t)})),e.prototype.$veLoading=Be,e.prototype.$veLocale=a};"undefined"!=typeof window&&window.Vue&&oi(window.Vue);t.default={install:oi,version:ni,VeCheckbox:R,VeCheckboxGroup:I,VeContextmenu:le,VeDropdown:xe,VeIcon:Y,VeLoading:Be,VeLocale:a,VePagination:Xe,VeRadio:he,VeSelect:Ue,VeTable:ti}}]).default}));
|