bootstrap-table-key-events.js 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017
  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 ($$3) { '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 _superPropGet(t, e, r, o) {
  76. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  77. return function (t) {
  78. return p.apply(r, t);
  79. } ;
  80. }
  81. function _toPrimitive(t, r) {
  82. if ("object" != typeof t || !t) return t;
  83. var e = t[Symbol.toPrimitive];
  84. if (void 0 !== e) {
  85. var i = e.call(t, r);
  86. if ("object" != typeof i) return i;
  87. throw new TypeError("@@toPrimitive must return a primitive value.");
  88. }
  89. return (String )(t);
  90. }
  91. function _toPropertyKey(t) {
  92. var i = _toPrimitive(t, "string");
  93. return "symbol" == typeof i ? i : i + "";
  94. }
  95. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  96. var check = function (it) {
  97. return it && it.Math === Math && it;
  98. };
  99. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  100. var globalThis_1 =
  101. // eslint-disable-next-line es/no-global-this -- safe
  102. check(typeof globalThis == 'object' && globalThis) ||
  103. check(typeof window == 'object' && window) ||
  104. // eslint-disable-next-line no-restricted-globals -- safe
  105. check(typeof self == 'object' && self) ||
  106. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  107. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  108. // eslint-disable-next-line no-new-func -- fallback
  109. (function () { return this; })() || Function('return this')();
  110. var objectGetOwnPropertyDescriptor = {};
  111. var fails$e = function (exec) {
  112. try {
  113. return !!exec();
  114. } catch (error) {
  115. return true;
  116. }
  117. };
  118. var fails$d = fails$e;
  119. // Detect IE8's incomplete defineProperty implementation
  120. var descriptors = !fails$d(function () {
  121. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  122. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  123. });
  124. var fails$c = fails$e;
  125. var functionBindNative = !fails$c(function () {
  126. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  127. var test = (function () { /* empty */ }).bind();
  128. // eslint-disable-next-line no-prototype-builtins -- safe
  129. return typeof test != 'function' || test.hasOwnProperty('prototype');
  130. });
  131. var NATIVE_BIND$2 = functionBindNative;
  132. var call$9 = Function.prototype.call;
  133. var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
  134. return call$9.apply(call$9, arguments);
  135. };
  136. var objectPropertyIsEnumerable = {};
  137. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  138. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  139. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  140. // Nashorn ~ JDK8 bug
  141. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  142. // `Object.prototype.propertyIsEnumerable` method implementation
  143. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  144. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  145. var descriptor = getOwnPropertyDescriptor$1(this, V);
  146. return !!descriptor && descriptor.enumerable;
  147. } : $propertyIsEnumerable;
  148. var createPropertyDescriptor$2 = function (bitmap, value) {
  149. return {
  150. enumerable: !(bitmap & 1),
  151. configurable: !(bitmap & 2),
  152. writable: !(bitmap & 4),
  153. value: value
  154. };
  155. };
  156. var NATIVE_BIND$1 = functionBindNative;
  157. var FunctionPrototype$1 = Function.prototype;
  158. var call$8 = FunctionPrototype$1.call;
  159. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$8, call$8);
  160. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  161. return function () {
  162. return call$8.apply(fn, arguments);
  163. };
  164. };
  165. var uncurryThis$e = functionUncurryThis;
  166. var toString$5 = uncurryThis$e({}.toString);
  167. var stringSlice$2 = uncurryThis$e(''.slice);
  168. var classofRaw$2 = function (it) {
  169. return stringSlice$2(toString$5(it), 8, -1);
  170. };
  171. var uncurryThis$d = functionUncurryThis;
  172. var fails$b = fails$e;
  173. var classof$6 = classofRaw$2;
  174. var $Object$3 = Object;
  175. var split = uncurryThis$d(''.split);
  176. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  177. var indexedObject = fails$b(function () {
  178. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  179. // eslint-disable-next-line no-prototype-builtins -- safe
  180. return !$Object$3('z').propertyIsEnumerable(0);
  181. }) ? function (it) {
  182. return classof$6(it) === 'String' ? split(it, '') : $Object$3(it);
  183. } : $Object$3;
  184. // we can't use just `it == null` since of `document.all` special case
  185. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  186. var isNullOrUndefined$3 = function (it) {
  187. return it === null || it === undefined;
  188. };
  189. var isNullOrUndefined$2 = isNullOrUndefined$3;
  190. var $TypeError$6 = TypeError;
  191. // `RequireObjectCoercible` abstract operation
  192. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  193. var requireObjectCoercible$3 = function (it) {
  194. if (isNullOrUndefined$2(it)) throw new $TypeError$6("Can't call method on " + it);
  195. return it;
  196. };
  197. // toObject with fallback for non-array-like ES3 strings
  198. var IndexedObject$2 = indexedObject;
  199. var requireObjectCoercible$2 = requireObjectCoercible$3;
  200. var toIndexedObject$4 = function (it) {
  201. return IndexedObject$2(requireObjectCoercible$2(it));
  202. };
  203. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  204. var documentAll = typeof document == 'object' && document.all;
  205. // `IsCallable` abstract operation
  206. // https://tc39.es/ecma262/#sec-iscallable
  207. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  208. var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  209. return typeof argument == 'function' || argument === documentAll;
  210. } : function (argument) {
  211. return typeof argument == 'function';
  212. };
  213. var isCallable$c = isCallable$d;
  214. var isObject$6 = function (it) {
  215. return typeof it == 'object' ? it !== null : isCallable$c(it);
  216. };
  217. var globalThis$e = globalThis_1;
  218. var isCallable$b = isCallable$d;
  219. var aFunction = function (argument) {
  220. return isCallable$b(argument) ? argument : undefined;
  221. };
  222. var getBuiltIn$4 = function (namespace, method) {
  223. return arguments.length < 2 ? aFunction(globalThis$e[namespace]) : globalThis$e[namespace] && globalThis$e[namespace][method];
  224. };
  225. var uncurryThis$c = functionUncurryThis;
  226. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  227. var globalThis$d = globalThis_1;
  228. var navigator = globalThis$d.navigator;
  229. var userAgent$1 = navigator && navigator.userAgent;
  230. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  231. var globalThis$c = globalThis_1;
  232. var userAgent = environmentUserAgent;
  233. var process = globalThis$c.process;
  234. var Deno = globalThis$c.Deno;
  235. var versions = process && process.versions || Deno && Deno.version;
  236. var v8 = versions && versions.v8;
  237. var match, version;
  238. if (v8) {
  239. match = v8.split('.');
  240. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  241. // but their correct versions are not interesting for us
  242. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  243. }
  244. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  245. // so check `userAgent` even if `.v8` exists, but 0
  246. if (!version && userAgent) {
  247. match = userAgent.match(/Edge\/(\d+)/);
  248. if (!match || match[1] >= 74) {
  249. match = userAgent.match(/Chrome\/(\d+)/);
  250. if (match) version = +match[1];
  251. }
  252. }
  253. var environmentV8Version = version;
  254. /* eslint-disable es/no-symbol -- required for testing */
  255. var V8_VERSION = environmentV8Version;
  256. var fails$a = fails$e;
  257. var globalThis$b = globalThis_1;
  258. var $String$4 = globalThis$b.String;
  259. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  260. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
  261. var symbol = Symbol('symbol detection');
  262. // Chrome 38 Symbol has incorrect toString conversion
  263. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  264. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  265. // of course, fail.
  266. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  267. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  268. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  269. });
  270. /* eslint-disable es/no-symbol -- required for testing */
  271. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  272. var useSymbolAsUid = NATIVE_SYMBOL$1
  273. && !Symbol.sham
  274. && typeof Symbol.iterator == 'symbol';
  275. var getBuiltIn$3 = getBuiltIn$4;
  276. var isCallable$a = isCallable$d;
  277. var isPrototypeOf = objectIsPrototypeOf;
  278. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  279. var $Object$2 = Object;
  280. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  281. return typeof it == 'symbol';
  282. } : function (it) {
  283. var $Symbol = getBuiltIn$3('Symbol');
  284. return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  285. };
  286. var $String$3 = String;
  287. var tryToString$1 = function (argument) {
  288. try {
  289. return $String$3(argument);
  290. } catch (error) {
  291. return 'Object';
  292. }
  293. };
  294. var isCallable$9 = isCallable$d;
  295. var tryToString = tryToString$1;
  296. var $TypeError$5 = TypeError;
  297. // `Assert: IsCallable(argument) is true`
  298. var aCallable$2 = function (argument) {
  299. if (isCallable$9(argument)) return argument;
  300. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  301. };
  302. var aCallable$1 = aCallable$2;
  303. var isNullOrUndefined$1 = isNullOrUndefined$3;
  304. // `GetMethod` abstract operation
  305. // https://tc39.es/ecma262/#sec-getmethod
  306. var getMethod$2 = function (V, P) {
  307. var func = V[P];
  308. return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
  309. };
  310. var call$7 = functionCall;
  311. var isCallable$8 = isCallable$d;
  312. var isObject$5 = isObject$6;
  313. var $TypeError$4 = TypeError;
  314. // `OrdinaryToPrimitive` abstract operation
  315. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  316. var ordinaryToPrimitive$1 = function (input, pref) {
  317. var fn, val;
  318. if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
  319. if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$7(fn, input))) return val;
  320. if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
  321. throw new $TypeError$4("Can't convert object to primitive value");
  322. };
  323. var sharedStore = {exports: {}};
  324. var globalThis$a = globalThis_1;
  325. // eslint-disable-next-line es/no-object-defineproperty -- safe
  326. var defineProperty$3 = Object.defineProperty;
  327. var defineGlobalProperty$3 = function (key, value) {
  328. try {
  329. defineProperty$3(globalThis$a, key, { value: value, configurable: true, writable: true });
  330. } catch (error) {
  331. globalThis$a[key] = value;
  332. } return value;
  333. };
  334. var globalThis$9 = globalThis_1;
  335. var defineGlobalProperty$2 = defineGlobalProperty$3;
  336. var SHARED = '__core-js_shared__';
  337. var store$3 = sharedStore.exports = globalThis$9[SHARED] || defineGlobalProperty$2(SHARED, {});
  338. (store$3.versions || (store$3.versions = [])).push({
  339. version: '3.38.1',
  340. mode: 'global',
  341. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  342. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  343. source: 'https://github.com/zloirock/core-js'
  344. });
  345. var sharedStoreExports = sharedStore.exports;
  346. var store$2 = sharedStoreExports;
  347. var shared$4 = function (key, value) {
  348. return store$2[key] || (store$2[key] = value || {});
  349. };
  350. var requireObjectCoercible$1 = requireObjectCoercible$3;
  351. var $Object$1 = Object;
  352. // `ToObject` abstract operation
  353. // https://tc39.es/ecma262/#sec-toobject
  354. var toObject$3 = function (argument) {
  355. return $Object$1(requireObjectCoercible$1(argument));
  356. };
  357. var uncurryThis$b = functionUncurryThis;
  358. var toObject$2 = toObject$3;
  359. var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
  360. // `HasOwnProperty` abstract operation
  361. // https://tc39.es/ecma262/#sec-hasownproperty
  362. // eslint-disable-next-line es/no-object-hasown -- safe
  363. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  364. return hasOwnProperty(toObject$2(it), key);
  365. };
  366. var uncurryThis$a = functionUncurryThis;
  367. var id = 0;
  368. var postfix = Math.random();
  369. var toString$4 = uncurryThis$a(1.0.toString);
  370. var uid$2 = function (key) {
  371. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  372. };
  373. var globalThis$8 = globalThis_1;
  374. var shared$3 = shared$4;
  375. var hasOwn$6 = hasOwnProperty_1;
  376. var uid$1 = uid$2;
  377. var NATIVE_SYMBOL = symbolConstructorDetection;
  378. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  379. var Symbol$1 = globalThis$8.Symbol;
  380. var WellKnownSymbolsStore = shared$3('wks');
  381. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  382. var wellKnownSymbol$6 = function (name) {
  383. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  384. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  385. ? Symbol$1[name]
  386. : createWellKnownSymbol('Symbol.' + name);
  387. } return WellKnownSymbolsStore[name];
  388. };
  389. var call$6 = functionCall;
  390. var isObject$4 = isObject$6;
  391. var isSymbol$1 = isSymbol$2;
  392. var getMethod$1 = getMethod$2;
  393. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  394. var wellKnownSymbol$5 = wellKnownSymbol$6;
  395. var $TypeError$3 = TypeError;
  396. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  397. // `ToPrimitive` abstract operation
  398. // https://tc39.es/ecma262/#sec-toprimitive
  399. var toPrimitive$1 = function (input, pref) {
  400. if (!isObject$4(input) || isSymbol$1(input)) return input;
  401. var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
  402. var result;
  403. if (exoticToPrim) {
  404. if (pref === undefined) pref = 'default';
  405. result = call$6(exoticToPrim, input, pref);
  406. if (!isObject$4(result) || isSymbol$1(result)) return result;
  407. throw new $TypeError$3("Can't convert object to primitive value");
  408. }
  409. if (pref === undefined) pref = 'number';
  410. return ordinaryToPrimitive(input, pref);
  411. };
  412. var toPrimitive = toPrimitive$1;
  413. var isSymbol = isSymbol$2;
  414. // `ToPropertyKey` abstract operation
  415. // https://tc39.es/ecma262/#sec-topropertykey
  416. var toPropertyKey$2 = function (argument) {
  417. var key = toPrimitive(argument, 'string');
  418. return isSymbol(key) ? key : key + '';
  419. };
  420. var globalThis$7 = globalThis_1;
  421. var isObject$3 = isObject$6;
  422. var document$1 = globalThis$7.document;
  423. // typeof document.createElement is 'object' in old IE
  424. var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
  425. var documentCreateElement$1 = function (it) {
  426. return EXISTS$1 ? document$1.createElement(it) : {};
  427. };
  428. var DESCRIPTORS$8 = descriptors;
  429. var fails$9 = fails$e;
  430. var createElement = documentCreateElement$1;
  431. // Thanks to IE8 for its funny defineProperty
  432. var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
  433. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  434. return Object.defineProperty(createElement('div'), 'a', {
  435. get: function () { return 7; }
  436. }).a !== 7;
  437. });
  438. var DESCRIPTORS$7 = descriptors;
  439. var call$5 = functionCall;
  440. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  441. var createPropertyDescriptor$1 = createPropertyDescriptor$2;
  442. var toIndexedObject$3 = toIndexedObject$4;
  443. var toPropertyKey$1 = toPropertyKey$2;
  444. var hasOwn$5 = hasOwnProperty_1;
  445. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  446. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  447. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  448. // `Object.getOwnPropertyDescriptor` method
  449. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  450. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  451. O = toIndexedObject$3(O);
  452. P = toPropertyKey$1(P);
  453. if (IE8_DOM_DEFINE$1) try {
  454. return $getOwnPropertyDescriptor$1(O, P);
  455. } catch (error) { /* empty */ }
  456. if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
  457. };
  458. var objectDefineProperty = {};
  459. var DESCRIPTORS$6 = descriptors;
  460. var fails$8 = fails$e;
  461. // V8 ~ Chrome 36-
  462. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  463. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$8(function () {
  464. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  465. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  466. value: 42,
  467. writable: false
  468. }).prototype !== 42;
  469. });
  470. var isObject$2 = isObject$6;
  471. var $String$2 = String;
  472. var $TypeError$2 = TypeError;
  473. // `Assert: Type(argument) is Object`
  474. var anObject$7 = function (argument) {
  475. if (isObject$2(argument)) return argument;
  476. throw new $TypeError$2($String$2(argument) + ' is not an object');
  477. };
  478. var DESCRIPTORS$5 = descriptors;
  479. var IE8_DOM_DEFINE = ie8DomDefine;
  480. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  481. var anObject$6 = anObject$7;
  482. var toPropertyKey = toPropertyKey$2;
  483. var $TypeError$1 = TypeError;
  484. // eslint-disable-next-line es/no-object-defineproperty -- safe
  485. var $defineProperty = Object.defineProperty;
  486. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  487. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  488. var ENUMERABLE = 'enumerable';
  489. var CONFIGURABLE$1 = 'configurable';
  490. var WRITABLE = 'writable';
  491. // `Object.defineProperty` method
  492. // https://tc39.es/ecma262/#sec-object.defineproperty
  493. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  494. anObject$6(O);
  495. P = toPropertyKey(P);
  496. anObject$6(Attributes);
  497. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  498. var current = $getOwnPropertyDescriptor(O, P);
  499. if (current && current[WRITABLE]) {
  500. O[P] = Attributes.value;
  501. Attributes = {
  502. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  503. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  504. writable: false
  505. };
  506. }
  507. } return $defineProperty(O, P, Attributes);
  508. } : $defineProperty : function defineProperty(O, P, Attributes) {
  509. anObject$6(O);
  510. P = toPropertyKey(P);
  511. anObject$6(Attributes);
  512. if (IE8_DOM_DEFINE) try {
  513. return $defineProperty(O, P, Attributes);
  514. } catch (error) { /* empty */ }
  515. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  516. if ('value' in Attributes) O[P] = Attributes.value;
  517. return O;
  518. };
  519. var DESCRIPTORS$4 = descriptors;
  520. var definePropertyModule$3 = objectDefineProperty;
  521. var createPropertyDescriptor = createPropertyDescriptor$2;
  522. var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
  523. return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
  524. } : function (object, key, value) {
  525. object[key] = value;
  526. return object;
  527. };
  528. var makeBuiltIn$2 = {exports: {}};
  529. var DESCRIPTORS$3 = descriptors;
  530. var hasOwn$4 = hasOwnProperty_1;
  531. var FunctionPrototype = Function.prototype;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  534. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  535. // additional protection from minified / mangled / dropped function names
  536. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  537. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  538. var functionName = {
  539. EXISTS: EXISTS,
  540. PROPER: PROPER,
  541. CONFIGURABLE: CONFIGURABLE
  542. };
  543. var uncurryThis$9 = functionUncurryThis;
  544. var isCallable$7 = isCallable$d;
  545. var store$1 = sharedStoreExports;
  546. var functionToString = uncurryThis$9(Function.toString);
  547. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  548. if (!isCallable$7(store$1.inspectSource)) {
  549. store$1.inspectSource = function (it) {
  550. return functionToString(it);
  551. };
  552. }
  553. var inspectSource$2 = store$1.inspectSource;
  554. var globalThis$6 = globalThis_1;
  555. var isCallable$6 = isCallable$d;
  556. var WeakMap$1 = globalThis$6.WeakMap;
  557. var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
  558. var shared$2 = shared$4;
  559. var uid = uid$2;
  560. var keys = shared$2('keys');
  561. var sharedKey$2 = function (key) {
  562. return keys[key] || (keys[key] = uid(key));
  563. };
  564. var hiddenKeys$4 = {};
  565. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  566. var globalThis$5 = globalThis_1;
  567. var isObject$1 = isObject$6;
  568. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  569. var hasOwn$3 = hasOwnProperty_1;
  570. var shared$1 = sharedStoreExports;
  571. var sharedKey$1 = sharedKey$2;
  572. var hiddenKeys$3 = hiddenKeys$4;
  573. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  574. var TypeError$1 = globalThis$5.TypeError;
  575. var WeakMap = globalThis$5.WeakMap;
  576. var set, get, has;
  577. var enforce = function (it) {
  578. return has(it) ? get(it) : set(it, {});
  579. };
  580. var getterFor = function (TYPE) {
  581. return function (it) {
  582. var state;
  583. if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
  584. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  585. } return state;
  586. };
  587. };
  588. if (NATIVE_WEAK_MAP || shared$1.state) {
  589. var store = shared$1.state || (shared$1.state = new WeakMap());
  590. /* eslint-disable no-self-assign -- prototype methods protection */
  591. store.get = store.get;
  592. store.has = store.has;
  593. store.set = store.set;
  594. /* eslint-enable no-self-assign -- prototype methods protection */
  595. set = function (it, metadata) {
  596. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  597. metadata.facade = it;
  598. store.set(it, metadata);
  599. return metadata;
  600. };
  601. get = function (it) {
  602. return store.get(it) || {};
  603. };
  604. has = function (it) {
  605. return store.has(it);
  606. };
  607. } else {
  608. var STATE = sharedKey$1('state');
  609. hiddenKeys$3[STATE] = true;
  610. set = function (it, metadata) {
  611. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  612. metadata.facade = it;
  613. createNonEnumerableProperty$2(it, STATE, metadata);
  614. return metadata;
  615. };
  616. get = function (it) {
  617. return hasOwn$3(it, STATE) ? it[STATE] : {};
  618. };
  619. has = function (it) {
  620. return hasOwn$3(it, STATE);
  621. };
  622. }
  623. var internalState = {
  624. set: set,
  625. get: get,
  626. has: has,
  627. enforce: enforce,
  628. getterFor: getterFor
  629. };
  630. var uncurryThis$8 = functionUncurryThis;
  631. var fails$7 = fails$e;
  632. var isCallable$5 = isCallable$d;
  633. var hasOwn$2 = hasOwnProperty_1;
  634. var DESCRIPTORS$2 = descriptors;
  635. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  636. var inspectSource$1 = inspectSource$2;
  637. var InternalStateModule = internalState;
  638. var enforceInternalState = InternalStateModule.enforce;
  639. var getInternalState$1 = InternalStateModule.get;
  640. var $String$1 = String;
  641. // eslint-disable-next-line es/no-object-defineproperty -- safe
  642. var defineProperty$2 = Object.defineProperty;
  643. var stringSlice$1 = uncurryThis$8(''.slice);
  644. var replace$1 = uncurryThis$8(''.replace);
  645. var join = uncurryThis$8([].join);
  646. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
  647. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  648. });
  649. var TEMPLATE = String(String).split('String');
  650. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  651. if (stringSlice$1($String$1(name), 0, 7) === 'Symbol(') {
  652. name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  653. }
  654. if (options && options.getter) name = 'get ' + name;
  655. if (options && options.setter) name = 'set ' + name;
  656. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  657. if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
  658. else value.name = name;
  659. }
  660. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  661. defineProperty$2(value, 'length', { value: options.arity });
  662. }
  663. try {
  664. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  665. if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
  666. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  667. } else if (value.prototype) value.prototype = undefined;
  668. } catch (error) { /* empty */ }
  669. var state = enforceInternalState(value);
  670. if (!hasOwn$2(state, 'source')) {
  671. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  672. } return value;
  673. };
  674. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  675. // eslint-disable-next-line no-extend-native -- required
  676. Function.prototype.toString = makeBuiltIn$1(function toString() {
  677. return isCallable$5(this) && getInternalState$1(this).source || inspectSource$1(this);
  678. }, 'toString');
  679. var makeBuiltInExports = makeBuiltIn$2.exports;
  680. var isCallable$4 = isCallable$d;
  681. var definePropertyModule$2 = objectDefineProperty;
  682. var makeBuiltIn = makeBuiltInExports;
  683. var defineGlobalProperty$1 = defineGlobalProperty$3;
  684. var defineBuiltIn$3 = function (O, key, value, options) {
  685. if (!options) options = {};
  686. var simple = options.enumerable;
  687. var name = options.name !== undefined ? options.name : key;
  688. if (isCallable$4(value)) makeBuiltIn(value, name, options);
  689. if (options.global) {
  690. if (simple) O[key] = value;
  691. else defineGlobalProperty$1(key, value);
  692. } else {
  693. try {
  694. if (!options.unsafe) delete O[key];
  695. else if (O[key]) simple = true;
  696. } catch (error) { /* empty */ }
  697. if (simple) O[key] = value;
  698. else definePropertyModule$2.f(O, key, {
  699. value: value,
  700. enumerable: false,
  701. configurable: !options.nonConfigurable,
  702. writable: !options.nonWritable
  703. });
  704. } return O;
  705. };
  706. var objectGetOwnPropertyNames = {};
  707. var ceil = Math.ceil;
  708. var floor = Math.floor;
  709. // `Math.trunc` method
  710. // https://tc39.es/ecma262/#sec-math.trunc
  711. // eslint-disable-next-line es/no-math-trunc -- safe
  712. var mathTrunc = Math.trunc || function trunc(x) {
  713. var n = +x;
  714. return (n > 0 ? floor : ceil)(n);
  715. };
  716. var trunc = mathTrunc;
  717. // `ToIntegerOrInfinity` abstract operation
  718. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  719. var toIntegerOrInfinity$2 = function (argument) {
  720. var number = +argument;
  721. // eslint-disable-next-line no-self-compare -- NaN check
  722. return number !== number || number === 0 ? 0 : trunc(number);
  723. };
  724. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  725. var max = Math.max;
  726. var min$1 = Math.min;
  727. // Helper for a popular repeating case of the spec:
  728. // Let integer be ? ToInteger(index).
  729. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  730. var toAbsoluteIndex$1 = function (index, length) {
  731. var integer = toIntegerOrInfinity$1(index);
  732. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  733. };
  734. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  735. var min = Math.min;
  736. // `ToLength` abstract operation
  737. // https://tc39.es/ecma262/#sec-tolength
  738. var toLength$1 = function (argument) {
  739. var len = toIntegerOrInfinity(argument);
  740. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  741. };
  742. var toLength = toLength$1;
  743. // `LengthOfArrayLike` abstract operation
  744. // https://tc39.es/ecma262/#sec-lengthofarraylike
  745. var lengthOfArrayLike$2 = function (obj) {
  746. return toLength(obj.length);
  747. };
  748. var toIndexedObject$2 = toIndexedObject$4;
  749. var toAbsoluteIndex = toAbsoluteIndex$1;
  750. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  751. // `Array.prototype.{ indexOf, includes }` methods implementation
  752. var createMethod$1 = function (IS_INCLUDES) {
  753. return function ($this, el, fromIndex) {
  754. var O = toIndexedObject$2($this);
  755. var length = lengthOfArrayLike$1(O);
  756. if (length === 0) return !IS_INCLUDES && -1;
  757. var index = toAbsoluteIndex(fromIndex, length);
  758. var value;
  759. // Array#includes uses SameValueZero equality algorithm
  760. // eslint-disable-next-line no-self-compare -- NaN check
  761. if (IS_INCLUDES && el !== el) while (length > index) {
  762. value = O[index++];
  763. // eslint-disable-next-line no-self-compare -- NaN check
  764. if (value !== value) return true;
  765. // Array#indexOf ignores holes, Array#includes - not
  766. } else for (;length > index; index++) {
  767. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  768. } return !IS_INCLUDES && -1;
  769. };
  770. };
  771. var arrayIncludes = {
  772. // `Array.prototype.includes` method
  773. // https://tc39.es/ecma262/#sec-array.prototype.includes
  774. includes: createMethod$1(true),
  775. // `Array.prototype.indexOf` method
  776. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  777. indexOf: createMethod$1(false)
  778. };
  779. var uncurryThis$7 = functionUncurryThis;
  780. var hasOwn$1 = hasOwnProperty_1;
  781. var toIndexedObject$1 = toIndexedObject$4;
  782. var indexOf$1 = arrayIncludes.indexOf;
  783. var hiddenKeys$2 = hiddenKeys$4;
  784. var push$1 = uncurryThis$7([].push);
  785. var objectKeysInternal = function (object, names) {
  786. var O = toIndexedObject$1(object);
  787. var i = 0;
  788. var result = [];
  789. var key;
  790. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  791. // Don't enum bug & hidden keys
  792. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  793. ~indexOf$1(result, key) || push$1(result, key);
  794. }
  795. return result;
  796. };
  797. // IE8- don't enum bug keys
  798. var enumBugKeys$3 = [
  799. 'constructor',
  800. 'hasOwnProperty',
  801. 'isPrototypeOf',
  802. 'propertyIsEnumerable',
  803. 'toLocaleString',
  804. 'toString',
  805. 'valueOf'
  806. ];
  807. var internalObjectKeys$1 = objectKeysInternal;
  808. var enumBugKeys$2 = enumBugKeys$3;
  809. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  810. // `Object.getOwnPropertyNames` method
  811. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  812. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  813. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  814. return internalObjectKeys$1(O, hiddenKeys$1);
  815. };
  816. var objectGetOwnPropertySymbols = {};
  817. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  818. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  819. var getBuiltIn$2 = getBuiltIn$4;
  820. var uncurryThis$6 = functionUncurryThis;
  821. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  822. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  823. var anObject$5 = anObject$7;
  824. var concat$1 = uncurryThis$6([].concat);
  825. // all object keys, includes non-enumerable and symbols
  826. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  827. var keys = getOwnPropertyNamesModule.f(anObject$5(it));
  828. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  829. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  830. };
  831. var hasOwn = hasOwnProperty_1;
  832. var ownKeys = ownKeys$1;
  833. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  834. var definePropertyModule$1 = objectDefineProperty;
  835. var copyConstructorProperties$1 = function (target, source, exceptions) {
  836. var keys = ownKeys(source);
  837. var defineProperty = definePropertyModule$1.f;
  838. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  839. for (var i = 0; i < keys.length; i++) {
  840. var key = keys[i];
  841. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  842. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  843. }
  844. }
  845. };
  846. var fails$6 = fails$e;
  847. var isCallable$3 = isCallable$d;
  848. var replacement = /#|\.prototype\./;
  849. var isForced$1 = function (feature, detection) {
  850. var value = data[normalize(feature)];
  851. return value === POLYFILL ? true
  852. : value === NATIVE ? false
  853. : isCallable$3(detection) ? fails$6(detection)
  854. : !!detection;
  855. };
  856. var normalize = isForced$1.normalize = function (string) {
  857. return String(string).replace(replacement, '.').toLowerCase();
  858. };
  859. var data = isForced$1.data = {};
  860. var NATIVE = isForced$1.NATIVE = 'N';
  861. var POLYFILL = isForced$1.POLYFILL = 'P';
  862. var isForced_1 = isForced$1;
  863. var globalThis$4 = globalThis_1;
  864. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  865. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  866. var defineBuiltIn$2 = defineBuiltIn$3;
  867. var defineGlobalProperty = defineGlobalProperty$3;
  868. var copyConstructorProperties = copyConstructorProperties$1;
  869. var isForced = isForced_1;
  870. /*
  871. options.target - name of the target object
  872. options.global - target is the global object
  873. options.stat - export as static methods of target
  874. options.proto - export as prototype methods of target
  875. options.real - real prototype method for the `pure` version
  876. options.forced - export even if the native feature is available
  877. options.bind - bind methods to the target, required for the `pure` version
  878. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  879. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  880. options.sham - add a flag to not completely full polyfills
  881. options.enumerable - export as enumerable property
  882. options.dontCallGetSet - prevent calling a getter on target
  883. options.name - the .name of the function if it does not match the key
  884. */
  885. var _export = function (options, source) {
  886. var TARGET = options.target;
  887. var GLOBAL = options.global;
  888. var STATIC = options.stat;
  889. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  890. if (GLOBAL) {
  891. target = globalThis$4;
  892. } else if (STATIC) {
  893. target = globalThis$4[TARGET] || defineGlobalProperty(TARGET, {});
  894. } else {
  895. target = globalThis$4[TARGET] && globalThis$4[TARGET].prototype;
  896. }
  897. if (target) for (key in source) {
  898. sourceProperty = source[key];
  899. if (options.dontCallGetSet) {
  900. descriptor = getOwnPropertyDescriptor(target, key);
  901. targetProperty = descriptor && descriptor.value;
  902. } else targetProperty = target[key];
  903. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  904. // contained in target
  905. if (!FORCED && targetProperty !== undefined) {
  906. if (typeof sourceProperty == typeof targetProperty) continue;
  907. copyConstructorProperties(sourceProperty, targetProperty);
  908. }
  909. // add a flag to not completely full polyfills
  910. if (options.sham || (targetProperty && targetProperty.sham)) {
  911. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  912. }
  913. defineBuiltIn$2(target, key, sourceProperty, options);
  914. }
  915. };
  916. var classofRaw$1 = classofRaw$2;
  917. var uncurryThis$5 = functionUncurryThis;
  918. var functionUncurryThisClause = function (fn) {
  919. // Nashorn bug:
  920. // https://github.com/zloirock/core-js/issues/1128
  921. // https://github.com/zloirock/core-js/issues/1130
  922. if (classofRaw$1(fn) === 'Function') return uncurryThis$5(fn);
  923. };
  924. var uncurryThis$4 = functionUncurryThisClause;
  925. var aCallable = aCallable$2;
  926. var NATIVE_BIND = functionBindNative;
  927. var bind$1 = uncurryThis$4(uncurryThis$4.bind);
  928. // optional / simple context binding
  929. var functionBindContext = function (fn, that) {
  930. aCallable(fn);
  931. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  932. return fn.apply(that, arguments);
  933. };
  934. };
  935. var classof$5 = classofRaw$2;
  936. // `IsArray` abstract operation
  937. // https://tc39.es/ecma262/#sec-isarray
  938. // eslint-disable-next-line es/no-array-isarray -- safe
  939. var isArray$1 = Array.isArray || function isArray(argument) {
  940. return classof$5(argument) === 'Array';
  941. };
  942. var wellKnownSymbol$4 = wellKnownSymbol$6;
  943. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  944. var test = {};
  945. test[TO_STRING_TAG$1] = 'z';
  946. var toStringTagSupport = String(test) === '[object z]';
  947. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  948. var isCallable$2 = isCallable$d;
  949. var classofRaw = classofRaw$2;
  950. var wellKnownSymbol$3 = wellKnownSymbol$6;
  951. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  952. var $Object = Object;
  953. // ES3 wrong here
  954. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  955. // fallback for IE11 Script Access Denied error
  956. var tryGet = function (it, key) {
  957. try {
  958. return it[key];
  959. } catch (error) { /* empty */ }
  960. };
  961. // getting tag from ES6+ `Object.prototype.toString`
  962. var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  963. var O, tag, result;
  964. return it === undefined ? 'Undefined' : it === null ? 'Null'
  965. // @@toStringTag case
  966. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  967. // builtinTag case
  968. : CORRECT_ARGUMENTS ? classofRaw(O)
  969. // ES3 arguments fallback
  970. : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
  971. };
  972. var uncurryThis$3 = functionUncurryThis;
  973. var fails$5 = fails$e;
  974. var isCallable$1 = isCallable$d;
  975. var classof$3 = classof$4;
  976. var getBuiltIn$1 = getBuiltIn$4;
  977. var inspectSource = inspectSource$2;
  978. var noop = function () { /* empty */ };
  979. var construct = getBuiltIn$1('Reflect', 'construct');
  980. var constructorRegExp = /^\s*(?:class|function)\b/;
  981. var exec$1 = uncurryThis$3(constructorRegExp.exec);
  982. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  983. var isConstructorModern = function isConstructor(argument) {
  984. if (!isCallable$1(argument)) return false;
  985. try {
  986. construct(noop, [], argument);
  987. return true;
  988. } catch (error) {
  989. return false;
  990. }
  991. };
  992. var isConstructorLegacy = function isConstructor(argument) {
  993. if (!isCallable$1(argument)) return false;
  994. switch (classof$3(argument)) {
  995. case 'AsyncFunction':
  996. case 'GeneratorFunction':
  997. case 'AsyncGeneratorFunction': return false;
  998. }
  999. try {
  1000. // we can't check .prototype since constructors produced by .bind haven't it
  1001. // `Function#toString` throws on some built-it function in some legacy engines
  1002. // (for example, `DOMQuad` and similar in FF41-)
  1003. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1004. } catch (error) {
  1005. return true;
  1006. }
  1007. };
  1008. isConstructorLegacy.sham = true;
  1009. // `IsConstructor` abstract operation
  1010. // https://tc39.es/ecma262/#sec-isconstructor
  1011. var isConstructor$1 = !construct || fails$5(function () {
  1012. var called;
  1013. return isConstructorModern(isConstructorModern.call)
  1014. || !isConstructorModern(Object)
  1015. || !isConstructorModern(function () { called = true; })
  1016. || called;
  1017. }) ? isConstructorLegacy : isConstructorModern;
  1018. var isArray = isArray$1;
  1019. var isConstructor = isConstructor$1;
  1020. var isObject = isObject$6;
  1021. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1022. var SPECIES$1 = wellKnownSymbol$2('species');
  1023. var $Array = Array;
  1024. // a part of `ArraySpeciesCreate` abstract operation
  1025. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1026. var arraySpeciesConstructor$1 = function (originalArray) {
  1027. var C;
  1028. if (isArray(originalArray)) {
  1029. C = originalArray.constructor;
  1030. // cross-realm fallback
  1031. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1032. else if (isObject(C)) {
  1033. C = C[SPECIES$1];
  1034. if (C === null) C = undefined;
  1035. }
  1036. } return C === undefined ? $Array : C;
  1037. };
  1038. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1039. // `ArraySpeciesCreate` abstract operation
  1040. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1041. var arraySpeciesCreate$1 = function (originalArray, length) {
  1042. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1043. };
  1044. var bind = functionBindContext;
  1045. var uncurryThis$2 = functionUncurryThis;
  1046. var IndexedObject$1 = indexedObject;
  1047. var toObject$1 = toObject$3;
  1048. var lengthOfArrayLike = lengthOfArrayLike$2;
  1049. var arraySpeciesCreate = arraySpeciesCreate$1;
  1050. var push = uncurryThis$2([].push);
  1051. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1052. var createMethod = function (TYPE) {
  1053. var IS_MAP = TYPE === 1;
  1054. var IS_FILTER = TYPE === 2;
  1055. var IS_SOME = TYPE === 3;
  1056. var IS_EVERY = TYPE === 4;
  1057. var IS_FIND_INDEX = TYPE === 6;
  1058. var IS_FILTER_REJECT = TYPE === 7;
  1059. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1060. return function ($this, callbackfn, that, specificCreate) {
  1061. var O = toObject$1($this);
  1062. var self = IndexedObject$1(O);
  1063. var length = lengthOfArrayLike(self);
  1064. var boundFunction = bind(callbackfn, that);
  1065. var index = 0;
  1066. var create = specificCreate || arraySpeciesCreate;
  1067. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1068. var value, result;
  1069. for (;length > index; index++) if (NO_HOLES || index in self) {
  1070. value = self[index];
  1071. result = boundFunction(value, index, O);
  1072. if (TYPE) {
  1073. if (IS_MAP) target[index] = result; // map
  1074. else if (result) switch (TYPE) {
  1075. case 3: return true; // some
  1076. case 5: return value; // find
  1077. case 6: return index; // findIndex
  1078. case 2: push(target, value); // filter
  1079. } else switch (TYPE) {
  1080. case 4: return false; // every
  1081. case 7: push(target, value); // filterReject
  1082. }
  1083. }
  1084. }
  1085. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1086. };
  1087. };
  1088. var arrayIteration = {
  1089. // `Array.prototype.forEach` method
  1090. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1091. forEach: createMethod(0),
  1092. // `Array.prototype.map` method
  1093. // https://tc39.es/ecma262/#sec-array.prototype.map
  1094. map: createMethod(1),
  1095. // `Array.prototype.filter` method
  1096. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1097. filter: createMethod(2),
  1098. // `Array.prototype.some` method
  1099. // https://tc39.es/ecma262/#sec-array.prototype.some
  1100. some: createMethod(3),
  1101. // `Array.prototype.every` method
  1102. // https://tc39.es/ecma262/#sec-array.prototype.every
  1103. every: createMethod(4),
  1104. // `Array.prototype.find` method
  1105. // https://tc39.es/ecma262/#sec-array.prototype.find
  1106. find: createMethod(5),
  1107. // `Array.prototype.findIndex` method
  1108. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1109. findIndex: createMethod(6),
  1110. // `Array.prototype.filterReject` method
  1111. // https://github.com/tc39/proposal-array-filtering
  1112. filterReject: createMethod(7)
  1113. };
  1114. var objectDefineProperties = {};
  1115. var internalObjectKeys = objectKeysInternal;
  1116. var enumBugKeys$1 = enumBugKeys$3;
  1117. // `Object.keys` method
  1118. // https://tc39.es/ecma262/#sec-object.keys
  1119. // eslint-disable-next-line es/no-object-keys -- safe
  1120. var objectKeys$2 = Object.keys || function keys(O) {
  1121. return internalObjectKeys(O, enumBugKeys$1);
  1122. };
  1123. var DESCRIPTORS$1 = descriptors;
  1124. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1125. var definePropertyModule = objectDefineProperty;
  1126. var anObject$4 = anObject$7;
  1127. var toIndexedObject = toIndexedObject$4;
  1128. var objectKeys$1 = objectKeys$2;
  1129. // `Object.defineProperties` method
  1130. // https://tc39.es/ecma262/#sec-object.defineproperties
  1131. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1132. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1133. anObject$4(O);
  1134. var props = toIndexedObject(Properties);
  1135. var keys = objectKeys$1(Properties);
  1136. var length = keys.length;
  1137. var index = 0;
  1138. var key;
  1139. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1140. return O;
  1141. };
  1142. var getBuiltIn = getBuiltIn$4;
  1143. var html$1 = getBuiltIn('document', 'documentElement');
  1144. /* global ActiveXObject -- old IE, WSH */
  1145. var anObject$3 = anObject$7;
  1146. var definePropertiesModule = objectDefineProperties;
  1147. var enumBugKeys = enumBugKeys$3;
  1148. var hiddenKeys = hiddenKeys$4;
  1149. var html = html$1;
  1150. var documentCreateElement = documentCreateElement$1;
  1151. var sharedKey = sharedKey$2;
  1152. var GT = '>';
  1153. var LT = '<';
  1154. var PROTOTYPE = 'prototype';
  1155. var SCRIPT = 'script';
  1156. var IE_PROTO = sharedKey('IE_PROTO');
  1157. var EmptyConstructor = function () { /* empty */ };
  1158. var scriptTag = function (content) {
  1159. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1160. };
  1161. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1162. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1163. activeXDocument.write(scriptTag(''));
  1164. activeXDocument.close();
  1165. var temp = activeXDocument.parentWindow.Object;
  1166. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1167. activeXDocument = null;
  1168. return temp;
  1169. };
  1170. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1171. var NullProtoObjectViaIFrame = function () {
  1172. // Thrash, waste and sodomy: IE GC bug
  1173. var iframe = documentCreateElement('iframe');
  1174. var JS = 'java' + SCRIPT + ':';
  1175. var iframeDocument;
  1176. iframe.style.display = 'none';
  1177. html.appendChild(iframe);
  1178. // https://github.com/zloirock/core-js/issues/475
  1179. iframe.src = String(JS);
  1180. iframeDocument = iframe.contentWindow.document;
  1181. iframeDocument.open();
  1182. iframeDocument.write(scriptTag('document.F=Object'));
  1183. iframeDocument.close();
  1184. return iframeDocument.F;
  1185. };
  1186. // Check for document.domain and active x support
  1187. // No need to use active x approach when document.domain is not set
  1188. // see https://github.com/es-shims/es5-shim/issues/150
  1189. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1190. // avoid IE GC bug
  1191. var activeXDocument;
  1192. var NullProtoObject = function () {
  1193. try {
  1194. activeXDocument = new ActiveXObject('htmlfile');
  1195. } catch (error) { /* ignore */ }
  1196. NullProtoObject = typeof document != 'undefined'
  1197. ? document.domain && activeXDocument
  1198. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1199. : NullProtoObjectViaIFrame()
  1200. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1201. var length = enumBugKeys.length;
  1202. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1203. return NullProtoObject();
  1204. };
  1205. hiddenKeys[IE_PROTO] = true;
  1206. // `Object.create` method
  1207. // https://tc39.es/ecma262/#sec-object.create
  1208. // eslint-disable-next-line es/no-object-create -- safe
  1209. var objectCreate = Object.create || function create(O, Properties) {
  1210. var result;
  1211. if (O !== null) {
  1212. EmptyConstructor[PROTOTYPE] = anObject$3(O);
  1213. result = new EmptyConstructor();
  1214. EmptyConstructor[PROTOTYPE] = null;
  1215. // add "__proto__" for Object.getPrototypeOf polyfill
  1216. result[IE_PROTO] = O;
  1217. } else result = NullProtoObject();
  1218. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1219. };
  1220. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1221. var create$1 = objectCreate;
  1222. var defineProperty$1 = objectDefineProperty.f;
  1223. var UNSCOPABLES = wellKnownSymbol$1('unscopables');
  1224. var ArrayPrototype = Array.prototype;
  1225. // Array.prototype[@@unscopables]
  1226. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1227. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1228. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1229. configurable: true,
  1230. value: create$1(null)
  1231. });
  1232. }
  1233. // add a key to Array.prototype[@@unscopables]
  1234. var addToUnscopables$1 = function (key) {
  1235. ArrayPrototype[UNSCOPABLES][key] = true;
  1236. };
  1237. var $$2 = _export;
  1238. var $find = arrayIteration.find;
  1239. var addToUnscopables = addToUnscopables$1;
  1240. var FIND = 'find';
  1241. var SKIPS_HOLES = true;
  1242. // Shouldn't skip holes
  1243. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1244. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1245. // `Array.prototype.find` method
  1246. // https://tc39.es/ecma262/#sec-array.prototype.find
  1247. $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1248. find: function find(callbackfn /* , that = undefined */) {
  1249. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1250. }
  1251. });
  1252. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1253. addToUnscopables(FIND);
  1254. var DESCRIPTORS = descriptors;
  1255. var uncurryThis$1 = functionUncurryThis;
  1256. var call$4 = functionCall;
  1257. var fails$4 = fails$e;
  1258. var objectKeys = objectKeys$2;
  1259. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1260. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1261. var toObject = toObject$3;
  1262. var IndexedObject = indexedObject;
  1263. // eslint-disable-next-line es/no-object-assign -- safe
  1264. var $assign = Object.assign;
  1265. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1266. var defineProperty = Object.defineProperty;
  1267. var concat = uncurryThis$1([].concat);
  1268. // `Object.assign` method
  1269. // https://tc39.es/ecma262/#sec-object.assign
  1270. var objectAssign = !$assign || fails$4(function () {
  1271. // should have correct order of operations (Edge bug)
  1272. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1273. enumerable: true,
  1274. get: function () {
  1275. defineProperty(this, 'b', {
  1276. value: 3,
  1277. enumerable: false
  1278. });
  1279. }
  1280. }), { b: 2 })).b !== 1) return true;
  1281. // should work with symbols and should have deterministic property order (V8 bug)
  1282. var A = {};
  1283. var B = {};
  1284. // eslint-disable-next-line es/no-symbol -- safe
  1285. var symbol = Symbol('assign detection');
  1286. var alphabet = 'abcdefghijklmnopqrst';
  1287. A[symbol] = 7;
  1288. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1289. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1290. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1291. var T = toObject(target);
  1292. var argumentsLength = arguments.length;
  1293. var index = 1;
  1294. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1295. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1296. while (argumentsLength > index) {
  1297. var S = IndexedObject(arguments[index++]);
  1298. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1299. var length = keys.length;
  1300. var j = 0;
  1301. var key;
  1302. while (length > j) {
  1303. key = keys[j++];
  1304. if (!DESCRIPTORS || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
  1305. }
  1306. } return T;
  1307. } : $assign;
  1308. var $$1 = _export;
  1309. var assign = objectAssign;
  1310. // `Object.assign` method
  1311. // https://tc39.es/ecma262/#sec-object.assign
  1312. // eslint-disable-next-line es/no-object-assign -- required for testing
  1313. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1314. assign: assign
  1315. });
  1316. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1317. var classof$2 = classof$4;
  1318. // `Object.prototype.toString` method implementation
  1319. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1320. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1321. return '[object ' + classof$2(this) + ']';
  1322. };
  1323. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1324. var defineBuiltIn$1 = defineBuiltIn$3;
  1325. var toString$3 = objectToString;
  1326. // `Object.prototype.toString` method
  1327. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1328. if (!TO_STRING_TAG_SUPPORT) {
  1329. defineBuiltIn$1(Object.prototype, 'toString', toString$3, { unsafe: true });
  1330. }
  1331. var classof$1 = classof$4;
  1332. var $String = String;
  1333. var toString$2 = function (argument) {
  1334. if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1335. return $String(argument);
  1336. };
  1337. var anObject$2 = anObject$7;
  1338. // `RegExp.prototype.flags` getter implementation
  1339. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1340. var regexpFlags$1 = function () {
  1341. var that = anObject$2(this);
  1342. var result = '';
  1343. if (that.hasIndices) result += 'd';
  1344. if (that.global) result += 'g';
  1345. if (that.ignoreCase) result += 'i';
  1346. if (that.multiline) result += 'm';
  1347. if (that.dotAll) result += 's';
  1348. if (that.unicode) result += 'u';
  1349. if (that.unicodeSets) result += 'v';
  1350. if (that.sticky) result += 'y';
  1351. return result;
  1352. };
  1353. var fails$3 = fails$e;
  1354. var globalThis$3 = globalThis_1;
  1355. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1356. var $RegExp$2 = globalThis$3.RegExp;
  1357. var UNSUPPORTED_Y$1 = fails$3(function () {
  1358. var re = $RegExp$2('a', 'y');
  1359. re.lastIndex = 2;
  1360. return re.exec('abcd') !== null;
  1361. });
  1362. // UC Browser bug
  1363. // https://github.com/zloirock/core-js/issues/1008
  1364. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$3(function () {
  1365. return !$RegExp$2('a', 'y').sticky;
  1366. });
  1367. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$3(function () {
  1368. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1369. var re = $RegExp$2('^r', 'gy');
  1370. re.lastIndex = 2;
  1371. return re.exec('str') !== null;
  1372. });
  1373. var regexpStickyHelpers = {
  1374. BROKEN_CARET: BROKEN_CARET,
  1375. MISSED_STICKY: MISSED_STICKY,
  1376. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1377. };
  1378. var fails$2 = fails$e;
  1379. var globalThis$2 = globalThis_1;
  1380. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1381. var $RegExp$1 = globalThis$2.RegExp;
  1382. var regexpUnsupportedDotAll = fails$2(function () {
  1383. var re = $RegExp$1('.', 's');
  1384. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1385. });
  1386. var fails$1 = fails$e;
  1387. var globalThis$1 = globalThis_1;
  1388. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1389. var $RegExp = globalThis$1.RegExp;
  1390. var regexpUnsupportedNcg = fails$1(function () {
  1391. var re = $RegExp('(?<a>b)', 'g');
  1392. return re.exec('b').groups.a !== 'b' ||
  1393. 'b'.replace(re, '$<a>c') !== 'bc';
  1394. });
  1395. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1396. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1397. var call$3 = functionCall;
  1398. var uncurryThis = functionUncurryThis;
  1399. var toString$1 = toString$2;
  1400. var regexpFlags = regexpFlags$1;
  1401. var stickyHelpers = regexpStickyHelpers;
  1402. var shared = shared$4;
  1403. var create = objectCreate;
  1404. var getInternalState = internalState.get;
  1405. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1406. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1407. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1408. var nativeExec = RegExp.prototype.exec;
  1409. var patchedExec = nativeExec;
  1410. var charAt = uncurryThis(''.charAt);
  1411. var indexOf = uncurryThis(''.indexOf);
  1412. var replace = uncurryThis(''.replace);
  1413. var stringSlice = uncurryThis(''.slice);
  1414. var UPDATES_LAST_INDEX_WRONG = (function () {
  1415. var re1 = /a/;
  1416. var re2 = /b*/g;
  1417. call$3(nativeExec, re1, 'a');
  1418. call$3(nativeExec, re2, 'a');
  1419. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1420. })();
  1421. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1422. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1423. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1424. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1425. if (PATCH) {
  1426. patchedExec = function exec(string) {
  1427. var re = this;
  1428. var state = getInternalState(re);
  1429. var str = toString$1(string);
  1430. var raw = state.raw;
  1431. var result, reCopy, lastIndex, match, i, object, group;
  1432. if (raw) {
  1433. raw.lastIndex = re.lastIndex;
  1434. result = call$3(patchedExec, raw, str);
  1435. re.lastIndex = raw.lastIndex;
  1436. return result;
  1437. }
  1438. var groups = state.groups;
  1439. var sticky = UNSUPPORTED_Y && re.sticky;
  1440. var flags = call$3(regexpFlags, re);
  1441. var source = re.source;
  1442. var charsAdded = 0;
  1443. var strCopy = str;
  1444. if (sticky) {
  1445. flags = replace(flags, 'y', '');
  1446. if (indexOf(flags, 'g') === -1) {
  1447. flags += 'g';
  1448. }
  1449. strCopy = stringSlice(str, re.lastIndex);
  1450. // Support anchored sticky behavior.
  1451. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  1452. source = '(?: ' + source + ')';
  1453. strCopy = ' ' + strCopy;
  1454. charsAdded++;
  1455. }
  1456. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1457. // simulate the 'y' flag.
  1458. reCopy = new RegExp('^(?:' + source + ')', flags);
  1459. }
  1460. if (NPCG_INCLUDED) {
  1461. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1462. }
  1463. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1464. match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
  1465. if (sticky) {
  1466. if (match) {
  1467. match.input = stringSlice(match.input, charsAdded);
  1468. match[0] = stringSlice(match[0], charsAdded);
  1469. match.index = re.lastIndex;
  1470. re.lastIndex += match[0].length;
  1471. } else re.lastIndex = 0;
  1472. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1473. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1474. }
  1475. if (NPCG_INCLUDED && match && match.length > 1) {
  1476. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1477. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1478. call$3(nativeReplace, match[0], reCopy, function () {
  1479. for (i = 1; i < arguments.length - 2; i++) {
  1480. if (arguments[i] === undefined) match[i] = undefined;
  1481. }
  1482. });
  1483. }
  1484. if (match && groups) {
  1485. match.groups = object = create(null);
  1486. for (i = 0; i < groups.length; i++) {
  1487. group = groups[i];
  1488. object[group[0]] = match[group[1]];
  1489. }
  1490. }
  1491. return match;
  1492. };
  1493. }
  1494. var regexpExec$2 = patchedExec;
  1495. var $ = _export;
  1496. var exec = regexpExec$2;
  1497. // `RegExp.prototype.exec` method
  1498. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1499. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  1500. exec: exec
  1501. });
  1502. // TODO: Remove from `core-js@4` since it's moved to entry points
  1503. var call$2 = functionCall;
  1504. var defineBuiltIn = defineBuiltIn$3;
  1505. var regexpExec$1 = regexpExec$2;
  1506. var fails = fails$e;
  1507. var wellKnownSymbol = wellKnownSymbol$6;
  1508. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1509. var SPECIES = wellKnownSymbol('species');
  1510. var RegExpPrototype = RegExp.prototype;
  1511. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1512. var SYMBOL = wellKnownSymbol(KEY);
  1513. var DELEGATES_TO_SYMBOL = !fails(function () {
  1514. // String methods call symbol-named RegExp methods
  1515. var O = {};
  1516. O[SYMBOL] = function () { return 7; };
  1517. return ''[KEY](O) !== 7;
  1518. });
  1519. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  1520. // Symbol-named RegExp methods call .exec
  1521. var execCalled = false;
  1522. var re = /a/;
  1523. if (KEY === 'split') {
  1524. // We can't use real regex here since it causes deoptimization
  1525. // and serious performance degradation in V8
  1526. // https://github.com/zloirock/core-js/issues/306
  1527. re = {};
  1528. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1529. // a new one. We need to return the patched regex when creating the new one.
  1530. re.constructor = {};
  1531. re.constructor[SPECIES] = function () { return re; };
  1532. re.flags = '';
  1533. re[SYMBOL] = /./[SYMBOL];
  1534. }
  1535. re.exec = function () {
  1536. execCalled = true;
  1537. return null;
  1538. };
  1539. re[SYMBOL]('');
  1540. return !execCalled;
  1541. });
  1542. if (
  1543. !DELEGATES_TO_SYMBOL ||
  1544. !DELEGATES_TO_EXEC ||
  1545. FORCED
  1546. ) {
  1547. var nativeRegExpMethod = /./[SYMBOL];
  1548. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1549. var $exec = regexp.exec;
  1550. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  1551. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1552. // The native String method already delegates to @@method (this
  1553. // polyfilled function), leasing to infinite recursion.
  1554. // We avoid it by directly calling the native @@method method.
  1555. return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
  1556. }
  1557. return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
  1558. }
  1559. return { done: false };
  1560. });
  1561. defineBuiltIn(String.prototype, KEY, methods[0]);
  1562. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  1563. }
  1564. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1565. };
  1566. // `SameValue` abstract operation
  1567. // https://tc39.es/ecma262/#sec-samevalue
  1568. // eslint-disable-next-line es/no-object-is -- safe
  1569. var sameValue$1 = Object.is || function is(x, y) {
  1570. // eslint-disable-next-line no-self-compare -- NaN check
  1571. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  1572. };
  1573. var call$1 = functionCall;
  1574. var anObject$1 = anObject$7;
  1575. var isCallable = isCallable$d;
  1576. var classof = classofRaw$2;
  1577. var regexpExec = regexpExec$2;
  1578. var $TypeError = TypeError;
  1579. // `RegExpExec` abstract operation
  1580. // https://tc39.es/ecma262/#sec-regexpexec
  1581. var regexpExecAbstract = function (R, S) {
  1582. var exec = R.exec;
  1583. if (isCallable(exec)) {
  1584. var result = call$1(exec, R, S);
  1585. if (result !== null) anObject$1(result);
  1586. return result;
  1587. }
  1588. if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
  1589. throw new $TypeError('RegExp#exec called on incompatible receiver');
  1590. };
  1591. var call = functionCall;
  1592. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  1593. var anObject = anObject$7;
  1594. var isNullOrUndefined = isNullOrUndefined$3;
  1595. var requireObjectCoercible = requireObjectCoercible$3;
  1596. var sameValue = sameValue$1;
  1597. var toString = toString$2;
  1598. var getMethod = getMethod$2;
  1599. var regExpExec = regexpExecAbstract;
  1600. // @@search logic
  1601. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  1602. return [
  1603. // `String.prototype.search` method
  1604. // https://tc39.es/ecma262/#sec-string.prototype.search
  1605. function search(regexp) {
  1606. var O = requireObjectCoercible(this);
  1607. var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
  1608. return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  1609. },
  1610. // `RegExp.prototype[@@search]` method
  1611. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  1612. function (string) {
  1613. var rx = anObject(this);
  1614. var S = toString(string);
  1615. var res = maybeCallNative(nativeSearch, rx, S);
  1616. if (res.done) return res.value;
  1617. var previousLastIndex = rx.lastIndex;
  1618. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  1619. var result = regExpExec(rx, S);
  1620. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  1621. return result === null ? -1 : result.index;
  1622. }
  1623. ];
  1624. });
  1625. /**
  1626. * @author: Dennis Hernández
  1627. * @update zhixin wen <wenzhixin2010@gmail.com>
  1628. */
  1629. var Utils = $$3.fn.bootstrapTable.utils;
  1630. Object.assign($$3.fn.bootstrapTable.defaults, {
  1631. keyEvents: false
  1632. });
  1633. $$3.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1634. function _class() {
  1635. _classCallCheck(this, _class);
  1636. return _callSuper(this, _class, arguments);
  1637. }
  1638. _inherits(_class, _$$BootstrapTable);
  1639. return _createClass(_class, [{
  1640. key: "init",
  1641. value: function init() {
  1642. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1643. args[_key] = arguments[_key];
  1644. }
  1645. _superPropGet(_class, "init", this)(args);
  1646. if (this.options.keyEvents) {
  1647. this.initKeyEvents();
  1648. }
  1649. }
  1650. }, {
  1651. key: "initKeyEvents",
  1652. value: function initKeyEvents() {
  1653. var _this = this;
  1654. $$3(document).off('keydown').on('keydown', function (e) {
  1655. var $search = Utils.getSearchInput(_this);
  1656. var $refresh = _this.$toolbar.find('button[name="refresh"]');
  1657. var $toggle = _this.$toolbar.find('button[name="toggle"]');
  1658. var $paginationSwitch = _this.$toolbar.find('button[name="paginationSwitch"]');
  1659. if (document.activeElement === $search.get(0) || !$$3.contains(document.activeElement, _this.$toolbar.get(0))) {
  1660. return true;
  1661. }
  1662. switch (e.keyCode) {
  1663. case 83:
  1664. // s
  1665. if (!_this.options.search) {
  1666. return;
  1667. }
  1668. $search.focus();
  1669. return false;
  1670. case 82:
  1671. // r
  1672. if (!_this.options.showRefresh) {
  1673. return;
  1674. }
  1675. $refresh.click();
  1676. return false;
  1677. case 84:
  1678. // t
  1679. if (!_this.options.showToggle) {
  1680. return;
  1681. }
  1682. $toggle.click();
  1683. return false;
  1684. case 80:
  1685. // p
  1686. if (!_this.options.showPaginationSwitch) {
  1687. return;
  1688. }
  1689. $paginationSwitch.click();
  1690. return false;
  1691. case 37:
  1692. // left
  1693. if (!_this.options.pagination) {
  1694. return;
  1695. }
  1696. _this.prevPage();
  1697. return false;
  1698. case 39:
  1699. // right
  1700. if (!_this.options.pagination) {
  1701. return;
  1702. }
  1703. _this.nextPage();
  1704. return;
  1705. }
  1706. });
  1707. }
  1708. }]);
  1709. }($$3.BootstrapTable);
  1710. }));