bootstrap-table-mobile.js 64 KB

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