bootstrap-table-addrbar.js 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$6) { 'use strict';
  6. function _callSuper(t, o, e) {
  7. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  8. }
  9. function _isNativeReflectConstruct() {
  10. try {
  11. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  12. } catch (t) {}
  13. return (_isNativeReflectConstruct = function () {
  14. return !!t;
  15. })();
  16. }
  17. function _iterableToArrayLimit(r, l) {
  18. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  19. if (null != t) {
  20. var e,
  21. n,
  22. i,
  23. u,
  24. a = [],
  25. f = !0,
  26. o = !1;
  27. try {
  28. if (i = (t = t.call(r)).next, 0 === l) {
  29. if (Object(t) !== t) return;
  30. f = !1;
  31. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  32. } catch (r) {
  33. o = !0, n = r;
  34. } finally {
  35. try {
  36. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  37. } finally {
  38. if (o) throw n;
  39. }
  40. }
  41. return a;
  42. }
  43. }
  44. function _toPrimitive(t, r) {
  45. if ("object" != typeof t || !t) return t;
  46. var e = t[Symbol.toPrimitive];
  47. if (void 0 !== e) {
  48. var i = e.call(t, r || "default");
  49. if ("object" != typeof i) return i;
  50. throw new TypeError("@@toPrimitive must return a primitive value.");
  51. }
  52. return ("string" === r ? String : Number)(t);
  53. }
  54. function _toPropertyKey(t) {
  55. var i = _toPrimitive(t, "string");
  56. return "symbol" == typeof i ? i : String(i);
  57. }
  58. function _classCallCheck(instance, Constructor) {
  59. if (!(instance instanceof Constructor)) {
  60. throw new TypeError("Cannot call a class as a function");
  61. }
  62. }
  63. function _defineProperties(target, props) {
  64. for (var i = 0; i < props.length; i++) {
  65. var descriptor = props[i];
  66. descriptor.enumerable = descriptor.enumerable || false;
  67. descriptor.configurable = true;
  68. if ("value" in descriptor) descriptor.writable = true;
  69. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  70. }
  71. }
  72. function _createClass(Constructor, protoProps, staticProps) {
  73. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  74. if (staticProps) _defineProperties(Constructor, staticProps);
  75. Object.defineProperty(Constructor, "prototype", {
  76. writable: false
  77. });
  78. return Constructor;
  79. }
  80. function _inherits(subClass, superClass) {
  81. if (typeof superClass !== "function" && superClass !== null) {
  82. throw new TypeError("Super expression must either be null or a function");
  83. }
  84. subClass.prototype = Object.create(superClass && superClass.prototype, {
  85. constructor: {
  86. value: subClass,
  87. writable: true,
  88. configurable: true
  89. }
  90. });
  91. Object.defineProperty(subClass, "prototype", {
  92. writable: false
  93. });
  94. if (superClass) _setPrototypeOf(subClass, superClass);
  95. }
  96. function _getPrototypeOf(o) {
  97. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  98. return o.__proto__ || Object.getPrototypeOf(o);
  99. };
  100. return _getPrototypeOf(o);
  101. }
  102. function _setPrototypeOf(o, p) {
  103. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  104. o.__proto__ = p;
  105. return o;
  106. };
  107. return _setPrototypeOf(o, p);
  108. }
  109. function _assertThisInitialized(self) {
  110. if (self === void 0) {
  111. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  112. }
  113. return self;
  114. }
  115. function _possibleConstructorReturn(self, call) {
  116. if (call && (typeof call === "object" || typeof call === "function")) {
  117. return call;
  118. } else if (call !== void 0) {
  119. throw new TypeError("Derived constructors may only return object or undefined");
  120. }
  121. return _assertThisInitialized(self);
  122. }
  123. function _superPropBase(object, property) {
  124. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  125. object = _getPrototypeOf(object);
  126. if (object === null) break;
  127. }
  128. return object;
  129. }
  130. function _get() {
  131. if (typeof Reflect !== "undefined" && Reflect.get) {
  132. _get = Reflect.get.bind();
  133. } else {
  134. _get = function _get(target, property, receiver) {
  135. var base = _superPropBase(target, property);
  136. if (!base) return;
  137. var desc = Object.getOwnPropertyDescriptor(base, property);
  138. if (desc.get) {
  139. return desc.get.call(arguments.length < 3 ? target : receiver);
  140. }
  141. return desc.value;
  142. };
  143. }
  144. return _get.apply(this, arguments);
  145. }
  146. function _slicedToArray(arr, i) {
  147. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
  148. }
  149. function _arrayWithHoles(arr) {
  150. if (Array.isArray(arr)) return arr;
  151. }
  152. function _unsupportedIterableToArray(o, minLen) {
  153. if (!o) return;
  154. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  155. var n = Object.prototype.toString.call(o).slice(8, -1);
  156. if (n === "Object" && o.constructor) n = o.constructor.name;
  157. if (n === "Map" || n === "Set") return Array.from(o);
  158. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  159. }
  160. function _arrayLikeToArray(arr, len) {
  161. if (len == null || len > arr.length) len = arr.length;
  162. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  163. return arr2;
  164. }
  165. function _nonIterableRest() {
  166. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  167. }
  168. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  169. var check = function (it) {
  170. return it && it.Math === Math && it;
  171. };
  172. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  173. var global$g =
  174. // eslint-disable-next-line es/no-global-this -- safe
  175. check(typeof globalThis == 'object' && globalThis) ||
  176. check(typeof window == 'object' && window) ||
  177. // eslint-disable-next-line no-restricted-globals -- safe
  178. check(typeof self == 'object' && self) ||
  179. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  180. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  181. // eslint-disable-next-line no-new-func -- fallback
  182. (function () { return this; })() || Function('return this')();
  183. var objectGetOwnPropertyDescriptor = {};
  184. var fails$l = function (exec) {
  185. try {
  186. return !!exec();
  187. } catch (error) {
  188. return true;
  189. }
  190. };
  191. var fails$k = fails$l;
  192. // Detect IE8's incomplete defineProperty implementation
  193. var descriptors = !fails$k(function () {
  194. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  195. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  196. });
  197. var fails$j = fails$l;
  198. var functionBindNative = !fails$j(function () {
  199. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  200. var test = (function () { /* empty */ }).bind();
  201. // eslint-disable-next-line no-prototype-builtins -- safe
  202. return typeof test != 'function' || test.hasOwnProperty('prototype');
  203. });
  204. var NATIVE_BIND$2 = functionBindNative;
  205. var call$d = Function.prototype.call;
  206. var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
  207. return call$d.apply(call$d, arguments);
  208. };
  209. var objectPropertyIsEnumerable = {};
  210. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  211. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  212. var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
  213. // Nashorn ~ JDK8 bug
  214. var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  215. // `Object.prototype.propertyIsEnumerable` method implementation
  216. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  217. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  218. var descriptor = getOwnPropertyDescriptor$2(this, V);
  219. return !!descriptor && descriptor.enumerable;
  220. } : $propertyIsEnumerable$1;
  221. var createPropertyDescriptor$5 = function (bitmap, value) {
  222. return {
  223. enumerable: !(bitmap & 1),
  224. configurable: !(bitmap & 2),
  225. writable: !(bitmap & 4),
  226. value: value
  227. };
  228. };
  229. var NATIVE_BIND$1 = functionBindNative;
  230. var FunctionPrototype$1 = Function.prototype;
  231. var call$c = FunctionPrototype$1.call;
  232. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$c, call$c);
  233. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  234. return function () {
  235. return call$c.apply(fn, arguments);
  236. };
  237. };
  238. var uncurryThis$i = functionUncurryThis;
  239. var toString$7 = uncurryThis$i({}.toString);
  240. var stringSlice$4 = uncurryThis$i(''.slice);
  241. var classofRaw$2 = function (it) {
  242. return stringSlice$4(toString$7(it), 8, -1);
  243. };
  244. var uncurryThis$h = functionUncurryThis;
  245. var fails$i = fails$l;
  246. var classof$8 = classofRaw$2;
  247. var $Object$4 = Object;
  248. var split$1 = uncurryThis$h(''.split);
  249. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  250. var indexedObject = fails$i(function () {
  251. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  252. // eslint-disable-next-line no-prototype-builtins -- safe
  253. return !$Object$4('z').propertyIsEnumerable(0);
  254. }) ? function (it) {
  255. return classof$8(it) === 'String' ? split$1(it, '') : $Object$4(it);
  256. } : $Object$4;
  257. // we can't use just `it == null` since of `document.all` special case
  258. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  259. var isNullOrUndefined$4 = function (it) {
  260. return it === null || it === undefined;
  261. };
  262. var isNullOrUndefined$3 = isNullOrUndefined$4;
  263. var $TypeError$b = TypeError;
  264. // `RequireObjectCoercible` abstract operation
  265. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  266. var requireObjectCoercible$4 = function (it) {
  267. if (isNullOrUndefined$3(it)) throw new $TypeError$b("Can't call method on " + it);
  268. return it;
  269. };
  270. // toObject with fallback for non-array-like ES3 strings
  271. var IndexedObject$1 = indexedObject;
  272. var requireObjectCoercible$3 = requireObjectCoercible$4;
  273. var toIndexedObject$6 = function (it) {
  274. return IndexedObject$1(requireObjectCoercible$3(it));
  275. };
  276. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  277. var documentAll = typeof document == 'object' && document.all;
  278. // `IsCallable` abstract operation
  279. // https://tc39.es/ecma262/#sec-iscallable
  280. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  281. var isCallable$h = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  282. return typeof argument == 'function' || argument === documentAll;
  283. } : function (argument) {
  284. return typeof argument == 'function';
  285. };
  286. var isCallable$g = isCallable$h;
  287. var isObject$a = function (it) {
  288. return typeof it == 'object' ? it !== null : isCallable$g(it);
  289. };
  290. var global$f = global$g;
  291. var isCallable$f = isCallable$h;
  292. var aFunction = function (argument) {
  293. return isCallable$f(argument) ? argument : undefined;
  294. };
  295. var getBuiltIn$4 = function (namespace, method) {
  296. return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
  297. };
  298. var uncurryThis$g = functionUncurryThis;
  299. var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
  300. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  301. var global$e = global$g;
  302. var userAgent = engineUserAgent;
  303. var process = global$e.process;
  304. var Deno = global$e.Deno;
  305. var versions = process && process.versions || Deno && Deno.version;
  306. var v8 = versions && versions.v8;
  307. var match, version;
  308. if (v8) {
  309. match = v8.split('.');
  310. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  311. // but their correct versions are not interesting for us
  312. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  313. }
  314. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  315. // so check `userAgent` even if `.v8` exists, but 0
  316. if (!version && userAgent) {
  317. match = userAgent.match(/Edge\/(\d+)/);
  318. if (!match || match[1] >= 74) {
  319. match = userAgent.match(/Chrome\/(\d+)/);
  320. if (match) version = +match[1];
  321. }
  322. }
  323. var engineV8Version = version;
  324. /* eslint-disable es/no-symbol -- required for testing */
  325. var V8_VERSION$2 = engineV8Version;
  326. var fails$h = fails$l;
  327. var global$d = global$g;
  328. var $String$5 = global$d.String;
  329. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  330. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
  331. var symbol = Symbol('symbol detection');
  332. // Chrome 38 Symbol has incorrect toString conversion
  333. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  334. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  335. // of course, fail.
  336. return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
  337. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  338. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  339. });
  340. /* eslint-disable es/no-symbol -- required for testing */
  341. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  342. var useSymbolAsUid = NATIVE_SYMBOL$1
  343. && !Symbol.sham
  344. && typeof Symbol.iterator == 'symbol';
  345. var getBuiltIn$3 = getBuiltIn$4;
  346. var isCallable$e = isCallable$h;
  347. var isPrototypeOf$2 = objectIsPrototypeOf;
  348. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  349. var $Object$3 = Object;
  350. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  351. return typeof it == 'symbol';
  352. } : function (it) {
  353. var $Symbol = getBuiltIn$3('Symbol');
  354. return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
  355. };
  356. var $String$4 = String;
  357. var tryToString$2 = function (argument) {
  358. try {
  359. return $String$4(argument);
  360. } catch (error) {
  361. return 'Object';
  362. }
  363. };
  364. var isCallable$d = isCallable$h;
  365. var tryToString$1 = tryToString$2;
  366. var $TypeError$a = TypeError;
  367. // `Assert: IsCallable(argument) is true`
  368. var aCallable$4 = function (argument) {
  369. if (isCallable$d(argument)) return argument;
  370. throw new $TypeError$a(tryToString$1(argument) + ' is not a function');
  371. };
  372. var aCallable$3 = aCallable$4;
  373. var isNullOrUndefined$2 = isNullOrUndefined$4;
  374. // `GetMethod` abstract operation
  375. // https://tc39.es/ecma262/#sec-getmethod
  376. var getMethod$3 = function (V, P) {
  377. var func = V[P];
  378. return isNullOrUndefined$2(func) ? undefined : aCallable$3(func);
  379. };
  380. var call$b = functionCall;
  381. var isCallable$c = isCallable$h;
  382. var isObject$9 = isObject$a;
  383. var $TypeError$9 = TypeError;
  384. // `OrdinaryToPrimitive` abstract operation
  385. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  386. var ordinaryToPrimitive$1 = function (input, pref) {
  387. var fn, val;
  388. if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$9(val = call$b(fn, input))) return val;
  389. if (isCallable$c(fn = input.valueOf) && !isObject$9(val = call$b(fn, input))) return val;
  390. if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$9(val = call$b(fn, input))) return val;
  391. throw new $TypeError$9("Can't convert object to primitive value");
  392. };
  393. var sharedStore = {exports: {}};
  394. var isPure = false;
  395. var global$c = global$g;
  396. // eslint-disable-next-line es/no-object-defineproperty -- safe
  397. var defineProperty$6 = Object.defineProperty;
  398. var defineGlobalProperty$3 = function (key, value) {
  399. try {
  400. defineProperty$6(global$c, key, { value: value, configurable: true, writable: true });
  401. } catch (error) {
  402. global$c[key] = value;
  403. } return value;
  404. };
  405. var globalThis$1 = global$g;
  406. var defineGlobalProperty$2 = defineGlobalProperty$3;
  407. var SHARED = '__core-js_shared__';
  408. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  409. (store$3.versions || (store$3.versions = [])).push({
  410. version: '3.36.0',
  411. mode: 'global',
  412. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  413. license: 'https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE',
  414. source: 'https://github.com/zloirock/core-js'
  415. });
  416. var sharedStoreExports = sharedStore.exports;
  417. var store$2 = sharedStoreExports;
  418. var shared$4 = function (key, value) {
  419. return store$2[key] || (store$2[key] = value || {});
  420. };
  421. var requireObjectCoercible$2 = requireObjectCoercible$4;
  422. var $Object$2 = Object;
  423. // `ToObject` abstract operation
  424. // https://tc39.es/ecma262/#sec-toobject
  425. var toObject$4 = function (argument) {
  426. return $Object$2(requireObjectCoercible$2(argument));
  427. };
  428. var uncurryThis$f = functionUncurryThis;
  429. var toObject$3 = toObject$4;
  430. var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
  431. // `HasOwnProperty` abstract operation
  432. // https://tc39.es/ecma262/#sec-hasownproperty
  433. // eslint-disable-next-line es/no-object-hasown -- safe
  434. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  435. return hasOwnProperty(toObject$3(it), key);
  436. };
  437. var uncurryThis$e = functionUncurryThis;
  438. var id = 0;
  439. var postfix = Math.random();
  440. var toString$6 = uncurryThis$e(1.0.toString);
  441. var uid$2 = function (key) {
  442. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
  443. };
  444. var global$b = global$g;
  445. var shared$3 = shared$4;
  446. var hasOwn$a = hasOwnProperty_1;
  447. var uid$1 = uid$2;
  448. var NATIVE_SYMBOL = symbolConstructorDetection;
  449. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  450. var Symbol$1 = global$b.Symbol;
  451. var WellKnownSymbolsStore = shared$3('wks');
  452. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  453. var wellKnownSymbol$f = function (name) {
  454. if (!hasOwn$a(WellKnownSymbolsStore, name)) {
  455. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
  456. ? Symbol$1[name]
  457. : createWellKnownSymbol('Symbol.' + name);
  458. } return WellKnownSymbolsStore[name];
  459. };
  460. var call$a = functionCall;
  461. var isObject$8 = isObject$a;
  462. var isSymbol$1 = isSymbol$2;
  463. var getMethod$2 = getMethod$3;
  464. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  465. var wellKnownSymbol$e = wellKnownSymbol$f;
  466. var $TypeError$8 = TypeError;
  467. var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
  468. // `ToPrimitive` abstract operation
  469. // https://tc39.es/ecma262/#sec-toprimitive
  470. var toPrimitive$1 = function (input, pref) {
  471. if (!isObject$8(input) || isSymbol$1(input)) return input;
  472. var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
  473. var result;
  474. if (exoticToPrim) {
  475. if (pref === undefined) pref = 'default';
  476. result = call$a(exoticToPrim, input, pref);
  477. if (!isObject$8(result) || isSymbol$1(result)) return result;
  478. throw new $TypeError$8("Can't convert object to primitive value");
  479. }
  480. if (pref === undefined) pref = 'number';
  481. return ordinaryToPrimitive(input, pref);
  482. };
  483. var toPrimitive = toPrimitive$1;
  484. var isSymbol = isSymbol$2;
  485. // `ToPropertyKey` abstract operation
  486. // https://tc39.es/ecma262/#sec-topropertykey
  487. var toPropertyKey$2 = function (argument) {
  488. var key = toPrimitive(argument, 'string');
  489. return isSymbol(key) ? key : key + '';
  490. };
  491. var global$a = global$g;
  492. var isObject$7 = isObject$a;
  493. var document$1 = global$a.document;
  494. // typeof document.createElement is 'object' in old IE
  495. var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
  496. var documentCreateElement$2 = function (it) {
  497. return EXISTS$1 ? document$1.createElement(it) : {};
  498. };
  499. var DESCRIPTORS$e = descriptors;
  500. var fails$g = fails$l;
  501. var createElement = documentCreateElement$2;
  502. // Thanks to IE8 for its funny defineProperty
  503. var ie8DomDefine = !DESCRIPTORS$e && !fails$g(function () {
  504. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  505. return Object.defineProperty(createElement('div'), 'a', {
  506. get: function () { return 7; }
  507. }).a !== 7;
  508. });
  509. var DESCRIPTORS$d = descriptors;
  510. var call$9 = functionCall;
  511. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  512. var createPropertyDescriptor$4 = createPropertyDescriptor$5;
  513. var toIndexedObject$5 = toIndexedObject$6;
  514. var toPropertyKey$1 = toPropertyKey$2;
  515. var hasOwn$9 = hasOwnProperty_1;
  516. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  517. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  518. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  519. // `Object.getOwnPropertyDescriptor` method
  520. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  521. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  522. O = toIndexedObject$5(O);
  523. P = toPropertyKey$1(P);
  524. if (IE8_DOM_DEFINE$1) try {
  525. return $getOwnPropertyDescriptor$1(O, P);
  526. } catch (error) { /* empty */ }
  527. if (hasOwn$9(O, P)) return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
  528. };
  529. var objectDefineProperty = {};
  530. var DESCRIPTORS$c = descriptors;
  531. var fails$f = fails$l;
  532. // V8 ~ Chrome 36-
  533. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  534. var v8PrototypeDefineBug = DESCRIPTORS$c && fails$f(function () {
  535. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  536. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  537. value: 42,
  538. writable: false
  539. }).prototype !== 42;
  540. });
  541. var isObject$6 = isObject$a;
  542. var $String$3 = String;
  543. var $TypeError$7 = TypeError;
  544. // `Assert: Type(argument) is Object`
  545. var anObject$b = function (argument) {
  546. if (isObject$6(argument)) return argument;
  547. throw new $TypeError$7($String$3(argument) + ' is not an object');
  548. };
  549. var DESCRIPTORS$b = descriptors;
  550. var IE8_DOM_DEFINE = ie8DomDefine;
  551. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  552. var anObject$a = anObject$b;
  553. var toPropertyKey = toPropertyKey$2;
  554. var $TypeError$6 = TypeError;
  555. // eslint-disable-next-line es/no-object-defineproperty -- safe
  556. var $defineProperty = Object.defineProperty;
  557. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  558. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  559. var ENUMERABLE = 'enumerable';
  560. var CONFIGURABLE$1 = 'configurable';
  561. var WRITABLE = 'writable';
  562. // `Object.defineProperty` method
  563. // https://tc39.es/ecma262/#sec-object.defineproperty
  564. objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  565. anObject$a(O);
  566. P = toPropertyKey(P);
  567. anObject$a(Attributes);
  568. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  569. var current = $getOwnPropertyDescriptor(O, P);
  570. if (current && current[WRITABLE]) {
  571. O[P] = Attributes.value;
  572. Attributes = {
  573. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  574. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  575. writable: false
  576. };
  577. }
  578. } return $defineProperty(O, P, Attributes);
  579. } : $defineProperty : function defineProperty(O, P, Attributes) {
  580. anObject$a(O);
  581. P = toPropertyKey(P);
  582. anObject$a(Attributes);
  583. if (IE8_DOM_DEFINE) try {
  584. return $defineProperty(O, P, Attributes);
  585. } catch (error) { /* empty */ }
  586. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
  587. if ('value' in Attributes) O[P] = Attributes.value;
  588. return O;
  589. };
  590. var DESCRIPTORS$a = descriptors;
  591. var definePropertyModule$4 = objectDefineProperty;
  592. var createPropertyDescriptor$3 = createPropertyDescriptor$5;
  593. var createNonEnumerableProperty$5 = DESCRIPTORS$a ? function (object, key, value) {
  594. return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
  595. } : function (object, key, value) {
  596. object[key] = value;
  597. return object;
  598. };
  599. var makeBuiltIn$3 = {exports: {}};
  600. var DESCRIPTORS$9 = descriptors;
  601. var hasOwn$8 = hasOwnProperty_1;
  602. var FunctionPrototype = Function.prototype;
  603. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  604. var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
  605. var EXISTS = hasOwn$8(FunctionPrototype, 'name');
  606. // additional protection from minified / mangled / dropped function names
  607. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  608. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype, 'name').configurable));
  609. var functionName = {
  610. EXISTS: EXISTS,
  611. PROPER: PROPER,
  612. CONFIGURABLE: CONFIGURABLE
  613. };
  614. var uncurryThis$d = functionUncurryThis;
  615. var isCallable$b = isCallable$h;
  616. var store$1 = sharedStoreExports;
  617. var functionToString = uncurryThis$d(Function.toString);
  618. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  619. if (!isCallable$b(store$1.inspectSource)) {
  620. store$1.inspectSource = function (it) {
  621. return functionToString(it);
  622. };
  623. }
  624. var inspectSource$2 = store$1.inspectSource;
  625. var global$9 = global$g;
  626. var isCallable$a = isCallable$h;
  627. var WeakMap$1 = global$9.WeakMap;
  628. var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
  629. var shared$2 = shared$4;
  630. var uid = uid$2;
  631. var keys = shared$2('keys');
  632. var sharedKey$3 = function (key) {
  633. return keys[key] || (keys[key] = uid(key));
  634. };
  635. var hiddenKeys$4 = {};
  636. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  637. var global$8 = global$g;
  638. var isObject$5 = isObject$a;
  639. var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
  640. var hasOwn$7 = hasOwnProperty_1;
  641. var shared$1 = sharedStoreExports;
  642. var sharedKey$2 = sharedKey$3;
  643. var hiddenKeys$3 = hiddenKeys$4;
  644. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  645. var TypeError$2 = global$8.TypeError;
  646. var WeakMap = global$8.WeakMap;
  647. var set, get, has;
  648. var enforce = function (it) {
  649. return has(it) ? get(it) : set(it, {});
  650. };
  651. var getterFor = function (TYPE) {
  652. return function (it) {
  653. var state;
  654. if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
  655. throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
  656. } return state;
  657. };
  658. };
  659. if (NATIVE_WEAK_MAP || shared$1.state) {
  660. var store = shared$1.state || (shared$1.state = new WeakMap());
  661. /* eslint-disable no-self-assign -- prototype methods protection */
  662. store.get = store.get;
  663. store.has = store.has;
  664. store.set = store.set;
  665. /* eslint-enable no-self-assign -- prototype methods protection */
  666. set = function (it, metadata) {
  667. if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  668. metadata.facade = it;
  669. store.set(it, metadata);
  670. return metadata;
  671. };
  672. get = function (it) {
  673. return store.get(it) || {};
  674. };
  675. has = function (it) {
  676. return store.has(it);
  677. };
  678. } else {
  679. var STATE = sharedKey$2('state');
  680. hiddenKeys$3[STATE] = true;
  681. set = function (it, metadata) {
  682. if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  683. metadata.facade = it;
  684. createNonEnumerableProperty$4(it, STATE, metadata);
  685. return metadata;
  686. };
  687. get = function (it) {
  688. return hasOwn$7(it, STATE) ? it[STATE] : {};
  689. };
  690. has = function (it) {
  691. return hasOwn$7(it, STATE);
  692. };
  693. }
  694. var internalState = {
  695. set: set,
  696. get: get,
  697. has: has,
  698. enforce: enforce,
  699. getterFor: getterFor
  700. };
  701. var uncurryThis$c = functionUncurryThis;
  702. var fails$e = fails$l;
  703. var isCallable$9 = isCallable$h;
  704. var hasOwn$6 = hasOwnProperty_1;
  705. var DESCRIPTORS$8 = descriptors;
  706. var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
  707. var inspectSource$1 = inspectSource$2;
  708. var InternalStateModule$3 = internalState;
  709. var enforceInternalState = InternalStateModule$3.enforce;
  710. var getInternalState$3 = InternalStateModule$3.get;
  711. var $String$2 = String;
  712. // eslint-disable-next-line es/no-object-defineproperty -- safe
  713. var defineProperty$5 = Object.defineProperty;
  714. var stringSlice$3 = uncurryThis$c(''.slice);
  715. var replace$2 = uncurryThis$c(''.replace);
  716. var join$1 = uncurryThis$c([].join);
  717. var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$e(function () {
  718. return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  719. });
  720. var TEMPLATE = String(String).split('String');
  721. var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
  722. if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') {
  723. name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  724. }
  725. if (options && options.getter) name = 'get ' + name;
  726. if (options && options.setter) name = 'set ' + name;
  727. if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
  728. if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
  729. else value.name = name;
  730. }
  731. if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
  732. defineProperty$5(value, 'length', { value: options.arity });
  733. }
  734. try {
  735. if (options && hasOwn$6(options, 'constructor') && options.constructor) {
  736. if (DESCRIPTORS$8) defineProperty$5(value, 'prototype', { writable: false });
  737. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  738. } else if (value.prototype) value.prototype = undefined;
  739. } catch (error) { /* empty */ }
  740. var state = enforceInternalState(value);
  741. if (!hasOwn$6(state, 'source')) {
  742. state.source = join$1(TEMPLATE, typeof name == 'string' ? name : '');
  743. } return value;
  744. };
  745. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  746. // eslint-disable-next-line no-extend-native -- required
  747. Function.prototype.toString = makeBuiltIn$2(function toString() {
  748. return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
  749. }, 'toString');
  750. var makeBuiltInExports = makeBuiltIn$3.exports;
  751. var isCallable$8 = isCallable$h;
  752. var definePropertyModule$3 = objectDefineProperty;
  753. var makeBuiltIn$1 = makeBuiltInExports;
  754. var defineGlobalProperty$1 = defineGlobalProperty$3;
  755. var defineBuiltIn$8 = function (O, key, value, options) {
  756. if (!options) options = {};
  757. var simple = options.enumerable;
  758. var name = options.name !== undefined ? options.name : key;
  759. if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
  760. if (options.global) {
  761. if (simple) O[key] = value;
  762. else defineGlobalProperty$1(key, value);
  763. } else {
  764. try {
  765. if (!options.unsafe) delete O[key];
  766. else if (O[key]) simple = true;
  767. } catch (error) { /* empty */ }
  768. if (simple) O[key] = value;
  769. else definePropertyModule$3.f(O, key, {
  770. value: value,
  771. enumerable: false,
  772. configurable: !options.nonConfigurable,
  773. writable: !options.nonWritable
  774. });
  775. } return O;
  776. };
  777. var objectGetOwnPropertyNames = {};
  778. var ceil = Math.ceil;
  779. var floor$1 = Math.floor;
  780. // `Math.trunc` method
  781. // https://tc39.es/ecma262/#sec-math.trunc
  782. // eslint-disable-next-line es/no-math-trunc -- safe
  783. var mathTrunc = Math.trunc || function trunc(x) {
  784. var n = +x;
  785. return (n > 0 ? floor$1 : ceil)(n);
  786. };
  787. var trunc = mathTrunc;
  788. // `ToIntegerOrInfinity` abstract operation
  789. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  790. var toIntegerOrInfinity$3 = function (argument) {
  791. var number = +argument;
  792. // eslint-disable-next-line no-self-compare -- NaN check
  793. return number !== number || number === 0 ? 0 : trunc(number);
  794. };
  795. var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
  796. var max = Math.max;
  797. var min$1 = Math.min;
  798. // Helper for a popular repeating case of the spec:
  799. // Let integer be ? ToInteger(index).
  800. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  801. var toAbsoluteIndex$1 = function (index, length) {
  802. var integer = toIntegerOrInfinity$2(index);
  803. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  804. };
  805. var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
  806. var min = Math.min;
  807. // `ToLength` abstract operation
  808. // https://tc39.es/ecma262/#sec-tolength
  809. var toLength$1 = function (argument) {
  810. var len = toIntegerOrInfinity$1(argument);
  811. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  812. };
  813. var toLength = toLength$1;
  814. // `LengthOfArrayLike` abstract operation
  815. // https://tc39.es/ecma262/#sec-lengthofarraylike
  816. var lengthOfArrayLike$2 = function (obj) {
  817. return toLength(obj.length);
  818. };
  819. var toIndexedObject$4 = toIndexedObject$6;
  820. var toAbsoluteIndex = toAbsoluteIndex$1;
  821. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  822. // `Array.prototype.{ indexOf, includes }` methods implementation
  823. var createMethod$2 = function (IS_INCLUDES) {
  824. return function ($this, el, fromIndex) {
  825. var O = toIndexedObject$4($this);
  826. var length = lengthOfArrayLike$1(O);
  827. if (length === 0) return !IS_INCLUDES && -1;
  828. var index = toAbsoluteIndex(fromIndex, length);
  829. var value;
  830. // Array#includes uses SameValueZero equality algorithm
  831. // eslint-disable-next-line no-self-compare -- NaN check
  832. if (IS_INCLUDES && el !== el) while (length > index) {
  833. value = O[index++];
  834. // eslint-disable-next-line no-self-compare -- NaN check
  835. if (value !== value) return true;
  836. // Array#indexOf ignores holes, Array#includes - not
  837. } else for (;length > index; index++) {
  838. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  839. } return !IS_INCLUDES && -1;
  840. };
  841. };
  842. var arrayIncludes = {
  843. // `Array.prototype.includes` method
  844. // https://tc39.es/ecma262/#sec-array.prototype.includes
  845. includes: createMethod$2(true),
  846. // `Array.prototype.indexOf` method
  847. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  848. indexOf: createMethod$2(false)
  849. };
  850. var uncurryThis$b = functionUncurryThis;
  851. var hasOwn$5 = hasOwnProperty_1;
  852. var toIndexedObject$3 = toIndexedObject$6;
  853. var indexOf$1 = arrayIncludes.indexOf;
  854. var hiddenKeys$2 = hiddenKeys$4;
  855. var push$2 = uncurryThis$b([].push);
  856. var objectKeysInternal = function (object, names) {
  857. var O = toIndexedObject$3(object);
  858. var i = 0;
  859. var result = [];
  860. var key;
  861. for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$2(result, key);
  862. // Don't enum bug & hidden keys
  863. while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
  864. ~indexOf$1(result, key) || push$2(result, key);
  865. }
  866. return result;
  867. };
  868. // IE8- don't enum bug keys
  869. var enumBugKeys$3 = [
  870. 'constructor',
  871. 'hasOwnProperty',
  872. 'isPrototypeOf',
  873. 'propertyIsEnumerable',
  874. 'toLocaleString',
  875. 'toString',
  876. 'valueOf'
  877. ];
  878. var internalObjectKeys$1 = objectKeysInternal;
  879. var enumBugKeys$2 = enumBugKeys$3;
  880. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  881. // `Object.getOwnPropertyNames` method
  882. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  883. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  884. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  885. return internalObjectKeys$1(O, hiddenKeys$1);
  886. };
  887. var objectGetOwnPropertySymbols = {};
  888. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  889. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  890. var getBuiltIn$2 = getBuiltIn$4;
  891. var uncurryThis$a = functionUncurryThis;
  892. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  893. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  894. var anObject$9 = anObject$b;
  895. var concat$1 = uncurryThis$a([].concat);
  896. // all object keys, includes non-enumerable and symbols
  897. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  898. var keys = getOwnPropertyNamesModule.f(anObject$9(it));
  899. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  900. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  901. };
  902. var hasOwn$4 = hasOwnProperty_1;
  903. var ownKeys = ownKeys$1;
  904. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  905. var definePropertyModule$2 = objectDefineProperty;
  906. var copyConstructorProperties$1 = function (target, source, exceptions) {
  907. var keys = ownKeys(source);
  908. var defineProperty = definePropertyModule$2.f;
  909. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  910. for (var i = 0; i < keys.length; i++) {
  911. var key = keys[i];
  912. if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
  913. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  914. }
  915. }
  916. };
  917. var fails$d = fails$l;
  918. var isCallable$7 = isCallable$h;
  919. var replacement = /#|\.prototype\./;
  920. var isForced$1 = function (feature, detection) {
  921. var value = data[normalize(feature)];
  922. return value === POLYFILL ? true
  923. : value === NATIVE ? false
  924. : isCallable$7(detection) ? fails$d(detection)
  925. : !!detection;
  926. };
  927. var normalize = isForced$1.normalize = function (string) {
  928. return String(string).replace(replacement, '.').toLowerCase();
  929. };
  930. var data = isForced$1.data = {};
  931. var NATIVE = isForced$1.NATIVE = 'N';
  932. var POLYFILL = isForced$1.POLYFILL = 'P';
  933. var isForced_1 = isForced$1;
  934. var global$7 = global$g;
  935. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  936. var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
  937. var defineBuiltIn$7 = defineBuiltIn$8;
  938. var defineGlobalProperty = defineGlobalProperty$3;
  939. var copyConstructorProperties = copyConstructorProperties$1;
  940. var isForced = isForced_1;
  941. /*
  942. options.target - name of the target object
  943. options.global - target is the global object
  944. options.stat - export as static methods of target
  945. options.proto - export as prototype methods of target
  946. options.real - real prototype method for the `pure` version
  947. options.forced - export even if the native feature is available
  948. options.bind - bind methods to the target, required for the `pure` version
  949. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  950. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  951. options.sham - add a flag to not completely full polyfills
  952. options.enumerable - export as enumerable property
  953. options.dontCallGetSet - prevent calling a getter on target
  954. options.name - the .name of the function if it does not match the key
  955. */
  956. var _export = function (options, source) {
  957. var TARGET = options.target;
  958. var GLOBAL = options.global;
  959. var STATIC = options.stat;
  960. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  961. if (GLOBAL) {
  962. target = global$7;
  963. } else if (STATIC) {
  964. target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
  965. } else {
  966. target = global$7[TARGET] && global$7[TARGET].prototype;
  967. }
  968. if (target) for (key in source) {
  969. sourceProperty = source[key];
  970. if (options.dontCallGetSet) {
  971. descriptor = getOwnPropertyDescriptor$1(target, key);
  972. targetProperty = descriptor && descriptor.value;
  973. } else targetProperty = target[key];
  974. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  975. // contained in target
  976. if (!FORCED && targetProperty !== undefined) {
  977. if (typeof sourceProperty == typeof targetProperty) continue;
  978. copyConstructorProperties(sourceProperty, targetProperty);
  979. }
  980. // add a flag to not completely full polyfills
  981. if (options.sham || (targetProperty && targetProperty.sham)) {
  982. createNonEnumerableProperty$3(sourceProperty, 'sham', true);
  983. }
  984. defineBuiltIn$7(target, key, sourceProperty, options);
  985. }
  986. };
  987. var classof$7 = classofRaw$2;
  988. // `IsArray` abstract operation
  989. // https://tc39.es/ecma262/#sec-isarray
  990. // eslint-disable-next-line es/no-array-isarray -- safe
  991. var isArray$2 = Array.isArray || function isArray(argument) {
  992. return classof$7(argument) === 'Array';
  993. };
  994. var $TypeError$5 = TypeError;
  995. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  996. var doesNotExceedSafeInteger$1 = function (it) {
  997. if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
  998. return it;
  999. };
  1000. var DESCRIPTORS$7 = descriptors;
  1001. var definePropertyModule$1 = objectDefineProperty;
  1002. var createPropertyDescriptor$2 = createPropertyDescriptor$5;
  1003. var createProperty$1 = function (object, key, value) {
  1004. if (DESCRIPTORS$7) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
  1005. else object[key] = value;
  1006. };
  1007. var wellKnownSymbol$d = wellKnownSymbol$f;
  1008. var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
  1009. var test = {};
  1010. test[TO_STRING_TAG$2] = 'z';
  1011. var toStringTagSupport = String(test) === '[object z]';
  1012. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1013. var isCallable$6 = isCallable$h;
  1014. var classofRaw$1 = classofRaw$2;
  1015. var wellKnownSymbol$c = wellKnownSymbol$f;
  1016. var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
  1017. var $Object$1 = Object;
  1018. // ES3 wrong here
  1019. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1020. // fallback for IE11 Script Access Denied error
  1021. var tryGet = function (it, key) {
  1022. try {
  1023. return it[key];
  1024. } catch (error) { /* empty */ }
  1025. };
  1026. // getting tag from ES6+ `Object.prototype.toString`
  1027. var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1028. var O, tag, result;
  1029. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1030. // @@toStringTag case
  1031. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
  1032. // builtinTag case
  1033. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1034. // ES3 arguments fallback
  1035. : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
  1036. };
  1037. var uncurryThis$9 = functionUncurryThis;
  1038. var fails$c = fails$l;
  1039. var isCallable$5 = isCallable$h;
  1040. var classof$5 = classof$6;
  1041. var getBuiltIn$1 = getBuiltIn$4;
  1042. var inspectSource = inspectSource$2;
  1043. var noop = function () { /* empty */ };
  1044. var construct = getBuiltIn$1('Reflect', 'construct');
  1045. var constructorRegExp = /^\s*(?:class|function)\b/;
  1046. var exec$1 = uncurryThis$9(constructorRegExp.exec);
  1047. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1048. var isConstructorModern = function isConstructor(argument) {
  1049. if (!isCallable$5(argument)) return false;
  1050. try {
  1051. construct(noop, [], argument);
  1052. return true;
  1053. } catch (error) {
  1054. return false;
  1055. }
  1056. };
  1057. var isConstructorLegacy = function isConstructor(argument) {
  1058. if (!isCallable$5(argument)) return false;
  1059. switch (classof$5(argument)) {
  1060. case 'AsyncFunction':
  1061. case 'GeneratorFunction':
  1062. case 'AsyncGeneratorFunction': return false;
  1063. }
  1064. try {
  1065. // we can't check .prototype since constructors produced by .bind haven't it
  1066. // `Function#toString` throws on some built-it function in some legacy engines
  1067. // (for example, `DOMQuad` and similar in FF41-)
  1068. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1069. } catch (error) {
  1070. return true;
  1071. }
  1072. };
  1073. isConstructorLegacy.sham = true;
  1074. // `IsConstructor` abstract operation
  1075. // https://tc39.es/ecma262/#sec-isconstructor
  1076. var isConstructor$1 = !construct || fails$c(function () {
  1077. var called;
  1078. return isConstructorModern(isConstructorModern.call)
  1079. || !isConstructorModern(Object)
  1080. || !isConstructorModern(function () { called = true; })
  1081. || called;
  1082. }) ? isConstructorLegacy : isConstructorModern;
  1083. var isArray$1 = isArray$2;
  1084. var isConstructor = isConstructor$1;
  1085. var isObject$4 = isObject$a;
  1086. var wellKnownSymbol$b = wellKnownSymbol$f;
  1087. var SPECIES$2 = wellKnownSymbol$b('species');
  1088. var $Array = Array;
  1089. // a part of `ArraySpeciesCreate` abstract operation
  1090. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1091. var arraySpeciesConstructor$1 = function (originalArray) {
  1092. var C;
  1093. if (isArray$1(originalArray)) {
  1094. C = originalArray.constructor;
  1095. // cross-realm fallback
  1096. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1097. else if (isObject$4(C)) {
  1098. C = C[SPECIES$2];
  1099. if (C === null) C = undefined;
  1100. }
  1101. } return C === undefined ? $Array : C;
  1102. };
  1103. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1104. // `ArraySpeciesCreate` abstract operation
  1105. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1106. var arraySpeciesCreate$1 = function (originalArray, length) {
  1107. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1108. };
  1109. var fails$b = fails$l;
  1110. var wellKnownSymbol$a = wellKnownSymbol$f;
  1111. var V8_VERSION$1 = engineV8Version;
  1112. var SPECIES$1 = wellKnownSymbol$a('species');
  1113. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1114. // We can't use this feature detection in V8 since it causes
  1115. // deoptimization and serious performance degradation
  1116. // https://github.com/zloirock/core-js/issues/677
  1117. return V8_VERSION$1 >= 51 || !fails$b(function () {
  1118. var array = [];
  1119. var constructor = array.constructor = {};
  1120. constructor[SPECIES$1] = function () {
  1121. return { foo: 1 };
  1122. };
  1123. return array[METHOD_NAME](Boolean).foo !== 1;
  1124. });
  1125. };
  1126. var $$5 = _export;
  1127. var fails$a = fails$l;
  1128. var isArray = isArray$2;
  1129. var isObject$3 = isObject$a;
  1130. var toObject$2 = toObject$4;
  1131. var lengthOfArrayLike = lengthOfArrayLike$2;
  1132. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1133. var createProperty = createProperty$1;
  1134. var arraySpeciesCreate = arraySpeciesCreate$1;
  1135. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1136. var wellKnownSymbol$9 = wellKnownSymbol$f;
  1137. var V8_VERSION = engineV8Version;
  1138. var IS_CONCAT_SPREADABLE = wellKnownSymbol$9('isConcatSpreadable');
  1139. // We can't use this feature detection in V8 since it causes
  1140. // deoptimization and serious performance degradation
  1141. // https://github.com/zloirock/core-js/issues/679
  1142. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () {
  1143. var array = [];
  1144. array[IS_CONCAT_SPREADABLE] = false;
  1145. return array.concat()[0] !== array;
  1146. });
  1147. var isConcatSpreadable = function (O) {
  1148. if (!isObject$3(O)) return false;
  1149. var spreadable = O[IS_CONCAT_SPREADABLE];
  1150. return spreadable !== undefined ? !!spreadable : isArray(O);
  1151. };
  1152. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1153. // `Array.prototype.concat` method
  1154. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1155. // with adding support of @@isConcatSpreadable and @@species
  1156. $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1157. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1158. concat: function concat(arg) {
  1159. var O = toObject$2(this);
  1160. var A = arraySpeciesCreate(O, 0);
  1161. var n = 0;
  1162. var i, k, length, len, E;
  1163. for (i = -1, length = arguments.length; i < length; i++) {
  1164. E = i === -1 ? O : arguments[i];
  1165. if (isConcatSpreadable(E)) {
  1166. len = lengthOfArrayLike(E);
  1167. doesNotExceedSafeInteger(n + len);
  1168. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1169. } else {
  1170. doesNotExceedSafeInteger(n + 1);
  1171. createProperty(A, n++, E);
  1172. }
  1173. }
  1174. A.length = n;
  1175. return A;
  1176. }
  1177. });
  1178. var objectDefineProperties = {};
  1179. var internalObjectKeys = objectKeysInternal;
  1180. var enumBugKeys$1 = enumBugKeys$3;
  1181. // `Object.keys` method
  1182. // https://tc39.es/ecma262/#sec-object.keys
  1183. // eslint-disable-next-line es/no-object-keys -- safe
  1184. var objectKeys$3 = Object.keys || function keys(O) {
  1185. return internalObjectKeys(O, enumBugKeys$1);
  1186. };
  1187. var DESCRIPTORS$6 = descriptors;
  1188. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1189. var definePropertyModule = objectDefineProperty;
  1190. var anObject$8 = anObject$b;
  1191. var toIndexedObject$2 = toIndexedObject$6;
  1192. var objectKeys$2 = objectKeys$3;
  1193. // `Object.defineProperties` method
  1194. // https://tc39.es/ecma262/#sec-object.defineproperties
  1195. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1196. objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1197. anObject$8(O);
  1198. var props = toIndexedObject$2(Properties);
  1199. var keys = objectKeys$2(Properties);
  1200. var length = keys.length;
  1201. var index = 0;
  1202. var key;
  1203. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1204. return O;
  1205. };
  1206. var getBuiltIn = getBuiltIn$4;
  1207. var html$1 = getBuiltIn('document', 'documentElement');
  1208. /* global ActiveXObject -- old IE, WSH */
  1209. var anObject$7 = anObject$b;
  1210. var definePropertiesModule = objectDefineProperties;
  1211. var enumBugKeys = enumBugKeys$3;
  1212. var hiddenKeys = hiddenKeys$4;
  1213. var html = html$1;
  1214. var documentCreateElement$1 = documentCreateElement$2;
  1215. var sharedKey$1 = sharedKey$3;
  1216. var GT = '>';
  1217. var LT = '<';
  1218. var PROTOTYPE = 'prototype';
  1219. var SCRIPT = 'script';
  1220. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1221. var EmptyConstructor = function () { /* empty */ };
  1222. var scriptTag = function (content) {
  1223. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1224. };
  1225. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1226. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1227. activeXDocument.write(scriptTag(''));
  1228. activeXDocument.close();
  1229. var temp = activeXDocument.parentWindow.Object;
  1230. activeXDocument = null; // avoid memory leak
  1231. return temp;
  1232. };
  1233. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1234. var NullProtoObjectViaIFrame = function () {
  1235. // Thrash, waste and sodomy: IE GC bug
  1236. var iframe = documentCreateElement$1('iframe');
  1237. var JS = 'java' + SCRIPT + ':';
  1238. var iframeDocument;
  1239. iframe.style.display = 'none';
  1240. html.appendChild(iframe);
  1241. // https://github.com/zloirock/core-js/issues/475
  1242. iframe.src = String(JS);
  1243. iframeDocument = iframe.contentWindow.document;
  1244. iframeDocument.open();
  1245. iframeDocument.write(scriptTag('document.F=Object'));
  1246. iframeDocument.close();
  1247. return iframeDocument.F;
  1248. };
  1249. // Check for document.domain and active x support
  1250. // No need to use active x approach when document.domain is not set
  1251. // see https://github.com/es-shims/es5-shim/issues/150
  1252. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1253. // avoid IE GC bug
  1254. var activeXDocument;
  1255. var NullProtoObject = function () {
  1256. try {
  1257. activeXDocument = new ActiveXObject('htmlfile');
  1258. } catch (error) { /* ignore */ }
  1259. NullProtoObject = typeof document != 'undefined'
  1260. ? document.domain && activeXDocument
  1261. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1262. : NullProtoObjectViaIFrame()
  1263. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1264. var length = enumBugKeys.length;
  1265. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1266. return NullProtoObject();
  1267. };
  1268. hiddenKeys[IE_PROTO$1] = true;
  1269. // `Object.create` method
  1270. // https://tc39.es/ecma262/#sec-object.create
  1271. // eslint-disable-next-line es/no-object-create -- safe
  1272. var objectCreate = Object.create || function create(O, Properties) {
  1273. var result;
  1274. if (O !== null) {
  1275. EmptyConstructor[PROTOTYPE] = anObject$7(O);
  1276. result = new EmptyConstructor();
  1277. EmptyConstructor[PROTOTYPE] = null;
  1278. // add "__proto__" for Object.getPrototypeOf polyfill
  1279. result[IE_PROTO$1] = O;
  1280. } else result = NullProtoObject();
  1281. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1282. };
  1283. var wellKnownSymbol$8 = wellKnownSymbol$f;
  1284. var create$3 = objectCreate;
  1285. var defineProperty$4 = objectDefineProperty.f;
  1286. var UNSCOPABLES = wellKnownSymbol$8('unscopables');
  1287. var ArrayPrototype = Array.prototype;
  1288. // Array.prototype[@@unscopables]
  1289. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1290. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1291. defineProperty$4(ArrayPrototype, UNSCOPABLES, {
  1292. configurable: true,
  1293. value: create$3(null)
  1294. });
  1295. }
  1296. // add a key to Array.prototype[@@unscopables]
  1297. var addToUnscopables$1 = function (key) {
  1298. ArrayPrototype[UNSCOPABLES][key] = true;
  1299. };
  1300. var iterators = {};
  1301. var fails$9 = fails$l;
  1302. var correctPrototypeGetter = !fails$9(function () {
  1303. function F() { /* empty */ }
  1304. F.prototype.constructor = null;
  1305. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  1306. return Object.getPrototypeOf(new F()) !== F.prototype;
  1307. });
  1308. var hasOwn$3 = hasOwnProperty_1;
  1309. var isCallable$4 = isCallable$h;
  1310. var toObject$1 = toObject$4;
  1311. var sharedKey = sharedKey$3;
  1312. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  1313. var IE_PROTO = sharedKey('IE_PROTO');
  1314. var $Object = Object;
  1315. var ObjectPrototype = $Object.prototype;
  1316. // `Object.getPrototypeOf` method
  1317. // https://tc39.es/ecma262/#sec-object.getprototypeof
  1318. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  1319. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  1320. var object = toObject$1(O);
  1321. if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
  1322. var constructor = object.constructor;
  1323. if (isCallable$4(constructor) && object instanceof constructor) {
  1324. return constructor.prototype;
  1325. } return object instanceof $Object ? ObjectPrototype : null;
  1326. };
  1327. var fails$8 = fails$l;
  1328. var isCallable$3 = isCallable$h;
  1329. var isObject$2 = isObject$a;
  1330. var getPrototypeOf$1 = objectGetPrototypeOf$1;
  1331. var defineBuiltIn$6 = defineBuiltIn$8;
  1332. var wellKnownSymbol$7 = wellKnownSymbol$f;
  1333. var ITERATOR$5 = wellKnownSymbol$7('iterator');
  1334. var BUGGY_SAFARI_ITERATORS$1 = false;
  1335. // `%IteratorPrototype%` object
  1336. // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
  1337. var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
  1338. /* eslint-disable es/no-array-prototype-keys -- safe */
  1339. if ([].keys) {
  1340. arrayIterator = [].keys();
  1341. // Safari 8 has buggy iterators w/o `next`
  1342. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
  1343. else {
  1344. PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
  1345. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
  1346. }
  1347. }
  1348. var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$8(function () {
  1349. var test = {};
  1350. // FF44- legacy iterators case
  1351. return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
  1352. });
  1353. if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
  1354. // `%IteratorPrototype%[@@iterator]()` method
  1355. // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
  1356. if (!isCallable$3(IteratorPrototype$2[ITERATOR$5])) {
  1357. defineBuiltIn$6(IteratorPrototype$2, ITERATOR$5, function () {
  1358. return this;
  1359. });
  1360. }
  1361. var iteratorsCore = {
  1362. IteratorPrototype: IteratorPrototype$2,
  1363. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
  1364. };
  1365. var defineProperty$3 = objectDefineProperty.f;
  1366. var hasOwn$2 = hasOwnProperty_1;
  1367. var wellKnownSymbol$6 = wellKnownSymbol$f;
  1368. var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
  1369. var setToStringTag$4 = function (target, TAG, STATIC) {
  1370. if (target && !STATIC) target = target.prototype;
  1371. if (target && !hasOwn$2(target, TO_STRING_TAG)) {
  1372. defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
  1373. }
  1374. };
  1375. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  1376. var create$2 = objectCreate;
  1377. var createPropertyDescriptor$1 = createPropertyDescriptor$5;
  1378. var setToStringTag$3 = setToStringTag$4;
  1379. var Iterators$3 = iterators;
  1380. var returnThis$1 = function () { return this; };
  1381. var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
  1382. var TO_STRING_TAG = NAME + ' Iterator';
  1383. IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
  1384. setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
  1385. Iterators$3[TO_STRING_TAG] = returnThis$1;
  1386. return IteratorConstructor;
  1387. };
  1388. var uncurryThis$8 = functionUncurryThis;
  1389. var aCallable$2 = aCallable$4;
  1390. var functionUncurryThisAccessor = function (object, key, method) {
  1391. try {
  1392. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1393. return uncurryThis$8(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
  1394. } catch (error) { /* empty */ }
  1395. };
  1396. var isObject$1 = isObject$a;
  1397. var isPossiblePrototype$1 = function (argument) {
  1398. return isObject$1(argument) || argument === null;
  1399. };
  1400. var isPossiblePrototype = isPossiblePrototype$1;
  1401. var $String$1 = String;
  1402. var $TypeError$4 = TypeError;
  1403. var aPossiblePrototype$1 = function (argument) {
  1404. if (isPossiblePrototype(argument)) return argument;
  1405. throw new $TypeError$4("Can't set " + $String$1(argument) + ' as a prototype');
  1406. };
  1407. /* eslint-disable no-proto -- safe */
  1408. var uncurryThisAccessor = functionUncurryThisAccessor;
  1409. var anObject$6 = anObject$b;
  1410. var aPossiblePrototype = aPossiblePrototype$1;
  1411. // `Object.setPrototypeOf` method
  1412. // https://tc39.es/ecma262/#sec-object.setprototypeof
  1413. // Works with __proto__ only. Old v8 can't work with null proto objects.
  1414. // eslint-disable-next-line es/no-object-setprototypeof -- safe
  1415. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  1416. var CORRECT_SETTER = false;
  1417. var test = {};
  1418. var setter;
  1419. try {
  1420. setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
  1421. setter(test, []);
  1422. CORRECT_SETTER = test instanceof Array;
  1423. } catch (error) { /* empty */ }
  1424. return function setPrototypeOf(O, proto) {
  1425. anObject$6(O);
  1426. aPossiblePrototype(proto);
  1427. if (CORRECT_SETTER) setter(O, proto);
  1428. else O.__proto__ = proto;
  1429. return O;
  1430. };
  1431. }() : undefined);
  1432. var $$4 = _export;
  1433. var call$8 = functionCall;
  1434. var FunctionName = functionName;
  1435. var isCallable$2 = isCallable$h;
  1436. var createIteratorConstructor$1 = iteratorCreateConstructor;
  1437. var getPrototypeOf = objectGetPrototypeOf$1;
  1438. var setPrototypeOf = objectSetPrototypeOf;
  1439. var setToStringTag$2 = setToStringTag$4;
  1440. var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
  1441. var defineBuiltIn$5 = defineBuiltIn$8;
  1442. var wellKnownSymbol$5 = wellKnownSymbol$f;
  1443. var Iterators$2 = iterators;
  1444. var IteratorsCore = iteratorsCore;
  1445. var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
  1446. var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
  1447. var IteratorPrototype = IteratorsCore.IteratorPrototype;
  1448. var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
  1449. var ITERATOR$4 = wellKnownSymbol$5('iterator');
  1450. var KEYS = 'keys';
  1451. var VALUES = 'values';
  1452. var ENTRIES = 'entries';
  1453. var returnThis = function () { return this; };
  1454. var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  1455. createIteratorConstructor$1(IteratorConstructor, NAME, next);
  1456. var getIterationMethod = function (KIND) {
  1457. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  1458. if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
  1459. switch (KIND) {
  1460. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  1461. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  1462. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  1463. }
  1464. return function () { return new IteratorConstructor(this); };
  1465. };
  1466. var TO_STRING_TAG = NAME + ' Iterator';
  1467. var INCORRECT_VALUES_NAME = false;
  1468. var IterablePrototype = Iterable.prototype;
  1469. var nativeIterator = IterablePrototype[ITERATOR$4]
  1470. || IterablePrototype['@@iterator']
  1471. || DEFAULT && IterablePrototype[DEFAULT];
  1472. var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
  1473. var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  1474. var CurrentIteratorPrototype, methods, KEY;
  1475. // fix native
  1476. if (anyNativeIterator) {
  1477. CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
  1478. if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
  1479. if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
  1480. if (setPrototypeOf) {
  1481. setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
  1482. } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
  1483. defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$4, returnThis);
  1484. }
  1485. }
  1486. // Set @@toStringTag to native iterators
  1487. setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
  1488. }
  1489. }
  1490. // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
  1491. if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  1492. if (CONFIGURABLE_FUNCTION_NAME) {
  1493. createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
  1494. } else {
  1495. INCORRECT_VALUES_NAME = true;
  1496. defaultIterator = function values() { return call$8(nativeIterator, this); };
  1497. }
  1498. }
  1499. // export additional methods
  1500. if (DEFAULT) {
  1501. methods = {
  1502. values: getIterationMethod(VALUES),
  1503. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  1504. entries: getIterationMethod(ENTRIES)
  1505. };
  1506. if (FORCED) for (KEY in methods) {
  1507. if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  1508. defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
  1509. }
  1510. } else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
  1511. }
  1512. // define iterator
  1513. if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
  1514. defineBuiltIn$5(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
  1515. }
  1516. Iterators$2[NAME] = defaultIterator;
  1517. return methods;
  1518. };
  1519. // `CreateIterResultObject` abstract operation
  1520. // https://tc39.es/ecma262/#sec-createiterresultobject
  1521. var createIterResultObject$3 = function (value, done) {
  1522. return { value: value, done: done };
  1523. };
  1524. var toIndexedObject$1 = toIndexedObject$6;
  1525. var addToUnscopables = addToUnscopables$1;
  1526. var Iterators$1 = iterators;
  1527. var InternalStateModule$2 = internalState;
  1528. var defineProperty$2 = objectDefineProperty.f;
  1529. var defineIterator$1 = iteratorDefine;
  1530. var createIterResultObject$2 = createIterResultObject$3;
  1531. var DESCRIPTORS$5 = descriptors;
  1532. var ARRAY_ITERATOR = 'Array Iterator';
  1533. var setInternalState$2 = InternalStateModule$2.set;
  1534. var getInternalState$2 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
  1535. // `Array.prototype.entries` method
  1536. // https://tc39.es/ecma262/#sec-array.prototype.entries
  1537. // `Array.prototype.keys` method
  1538. // https://tc39.es/ecma262/#sec-array.prototype.keys
  1539. // `Array.prototype.values` method
  1540. // https://tc39.es/ecma262/#sec-array.prototype.values
  1541. // `Array.prototype[@@iterator]` method
  1542. // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
  1543. // `CreateArrayIterator` internal method
  1544. // https://tc39.es/ecma262/#sec-createarrayiterator
  1545. var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
  1546. setInternalState$2(this, {
  1547. type: ARRAY_ITERATOR,
  1548. target: toIndexedObject$1(iterated), // target
  1549. index: 0, // next index
  1550. kind: kind // kind
  1551. });
  1552. // `%ArrayIteratorPrototype%.next` method
  1553. // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
  1554. }, function () {
  1555. var state = getInternalState$2(this);
  1556. var target = state.target;
  1557. var index = state.index++;
  1558. if (!target || index >= target.length) {
  1559. state.target = undefined;
  1560. return createIterResultObject$2(undefined, true);
  1561. }
  1562. switch (state.kind) {
  1563. case 'keys': return createIterResultObject$2(index, false);
  1564. case 'values': return createIterResultObject$2(target[index], false);
  1565. } return createIterResultObject$2([index, target[index]], false);
  1566. }, 'values');
  1567. // argumentsList[@@iterator] is %ArrayProto_values%
  1568. // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
  1569. // https://tc39.es/ecma262/#sec-createmappedargumentsobject
  1570. var values = Iterators$1.Arguments = Iterators$1.Array;
  1571. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1572. addToUnscopables('keys');
  1573. addToUnscopables('values');
  1574. addToUnscopables('entries');
  1575. // V8 ~ Chrome 45- bug
  1576. if (DESCRIPTORS$5 && values.name !== 'values') try {
  1577. defineProperty$2(values, 'name', { value: 'values' });
  1578. } catch (error) { /* empty */ }
  1579. var DESCRIPTORS$4 = descriptors;
  1580. var uncurryThis$7 = functionUncurryThis;
  1581. var call$7 = functionCall;
  1582. var fails$7 = fails$l;
  1583. var objectKeys$1 = objectKeys$3;
  1584. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1585. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1586. var toObject = toObject$4;
  1587. var IndexedObject = indexedObject;
  1588. // eslint-disable-next-line es/no-object-assign -- safe
  1589. var $assign = Object.assign;
  1590. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1591. var defineProperty$1 = Object.defineProperty;
  1592. var concat = uncurryThis$7([].concat);
  1593. // `Object.assign` method
  1594. // https://tc39.es/ecma262/#sec-object.assign
  1595. var objectAssign = !$assign || fails$7(function () {
  1596. // should have correct order of operations (Edge bug)
  1597. if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
  1598. enumerable: true,
  1599. get: function () {
  1600. defineProperty$1(this, 'b', {
  1601. value: 3,
  1602. enumerable: false
  1603. });
  1604. }
  1605. }), { b: 2 })).b !== 1) return true;
  1606. // should work with symbols and should have deterministic property order (V8 bug)
  1607. var A = {};
  1608. var B = {};
  1609. // eslint-disable-next-line es/no-symbol -- safe
  1610. var symbol = Symbol('assign detection');
  1611. var alphabet = 'abcdefghijklmnopqrst';
  1612. A[symbol] = 7;
  1613. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1614. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1615. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1616. var T = toObject(target);
  1617. var argumentsLength = arguments.length;
  1618. var index = 1;
  1619. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1620. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1621. while (argumentsLength > index) {
  1622. var S = IndexedObject(arguments[index++]);
  1623. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1624. var length = keys.length;
  1625. var j = 0;
  1626. var key;
  1627. while (length > j) {
  1628. key = keys[j++];
  1629. if (!DESCRIPTORS$4 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
  1630. }
  1631. } return T;
  1632. } : $assign;
  1633. var $$3 = _export;
  1634. var assign = objectAssign;
  1635. // `Object.assign` method
  1636. // https://tc39.es/ecma262/#sec-object.assign
  1637. // eslint-disable-next-line es/no-object-assign -- required for testing
  1638. $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1639. assign: assign
  1640. });
  1641. var DESCRIPTORS$3 = descriptors;
  1642. var fails$6 = fails$l;
  1643. var uncurryThis$6 = functionUncurryThis;
  1644. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  1645. var objectKeys = objectKeys$3;
  1646. var toIndexedObject = toIndexedObject$6;
  1647. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1648. var propertyIsEnumerable = uncurryThis$6($propertyIsEnumerable);
  1649. var push$1 = uncurryThis$6([].push);
  1650. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  1651. // of `null` prototype objects
  1652. var IE_BUG = DESCRIPTORS$3 && fails$6(function () {
  1653. // eslint-disable-next-line es/no-object-create -- safe
  1654. var O = Object.create(null);
  1655. O[2] = 2;
  1656. return !propertyIsEnumerable(O, 2);
  1657. });
  1658. // `Object.{ entries, values }` methods implementation
  1659. var createMethod$1 = function (TO_ENTRIES) {
  1660. return function (it) {
  1661. var O = toIndexedObject(it);
  1662. var keys = objectKeys(O);
  1663. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  1664. var length = keys.length;
  1665. var i = 0;
  1666. var result = [];
  1667. var key;
  1668. while (length > i) {
  1669. key = keys[i++];
  1670. if (!DESCRIPTORS$3 || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  1671. push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  1672. }
  1673. }
  1674. return result;
  1675. };
  1676. };
  1677. var objectToArray = {
  1678. // `Object.entries` method
  1679. // https://tc39.es/ecma262/#sec-object.entries
  1680. entries: createMethod$1(true),
  1681. // `Object.values` method
  1682. // https://tc39.es/ecma262/#sec-object.values
  1683. values: createMethod$1(false)
  1684. };
  1685. var $$2 = _export;
  1686. var $entries = objectToArray.entries;
  1687. // `Object.entries` method
  1688. // https://tc39.es/ecma262/#sec-object.entries
  1689. $$2({ target: 'Object', stat: true }, {
  1690. entries: function entries(O) {
  1691. return $entries(O);
  1692. }
  1693. });
  1694. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1695. var classof$4 = classof$6;
  1696. // `Object.prototype.toString` method implementation
  1697. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1698. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1699. return '[object ' + classof$4(this) + ']';
  1700. };
  1701. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1702. var defineBuiltIn$4 = defineBuiltIn$8;
  1703. var toString$5 = objectToString;
  1704. // `Object.prototype.toString` method
  1705. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1706. if (!TO_STRING_TAG_SUPPORT) {
  1707. defineBuiltIn$4(Object.prototype, 'toString', toString$5, { unsafe: true });
  1708. }
  1709. var classof$3 = classof$6;
  1710. var $String = String;
  1711. var toString$4 = function (argument) {
  1712. if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1713. return $String(argument);
  1714. };
  1715. var anObject$5 = anObject$b;
  1716. // `RegExp.prototype.flags` getter implementation
  1717. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1718. var regexpFlags$1 = function () {
  1719. var that = anObject$5(this);
  1720. var result = '';
  1721. if (that.hasIndices) result += 'd';
  1722. if (that.global) result += 'g';
  1723. if (that.ignoreCase) result += 'i';
  1724. if (that.multiline) result += 'm';
  1725. if (that.dotAll) result += 's';
  1726. if (that.unicode) result += 'u';
  1727. if (that.unicodeSets) result += 'v';
  1728. if (that.sticky) result += 'y';
  1729. return result;
  1730. };
  1731. var fails$5 = fails$l;
  1732. var global$6 = global$g;
  1733. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1734. var $RegExp$2 = global$6.RegExp;
  1735. var UNSUPPORTED_Y$1 = fails$5(function () {
  1736. var re = $RegExp$2('a', 'y');
  1737. re.lastIndex = 2;
  1738. return re.exec('abcd') !== null;
  1739. });
  1740. // UC Browser bug
  1741. // https://github.com/zloirock/core-js/issues/1008
  1742. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
  1743. return !$RegExp$2('a', 'y').sticky;
  1744. });
  1745. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
  1746. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1747. var re = $RegExp$2('^r', 'gy');
  1748. re.lastIndex = 2;
  1749. return re.exec('str') !== null;
  1750. });
  1751. var regexpStickyHelpers = {
  1752. BROKEN_CARET: BROKEN_CARET,
  1753. MISSED_STICKY: MISSED_STICKY,
  1754. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1755. };
  1756. var fails$4 = fails$l;
  1757. var global$5 = global$g;
  1758. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1759. var $RegExp$1 = global$5.RegExp;
  1760. var regexpUnsupportedDotAll = fails$4(function () {
  1761. var re = $RegExp$1('.', 's');
  1762. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1763. });
  1764. var fails$3 = fails$l;
  1765. var global$4 = global$g;
  1766. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1767. var $RegExp = global$4.RegExp;
  1768. var regexpUnsupportedNcg = fails$3(function () {
  1769. var re = $RegExp('(?<a>b)', 'g');
  1770. return re.exec('b').groups.a !== 'b' ||
  1771. 'b'.replace(re, '$<a>c') !== 'bc';
  1772. });
  1773. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1774. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1775. var call$6 = functionCall;
  1776. var uncurryThis$5 = functionUncurryThis;
  1777. var toString$3 = toString$4;
  1778. var regexpFlags = regexpFlags$1;
  1779. var stickyHelpers = regexpStickyHelpers;
  1780. var shared = shared$4;
  1781. var create$1 = objectCreate;
  1782. var getInternalState$1 = internalState.get;
  1783. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1784. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1785. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1786. var nativeExec = RegExp.prototype.exec;
  1787. var patchedExec = nativeExec;
  1788. var charAt$3 = uncurryThis$5(''.charAt);
  1789. var indexOf = uncurryThis$5(''.indexOf);
  1790. var replace$1 = uncurryThis$5(''.replace);
  1791. var stringSlice$2 = uncurryThis$5(''.slice);
  1792. var UPDATES_LAST_INDEX_WRONG = (function () {
  1793. var re1 = /a/;
  1794. var re2 = /b*/g;
  1795. call$6(nativeExec, re1, 'a');
  1796. call$6(nativeExec, re2, 'a');
  1797. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1798. })();
  1799. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1800. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1801. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1802. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1803. if (PATCH) {
  1804. patchedExec = function exec(string) {
  1805. var re = this;
  1806. var state = getInternalState$1(re);
  1807. var str = toString$3(string);
  1808. var raw = state.raw;
  1809. var result, reCopy, lastIndex, match, i, object, group;
  1810. if (raw) {
  1811. raw.lastIndex = re.lastIndex;
  1812. result = call$6(patchedExec, raw, str);
  1813. re.lastIndex = raw.lastIndex;
  1814. return result;
  1815. }
  1816. var groups = state.groups;
  1817. var sticky = UNSUPPORTED_Y && re.sticky;
  1818. var flags = call$6(regexpFlags, re);
  1819. var source = re.source;
  1820. var charsAdded = 0;
  1821. var strCopy = str;
  1822. if (sticky) {
  1823. flags = replace$1(flags, 'y', '');
  1824. if (indexOf(flags, 'g') === -1) {
  1825. flags += 'g';
  1826. }
  1827. strCopy = stringSlice$2(str, re.lastIndex);
  1828. // Support anchored sticky behavior.
  1829. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  1830. source = '(?: ' + source + ')';
  1831. strCopy = ' ' + strCopy;
  1832. charsAdded++;
  1833. }
  1834. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1835. // simulate the 'y' flag.
  1836. reCopy = new RegExp('^(?:' + source + ')', flags);
  1837. }
  1838. if (NPCG_INCLUDED) {
  1839. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1840. }
  1841. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1842. match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
  1843. if (sticky) {
  1844. if (match) {
  1845. match.input = stringSlice$2(match.input, charsAdded);
  1846. match[0] = stringSlice$2(match[0], charsAdded);
  1847. match.index = re.lastIndex;
  1848. re.lastIndex += match[0].length;
  1849. } else re.lastIndex = 0;
  1850. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1851. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1852. }
  1853. if (NPCG_INCLUDED && match && match.length > 1) {
  1854. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1855. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1856. call$6(nativeReplace, match[0], reCopy, function () {
  1857. for (i = 1; i < arguments.length - 2; i++) {
  1858. if (arguments[i] === undefined) match[i] = undefined;
  1859. }
  1860. });
  1861. }
  1862. if (match && groups) {
  1863. match.groups = object = create$1(null);
  1864. for (i = 0; i < groups.length; i++) {
  1865. group = groups[i];
  1866. object[group[0]] = match[group[1]];
  1867. }
  1868. }
  1869. return match;
  1870. };
  1871. }
  1872. var regexpExec$2 = patchedExec;
  1873. var $$1 = _export;
  1874. var exec = regexpExec$2;
  1875. // `RegExp.prototype.exec` method
  1876. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1877. $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  1878. exec: exec
  1879. });
  1880. var call$5 = functionCall;
  1881. var hasOwn$1 = hasOwnProperty_1;
  1882. var isPrototypeOf$1 = objectIsPrototypeOf;
  1883. var regExpFlags = regexpFlags$1;
  1884. var RegExpPrototype$2 = RegExp.prototype;
  1885. var regexpGetFlags = function (R) {
  1886. var flags = R.flags;
  1887. return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$2, R)
  1888. ? call$5(regExpFlags, R) : flags;
  1889. };
  1890. var PROPER_FUNCTION_NAME = functionName.PROPER;
  1891. var defineBuiltIn$3 = defineBuiltIn$8;
  1892. var anObject$4 = anObject$b;
  1893. var $toString$1 = toString$4;
  1894. var fails$2 = fails$l;
  1895. var getRegExpFlags = regexpGetFlags;
  1896. var TO_STRING = 'toString';
  1897. var RegExpPrototype$1 = RegExp.prototype;
  1898. var nativeToString = RegExpPrototype$1[TO_STRING];
  1899. var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
  1900. // FF44- RegExp#toString has a wrong name
  1901. var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
  1902. // `RegExp.prototype.toString` method
  1903. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  1904. if (NOT_GENERIC || INCORRECT_NAME) {
  1905. defineBuiltIn$3(RegExpPrototype$1, TO_STRING, function toString() {
  1906. var R = anObject$4(this);
  1907. var pattern = $toString$1(R.source);
  1908. var flags = $toString$1(getRegExpFlags(R));
  1909. return '/' + pattern + '/' + flags;
  1910. }, { unsafe: true });
  1911. }
  1912. var uncurryThis$4 = functionUncurryThis;
  1913. var toIntegerOrInfinity = toIntegerOrInfinity$3;
  1914. var toString$2 = toString$4;
  1915. var requireObjectCoercible$1 = requireObjectCoercible$4;
  1916. var charAt$2 = uncurryThis$4(''.charAt);
  1917. var charCodeAt = uncurryThis$4(''.charCodeAt);
  1918. var stringSlice$1 = uncurryThis$4(''.slice);
  1919. var createMethod = function (CONVERT_TO_STRING) {
  1920. return function ($this, pos) {
  1921. var S = toString$2(requireObjectCoercible$1($this));
  1922. var position = toIntegerOrInfinity(pos);
  1923. var size = S.length;
  1924. var first, second;
  1925. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1926. first = charCodeAt(S, position);
  1927. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1928. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  1929. ? CONVERT_TO_STRING
  1930. ? charAt$2(S, position)
  1931. : first
  1932. : CONVERT_TO_STRING
  1933. ? stringSlice$1(S, position, position + 2)
  1934. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1935. };
  1936. };
  1937. var stringMultibyte = {
  1938. // `String.prototype.codePointAt` method
  1939. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1940. codeAt: createMethod(false),
  1941. // `String.prototype.at` method
  1942. // https://github.com/mathiasbynens/String.prototype.at
  1943. charAt: createMethod(true)
  1944. };
  1945. var charAt$1 = stringMultibyte.charAt;
  1946. var toString$1 = toString$4;
  1947. var InternalStateModule$1 = internalState;
  1948. var defineIterator = iteratorDefine;
  1949. var createIterResultObject$1 = createIterResultObject$3;
  1950. var STRING_ITERATOR = 'String Iterator';
  1951. var setInternalState$1 = InternalStateModule$1.set;
  1952. var getInternalState = InternalStateModule$1.getterFor(STRING_ITERATOR);
  1953. // `String.prototype[@@iterator]` method
  1954. // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
  1955. defineIterator(String, 'String', function (iterated) {
  1956. setInternalState$1(this, {
  1957. type: STRING_ITERATOR,
  1958. string: toString$1(iterated),
  1959. index: 0
  1960. });
  1961. // `%StringIteratorPrototype%.next` method
  1962. // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
  1963. }, function next() {
  1964. var state = getInternalState(this);
  1965. var string = state.string;
  1966. var index = state.index;
  1967. var point;
  1968. if (index >= string.length) return createIterResultObject$1(undefined, true);
  1969. point = charAt$1(string, index);
  1970. state.index += point.length;
  1971. return createIterResultObject$1(point, false);
  1972. });
  1973. // TODO: Remove from `core-js@4` since it's moved to entry points
  1974. var call$4 = functionCall;
  1975. var defineBuiltIn$2 = defineBuiltIn$8;
  1976. var regexpExec$1 = regexpExec$2;
  1977. var fails$1 = fails$l;
  1978. var wellKnownSymbol$4 = wellKnownSymbol$f;
  1979. var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
  1980. var SPECIES = wellKnownSymbol$4('species');
  1981. var RegExpPrototype = RegExp.prototype;
  1982. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1983. var SYMBOL = wellKnownSymbol$4(KEY);
  1984. var DELEGATES_TO_SYMBOL = !fails$1(function () {
  1985. // String methods call symbol-named RegExp methods
  1986. var O = {};
  1987. O[SYMBOL] = function () { return 7; };
  1988. return ''[KEY](O) !== 7;
  1989. });
  1990. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
  1991. // Symbol-named RegExp methods call .exec
  1992. var execCalled = false;
  1993. var re = /a/;
  1994. if (KEY === 'split') {
  1995. // We can't use real regex here since it causes deoptimization
  1996. // and serious performance degradation in V8
  1997. // https://github.com/zloirock/core-js/issues/306
  1998. re = {};
  1999. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  2000. // a new one. We need to return the patched regex when creating the new one.
  2001. re.constructor = {};
  2002. re.constructor[SPECIES] = function () { return re; };
  2003. re.flags = '';
  2004. re[SYMBOL] = /./[SYMBOL];
  2005. }
  2006. re.exec = function () {
  2007. execCalled = true;
  2008. return null;
  2009. };
  2010. re[SYMBOL]('');
  2011. return !execCalled;
  2012. });
  2013. if (
  2014. !DELEGATES_TO_SYMBOL ||
  2015. !DELEGATES_TO_EXEC ||
  2016. FORCED
  2017. ) {
  2018. var nativeRegExpMethod = /./[SYMBOL];
  2019. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  2020. var $exec = regexp.exec;
  2021. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  2022. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2023. // The native String method already delegates to @@method (this
  2024. // polyfilled function), leasing to infinite recursion.
  2025. // We avoid it by directly calling the native @@method method.
  2026. return { done: true, value: call$4(nativeRegExpMethod, regexp, str, arg2) };
  2027. }
  2028. return { done: true, value: call$4(nativeMethod, str, regexp, arg2) };
  2029. }
  2030. return { done: false };
  2031. });
  2032. defineBuiltIn$2(String.prototype, KEY, methods[0]);
  2033. defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
  2034. }
  2035. if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
  2036. };
  2037. // `SameValue` abstract operation
  2038. // https://tc39.es/ecma262/#sec-samevalue
  2039. // eslint-disable-next-line es/no-object-is -- safe
  2040. var sameValue$1 = Object.is || function is(x, y) {
  2041. // eslint-disable-next-line no-self-compare -- NaN check
  2042. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  2043. };
  2044. var call$3 = functionCall;
  2045. var anObject$3 = anObject$b;
  2046. var isCallable$1 = isCallable$h;
  2047. var classof$2 = classofRaw$2;
  2048. var regexpExec = regexpExec$2;
  2049. var $TypeError$3 = TypeError;
  2050. // `RegExpExec` abstract operation
  2051. // https://tc39.es/ecma262/#sec-regexpexec
  2052. var regexpExecAbstract = function (R, S) {
  2053. var exec = R.exec;
  2054. if (isCallable$1(exec)) {
  2055. var result = call$3(exec, R, S);
  2056. if (result !== null) anObject$3(result);
  2057. return result;
  2058. }
  2059. if (classof$2(R) === 'RegExp') return call$3(regexpExec, R, S);
  2060. throw new $TypeError$3('RegExp#exec called on incompatible receiver');
  2061. };
  2062. var call$2 = functionCall;
  2063. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  2064. var anObject$2 = anObject$b;
  2065. var isNullOrUndefined$1 = isNullOrUndefined$4;
  2066. var requireObjectCoercible = requireObjectCoercible$4;
  2067. var sameValue = sameValue$1;
  2068. var toString = toString$4;
  2069. var getMethod$1 = getMethod$3;
  2070. var regExpExec = regexpExecAbstract;
  2071. // @@search logic
  2072. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  2073. return [
  2074. // `String.prototype.search` method
  2075. // https://tc39.es/ecma262/#sec-string.prototype.search
  2076. function search(regexp) {
  2077. var O = requireObjectCoercible(this);
  2078. var searcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$1(regexp, SEARCH);
  2079. return searcher ? call$2(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  2080. },
  2081. // `RegExp.prototype[@@search]` method
  2082. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  2083. function (string) {
  2084. var rx = anObject$2(this);
  2085. var S = toString(string);
  2086. var res = maybeCallNative(nativeSearch, rx, S);
  2087. if (res.done) return res.value;
  2088. var previousLastIndex = rx.lastIndex;
  2089. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  2090. var result = regExpExec(rx, S);
  2091. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  2092. return result === null ? -1 : result.index;
  2093. }
  2094. ];
  2095. });
  2096. // iterable DOM collections
  2097. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  2098. var domIterables = {
  2099. CSSRuleList: 0,
  2100. CSSStyleDeclaration: 0,
  2101. CSSValueList: 0,
  2102. ClientRectList: 0,
  2103. DOMRectList: 0,
  2104. DOMStringList: 0,
  2105. DOMTokenList: 1,
  2106. DataTransferItemList: 0,
  2107. FileList: 0,
  2108. HTMLAllCollection: 0,
  2109. HTMLCollection: 0,
  2110. HTMLFormElement: 0,
  2111. HTMLSelectElement: 0,
  2112. MediaList: 0,
  2113. MimeTypeArray: 0,
  2114. NamedNodeMap: 0,
  2115. NodeList: 1,
  2116. PaintRequestList: 0,
  2117. Plugin: 0,
  2118. PluginArray: 0,
  2119. SVGLengthList: 0,
  2120. SVGNumberList: 0,
  2121. SVGPathSegList: 0,
  2122. SVGPointList: 0,
  2123. SVGStringList: 0,
  2124. SVGTransformList: 0,
  2125. SourceBufferList: 0,
  2126. StyleSheetList: 0,
  2127. TextTrackCueList: 0,
  2128. TextTrackList: 0,
  2129. TouchList: 0
  2130. };
  2131. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  2132. var documentCreateElement = documentCreateElement$2;
  2133. var classList = documentCreateElement('span').classList;
  2134. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  2135. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  2136. var global$3 = global$g;
  2137. var DOMIterables = domIterables;
  2138. var DOMTokenListPrototype = domTokenListPrototype;
  2139. var ArrayIteratorMethods = es_array_iterator;
  2140. var createNonEnumerableProperty = createNonEnumerableProperty$5;
  2141. var setToStringTag$1 = setToStringTag$4;
  2142. var wellKnownSymbol$3 = wellKnownSymbol$f;
  2143. var ITERATOR$3 = wellKnownSymbol$3('iterator');
  2144. var ArrayValues = ArrayIteratorMethods.values;
  2145. var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
  2146. if (CollectionPrototype) {
  2147. // some Chrome versions have non-configurable methods on DOMTokenList
  2148. if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
  2149. createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
  2150. } catch (error) {
  2151. CollectionPrototype[ITERATOR$3] = ArrayValues;
  2152. }
  2153. setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
  2154. if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
  2155. // some Chrome versions have non-configurable methods on DOMTokenList
  2156. if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
  2157. createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
  2158. } catch (error) {
  2159. CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
  2160. }
  2161. }
  2162. }
  2163. };
  2164. for (var COLLECTION_NAME in DOMIterables) {
  2165. handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
  2166. }
  2167. handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
  2168. var global$2 = global$g;
  2169. var DESCRIPTORS$2 = descriptors;
  2170. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  2171. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  2172. // Avoid NodeJS experimental warning
  2173. var safeGetBuiltIn$1 = function (name) {
  2174. if (!DESCRIPTORS$2) return global$2[name];
  2175. var descriptor = getOwnPropertyDescriptor(global$2, name);
  2176. return descriptor && descriptor.value;
  2177. };
  2178. var fails = fails$l;
  2179. var wellKnownSymbol$2 = wellKnownSymbol$f;
  2180. var DESCRIPTORS$1 = descriptors;
  2181. var IS_PURE = isPure;
  2182. var ITERATOR$2 = wellKnownSymbol$2('iterator');
  2183. var urlConstructorDetection = !fails(function () {
  2184. // eslint-disable-next-line unicorn/relative-url-style -- required for testing
  2185. var url = new URL('b?a=1&b=2&c=3', 'http://a');
  2186. var params = url.searchParams;
  2187. var params2 = new URLSearchParams('a=1&a=2&b=3');
  2188. var result = '';
  2189. url.pathname = 'c%20d';
  2190. params.forEach(function (value, key) {
  2191. params['delete']('b');
  2192. result += key + value;
  2193. });
  2194. params2['delete']('a', 2);
  2195. // `undefined` case is a Chromium 117 bug
  2196. // https://bugs.chromium.org/p/v8/issues/detail?id=14222
  2197. params2['delete']('b', undefined);
  2198. return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
  2199. || (!params.size && (IS_PURE || !DESCRIPTORS$1))
  2200. || !params.sort
  2201. || url.href !== 'http://a/c%20d?a=1&c=3'
  2202. || params.get('c') !== '3'
  2203. || String(new URLSearchParams('?a=1')) !== 'a=1'
  2204. || !params[ITERATOR$2]
  2205. // throws in Edge
  2206. || new URL('https://a@b').username !== 'a'
  2207. || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
  2208. // not punycoded in Edge
  2209. || new URL('http://тест').host !== 'xn--e1aybc'
  2210. // not escaped in Chrome 62-
  2211. || new URL('http://a#б').hash !== '#%D0%B1'
  2212. // fails in Chrome 66-
  2213. || result !== 'a1c3'
  2214. // throws in Safari
  2215. || new URL('http://x', undefined).host !== 'x';
  2216. });
  2217. var makeBuiltIn = makeBuiltInExports;
  2218. var defineProperty = objectDefineProperty;
  2219. var defineBuiltInAccessor$1 = function (target, name, descriptor) {
  2220. if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  2221. if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  2222. return defineProperty.f(target, name, descriptor);
  2223. };
  2224. var defineBuiltIn$1 = defineBuiltIn$8;
  2225. var defineBuiltIns$1 = function (target, src, options) {
  2226. for (var key in src) defineBuiltIn$1(target, key, src[key], options);
  2227. return target;
  2228. };
  2229. var isPrototypeOf = objectIsPrototypeOf;
  2230. var $TypeError$2 = TypeError;
  2231. var anInstance$1 = function (it, Prototype) {
  2232. if (isPrototypeOf(Prototype, it)) return it;
  2233. throw new $TypeError$2('Incorrect invocation');
  2234. };
  2235. var classofRaw = classofRaw$2;
  2236. var uncurryThis$3 = functionUncurryThis;
  2237. var functionUncurryThisClause = function (fn) {
  2238. // Nashorn bug:
  2239. // https://github.com/zloirock/core-js/issues/1128
  2240. // https://github.com/zloirock/core-js/issues/1130
  2241. if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
  2242. };
  2243. var uncurryThis$2 = functionUncurryThisClause;
  2244. var aCallable$1 = aCallable$4;
  2245. var NATIVE_BIND = functionBindNative;
  2246. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  2247. // optional / simple context binding
  2248. var functionBindContext = function (fn, that) {
  2249. aCallable$1(fn);
  2250. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  2251. return fn.apply(that, arguments);
  2252. };
  2253. };
  2254. var classof$1 = classof$6;
  2255. var getMethod = getMethod$3;
  2256. var isNullOrUndefined = isNullOrUndefined$4;
  2257. var Iterators = iterators;
  2258. var wellKnownSymbol$1 = wellKnownSymbol$f;
  2259. var ITERATOR$1 = wellKnownSymbol$1('iterator');
  2260. var getIteratorMethod$2 = function (it) {
  2261. if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
  2262. || getMethod(it, '@@iterator')
  2263. || Iterators[classof$1(it)];
  2264. };
  2265. var call$1 = functionCall;
  2266. var aCallable = aCallable$4;
  2267. var anObject$1 = anObject$b;
  2268. var tryToString = tryToString$2;
  2269. var getIteratorMethod$1 = getIteratorMethod$2;
  2270. var $TypeError$1 = TypeError;
  2271. var getIterator$1 = function (argument, usingIterator) {
  2272. var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
  2273. if (aCallable(iteratorMethod)) return anObject$1(call$1(iteratorMethod, argument));
  2274. throw new $TypeError$1(tryToString(argument) + ' is not iterable');
  2275. };
  2276. var $TypeError = TypeError;
  2277. var validateArgumentsLength$1 = function (passed, required) {
  2278. if (passed < required) throw new $TypeError('Not enough arguments');
  2279. return passed;
  2280. };
  2281. var uncurryThis$1 = functionUncurryThis;
  2282. var arraySlice$1 = uncurryThis$1([].slice);
  2283. var arraySlice = arraySlice$1;
  2284. var floor = Math.floor;
  2285. var sort = function (array, comparefn) {
  2286. var length = array.length;
  2287. if (length < 8) {
  2288. // insertion sort
  2289. var i = 1;
  2290. var element, j;
  2291. while (i < length) {
  2292. j = i;
  2293. element = array[i];
  2294. while (j && comparefn(array[j - 1], element) > 0) {
  2295. array[j] = array[--j];
  2296. }
  2297. if (j !== i++) array[j] = element;
  2298. }
  2299. } else {
  2300. // merge sort
  2301. var middle = floor(length / 2);
  2302. var left = sort(arraySlice(array, 0, middle), comparefn);
  2303. var right = sort(arraySlice(array, middle), comparefn);
  2304. var llength = left.length;
  2305. var rlength = right.length;
  2306. var lindex = 0;
  2307. var rindex = 0;
  2308. while (lindex < llength || rindex < rlength) {
  2309. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  2310. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  2311. : lindex < llength ? left[lindex++] : right[rindex++];
  2312. }
  2313. }
  2314. return array;
  2315. };
  2316. var arraySort$1 = sort;
  2317. // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
  2318. var $ = _export;
  2319. var global$1 = global$g;
  2320. var safeGetBuiltIn = safeGetBuiltIn$1;
  2321. var call = functionCall;
  2322. var uncurryThis = functionUncurryThis;
  2323. var DESCRIPTORS = descriptors;
  2324. var USE_NATIVE_URL = urlConstructorDetection;
  2325. var defineBuiltIn = defineBuiltIn$8;
  2326. var defineBuiltInAccessor = defineBuiltInAccessor$1;
  2327. var defineBuiltIns = defineBuiltIns$1;
  2328. var setToStringTag = setToStringTag$4;
  2329. var createIteratorConstructor = iteratorCreateConstructor;
  2330. var InternalStateModule = internalState;
  2331. var anInstance = anInstance$1;
  2332. var isCallable = isCallable$h;
  2333. var hasOwn = hasOwnProperty_1;
  2334. var bind = functionBindContext;
  2335. var classof = classof$6;
  2336. var anObject = anObject$b;
  2337. var isObject = isObject$a;
  2338. var $toString = toString$4;
  2339. var create = objectCreate;
  2340. var createPropertyDescriptor = createPropertyDescriptor$5;
  2341. var getIterator = getIterator$1;
  2342. var getIteratorMethod = getIteratorMethod$2;
  2343. var createIterResultObject = createIterResultObject$3;
  2344. var validateArgumentsLength = validateArgumentsLength$1;
  2345. var wellKnownSymbol = wellKnownSymbol$f;
  2346. var arraySort = arraySort$1;
  2347. var ITERATOR = wellKnownSymbol('iterator');
  2348. var URL_SEARCH_PARAMS = 'URLSearchParams';
  2349. var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
  2350. var setInternalState = InternalStateModule.set;
  2351. var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
  2352. var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
  2353. var nativeFetch = safeGetBuiltIn('fetch');
  2354. var NativeRequest = safeGetBuiltIn('Request');
  2355. var Headers = safeGetBuiltIn('Headers');
  2356. var RequestPrototype = NativeRequest && NativeRequest.prototype;
  2357. var HeadersPrototype = Headers && Headers.prototype;
  2358. var RegExp$1 = global$1.RegExp;
  2359. var TypeError$1 = global$1.TypeError;
  2360. var decodeURIComponent = global$1.decodeURIComponent;
  2361. var encodeURIComponent = global$1.encodeURIComponent;
  2362. var charAt = uncurryThis(''.charAt);
  2363. var join = uncurryThis([].join);
  2364. var push = uncurryThis([].push);
  2365. var replace = uncurryThis(''.replace);
  2366. var shift = uncurryThis([].shift);
  2367. var splice = uncurryThis([].splice);
  2368. var split = uncurryThis(''.split);
  2369. var stringSlice = uncurryThis(''.slice);
  2370. var plus = /\+/g;
  2371. var sequences = Array(4);
  2372. var percentSequence = function (bytes) {
  2373. return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
  2374. };
  2375. var percentDecode = function (sequence) {
  2376. try {
  2377. return decodeURIComponent(sequence);
  2378. } catch (error) {
  2379. return sequence;
  2380. }
  2381. };
  2382. var deserialize = function (it) {
  2383. var result = replace(it, plus, ' ');
  2384. var bytes = 4;
  2385. try {
  2386. return decodeURIComponent(result);
  2387. } catch (error) {
  2388. while (bytes) {
  2389. result = replace(result, percentSequence(bytes--), percentDecode);
  2390. }
  2391. return result;
  2392. }
  2393. };
  2394. var find = /[!'()~]|%20/g;
  2395. var replacements = {
  2396. '!': '%21',
  2397. "'": '%27',
  2398. '(': '%28',
  2399. ')': '%29',
  2400. '~': '%7E',
  2401. '%20': '+'
  2402. };
  2403. var replacer = function (match) {
  2404. return replacements[match];
  2405. };
  2406. var serialize = function (it) {
  2407. return replace(encodeURIComponent(it), find, replacer);
  2408. };
  2409. var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
  2410. setInternalState(this, {
  2411. type: URL_SEARCH_PARAMS_ITERATOR,
  2412. target: getInternalParamsState(params).entries,
  2413. index: 0,
  2414. kind: kind
  2415. });
  2416. }, URL_SEARCH_PARAMS, function next() {
  2417. var state = getInternalIteratorState(this);
  2418. var target = state.target;
  2419. var index = state.index++;
  2420. if (!target || index >= target.length) {
  2421. state.target = undefined;
  2422. return createIterResultObject(undefined, true);
  2423. }
  2424. var entry = target[index];
  2425. switch (state.kind) {
  2426. case 'keys': return createIterResultObject(entry.key, false);
  2427. case 'values': return createIterResultObject(entry.value, false);
  2428. } return createIterResultObject([entry.key, entry.value], false);
  2429. }, true);
  2430. var URLSearchParamsState = function (init) {
  2431. this.entries = [];
  2432. this.url = null;
  2433. if (init !== undefined) {
  2434. if (isObject(init)) this.parseObject(init);
  2435. else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
  2436. }
  2437. };
  2438. URLSearchParamsState.prototype = {
  2439. type: URL_SEARCH_PARAMS,
  2440. bindURL: function (url) {
  2441. this.url = url;
  2442. this.update();
  2443. },
  2444. parseObject: function (object) {
  2445. var entries = this.entries;
  2446. var iteratorMethod = getIteratorMethod(object);
  2447. var iterator, next, step, entryIterator, entryNext, first, second;
  2448. if (iteratorMethod) {
  2449. iterator = getIterator(object, iteratorMethod);
  2450. next = iterator.next;
  2451. while (!(step = call(next, iterator)).done) {
  2452. entryIterator = getIterator(anObject(step.value));
  2453. entryNext = entryIterator.next;
  2454. if (
  2455. (first = call(entryNext, entryIterator)).done ||
  2456. (second = call(entryNext, entryIterator)).done ||
  2457. !call(entryNext, entryIterator).done
  2458. ) throw new TypeError$1('Expected sequence with length 2');
  2459. push(entries, { key: $toString(first.value), value: $toString(second.value) });
  2460. }
  2461. } else for (var key in object) if (hasOwn(object, key)) {
  2462. push(entries, { key: key, value: $toString(object[key]) });
  2463. }
  2464. },
  2465. parseQuery: function (query) {
  2466. if (query) {
  2467. var entries = this.entries;
  2468. var attributes = split(query, '&');
  2469. var index = 0;
  2470. var attribute, entry;
  2471. while (index < attributes.length) {
  2472. attribute = attributes[index++];
  2473. if (attribute.length) {
  2474. entry = split(attribute, '=');
  2475. push(entries, {
  2476. key: deserialize(shift(entry)),
  2477. value: deserialize(join(entry, '='))
  2478. });
  2479. }
  2480. }
  2481. }
  2482. },
  2483. serialize: function () {
  2484. var entries = this.entries;
  2485. var result = [];
  2486. var index = 0;
  2487. var entry;
  2488. while (index < entries.length) {
  2489. entry = entries[index++];
  2490. push(result, serialize(entry.key) + '=' + serialize(entry.value));
  2491. } return join(result, '&');
  2492. },
  2493. update: function () {
  2494. this.entries.length = 0;
  2495. this.parseQuery(this.url.query);
  2496. },
  2497. updateURL: function () {
  2498. if (this.url) this.url.update();
  2499. }
  2500. };
  2501. // `URLSearchParams` constructor
  2502. // https://url.spec.whatwg.org/#interface-urlsearchparams
  2503. var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
  2504. anInstance(this, URLSearchParamsPrototype);
  2505. var init = arguments.length > 0 ? arguments[0] : undefined;
  2506. var state = setInternalState(this, new URLSearchParamsState(init));
  2507. if (!DESCRIPTORS) this.size = state.entries.length;
  2508. };
  2509. var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
  2510. defineBuiltIns(URLSearchParamsPrototype, {
  2511. // `URLSearchParams.prototype.append` method
  2512. // https://url.spec.whatwg.org/#dom-urlsearchparams-append
  2513. append: function append(name, value) {
  2514. var state = getInternalParamsState(this);
  2515. validateArgumentsLength(arguments.length, 2);
  2516. push(state.entries, { key: $toString(name), value: $toString(value) });
  2517. if (!DESCRIPTORS) this.length++;
  2518. state.updateURL();
  2519. },
  2520. // `URLSearchParams.prototype.delete` method
  2521. // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
  2522. 'delete': function (name /* , value */) {
  2523. var state = getInternalParamsState(this);
  2524. var length = validateArgumentsLength(arguments.length, 1);
  2525. var entries = state.entries;
  2526. var key = $toString(name);
  2527. var $value = length < 2 ? undefined : arguments[1];
  2528. var value = $value === undefined ? $value : $toString($value);
  2529. var index = 0;
  2530. while (index < entries.length) {
  2531. var entry = entries[index];
  2532. if (entry.key === key && (value === undefined || entry.value === value)) {
  2533. splice(entries, index, 1);
  2534. if (value !== undefined) break;
  2535. } else index++;
  2536. }
  2537. if (!DESCRIPTORS) this.size = entries.length;
  2538. state.updateURL();
  2539. },
  2540. // `URLSearchParams.prototype.get` method
  2541. // https://url.spec.whatwg.org/#dom-urlsearchparams-get
  2542. get: function get(name) {
  2543. var entries = getInternalParamsState(this).entries;
  2544. validateArgumentsLength(arguments.length, 1);
  2545. var key = $toString(name);
  2546. var index = 0;
  2547. for (; index < entries.length; index++) {
  2548. if (entries[index].key === key) return entries[index].value;
  2549. }
  2550. return null;
  2551. },
  2552. // `URLSearchParams.prototype.getAll` method
  2553. // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
  2554. getAll: function getAll(name) {
  2555. var entries = getInternalParamsState(this).entries;
  2556. validateArgumentsLength(arguments.length, 1);
  2557. var key = $toString(name);
  2558. var result = [];
  2559. var index = 0;
  2560. for (; index < entries.length; index++) {
  2561. if (entries[index].key === key) push(result, entries[index].value);
  2562. }
  2563. return result;
  2564. },
  2565. // `URLSearchParams.prototype.has` method
  2566. // https://url.spec.whatwg.org/#dom-urlsearchparams-has
  2567. has: function has(name /* , value */) {
  2568. var entries = getInternalParamsState(this).entries;
  2569. var length = validateArgumentsLength(arguments.length, 1);
  2570. var key = $toString(name);
  2571. var $value = length < 2 ? undefined : arguments[1];
  2572. var value = $value === undefined ? $value : $toString($value);
  2573. var index = 0;
  2574. while (index < entries.length) {
  2575. var entry = entries[index++];
  2576. if (entry.key === key && (value === undefined || entry.value === value)) return true;
  2577. }
  2578. return false;
  2579. },
  2580. // `URLSearchParams.prototype.set` method
  2581. // https://url.spec.whatwg.org/#dom-urlsearchparams-set
  2582. set: function set(name, value) {
  2583. var state = getInternalParamsState(this);
  2584. validateArgumentsLength(arguments.length, 1);
  2585. var entries = state.entries;
  2586. var found = false;
  2587. var key = $toString(name);
  2588. var val = $toString(value);
  2589. var index = 0;
  2590. var entry;
  2591. for (; index < entries.length; index++) {
  2592. entry = entries[index];
  2593. if (entry.key === key) {
  2594. if (found) splice(entries, index--, 1);
  2595. else {
  2596. found = true;
  2597. entry.value = val;
  2598. }
  2599. }
  2600. }
  2601. if (!found) push(entries, { key: key, value: val });
  2602. if (!DESCRIPTORS) this.size = entries.length;
  2603. state.updateURL();
  2604. },
  2605. // `URLSearchParams.prototype.sort` method
  2606. // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
  2607. sort: function sort() {
  2608. var state = getInternalParamsState(this);
  2609. arraySort(state.entries, function (a, b) {
  2610. return a.key > b.key ? 1 : -1;
  2611. });
  2612. state.updateURL();
  2613. },
  2614. // `URLSearchParams.prototype.forEach` method
  2615. forEach: function forEach(callback /* , thisArg */) {
  2616. var entries = getInternalParamsState(this).entries;
  2617. var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
  2618. var index = 0;
  2619. var entry;
  2620. while (index < entries.length) {
  2621. entry = entries[index++];
  2622. boundFunction(entry.value, entry.key, this);
  2623. }
  2624. },
  2625. // `URLSearchParams.prototype.keys` method
  2626. keys: function keys() {
  2627. return new URLSearchParamsIterator(this, 'keys');
  2628. },
  2629. // `URLSearchParams.prototype.values` method
  2630. values: function values() {
  2631. return new URLSearchParamsIterator(this, 'values');
  2632. },
  2633. // `URLSearchParams.prototype.entries` method
  2634. entries: function entries() {
  2635. return new URLSearchParamsIterator(this, 'entries');
  2636. }
  2637. }, { enumerable: true });
  2638. // `URLSearchParams.prototype[@@iterator]` method
  2639. defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
  2640. // `URLSearchParams.prototype.toString` method
  2641. // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
  2642. defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
  2643. return getInternalParamsState(this).serialize();
  2644. }, { enumerable: true });
  2645. // `URLSearchParams.prototype.size` getter
  2646. // https://github.com/whatwg/url/pull/734
  2647. if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
  2648. get: function size() {
  2649. return getInternalParamsState(this).entries.length;
  2650. },
  2651. configurable: true,
  2652. enumerable: true
  2653. });
  2654. setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
  2655. $({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
  2656. URLSearchParams: URLSearchParamsConstructor
  2657. });
  2658. // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
  2659. if (!USE_NATIVE_URL && isCallable(Headers)) {
  2660. var headersHas = uncurryThis(HeadersPrototype.has);
  2661. var headersSet = uncurryThis(HeadersPrototype.set);
  2662. var wrapRequestOptions = function (init) {
  2663. if (isObject(init)) {
  2664. var body = init.body;
  2665. var headers;
  2666. if (classof(body) === URL_SEARCH_PARAMS) {
  2667. headers = init.headers ? new Headers(init.headers) : new Headers();
  2668. if (!headersHas(headers, 'content-type')) {
  2669. headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
  2670. }
  2671. return create(init, {
  2672. body: createPropertyDescriptor(0, $toString(body)),
  2673. headers: createPropertyDescriptor(0, headers)
  2674. });
  2675. }
  2676. } return init;
  2677. };
  2678. if (isCallable(nativeFetch)) {
  2679. $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
  2680. fetch: function fetch(input /* , init */) {
  2681. return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
  2682. }
  2683. });
  2684. }
  2685. if (isCallable(NativeRequest)) {
  2686. var RequestConstructor = function Request(input /* , init */) {
  2687. anInstance(this, RequestPrototype);
  2688. return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
  2689. };
  2690. RequestPrototype.constructor = RequestConstructor;
  2691. RequestConstructor.prototype = RequestPrototype;
  2692. $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
  2693. Request: RequestConstructor
  2694. });
  2695. }
  2696. }
  2697. /**
  2698. * @author: general
  2699. * @website: note.generals.space
  2700. * @email: generals.space@gmail.com
  2701. * @github: https://github.com/generals-space/bootstrap-table-addrbar
  2702. * @update: zhixin wen <wenzhixin2010@gmail.com>
  2703. */
  2704. Object.assign($$6.fn.bootstrapTable.defaults, {
  2705. addrbar: false,
  2706. addrPrefix: ''
  2707. });
  2708. $$6.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2709. _inherits(_class, _$$BootstrapTable);
  2710. function _class() {
  2711. _classCallCheck(this, _class);
  2712. return _callSuper(this, _class, arguments);
  2713. }
  2714. _createClass(_class, [{
  2715. key: "init",
  2716. value: function init() {
  2717. var _get2;
  2718. if (this.options.pagination && this.options.addrbar) {
  2719. this.initAddrbar();
  2720. }
  2721. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2722. args[_key] = arguments[_key];
  2723. }
  2724. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  2725. }
  2726. /*
  2727. * Priority order:
  2728. * The value specified by the user has the highest priority.
  2729. * If it is not specified, it will be obtained from the address bar.
  2730. * If it is not obtained, the default value will be used.
  2731. */
  2732. }, {
  2733. key: "getDefaultOptionValue",
  2734. value: function getDefaultOptionValue(optionName, prefixName) {
  2735. if (this.options[optionName] !== $$6.BootstrapTable.DEFAULTS[optionName]) {
  2736. return this.options[optionName];
  2737. }
  2738. return this.searchParams.get("".concat(this.options.addrPrefix || '').concat(prefixName)) || $$6.BootstrapTable.DEFAULTS[optionName];
  2739. }
  2740. }, {
  2741. key: "initAddrbar",
  2742. value: function initAddrbar() {
  2743. var _this = this;
  2744. // 标志位, 初始加载后关闭
  2745. this.addrbarInit = true;
  2746. this.searchParams = new URLSearchParams(window.location.search.substring(1));
  2747. this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
  2748. this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
  2749. this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
  2750. this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
  2751. this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
  2752. var prefix = this.options.addrPrefix || '';
  2753. var onLoadSuccess = this.options.onLoadSuccess;
  2754. var onPageChange = this.options.onPageChange;
  2755. this.options.onLoadSuccess = function (data) {
  2756. if (_this.addrbarInit) {
  2757. _this.addrbarInit = false;
  2758. } else {
  2759. _this.updateHistoryState(prefix);
  2760. }
  2761. if (onLoadSuccess) {
  2762. onLoadSuccess.call(_this, data);
  2763. }
  2764. };
  2765. this.options.onPageChange = function (number, size) {
  2766. _this.updateHistoryState(prefix);
  2767. if (onPageChange) {
  2768. onPageChange.call(_this, number, size);
  2769. }
  2770. };
  2771. }
  2772. }, {
  2773. key: "updateHistoryState",
  2774. value: function updateHistoryState(prefix) {
  2775. var params = {};
  2776. params["".concat(prefix, "page")] = this.options.pageNumber;
  2777. params["".concat(prefix, "size")] = this.options.pageSize;
  2778. params["".concat(prefix, "order")] = this.options.sortOrder;
  2779. params["".concat(prefix, "sort")] = this.options.sortName;
  2780. params["".concat(prefix, "search")] = this.options.searchText;
  2781. for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
  2782. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2783. key = _Object$entries$_i[0],
  2784. value = _Object$entries$_i[1];
  2785. if (value === undefined) {
  2786. this.searchParams.delete(key);
  2787. } else {
  2788. this.searchParams.set(key, value);
  2789. }
  2790. }
  2791. var url = "?".concat(this.searchParams.toString());
  2792. if (location.hash) {
  2793. url += location.hash;
  2794. }
  2795. window.history.pushState({}, '', url);
  2796. }
  2797. }, {
  2798. key: "resetSearch",
  2799. value: function resetSearch(text) {
  2800. _get(_getPrototypeOf(_class.prototype), "resetSearch", this).call(this, text);
  2801. this.options.searchText = text || '';
  2802. }
  2803. }]);
  2804. return _class;
  2805. }($$6.BootstrapTable);
  2806. }));