bootstrap-table-auto-refresh.js 63 KB

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