bootstrap-table-fixed-columns.js 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$6) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _get() {
  28. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  29. var p = _superPropBase(e, t);
  30. if (p) {
  31. var n = Object.getOwnPropertyDescriptor(p, t);
  32. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  33. }
  34. }, _get.apply(null, arguments);
  35. }
  36. function _getPrototypeOf(t) {
  37. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  38. return t.__proto__ || Object.getPrototypeOf(t);
  39. }, _getPrototypeOf(t);
  40. }
  41. function _inherits(t, e) {
  42. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  43. t.prototype = Object.create(e && e.prototype, {
  44. constructor: {
  45. value: t,
  46. writable: !0,
  47. configurable: !0
  48. }
  49. }), Object.defineProperty(t, "prototype", {
  50. writable: !1
  51. }), e && _setPrototypeOf(t, e);
  52. }
  53. function _isNativeReflectConstruct() {
  54. try {
  55. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  56. } catch (t) {}
  57. return (_isNativeReflectConstruct = function () {
  58. return !!t;
  59. })();
  60. }
  61. function _possibleConstructorReturn(t, e) {
  62. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  63. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  64. return _assertThisInitialized(t);
  65. }
  66. function _setPrototypeOf(t, e) {
  67. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  68. return t.__proto__ = e, t;
  69. }, _setPrototypeOf(t, e);
  70. }
  71. function _superPropBase(t, o) {
  72. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  73. return t;
  74. }
  75. function _toPrimitive(t, r) {
  76. if ("object" != typeof t || !t) return t;
  77. var e = t[Symbol.toPrimitive];
  78. if (void 0 !== e) {
  79. var i = e.call(t, r);
  80. if ("object" != typeof i) return i;
  81. throw new TypeError("@@toPrimitive must return a primitive value.");
  82. }
  83. return (String )(t);
  84. }
  85. function _toPropertyKey(t) {
  86. var i = _toPrimitive(t, "string");
  87. return "symbol" == typeof i ? i : i + "";
  88. }
  89. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  90. var check = function (it) {
  91. return it && it.Math === Math && it;
  92. };
  93. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  94. var global$b =
  95. // eslint-disable-next-line es/no-global-this -- safe
  96. check(typeof globalThis == 'object' && globalThis) ||
  97. check(typeof window == 'object' && window) ||
  98. // eslint-disable-next-line no-restricted-globals -- safe
  99. check(typeof self == 'object' && self) ||
  100. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  101. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  102. // eslint-disable-next-line no-new-func -- fallback
  103. (function () { return this; })() || Function('return this')();
  104. var objectGetOwnPropertyDescriptor = {};
  105. var fails$e = function (exec) {
  106. try {
  107. return !!exec();
  108. } catch (error) {
  109. return true;
  110. }
  111. };
  112. var fails$d = fails$e;
  113. // Detect IE8's incomplete defineProperty implementation
  114. var descriptors = !fails$d(function () {
  115. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  116. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  117. });
  118. var fails$c = fails$e;
  119. var functionBindNative = !fails$c(function () {
  120. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  121. var test = (function () { /* empty */ }).bind();
  122. // eslint-disable-next-line no-prototype-builtins -- safe
  123. return typeof test != 'function' || test.hasOwnProperty('prototype');
  124. });
  125. var NATIVE_BIND$2 = functionBindNative;
  126. var call$5 = Function.prototype.call;
  127. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  128. return call$5.apply(call$5, arguments);
  129. };
  130. var objectPropertyIsEnumerable = {};
  131. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  132. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  133. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  134. // Nashorn ~ JDK8 bug
  135. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  136. // `Object.prototype.propertyIsEnumerable` method implementation
  137. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  138. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  139. var descriptor = getOwnPropertyDescriptor$1(this, V);
  140. return !!descriptor && descriptor.enumerable;
  141. } : $propertyIsEnumerable;
  142. var createPropertyDescriptor$3 = function (bitmap, value) {
  143. return {
  144. enumerable: !(bitmap & 1),
  145. configurable: !(bitmap & 2),
  146. writable: !(bitmap & 4),
  147. value: value
  148. };
  149. };
  150. var NATIVE_BIND$1 = functionBindNative;
  151. var FunctionPrototype$1 = Function.prototype;
  152. var call$4 = FunctionPrototype$1.call;
  153. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  154. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  155. return function () {
  156. return call$4.apply(fn, arguments);
  157. };
  158. };
  159. var uncurryThis$h = functionUncurryThis;
  160. var toString$5 = uncurryThis$h({}.toString);
  161. var stringSlice$1 = uncurryThis$h(''.slice);
  162. var classofRaw$2 = function (it) {
  163. return stringSlice$1(toString$5(it), 8, -1);
  164. };
  165. var uncurryThis$g = functionUncurryThis;
  166. var fails$b = fails$e;
  167. var classof$5 = classofRaw$2;
  168. var $Object$3 = Object;
  169. var split = uncurryThis$g(''.split);
  170. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  171. var indexedObject = fails$b(function () {
  172. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  173. // eslint-disable-next-line no-prototype-builtins -- safe
  174. return !$Object$3('z').propertyIsEnumerable(0);
  175. }) ? function (it) {
  176. return classof$5(it) === 'String' ? split(it, '') : $Object$3(it);
  177. } : $Object$3;
  178. // we can't use just `it == null` since of `document.all` special case
  179. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  180. var isNullOrUndefined$2 = function (it) {
  181. return it === null || it === undefined;
  182. };
  183. var isNullOrUndefined$1 = isNullOrUndefined$2;
  184. var $TypeError$6 = TypeError;
  185. // `RequireObjectCoercible` abstract operation
  186. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  187. var requireObjectCoercible$3 = function (it) {
  188. if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
  189. return it;
  190. };
  191. // toObject with fallback for non-array-like ES3 strings
  192. var IndexedObject$2 = indexedObject;
  193. var requireObjectCoercible$2 = requireObjectCoercible$3;
  194. var toIndexedObject$4 = function (it) {
  195. return IndexedObject$2(requireObjectCoercible$2(it));
  196. };
  197. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  198. var documentAll = typeof document == 'object' && document.all;
  199. // `IsCallable` abstract operation
  200. // https://tc39.es/ecma262/#sec-iscallable
  201. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  202. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  203. return typeof argument == 'function' || argument === documentAll;
  204. } : function (argument) {
  205. return typeof argument == 'function';
  206. };
  207. var isCallable$b = isCallable$c;
  208. var isObject$7 = function (it) {
  209. return typeof it == 'object' ? it !== null : isCallable$b(it);
  210. };
  211. var global$a = global$b;
  212. var isCallable$a = isCallable$c;
  213. var aFunction = function (argument) {
  214. return isCallable$a(argument) ? argument : undefined;
  215. };
  216. var getBuiltIn$4 = function (namespace, method) {
  217. return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
  218. };
  219. var uncurryThis$f = functionUncurryThis;
  220. var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
  221. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  222. var global$9 = global$b;
  223. var userAgent = engineUserAgent;
  224. var process = global$9.process;
  225. var Deno = global$9.Deno;
  226. var versions = process && process.versions || Deno && Deno.version;
  227. var v8 = versions && versions.v8;
  228. var match, version;
  229. if (v8) {
  230. match = v8.split('.');
  231. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  232. // but their correct versions are not interesting for us
  233. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  234. }
  235. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  236. // so check `userAgent` even if `.v8` exists, but 0
  237. if (!version && userAgent) {
  238. match = userAgent.match(/Edge\/(\d+)/);
  239. if (!match || match[1] >= 74) {
  240. match = userAgent.match(/Chrome\/(\d+)/);
  241. if (match) version = +match[1];
  242. }
  243. }
  244. var engineV8Version = version;
  245. /* eslint-disable es/no-symbol -- required for testing */
  246. var V8_VERSION$2 = engineV8Version;
  247. var fails$a = fails$e;
  248. var global$8 = global$b;
  249. var $String$4 = global$8.String;
  250. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  251. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
  252. var symbol = Symbol('symbol detection');
  253. // Chrome 38 Symbol has incorrect toString conversion
  254. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  255. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  256. // of course, fail.
  257. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  258. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  259. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  260. });
  261. /* eslint-disable es/no-symbol -- required for testing */
  262. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  263. var useSymbolAsUid = NATIVE_SYMBOL$1
  264. && !Symbol.sham
  265. && typeof Symbol.iterator == 'symbol';
  266. var getBuiltIn$3 = getBuiltIn$4;
  267. var isCallable$9 = isCallable$c;
  268. var isPrototypeOf = objectIsPrototypeOf;
  269. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  270. var $Object$2 = Object;
  271. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  272. return typeof it == 'symbol';
  273. } : function (it) {
  274. var $Symbol = getBuiltIn$3('Symbol');
  275. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  276. };
  277. var $String$3 = String;
  278. var tryToString$1 = function (argument) {
  279. try {
  280. return $String$3(argument);
  281. } catch (error) {
  282. return 'Object';
  283. }
  284. };
  285. var isCallable$8 = isCallable$c;
  286. var tryToString = tryToString$1;
  287. var $TypeError$5 = TypeError;
  288. // `Assert: IsCallable(argument) is true`
  289. var aCallable$2 = function (argument) {
  290. if (isCallable$8(argument)) return argument;
  291. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  292. };
  293. var aCallable$1 = aCallable$2;
  294. var isNullOrUndefined = isNullOrUndefined$2;
  295. // `GetMethod` abstract operation
  296. // https://tc39.es/ecma262/#sec-getmethod
  297. var getMethod$1 = function (V, P) {
  298. var func = V[P];
  299. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  300. };
  301. var call$3 = functionCall;
  302. var isCallable$7 = isCallable$c;
  303. var isObject$6 = isObject$7;
  304. var $TypeError$4 = TypeError;
  305. // `OrdinaryToPrimitive` abstract operation
  306. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  307. var ordinaryToPrimitive$1 = function (input, pref) {
  308. var fn, val;
  309. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  310. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
  311. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  312. throw new $TypeError$4("Can't convert object to primitive value");
  313. };
  314. var sharedStore = {exports: {}};
  315. var global$7 = global$b;
  316. // eslint-disable-next-line es/no-object-defineproperty -- safe
  317. var defineProperty$3 = Object.defineProperty;
  318. var defineGlobalProperty$3 = function (key, value) {
  319. try {
  320. defineProperty$3(global$7, key, { value: value, configurable: true, writable: true });
  321. } catch (error) {
  322. global$7[key] = value;
  323. } return value;
  324. };
  325. var globalThis$1 = global$b;
  326. var defineGlobalProperty$2 = defineGlobalProperty$3;
  327. var SHARED = '__core-js_shared__';
  328. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  329. (store$3.versions || (store$3.versions = [])).push({
  330. version: '3.37.1',
  331. mode: 'global',
  332. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  333. license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
  334. source: 'https://github.com/zloirock/core-js'
  335. });
  336. var sharedStoreExports = sharedStore.exports;
  337. var store$2 = sharedStoreExports;
  338. var shared$3 = function (key, value) {
  339. return store$2[key] || (store$2[key] = value || {});
  340. };
  341. var requireObjectCoercible$1 = requireObjectCoercible$3;
  342. var $Object$1 = Object;
  343. // `ToObject` abstract operation
  344. // https://tc39.es/ecma262/#sec-toobject
  345. var toObject$4 = function (argument) {
  346. return $Object$1(requireObjectCoercible$1(argument));
  347. };
  348. var uncurryThis$e = functionUncurryThis;
  349. var toObject$3 = toObject$4;
  350. var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
  351. // `HasOwnProperty` abstract operation
  352. // https://tc39.es/ecma262/#sec-hasownproperty
  353. // eslint-disable-next-line es/no-object-hasown -- safe
  354. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  355. return hasOwnProperty(toObject$3(it), key);
  356. };
  357. var uncurryThis$d = functionUncurryThis;
  358. var id = 0;
  359. var postfix = Math.random();
  360. var toString$4 = uncurryThis$d(1.0.toString);
  361. var uid$2 = function (key) {
  362. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  363. };
  364. var global$6 = global$b;
  365. var shared$2 = shared$3;
  366. var hasOwn$6 = hasOwnProperty_1;
  367. var uid$1 = uid$2;
  368. var NATIVE_SYMBOL = symbolConstructorDetection;
  369. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  370. var Symbol$2 = global$6.Symbol;
  371. var WellKnownSymbolsStore = shared$2('wks');
  372. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  373. var wellKnownSymbol$7 = function (name) {
  374. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  375. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)
  376. ? Symbol$2[name]
  377. : createWellKnownSymbol('Symbol.' + name);
  378. } return WellKnownSymbolsStore[name];
  379. };
  380. var call$2 = functionCall;
  381. var isObject$5 = isObject$7;
  382. var isSymbol$1 = isSymbol$2;
  383. var getMethod = getMethod$1;
  384. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  385. var wellKnownSymbol$6 = wellKnownSymbol$7;
  386. var $TypeError$3 = TypeError;
  387. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  388. // `ToPrimitive` abstract operation
  389. // https://tc39.es/ecma262/#sec-toprimitive
  390. var toPrimitive$1 = function (input, pref) {
  391. if (!isObject$5(input) || isSymbol$1(input)) return input;
  392. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  393. var result;
  394. if (exoticToPrim) {
  395. if (pref === undefined) pref = 'default';
  396. result = call$2(exoticToPrim, input, pref);
  397. if (!isObject$5(result) || isSymbol$1(result)) return result;
  398. throw new $TypeError$3("Can't convert object to primitive value");
  399. }
  400. if (pref === undefined) pref = 'number';
  401. return ordinaryToPrimitive(input, pref);
  402. };
  403. var toPrimitive = toPrimitive$1;
  404. var isSymbol = isSymbol$2;
  405. // `ToPropertyKey` abstract operation
  406. // https://tc39.es/ecma262/#sec-topropertykey
  407. var toPropertyKey$2 = function (argument) {
  408. var key = toPrimitive(argument, 'string');
  409. return isSymbol(key) ? key : key + '';
  410. };
  411. var global$5 = global$b;
  412. var isObject$4 = isObject$7;
  413. var document$1 = global$5.document;
  414. // typeof document.createElement is 'object' in old IE
  415. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  416. var documentCreateElement$1 = function (it) {
  417. return EXISTS$1 ? document$1.createElement(it) : {};
  418. };
  419. var DESCRIPTORS$9 = descriptors;
  420. var fails$9 = fails$e;
  421. var createElement = documentCreateElement$1;
  422. // Thanks to IE8 for its funny defineProperty
  423. var ie8DomDefine = !DESCRIPTORS$9 && !fails$9(function () {
  424. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  425. return Object.defineProperty(createElement('div'), 'a', {
  426. get: function () { return 7; }
  427. }).a !== 7;
  428. });
  429. var DESCRIPTORS$8 = descriptors;
  430. var call$1 = functionCall;
  431. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  432. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  433. var toIndexedObject$3 = toIndexedObject$4;
  434. var toPropertyKey$1 = toPropertyKey$2;
  435. var hasOwn$5 = hasOwnProperty_1;
  436. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  437. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  438. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  439. // `Object.getOwnPropertyDescriptor` method
  440. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  441. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  442. O = toIndexedObject$3(O);
  443. P = toPropertyKey$1(P);
  444. if (IE8_DOM_DEFINE$1) try {
  445. return $getOwnPropertyDescriptor$1(O, P);
  446. } catch (error) { /* empty */ }
  447. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  448. };
  449. var objectDefineProperty = {};
  450. var DESCRIPTORS$7 = descriptors;
  451. var fails$8 = fails$e;
  452. // V8 ~ Chrome 36-
  453. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  454. var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$8(function () {
  455. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  456. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  457. value: 42,
  458. writable: false
  459. }).prototype !== 42;
  460. });
  461. var isObject$3 = isObject$7;
  462. var $String$2 = String;
  463. var $TypeError$2 = TypeError;
  464. // `Assert: Type(argument) is Object`
  465. var anObject$4 = function (argument) {
  466. if (isObject$3(argument)) return argument;
  467. throw new $TypeError$2($String$2(argument) + ' is not an object');
  468. };
  469. var DESCRIPTORS$6 = descriptors;
  470. var IE8_DOM_DEFINE = ie8DomDefine;
  471. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  472. var anObject$3 = anObject$4;
  473. var toPropertyKey = toPropertyKey$2;
  474. var $TypeError$1 = TypeError;
  475. // eslint-disable-next-line es/no-object-defineproperty -- safe
  476. var $defineProperty = Object.defineProperty;
  477. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  478. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  479. var ENUMERABLE = 'enumerable';
  480. var CONFIGURABLE$1 = 'configurable';
  481. var WRITABLE = 'writable';
  482. // `Object.defineProperty` method
  483. // https://tc39.es/ecma262/#sec-object.defineproperty
  484. objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  485. anObject$3(O);
  486. P = toPropertyKey(P);
  487. anObject$3(Attributes);
  488. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  489. var current = $getOwnPropertyDescriptor(O, P);
  490. if (current && current[WRITABLE]) {
  491. O[P] = Attributes.value;
  492. Attributes = {
  493. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  494. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  495. writable: false
  496. };
  497. }
  498. } return $defineProperty(O, P, Attributes);
  499. } : $defineProperty : function defineProperty(O, P, Attributes) {
  500. anObject$3(O);
  501. P = toPropertyKey(P);
  502. anObject$3(Attributes);
  503. if (IE8_DOM_DEFINE) try {
  504. return $defineProperty(O, P, Attributes);
  505. } catch (error) { /* empty */ }
  506. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  507. if ('value' in Attributes) O[P] = Attributes.value;
  508. return O;
  509. };
  510. var DESCRIPTORS$5 = descriptors;
  511. var definePropertyModule$4 = objectDefineProperty;
  512. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  513. var createNonEnumerableProperty$2 = DESCRIPTORS$5 ? function (object, key, value) {
  514. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  515. } : function (object, key, value) {
  516. object[key] = value;
  517. return object;
  518. };
  519. var makeBuiltIn$2 = {exports: {}};
  520. var DESCRIPTORS$4 = descriptors;
  521. var hasOwn$4 = hasOwnProperty_1;
  522. var FunctionPrototype = Function.prototype;
  523. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  524. var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
  525. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  526. // additional protection from minified / mangled / dropped function names
  527. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  528. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
  529. var functionName = {
  530. EXISTS: EXISTS,
  531. PROPER: PROPER,
  532. CONFIGURABLE: CONFIGURABLE
  533. };
  534. var uncurryThis$c = functionUncurryThis;
  535. var isCallable$6 = isCallable$c;
  536. var store$1 = sharedStoreExports;
  537. var functionToString = uncurryThis$c(Function.toString);
  538. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  539. if (!isCallable$6(store$1.inspectSource)) {
  540. store$1.inspectSource = function (it) {
  541. return functionToString(it);
  542. };
  543. }
  544. var inspectSource$2 = store$1.inspectSource;
  545. var global$4 = global$b;
  546. var isCallable$5 = isCallable$c;
  547. var WeakMap$1 = global$4.WeakMap;
  548. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  549. var shared$1 = shared$3;
  550. var uid = uid$2;
  551. var keys = shared$1('keys');
  552. var sharedKey$2 = function (key) {
  553. return keys[key] || (keys[key] = uid(key));
  554. };
  555. var hiddenKeys$4 = {};
  556. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  557. var global$3 = global$b;
  558. var isObject$2 = isObject$7;
  559. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  560. var hasOwn$3 = hasOwnProperty_1;
  561. var shared = sharedStoreExports;
  562. var sharedKey$1 = sharedKey$2;
  563. var hiddenKeys$3 = hiddenKeys$4;
  564. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  565. var TypeError$1 = global$3.TypeError;
  566. var WeakMap = global$3.WeakMap;
  567. var set, get, has;
  568. var enforce = function (it) {
  569. return has(it) ? get(it) : set(it, {});
  570. };
  571. var getterFor = function (TYPE) {
  572. return function (it) {
  573. var state;
  574. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  575. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  576. } return state;
  577. };
  578. };
  579. if (NATIVE_WEAK_MAP || shared.state) {
  580. var store = shared.state || (shared.state = new WeakMap());
  581. /* eslint-disable no-self-assign -- prototype methods protection */
  582. store.get = store.get;
  583. store.has = store.has;
  584. store.set = store.set;
  585. /* eslint-enable no-self-assign -- prototype methods protection */
  586. set = function (it, metadata) {
  587. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  588. metadata.facade = it;
  589. store.set(it, metadata);
  590. return metadata;
  591. };
  592. get = function (it) {
  593. return store.get(it) || {};
  594. };
  595. has = function (it) {
  596. return store.has(it);
  597. };
  598. } else {
  599. var STATE = sharedKey$1('state');
  600. hiddenKeys$3[STATE] = true;
  601. set = function (it, metadata) {
  602. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  603. metadata.facade = it;
  604. createNonEnumerableProperty$1(it, STATE, metadata);
  605. return metadata;
  606. };
  607. get = function (it) {
  608. return hasOwn$3(it, STATE) ? it[STATE] : {};
  609. };
  610. has = function (it) {
  611. return hasOwn$3(it, STATE);
  612. };
  613. }
  614. var internalState = {
  615. set: set,
  616. get: get,
  617. has: has,
  618. enforce: enforce,
  619. getterFor: getterFor
  620. };
  621. var uncurryThis$b = functionUncurryThis;
  622. var fails$7 = fails$e;
  623. var isCallable$4 = isCallable$c;
  624. var hasOwn$2 = hasOwnProperty_1;
  625. var DESCRIPTORS$3 = descriptors;
  626. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  627. var inspectSource$1 = inspectSource$2;
  628. var InternalStateModule = internalState;
  629. var enforceInternalState = InternalStateModule.enforce;
  630. var getInternalState = InternalStateModule.get;
  631. var $String$1 = String;
  632. // eslint-disable-next-line es/no-object-defineproperty -- safe
  633. var defineProperty$2 = Object.defineProperty;
  634. var stringSlice = uncurryThis$b(''.slice);
  635. var replace$1 = uncurryThis$b(''.replace);
  636. var join = uncurryThis$b([].join);
  637. var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$7(function () {
  638. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  639. });
  640. var TEMPLATE = String(String).split('String');
  641. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  642. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  643. name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  644. }
  645. if (options && options.getter) name = 'get ' + name;
  646. if (options && options.setter) name = 'set ' + name;
  647. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  648. if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
  649. else value.name = name;
  650. }
  651. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  652. defineProperty$2(value, 'length', { value: options.arity });
  653. }
  654. try {
  655. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  656. if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
  657. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  658. } else if (value.prototype) value.prototype = undefined;
  659. } catch (error) { /* empty */ }
  660. var state = enforceInternalState(value);
  661. if (!hasOwn$2(state, 'source')) {
  662. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  663. } return value;
  664. };
  665. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  666. // eslint-disable-next-line no-extend-native -- required
  667. Function.prototype.toString = makeBuiltIn$1(function toString() {
  668. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  669. }, 'toString');
  670. var makeBuiltInExports = makeBuiltIn$2.exports;
  671. var isCallable$3 = isCallable$c;
  672. var definePropertyModule$3 = objectDefineProperty;
  673. var makeBuiltIn = makeBuiltInExports;
  674. var defineGlobalProperty$1 = defineGlobalProperty$3;
  675. var defineBuiltIn$2 = function (O, key, value, options) {
  676. if (!options) options = {};
  677. var simple = options.enumerable;
  678. var name = options.name !== undefined ? options.name : key;
  679. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  680. if (options.global) {
  681. if (simple) O[key] = value;
  682. else defineGlobalProperty$1(key, value);
  683. } else {
  684. try {
  685. if (!options.unsafe) delete O[key];
  686. else if (O[key]) simple = true;
  687. } catch (error) { /* empty */ }
  688. if (simple) O[key] = value;
  689. else definePropertyModule$3.f(O, key, {
  690. value: value,
  691. enumerable: false,
  692. configurable: !options.nonConfigurable,
  693. writable: !options.nonWritable
  694. });
  695. } return O;
  696. };
  697. var objectGetOwnPropertyNames = {};
  698. var ceil = Math.ceil;
  699. var floor = Math.floor;
  700. // `Math.trunc` method
  701. // https://tc39.es/ecma262/#sec-math.trunc
  702. // eslint-disable-next-line es/no-math-trunc -- safe
  703. var mathTrunc = Math.trunc || function trunc(x) {
  704. var n = +x;
  705. return (n > 0 ? floor : ceil)(n);
  706. };
  707. var trunc = mathTrunc;
  708. // `ToIntegerOrInfinity` abstract operation
  709. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  710. var toIntegerOrInfinity$2 = function (argument) {
  711. var number = +argument;
  712. // eslint-disable-next-line no-self-compare -- NaN check
  713. return number !== number || number === 0 ? 0 : trunc(number);
  714. };
  715. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  716. var max = Math.max;
  717. var min$1 = Math.min;
  718. // Helper for a popular repeating case of the spec:
  719. // Let integer be ? ToInteger(index).
  720. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  721. var toAbsoluteIndex$1 = function (index, length) {
  722. var integer = toIntegerOrInfinity$1(index);
  723. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  724. };
  725. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  726. var min = Math.min;
  727. // `ToLength` abstract operation
  728. // https://tc39.es/ecma262/#sec-tolength
  729. var toLength$1 = function (argument) {
  730. var len = toIntegerOrInfinity(argument);
  731. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  732. };
  733. var toLength = toLength$1;
  734. // `LengthOfArrayLike` abstract operation
  735. // https://tc39.es/ecma262/#sec-lengthofarraylike
  736. var lengthOfArrayLike$3 = function (obj) {
  737. return toLength(obj.length);
  738. };
  739. var toIndexedObject$2 = toIndexedObject$4;
  740. var toAbsoluteIndex = toAbsoluteIndex$1;
  741. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  742. // `Array.prototype.{ indexOf, includes }` methods implementation
  743. var createMethod$2 = function (IS_INCLUDES) {
  744. return function ($this, el, fromIndex) {
  745. var O = toIndexedObject$2($this);
  746. var length = lengthOfArrayLike$2(O);
  747. if (length === 0) return !IS_INCLUDES && -1;
  748. var index = toAbsoluteIndex(fromIndex, length);
  749. var value;
  750. // Array#includes uses SameValueZero equality algorithm
  751. // eslint-disable-next-line no-self-compare -- NaN check
  752. if (IS_INCLUDES && el !== el) while (length > index) {
  753. value = O[index++];
  754. // eslint-disable-next-line no-self-compare -- NaN check
  755. if (value !== value) return true;
  756. // Array#indexOf ignores holes, Array#includes - not
  757. } else for (;length > index; index++) {
  758. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  759. } return !IS_INCLUDES && -1;
  760. };
  761. };
  762. var arrayIncludes = {
  763. // `Array.prototype.includes` method
  764. // https://tc39.es/ecma262/#sec-array.prototype.includes
  765. includes: createMethod$2(true),
  766. // `Array.prototype.indexOf` method
  767. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  768. indexOf: createMethod$2(false)
  769. };
  770. var uncurryThis$a = functionUncurryThis;
  771. var hasOwn$1 = hasOwnProperty_1;
  772. var toIndexedObject$1 = toIndexedObject$4;
  773. var indexOf = arrayIncludes.indexOf;
  774. var hiddenKeys$2 = hiddenKeys$4;
  775. var push$1 = uncurryThis$a([].push);
  776. var objectKeysInternal = function (object, names) {
  777. var O = toIndexedObject$1(object);
  778. var i = 0;
  779. var result = [];
  780. var key;
  781. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  782. // Don't enum bug & hidden keys
  783. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  784. ~indexOf(result, key) || push$1(result, key);
  785. }
  786. return result;
  787. };
  788. // IE8- don't enum bug keys
  789. var enumBugKeys$3 = [
  790. 'constructor',
  791. 'hasOwnProperty',
  792. 'isPrototypeOf',
  793. 'propertyIsEnumerable',
  794. 'toLocaleString',
  795. 'toString',
  796. 'valueOf'
  797. ];
  798. var internalObjectKeys$1 = objectKeysInternal;
  799. var enumBugKeys$2 = enumBugKeys$3;
  800. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  801. // `Object.getOwnPropertyNames` method
  802. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  803. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  804. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  805. return internalObjectKeys$1(O, hiddenKeys$1);
  806. };
  807. var objectGetOwnPropertySymbols = {};
  808. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  809. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  810. var getBuiltIn$2 = getBuiltIn$4;
  811. var uncurryThis$9 = functionUncurryThis;
  812. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  813. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  814. var anObject$2 = anObject$4;
  815. var concat$1 = uncurryThis$9([].concat);
  816. // all object keys, includes non-enumerable and symbols
  817. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  818. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  819. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  820. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  821. };
  822. var hasOwn = hasOwnProperty_1;
  823. var ownKeys = ownKeys$1;
  824. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  825. var definePropertyModule$2 = objectDefineProperty;
  826. var copyConstructorProperties$1 = function (target, source, exceptions) {
  827. var keys = ownKeys(source);
  828. var defineProperty = definePropertyModule$2.f;
  829. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  830. for (var i = 0; i < keys.length; i++) {
  831. var key = keys[i];
  832. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  833. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  834. }
  835. }
  836. };
  837. var fails$6 = fails$e;
  838. var isCallable$2 = isCallable$c;
  839. var replacement = /#|\.prototype\./;
  840. var isForced$1 = function (feature, detection) {
  841. var value = data[normalize(feature)];
  842. return value === POLYFILL ? true
  843. : value === NATIVE ? false
  844. : isCallable$2(detection) ? fails$6(detection)
  845. : !!detection;
  846. };
  847. var normalize = isForced$1.normalize = function (string) {
  848. return String(string).replace(replacement, '.').toLowerCase();
  849. };
  850. var data = isForced$1.data = {};
  851. var NATIVE = isForced$1.NATIVE = 'N';
  852. var POLYFILL = isForced$1.POLYFILL = 'P';
  853. var isForced_1 = isForced$1;
  854. var global$2 = global$b;
  855. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  856. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  857. var defineBuiltIn$1 = defineBuiltIn$2;
  858. var defineGlobalProperty = defineGlobalProperty$3;
  859. var copyConstructorProperties = copyConstructorProperties$1;
  860. var isForced = isForced_1;
  861. /*
  862. options.target - name of the target object
  863. options.global - target is the global object
  864. options.stat - export as static methods of target
  865. options.proto - export as prototype methods of target
  866. options.real - real prototype method for the `pure` version
  867. options.forced - export even if the native feature is available
  868. options.bind - bind methods to the target, required for the `pure` version
  869. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  870. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  871. options.sham - add a flag to not completely full polyfills
  872. options.enumerable - export as enumerable property
  873. options.dontCallGetSet - prevent calling a getter on target
  874. options.name - the .name of the function if it does not match the key
  875. */
  876. var _export = function (options, source) {
  877. var TARGET = options.target;
  878. var GLOBAL = options.global;
  879. var STATIC = options.stat;
  880. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  881. if (GLOBAL) {
  882. target = global$2;
  883. } else if (STATIC) {
  884. target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
  885. } else {
  886. target = global$2[TARGET] && global$2[TARGET].prototype;
  887. }
  888. if (target) for (key in source) {
  889. sourceProperty = source[key];
  890. if (options.dontCallGetSet) {
  891. descriptor = getOwnPropertyDescriptor(target, key);
  892. targetProperty = descriptor && descriptor.value;
  893. } else targetProperty = target[key];
  894. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  895. // contained in target
  896. if (!FORCED && targetProperty !== undefined) {
  897. if (typeof sourceProperty == typeof targetProperty) continue;
  898. copyConstructorProperties(sourceProperty, targetProperty);
  899. }
  900. // add a flag to not completely full polyfills
  901. if (options.sham || (targetProperty && targetProperty.sham)) {
  902. createNonEnumerableProperty(sourceProperty, 'sham', true);
  903. }
  904. defineBuiltIn$1(target, key, sourceProperty, options);
  905. }
  906. };
  907. var classof$4 = classofRaw$2;
  908. // `IsArray` abstract operation
  909. // https://tc39.es/ecma262/#sec-isarray
  910. // eslint-disable-next-line es/no-array-isarray -- safe
  911. var isArray$3 = Array.isArray || function isArray(argument) {
  912. return classof$4(argument) === 'Array';
  913. };
  914. var $TypeError = TypeError;
  915. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  916. var doesNotExceedSafeInteger$1 = function (it) {
  917. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  918. return it;
  919. };
  920. var DESCRIPTORS$2 = descriptors;
  921. var definePropertyModule$1 = objectDefineProperty;
  922. var createPropertyDescriptor = createPropertyDescriptor$3;
  923. var createProperty$1 = function (object, key, value) {
  924. if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
  925. else object[key] = value;
  926. };
  927. var wellKnownSymbol$5 = wellKnownSymbol$7;
  928. var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
  929. var test$1 = {};
  930. test$1[TO_STRING_TAG$1] = 'z';
  931. var toStringTagSupport = String(test$1) === '[object z]';
  932. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  933. var isCallable$1 = isCallable$c;
  934. var classofRaw$1 = classofRaw$2;
  935. var wellKnownSymbol$4 = wellKnownSymbol$7;
  936. var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
  937. var $Object = Object;
  938. // ES3 wrong here
  939. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  940. // fallback for IE11 Script Access Denied error
  941. var tryGet = function (it, key) {
  942. try {
  943. return it[key];
  944. } catch (error) { /* empty */ }
  945. };
  946. // getting tag from ES6+ `Object.prototype.toString`
  947. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  948. var O, tag, result;
  949. return it === undefined ? 'Undefined' : it === null ? 'Null'
  950. // @@toStringTag case
  951. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  952. // builtinTag case
  953. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  954. // ES3 arguments fallback
  955. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  956. };
  957. var uncurryThis$8 = functionUncurryThis;
  958. var fails$5 = fails$e;
  959. var isCallable = isCallable$c;
  960. var classof$2 = classof$3;
  961. var getBuiltIn$1 = getBuiltIn$4;
  962. var inspectSource = inspectSource$2;
  963. var noop = function () { /* empty */ };
  964. var construct = getBuiltIn$1('Reflect', 'construct');
  965. var constructorRegExp = /^\s*(?:class|function)\b/;
  966. var exec$1 = uncurryThis$8(constructorRegExp.exec);
  967. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  968. var isConstructorModern = function isConstructor(argument) {
  969. if (!isCallable(argument)) return false;
  970. try {
  971. construct(noop, [], argument);
  972. return true;
  973. } catch (error) {
  974. return false;
  975. }
  976. };
  977. var isConstructorLegacy = function isConstructor(argument) {
  978. if (!isCallable(argument)) return false;
  979. switch (classof$2(argument)) {
  980. case 'AsyncFunction':
  981. case 'GeneratorFunction':
  982. case 'AsyncGeneratorFunction': return false;
  983. }
  984. try {
  985. // we can't check .prototype since constructors produced by .bind haven't it
  986. // `Function#toString` throws on some built-it function in some legacy engines
  987. // (for example, `DOMQuad` and similar in FF41-)
  988. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  989. } catch (error) {
  990. return true;
  991. }
  992. };
  993. isConstructorLegacy.sham = true;
  994. // `IsConstructor` abstract operation
  995. // https://tc39.es/ecma262/#sec-isconstructor
  996. var isConstructor$1 = !construct || fails$5(function () {
  997. var called;
  998. return isConstructorModern(isConstructorModern.call)
  999. || !isConstructorModern(Object)
  1000. || !isConstructorModern(function () { called = true; })
  1001. || called;
  1002. }) ? isConstructorLegacy : isConstructorModern;
  1003. var isArray$2 = isArray$3;
  1004. var isConstructor = isConstructor$1;
  1005. var isObject$1 = isObject$7;
  1006. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1007. var SPECIES$1 = wellKnownSymbol$3('species');
  1008. var $Array = Array;
  1009. // a part of `ArraySpeciesCreate` abstract operation
  1010. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1011. var arraySpeciesConstructor$1 = function (originalArray) {
  1012. var C;
  1013. if (isArray$2(originalArray)) {
  1014. C = originalArray.constructor;
  1015. // cross-realm fallback
  1016. if (isConstructor(C) && (C === $Array || isArray$2(C.prototype))) C = undefined;
  1017. else if (isObject$1(C)) {
  1018. C = C[SPECIES$1];
  1019. if (C === null) C = undefined;
  1020. }
  1021. } return C === undefined ? $Array : C;
  1022. };
  1023. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1024. // `ArraySpeciesCreate` abstract operation
  1025. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1026. var arraySpeciesCreate$2 = function (originalArray, length) {
  1027. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1028. };
  1029. var fails$4 = fails$e;
  1030. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1031. var V8_VERSION$1 = engineV8Version;
  1032. var SPECIES = wellKnownSymbol$2('species');
  1033. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1034. // We can't use this feature detection in V8 since it causes
  1035. // deoptimization and serious performance degradation
  1036. // https://github.com/zloirock/core-js/issues/677
  1037. return V8_VERSION$1 >= 51 || !fails$4(function () {
  1038. var array = [];
  1039. var constructor = array.constructor = {};
  1040. constructor[SPECIES] = function () {
  1041. return { foo: 1 };
  1042. };
  1043. return array[METHOD_NAME](Boolean).foo !== 1;
  1044. });
  1045. };
  1046. var $$5 = _export;
  1047. var fails$3 = fails$e;
  1048. var isArray$1 = isArray$3;
  1049. var isObject = isObject$7;
  1050. var toObject$2 = toObject$4;
  1051. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1052. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1053. var createProperty = createProperty$1;
  1054. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1055. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1056. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1057. var V8_VERSION = engineV8Version;
  1058. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1059. // We can't use this feature detection in V8 since it causes
  1060. // deoptimization and serious performance degradation
  1061. // https://github.com/zloirock/core-js/issues/679
  1062. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$3(function () {
  1063. var array = [];
  1064. array[IS_CONCAT_SPREADABLE] = false;
  1065. return array.concat()[0] !== array;
  1066. });
  1067. var isConcatSpreadable = function (O) {
  1068. if (!isObject(O)) return false;
  1069. var spreadable = O[IS_CONCAT_SPREADABLE];
  1070. return spreadable !== undefined ? !!spreadable : isArray$1(O);
  1071. };
  1072. var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1073. // `Array.prototype.concat` method
  1074. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1075. // with adding support of @@isConcatSpreadable and @@species
  1076. $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
  1077. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1078. concat: function concat(arg) {
  1079. var O = toObject$2(this);
  1080. var A = arraySpeciesCreate$1(O, 0);
  1081. var n = 0;
  1082. var i, k, length, len, E;
  1083. for (i = -1, length = arguments.length; i < length; i++) {
  1084. E = i === -1 ? O : arguments[i];
  1085. if (isConcatSpreadable(E)) {
  1086. len = lengthOfArrayLike$1(E);
  1087. doesNotExceedSafeInteger(n + len);
  1088. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1089. } else {
  1090. doesNotExceedSafeInteger(n + 1);
  1091. createProperty(A, n++, E);
  1092. }
  1093. }
  1094. A.length = n;
  1095. return A;
  1096. }
  1097. });
  1098. var classofRaw = classofRaw$2;
  1099. var uncurryThis$7 = functionUncurryThis;
  1100. var functionUncurryThisClause = function (fn) {
  1101. // Nashorn bug:
  1102. // https://github.com/zloirock/core-js/issues/1128
  1103. // https://github.com/zloirock/core-js/issues/1130
  1104. if (classofRaw(fn) === 'Function') return uncurryThis$7(fn);
  1105. };
  1106. var uncurryThis$6 = functionUncurryThisClause;
  1107. var aCallable = aCallable$2;
  1108. var NATIVE_BIND = functionBindNative;
  1109. var bind$1 = uncurryThis$6(uncurryThis$6.bind);
  1110. // optional / simple context binding
  1111. var functionBindContext = function (fn, that) {
  1112. aCallable(fn);
  1113. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1114. return fn.apply(that, arguments);
  1115. };
  1116. };
  1117. var bind = functionBindContext;
  1118. var uncurryThis$5 = functionUncurryThis;
  1119. var IndexedObject$1 = indexedObject;
  1120. var toObject$1 = toObject$4;
  1121. var lengthOfArrayLike = lengthOfArrayLike$3;
  1122. var arraySpeciesCreate = arraySpeciesCreate$2;
  1123. var push = uncurryThis$5([].push);
  1124. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1125. var createMethod$1 = function (TYPE) {
  1126. var IS_MAP = TYPE === 1;
  1127. var IS_FILTER = TYPE === 2;
  1128. var IS_SOME = TYPE === 3;
  1129. var IS_EVERY = TYPE === 4;
  1130. var IS_FIND_INDEX = TYPE === 6;
  1131. var IS_FILTER_REJECT = TYPE === 7;
  1132. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1133. return function ($this, callbackfn, that, specificCreate) {
  1134. var O = toObject$1($this);
  1135. var self = IndexedObject$1(O);
  1136. var length = lengthOfArrayLike(self);
  1137. var boundFunction = bind(callbackfn, that);
  1138. var index = 0;
  1139. var create = specificCreate || arraySpeciesCreate;
  1140. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1141. var value, result;
  1142. for (;length > index; index++) if (NO_HOLES || index in self) {
  1143. value = self[index];
  1144. result = boundFunction(value, index, O);
  1145. if (TYPE) {
  1146. if (IS_MAP) target[index] = result; // map
  1147. else if (result) switch (TYPE) {
  1148. case 3: return true; // some
  1149. case 5: return value; // find
  1150. case 6: return index; // findIndex
  1151. case 2: push(target, value); // filter
  1152. } else switch (TYPE) {
  1153. case 4: return false; // every
  1154. case 7: push(target, value); // filterReject
  1155. }
  1156. }
  1157. }
  1158. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1159. };
  1160. };
  1161. var arrayIteration = {
  1162. // `Array.prototype.forEach` method
  1163. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1164. forEach: createMethod$1(0),
  1165. // `Array.prototype.map` method
  1166. // https://tc39.es/ecma262/#sec-array.prototype.map
  1167. map: createMethod$1(1),
  1168. // `Array.prototype.filter` method
  1169. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1170. filter: createMethod$1(2),
  1171. // `Array.prototype.some` method
  1172. // https://tc39.es/ecma262/#sec-array.prototype.some
  1173. some: createMethod$1(3),
  1174. // `Array.prototype.every` method
  1175. // https://tc39.es/ecma262/#sec-array.prototype.every
  1176. every: createMethod$1(4),
  1177. // `Array.prototype.find` method
  1178. // https://tc39.es/ecma262/#sec-array.prototype.find
  1179. find: createMethod$1(5),
  1180. // `Array.prototype.findIndex` method
  1181. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1182. findIndex: createMethod$1(6),
  1183. // `Array.prototype.filterReject` method
  1184. // https://github.com/tc39/proposal-array-filtering
  1185. filterReject: createMethod$1(7)
  1186. };
  1187. var objectDefineProperties = {};
  1188. var internalObjectKeys = objectKeysInternal;
  1189. var enumBugKeys$1 = enumBugKeys$3;
  1190. // `Object.keys` method
  1191. // https://tc39.es/ecma262/#sec-object.keys
  1192. // eslint-disable-next-line es/no-object-keys -- safe
  1193. var objectKeys$2 = Object.keys || function keys(O) {
  1194. return internalObjectKeys(O, enumBugKeys$1);
  1195. };
  1196. var DESCRIPTORS$1 = descriptors;
  1197. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1198. var definePropertyModule = objectDefineProperty;
  1199. var anObject$1 = anObject$4;
  1200. var toIndexedObject = toIndexedObject$4;
  1201. var objectKeys$1 = objectKeys$2;
  1202. // `Object.defineProperties` method
  1203. // https://tc39.es/ecma262/#sec-object.defineproperties
  1204. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1205. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1206. anObject$1(O);
  1207. var props = toIndexedObject(Properties);
  1208. var keys = objectKeys$1(Properties);
  1209. var length = keys.length;
  1210. var index = 0;
  1211. var key;
  1212. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1213. return O;
  1214. };
  1215. var getBuiltIn = getBuiltIn$4;
  1216. var html$1 = getBuiltIn('document', 'documentElement');
  1217. /* global ActiveXObject -- old IE, WSH */
  1218. var anObject = anObject$4;
  1219. var definePropertiesModule = objectDefineProperties;
  1220. var enumBugKeys = enumBugKeys$3;
  1221. var hiddenKeys = hiddenKeys$4;
  1222. var html = html$1;
  1223. var documentCreateElement = documentCreateElement$1;
  1224. var sharedKey = sharedKey$2;
  1225. var GT = '>';
  1226. var LT = '<';
  1227. var PROTOTYPE = 'prototype';
  1228. var SCRIPT = 'script';
  1229. var IE_PROTO = sharedKey('IE_PROTO');
  1230. var EmptyConstructor = function () { /* empty */ };
  1231. var scriptTag = function (content) {
  1232. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1233. };
  1234. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1235. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1236. activeXDocument.write(scriptTag(''));
  1237. activeXDocument.close();
  1238. var temp = activeXDocument.parentWindow.Object;
  1239. activeXDocument = null; // avoid memory leak
  1240. return temp;
  1241. };
  1242. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1243. var NullProtoObjectViaIFrame = function () {
  1244. // Thrash, waste and sodomy: IE GC bug
  1245. var iframe = documentCreateElement('iframe');
  1246. var JS = 'java' + SCRIPT + ':';
  1247. var iframeDocument;
  1248. iframe.style.display = 'none';
  1249. html.appendChild(iframe);
  1250. // https://github.com/zloirock/core-js/issues/475
  1251. iframe.src = String(JS);
  1252. iframeDocument = iframe.contentWindow.document;
  1253. iframeDocument.open();
  1254. iframeDocument.write(scriptTag('document.F=Object'));
  1255. iframeDocument.close();
  1256. return iframeDocument.F;
  1257. };
  1258. // Check for document.domain and active x support
  1259. // No need to use active x approach when document.domain is not set
  1260. // see https://github.com/es-shims/es5-shim/issues/150
  1261. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1262. // avoid IE GC bug
  1263. var activeXDocument;
  1264. var NullProtoObject = function () {
  1265. try {
  1266. activeXDocument = new ActiveXObject('htmlfile');
  1267. } catch (error) { /* ignore */ }
  1268. NullProtoObject = typeof document != 'undefined'
  1269. ? document.domain && activeXDocument
  1270. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1271. : NullProtoObjectViaIFrame()
  1272. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1273. var length = enumBugKeys.length;
  1274. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1275. return NullProtoObject();
  1276. };
  1277. hiddenKeys[IE_PROTO] = true;
  1278. // `Object.create` method
  1279. // https://tc39.es/ecma262/#sec-object.create
  1280. // eslint-disable-next-line es/no-object-create -- safe
  1281. var objectCreate = Object.create || function create(O, Properties) {
  1282. var result;
  1283. if (O !== null) {
  1284. EmptyConstructor[PROTOTYPE] = anObject(O);
  1285. result = new EmptyConstructor();
  1286. EmptyConstructor[PROTOTYPE] = null;
  1287. // add "__proto__" for Object.getPrototypeOf polyfill
  1288. result[IE_PROTO] = O;
  1289. } else result = NullProtoObject();
  1290. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1291. };
  1292. var wellKnownSymbol = wellKnownSymbol$7;
  1293. var create = objectCreate;
  1294. var defineProperty$1 = objectDefineProperty.f;
  1295. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1296. var ArrayPrototype = Array.prototype;
  1297. // Array.prototype[@@unscopables]
  1298. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1299. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1300. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1301. configurable: true,
  1302. value: create(null)
  1303. });
  1304. }
  1305. // add a key to Array.prototype[@@unscopables]
  1306. var addToUnscopables$1 = function (key) {
  1307. ArrayPrototype[UNSCOPABLES][key] = true;
  1308. };
  1309. var $$4 = _export;
  1310. var $find = arrayIteration.find;
  1311. var addToUnscopables = addToUnscopables$1;
  1312. var FIND = 'find';
  1313. var SKIPS_HOLES = true;
  1314. // Shouldn't skip holes
  1315. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1316. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1317. // `Array.prototype.find` method
  1318. // https://tc39.es/ecma262/#sec-array.prototype.find
  1319. $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1320. find: function find(callbackfn /* , that = undefined */) {
  1321. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1322. }
  1323. });
  1324. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1325. addToUnscopables(FIND);
  1326. var fails$2 = fails$e;
  1327. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1328. var method = [][METHOD_NAME];
  1329. return !!method && fails$2(function () {
  1330. // eslint-disable-next-line no-useless-call -- required for testing
  1331. method.call(null, argument || function () { return 1; }, 1);
  1332. });
  1333. };
  1334. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1335. var $$3 = _export;
  1336. var uncurryThis$4 = functionUncurryThisClause;
  1337. var $indexOf = arrayIncludes.indexOf;
  1338. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1339. var nativeIndexOf = uncurryThis$4([].indexOf);
  1340. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1341. var FORCED$1 = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
  1342. // `Array.prototype.indexOf` method
  1343. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1344. $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1345. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1346. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1347. return NEGATIVE_ZERO
  1348. // convert -0 to +0
  1349. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1350. : $indexOf(this, searchElement, fromIndex);
  1351. }
  1352. });
  1353. var $$2 = _export;
  1354. var uncurryThis$3 = functionUncurryThis;
  1355. var isArray = isArray$3;
  1356. var nativeReverse = uncurryThis$3([].reverse);
  1357. var test = [1, 2];
  1358. // `Array.prototype.reverse` method
  1359. // https://tc39.es/ecma262/#sec-array.prototype.reverse
  1360. // fix for Safari 12.0 bug
  1361. // https://bugs.webkit.org/show_bug.cgi?id=188794
  1362. $$2({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
  1363. reverse: function reverse() {
  1364. // eslint-disable-next-line no-self-assign -- dirty hack
  1365. if (isArray(this)) this.length = this.length;
  1366. return nativeReverse(this);
  1367. }
  1368. });
  1369. var DESCRIPTORS = descriptors;
  1370. var uncurryThis$2 = functionUncurryThis;
  1371. var call = functionCall;
  1372. var fails$1 = fails$e;
  1373. var objectKeys = objectKeys$2;
  1374. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1375. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1376. var toObject = toObject$4;
  1377. var IndexedObject = indexedObject;
  1378. // eslint-disable-next-line es/no-object-assign -- safe
  1379. var $assign = Object.assign;
  1380. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1381. var defineProperty = Object.defineProperty;
  1382. var concat = uncurryThis$2([].concat);
  1383. // `Object.assign` method
  1384. // https://tc39.es/ecma262/#sec-object.assign
  1385. var objectAssign = !$assign || fails$1(function () {
  1386. // should have correct order of operations (Edge bug)
  1387. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1388. enumerable: true,
  1389. get: function () {
  1390. defineProperty(this, 'b', {
  1391. value: 3,
  1392. enumerable: false
  1393. });
  1394. }
  1395. }), { b: 2 })).b !== 1) return true;
  1396. // should work with symbols and should have deterministic property order (V8 bug)
  1397. var A = {};
  1398. var B = {};
  1399. // eslint-disable-next-line es/no-symbol -- safe
  1400. var symbol = Symbol('assign detection');
  1401. var alphabet = 'abcdefghijklmnopqrst';
  1402. A[symbol] = 7;
  1403. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1404. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1405. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1406. var T = toObject(target);
  1407. var argumentsLength = arguments.length;
  1408. var index = 1;
  1409. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1410. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1411. while (argumentsLength > index) {
  1412. var S = IndexedObject(arguments[index++]);
  1413. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1414. var length = keys.length;
  1415. var j = 0;
  1416. var key;
  1417. while (length > j) {
  1418. key = keys[j++];
  1419. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1420. }
  1421. } return T;
  1422. } : $assign;
  1423. var $$1 = _export;
  1424. var assign = objectAssign;
  1425. // `Object.assign` method
  1426. // https://tc39.es/ecma262/#sec-object.assign
  1427. // eslint-disable-next-line es/no-object-assign -- required for testing
  1428. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1429. assign: assign
  1430. });
  1431. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1432. var classof$1 = classof$3;
  1433. // `Object.prototype.toString` method implementation
  1434. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1435. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1436. return '[object ' + classof$1(this) + ']';
  1437. };
  1438. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1439. var defineBuiltIn = defineBuiltIn$2;
  1440. var toString$3 = objectToString;
  1441. // `Object.prototype.toString` method
  1442. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1443. if (!TO_STRING_TAG_SUPPORT) {
  1444. defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
  1445. }
  1446. var classof = classof$3;
  1447. var $String = String;
  1448. var toString$2 = function (argument) {
  1449. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1450. return $String(argument);
  1451. };
  1452. // a string of all valid unicode whitespaces
  1453. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1454. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1455. var uncurryThis$1 = functionUncurryThis;
  1456. var requireObjectCoercible = requireObjectCoercible$3;
  1457. var toString$1 = toString$2;
  1458. var whitespaces$1 = whitespaces$2;
  1459. var replace = uncurryThis$1(''.replace);
  1460. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  1461. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  1462. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1463. var createMethod = function (TYPE) {
  1464. return function ($this) {
  1465. var string = toString$1(requireObjectCoercible($this));
  1466. if (TYPE & 1) string = replace(string, ltrim, '');
  1467. if (TYPE & 2) string = replace(string, rtrim, '$1');
  1468. return string;
  1469. };
  1470. };
  1471. var stringTrim = {
  1472. // `String.prototype.{ trimLeft, trimStart }` methods
  1473. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1474. start: createMethod(1),
  1475. // `String.prototype.{ trimRight, trimEnd }` methods
  1476. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1477. end: createMethod(2),
  1478. // `String.prototype.trim` method
  1479. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1480. trim: createMethod(3)
  1481. };
  1482. var global$1 = global$b;
  1483. var fails = fails$e;
  1484. var uncurryThis = functionUncurryThis;
  1485. var toString = toString$2;
  1486. var trim = stringTrim.trim;
  1487. var whitespaces = whitespaces$2;
  1488. var $parseInt$1 = global$1.parseInt;
  1489. var Symbol$1 = global$1.Symbol;
  1490. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1491. var hex = /^[+-]?0x/i;
  1492. var exec = uncurryThis(hex.exec);
  1493. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1494. // MS Edge 18- broken with boxed symbols
  1495. || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
  1496. // `parseInt` method
  1497. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1498. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1499. var S = trim(toString(string));
  1500. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1501. } : $parseInt$1;
  1502. var $ = _export;
  1503. var $parseInt = numberParseInt;
  1504. // `parseInt` method
  1505. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1506. $({ global: true, forced: parseInt !== $parseInt }, {
  1507. parseInt: $parseInt
  1508. });
  1509. /**
  1510. * @author zhixin wen <wenzhixin2010@gmail.com>
  1511. */
  1512. var Utils = $$6.fn.bootstrapTable.utils;
  1513. // Reasonable defaults
  1514. var PIXEL_STEP = 10;
  1515. var LINE_HEIGHT = 40;
  1516. var PAGE_HEIGHT = 800;
  1517. function normalizeWheel(event) {
  1518. var sX = 0; // spinX
  1519. var sY = 0; // spinY
  1520. var pX = 0; // pixelX
  1521. var pY = 0; // pixelY
  1522. // Legacy
  1523. if ('detail' in event) {
  1524. sY = event.detail;
  1525. }
  1526. if ('wheelDelta' in event) {
  1527. sY = -event.wheelDelta / 120;
  1528. }
  1529. if ('wheelDeltaY' in event) {
  1530. sY = -event.wheelDeltaY / 120;
  1531. }
  1532. if ('wheelDeltaX' in event) {
  1533. sX = -event.wheelDeltaX / 120;
  1534. }
  1535. // side scrolling on FF with DOMMouseScroll
  1536. if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {
  1537. sX = sY;
  1538. sY = 0;
  1539. }
  1540. pX = sX * PIXEL_STEP;
  1541. pY = sY * PIXEL_STEP;
  1542. if ('deltaY' in event) {
  1543. pY = event.deltaY;
  1544. }
  1545. if ('deltaX' in event) {
  1546. pX = event.deltaX;
  1547. }
  1548. if ((pX || pY) && event.deltaMode) {
  1549. if (event.deltaMode === 1) {
  1550. // delta in LINE units
  1551. pX *= LINE_HEIGHT;
  1552. pY *= LINE_HEIGHT;
  1553. } else {
  1554. // delta in PAGE units
  1555. pX *= PAGE_HEIGHT;
  1556. pY *= PAGE_HEIGHT;
  1557. }
  1558. }
  1559. // Fall-back if spin cannot be determined
  1560. if (pX && !sX) {
  1561. sX = pX < 1 ? -1 : 1;
  1562. }
  1563. if (pY && !sY) {
  1564. sY = pY < 1 ? -1 : 1;
  1565. }
  1566. return {
  1567. spinX: sX,
  1568. spinY: sY,
  1569. pixelX: pX,
  1570. pixelY: pY
  1571. };
  1572. }
  1573. Object.assign($$6.fn.bootstrapTable.defaults, {
  1574. fixedColumns: false,
  1575. fixedNumber: 0,
  1576. fixedRightNumber: 0
  1577. });
  1578. $$6.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1579. function _class() {
  1580. _classCallCheck(this, _class);
  1581. return _callSuper(this, _class, arguments);
  1582. }
  1583. _inherits(_class, _$$BootstrapTable);
  1584. return _createClass(_class, [{
  1585. key: "fixedColumnsSupported",
  1586. value: function fixedColumnsSupported() {
  1587. return this.options.fixedColumns && !this.options.detailView && !this.options.cardView;
  1588. }
  1589. }, {
  1590. key: "initContainer",
  1591. value: function initContainer() {
  1592. _get(_getPrototypeOf(_class.prototype), "initContainer", this).call(this);
  1593. if (!this.fixedColumnsSupported()) {
  1594. return;
  1595. }
  1596. if (this.options.fixedNumber) {
  1597. this.$tableContainer.append('<div class="fixed-columns"></div>');
  1598. this.$fixedColumns = this.$tableContainer.find('.fixed-columns');
  1599. }
  1600. if (this.options.fixedRightNumber) {
  1601. this.$tableContainer.append('<div class="fixed-columns-right"></div>');
  1602. this.$fixedColumnsRight = this.$tableContainer.find('.fixed-columns-right');
  1603. }
  1604. }
  1605. }, {
  1606. key: "initBody",
  1607. value: function initBody() {
  1608. var _get2;
  1609. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1610. args[_key] = arguments[_key];
  1611. }
  1612. (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
  1613. if (this.$fixedColumns && this.$fixedColumns.length) {
  1614. this.$fixedColumns.toggle(this.fixedColumnsSupported());
  1615. }
  1616. if (this.$fixedColumnsRight && this.$fixedColumnsRight.length) {
  1617. this.$fixedColumnsRight.toggle(this.fixedColumnsSupported());
  1618. }
  1619. if (!this.fixedColumnsSupported()) {
  1620. return;
  1621. }
  1622. if (this.options.showHeader && this.options.height) {
  1623. return;
  1624. }
  1625. this.initFixedColumnsBody();
  1626. this.initFixedColumnsEvents();
  1627. }
  1628. }, {
  1629. key: "trigger",
  1630. value: function trigger() {
  1631. var _get3;
  1632. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1633. args[_key2] = arguments[_key2];
  1634. }
  1635. (_get3 = _get(_getPrototypeOf(_class.prototype), "trigger", this)).call.apply(_get3, [this].concat(args));
  1636. if (!this.fixedColumnsSupported()) {
  1637. return;
  1638. }
  1639. if (args[0] === 'post-header') {
  1640. this.initFixedColumnsHeader();
  1641. } else if (args[0] === 'scroll-body') {
  1642. if (this.needFixedColumns && this.options.fixedNumber) {
  1643. this.$fixedBody.scrollTop(this.$tableBody.scrollTop());
  1644. }
  1645. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1646. this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop());
  1647. }
  1648. }
  1649. }
  1650. }, {
  1651. key: "updateSelected",
  1652. value: function updateSelected() {
  1653. var _this = this;
  1654. _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
  1655. if (!this.fixedColumnsSupported()) {
  1656. return;
  1657. }
  1658. this.$tableBody.find('tr').each(function (i, el) {
  1659. var $el = $$6(el);
  1660. var index = $el.data('index');
  1661. var classes = $el.attr('class');
  1662. var inputSelector = "[name=\"".concat(_this.options.selectItemName, "\"]");
  1663. var $input = $el.find(inputSelector);
  1664. if (typeof index === 'undefined') {
  1665. return;
  1666. }
  1667. var updateFixedBody = function updateFixedBody($fixedHeader, $fixedBody) {
  1668. var $tr = $fixedBody.find("tr[data-index=\"".concat(index, "\"]"));
  1669. $tr.attr('class', classes);
  1670. if ($input.length) {
  1671. $tr.find(inputSelector).prop('checked', $input.prop('checked'));
  1672. }
  1673. if (_this.$selectAll.length) {
  1674. $fixedHeader.add($fixedBody).find('[name="btSelectAll"]').prop('checked', _this.$selectAll.prop('checked'));
  1675. }
  1676. };
  1677. if (_this.$fixedBody && _this.options.fixedNumber) {
  1678. updateFixedBody(_this.$fixedHeader, _this.$fixedBody);
  1679. }
  1680. if (_this.$fixedBodyRight && _this.options.fixedRightNumber) {
  1681. updateFixedBody(_this.$fixedHeaderRight, _this.$fixedBodyRight);
  1682. }
  1683. });
  1684. }
  1685. }, {
  1686. key: "hideLoading",
  1687. value: function hideLoading() {
  1688. _get(_getPrototypeOf(_class.prototype), "hideLoading", this).call(this);
  1689. if (this.needFixedColumns && this.options.fixedNumber) {
  1690. this.$fixedColumns.find('.fixed-table-loading').hide();
  1691. }
  1692. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1693. this.$fixedColumnsRight.find('.fixed-table-loading').hide();
  1694. }
  1695. }
  1696. }, {
  1697. key: "initFixedColumnsHeader",
  1698. value: function initFixedColumnsHeader() {
  1699. var _this2 = this;
  1700. if (this.options.height) {
  1701. this.needFixedColumns = this.$tableHeader.outerWidth(true) < this.$tableHeader.find('table').outerWidth(true);
  1702. } else {
  1703. this.needFixedColumns = this.$tableBody.outerWidth(true) < this.$tableBody.find('table').outerWidth(true);
  1704. }
  1705. var initFixedHeader = function initFixedHeader($fixedColumns, isRight) {
  1706. $fixedColumns.find('.fixed-table-header').remove();
  1707. $fixedColumns.append(_this2.$tableHeader.clone(true));
  1708. $fixedColumns.css({
  1709. width: _this2.getFixedColumnsWidth(isRight)
  1710. });
  1711. return $fixedColumns.find('.fixed-table-header');
  1712. };
  1713. if (this.needFixedColumns && this.options.fixedNumber) {
  1714. this.$fixedHeader = initFixedHeader(this.$fixedColumns);
  1715. this.$fixedHeader.css('margin-right', '');
  1716. } else if (this.$fixedColumns) {
  1717. this.$fixedColumns.html('').css('width', '');
  1718. }
  1719. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1720. this.$fixedHeaderRight = initFixedHeader(this.$fixedColumnsRight, true);
  1721. this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find('table').width());
  1722. } else if (this.$fixedColumnsRight) {
  1723. this.$fixedColumnsRight.html('').css('width', '');
  1724. }
  1725. this.initFixedColumnsBody();
  1726. this.initFixedColumnsEvents();
  1727. }
  1728. }, {
  1729. key: "initFixedColumnsBody",
  1730. value: function initFixedColumnsBody() {
  1731. var _this3 = this;
  1732. var initFixedBody = function initFixedBody($fixedColumns, $fixedHeader) {
  1733. $fixedColumns.find('.fixed-table-body').remove();
  1734. $fixedColumns.append(_this3.$tableBody.clone(true));
  1735. $fixedColumns.find('.fixed-table-body table').removeAttr('id');
  1736. var $fixedBody = $fixedColumns.find('.fixed-table-body');
  1737. var tableBody = _this3.$tableBody.get(0);
  1738. var scrollHeight = tableBody.scrollWidth > tableBody.clientWidth ? Utils.getScrollBarWidth() : 0;
  1739. var height = _this3.$tableContainer.outerHeight(true) - scrollHeight - 1;
  1740. $fixedColumns.css({
  1741. height: height
  1742. });
  1743. $fixedBody.css({
  1744. height: height - $fixedHeader.height()
  1745. });
  1746. return $fixedBody;
  1747. };
  1748. if (this.needFixedColumns && this.options.fixedNumber) {
  1749. this.$fixedBody = initFixedBody(this.$fixedColumns, this.$fixedHeader);
  1750. }
  1751. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1752. this.$fixedBodyRight = initFixedBody(this.$fixedColumnsRight, this.$fixedHeaderRight);
  1753. this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find('table').width());
  1754. this.$fixedBodyRight.css('overflow-y', this.options.height ? 'auto' : 'hidden');
  1755. }
  1756. }
  1757. }, {
  1758. key: "getFixedColumnsWidth",
  1759. value: function getFixedColumnsWidth(isRight) {
  1760. var visibleFields = this.getVisibleFields();
  1761. var width = 0;
  1762. var fixedNumber = this.options.fixedNumber;
  1763. var marginRight = 0;
  1764. if (isRight) {
  1765. visibleFields = visibleFields.reverse();
  1766. fixedNumber = this.options.fixedRightNumber;
  1767. marginRight = parseInt(this.$tableHeader.css('margin-right'), 10);
  1768. }
  1769. for (var i = 0; i < fixedNumber; i++) {
  1770. width += this.$header.find("th[data-field=\"".concat(visibleFields[i], "\"]")).outerWidth(true);
  1771. }
  1772. return width + marginRight + 1;
  1773. }
  1774. }, {
  1775. key: "initFixedColumnsEvents",
  1776. value: function initFixedColumnsEvents() {
  1777. var _this4 = this;
  1778. var toggleHover = function toggleHover(e, toggle) {
  1779. var tr = "tr[data-index=\"".concat($$6(e.currentTarget).data('index'), "\"]");
  1780. var $trs = _this4.$tableBody.find(tr);
  1781. if (_this4.$fixedBody) {
  1782. $trs = $trs.add(_this4.$fixedBody.find(tr));
  1783. }
  1784. if (_this4.$fixedBodyRight) {
  1785. $trs = $trs.add(_this4.$fixedBodyRight.find(tr));
  1786. }
  1787. $trs.css('background-color', toggle ? $$6(e.currentTarget).css('background-color') : '');
  1788. };
  1789. this.$tableBody.find('tr').hover(function (e) {
  1790. toggleHover(e, true);
  1791. }, function (e) {
  1792. toggleHover(e, false);
  1793. });
  1794. var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
  1795. var mousewheel = isFirefox ? 'DOMMouseScroll' : 'mousewheel';
  1796. var updateScroll = function updateScroll(e, fixedBody) {
  1797. var normalized = normalizeWheel(e);
  1798. var deltaY = Math.ceil(normalized.pixelY);
  1799. var top = _this4.$tableBody.scrollTop() + deltaY;
  1800. if (deltaY < 0 && top > 0 || deltaY > 0 && top < fixedBody.scrollHeight - fixedBody.clientHeight) {
  1801. e.preventDefault();
  1802. }
  1803. _this4.$tableBody.scrollTop(top);
  1804. if (_this4.$fixedBody) {
  1805. _this4.$fixedBody.scrollTop(top);
  1806. }
  1807. if (_this4.$fixedBodyRight) {
  1808. _this4.$fixedBodyRight.scrollTop(top);
  1809. }
  1810. };
  1811. if (this.needFixedColumns && this.options.fixedNumber) {
  1812. this.$fixedBody.find('tr').hover(function (e) {
  1813. toggleHover(e, true);
  1814. }, function (e) {
  1815. toggleHover(e, false);
  1816. });
  1817. this.$fixedBody[0].addEventListener(mousewheel, function (e) {
  1818. updateScroll(e, _this4.$fixedBody[0]);
  1819. });
  1820. }
  1821. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1822. this.$fixedBodyRight.find('tr').hover(function (e) {
  1823. toggleHover(e, true);
  1824. }, function (e) {
  1825. toggleHover(e, false);
  1826. });
  1827. this.$fixedBodyRight.off('scroll').on('scroll', function () {
  1828. var top = _this4.$fixedBodyRight.scrollTop();
  1829. _this4.$tableBody.scrollTop(top);
  1830. if (_this4.$fixedBody) {
  1831. _this4.$fixedBody.scrollTop(top);
  1832. }
  1833. });
  1834. }
  1835. if (this.options.filterControl) {
  1836. $$6(this.$fixedColumns).off('keyup change').on('keyup change', function (e) {
  1837. var $target = $$6(e.target);
  1838. var value = $target.val();
  1839. var field = $target.parents('th').data('field');
  1840. var $coreTh = _this4.$header.find("th[data-field=\"".concat(field, "\"]"));
  1841. if ($target.is('input')) {
  1842. $coreTh.find('input').val(value);
  1843. } else if ($target.is('select')) {
  1844. var $select = $coreTh.find('select');
  1845. $select.find('option[selected]').removeAttr('selected');
  1846. $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
  1847. }
  1848. _this4.triggerSearch();
  1849. });
  1850. }
  1851. }
  1852. }, {
  1853. key: "renderStickyHeader",
  1854. value: function renderStickyHeader() {
  1855. if (!this.options.stickyHeader) {
  1856. return;
  1857. }
  1858. this.$stickyContainer = this.$container.find('.sticky-header-container');
  1859. _get(_getPrototypeOf(_class.prototype), "renderStickyHeader", this).call(this);
  1860. if (this.needFixedColumns && this.options.fixedNumber) {
  1861. this.$fixedColumns.css('z-index', 101).find('.sticky-header-container').css('right', '').width(this.$fixedColumns.outerWidth());
  1862. }
  1863. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1864. var $stickyHeaderContainerRight = this.$fixedColumnsRight.find('.sticky-header-container');
  1865. this.$fixedColumnsRight.css('z-index', 101);
  1866. $stickyHeaderContainerRight.css('left', '').scrollLeft($stickyHeaderContainerRight.find('.table').outerWidth()).width(this.$fixedColumnsRight.outerWidth());
  1867. }
  1868. }
  1869. }, {
  1870. key: "matchPositionX",
  1871. value: function matchPositionX() {
  1872. if (!this.options.stickyHeader) {
  1873. return;
  1874. }
  1875. this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft());
  1876. }
  1877. }]);
  1878. }($$6.BootstrapTable);
  1879. }));