bootstrap-table-copy-rows.js 64 KB

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