bootstrap-table-toolbar.js 97 KB

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