bootstrap-table-editable.js 93 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678
  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 ($$6) { 'use strict';
  6. function _iterableToArrayLimit(r, l) {
  7. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  8. if (null != t) {
  9. var e,
  10. n,
  11. i,
  12. u,
  13. a = [],
  14. f = !0,
  15. o = !1;
  16. try {
  17. if (i = (t = t.call(r)).next, 0 === l) {
  18. if (Object(t) !== t) return;
  19. f = !1;
  20. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  21. } catch (r) {
  22. o = !0, n = r;
  23. } finally {
  24. try {
  25. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  26. } finally {
  27. if (o) throw n;
  28. }
  29. }
  30. return a;
  31. }
  32. }
  33. function _toPrimitive(t, r) {
  34. if ("object" != typeof t || !t) return t;
  35. var e = t[Symbol.toPrimitive];
  36. if (void 0 !== e) {
  37. var i = e.call(t, r || "default");
  38. if ("object" != typeof i) return i;
  39. throw new TypeError("@@toPrimitive must return a primitive value.");
  40. }
  41. return ("string" === r ? String : Number)(t);
  42. }
  43. function _toPropertyKey(t) {
  44. var i = _toPrimitive(t, "string");
  45. return "symbol" == typeof i ? i : String(i);
  46. }
  47. function _classCallCheck(instance, Constructor) {
  48. if (!(instance instanceof Constructor)) {
  49. throw new TypeError("Cannot call a class as a function");
  50. }
  51. }
  52. function _defineProperties(target, props) {
  53. for (var i = 0; i < props.length; i++) {
  54. var descriptor = props[i];
  55. descriptor.enumerable = descriptor.enumerable || false;
  56. descriptor.configurable = true;
  57. if ("value" in descriptor) descriptor.writable = true;
  58. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  59. }
  60. }
  61. function _createClass(Constructor, protoProps, staticProps) {
  62. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  63. if (staticProps) _defineProperties(Constructor, staticProps);
  64. Object.defineProperty(Constructor, "prototype", {
  65. writable: false
  66. });
  67. return Constructor;
  68. }
  69. function _inherits(subClass, superClass) {
  70. if (typeof superClass !== "function" && superClass !== null) {
  71. throw new TypeError("Super expression must either be null or a function");
  72. }
  73. subClass.prototype = Object.create(superClass && superClass.prototype, {
  74. constructor: {
  75. value: subClass,
  76. writable: true,
  77. configurable: true
  78. }
  79. });
  80. Object.defineProperty(subClass, "prototype", {
  81. writable: false
  82. });
  83. if (superClass) _setPrototypeOf(subClass, superClass);
  84. }
  85. function _getPrototypeOf(o) {
  86. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  87. return o.__proto__ || Object.getPrototypeOf(o);
  88. };
  89. return _getPrototypeOf(o);
  90. }
  91. function _setPrototypeOf(o, p) {
  92. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  93. o.__proto__ = p;
  94. return o;
  95. };
  96. return _setPrototypeOf(o, p);
  97. }
  98. function _isNativeReflectConstruct() {
  99. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  100. if (Reflect.construct.sham) return false;
  101. if (typeof Proxy === "function") return true;
  102. try {
  103. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  104. return true;
  105. } catch (e) {
  106. return false;
  107. }
  108. }
  109. function _assertThisInitialized(self) {
  110. if (self === void 0) {
  111. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  112. }
  113. return self;
  114. }
  115. function _possibleConstructorReturn(self, call) {
  116. if (call && (typeof call === "object" || typeof call === "function")) {
  117. return call;
  118. } else if (call !== void 0) {
  119. throw new TypeError("Derived constructors may only return object or undefined");
  120. }
  121. return _assertThisInitialized(self);
  122. }
  123. function _createSuper(Derived) {
  124. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  125. return function _createSuperInternal() {
  126. var Super = _getPrototypeOf(Derived),
  127. result;
  128. if (hasNativeReflectConstruct) {
  129. var NewTarget = _getPrototypeOf(this).constructor;
  130. result = Reflect.construct(Super, arguments, NewTarget);
  131. } else {
  132. result = Super.apply(this, arguments);
  133. }
  134. return _possibleConstructorReturn(this, result);
  135. };
  136. }
  137. function _superPropBase(object, property) {
  138. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  139. object = _getPrototypeOf(object);
  140. if (object === null) break;
  141. }
  142. return object;
  143. }
  144. function _get() {
  145. if (typeof Reflect !== "undefined" && Reflect.get) {
  146. _get = Reflect.get.bind();
  147. } else {
  148. _get = function _get(target, property, receiver) {
  149. var base = _superPropBase(target, property);
  150. if (!base) return;
  151. var desc = Object.getOwnPropertyDescriptor(base, property);
  152. if (desc.get) {
  153. return desc.get.call(arguments.length < 3 ? target : receiver);
  154. }
  155. return desc.value;
  156. };
  157. }
  158. return _get.apply(this, arguments);
  159. }
  160. function _slicedToArray(arr, i) {
  161. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
  162. }
  163. function _arrayWithHoles(arr) {
  164. if (Array.isArray(arr)) return arr;
  165. }
  166. function _unsupportedIterableToArray(o, minLen) {
  167. if (!o) return;
  168. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  169. var n = Object.prototype.toString.call(o).slice(8, -1);
  170. if (n === "Object" && o.constructor) n = o.constructor.name;
  171. if (n === "Map" || n === "Set") return Array.from(o);
  172. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  173. }
  174. function _arrayLikeToArray(arr, len) {
  175. if (len == null || len > arr.length) len = arr.length;
  176. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  177. return arr2;
  178. }
  179. function _nonIterableRest() {
  180. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  181. }
  182. function _createForOfIteratorHelper(o, allowArrayLike) {
  183. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  184. if (!it) {
  185. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  186. if (it) o = it;
  187. var i = 0;
  188. var F = function () {};
  189. return {
  190. s: F,
  191. n: function () {
  192. if (i >= o.length) return {
  193. done: true
  194. };
  195. return {
  196. done: false,
  197. value: o[i++]
  198. };
  199. },
  200. e: function (e) {
  201. throw e;
  202. },
  203. f: F
  204. };
  205. }
  206. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  207. }
  208. var normalCompletion = true,
  209. didErr = false,
  210. err;
  211. return {
  212. s: function () {
  213. it = it.call(o);
  214. },
  215. n: function () {
  216. var step = it.next();
  217. normalCompletion = step.done;
  218. return step;
  219. },
  220. e: function (e) {
  221. didErr = true;
  222. err = e;
  223. },
  224. f: function () {
  225. try {
  226. if (!normalCompletion && it.return != null) it.return();
  227. } finally {
  228. if (didErr) throw err;
  229. }
  230. }
  231. };
  232. }
  233. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  234. var check = function (it) {
  235. return it && it.Math === Math && it;
  236. };
  237. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  238. var global$e =
  239. // eslint-disable-next-line es/no-global-this -- safe
  240. check(typeof globalThis == 'object' && globalThis) ||
  241. check(typeof window == 'object' && window) ||
  242. // eslint-disable-next-line no-restricted-globals -- safe
  243. check(typeof self == 'object' && self) ||
  244. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  245. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  246. // eslint-disable-next-line no-new-func -- fallback
  247. (function () { return this; })() || Function('return this')();
  248. var objectGetOwnPropertyDescriptor = {};
  249. var fails$k = function (exec) {
  250. try {
  251. return !!exec();
  252. } catch (error) {
  253. return true;
  254. }
  255. };
  256. var fails$j = fails$k;
  257. // Detect IE8's incomplete defineProperty implementation
  258. var descriptors = !fails$j(function () {
  259. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  260. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  261. });
  262. var fails$i = fails$k;
  263. var functionBindNative = !fails$i(function () {
  264. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  265. var test = (function () { /* empty */ }).bind();
  266. // eslint-disable-next-line no-prototype-builtins -- safe
  267. return typeof test != 'function' || test.hasOwnProperty('prototype');
  268. });
  269. var NATIVE_BIND$3 = functionBindNative;
  270. var call$9 = Function.prototype.call;
  271. var functionCall = NATIVE_BIND$3 ? call$9.bind(call$9) : function () {
  272. return call$9.apply(call$9, arguments);
  273. };
  274. var objectPropertyIsEnumerable = {};
  275. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  276. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  277. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  278. // Nashorn ~ JDK8 bug
  279. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  280. // `Object.prototype.propertyIsEnumerable` method implementation
  281. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  282. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  283. var descriptor = getOwnPropertyDescriptor$1(this, V);
  284. return !!descriptor && descriptor.enumerable;
  285. } : $propertyIsEnumerable$1;
  286. var createPropertyDescriptor$3 = function (bitmap, value) {
  287. return {
  288. enumerable: !(bitmap & 1),
  289. configurable: !(bitmap & 2),
  290. writable: !(bitmap & 4),
  291. value: value
  292. };
  293. };
  294. var NATIVE_BIND$2 = functionBindNative;
  295. var FunctionPrototype$2 = Function.prototype;
  296. var call$8 = FunctionPrototype$2.call;
  297. var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$8, call$8);
  298. var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
  299. return function () {
  300. return call$8.apply(fn, arguments);
  301. };
  302. };
  303. var uncurryThis$k = functionUncurryThis;
  304. var toString$6 = uncurryThis$k({}.toString);
  305. var stringSlice$5 = uncurryThis$k(''.slice);
  306. var classofRaw$2 = function (it) {
  307. return stringSlice$5(toString$6(it), 8, -1);
  308. };
  309. var uncurryThis$j = functionUncurryThis;
  310. var fails$h = fails$k;
  311. var classof$6 = classofRaw$2;
  312. var $Object$4 = Object;
  313. var split = uncurryThis$j(''.split);
  314. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  315. var indexedObject = fails$h(function () {
  316. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  317. // eslint-disable-next-line no-prototype-builtins -- safe
  318. return !$Object$4('z').propertyIsEnumerable(0);
  319. }) ? function (it) {
  320. return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
  321. } : $Object$4;
  322. // we can't use just `it == null` since of `document.all` special case
  323. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  324. var isNullOrUndefined$3 = function (it) {
  325. return it === null || it === undefined;
  326. };
  327. var isNullOrUndefined$2 = isNullOrUndefined$3;
  328. var $TypeError$7 = TypeError;
  329. // `RequireObjectCoercible` abstract operation
  330. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  331. var requireObjectCoercible$4 = function (it) {
  332. if (isNullOrUndefined$2(it)) throw new $TypeError$7("Can't call method on " + it);
  333. return it;
  334. };
  335. // toObject with fallback for non-array-like ES3 strings
  336. var IndexedObject$2 = indexedObject;
  337. var requireObjectCoercible$3 = requireObjectCoercible$4;
  338. var toIndexedObject$5 = function (it) {
  339. return IndexedObject$2(requireObjectCoercible$3(it));
  340. };
  341. var documentAll$2 = typeof document == 'object' && document.all;
  342. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  343. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  344. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  345. var documentAll_1 = {
  346. all: documentAll$2,
  347. IS_HTMLDDA: IS_HTMLDDA
  348. };
  349. var $documentAll$1 = documentAll_1;
  350. var documentAll$1 = $documentAll$1.all;
  351. // `IsCallable` abstract operation
  352. // https://tc39.es/ecma262/#sec-iscallable
  353. var isCallable$f = $documentAll$1.IS_HTMLDDA ? function (argument) {
  354. return typeof argument == 'function' || argument === documentAll$1;
  355. } : function (argument) {
  356. return typeof argument == 'function';
  357. };
  358. var isCallable$e = isCallable$f;
  359. var $documentAll = documentAll_1;
  360. var documentAll = $documentAll.all;
  361. var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
  362. return typeof it == 'object' ? it !== null : isCallable$e(it) || it === documentAll;
  363. } : function (it) {
  364. return typeof it == 'object' ? it !== null : isCallable$e(it);
  365. };
  366. var global$d = global$e;
  367. var isCallable$d = isCallable$f;
  368. var aFunction = function (argument) {
  369. return isCallable$d(argument) ? argument : undefined;
  370. };
  371. var getBuiltIn$4 = function (namespace, method) {
  372. return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
  373. };
  374. var uncurryThis$i = functionUncurryThis;
  375. var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
  376. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  377. var global$c = global$e;
  378. var userAgent = engineUserAgent;
  379. var process = global$c.process;
  380. var Deno = global$c.Deno;
  381. var versions = process && process.versions || Deno && Deno.version;
  382. var v8 = versions && versions.v8;
  383. var match, version;
  384. if (v8) {
  385. match = v8.split('.');
  386. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  387. // but their correct versions are not interesting for us
  388. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  389. }
  390. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  391. // so check `userAgent` even if `.v8` exists, but 0
  392. if (!version && userAgent) {
  393. match = userAgent.match(/Edge\/(\d+)/);
  394. if (!match || match[1] >= 74) {
  395. match = userAgent.match(/Chrome\/(\d+)/);
  396. if (match) version = +match[1];
  397. }
  398. }
  399. var engineV8Version = version;
  400. /* eslint-disable es/no-symbol -- required for testing */
  401. var V8_VERSION$2 = engineV8Version;
  402. var fails$g = fails$k;
  403. var global$b = global$e;
  404. var $String$4 = global$b.String;
  405. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  406. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
  407. var symbol = Symbol('symbol detection');
  408. // Chrome 38 Symbol has incorrect toString conversion
  409. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  410. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  411. // of course, fail.
  412. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  413. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  414. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  415. });
  416. /* eslint-disable es/no-symbol -- required for testing */
  417. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  418. var useSymbolAsUid = NATIVE_SYMBOL$1
  419. && !Symbol.sham
  420. && typeof Symbol.iterator == 'symbol';
  421. var getBuiltIn$3 = getBuiltIn$4;
  422. var isCallable$c = isCallable$f;
  423. var isPrototypeOf = objectIsPrototypeOf;
  424. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  425. var $Object$3 = Object;
  426. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  427. return typeof it == 'symbol';
  428. } : function (it) {
  429. var $Symbol = getBuiltIn$3('Symbol');
  430. return isCallable$c($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
  431. };
  432. var $String$3 = String;
  433. var tryToString$1 = function (argument) {
  434. try {
  435. return $String$3(argument);
  436. } catch (error) {
  437. return 'Object';
  438. }
  439. };
  440. var isCallable$b = isCallable$f;
  441. var tryToString = tryToString$1;
  442. var $TypeError$6 = TypeError;
  443. // `Assert: IsCallable(argument) is true`
  444. var aCallable$2 = function (argument) {
  445. if (isCallable$b(argument)) return argument;
  446. throw new $TypeError$6(tryToString(argument) + ' is not a function');
  447. };
  448. var aCallable$1 = aCallable$2;
  449. var isNullOrUndefined$1 = isNullOrUndefined$3;
  450. // `GetMethod` abstract operation
  451. // https://tc39.es/ecma262/#sec-getmethod
  452. var getMethod$2 = function (V, P) {
  453. var func = V[P];
  454. return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
  455. };
  456. var call$7 = functionCall;
  457. var isCallable$a = isCallable$f;
  458. var isObject$6 = isObject$7;
  459. var $TypeError$5 = TypeError;
  460. // `OrdinaryToPrimitive` abstract operation
  461. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  462. var ordinaryToPrimitive$1 = function (input, pref) {
  463. var fn, val;
  464. if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
  465. if (isCallable$a(fn = input.valueOf) && !isObject$6(val = call$7(fn, input))) return val;
  466. if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$7(fn, input))) return val;
  467. throw new $TypeError$5("Can't convert object to primitive value");
  468. };
  469. var shared$4 = {exports: {}};
  470. var global$a = global$e;
  471. // eslint-disable-next-line es/no-object-defineproperty -- safe
  472. var defineProperty$3 = Object.defineProperty;
  473. var defineGlobalProperty$3 = function (key, value) {
  474. try {
  475. defineProperty$3(global$a, key, { value: value, configurable: true, writable: true });
  476. } catch (error) {
  477. global$a[key] = value;
  478. } return value;
  479. };
  480. var global$9 = global$e;
  481. var defineGlobalProperty$2 = defineGlobalProperty$3;
  482. var SHARED = '__core-js_shared__';
  483. var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
  484. var sharedStore = store$3;
  485. var store$2 = sharedStore;
  486. (shared$4.exports = function (key, value) {
  487. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  488. })('versions', []).push({
  489. version: '3.34.0',
  490. mode: 'global',
  491. copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
  492. license: 'https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE',
  493. source: 'https://github.com/zloirock/core-js'
  494. });
  495. var sharedExports = shared$4.exports;
  496. var requireObjectCoercible$2 = requireObjectCoercible$4;
  497. var $Object$2 = Object;
  498. // `ToObject` abstract operation
  499. // https://tc39.es/ecma262/#sec-toobject
  500. var toObject$6 = function (argument) {
  501. return $Object$2(requireObjectCoercible$2(argument));
  502. };
  503. var uncurryThis$h = functionUncurryThis;
  504. var toObject$5 = toObject$6;
  505. var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
  506. // `HasOwnProperty` abstract operation
  507. // https://tc39.es/ecma262/#sec-hasownproperty
  508. // eslint-disable-next-line es/no-object-hasown -- safe
  509. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  510. return hasOwnProperty(toObject$5(it), key);
  511. };
  512. var uncurryThis$g = functionUncurryThis;
  513. var id = 0;
  514. var postfix = Math.random();
  515. var toString$5 = uncurryThis$g(1.0.toString);
  516. var uid$2 = function (key) {
  517. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
  518. };
  519. var global$8 = global$e;
  520. var shared$3 = sharedExports;
  521. var hasOwn$7 = hasOwnProperty_1;
  522. var uid$1 = uid$2;
  523. var NATIVE_SYMBOL = symbolConstructorDetection;
  524. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  525. var Symbol$1 = global$8.Symbol;
  526. var WellKnownSymbolsStore = shared$3('wks');
  527. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  528. var wellKnownSymbol$9 = function (name) {
  529. if (!hasOwn$7(WellKnownSymbolsStore, name)) {
  530. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name)
  531. ? Symbol$1[name]
  532. : createWellKnownSymbol('Symbol.' + name);
  533. } return WellKnownSymbolsStore[name];
  534. };
  535. var call$6 = functionCall;
  536. var isObject$5 = isObject$7;
  537. var isSymbol$1 = isSymbol$2;
  538. var getMethod$1 = getMethod$2;
  539. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  540. var wellKnownSymbol$8 = wellKnownSymbol$9;
  541. var $TypeError$4 = TypeError;
  542. var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
  543. // `ToPrimitive` abstract operation
  544. // https://tc39.es/ecma262/#sec-toprimitive
  545. var toPrimitive$1 = function (input, pref) {
  546. if (!isObject$5(input) || isSymbol$1(input)) return input;
  547. var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
  548. var result;
  549. if (exoticToPrim) {
  550. if (pref === undefined) pref = 'default';
  551. result = call$6(exoticToPrim, input, pref);
  552. if (!isObject$5(result) || isSymbol$1(result)) return result;
  553. throw new $TypeError$4("Can't convert object to primitive value");
  554. }
  555. if (pref === undefined) pref = 'number';
  556. return ordinaryToPrimitive(input, pref);
  557. };
  558. var toPrimitive = toPrimitive$1;
  559. var isSymbol = isSymbol$2;
  560. // `ToPropertyKey` abstract operation
  561. // https://tc39.es/ecma262/#sec-topropertykey
  562. var toPropertyKey$3 = function (argument) {
  563. var key = toPrimitive(argument, 'string');
  564. return isSymbol(key) ? key : key + '';
  565. };
  566. var global$7 = global$e;
  567. var isObject$4 = isObject$7;
  568. var document$1 = global$7.document;
  569. // typeof document.createElement is 'object' in old IE
  570. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  571. var documentCreateElement$1 = function (it) {
  572. return EXISTS$1 ? document$1.createElement(it) : {};
  573. };
  574. var DESCRIPTORS$9 = descriptors;
  575. var fails$f = fails$k;
  576. var createElement = documentCreateElement$1;
  577. // Thanks to IE8 for its funny defineProperty
  578. var ie8DomDefine = !DESCRIPTORS$9 && !fails$f(function () {
  579. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  580. return Object.defineProperty(createElement('div'), 'a', {
  581. get: function () { return 7; }
  582. }).a !== 7;
  583. });
  584. var DESCRIPTORS$8 = descriptors;
  585. var call$5 = functionCall;
  586. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  587. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  588. var toIndexedObject$4 = toIndexedObject$5;
  589. var toPropertyKey$2 = toPropertyKey$3;
  590. var hasOwn$6 = hasOwnProperty_1;
  591. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  592. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  593. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  594. // `Object.getOwnPropertyDescriptor` method
  595. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  596. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  597. O = toIndexedObject$4(O);
  598. P = toPropertyKey$2(P);
  599. if (IE8_DOM_DEFINE$1) try {
  600. return $getOwnPropertyDescriptor$1(O, P);
  601. } catch (error) { /* empty */ }
  602. if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
  603. };
  604. var objectDefineProperty = {};
  605. var DESCRIPTORS$7 = descriptors;
  606. var fails$e = fails$k;
  607. // V8 ~ Chrome 36-
  608. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  609. var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
  610. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  611. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  612. value: 42,
  613. writable: false
  614. }).prototype !== 42;
  615. });
  616. var isObject$3 = isObject$7;
  617. var $String$2 = String;
  618. var $TypeError$3 = TypeError;
  619. // `Assert: Type(argument) is Object`
  620. var anObject$7 = function (argument) {
  621. if (isObject$3(argument)) return argument;
  622. throw new $TypeError$3($String$2(argument) + ' is not an object');
  623. };
  624. var DESCRIPTORS$6 = descriptors;
  625. var IE8_DOM_DEFINE = ie8DomDefine;
  626. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  627. var anObject$6 = anObject$7;
  628. var toPropertyKey$1 = toPropertyKey$3;
  629. var $TypeError$2 = TypeError;
  630. // eslint-disable-next-line es/no-object-defineproperty -- safe
  631. var $defineProperty = Object.defineProperty;
  632. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  633. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  634. var ENUMERABLE = 'enumerable';
  635. var CONFIGURABLE$1 = 'configurable';
  636. var WRITABLE = 'writable';
  637. // `Object.defineProperty` method
  638. // https://tc39.es/ecma262/#sec-object.defineproperty
  639. objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  640. anObject$6(O);
  641. P = toPropertyKey$1(P);
  642. anObject$6(Attributes);
  643. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  644. var current = $getOwnPropertyDescriptor(O, P);
  645. if (current && current[WRITABLE]) {
  646. O[P] = Attributes.value;
  647. Attributes = {
  648. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  649. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  650. writable: false
  651. };
  652. }
  653. } return $defineProperty(O, P, Attributes);
  654. } : $defineProperty : function defineProperty(O, P, Attributes) {
  655. anObject$6(O);
  656. P = toPropertyKey$1(P);
  657. anObject$6(Attributes);
  658. if (IE8_DOM_DEFINE) try {
  659. return $defineProperty(O, P, Attributes);
  660. } catch (error) { /* empty */ }
  661. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
  662. if ('value' in Attributes) O[P] = Attributes.value;
  663. return O;
  664. };
  665. var DESCRIPTORS$5 = descriptors;
  666. var definePropertyModule$4 = objectDefineProperty;
  667. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  668. var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
  669. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  670. } : function (object, key, value) {
  671. object[key] = value;
  672. return object;
  673. };
  674. var makeBuiltIn$2 = {exports: {}};
  675. var DESCRIPTORS$4 = descriptors;
  676. var hasOwn$5 = hasOwnProperty_1;
  677. var FunctionPrototype$1 = Function.prototype;
  678. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  679. var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
  680. var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
  681. // additional protection from minified / mangled / dropped function names
  682. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  683. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
  684. var functionName = {
  685. EXISTS: EXISTS,
  686. PROPER: PROPER,
  687. CONFIGURABLE: CONFIGURABLE
  688. };
  689. var uncurryThis$f = functionUncurryThis;
  690. var isCallable$9 = isCallable$f;
  691. var store$1 = sharedStore;
  692. var functionToString = uncurryThis$f(Function.toString);
  693. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  694. if (!isCallable$9(store$1.inspectSource)) {
  695. store$1.inspectSource = function (it) {
  696. return functionToString(it);
  697. };
  698. }
  699. var inspectSource$2 = store$1.inspectSource;
  700. var global$6 = global$e;
  701. var isCallable$8 = isCallable$f;
  702. var WeakMap$1 = global$6.WeakMap;
  703. var weakMapBasicDetection = isCallable$8(WeakMap$1) && /native code/.test(String(WeakMap$1));
  704. var shared$2 = sharedExports;
  705. var uid = uid$2;
  706. var keys = shared$2('keys');
  707. var sharedKey$3 = function (key) {
  708. return keys[key] || (keys[key] = uid(key));
  709. };
  710. var hiddenKeys$4 = {};
  711. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  712. var global$5 = global$e;
  713. var isObject$2 = isObject$7;
  714. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  715. var hasOwn$4 = hasOwnProperty_1;
  716. var shared$1 = sharedStore;
  717. var sharedKey$2 = sharedKey$3;
  718. var hiddenKeys$3 = hiddenKeys$4;
  719. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  720. var TypeError$1 = global$5.TypeError;
  721. var WeakMap = global$5.WeakMap;
  722. var set, get, has;
  723. var enforce = function (it) {
  724. return has(it) ? get(it) : set(it, {});
  725. };
  726. var getterFor = function (TYPE) {
  727. return function (it) {
  728. var state;
  729. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  730. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  731. } return state;
  732. };
  733. };
  734. if (NATIVE_WEAK_MAP || shared$1.state) {
  735. var store = shared$1.state || (shared$1.state = new WeakMap());
  736. /* eslint-disable no-self-assign -- prototype methods protection */
  737. store.get = store.get;
  738. store.has = store.has;
  739. store.set = store.set;
  740. /* eslint-enable no-self-assign -- prototype methods protection */
  741. set = function (it, metadata) {
  742. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  743. metadata.facade = it;
  744. store.set(it, metadata);
  745. return metadata;
  746. };
  747. get = function (it) {
  748. return store.get(it) || {};
  749. };
  750. has = function (it) {
  751. return store.has(it);
  752. };
  753. } else {
  754. var STATE = sharedKey$2('state');
  755. hiddenKeys$3[STATE] = true;
  756. set = function (it, metadata) {
  757. if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  758. metadata.facade = it;
  759. createNonEnumerableProperty$2(it, STATE, metadata);
  760. return metadata;
  761. };
  762. get = function (it) {
  763. return hasOwn$4(it, STATE) ? it[STATE] : {};
  764. };
  765. has = function (it) {
  766. return hasOwn$4(it, STATE);
  767. };
  768. }
  769. var internalState = {
  770. set: set,
  771. get: get,
  772. has: has,
  773. enforce: enforce,
  774. getterFor: getterFor
  775. };
  776. var uncurryThis$e = functionUncurryThis;
  777. var fails$d = fails$k;
  778. var isCallable$7 = isCallable$f;
  779. var hasOwn$3 = hasOwnProperty_1;
  780. var DESCRIPTORS$3 = descriptors;
  781. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  782. var inspectSource$1 = inspectSource$2;
  783. var InternalStateModule = internalState;
  784. var enforceInternalState = InternalStateModule.enforce;
  785. var getInternalState$1 = InternalStateModule.get;
  786. var $String$1 = String;
  787. // eslint-disable-next-line es/no-object-defineproperty -- safe
  788. var defineProperty$2 = Object.defineProperty;
  789. var stringSlice$4 = uncurryThis$e(''.slice);
  790. var replace$2 = uncurryThis$e(''.replace);
  791. var join = uncurryThis$e([].join);
  792. var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$d(function () {
  793. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  794. });
  795. var TEMPLATE = String(String).split('String');
  796. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  797. if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
  798. name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
  799. }
  800. if (options && options.getter) name = 'get ' + name;
  801. if (options && options.setter) name = 'set ' + name;
  802. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  803. if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
  804. else value.name = name;
  805. }
  806. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  807. defineProperty$2(value, 'length', { value: options.arity });
  808. }
  809. try {
  810. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  811. if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
  812. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  813. } else if (value.prototype) value.prototype = undefined;
  814. } catch (error) { /* empty */ }
  815. var state = enforceInternalState(value);
  816. if (!hasOwn$3(state, 'source')) {
  817. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  818. } return value;
  819. };
  820. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  821. // eslint-disable-next-line no-extend-native -- required
  822. Function.prototype.toString = makeBuiltIn$1(function toString() {
  823. return isCallable$7(this) && getInternalState$1(this).source || inspectSource$1(this);
  824. }, 'toString');
  825. var makeBuiltInExports = makeBuiltIn$2.exports;
  826. var isCallable$6 = isCallable$f;
  827. var definePropertyModule$3 = objectDefineProperty;
  828. var makeBuiltIn = makeBuiltInExports;
  829. var defineGlobalProperty$1 = defineGlobalProperty$3;
  830. var defineBuiltIn$3 = function (O, key, value, options) {
  831. if (!options) options = {};
  832. var simple = options.enumerable;
  833. var name = options.name !== undefined ? options.name : key;
  834. if (isCallable$6(value)) makeBuiltIn(value, name, options);
  835. if (options.global) {
  836. if (simple) O[key] = value;
  837. else defineGlobalProperty$1(key, value);
  838. } else {
  839. try {
  840. if (!options.unsafe) delete O[key];
  841. else if (O[key]) simple = true;
  842. } catch (error) { /* empty */ }
  843. if (simple) O[key] = value;
  844. else definePropertyModule$3.f(O, key, {
  845. value: value,
  846. enumerable: false,
  847. configurable: !options.nonConfigurable,
  848. writable: !options.nonWritable
  849. });
  850. } return O;
  851. };
  852. var objectGetOwnPropertyNames = {};
  853. var ceil = Math.ceil;
  854. var floor$1 = Math.floor;
  855. // `Math.trunc` method
  856. // https://tc39.es/ecma262/#sec-math.trunc
  857. // eslint-disable-next-line es/no-math-trunc -- safe
  858. var mathTrunc = Math.trunc || function trunc(x) {
  859. var n = +x;
  860. return (n > 0 ? floor$1 : ceil)(n);
  861. };
  862. var trunc = mathTrunc;
  863. // `ToIntegerOrInfinity` abstract operation
  864. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  865. var toIntegerOrInfinity$4 = function (argument) {
  866. var number = +argument;
  867. // eslint-disable-next-line no-self-compare -- NaN check
  868. return number !== number || number === 0 ? 0 : trunc(number);
  869. };
  870. var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
  871. var max$1 = Math.max;
  872. var min$2 = Math.min;
  873. // Helper for a popular repeating case of the spec:
  874. // Let integer be ? ToInteger(index).
  875. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  876. var toAbsoluteIndex$1 = function (index, length) {
  877. var integer = toIntegerOrInfinity$3(index);
  878. return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
  879. };
  880. var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
  881. var min$1 = Math.min;
  882. // `ToLength` abstract operation
  883. // https://tc39.es/ecma262/#sec-tolength
  884. var toLength$2 = function (argument) {
  885. return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  886. };
  887. var toLength$1 = toLength$2;
  888. // `LengthOfArrayLike` abstract operation
  889. // https://tc39.es/ecma262/#sec-lengthofarraylike
  890. var lengthOfArrayLike$3 = function (obj) {
  891. return toLength$1(obj.length);
  892. };
  893. var toIndexedObject$3 = toIndexedObject$5;
  894. var toAbsoluteIndex = toAbsoluteIndex$1;
  895. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  896. // `Array.prototype.{ indexOf, includes }` methods implementation
  897. var createMethod$3 = function (IS_INCLUDES) {
  898. return function ($this, el, fromIndex) {
  899. var O = toIndexedObject$3($this);
  900. var length = lengthOfArrayLike$2(O);
  901. var index = toAbsoluteIndex(fromIndex, length);
  902. var value;
  903. // Array#includes uses SameValueZero equality algorithm
  904. // eslint-disable-next-line no-self-compare -- NaN check
  905. if (IS_INCLUDES && el !== el) while (length > index) {
  906. value = O[index++];
  907. // eslint-disable-next-line no-self-compare -- NaN check
  908. if (value !== value) return true;
  909. // Array#indexOf ignores holes, Array#includes - not
  910. } else for (;length > index; index++) {
  911. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  912. } return !IS_INCLUDES && -1;
  913. };
  914. };
  915. var arrayIncludes = {
  916. // `Array.prototype.includes` method
  917. // https://tc39.es/ecma262/#sec-array.prototype.includes
  918. includes: createMethod$3(true),
  919. // `Array.prototype.indexOf` method
  920. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  921. indexOf: createMethod$3(false)
  922. };
  923. var uncurryThis$d = functionUncurryThis;
  924. var hasOwn$2 = hasOwnProperty_1;
  925. var toIndexedObject$2 = toIndexedObject$5;
  926. var indexOf$1 = arrayIncludes.indexOf;
  927. var hiddenKeys$2 = hiddenKeys$4;
  928. var push$3 = uncurryThis$d([].push);
  929. var objectKeysInternal = function (object, names) {
  930. var O = toIndexedObject$2(object);
  931. var i = 0;
  932. var result = [];
  933. var key;
  934. for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$3(result, key);
  935. // Don't enum bug & hidden keys
  936. while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
  937. ~indexOf$1(result, key) || push$3(result, key);
  938. }
  939. return result;
  940. };
  941. // IE8- don't enum bug keys
  942. var enumBugKeys$3 = [
  943. 'constructor',
  944. 'hasOwnProperty',
  945. 'isPrototypeOf',
  946. 'propertyIsEnumerable',
  947. 'toLocaleString',
  948. 'toString',
  949. 'valueOf'
  950. ];
  951. var internalObjectKeys$1 = objectKeysInternal;
  952. var enumBugKeys$2 = enumBugKeys$3;
  953. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  954. // `Object.getOwnPropertyNames` method
  955. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  956. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  957. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  958. return internalObjectKeys$1(O, hiddenKeys$1);
  959. };
  960. var objectGetOwnPropertySymbols = {};
  961. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  962. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  963. var getBuiltIn$2 = getBuiltIn$4;
  964. var uncurryThis$c = functionUncurryThis;
  965. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  966. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  967. var anObject$5 = anObject$7;
  968. var concat$2 = uncurryThis$c([].concat);
  969. // all object keys, includes non-enumerable and symbols
  970. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  971. var keys = getOwnPropertyNamesModule.f(anObject$5(it));
  972. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  973. return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
  974. };
  975. var hasOwn$1 = hasOwnProperty_1;
  976. var ownKeys = ownKeys$1;
  977. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  978. var definePropertyModule$2 = objectDefineProperty;
  979. var copyConstructorProperties$1 = function (target, source, exceptions) {
  980. var keys = ownKeys(source);
  981. var defineProperty = definePropertyModule$2.f;
  982. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  983. for (var i = 0; i < keys.length; i++) {
  984. var key = keys[i];
  985. if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
  986. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  987. }
  988. }
  989. };
  990. var fails$c = fails$k;
  991. var isCallable$5 = isCallable$f;
  992. var replacement = /#|\.prototype\./;
  993. var isForced$1 = function (feature, detection) {
  994. var value = data[normalize(feature)];
  995. return value === POLYFILL ? true
  996. : value === NATIVE ? false
  997. : isCallable$5(detection) ? fails$c(detection)
  998. : !!detection;
  999. };
  1000. var normalize = isForced$1.normalize = function (string) {
  1001. return String(string).replace(replacement, '.').toLowerCase();
  1002. };
  1003. var data = isForced$1.data = {};
  1004. var NATIVE = isForced$1.NATIVE = 'N';
  1005. var POLYFILL = isForced$1.POLYFILL = 'P';
  1006. var isForced_1 = isForced$1;
  1007. var global$4 = global$e;
  1008. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  1009. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  1010. var defineBuiltIn$2 = defineBuiltIn$3;
  1011. var defineGlobalProperty = defineGlobalProperty$3;
  1012. var copyConstructorProperties = copyConstructorProperties$1;
  1013. var isForced = isForced_1;
  1014. /*
  1015. options.target - name of the target object
  1016. options.global - target is the global object
  1017. options.stat - export as static methods of target
  1018. options.proto - export as prototype methods of target
  1019. options.real - real prototype method for the `pure` version
  1020. options.forced - export even if the native feature is available
  1021. options.bind - bind methods to the target, required for the `pure` version
  1022. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1023. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1024. options.sham - add a flag to not completely full polyfills
  1025. options.enumerable - export as enumerable property
  1026. options.dontCallGetSet - prevent calling a getter on target
  1027. options.name - the .name of the function if it does not match the key
  1028. */
  1029. var _export = function (options, source) {
  1030. var TARGET = options.target;
  1031. var GLOBAL = options.global;
  1032. var STATIC = options.stat;
  1033. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1034. if (GLOBAL) {
  1035. target = global$4;
  1036. } else if (STATIC) {
  1037. target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
  1038. } else {
  1039. target = (global$4[TARGET] || {}).prototype;
  1040. }
  1041. if (target) for (key in source) {
  1042. sourceProperty = source[key];
  1043. if (options.dontCallGetSet) {
  1044. descriptor = getOwnPropertyDescriptor(target, key);
  1045. targetProperty = descriptor && descriptor.value;
  1046. } else targetProperty = target[key];
  1047. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1048. // contained in target
  1049. if (!FORCED && targetProperty !== undefined) {
  1050. if (typeof sourceProperty == typeof targetProperty) continue;
  1051. copyConstructorProperties(sourceProperty, targetProperty);
  1052. }
  1053. // add a flag to not completely full polyfills
  1054. if (options.sham || (targetProperty && targetProperty.sham)) {
  1055. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  1056. }
  1057. defineBuiltIn$2(target, key, sourceProperty, options);
  1058. }
  1059. };
  1060. var internalObjectKeys = objectKeysInternal;
  1061. var enumBugKeys$1 = enumBugKeys$3;
  1062. // `Object.keys` method
  1063. // https://tc39.es/ecma262/#sec-object.keys
  1064. // eslint-disable-next-line es/no-object-keys -- safe
  1065. var objectKeys$3 = Object.keys || function keys(O) {
  1066. return internalObjectKeys(O, enumBugKeys$1);
  1067. };
  1068. var DESCRIPTORS$2 = descriptors;
  1069. var uncurryThis$b = functionUncurryThis;
  1070. var call$4 = functionCall;
  1071. var fails$b = fails$k;
  1072. var objectKeys$2 = objectKeys$3;
  1073. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1074. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1075. var toObject$4 = toObject$6;
  1076. var IndexedObject$1 = indexedObject;
  1077. // eslint-disable-next-line es/no-object-assign -- safe
  1078. var $assign = Object.assign;
  1079. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1080. var defineProperty$1 = Object.defineProperty;
  1081. var concat$1 = uncurryThis$b([].concat);
  1082. // `Object.assign` method
  1083. // https://tc39.es/ecma262/#sec-object.assign
  1084. var objectAssign = !$assign || fails$b(function () {
  1085. // should have correct order of operations (Edge bug)
  1086. if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
  1087. enumerable: true,
  1088. get: function () {
  1089. defineProperty$1(this, 'b', {
  1090. value: 3,
  1091. enumerable: false
  1092. });
  1093. }
  1094. }), { b: 2 })).b !== 1) return true;
  1095. // should work with symbols and should have deterministic property order (V8 bug)
  1096. var A = {};
  1097. var B = {};
  1098. // eslint-disable-next-line es/no-symbol -- safe
  1099. var symbol = Symbol('assign detection');
  1100. var alphabet = 'abcdefghijklmnopqrst';
  1101. A[symbol] = 7;
  1102. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1103. return $assign({}, A)[symbol] !== 7 || objectKeys$2($assign({}, B)).join('') !== alphabet;
  1104. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1105. var T = toObject$4(target);
  1106. var argumentsLength = arguments.length;
  1107. var index = 1;
  1108. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1109. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1110. while (argumentsLength > index) {
  1111. var S = IndexedObject$1(arguments[index++]);
  1112. var keys = getOwnPropertySymbols ? concat$1(objectKeys$2(S), getOwnPropertySymbols(S)) : objectKeys$2(S);
  1113. var length = keys.length;
  1114. var j = 0;
  1115. var key;
  1116. while (length > j) {
  1117. key = keys[j++];
  1118. if (!DESCRIPTORS$2 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
  1119. }
  1120. } return T;
  1121. } : $assign;
  1122. var $$5 = _export;
  1123. var assign = objectAssign;
  1124. // `Object.assign` method
  1125. // https://tc39.es/ecma262/#sec-object.assign
  1126. // eslint-disable-next-line es/no-object-assign -- required for testing
  1127. $$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1128. assign: assign
  1129. });
  1130. var wellKnownSymbol$7 = wellKnownSymbol$9;
  1131. var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
  1132. var test = {};
  1133. test[TO_STRING_TAG$1] = 'z';
  1134. var toStringTagSupport = String(test) === '[object z]';
  1135. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1136. var isCallable$4 = isCallable$f;
  1137. var classofRaw$1 = classofRaw$2;
  1138. var wellKnownSymbol$6 = wellKnownSymbol$9;
  1139. var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
  1140. var $Object$1 = Object;
  1141. // ES3 wrong here
  1142. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1143. // fallback for IE11 Script Access Denied error
  1144. var tryGet = function (it, key) {
  1145. try {
  1146. return it[key];
  1147. } catch (error) { /* empty */ }
  1148. };
  1149. // getting tag from ES6+ `Object.prototype.toString`
  1150. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1151. var O, tag, result;
  1152. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1153. // @@toStringTag case
  1154. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  1155. // builtinTag case
  1156. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1157. // ES3 arguments fallback
  1158. : (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
  1159. };
  1160. var classof$4 = classof$5;
  1161. var $String = String;
  1162. var toString$4 = function (argument) {
  1163. if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1164. return $String(argument);
  1165. };
  1166. var anObject$4 = anObject$7;
  1167. // `RegExp.prototype.flags` getter implementation
  1168. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1169. var regexpFlags$1 = function () {
  1170. var that = anObject$4(this);
  1171. var result = '';
  1172. if (that.hasIndices) result += 'd';
  1173. if (that.global) result += 'g';
  1174. if (that.ignoreCase) result += 'i';
  1175. if (that.multiline) result += 'm';
  1176. if (that.dotAll) result += 's';
  1177. if (that.unicode) result += 'u';
  1178. if (that.unicodeSets) result += 'v';
  1179. if (that.sticky) result += 'y';
  1180. return result;
  1181. };
  1182. var fails$a = fails$k;
  1183. var global$3 = global$e;
  1184. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1185. var $RegExp$2 = global$3.RegExp;
  1186. var UNSUPPORTED_Y$1 = fails$a(function () {
  1187. var re = $RegExp$2('a', 'y');
  1188. re.lastIndex = 2;
  1189. return re.exec('abcd') !== null;
  1190. });
  1191. // UC Browser bug
  1192. // https://github.com/zloirock/core-js/issues/1008
  1193. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$a(function () {
  1194. return !$RegExp$2('a', 'y').sticky;
  1195. });
  1196. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$a(function () {
  1197. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1198. var re = $RegExp$2('^r', 'gy');
  1199. re.lastIndex = 2;
  1200. return re.exec('str') !== null;
  1201. });
  1202. var regexpStickyHelpers = {
  1203. BROKEN_CARET: BROKEN_CARET,
  1204. MISSED_STICKY: MISSED_STICKY,
  1205. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1206. };
  1207. var objectDefineProperties = {};
  1208. var DESCRIPTORS$1 = descriptors;
  1209. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1210. var definePropertyModule$1 = objectDefineProperty;
  1211. var anObject$3 = anObject$7;
  1212. var toIndexedObject$1 = toIndexedObject$5;
  1213. var objectKeys$1 = objectKeys$3;
  1214. // `Object.defineProperties` method
  1215. // https://tc39.es/ecma262/#sec-object.defineproperties
  1216. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1217. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1218. anObject$3(O);
  1219. var props = toIndexedObject$1(Properties);
  1220. var keys = objectKeys$1(Properties);
  1221. var length = keys.length;
  1222. var index = 0;
  1223. var key;
  1224. while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
  1225. return O;
  1226. };
  1227. var getBuiltIn$1 = getBuiltIn$4;
  1228. var html$1 = getBuiltIn$1('document', 'documentElement');
  1229. /* global ActiveXObject -- old IE, WSH */
  1230. var anObject$2 = anObject$7;
  1231. var definePropertiesModule = objectDefineProperties;
  1232. var enumBugKeys = enumBugKeys$3;
  1233. var hiddenKeys = hiddenKeys$4;
  1234. var html = html$1;
  1235. var documentCreateElement = documentCreateElement$1;
  1236. var sharedKey$1 = sharedKey$3;
  1237. var GT = '>';
  1238. var LT = '<';
  1239. var PROTOTYPE = 'prototype';
  1240. var SCRIPT = 'script';
  1241. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1242. var EmptyConstructor = function () { /* empty */ };
  1243. var scriptTag = function (content) {
  1244. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1245. };
  1246. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1247. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1248. activeXDocument.write(scriptTag(''));
  1249. activeXDocument.close();
  1250. var temp = activeXDocument.parentWindow.Object;
  1251. activeXDocument = null; // avoid memory leak
  1252. return temp;
  1253. };
  1254. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1255. var NullProtoObjectViaIFrame = function () {
  1256. // Thrash, waste and sodomy: IE GC bug
  1257. var iframe = documentCreateElement('iframe');
  1258. var JS = 'java' + SCRIPT + ':';
  1259. var iframeDocument;
  1260. iframe.style.display = 'none';
  1261. html.appendChild(iframe);
  1262. // https://github.com/zloirock/core-js/issues/475
  1263. iframe.src = String(JS);
  1264. iframeDocument = iframe.contentWindow.document;
  1265. iframeDocument.open();
  1266. iframeDocument.write(scriptTag('document.F=Object'));
  1267. iframeDocument.close();
  1268. return iframeDocument.F;
  1269. };
  1270. // Check for document.domain and active x support
  1271. // No need to use active x approach when document.domain is not set
  1272. // see https://github.com/es-shims/es5-shim/issues/150
  1273. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1274. // avoid IE GC bug
  1275. var activeXDocument;
  1276. var NullProtoObject = function () {
  1277. try {
  1278. activeXDocument = new ActiveXObject('htmlfile');
  1279. } catch (error) { /* ignore */ }
  1280. NullProtoObject = typeof document != 'undefined'
  1281. ? document.domain && activeXDocument
  1282. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1283. : NullProtoObjectViaIFrame()
  1284. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1285. var length = enumBugKeys.length;
  1286. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1287. return NullProtoObject();
  1288. };
  1289. hiddenKeys[IE_PROTO$1] = true;
  1290. // `Object.create` method
  1291. // https://tc39.es/ecma262/#sec-object.create
  1292. // eslint-disable-next-line es/no-object-create -- safe
  1293. var objectCreate = Object.create || function create(O, Properties) {
  1294. var result;
  1295. if (O !== null) {
  1296. EmptyConstructor[PROTOTYPE] = anObject$2(O);
  1297. result = new EmptyConstructor();
  1298. EmptyConstructor[PROTOTYPE] = null;
  1299. // add "__proto__" for Object.getPrototypeOf polyfill
  1300. result[IE_PROTO$1] = O;
  1301. } else result = NullProtoObject();
  1302. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1303. };
  1304. var fails$9 = fails$k;
  1305. var global$2 = global$e;
  1306. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1307. var $RegExp$1 = global$2.RegExp;
  1308. var regexpUnsupportedDotAll = fails$9(function () {
  1309. var re = $RegExp$1('.', 's');
  1310. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1311. });
  1312. var fails$8 = fails$k;
  1313. var global$1 = global$e;
  1314. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1315. var $RegExp = global$1.RegExp;
  1316. var regexpUnsupportedNcg = fails$8(function () {
  1317. var re = $RegExp('(?<a>b)', 'g');
  1318. return re.exec('b').groups.a !== 'b' ||
  1319. 'b'.replace(re, '$<a>c') !== 'bc';
  1320. });
  1321. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1322. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1323. var call$3 = functionCall;
  1324. var uncurryThis$a = functionUncurryThis;
  1325. var toString$3 = toString$4;
  1326. var regexpFlags = regexpFlags$1;
  1327. var stickyHelpers = regexpStickyHelpers;
  1328. var shared = sharedExports;
  1329. var create$1 = objectCreate;
  1330. var getInternalState = internalState.get;
  1331. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1332. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1333. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1334. var nativeExec = RegExp.prototype.exec;
  1335. var patchedExec = nativeExec;
  1336. var charAt$3 = uncurryThis$a(''.charAt);
  1337. var indexOf = uncurryThis$a(''.indexOf);
  1338. var replace$1 = uncurryThis$a(''.replace);
  1339. var stringSlice$3 = uncurryThis$a(''.slice);
  1340. var UPDATES_LAST_INDEX_WRONG = (function () {
  1341. var re1 = /a/;
  1342. var re2 = /b*/g;
  1343. call$3(nativeExec, re1, 'a');
  1344. call$3(nativeExec, re2, 'a');
  1345. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1346. })();
  1347. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1348. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1349. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1350. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1351. if (PATCH) {
  1352. patchedExec = function exec(string) {
  1353. var re = this;
  1354. var state = getInternalState(re);
  1355. var str = toString$3(string);
  1356. var raw = state.raw;
  1357. var result, reCopy, lastIndex, match, i, object, group;
  1358. if (raw) {
  1359. raw.lastIndex = re.lastIndex;
  1360. result = call$3(patchedExec, raw, str);
  1361. re.lastIndex = raw.lastIndex;
  1362. return result;
  1363. }
  1364. var groups = state.groups;
  1365. var sticky = UNSUPPORTED_Y && re.sticky;
  1366. var flags = call$3(regexpFlags, re);
  1367. var source = re.source;
  1368. var charsAdded = 0;
  1369. var strCopy = str;
  1370. if (sticky) {
  1371. flags = replace$1(flags, 'y', '');
  1372. if (indexOf(flags, 'g') === -1) {
  1373. flags += 'g';
  1374. }
  1375. strCopy = stringSlice$3(str, re.lastIndex);
  1376. // Support anchored sticky behavior.
  1377. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  1378. source = '(?: ' + source + ')';
  1379. strCopy = ' ' + strCopy;
  1380. charsAdded++;
  1381. }
  1382. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1383. // simulate the 'y' flag.
  1384. reCopy = new RegExp('^(?:' + source + ')', flags);
  1385. }
  1386. if (NPCG_INCLUDED) {
  1387. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1388. }
  1389. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1390. match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
  1391. if (sticky) {
  1392. if (match) {
  1393. match.input = stringSlice$3(match.input, charsAdded);
  1394. match[0] = stringSlice$3(match[0], charsAdded);
  1395. match.index = re.lastIndex;
  1396. re.lastIndex += match[0].length;
  1397. } else re.lastIndex = 0;
  1398. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1399. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1400. }
  1401. if (NPCG_INCLUDED && match && match.length > 1) {
  1402. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1403. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1404. call$3(nativeReplace, match[0], reCopy, function () {
  1405. for (i = 1; i < arguments.length - 2; i++) {
  1406. if (arguments[i] === undefined) match[i] = undefined;
  1407. }
  1408. });
  1409. }
  1410. if (match && groups) {
  1411. match.groups = object = create$1(null);
  1412. for (i = 0; i < groups.length; i++) {
  1413. group = groups[i];
  1414. object[group[0]] = match[group[1]];
  1415. }
  1416. }
  1417. return match;
  1418. };
  1419. }
  1420. var regexpExec$2 = patchedExec;
  1421. var $$4 = _export;
  1422. var exec$1 = regexpExec$2;
  1423. // `RegExp.prototype.exec` method
  1424. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1425. $$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
  1426. exec: exec$1
  1427. });
  1428. var NATIVE_BIND$1 = functionBindNative;
  1429. var FunctionPrototype = Function.prototype;
  1430. var apply$1 = FunctionPrototype.apply;
  1431. var call$2 = FunctionPrototype.call;
  1432. // eslint-disable-next-line es/no-reflect -- safe
  1433. var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$2.bind(apply$1) : function () {
  1434. return call$2.apply(apply$1, arguments);
  1435. });
  1436. var classofRaw = classofRaw$2;
  1437. var uncurryThis$9 = functionUncurryThis;
  1438. var functionUncurryThisClause = function (fn) {
  1439. // Nashorn bug:
  1440. // https://github.com/zloirock/core-js/issues/1128
  1441. // https://github.com/zloirock/core-js/issues/1130
  1442. if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
  1443. };
  1444. // TODO: Remove from `core-js@4` since it's moved to entry points
  1445. var uncurryThis$8 = functionUncurryThisClause;
  1446. var defineBuiltIn$1 = defineBuiltIn$3;
  1447. var regexpExec$1 = regexpExec$2;
  1448. var fails$7 = fails$k;
  1449. var wellKnownSymbol$5 = wellKnownSymbol$9;
  1450. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1451. var SPECIES$2 = wellKnownSymbol$5('species');
  1452. var RegExpPrototype = RegExp.prototype;
  1453. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1454. var SYMBOL = wellKnownSymbol$5(KEY);
  1455. var DELEGATES_TO_SYMBOL = !fails$7(function () {
  1456. // String methods call symbol-named RegEp methods
  1457. var O = {};
  1458. O[SYMBOL] = function () { return 7; };
  1459. return ''[KEY](O) !== 7;
  1460. });
  1461. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
  1462. // Symbol-named RegExp methods call .exec
  1463. var execCalled = false;
  1464. var re = /a/;
  1465. if (KEY === 'split') {
  1466. // We can't use real regex here since it causes deoptimization
  1467. // and serious performance degradation in V8
  1468. // https://github.com/zloirock/core-js/issues/306
  1469. re = {};
  1470. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1471. // a new one. We need to return the patched regex when creating the new one.
  1472. re.constructor = {};
  1473. re.constructor[SPECIES$2] = function () { return re; };
  1474. re.flags = '';
  1475. re[SYMBOL] = /./[SYMBOL];
  1476. }
  1477. re.exec = function () {
  1478. execCalled = true;
  1479. return null;
  1480. };
  1481. re[SYMBOL]('');
  1482. return !execCalled;
  1483. });
  1484. if (
  1485. !DELEGATES_TO_SYMBOL ||
  1486. !DELEGATES_TO_EXEC ||
  1487. FORCED
  1488. ) {
  1489. var uncurriedNativeRegExpMethod = uncurryThis$8(/./[SYMBOL]);
  1490. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1491. var uncurriedNativeMethod = uncurryThis$8(nativeMethod);
  1492. var $exec = regexp.exec;
  1493. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  1494. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1495. // The native String method already delegates to @@method (this
  1496. // polyfilled function), leasing to infinite recursion.
  1497. // We avoid it by directly calling the native @@method method.
  1498. return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
  1499. }
  1500. return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
  1501. }
  1502. return { done: false };
  1503. });
  1504. defineBuiltIn$1(String.prototype, KEY, methods[0]);
  1505. defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
  1506. }
  1507. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1508. };
  1509. var uncurryThis$7 = functionUncurryThis;
  1510. var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
  1511. var toString$2 = toString$4;
  1512. var requireObjectCoercible$1 = requireObjectCoercible$4;
  1513. var charAt$2 = uncurryThis$7(''.charAt);
  1514. var charCodeAt = uncurryThis$7(''.charCodeAt);
  1515. var stringSlice$2 = uncurryThis$7(''.slice);
  1516. var createMethod$2 = function (CONVERT_TO_STRING) {
  1517. return function ($this, pos) {
  1518. var S = toString$2(requireObjectCoercible$1($this));
  1519. var position = toIntegerOrInfinity$1(pos);
  1520. var size = S.length;
  1521. var first, second;
  1522. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1523. first = charCodeAt(S, position);
  1524. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1525. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  1526. ? CONVERT_TO_STRING
  1527. ? charAt$2(S, position)
  1528. : first
  1529. : CONVERT_TO_STRING
  1530. ? stringSlice$2(S, position, position + 2)
  1531. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1532. };
  1533. };
  1534. var stringMultibyte = {
  1535. // `String.prototype.codePointAt` method
  1536. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1537. codeAt: createMethod$2(false),
  1538. // `String.prototype.at` method
  1539. // https://github.com/mathiasbynens/String.prototype.at
  1540. charAt: createMethod$2(true)
  1541. };
  1542. var charAt$1 = stringMultibyte.charAt;
  1543. // `AdvanceStringIndex` abstract operation
  1544. // https://tc39.es/ecma262/#sec-advancestringindex
  1545. var advanceStringIndex$1 = function (S, index, unicode) {
  1546. return index + (unicode ? charAt$1(S, index).length : 1);
  1547. };
  1548. var uncurryThis$6 = functionUncurryThis;
  1549. var toObject$3 = toObject$6;
  1550. var floor = Math.floor;
  1551. var charAt = uncurryThis$6(''.charAt);
  1552. var replace = uncurryThis$6(''.replace);
  1553. var stringSlice$1 = uncurryThis$6(''.slice);
  1554. // eslint-disable-next-line redos/no-vulnerable -- safe
  1555. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  1556. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  1557. // `GetSubstitution` abstract operation
  1558. // https://tc39.es/ecma262/#sec-getsubstitution
  1559. var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
  1560. var tailPos = position + matched.length;
  1561. var m = captures.length;
  1562. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1563. if (namedCaptures !== undefined) {
  1564. namedCaptures = toObject$3(namedCaptures);
  1565. symbols = SUBSTITUTION_SYMBOLS;
  1566. }
  1567. return replace(replacement, symbols, function (match, ch) {
  1568. var capture;
  1569. switch (charAt(ch, 0)) {
  1570. case '$': return '$';
  1571. case '&': return matched;
  1572. case '`': return stringSlice$1(str, 0, position);
  1573. case "'": return stringSlice$1(str, tailPos);
  1574. case '<':
  1575. capture = namedCaptures[stringSlice$1(ch, 1, -1)];
  1576. break;
  1577. default: // \d\d?
  1578. var n = +ch;
  1579. if (n === 0) return match;
  1580. if (n > m) {
  1581. var f = floor(n / 10);
  1582. if (f === 0) return match;
  1583. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  1584. return match;
  1585. }
  1586. capture = captures[n - 1];
  1587. }
  1588. return capture === undefined ? '' : capture;
  1589. });
  1590. };
  1591. var call$1 = functionCall;
  1592. var anObject$1 = anObject$7;
  1593. var isCallable$3 = isCallable$f;
  1594. var classof$3 = classofRaw$2;
  1595. var regexpExec = regexpExec$2;
  1596. var $TypeError$1 = TypeError;
  1597. // `RegExpExec` abstract operation
  1598. // https://tc39.es/ecma262/#sec-regexpexec
  1599. var regexpExecAbstract = function (R, S) {
  1600. var exec = R.exec;
  1601. if (isCallable$3(exec)) {
  1602. var result = call$1(exec, R, S);
  1603. if (result !== null) anObject$1(result);
  1604. return result;
  1605. }
  1606. if (classof$3(R) === 'RegExp') return call$1(regexpExec, R, S);
  1607. throw new $TypeError$1('RegExp#exec called on incompatible receiver');
  1608. };
  1609. var apply = functionApply;
  1610. var call = functionCall;
  1611. var uncurryThis$5 = functionUncurryThis;
  1612. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  1613. var fails$6 = fails$k;
  1614. var anObject = anObject$7;
  1615. var isCallable$2 = isCallable$f;
  1616. var isNullOrUndefined = isNullOrUndefined$3;
  1617. var toIntegerOrInfinity = toIntegerOrInfinity$4;
  1618. var toLength = toLength$2;
  1619. var toString$1 = toString$4;
  1620. var requireObjectCoercible = requireObjectCoercible$4;
  1621. var advanceStringIndex = advanceStringIndex$1;
  1622. var getMethod = getMethod$2;
  1623. var getSubstitution = getSubstitution$1;
  1624. var regExpExec = regexpExecAbstract;
  1625. var wellKnownSymbol$4 = wellKnownSymbol$9;
  1626. var REPLACE = wellKnownSymbol$4('replace');
  1627. var max = Math.max;
  1628. var min = Math.min;
  1629. var concat = uncurryThis$5([].concat);
  1630. var push$2 = uncurryThis$5([].push);
  1631. var stringIndexOf = uncurryThis$5(''.indexOf);
  1632. var stringSlice = uncurryThis$5(''.slice);
  1633. var maybeToString = function (it) {
  1634. return it === undefined ? it : String(it);
  1635. };
  1636. // IE <= 11 replaces $0 with the whole match, as if it was $&
  1637. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  1638. var REPLACE_KEEPS_$0 = (function () {
  1639. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  1640. return 'a'.replace(/./, '$0') === '$0';
  1641. })();
  1642. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  1643. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  1644. if (/./[REPLACE]) {
  1645. return /./[REPLACE]('a', '$0') === '';
  1646. }
  1647. return false;
  1648. })();
  1649. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$6(function () {
  1650. var re = /./;
  1651. re.exec = function () {
  1652. var result = [];
  1653. result.groups = { a: '7' };
  1654. return result;
  1655. };
  1656. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  1657. return ''.replace(re, '$<a>') !== '7';
  1658. });
  1659. // @@replace logic
  1660. fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  1661. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  1662. return [
  1663. // `String.prototype.replace` method
  1664. // https://tc39.es/ecma262/#sec-string.prototype.replace
  1665. function replace(searchValue, replaceValue) {
  1666. var O = requireObjectCoercible(this);
  1667. var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
  1668. return replacer
  1669. ? call(replacer, searchValue, O, replaceValue)
  1670. : call(nativeReplace, toString$1(O), searchValue, replaceValue);
  1671. },
  1672. // `RegExp.prototype[@@replace]` method
  1673. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  1674. function (string, replaceValue) {
  1675. var rx = anObject(this);
  1676. var S = toString$1(string);
  1677. if (
  1678. typeof replaceValue == 'string' &&
  1679. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  1680. stringIndexOf(replaceValue, '$<') === -1
  1681. ) {
  1682. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  1683. if (res.done) return res.value;
  1684. }
  1685. var functionalReplace = isCallable$2(replaceValue);
  1686. if (!functionalReplace) replaceValue = toString$1(replaceValue);
  1687. var global = rx.global;
  1688. var fullUnicode;
  1689. if (global) {
  1690. fullUnicode = rx.unicode;
  1691. rx.lastIndex = 0;
  1692. }
  1693. var results = [];
  1694. var result;
  1695. while (true) {
  1696. result = regExpExec(rx, S);
  1697. if (result === null) break;
  1698. push$2(results, result);
  1699. if (!global) break;
  1700. var matchStr = toString$1(result[0]);
  1701. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1702. }
  1703. var accumulatedResult = '';
  1704. var nextSourcePosition = 0;
  1705. for (var i = 0; i < results.length; i++) {
  1706. result = results[i];
  1707. var matched = toString$1(result[0]);
  1708. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  1709. var captures = [];
  1710. var replacement;
  1711. // NOTE: This is equivalent to
  1712. // captures = result.slice(1).map(maybeToString)
  1713. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1714. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1715. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1716. for (var j = 1; j < result.length; j++) push$2(captures, maybeToString(result[j]));
  1717. var namedCaptures = result.groups;
  1718. if (functionalReplace) {
  1719. var replacerArgs = concat([matched], captures, position, S);
  1720. if (namedCaptures !== undefined) push$2(replacerArgs, namedCaptures);
  1721. replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
  1722. } else {
  1723. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1724. }
  1725. if (position >= nextSourcePosition) {
  1726. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  1727. nextSourcePosition = position + matched.length;
  1728. }
  1729. }
  1730. return accumulatedResult + stringSlice(S, nextSourcePosition);
  1731. }
  1732. ];
  1733. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  1734. var fails$5 = fails$k;
  1735. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1736. var method = [][METHOD_NAME];
  1737. return !!method && fails$5(function () {
  1738. // eslint-disable-next-line no-useless-call -- required for testing
  1739. method.call(null, argument || function () { return 1; }, 1);
  1740. });
  1741. };
  1742. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1743. var $$3 = _export;
  1744. var uncurryThis$4 = functionUncurryThisClause;
  1745. var $indexOf = arrayIncludes.indexOf;
  1746. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1747. var nativeIndexOf = uncurryThis$4([].indexOf);
  1748. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1749. var FORCED$1 = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
  1750. // `Array.prototype.indexOf` method
  1751. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1752. $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1753. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1754. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1755. return NEGATIVE_ZERO
  1756. // convert -0 to +0
  1757. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1758. : $indexOf(this, searchElement, fromIndex);
  1759. }
  1760. });
  1761. var classof$2 = classofRaw$2;
  1762. // `IsArray` abstract operation
  1763. // https://tc39.es/ecma262/#sec-isarray
  1764. // eslint-disable-next-line es/no-array-isarray -- safe
  1765. var isArray$2 = Array.isArray || function isArray(argument) {
  1766. return classof$2(argument) === 'Array';
  1767. };
  1768. var $TypeError = TypeError;
  1769. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1770. var doesNotExceedSafeInteger$1 = function (it) {
  1771. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1772. return it;
  1773. };
  1774. var toPropertyKey = toPropertyKey$3;
  1775. var definePropertyModule = objectDefineProperty;
  1776. var createPropertyDescriptor = createPropertyDescriptor$3;
  1777. var createProperty$1 = function (object, key, value) {
  1778. var propertyKey = toPropertyKey(key);
  1779. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  1780. else object[propertyKey] = value;
  1781. };
  1782. var uncurryThis$3 = functionUncurryThis;
  1783. var fails$4 = fails$k;
  1784. var isCallable$1 = isCallable$f;
  1785. var classof$1 = classof$5;
  1786. var getBuiltIn = getBuiltIn$4;
  1787. var inspectSource = inspectSource$2;
  1788. var noop = function () { /* empty */ };
  1789. var empty = [];
  1790. var construct = getBuiltIn('Reflect', 'construct');
  1791. var constructorRegExp = /^\s*(?:class|function)\b/;
  1792. var exec = uncurryThis$3(constructorRegExp.exec);
  1793. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1794. var isConstructorModern = function isConstructor(argument) {
  1795. if (!isCallable$1(argument)) return false;
  1796. try {
  1797. construct(noop, empty, argument);
  1798. return true;
  1799. } catch (error) {
  1800. return false;
  1801. }
  1802. };
  1803. var isConstructorLegacy = function isConstructor(argument) {
  1804. if (!isCallable$1(argument)) return false;
  1805. switch (classof$1(argument)) {
  1806. case 'AsyncFunction':
  1807. case 'GeneratorFunction':
  1808. case 'AsyncGeneratorFunction': return false;
  1809. }
  1810. try {
  1811. // we can't check .prototype since constructors produced by .bind haven't it
  1812. // `Function#toString` throws on some built-it function in some legacy engines
  1813. // (for example, `DOMQuad` and similar in FF41-)
  1814. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1815. } catch (error) {
  1816. return true;
  1817. }
  1818. };
  1819. isConstructorLegacy.sham = true;
  1820. // `IsConstructor` abstract operation
  1821. // https://tc39.es/ecma262/#sec-isconstructor
  1822. var isConstructor$1 = !construct || fails$4(function () {
  1823. var called;
  1824. return isConstructorModern(isConstructorModern.call)
  1825. || !isConstructorModern(Object)
  1826. || !isConstructorModern(function () { called = true; })
  1827. || called;
  1828. }) ? isConstructorLegacy : isConstructorModern;
  1829. var isArray$1 = isArray$2;
  1830. var isConstructor = isConstructor$1;
  1831. var isObject$1 = isObject$7;
  1832. var wellKnownSymbol$3 = wellKnownSymbol$9;
  1833. var SPECIES$1 = wellKnownSymbol$3('species');
  1834. var $Array = Array;
  1835. // a part of `ArraySpeciesCreate` abstract operation
  1836. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1837. var arraySpeciesConstructor$1 = function (originalArray) {
  1838. var C;
  1839. if (isArray$1(originalArray)) {
  1840. C = originalArray.constructor;
  1841. // cross-realm fallback
  1842. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1843. else if (isObject$1(C)) {
  1844. C = C[SPECIES$1];
  1845. if (C === null) C = undefined;
  1846. }
  1847. } return C === undefined ? $Array : C;
  1848. };
  1849. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1850. // `ArraySpeciesCreate` abstract operation
  1851. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1852. var arraySpeciesCreate$2 = function (originalArray, length) {
  1853. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1854. };
  1855. var fails$3 = fails$k;
  1856. var wellKnownSymbol$2 = wellKnownSymbol$9;
  1857. var V8_VERSION$1 = engineV8Version;
  1858. var SPECIES = wellKnownSymbol$2('species');
  1859. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1860. // We can't use this feature detection in V8 since it causes
  1861. // deoptimization and serious performance degradation
  1862. // https://github.com/zloirock/core-js/issues/677
  1863. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1864. var array = [];
  1865. var constructor = array.constructor = {};
  1866. constructor[SPECIES] = function () {
  1867. return { foo: 1 };
  1868. };
  1869. return array[METHOD_NAME](Boolean).foo !== 1;
  1870. });
  1871. };
  1872. var $$2 = _export;
  1873. var fails$2 = fails$k;
  1874. var isArray = isArray$2;
  1875. var isObject = isObject$7;
  1876. var toObject$2 = toObject$6;
  1877. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1878. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1879. var createProperty = createProperty$1;
  1880. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1881. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1882. var wellKnownSymbol$1 = wellKnownSymbol$9;
  1883. var V8_VERSION = engineV8Version;
  1884. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1885. // We can't use this feature detection in V8 since it causes
  1886. // deoptimization and serious performance degradation
  1887. // https://github.com/zloirock/core-js/issues/679
  1888. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1889. var array = [];
  1890. array[IS_CONCAT_SPREADABLE] = false;
  1891. return array.concat()[0] !== array;
  1892. });
  1893. var isConcatSpreadable = function (O) {
  1894. if (!isObject(O)) return false;
  1895. var spreadable = O[IS_CONCAT_SPREADABLE];
  1896. return spreadable !== undefined ? !!spreadable : isArray(O);
  1897. };
  1898. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1899. // `Array.prototype.concat` method
  1900. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1901. // with adding support of @@isConcatSpreadable and @@species
  1902. $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1903. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1904. concat: function concat(arg) {
  1905. var O = toObject$2(this);
  1906. var A = arraySpeciesCreate$1(O, 0);
  1907. var n = 0;
  1908. var i, k, length, len, E;
  1909. for (i = -1, length = arguments.length; i < length; i++) {
  1910. E = i === -1 ? O : arguments[i];
  1911. if (isConcatSpreadable(E)) {
  1912. len = lengthOfArrayLike$1(E);
  1913. doesNotExceedSafeInteger(n + len);
  1914. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1915. } else {
  1916. doesNotExceedSafeInteger(n + 1);
  1917. createProperty(A, n++, E);
  1918. }
  1919. }
  1920. A.length = n;
  1921. return A;
  1922. }
  1923. });
  1924. var uncurryThis$2 = functionUncurryThisClause;
  1925. var aCallable = aCallable$2;
  1926. var NATIVE_BIND = functionBindNative;
  1927. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  1928. // optional / simple context binding
  1929. var functionBindContext = function (fn, that) {
  1930. aCallable(fn);
  1931. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1932. return fn.apply(that, arguments);
  1933. };
  1934. };
  1935. var bind = functionBindContext;
  1936. var uncurryThis$1 = functionUncurryThis;
  1937. var IndexedObject = indexedObject;
  1938. var toObject$1 = toObject$6;
  1939. var lengthOfArrayLike = lengthOfArrayLike$3;
  1940. var arraySpeciesCreate = arraySpeciesCreate$2;
  1941. var push$1 = uncurryThis$1([].push);
  1942. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1943. var createMethod$1 = function (TYPE) {
  1944. var IS_MAP = TYPE === 1;
  1945. var IS_FILTER = TYPE === 2;
  1946. var IS_SOME = TYPE === 3;
  1947. var IS_EVERY = TYPE === 4;
  1948. var IS_FIND_INDEX = TYPE === 6;
  1949. var IS_FILTER_REJECT = TYPE === 7;
  1950. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1951. return function ($this, callbackfn, that, specificCreate) {
  1952. var O = toObject$1($this);
  1953. var self = IndexedObject(O);
  1954. var length = lengthOfArrayLike(self);
  1955. var boundFunction = bind(callbackfn, that);
  1956. var index = 0;
  1957. var create = specificCreate || arraySpeciesCreate;
  1958. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1959. var value, result;
  1960. for (;length > index; index++) if (NO_HOLES || index in self) {
  1961. value = self[index];
  1962. result = boundFunction(value, index, O);
  1963. if (TYPE) {
  1964. if (IS_MAP) target[index] = result; // map
  1965. else if (result) switch (TYPE) {
  1966. case 3: return true; // some
  1967. case 5: return value; // find
  1968. case 6: return index; // findIndex
  1969. case 2: push$1(target, value); // filter
  1970. } else switch (TYPE) {
  1971. case 4: return false; // every
  1972. case 7: push$1(target, value); // filterReject
  1973. }
  1974. }
  1975. }
  1976. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1977. };
  1978. };
  1979. var arrayIteration = {
  1980. // `Array.prototype.forEach` method
  1981. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1982. forEach: createMethod$1(0),
  1983. // `Array.prototype.map` method
  1984. // https://tc39.es/ecma262/#sec-array.prototype.map
  1985. map: createMethod$1(1),
  1986. // `Array.prototype.filter` method
  1987. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1988. filter: createMethod$1(2),
  1989. // `Array.prototype.some` method
  1990. // https://tc39.es/ecma262/#sec-array.prototype.some
  1991. some: createMethod$1(3),
  1992. // `Array.prototype.every` method
  1993. // https://tc39.es/ecma262/#sec-array.prototype.every
  1994. every: createMethod$1(4),
  1995. // `Array.prototype.find` method
  1996. // https://tc39.es/ecma262/#sec-array.prototype.find
  1997. find: createMethod$1(5),
  1998. // `Array.prototype.findIndex` method
  1999. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  2000. findIndex: createMethod$1(6),
  2001. // `Array.prototype.filterReject` method
  2002. // https://github.com/tc39/proposal-array-filtering
  2003. filterReject: createMethod$1(7)
  2004. };
  2005. var wellKnownSymbol = wellKnownSymbol$9;
  2006. var create = objectCreate;
  2007. var defineProperty = objectDefineProperty.f;
  2008. var UNSCOPABLES = wellKnownSymbol('unscopables');
  2009. var ArrayPrototype = Array.prototype;
  2010. // Array.prototype[@@unscopables]
  2011. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2012. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  2013. defineProperty(ArrayPrototype, UNSCOPABLES, {
  2014. configurable: true,
  2015. value: create(null)
  2016. });
  2017. }
  2018. // add a key to Array.prototype[@@unscopables]
  2019. var addToUnscopables$1 = function (key) {
  2020. ArrayPrototype[UNSCOPABLES][key] = true;
  2021. };
  2022. var $$1 = _export;
  2023. var $find = arrayIteration.find;
  2024. var addToUnscopables = addToUnscopables$1;
  2025. var FIND = 'find';
  2026. var SKIPS_HOLES = true;
  2027. // Shouldn't skip holes
  2028. // eslint-disable-next-line es/no-array-prototype-find -- testing
  2029. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  2030. // `Array.prototype.find` method
  2031. // https://tc39.es/ecma262/#sec-array.prototype.find
  2032. $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  2033. find: function find(callbackfn /* , that = undefined */) {
  2034. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2035. }
  2036. });
  2037. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2038. addToUnscopables(FIND);
  2039. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  2040. var classof = classof$5;
  2041. // `Object.prototype.toString` method implementation
  2042. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2043. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  2044. return '[object ' + classof(this) + ']';
  2045. };
  2046. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  2047. var defineBuiltIn = defineBuiltIn$3;
  2048. var toString = objectToString;
  2049. // `Object.prototype.toString` method
  2050. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2051. if (!TO_STRING_TAG_SUPPORT) {
  2052. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2053. }
  2054. var fails$1 = fails$k;
  2055. var correctPrototypeGetter = !fails$1(function () {
  2056. function F() { /* empty */ }
  2057. F.prototype.constructor = null;
  2058. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  2059. return Object.getPrototypeOf(new F()) !== F.prototype;
  2060. });
  2061. var hasOwn = hasOwnProperty_1;
  2062. var isCallable = isCallable$f;
  2063. var toObject = toObject$6;
  2064. var sharedKey = sharedKey$3;
  2065. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  2066. var IE_PROTO = sharedKey('IE_PROTO');
  2067. var $Object = Object;
  2068. var ObjectPrototype = $Object.prototype;
  2069. // `Object.getPrototypeOf` method
  2070. // https://tc39.es/ecma262/#sec-object.getprototypeof
  2071. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  2072. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  2073. var object = toObject(O);
  2074. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  2075. var constructor = object.constructor;
  2076. if (isCallable(constructor) && object instanceof constructor) {
  2077. return constructor.prototype;
  2078. } return object instanceof $Object ? ObjectPrototype : null;
  2079. };
  2080. var DESCRIPTORS = descriptors;
  2081. var fails = fails$k;
  2082. var uncurryThis = functionUncurryThis;
  2083. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  2084. var objectKeys = objectKeys$3;
  2085. var toIndexedObject = toIndexedObject$5;
  2086. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  2087. var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
  2088. var push = uncurryThis([].push);
  2089. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  2090. // of `null` prototype objects
  2091. var IE_BUG = DESCRIPTORS && fails(function () {
  2092. // eslint-disable-next-line es/no-object-create -- safe
  2093. var O = Object.create(null);
  2094. O[2] = 2;
  2095. return !propertyIsEnumerable(O, 2);
  2096. });
  2097. // `Object.{ entries, values }` methods implementation
  2098. var createMethod = function (TO_ENTRIES) {
  2099. return function (it) {
  2100. var O = toIndexedObject(it);
  2101. var keys = objectKeys(O);
  2102. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  2103. var length = keys.length;
  2104. var i = 0;
  2105. var result = [];
  2106. var key;
  2107. while (length > i) {
  2108. key = keys[i++];
  2109. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  2110. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  2111. }
  2112. }
  2113. return result;
  2114. };
  2115. };
  2116. var objectToArray = {
  2117. // `Object.entries` method
  2118. // https://tc39.es/ecma262/#sec-object.entries
  2119. entries: createMethod(true),
  2120. // `Object.values` method
  2121. // https://tc39.es/ecma262/#sec-object.values
  2122. values: createMethod(false)
  2123. };
  2124. var $ = _export;
  2125. var $entries = objectToArray.entries;
  2126. // `Object.entries` method
  2127. // https://tc39.es/ecma262/#sec-object.entries
  2128. $({ target: 'Object', stat: true }, {
  2129. entries: function entries(O) {
  2130. return $entries(O);
  2131. }
  2132. });
  2133. /* eslint-disable no-unused-vars */
  2134. /**
  2135. * @author zhixin wen <wenzhixin2010@gmail.com>
  2136. * extensions: https://github.com/vitalets/x-editable
  2137. */
  2138. var Utils = $$6.fn.bootstrapTable.utils;
  2139. Object.assign($$6.fn.bootstrapTable.defaults, {
  2140. editable: true,
  2141. onEditableInit: function onEditableInit() {
  2142. return false;
  2143. },
  2144. onEditableSave: function onEditableSave(field, row, rowIndex, oldValue, $el) {
  2145. return false;
  2146. },
  2147. onEditableShown: function onEditableShown(field, row, $el, editable) {
  2148. return false;
  2149. },
  2150. onEditableHidden: function onEditableHidden(field, row, $el, reason) {
  2151. return false;
  2152. }
  2153. });
  2154. Object.assign($$6.fn.bootstrapTable.columnDefaults, {
  2155. alwaysUseFormatter: false
  2156. });
  2157. Object.assign($$6.fn.bootstrapTable.events, {
  2158. 'editable-init.bs.table': 'onEditableInit',
  2159. 'editable-save.bs.table': 'onEditableSave',
  2160. 'editable-shown.bs.table': 'onEditableShown',
  2161. 'editable-hidden.bs.table': 'onEditableHidden'
  2162. });
  2163. $$6.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2164. _inherits(_class, _$$BootstrapTable);
  2165. var _super = _createSuper(_class);
  2166. function _class() {
  2167. _classCallCheck(this, _class);
  2168. return _super.apply(this, arguments);
  2169. }
  2170. _createClass(_class, [{
  2171. key: "initTable",
  2172. value: function initTable() {
  2173. var _this = this;
  2174. _get(_getPrototypeOf(_class.prototype), "initTable", this).call(this);
  2175. if (!this.options.editable) {
  2176. return;
  2177. }
  2178. this.editedCells = [];
  2179. $$6.each(this.columns, function (i, column) {
  2180. if (!column.editable) {
  2181. return;
  2182. }
  2183. var editableOptions = {};
  2184. var editableDataPrefix = 'editable-';
  2185. var processDataOptions = function processDataOptions(key, value) {
  2186. // Replace camel case with dashes.
  2187. var dashKey = key.replace(/([A-Z])/g, function ($1) {
  2188. return "-".concat($1.toLowerCase());
  2189. });
  2190. if (dashKey.indexOf(editableDataPrefix) === 0) {
  2191. editableOptions[dashKey.replace(editableDataPrefix, 'data-')] = value;
  2192. }
  2193. };
  2194. $$6.each(_this.options, processDataOptions);
  2195. column.formatter = column.formatter || function (value) {
  2196. return value;
  2197. };
  2198. column._formatter = column._formatter ? column._formatter : column.formatter;
  2199. column.formatter = function (value, row, index, field) {
  2200. var result = Utils.calculateObjectValue(column, column._formatter, [value, row, index], value);
  2201. result = typeof result === 'undefined' || result === null ? _this.options.undefinedText : result;
  2202. if (_this.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
  2203. var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false);
  2204. if ($$6.inArray(column.field + uniqueId, _this.editedCells) !== -1) {
  2205. result = value;
  2206. }
  2207. }
  2208. $$6.each(column, processDataOptions);
  2209. var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row], {});
  2210. var noEditFormatter = editableOpts.hasOwnProperty('noEditFormatter') && editableOpts.noEditFormatter(value, row, index, field);
  2211. if (noEditFormatter) {
  2212. return noEditFormatter;
  2213. }
  2214. var editableDataMarkup = '';
  2215. $$6.each(editableOptions, function (key, value) {
  2216. editableDataMarkup += " ".concat(key, "=\"").concat(value, "\"");
  2217. });
  2218. return "<a href=\"javascript:void(0)\"\n data-name=\"".concat(column.field, "\"\n data-pk=\"").concat(row[_this.options.idField], "\"\n data-value=\"").concat(value || '', "\"\n ").concat(editableDataMarkup, ">").concat(result, "</a>"); // expand all data-editable-XXX
  2219. };
  2220. });
  2221. }
  2222. }, {
  2223. key: "initBody",
  2224. value: function initBody(fixedScroll) {
  2225. var _this2 = this;
  2226. _get(_getPrototypeOf(_class.prototype), "initBody", this).call(this, fixedScroll);
  2227. if (!this.options.editable) {
  2228. return;
  2229. }
  2230. $$6.each(this.columns, function (i, column) {
  2231. if (!column.editable) {
  2232. return;
  2233. }
  2234. var data = _this2.getData({
  2235. escape: true
  2236. });
  2237. var $field = _this2.$body.find("a[data-name=\"".concat(column.field, "\"]"));
  2238. $field.each(function (i, element) {
  2239. var $element = $$6(element);
  2240. var $tr = $element.closest('tr');
  2241. var index = $tr.data('index');
  2242. var row = data[index];
  2243. var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row, $element], {});
  2244. $element.editable(editableOpts);
  2245. });
  2246. $field.off('save').on('save', function (_ref, _ref2) {
  2247. var currentTarget = _ref.currentTarget;
  2248. var submitValue = _ref2.submitValue;
  2249. var $this = $$6(currentTarget);
  2250. var data = _this2.getData();
  2251. var rowIndex = $this.parents('tr[data-index]').data('index');
  2252. var row = data[rowIndex];
  2253. var oldValue = row[column.field];
  2254. if (_this2.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
  2255. var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false);
  2256. if ($$6.inArray(column.field + uniqueId, _this2.editedCells) === -1) {
  2257. _this2.editedCells.push(column.field + uniqueId);
  2258. }
  2259. }
  2260. submitValue = Utils.escapeHTML(submitValue);
  2261. $this.data('value', submitValue);
  2262. row[column.field] = submitValue;
  2263. _this2.trigger('editable-save', column.field, row, rowIndex, oldValue, $this);
  2264. _this2.initBody();
  2265. });
  2266. $field.off('shown').on('shown', function (_ref3, editable) {
  2267. var currentTarget = _ref3.currentTarget;
  2268. var $this = $$6(currentTarget);
  2269. var data = _this2.getData();
  2270. var rowIndex = $this.parents('tr[data-index]').data('index');
  2271. var row = data[rowIndex];
  2272. _this2.trigger('editable-shown', column.field, row, $this, editable);
  2273. });
  2274. $field.off('hidden').on('hidden', function (_ref4, reason) {
  2275. var currentTarget = _ref4.currentTarget;
  2276. var $this = $$6(currentTarget);
  2277. var data = _this2.getData();
  2278. var rowIndex = $this.parents('tr[data-index]').data('index');
  2279. var row = data[rowIndex];
  2280. _this2.trigger('editable-hidden', column.field, row, $this, reason);
  2281. });
  2282. });
  2283. this.trigger('editable-init');
  2284. }
  2285. }, {
  2286. key: "getData",
  2287. value: function getData(params) {
  2288. var data = _get(_getPrototypeOf(_class.prototype), "getData", this).call(this, params);
  2289. if (params && params.escape) {
  2290. var _iterator = _createForOfIteratorHelper(data),
  2291. _step;
  2292. try {
  2293. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2294. var row = _step.value;
  2295. for (var _i = 0, _Object$entries = Object.entries(row); _i < _Object$entries.length; _i++) {
  2296. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2297. key = _Object$entries$_i[0],
  2298. value = _Object$entries$_i[1];
  2299. row[key] = Utils.unescapeHTML(value);
  2300. }
  2301. }
  2302. } catch (err) {
  2303. _iterator.e(err);
  2304. } finally {
  2305. _iterator.f();
  2306. }
  2307. }
  2308. return data;
  2309. }
  2310. }]);
  2311. return _class;
  2312. }($$6.BootstrapTable);
  2313. }));