bootstrap-table-auto-refresh.js 64 KB

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