bootstrap-table-export.js 105 KB

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