bootstrap-table-toolbar.js 97 KB

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