bootstrap-table-group-by.js 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385
  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 ($$7) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$7);
  8. function _typeof(obj) {
  9. "@babel/helpers - typeof";
  10. return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  11. return typeof obj;
  12. } : function (obj) {
  13. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  14. }, _typeof(obj);
  15. }
  16. function _classCallCheck(instance, Constructor) {
  17. if (!(instance instanceof Constructor)) {
  18. throw new TypeError("Cannot call a class as a function");
  19. }
  20. }
  21. function _defineProperties(target, props) {
  22. for (var i = 0; i < props.length; i++) {
  23. var descriptor = props[i];
  24. descriptor.enumerable = descriptor.enumerable || false;
  25. descriptor.configurable = true;
  26. if ("value" in descriptor) descriptor.writable = true;
  27. Object.defineProperty(target, descriptor.key, descriptor);
  28. }
  29. }
  30. function _createClass(Constructor, protoProps, staticProps) {
  31. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  32. if (staticProps) _defineProperties(Constructor, staticProps);
  33. Object.defineProperty(Constructor, "prototype", {
  34. writable: false
  35. });
  36. return Constructor;
  37. }
  38. function _inherits(subClass, superClass) {
  39. if (typeof superClass !== "function" && superClass !== null) {
  40. throw new TypeError("Super expression must either be null or a function");
  41. }
  42. subClass.prototype = Object.create(superClass && superClass.prototype, {
  43. constructor: {
  44. value: subClass,
  45. writable: true,
  46. configurable: true
  47. }
  48. });
  49. Object.defineProperty(subClass, "prototype", {
  50. writable: false
  51. });
  52. if (superClass) _setPrototypeOf(subClass, superClass);
  53. }
  54. function _getPrototypeOf(o) {
  55. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  56. return o.__proto__ || Object.getPrototypeOf(o);
  57. };
  58. return _getPrototypeOf(o);
  59. }
  60. function _setPrototypeOf(o, p) {
  61. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  62. o.__proto__ = p;
  63. return o;
  64. };
  65. return _setPrototypeOf(o, p);
  66. }
  67. function _isNativeReflectConstruct() {
  68. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  69. if (Reflect.construct.sham) return false;
  70. if (typeof Proxy === "function") return true;
  71. try {
  72. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  73. return true;
  74. } catch (e) {
  75. return false;
  76. }
  77. }
  78. function _assertThisInitialized(self) {
  79. if (self === void 0) {
  80. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  81. }
  82. return self;
  83. }
  84. function _possibleConstructorReturn(self, call) {
  85. if (call && (typeof call === "object" || typeof call === "function")) {
  86. return call;
  87. } else if (call !== void 0) {
  88. throw new TypeError("Derived constructors may only return object or undefined");
  89. }
  90. return _assertThisInitialized(self);
  91. }
  92. function _createSuper(Derived) {
  93. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  94. return function _createSuperInternal() {
  95. var Super = _getPrototypeOf(Derived),
  96. result;
  97. if (hasNativeReflectConstruct) {
  98. var NewTarget = _getPrototypeOf(this).constructor;
  99. result = Reflect.construct(Super, arguments, NewTarget);
  100. } else {
  101. result = Super.apply(this, arguments);
  102. }
  103. return _possibleConstructorReturn(this, result);
  104. };
  105. }
  106. function _superPropBase(object, property) {
  107. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  108. object = _getPrototypeOf(object);
  109. if (object === null) break;
  110. }
  111. return object;
  112. }
  113. function _get() {
  114. if (typeof Reflect !== "undefined" && Reflect.get) {
  115. _get = Reflect.get.bind();
  116. } else {
  117. _get = function _get(target, property, receiver) {
  118. var base = _superPropBase(target, property);
  119. if (!base) return;
  120. var desc = Object.getOwnPropertyDescriptor(base, property);
  121. if (desc.get) {
  122. return desc.get.call(arguments.length < 3 ? target : receiver);
  123. }
  124. return desc.value;
  125. };
  126. }
  127. return _get.apply(this, arguments);
  128. }
  129. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  130. var check = function (it) {
  131. return it && it.Math == Math && it;
  132. };
  133. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  134. var global$b =
  135. // eslint-disable-next-line es/no-global-this -- safe
  136. check(typeof globalThis == 'object' && globalThis) ||
  137. check(typeof window == 'object' && window) ||
  138. // eslint-disable-next-line no-restricted-globals -- safe
  139. check(typeof self == 'object' && self) ||
  140. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  141. // eslint-disable-next-line no-new-func -- fallback
  142. (function () { return this; })() || Function('return this')();
  143. var shared$3 = {exports: {}};
  144. var global$a = global$b;
  145. // eslint-disable-next-line es/no-object-defineproperty -- safe
  146. var defineProperty$4 = Object.defineProperty;
  147. var defineGlobalProperty$3 = function (key, value) {
  148. try {
  149. defineProperty$4(global$a, key, { value: value, configurable: true, writable: true });
  150. } catch (error) {
  151. global$a[key] = value;
  152. } return value;
  153. };
  154. var global$9 = global$b;
  155. var defineGlobalProperty$2 = defineGlobalProperty$3;
  156. var SHARED = '__core-js_shared__';
  157. var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
  158. var sharedStore = store$3;
  159. var store$2 = sharedStore;
  160. (shared$3.exports = function (key, value) {
  161. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  162. })('versions', []).push({
  163. version: '3.25.5',
  164. mode: 'global',
  165. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  166. license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
  167. source: 'https://github.com/zloirock/core-js'
  168. });
  169. var fails$e = function (exec) {
  170. try {
  171. return !!exec();
  172. } catch (error) {
  173. return true;
  174. }
  175. };
  176. var fails$d = fails$e;
  177. var functionBindNative = !fails$d(function () {
  178. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  179. var test = (function () { /* empty */ }).bind();
  180. // eslint-disable-next-line no-prototype-builtins -- safe
  181. return typeof test != 'function' || test.hasOwnProperty('prototype');
  182. });
  183. var NATIVE_BIND$2 = functionBindNative;
  184. var FunctionPrototype$2 = Function.prototype;
  185. var call$5 = FunctionPrototype$2.call;
  186. var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$5, call$5);
  187. var functionUncurryThisRaw = function (fn) {
  188. return NATIVE_BIND$2 ? uncurryThisWithBind(fn) : function () {
  189. return call$5.apply(fn, arguments);
  190. };
  191. };
  192. var uncurryThisRaw$1 = functionUncurryThisRaw;
  193. var toString$4 = uncurryThisRaw$1({}.toString);
  194. var stringSlice = uncurryThisRaw$1(''.slice);
  195. var classofRaw$2 = function (it) {
  196. return stringSlice(toString$4(it), 8, -1);
  197. };
  198. var classofRaw$1 = classofRaw$2;
  199. var uncurryThisRaw = functionUncurryThisRaw;
  200. var functionUncurryThis = function (fn) {
  201. // Nashorn bug:
  202. // https://github.com/zloirock/core-js/issues/1128
  203. // https://github.com/zloirock/core-js/issues/1130
  204. if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
  205. };
  206. // we can't use just `it == null` since of `document.all` special case
  207. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  208. var isNullOrUndefined$2 = function (it) {
  209. return it === null || it === undefined;
  210. };
  211. var isNullOrUndefined$1 = isNullOrUndefined$2;
  212. var $TypeError$7 = TypeError;
  213. // `RequireObjectCoercible` abstract operation
  214. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  215. var requireObjectCoercible$2 = function (it) {
  216. if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
  217. return it;
  218. };
  219. var requireObjectCoercible$1 = requireObjectCoercible$2;
  220. var $Object$3 = Object;
  221. // `ToObject` abstract operation
  222. // https://tc39.es/ecma262/#sec-toobject
  223. var toObject$5 = function (argument) {
  224. return $Object$3(requireObjectCoercible$1(argument));
  225. };
  226. var uncurryThis$e = functionUncurryThis;
  227. var toObject$4 = toObject$5;
  228. var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
  229. // `HasOwnProperty` abstract operation
  230. // https://tc39.es/ecma262/#sec-hasownproperty
  231. // eslint-disable-next-line es/no-object-hasown -- safe
  232. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  233. return hasOwnProperty(toObject$4(it), key);
  234. };
  235. var uncurryThis$d = functionUncurryThis;
  236. var id = 0;
  237. var postfix = Math.random();
  238. var toString$3 = uncurryThis$d(1.0.toString);
  239. var uid$2 = function (key) {
  240. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
  241. };
  242. var documentAll$2 = typeof document == 'object' && document.all;
  243. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  244. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  245. var documentAll_1 = {
  246. all: documentAll$2,
  247. IS_HTMLDDA: IS_HTMLDDA
  248. };
  249. var $documentAll$1 = documentAll_1;
  250. var documentAll$1 = $documentAll$1.all;
  251. // `IsCallable` abstract operation
  252. // https://tc39.es/ecma262/#sec-iscallable
  253. var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
  254. return typeof argument == 'function' || argument === documentAll$1;
  255. } : function (argument) {
  256. return typeof argument == 'function';
  257. };
  258. var global$8 = global$b;
  259. var isCallable$b = isCallable$c;
  260. var aFunction = function (argument) {
  261. return isCallable$b(argument) ? argument : undefined;
  262. };
  263. var getBuiltIn$5 = function (namespace, method) {
  264. return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
  265. };
  266. var getBuiltIn$4 = getBuiltIn$5;
  267. var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
  268. var global$7 = global$b;
  269. var userAgent$2 = engineUserAgent;
  270. var process = global$7.process;
  271. var Deno = global$7.Deno;
  272. var versions = process && process.versions || Deno && Deno.version;
  273. var v8 = versions && versions.v8;
  274. var match, version;
  275. if (v8) {
  276. match = v8.split('.');
  277. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  278. // but their correct versions are not interesting for us
  279. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  280. }
  281. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  282. // so check `userAgent` even if `.v8` exists, but 0
  283. if (!version && userAgent$2) {
  284. match = userAgent$2.match(/Edge\/(\d+)/);
  285. if (!match || match[1] >= 74) {
  286. match = userAgent$2.match(/Chrome\/(\d+)/);
  287. if (match) version = +match[1];
  288. }
  289. }
  290. var engineV8Version = version;
  291. /* eslint-disable es/no-symbol -- required for testing */
  292. var V8_VERSION$2 = engineV8Version;
  293. var fails$c = fails$e;
  294. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  295. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
  296. var symbol = Symbol();
  297. // Chrome 38 Symbol has incorrect toString conversion
  298. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  299. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  300. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  301. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  302. });
  303. /* eslint-disable es/no-symbol -- required for testing */
  304. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  305. var useSymbolAsUid = NATIVE_SYMBOL$1
  306. && !Symbol.sham
  307. && typeof Symbol.iterator == 'symbol';
  308. var global$6 = global$b;
  309. var shared$2 = shared$3.exports;
  310. var hasOwn$6 = hasOwnProperty_1;
  311. var uid$1 = uid$2;
  312. var NATIVE_SYMBOL = symbolConstructorDetection;
  313. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  314. var WellKnownSymbolsStore = shared$2('wks');
  315. var Symbol$1 = global$6.Symbol;
  316. var symbolFor = Symbol$1 && Symbol$1['for'];
  317. var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  318. var wellKnownSymbol$8 = function (name) {
  319. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  320. var description = 'Symbol.' + name;
  321. if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
  322. WellKnownSymbolsStore[name] = Symbol$1[name];
  323. } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
  324. WellKnownSymbolsStore[name] = symbolFor(description);
  325. } else {
  326. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  327. }
  328. } return WellKnownSymbolsStore[name];
  329. };
  330. var wellKnownSymbol$7 = wellKnownSymbol$8;
  331. var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
  332. var test$1 = {};
  333. test$1[TO_STRING_TAG$1] = 'z';
  334. var toStringTagSupport = String(test$1) === '[object z]';
  335. var objectDefineProperty = {};
  336. var fails$b = fails$e;
  337. // Detect IE8's incomplete defineProperty implementation
  338. var descriptors = !fails$b(function () {
  339. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  340. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  341. });
  342. var isCallable$a = isCallable$c;
  343. var $documentAll = documentAll_1;
  344. var documentAll = $documentAll.all;
  345. var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
  346. return typeof it == 'object' ? it !== null : isCallable$a(it) || it === documentAll;
  347. } : function (it) {
  348. return typeof it == 'object' ? it !== null : isCallable$a(it);
  349. };
  350. var global$5 = global$b;
  351. var isObject$7 = isObject$8;
  352. var document$1 = global$5.document;
  353. // typeof document.createElement is 'object' in old IE
  354. var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
  355. var documentCreateElement$2 = function (it) {
  356. return EXISTS$1 ? document$1.createElement(it) : {};
  357. };
  358. var DESCRIPTORS$9 = descriptors;
  359. var fails$a = fails$e;
  360. var createElement = documentCreateElement$2;
  361. // Thanks to IE8 for its funny defineProperty
  362. var ie8DomDefine = !DESCRIPTORS$9 && !fails$a(function () {
  363. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  364. return Object.defineProperty(createElement('div'), 'a', {
  365. get: function () { return 7; }
  366. }).a != 7;
  367. });
  368. var DESCRIPTORS$8 = descriptors;
  369. var fails$9 = fails$e;
  370. // V8 ~ Chrome 36-
  371. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  372. var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$9(function () {
  373. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  374. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  375. value: 42,
  376. writable: false
  377. }).prototype != 42;
  378. });
  379. var isObject$6 = isObject$8;
  380. var $String$2 = String;
  381. var $TypeError$6 = TypeError;
  382. // `Assert: Type(argument) is Object`
  383. var anObject$4 = function (argument) {
  384. if (isObject$6(argument)) return argument;
  385. throw $TypeError$6($String$2(argument) + ' is not an object');
  386. };
  387. var NATIVE_BIND$1 = functionBindNative;
  388. var call$4 = Function.prototype.call;
  389. var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
  390. return call$4.apply(call$4, arguments);
  391. };
  392. var uncurryThis$c = functionUncurryThis;
  393. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  394. var getBuiltIn$3 = getBuiltIn$5;
  395. var isCallable$9 = isCallable$c;
  396. var isPrototypeOf = objectIsPrototypeOf;
  397. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  398. var $Object$2 = Object;
  399. var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
  400. return typeof it == 'symbol';
  401. } : function (it) {
  402. var $Symbol = getBuiltIn$3('Symbol');
  403. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  404. };
  405. var $String$1 = String;
  406. var tryToString$2 = function (argument) {
  407. try {
  408. return $String$1(argument);
  409. } catch (error) {
  410. return 'Object';
  411. }
  412. };
  413. var isCallable$8 = isCallable$c;
  414. var tryToString$1 = tryToString$2;
  415. var $TypeError$5 = TypeError;
  416. // `Assert: IsCallable(argument) is true`
  417. var aCallable$3 = function (argument) {
  418. if (isCallable$8(argument)) return argument;
  419. throw $TypeError$5(tryToString$1(argument) + ' is not a function');
  420. };
  421. var aCallable$2 = aCallable$3;
  422. var isNullOrUndefined = isNullOrUndefined$2;
  423. // `GetMethod` abstract operation
  424. // https://tc39.es/ecma262/#sec-getmethod
  425. var getMethod$1 = function (V, P) {
  426. var func = V[P];
  427. return isNullOrUndefined(func) ? undefined : aCallable$2(func);
  428. };
  429. var call$3 = functionCall;
  430. var isCallable$7 = isCallable$c;
  431. var isObject$5 = isObject$8;
  432. var $TypeError$4 = TypeError;
  433. // `OrdinaryToPrimitive` abstract operation
  434. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  435. var ordinaryToPrimitive$1 = function (input, pref) {
  436. var fn, val;
  437. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  438. if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
  439. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  440. throw $TypeError$4("Can't convert object to primitive value");
  441. };
  442. var call$2 = functionCall;
  443. var isObject$4 = isObject$8;
  444. var isSymbol$1 = isSymbol$2;
  445. var getMethod = getMethod$1;
  446. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  447. var wellKnownSymbol$6 = wellKnownSymbol$8;
  448. var $TypeError$3 = TypeError;
  449. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  450. // `ToPrimitive` abstract operation
  451. // https://tc39.es/ecma262/#sec-toprimitive
  452. var toPrimitive$1 = function (input, pref) {
  453. if (!isObject$4(input) || isSymbol$1(input)) return input;
  454. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  455. var result;
  456. if (exoticToPrim) {
  457. if (pref === undefined) pref = 'default';
  458. result = call$2(exoticToPrim, input, pref);
  459. if (!isObject$4(result) || isSymbol$1(result)) return result;
  460. throw $TypeError$3("Can't convert object to primitive value");
  461. }
  462. if (pref === undefined) pref = 'number';
  463. return ordinaryToPrimitive(input, pref);
  464. };
  465. var toPrimitive = toPrimitive$1;
  466. var isSymbol = isSymbol$2;
  467. // `ToPropertyKey` abstract operation
  468. // https://tc39.es/ecma262/#sec-topropertykey
  469. var toPropertyKey$3 = function (argument) {
  470. var key = toPrimitive(argument, 'string');
  471. return isSymbol(key) ? key : key + '';
  472. };
  473. var DESCRIPTORS$7 = descriptors;
  474. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  475. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  476. var anObject$3 = anObject$4;
  477. var toPropertyKey$2 = toPropertyKey$3;
  478. var $TypeError$2 = TypeError;
  479. // eslint-disable-next-line es/no-object-defineproperty -- safe
  480. var $defineProperty = Object.defineProperty;
  481. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  482. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  483. var ENUMERABLE = 'enumerable';
  484. var CONFIGURABLE$1 = 'configurable';
  485. var WRITABLE = 'writable';
  486. // `Object.defineProperty` method
  487. // https://tc39.es/ecma262/#sec-object.defineproperty
  488. objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  489. anObject$3(O);
  490. P = toPropertyKey$2(P);
  491. anObject$3(Attributes);
  492. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  493. var current = $getOwnPropertyDescriptor$1(O, P);
  494. if (current && current[WRITABLE]) {
  495. O[P] = Attributes.value;
  496. Attributes = {
  497. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  498. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  499. writable: false
  500. };
  501. }
  502. } return $defineProperty(O, P, Attributes);
  503. } : $defineProperty : function defineProperty(O, P, Attributes) {
  504. anObject$3(O);
  505. P = toPropertyKey$2(P);
  506. anObject$3(Attributes);
  507. if (IE8_DOM_DEFINE$1) try {
  508. return $defineProperty(O, P, Attributes);
  509. } catch (error) { /* empty */ }
  510. if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
  511. if ('value' in Attributes) O[P] = Attributes.value;
  512. return O;
  513. };
  514. var makeBuiltIn$2 = {exports: {}};
  515. var DESCRIPTORS$6 = descriptors;
  516. var hasOwn$5 = hasOwnProperty_1;
  517. var FunctionPrototype$1 = Function.prototype;
  518. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  519. var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
  520. var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
  521. // additional protection from minified / mangled / dropped function names
  522. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  523. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
  524. var functionName = {
  525. EXISTS: EXISTS,
  526. PROPER: PROPER,
  527. CONFIGURABLE: CONFIGURABLE
  528. };
  529. var uncurryThis$b = functionUncurryThis;
  530. var isCallable$6 = isCallable$c;
  531. var store$1 = sharedStore;
  532. var functionToString$1 = uncurryThis$b(Function.toString);
  533. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  534. if (!isCallable$6(store$1.inspectSource)) {
  535. store$1.inspectSource = function (it) {
  536. return functionToString$1(it);
  537. };
  538. }
  539. var inspectSource$2 = store$1.inspectSource;
  540. var global$4 = global$b;
  541. var isCallable$5 = isCallable$c;
  542. var WeakMap$1 = global$4.WeakMap;
  543. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  544. var createPropertyDescriptor$3 = function (bitmap, value) {
  545. return {
  546. enumerable: !(bitmap & 1),
  547. configurable: !(bitmap & 2),
  548. writable: !(bitmap & 4),
  549. value: value
  550. };
  551. };
  552. var DESCRIPTORS$5 = descriptors;
  553. var definePropertyModule$4 = objectDefineProperty;
  554. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  555. var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
  556. return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
  557. } : function (object, key, value) {
  558. object[key] = value;
  559. return object;
  560. };
  561. var shared$1 = shared$3.exports;
  562. var uid = uid$2;
  563. var keys = shared$1('keys');
  564. var sharedKey$2 = function (key) {
  565. return keys[key] || (keys[key] = uid(key));
  566. };
  567. var hiddenKeys$4 = {};
  568. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  569. var global$3 = global$b;
  570. var isObject$3 = isObject$8;
  571. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  572. var hasOwn$4 = hasOwnProperty_1;
  573. var shared = sharedStore;
  574. var sharedKey$1 = sharedKey$2;
  575. var hiddenKeys$3 = hiddenKeys$4;
  576. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  577. var TypeError$1 = global$3.TypeError;
  578. var WeakMap = global$3.WeakMap;
  579. var set, get, has;
  580. var enforce = function (it) {
  581. return has(it) ? get(it) : set(it, {});
  582. };
  583. var getterFor = function (TYPE) {
  584. return function (it) {
  585. var state;
  586. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  587. throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  588. } return state;
  589. };
  590. };
  591. if (NATIVE_WEAK_MAP || shared.state) {
  592. var store = shared.state || (shared.state = new WeakMap());
  593. /* eslint-disable no-self-assign -- prototype methods protection */
  594. store.get = store.get;
  595. store.has = store.has;
  596. store.set = store.set;
  597. /* eslint-enable no-self-assign -- prototype methods protection */
  598. set = function (it, metadata) {
  599. if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
  600. metadata.facade = it;
  601. store.set(it, metadata);
  602. return metadata;
  603. };
  604. get = function (it) {
  605. return store.get(it) || {};
  606. };
  607. has = function (it) {
  608. return store.has(it);
  609. };
  610. } else {
  611. var STATE = sharedKey$1('state');
  612. hiddenKeys$3[STATE] = true;
  613. set = function (it, metadata) {
  614. if (hasOwn$4(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
  615. metadata.facade = it;
  616. createNonEnumerableProperty$2(it, STATE, metadata);
  617. return metadata;
  618. };
  619. get = function (it) {
  620. return hasOwn$4(it, STATE) ? it[STATE] : {};
  621. };
  622. has = function (it) {
  623. return hasOwn$4(it, STATE);
  624. };
  625. }
  626. var internalState = {
  627. set: set,
  628. get: get,
  629. has: has,
  630. enforce: enforce,
  631. getterFor: getterFor
  632. };
  633. var fails$8 = fails$e;
  634. var isCallable$4 = isCallable$c;
  635. var hasOwn$3 = hasOwnProperty_1;
  636. var DESCRIPTORS$4 = descriptors;
  637. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  638. var inspectSource$1 = inspectSource$2;
  639. var InternalStateModule = internalState;
  640. var enforceInternalState = InternalStateModule.enforce;
  641. var getInternalState = InternalStateModule.get;
  642. // eslint-disable-next-line es/no-object-defineproperty -- safe
  643. var defineProperty$3 = Object.defineProperty;
  644. var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
  645. return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  646. });
  647. var TEMPLATE = String(String).split('String');
  648. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  649. if (String(name).slice(0, 7) === 'Symbol(') {
  650. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  651. }
  652. if (options && options.getter) name = 'get ' + name;
  653. if (options && options.setter) name = 'set ' + name;
  654. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  655. if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true });
  656. else value.name = name;
  657. }
  658. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  659. defineProperty$3(value, 'length', { value: options.arity });
  660. }
  661. try {
  662. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  663. if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false });
  664. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  665. } else if (value.prototype) value.prototype = undefined;
  666. } catch (error) { /* empty */ }
  667. var state = enforceInternalState(value);
  668. if (!hasOwn$3(state, 'source')) {
  669. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  670. } return value;
  671. };
  672. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  673. // eslint-disable-next-line no-extend-native -- required
  674. Function.prototype.toString = makeBuiltIn$1(function toString() {
  675. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  676. }, 'toString');
  677. var isCallable$3 = isCallable$c;
  678. var definePropertyModule$3 = objectDefineProperty;
  679. var makeBuiltIn = makeBuiltIn$2.exports;
  680. var defineGlobalProperty$1 = defineGlobalProperty$3;
  681. var defineBuiltIn$2 = function (O, key, value, options) {
  682. if (!options) options = {};
  683. var simple = options.enumerable;
  684. var name = options.name !== undefined ? options.name : key;
  685. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  686. if (options.global) {
  687. if (simple) O[key] = value;
  688. else defineGlobalProperty$1(key, value);
  689. } else {
  690. try {
  691. if (!options.unsafe) delete O[key];
  692. else if (O[key]) simple = true;
  693. } catch (error) { /* empty */ }
  694. if (simple) O[key] = value;
  695. else definePropertyModule$3.f(O, key, {
  696. value: value,
  697. enumerable: false,
  698. configurable: !options.nonConfigurable,
  699. writable: !options.nonWritable
  700. });
  701. } return O;
  702. };
  703. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  704. var isCallable$2 = isCallable$c;
  705. var classofRaw = classofRaw$2;
  706. var wellKnownSymbol$5 = wellKnownSymbol$8;
  707. var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
  708. var $Object$1 = Object;
  709. // ES3 wrong here
  710. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  711. // fallback for IE11 Script Access Denied error
  712. var tryGet = function (it, key) {
  713. try {
  714. return it[key];
  715. } catch (error) { /* empty */ }
  716. };
  717. // getting tag from ES6+ `Object.prototype.toString`
  718. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  719. var O, tag, result;
  720. return it === undefined ? 'Undefined' : it === null ? 'Null'
  721. // @@toStringTag case
  722. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  723. // builtinTag case
  724. : CORRECT_ARGUMENTS ? classofRaw(O)
  725. // ES3 arguments fallback
  726. : (result = classofRaw(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
  727. };
  728. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  729. var classof$4 = classof$5;
  730. // `Object.prototype.toString` method implementation
  731. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  732. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  733. return '[object ' + classof$4(this) + ']';
  734. };
  735. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  736. var defineBuiltIn$1 = defineBuiltIn$2;
  737. var toString$2 = objectToString;
  738. // `Object.prototype.toString` method
  739. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  740. if (!TO_STRING_TAG_SUPPORT) {
  741. defineBuiltIn$1(Object.prototype, 'toString', toString$2, { unsafe: true });
  742. }
  743. // iterable DOM collections
  744. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  745. var domIterables = {
  746. CSSRuleList: 0,
  747. CSSStyleDeclaration: 0,
  748. CSSValueList: 0,
  749. ClientRectList: 0,
  750. DOMRectList: 0,
  751. DOMStringList: 0,
  752. DOMTokenList: 1,
  753. DataTransferItemList: 0,
  754. FileList: 0,
  755. HTMLAllCollection: 0,
  756. HTMLCollection: 0,
  757. HTMLFormElement: 0,
  758. HTMLSelectElement: 0,
  759. MediaList: 0,
  760. MimeTypeArray: 0,
  761. NamedNodeMap: 0,
  762. NodeList: 1,
  763. PaintRequestList: 0,
  764. Plugin: 0,
  765. PluginArray: 0,
  766. SVGLengthList: 0,
  767. SVGNumberList: 0,
  768. SVGPathSegList: 0,
  769. SVGPointList: 0,
  770. SVGStringList: 0,
  771. SVGTransformList: 0,
  772. SourceBufferList: 0,
  773. StyleSheetList: 0,
  774. TextTrackCueList: 0,
  775. TextTrackList: 0,
  776. TouchList: 0
  777. };
  778. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  779. var documentCreateElement$1 = documentCreateElement$2;
  780. var classList = documentCreateElement$1('span').classList;
  781. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  782. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  783. var uncurryThis$a = functionUncurryThis;
  784. var aCallable$1 = aCallable$3;
  785. var NATIVE_BIND = functionBindNative;
  786. var bind$1 = uncurryThis$a(uncurryThis$a.bind);
  787. // optional / simple context binding
  788. var functionBindContext = function (fn, that) {
  789. aCallable$1(fn);
  790. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  791. return fn.apply(that, arguments);
  792. };
  793. };
  794. var uncurryThis$9 = functionUncurryThis;
  795. var fails$7 = fails$e;
  796. var classof$3 = classofRaw$2;
  797. var $Object = Object;
  798. var split = uncurryThis$9(''.split);
  799. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  800. var indexedObject = fails$7(function () {
  801. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  802. // eslint-disable-next-line no-prototype-builtins -- safe
  803. return !$Object('z').propertyIsEnumerable(0);
  804. }) ? function (it) {
  805. return classof$3(it) == 'String' ? split(it, '') : $Object(it);
  806. } : $Object;
  807. var ceil = Math.ceil;
  808. var floor$1 = Math.floor;
  809. // `Math.trunc` method
  810. // https://tc39.es/ecma262/#sec-math.trunc
  811. // eslint-disable-next-line es/no-math-trunc -- safe
  812. var mathTrunc = Math.trunc || function trunc(x) {
  813. var n = +x;
  814. return (n > 0 ? floor$1 : ceil)(n);
  815. };
  816. var trunc = mathTrunc;
  817. // `ToIntegerOrInfinity` abstract operation
  818. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  819. var toIntegerOrInfinity$2 = function (argument) {
  820. var number = +argument;
  821. // eslint-disable-next-line no-self-compare -- NaN check
  822. return number !== number || number === 0 ? 0 : trunc(number);
  823. };
  824. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  825. var min$1 = Math.min;
  826. // `ToLength` abstract operation
  827. // https://tc39.es/ecma262/#sec-tolength
  828. var toLength$1 = function (argument) {
  829. return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  830. };
  831. var toLength = toLength$1;
  832. // `LengthOfArrayLike` abstract operation
  833. // https://tc39.es/ecma262/#sec-lengthofarraylike
  834. var lengthOfArrayLike$6 = function (obj) {
  835. return toLength(obj.length);
  836. };
  837. var classof$2 = classofRaw$2;
  838. // `IsArray` abstract operation
  839. // https://tc39.es/ecma262/#sec-isarray
  840. // eslint-disable-next-line es/no-array-isarray -- safe
  841. var isArray$3 = Array.isArray || function isArray(argument) {
  842. return classof$2(argument) == 'Array';
  843. };
  844. var uncurryThis$8 = functionUncurryThis;
  845. var fails$6 = fails$e;
  846. var isCallable$1 = isCallable$c;
  847. var classof$1 = classof$5;
  848. var getBuiltIn$2 = getBuiltIn$5;
  849. var inspectSource = inspectSource$2;
  850. var noop = function () { /* empty */ };
  851. var empty = [];
  852. var construct = getBuiltIn$2('Reflect', 'construct');
  853. var constructorRegExp = /^\s*(?:class|function)\b/;
  854. var exec = uncurryThis$8(constructorRegExp.exec);
  855. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  856. var isConstructorModern = function isConstructor(argument) {
  857. if (!isCallable$1(argument)) return false;
  858. try {
  859. construct(noop, empty, argument);
  860. return true;
  861. } catch (error) {
  862. return false;
  863. }
  864. };
  865. var isConstructorLegacy = function isConstructor(argument) {
  866. if (!isCallable$1(argument)) return false;
  867. switch (classof$1(argument)) {
  868. case 'AsyncFunction':
  869. case 'GeneratorFunction':
  870. case 'AsyncGeneratorFunction': return false;
  871. }
  872. try {
  873. // we can't check .prototype since constructors produced by .bind haven't it
  874. // `Function#toString` throws on some built-it function in some legacy engines
  875. // (for example, `DOMQuad` and similar in FF41-)
  876. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  877. } catch (error) {
  878. return true;
  879. }
  880. };
  881. isConstructorLegacy.sham = true;
  882. // `IsConstructor` abstract operation
  883. // https://tc39.es/ecma262/#sec-isconstructor
  884. var isConstructor$2 = !construct || fails$6(function () {
  885. var called;
  886. return isConstructorModern(isConstructorModern.call)
  887. || !isConstructorModern(Object)
  888. || !isConstructorModern(function () { called = true; })
  889. || called;
  890. }) ? isConstructorLegacy : isConstructorModern;
  891. var isArray$2 = isArray$3;
  892. var isConstructor$1 = isConstructor$2;
  893. var isObject$2 = isObject$8;
  894. var wellKnownSymbol$4 = wellKnownSymbol$8;
  895. var SPECIES$2 = wellKnownSymbol$4('species');
  896. var $Array$2 = Array;
  897. // a part of `ArraySpeciesCreate` abstract operation
  898. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  899. var arraySpeciesConstructor$1 = function (originalArray) {
  900. var C;
  901. if (isArray$2(originalArray)) {
  902. C = originalArray.constructor;
  903. // cross-realm fallback
  904. if (isConstructor$1(C) && (C === $Array$2 || isArray$2(C.prototype))) C = undefined;
  905. else if (isObject$2(C)) {
  906. C = C[SPECIES$2];
  907. if (C === null) C = undefined;
  908. }
  909. } return C === undefined ? $Array$2 : C;
  910. };
  911. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  912. // `ArraySpeciesCreate` abstract operation
  913. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  914. var arraySpeciesCreate$2 = function (originalArray, length) {
  915. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  916. };
  917. var bind = functionBindContext;
  918. var uncurryThis$7 = functionUncurryThis;
  919. var IndexedObject$3 = indexedObject;
  920. var toObject$3 = toObject$5;
  921. var lengthOfArrayLike$5 = lengthOfArrayLike$6;
  922. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  923. var push$2 = uncurryThis$7([].push);
  924. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  925. var createMethod$1 = function (TYPE) {
  926. var IS_MAP = TYPE == 1;
  927. var IS_FILTER = TYPE == 2;
  928. var IS_SOME = TYPE == 3;
  929. var IS_EVERY = TYPE == 4;
  930. var IS_FIND_INDEX = TYPE == 6;
  931. var IS_FILTER_REJECT = TYPE == 7;
  932. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  933. return function ($this, callbackfn, that, specificCreate) {
  934. var O = toObject$3($this);
  935. var self = IndexedObject$3(O);
  936. var boundFunction = bind(callbackfn, that);
  937. var length = lengthOfArrayLike$5(self);
  938. var index = 0;
  939. var create = specificCreate || arraySpeciesCreate$1;
  940. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  941. var value, result;
  942. for (;length > index; index++) if (NO_HOLES || index in self) {
  943. value = self[index];
  944. result = boundFunction(value, index, O);
  945. if (TYPE) {
  946. if (IS_MAP) target[index] = result; // map
  947. else if (result) switch (TYPE) {
  948. case 3: return true; // some
  949. case 5: return value; // find
  950. case 6: return index; // findIndex
  951. case 2: push$2(target, value); // filter
  952. } else switch (TYPE) {
  953. case 4: return false; // every
  954. case 7: push$2(target, value); // filterReject
  955. }
  956. }
  957. }
  958. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  959. };
  960. };
  961. var arrayIteration = {
  962. // `Array.prototype.forEach` method
  963. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  964. forEach: createMethod$1(0),
  965. // `Array.prototype.map` method
  966. // https://tc39.es/ecma262/#sec-array.prototype.map
  967. map: createMethod$1(1),
  968. // `Array.prototype.filter` method
  969. // https://tc39.es/ecma262/#sec-array.prototype.filter
  970. filter: createMethod$1(2),
  971. // `Array.prototype.some` method
  972. // https://tc39.es/ecma262/#sec-array.prototype.some
  973. some: createMethod$1(3),
  974. // `Array.prototype.every` method
  975. // https://tc39.es/ecma262/#sec-array.prototype.every
  976. every: createMethod$1(4),
  977. // `Array.prototype.find` method
  978. // https://tc39.es/ecma262/#sec-array.prototype.find
  979. find: createMethod$1(5),
  980. // `Array.prototype.findIndex` method
  981. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  982. findIndex: createMethod$1(6),
  983. // `Array.prototype.filterReject` method
  984. // https://github.com/tc39/proposal-array-filtering
  985. filterReject: createMethod$1(7)
  986. };
  987. var fails$5 = fails$e;
  988. var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
  989. var method = [][METHOD_NAME];
  990. return !!method && fails$5(function () {
  991. // eslint-disable-next-line no-useless-call -- required for testing
  992. method.call(null, argument || function () { return 1; }, 1);
  993. });
  994. };
  995. var $forEach = arrayIteration.forEach;
  996. var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
  997. var STRICT_METHOD$2 = arrayMethodIsStrict$2('forEach');
  998. // `Array.prototype.forEach` method implementation
  999. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1000. var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
  1001. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1002. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1003. } : [].forEach;
  1004. var global$2 = global$b;
  1005. var DOMIterables = domIterables;
  1006. var DOMTokenListPrototype = domTokenListPrototype;
  1007. var forEach = arrayForEach;
  1008. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  1009. var handlePrototype = function (CollectionPrototype) {
  1010. // some Chrome versions have non-configurable methods on DOMTokenList
  1011. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1012. createNonEnumerableProperty$1(CollectionPrototype, 'forEach', forEach);
  1013. } catch (error) {
  1014. CollectionPrototype.forEach = forEach;
  1015. }
  1016. };
  1017. for (var COLLECTION_NAME in DOMIterables) {
  1018. if (DOMIterables[COLLECTION_NAME]) {
  1019. handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype);
  1020. }
  1021. }
  1022. handlePrototype(DOMTokenListPrototype);
  1023. var objectGetOwnPropertyDescriptor = {};
  1024. var objectPropertyIsEnumerable = {};
  1025. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  1026. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1027. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  1028. // Nashorn ~ JDK8 bug
  1029. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  1030. // `Object.prototype.propertyIsEnumerable` method implementation
  1031. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  1032. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  1033. var descriptor = getOwnPropertyDescriptor$1(this, V);
  1034. return !!descriptor && descriptor.enumerable;
  1035. } : $propertyIsEnumerable;
  1036. // toObject with fallback for non-array-like ES3 strings
  1037. var IndexedObject$2 = indexedObject;
  1038. var requireObjectCoercible = requireObjectCoercible$2;
  1039. var toIndexedObject$6 = function (it) {
  1040. return IndexedObject$2(requireObjectCoercible(it));
  1041. };
  1042. var DESCRIPTORS$3 = descriptors;
  1043. var call$1 = functionCall;
  1044. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  1045. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  1046. var toIndexedObject$5 = toIndexedObject$6;
  1047. var toPropertyKey$1 = toPropertyKey$3;
  1048. var hasOwn$2 = hasOwnProperty_1;
  1049. var IE8_DOM_DEFINE = ie8DomDefine;
  1050. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1051. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  1052. // `Object.getOwnPropertyDescriptor` method
  1053. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  1054. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  1055. O = toIndexedObject$5(O);
  1056. P = toPropertyKey$1(P);
  1057. if (IE8_DOM_DEFINE) try {
  1058. return $getOwnPropertyDescriptor(O, P);
  1059. } catch (error) { /* empty */ }
  1060. if (hasOwn$2(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  1061. };
  1062. var objectGetOwnPropertyNames = {};
  1063. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  1064. var max$2 = Math.max;
  1065. var min = Math.min;
  1066. // Helper for a popular repeating case of the spec:
  1067. // Let integer be ? ToInteger(index).
  1068. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1069. var toAbsoluteIndex$3 = function (index, length) {
  1070. var integer = toIntegerOrInfinity(index);
  1071. return integer < 0 ? max$2(integer + length, 0) : min(integer, length);
  1072. };
  1073. var toIndexedObject$4 = toIndexedObject$6;
  1074. var toAbsoluteIndex$2 = toAbsoluteIndex$3;
  1075. var lengthOfArrayLike$4 = lengthOfArrayLike$6;
  1076. // `Array.prototype.{ indexOf, includes }` methods implementation
  1077. var createMethod = function (IS_INCLUDES) {
  1078. return function ($this, el, fromIndex) {
  1079. var O = toIndexedObject$4($this);
  1080. var length = lengthOfArrayLike$4(O);
  1081. var index = toAbsoluteIndex$2(fromIndex, length);
  1082. var value;
  1083. // Array#includes uses SameValueZero equality algorithm
  1084. // eslint-disable-next-line no-self-compare -- NaN check
  1085. if (IS_INCLUDES && el != el) while (length > index) {
  1086. value = O[index++];
  1087. // eslint-disable-next-line no-self-compare -- NaN check
  1088. if (value != value) return true;
  1089. // Array#indexOf ignores holes, Array#includes - not
  1090. } else for (;length > index; index++) {
  1091. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1092. } return !IS_INCLUDES && -1;
  1093. };
  1094. };
  1095. var arrayIncludes = {
  1096. // `Array.prototype.includes` method
  1097. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1098. includes: createMethod(true),
  1099. // `Array.prototype.indexOf` method
  1100. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1101. indexOf: createMethod(false)
  1102. };
  1103. var uncurryThis$6 = functionUncurryThis;
  1104. var hasOwn$1 = hasOwnProperty_1;
  1105. var toIndexedObject$3 = toIndexedObject$6;
  1106. var indexOf = arrayIncludes.indexOf;
  1107. var hiddenKeys$2 = hiddenKeys$4;
  1108. var push$1 = uncurryThis$6([].push);
  1109. var objectKeysInternal = function (object, names) {
  1110. var O = toIndexedObject$3(object);
  1111. var i = 0;
  1112. var result = [];
  1113. var key;
  1114. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  1115. // Don't enum bug & hidden keys
  1116. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  1117. ~indexOf(result, key) || push$1(result, key);
  1118. }
  1119. return result;
  1120. };
  1121. // IE8- don't enum bug keys
  1122. var enumBugKeys$3 = [
  1123. 'constructor',
  1124. 'hasOwnProperty',
  1125. 'isPrototypeOf',
  1126. 'propertyIsEnumerable',
  1127. 'toLocaleString',
  1128. 'toString',
  1129. 'valueOf'
  1130. ];
  1131. var internalObjectKeys$1 = objectKeysInternal;
  1132. var enumBugKeys$2 = enumBugKeys$3;
  1133. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  1134. // `Object.getOwnPropertyNames` method
  1135. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1136. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1137. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1138. return internalObjectKeys$1(O, hiddenKeys$1);
  1139. };
  1140. var objectGetOwnPropertySymbols = {};
  1141. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1142. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1143. var getBuiltIn$1 = getBuiltIn$5;
  1144. var uncurryThis$5 = functionUncurryThis;
  1145. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  1146. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  1147. var anObject$2 = anObject$4;
  1148. var concat$1 = uncurryThis$5([].concat);
  1149. // all object keys, includes non-enumerable and symbols
  1150. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  1151. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  1152. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  1153. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  1154. };
  1155. var hasOwn = hasOwnProperty_1;
  1156. var ownKeys = ownKeys$1;
  1157. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  1158. var definePropertyModule$2 = objectDefineProperty;
  1159. var copyConstructorProperties$1 = function (target, source, exceptions) {
  1160. var keys = ownKeys(source);
  1161. var defineProperty = definePropertyModule$2.f;
  1162. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1163. for (var i = 0; i < keys.length; i++) {
  1164. var key = keys[i];
  1165. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1166. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1167. }
  1168. }
  1169. };
  1170. var fails$4 = fails$e;
  1171. var isCallable = isCallable$c;
  1172. var replacement = /#|\.prototype\./;
  1173. var isForced$1 = function (feature, detection) {
  1174. var value = data[normalize(feature)];
  1175. return value == POLYFILL ? true
  1176. : value == NATIVE ? false
  1177. : isCallable(detection) ? fails$4(detection)
  1178. : !!detection;
  1179. };
  1180. var normalize = isForced$1.normalize = function (string) {
  1181. return String(string).replace(replacement, '.').toLowerCase();
  1182. };
  1183. var data = isForced$1.data = {};
  1184. var NATIVE = isForced$1.NATIVE = 'N';
  1185. var POLYFILL = isForced$1.POLYFILL = 'P';
  1186. var isForced_1 = isForced$1;
  1187. var global$1 = global$b;
  1188. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  1189. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1190. var defineBuiltIn = defineBuiltIn$2;
  1191. var defineGlobalProperty = defineGlobalProperty$3;
  1192. var copyConstructorProperties = copyConstructorProperties$1;
  1193. var isForced = isForced_1;
  1194. /*
  1195. options.target - name of the target object
  1196. options.global - target is the global object
  1197. options.stat - export as static methods of target
  1198. options.proto - export as prototype methods of target
  1199. options.real - real prototype method for the `pure` version
  1200. options.forced - export even if the native feature is available
  1201. options.bind - bind methods to the target, required for the `pure` version
  1202. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1203. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1204. options.sham - add a flag to not completely full polyfills
  1205. options.enumerable - export as enumerable property
  1206. options.dontCallGetSet - prevent calling a getter on target
  1207. options.name - the .name of the function if it does not match the key
  1208. */
  1209. var _export = function (options, source) {
  1210. var TARGET = options.target;
  1211. var GLOBAL = options.global;
  1212. var STATIC = options.stat;
  1213. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1214. if (GLOBAL) {
  1215. target = global$1;
  1216. } else if (STATIC) {
  1217. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  1218. } else {
  1219. target = (global$1[TARGET] || {}).prototype;
  1220. }
  1221. if (target) for (key in source) {
  1222. sourceProperty = source[key];
  1223. if (options.dontCallGetSet) {
  1224. descriptor = getOwnPropertyDescriptor(target, key);
  1225. targetProperty = descriptor && descriptor.value;
  1226. } else targetProperty = target[key];
  1227. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1228. // contained in target
  1229. if (!FORCED && targetProperty !== undefined) {
  1230. if (typeof sourceProperty == typeof targetProperty) continue;
  1231. copyConstructorProperties(sourceProperty, targetProperty);
  1232. }
  1233. // add a flag to not completely full polyfills
  1234. if (options.sham || (targetProperty && targetProperty.sham)) {
  1235. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1236. }
  1237. defineBuiltIn(target, key, sourceProperty, options);
  1238. }
  1239. };
  1240. var toPropertyKey = toPropertyKey$3;
  1241. var definePropertyModule$1 = objectDefineProperty;
  1242. var createPropertyDescriptor = createPropertyDescriptor$3;
  1243. var createProperty$3 = function (object, key, value) {
  1244. var propertyKey = toPropertyKey(key);
  1245. if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
  1246. else object[propertyKey] = value;
  1247. };
  1248. var fails$3 = fails$e;
  1249. var wellKnownSymbol$3 = wellKnownSymbol$8;
  1250. var V8_VERSION$1 = engineV8Version;
  1251. var SPECIES$1 = wellKnownSymbol$3('species');
  1252. var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
  1253. // We can't use this feature detection in V8 since it causes
  1254. // deoptimization and serious performance degradation
  1255. // https://github.com/zloirock/core-js/issues/677
  1256. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1257. var array = [];
  1258. var constructor = array.constructor = {};
  1259. constructor[SPECIES$1] = function () {
  1260. return { foo: 1 };
  1261. };
  1262. return array[METHOD_NAME](Boolean).foo !== 1;
  1263. });
  1264. };
  1265. var uncurryThis$4 = functionUncurryThis;
  1266. var arraySlice$1 = uncurryThis$4([].slice);
  1267. var $$6 = _export;
  1268. var isArray$1 = isArray$3;
  1269. var isConstructor = isConstructor$2;
  1270. var isObject$1 = isObject$8;
  1271. var toAbsoluteIndex$1 = toAbsoluteIndex$3;
  1272. var lengthOfArrayLike$3 = lengthOfArrayLike$6;
  1273. var toIndexedObject$2 = toIndexedObject$6;
  1274. var createProperty$2 = createProperty$3;
  1275. var wellKnownSymbol$2 = wellKnownSymbol$8;
  1276. var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
  1277. var nativeSlice = arraySlice$1;
  1278. var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
  1279. var SPECIES = wellKnownSymbol$2('species');
  1280. var $Array$1 = Array;
  1281. var max$1 = Math.max;
  1282. // `Array.prototype.slice` method
  1283. // https://tc39.es/ecma262/#sec-array.prototype.slice
  1284. // fallback for not array-like ES3 strings and DOM objects
  1285. $$6({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
  1286. slice: function slice(start, end) {
  1287. var O = toIndexedObject$2(this);
  1288. var length = lengthOfArrayLike$3(O);
  1289. var k = toAbsoluteIndex$1(start, length);
  1290. var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
  1291. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  1292. var Constructor, result, n;
  1293. if (isArray$1(O)) {
  1294. Constructor = O.constructor;
  1295. // cross-realm fallback
  1296. if (isConstructor(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
  1297. Constructor = undefined;
  1298. } else if (isObject$1(Constructor)) {
  1299. Constructor = Constructor[SPECIES];
  1300. if (Constructor === null) Constructor = undefined;
  1301. }
  1302. if (Constructor === $Array$1 || Constructor === undefined) {
  1303. return nativeSlice(O, k, fin);
  1304. }
  1305. }
  1306. result = new (Constructor === undefined ? $Array$1 : Constructor)(max$1(fin - k, 0));
  1307. for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
  1308. result.length = n;
  1309. return result;
  1310. }
  1311. });
  1312. var tryToString = tryToString$2;
  1313. var $TypeError$1 = TypeError;
  1314. var deletePropertyOrThrow$1 = function (O, P) {
  1315. if (!delete O[P]) throw $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
  1316. };
  1317. var classof = classof$5;
  1318. var $String = String;
  1319. var toString$1 = function (argument) {
  1320. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  1321. return $String(argument);
  1322. };
  1323. var toAbsoluteIndex = toAbsoluteIndex$3;
  1324. var lengthOfArrayLike$2 = lengthOfArrayLike$6;
  1325. var createProperty$1 = createProperty$3;
  1326. var $Array = Array;
  1327. var max = Math.max;
  1328. var arraySliceSimple = function (O, start, end) {
  1329. var length = lengthOfArrayLike$2(O);
  1330. var k = toAbsoluteIndex(start, length);
  1331. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  1332. var result = $Array(max(fin - k, 0));
  1333. for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]);
  1334. result.length = n;
  1335. return result;
  1336. };
  1337. var arraySlice = arraySliceSimple;
  1338. var floor = Math.floor;
  1339. var mergeSort = function (array, comparefn) {
  1340. var length = array.length;
  1341. var middle = floor(length / 2);
  1342. return length < 8 ? insertionSort(array, comparefn) : merge(
  1343. array,
  1344. mergeSort(arraySlice(array, 0, middle), comparefn),
  1345. mergeSort(arraySlice(array, middle), comparefn),
  1346. comparefn
  1347. );
  1348. };
  1349. var insertionSort = function (array, comparefn) {
  1350. var length = array.length;
  1351. var i = 1;
  1352. var element, j;
  1353. while (i < length) {
  1354. j = i;
  1355. element = array[i];
  1356. while (j && comparefn(array[j - 1], element) > 0) {
  1357. array[j] = array[--j];
  1358. }
  1359. if (j !== i++) array[j] = element;
  1360. } return array;
  1361. };
  1362. var merge = function (array, left, right, comparefn) {
  1363. var llength = left.length;
  1364. var rlength = right.length;
  1365. var lindex = 0;
  1366. var rindex = 0;
  1367. while (lindex < llength || rindex < rlength) {
  1368. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  1369. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  1370. : lindex < llength ? left[lindex++] : right[rindex++];
  1371. } return array;
  1372. };
  1373. var arraySort = mergeSort;
  1374. var userAgent$1 = engineUserAgent;
  1375. var firefox = userAgent$1.match(/firefox\/(\d+)/i);
  1376. var engineFfVersion = !!firefox && +firefox[1];
  1377. var UA = engineUserAgent;
  1378. var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
  1379. var userAgent = engineUserAgent;
  1380. var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
  1381. var engineWebkitVersion = !!webkit && +webkit[1];
  1382. var $$5 = _export;
  1383. var uncurryThis$3 = functionUncurryThis;
  1384. var aCallable = aCallable$3;
  1385. var toObject$2 = toObject$5;
  1386. var lengthOfArrayLike$1 = lengthOfArrayLike$6;
  1387. var deletePropertyOrThrow = deletePropertyOrThrow$1;
  1388. var toString = toString$1;
  1389. var fails$2 = fails$e;
  1390. var internalSort = arraySort;
  1391. var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
  1392. var FF = engineFfVersion;
  1393. var IE_OR_EDGE = engineIsIeOrEdge;
  1394. var V8 = engineV8Version;
  1395. var WEBKIT = engineWebkitVersion;
  1396. var test = [];
  1397. var nativeSort = uncurryThis$3(test.sort);
  1398. var push = uncurryThis$3(test.push);
  1399. // IE8-
  1400. var FAILS_ON_UNDEFINED = fails$2(function () {
  1401. test.sort(undefined);
  1402. });
  1403. // V8 bug
  1404. var FAILS_ON_NULL = fails$2(function () {
  1405. test.sort(null);
  1406. });
  1407. // Old WebKit
  1408. var STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');
  1409. var STABLE_SORT = !fails$2(function () {
  1410. // feature detection can be too slow, so check engines versions
  1411. if (V8) return V8 < 70;
  1412. if (FF && FF > 3) return;
  1413. if (IE_OR_EDGE) return true;
  1414. if (WEBKIT) return WEBKIT < 603;
  1415. var result = '';
  1416. var code, chr, value, index;
  1417. // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  1418. for (code = 65; code < 76; code++) {
  1419. chr = String.fromCharCode(code);
  1420. switch (code) {
  1421. case 66: case 69: case 70: case 72: value = 3; break;
  1422. case 68: case 71: value = 4; break;
  1423. default: value = 2;
  1424. }
  1425. for (index = 0; index < 47; index++) {
  1426. test.push({ k: chr + index, v: value });
  1427. }
  1428. }
  1429. test.sort(function (a, b) { return b.v - a.v; });
  1430. for (index = 0; index < test.length; index++) {
  1431. chr = test[index].k.charAt(0);
  1432. if (result.charAt(result.length - 1) !== chr) result += chr;
  1433. }
  1434. return result !== 'DGBEFHACIJK';
  1435. });
  1436. var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
  1437. var getSortCompare = function (comparefn) {
  1438. return function (x, y) {
  1439. if (y === undefined) return -1;
  1440. if (x === undefined) return 1;
  1441. if (comparefn !== undefined) return +comparefn(x, y) || 0;
  1442. return toString(x) > toString(y) ? 1 : -1;
  1443. };
  1444. };
  1445. // `Array.prototype.sort` method
  1446. // https://tc39.es/ecma262/#sec-array.prototype.sort
  1447. $$5({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1448. sort: function sort(comparefn) {
  1449. if (comparefn !== undefined) aCallable(comparefn);
  1450. var array = toObject$2(this);
  1451. if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  1452. var items = [];
  1453. var arrayLength = lengthOfArrayLike$1(array);
  1454. var itemsLength, index;
  1455. for (index = 0; index < arrayLength; index++) {
  1456. if (index in array) push(items, array[index]);
  1457. }
  1458. internalSort(items, getSortCompare(comparefn));
  1459. itemsLength = lengthOfArrayLike$1(items);
  1460. index = 0;
  1461. while (index < itemsLength) array[index] = items[index++];
  1462. while (index < arrayLength) deletePropertyOrThrow(array, index++);
  1463. return array;
  1464. }
  1465. });
  1466. var $$4 = _export;
  1467. var uncurryThis$2 = functionUncurryThis;
  1468. var IndexedObject$1 = indexedObject;
  1469. var toIndexedObject$1 = toIndexedObject$6;
  1470. var arrayMethodIsStrict = arrayMethodIsStrict$3;
  1471. var nativeJoin = uncurryThis$2([].join);
  1472. var ES3_STRINGS = IndexedObject$1 != Object;
  1473. var STRICT_METHOD = arrayMethodIsStrict('join', ',');
  1474. // `Array.prototype.join` method
  1475. // https://tc39.es/ecma262/#sec-array.prototype.join
  1476. $$4({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
  1477. join: function join(separator) {
  1478. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1479. }
  1480. });
  1481. var DESCRIPTORS$2 = descriptors;
  1482. var FUNCTION_NAME_EXISTS = functionName.EXISTS;
  1483. var uncurryThis$1 = functionUncurryThis;
  1484. var defineProperty$2 = objectDefineProperty.f;
  1485. var FunctionPrototype = Function.prototype;
  1486. var functionToString = uncurryThis$1(FunctionPrototype.toString);
  1487. var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
  1488. var regExpExec = uncurryThis$1(nameRE.exec);
  1489. var NAME = 'name';
  1490. // Function instances `.name` property
  1491. // https://tc39.es/ecma262/#sec-function-instances-name
  1492. if (DESCRIPTORS$2 && !FUNCTION_NAME_EXISTS) {
  1493. defineProperty$2(FunctionPrototype, NAME, {
  1494. configurable: true,
  1495. get: function () {
  1496. try {
  1497. return regExpExec(nameRE, functionToString(this))[1];
  1498. } catch (error) {
  1499. return '';
  1500. }
  1501. }
  1502. });
  1503. }
  1504. var $TypeError = TypeError;
  1505. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1506. var doesNotExceedSafeInteger$1 = function (it) {
  1507. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1508. return it;
  1509. };
  1510. var $$3 = _export;
  1511. var fails$1 = fails$e;
  1512. var isArray = isArray$3;
  1513. var isObject = isObject$8;
  1514. var toObject$1 = toObject$5;
  1515. var lengthOfArrayLike = lengthOfArrayLike$6;
  1516. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1517. var createProperty = createProperty$3;
  1518. var arraySpeciesCreate = arraySpeciesCreate$2;
  1519. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
  1520. var wellKnownSymbol$1 = wellKnownSymbol$8;
  1521. var V8_VERSION = engineV8Version;
  1522. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1523. // We can't use this feature detection in V8 since it causes
  1524. // deoptimization and serious performance degradation
  1525. // https://github.com/zloirock/core-js/issues/679
  1526. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
  1527. var array = [];
  1528. array[IS_CONCAT_SPREADABLE] = false;
  1529. return array.concat()[0] !== array;
  1530. });
  1531. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('concat');
  1532. var isConcatSpreadable = function (O) {
  1533. if (!isObject(O)) return false;
  1534. var spreadable = O[IS_CONCAT_SPREADABLE];
  1535. return spreadable !== undefined ? !!spreadable : isArray(O);
  1536. };
  1537. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1538. // `Array.prototype.concat` method
  1539. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1540. // with adding support of @@isConcatSpreadable and @@species
  1541. $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1542. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1543. concat: function concat(arg) {
  1544. var O = toObject$1(this);
  1545. var A = arraySpeciesCreate(O, 0);
  1546. var n = 0;
  1547. var i, k, length, len, E;
  1548. for (i = -1, length = arguments.length; i < length; i++) {
  1549. E = i === -1 ? O : arguments[i];
  1550. if (isConcatSpreadable(E)) {
  1551. len = lengthOfArrayLike(E);
  1552. doesNotExceedSafeInteger(n + len);
  1553. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1554. } else {
  1555. doesNotExceedSafeInteger(n + 1);
  1556. createProperty(A, n++, E);
  1557. }
  1558. }
  1559. A.length = n;
  1560. return A;
  1561. }
  1562. });
  1563. var objectDefineProperties = {};
  1564. var internalObjectKeys = objectKeysInternal;
  1565. var enumBugKeys$1 = enumBugKeys$3;
  1566. // `Object.keys` method
  1567. // https://tc39.es/ecma262/#sec-object.keys
  1568. // eslint-disable-next-line es/no-object-keys -- safe
  1569. var objectKeys$2 = Object.keys || function keys(O) {
  1570. return internalObjectKeys(O, enumBugKeys$1);
  1571. };
  1572. var DESCRIPTORS$1 = descriptors;
  1573. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1574. var definePropertyModule = objectDefineProperty;
  1575. var anObject$1 = anObject$4;
  1576. var toIndexedObject = toIndexedObject$6;
  1577. var objectKeys$1 = objectKeys$2;
  1578. // `Object.defineProperties` method
  1579. // https://tc39.es/ecma262/#sec-object.defineproperties
  1580. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1581. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1582. anObject$1(O);
  1583. var props = toIndexedObject(Properties);
  1584. var keys = objectKeys$1(Properties);
  1585. var length = keys.length;
  1586. var index = 0;
  1587. var key;
  1588. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1589. return O;
  1590. };
  1591. var getBuiltIn = getBuiltIn$5;
  1592. var html$1 = getBuiltIn('document', 'documentElement');
  1593. /* global ActiveXObject -- old IE, WSH */
  1594. var anObject = anObject$4;
  1595. var definePropertiesModule = objectDefineProperties;
  1596. var enumBugKeys = enumBugKeys$3;
  1597. var hiddenKeys = hiddenKeys$4;
  1598. var html = html$1;
  1599. var documentCreateElement = documentCreateElement$2;
  1600. var sharedKey = sharedKey$2;
  1601. var GT = '>';
  1602. var LT = '<';
  1603. var PROTOTYPE = 'prototype';
  1604. var SCRIPT = 'script';
  1605. var IE_PROTO = sharedKey('IE_PROTO');
  1606. var EmptyConstructor = function () { /* empty */ };
  1607. var scriptTag = function (content) {
  1608. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1609. };
  1610. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1611. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1612. activeXDocument.write(scriptTag(''));
  1613. activeXDocument.close();
  1614. var temp = activeXDocument.parentWindow.Object;
  1615. activeXDocument = null; // avoid memory leak
  1616. return temp;
  1617. };
  1618. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1619. var NullProtoObjectViaIFrame = function () {
  1620. // Thrash, waste and sodomy: IE GC bug
  1621. var iframe = documentCreateElement('iframe');
  1622. var JS = 'java' + SCRIPT + ':';
  1623. var iframeDocument;
  1624. iframe.style.display = 'none';
  1625. html.appendChild(iframe);
  1626. // https://github.com/zloirock/core-js/issues/475
  1627. iframe.src = String(JS);
  1628. iframeDocument = iframe.contentWindow.document;
  1629. iframeDocument.open();
  1630. iframeDocument.write(scriptTag('document.F=Object'));
  1631. iframeDocument.close();
  1632. return iframeDocument.F;
  1633. };
  1634. // Check for document.domain and active x support
  1635. // No need to use active x approach when document.domain is not set
  1636. // see https://github.com/es-shims/es5-shim/issues/150
  1637. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1638. // avoid IE GC bug
  1639. var activeXDocument;
  1640. var NullProtoObject = function () {
  1641. try {
  1642. activeXDocument = new ActiveXObject('htmlfile');
  1643. } catch (error) { /* ignore */ }
  1644. NullProtoObject = typeof document != 'undefined'
  1645. ? document.domain && activeXDocument
  1646. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1647. : NullProtoObjectViaIFrame()
  1648. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1649. var length = enumBugKeys.length;
  1650. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1651. return NullProtoObject();
  1652. };
  1653. hiddenKeys[IE_PROTO] = true;
  1654. // `Object.create` method
  1655. // https://tc39.es/ecma262/#sec-object.create
  1656. // eslint-disable-next-line es/no-object-create -- safe
  1657. var objectCreate = Object.create || function create(O, Properties) {
  1658. var result;
  1659. if (O !== null) {
  1660. EmptyConstructor[PROTOTYPE] = anObject(O);
  1661. result = new EmptyConstructor();
  1662. EmptyConstructor[PROTOTYPE] = null;
  1663. // add "__proto__" for Object.getPrototypeOf polyfill
  1664. result[IE_PROTO] = O;
  1665. } else result = NullProtoObject();
  1666. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1667. };
  1668. var wellKnownSymbol = wellKnownSymbol$8;
  1669. var create = objectCreate;
  1670. var defineProperty$1 = objectDefineProperty.f;
  1671. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1672. var ArrayPrototype = Array.prototype;
  1673. // Array.prototype[@@unscopables]
  1674. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1675. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1676. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1677. configurable: true,
  1678. value: create(null)
  1679. });
  1680. }
  1681. // add a key to Array.prototype[@@unscopables]
  1682. var addToUnscopables$1 = function (key) {
  1683. ArrayPrototype[UNSCOPABLES][key] = true;
  1684. };
  1685. var $$2 = _export;
  1686. var $find = arrayIteration.find;
  1687. var addToUnscopables = addToUnscopables$1;
  1688. var FIND = 'find';
  1689. var SKIPS_HOLES = true;
  1690. // Shouldn't skip holes
  1691. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1692. // `Array.prototype.find` method
  1693. // https://tc39.es/ecma262/#sec-array.prototype.find
  1694. $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1695. find: function find(callbackfn /* , that = undefined */) {
  1696. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1697. }
  1698. });
  1699. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1700. addToUnscopables(FIND);
  1701. var $$1 = _export;
  1702. var $filter = arrayIteration.filter;
  1703. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
  1704. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1705. // `Array.prototype.filter` method
  1706. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1707. // with adding support of @@species
  1708. $$1({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1709. filter: function filter(callbackfn /* , thisArg */) {
  1710. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1711. }
  1712. });
  1713. var DESCRIPTORS = descriptors;
  1714. var uncurryThis = functionUncurryThis;
  1715. var call = functionCall;
  1716. var fails = fails$e;
  1717. var objectKeys = objectKeys$2;
  1718. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1719. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1720. var toObject = toObject$5;
  1721. var IndexedObject = indexedObject;
  1722. // eslint-disable-next-line es/no-object-assign -- safe
  1723. var $assign = Object.assign;
  1724. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1725. var defineProperty = Object.defineProperty;
  1726. var concat = uncurryThis([].concat);
  1727. // `Object.assign` method
  1728. // https://tc39.es/ecma262/#sec-object.assign
  1729. var objectAssign = !$assign || fails(function () {
  1730. // should have correct order of operations (Edge bug)
  1731. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1732. enumerable: true,
  1733. get: function () {
  1734. defineProperty(this, 'b', {
  1735. value: 3,
  1736. enumerable: false
  1737. });
  1738. }
  1739. }), { b: 2 })).b !== 1) return true;
  1740. // should work with symbols and should have deterministic property order (V8 bug)
  1741. var A = {};
  1742. var B = {};
  1743. // eslint-disable-next-line es/no-symbol -- safe
  1744. var symbol = Symbol();
  1745. var alphabet = 'abcdefghijklmnopqrst';
  1746. A[symbol] = 7;
  1747. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1748. return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
  1749. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1750. var T = toObject(target);
  1751. var argumentsLength = arguments.length;
  1752. var index = 1;
  1753. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1754. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1755. while (argumentsLength > index) {
  1756. var S = IndexedObject(arguments[index++]);
  1757. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1758. var length = keys.length;
  1759. var j = 0;
  1760. var key;
  1761. while (length > j) {
  1762. key = keys[j++];
  1763. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1764. }
  1765. } return T;
  1766. } : $assign;
  1767. var $ = _export;
  1768. var assign = objectAssign;
  1769. // `Object.assign` method
  1770. // https://tc39.es/ecma262/#sec-object.assign
  1771. // eslint-disable-next-line es/no-object-assign -- required for testing
  1772. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1773. assign: assign
  1774. });
  1775. /**
  1776. * @author: Yura Knoxville
  1777. * @version: v1.1.0
  1778. */
  1779. var initBodyCaller;
  1780. var groupBy = function groupBy(array, f) {
  1781. var tmpGroups = {};
  1782. array.forEach(function (o) {
  1783. var groups = f(o);
  1784. tmpGroups[groups] = tmpGroups[groups] || [];
  1785. tmpGroups[groups].push(o);
  1786. });
  1787. return tmpGroups;
  1788. };
  1789. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
  1790. collapseGroup: {
  1791. bootstrap3: 'glyphicon-chevron-up',
  1792. bootstrap5: 'bi-chevron-up',
  1793. materialize: 'arrow_drop_down'
  1794. }[$__default["default"].fn.bootstrapTable.theme] || 'fa-angle-up',
  1795. expandGroup: {
  1796. bootstrap3: 'glyphicon-chevron-down',
  1797. bootstrap5: 'bi-chevron-down',
  1798. materialize: 'arrow_drop_up'
  1799. }[$__default["default"].fn.bootstrapTable.theme] || 'fa-angle-down'
  1800. });
  1801. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1802. groupBy: false,
  1803. groupByField: '',
  1804. groupByFormatter: undefined,
  1805. groupByToggle: false,
  1806. groupByShowToggleIcon: false,
  1807. groupByCollapsedGroups: []
  1808. });
  1809. var Utils = $__default["default"].fn.bootstrapTable.utils;
  1810. var BootstrapTable = $__default["default"].fn.bootstrapTable.Constructor;
  1811. var _initSort = BootstrapTable.prototype.initSort;
  1812. var _initBody = BootstrapTable.prototype.initBody;
  1813. var _updateSelected = BootstrapTable.prototype.updateSelected;
  1814. BootstrapTable.prototype.initSort = function () {
  1815. var _this = this;
  1816. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1817. args[_key] = arguments[_key];
  1818. }
  1819. _initSort.apply(this, Array.prototype.slice.apply(args));
  1820. var that = this;
  1821. this.tableGroups = [];
  1822. if (this.options.groupBy && this.options.groupByField !== '') {
  1823. if (this.options.sortName !== this.options.groupByField) {
  1824. if (this.options.customSort) {
  1825. Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]);
  1826. } else {
  1827. this.options.data.sort(function (a, b) {
  1828. var groupByFields = _this.getGroupByFields();
  1829. var fieldValuesA = [];
  1830. var fieldValuesB = [];
  1831. $__default["default"].each(groupByFields, function (i, field) {
  1832. fieldValuesA.push(a[field]);
  1833. fieldValuesB.push(b[field]);
  1834. });
  1835. a = fieldValuesA.join();
  1836. b = fieldValuesB.join();
  1837. return a.localeCompare(b, undefined, {
  1838. numeric: true
  1839. });
  1840. });
  1841. }
  1842. }
  1843. var groups = groupBy(that.data, function (item) {
  1844. var groupByFields = _this.getGroupByFields();
  1845. var groupValues = [];
  1846. $__default["default"].each(groupByFields, function (i, field) {
  1847. var value_ = Utils.getItemField(item, field, that.options.escape, item.escape);
  1848. groupValues.push(value_);
  1849. });
  1850. return groupValues.join(', ');
  1851. });
  1852. var index = 0;
  1853. $__default["default"].each(groups, function (key, value) {
  1854. _this.tableGroups.push({
  1855. id: index,
  1856. name: key,
  1857. data: value
  1858. });
  1859. value.forEach(function (item) {
  1860. if (!item._data) {
  1861. item._data = {};
  1862. }
  1863. if (_this.isCollapsed(key, value)) {
  1864. item._class += ' hidden';
  1865. }
  1866. item._data['parent-index'] = index;
  1867. });
  1868. index++;
  1869. });
  1870. }
  1871. };
  1872. BootstrapTable.prototype.initBody = function () {
  1873. var _this2 = this;
  1874. initBodyCaller = true;
  1875. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1876. args[_key2] = arguments[_key2];
  1877. }
  1878. _initBody.apply(this, Array.prototype.slice.apply(args));
  1879. if (this.options.groupBy && this.options.groupByField !== '') {
  1880. var that = this;
  1881. var checkBox = false;
  1882. var visibleColumns = 0;
  1883. this.columns.forEach(function (column) {
  1884. if (column.checkbox) {
  1885. checkBox = true;
  1886. } else if (column.visible) {
  1887. visibleColumns += 1;
  1888. }
  1889. });
  1890. if (this.options.detailView && !this.options.cardView) {
  1891. visibleColumns += 1;
  1892. }
  1893. this.tableGroups.forEach(function (item) {
  1894. var html = [];
  1895. html.push(Utils.sprintf('<tr class="info group-by %s" data-group-index="%s">', _this2.options.groupByToggle ? 'expanded' : '', item.id));
  1896. if (that.options.detailView && !that.options.cardView) {
  1897. html.push('<td class="detail"></td>');
  1898. }
  1899. if (checkBox) {
  1900. html.push('<td class="bs-checkbox">', '<input name="btSelectGroup" type="checkbox" />', '</td>');
  1901. }
  1902. var formattedValue = item.name;
  1903. if (that.options.groupByFormatter !== undefined) {
  1904. formattedValue = Utils.calculateObjectValue(that.options, that.options.groupByFormatter, [item.name, item.id, item.data]);
  1905. }
  1906. html.push('<td', Utils.sprintf(' colspan="%s"', visibleColumns), '>', formattedValue);
  1907. var icon = _this2.options.icons.collapseGroup;
  1908. if (_this2.isCollapsed(item.name, item.data)) {
  1909. icon = _this2.options.icons.expandGroup;
  1910. }
  1911. if (_this2.options.groupByToggle && _this2.options.groupByShowToggleIcon) {
  1912. html.push("<span class=\"float-right ".concat(_this2.options.iconsPrefix, " ").concat(icon, "\"></span>"));
  1913. }
  1914. html.push('</td></tr>');
  1915. that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($__default["default"](html.join('')));
  1916. });
  1917. this.$selectGroup = [];
  1918. this.$body.find('[name="btSelectGroup"]').each(function () {
  1919. var self = $__default["default"](this);
  1920. that.$selectGroup.push({
  1921. group: self,
  1922. item: that.$selectItem.filter(function () {
  1923. return $__default["default"](this).closest('tr').data('parent-index') === self.closest('tr').data('group-index');
  1924. })
  1925. });
  1926. });
  1927. if (this.options.groupByToggle) {
  1928. this.$container.off('click', '.group-by').on('click', '.group-by', function () {
  1929. var $this = $__default["default"](this);
  1930. var groupIndex = $this.closest('tr').data('group-index');
  1931. var $groupRows = that.$body.find("tr[data-parent-index=".concat(groupIndex, "]"));
  1932. $this.toggleClass('expanded collapsed');
  1933. $this.find('span').toggleClass("".concat(that.options.icons.collapseGroup, " ").concat(that.options.icons.expandGroup));
  1934. $groupRows.toggleClass('hidden');
  1935. $groupRows.each(function (i, element) {
  1936. return that.collapseRow($__default["default"](element).data('index'));
  1937. });
  1938. });
  1939. }
  1940. this.$container.off('click', '[name="btSelectGroup"]').on('click', '[name="btSelectGroup"]', function (event) {
  1941. event.stopImmediatePropagation();
  1942. var self = $__default["default"](this);
  1943. var checked = self.prop('checked');
  1944. that[checked ? 'checkGroup' : 'uncheckGroup']($__default["default"](this).closest('tr').data('group-index'));
  1945. });
  1946. }
  1947. initBodyCaller = false;
  1948. this.updateSelected();
  1949. };
  1950. BootstrapTable.prototype.updateSelected = function () {
  1951. if (!initBodyCaller) {
  1952. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1953. args[_key3] = arguments[_key3];
  1954. }
  1955. _updateSelected.apply(this, Array.prototype.slice.apply(args));
  1956. if (this.options.groupBy && this.options.groupByField !== '') {
  1957. this.$selectGroup.forEach(function (item) {
  1958. var checkGroup = item.item.filter(':enabled').length === item.item.filter(':enabled').filter(':checked').length;
  1959. item.group.prop('checked', checkGroup);
  1960. });
  1961. }
  1962. }
  1963. };
  1964. BootstrapTable.prototype.checkGroup = function (index) {
  1965. this.checkGroup_(index, true);
  1966. };
  1967. BootstrapTable.prototype.uncheckGroup = function (index) {
  1968. this.checkGroup_(index, false);
  1969. };
  1970. BootstrapTable.prototype.isCollapsed = function (groupKey, items) {
  1971. if (this.options.groupByCollapsedGroups) {
  1972. var collapsedGroups = Utils.calculateObjectValue(this, this.options.groupByCollapsedGroups, [groupKey, items], true);
  1973. if ($__default["default"].inArray(groupKey, collapsedGroups) > -1) {
  1974. return true;
  1975. }
  1976. }
  1977. return false;
  1978. };
  1979. BootstrapTable.prototype.checkGroup_ = function (index, checked) {
  1980. var rowsBefore = this.getSelections();
  1981. var filter = function filter() {
  1982. return $__default["default"](this).closest('tr').data('parent-index') === index;
  1983. };
  1984. this.$selectItem.filter(filter).prop('checked', checked);
  1985. this.updateRows();
  1986. this.updateSelected();
  1987. var rowsAfter = this.getSelections();
  1988. if (checked) {
  1989. this.trigger('check-all', rowsAfter, rowsBefore);
  1990. return;
  1991. }
  1992. this.trigger('uncheck-all', rowsAfter, rowsBefore);
  1993. };
  1994. BootstrapTable.prototype.getGroupByFields = function () {
  1995. var groupByFields = this.options.groupByField;
  1996. if (!$__default["default"].isArray(this.options.groupByField)) {
  1997. groupByFields = [this.options.groupByField];
  1998. }
  1999. return groupByFields;
  2000. };
  2001. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2002. _inherits(_class, _$$BootstrapTable);
  2003. var _super = _createSuper(_class);
  2004. function _class() {
  2005. _classCallCheck(this, _class);
  2006. return _super.apply(this, arguments);
  2007. }
  2008. _createClass(_class, [{
  2009. key: "scrollTo",
  2010. value: function scrollTo(params) {
  2011. if (this.options.groupBy) {
  2012. var options = {
  2013. unit: 'px',
  2014. value: 0
  2015. };
  2016. if (_typeof(params) === 'object') {
  2017. options = Object.assign(options, params);
  2018. }
  2019. if (options.unit === 'rows') {
  2020. var scrollTo = 0;
  2021. this.$body.find("> tr:not(.group-by):lt(".concat(options.value, ")")).each(function (i, el) {
  2022. scrollTo += $__default["default"](el).outerHeight(true);
  2023. });
  2024. var $targetColumn = this.$body.find("> tr:not(.group-by):eq(".concat(options.value, ")"));
  2025. $targetColumn.prevAll('.group-by').each(function (i, el) {
  2026. scrollTo += $__default["default"](el).outerHeight(true);
  2027. });
  2028. this.$tableBody.scrollTop(scrollTo);
  2029. return;
  2030. }
  2031. }
  2032. _get(_getPrototypeOf(_class.prototype), "scrollTo", this).call(this, params);
  2033. }
  2034. }]);
  2035. return _class;
  2036. }($__default["default"].BootstrapTable);
  2037. }));