bootstrap-table-treegrid.js 63 KB

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