bootstrap-table-reorder-rows.js 61 KB

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