bootstrap-table-cookie.js 150 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388
  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 ($) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _arrayWithHoles(r) {
  12. if (Array.isArray(r)) return r;
  13. }
  14. function _assertThisInitialized(e) {
  15. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  16. return e;
  17. }
  18. function _callSuper(t, o, e) {
  19. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  20. }
  21. function _classCallCheck(a, n) {
  22. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  23. }
  24. function _defineProperties(e, r) {
  25. for (var t = 0; t < r.length; t++) {
  26. var o = r[t];
  27. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  28. }
  29. }
  30. function _createClass(e, r, t) {
  31. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  32. writable: !1
  33. }), e;
  34. }
  35. function _createForOfIteratorHelper(r, e) {
  36. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  37. if (!t) {
  38. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  39. t && (r = t);
  40. var n = 0,
  41. F = function () {};
  42. return {
  43. s: F,
  44. n: function () {
  45. return n >= r.length ? {
  46. done: !0
  47. } : {
  48. done: !1,
  49. value: r[n++]
  50. };
  51. },
  52. e: function (r) {
  53. throw r;
  54. },
  55. f: F
  56. };
  57. }
  58. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  59. }
  60. var o,
  61. a = !0,
  62. u = !1;
  63. return {
  64. s: function () {
  65. t = t.call(r);
  66. },
  67. n: function () {
  68. var r = t.next();
  69. return a = r.done, r;
  70. },
  71. e: function (r) {
  72. u = !0, o = r;
  73. },
  74. f: function () {
  75. try {
  76. a || null == t.return || t.return();
  77. } finally {
  78. if (u) throw o;
  79. }
  80. }
  81. };
  82. }
  83. function _get() {
  84. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  85. var p = _superPropBase(e, t);
  86. if (p) {
  87. var n = Object.getOwnPropertyDescriptor(p, t);
  88. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  89. }
  90. }, _get.apply(null, arguments);
  91. }
  92. function _getPrototypeOf(t) {
  93. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  94. return t.__proto__ || Object.getPrototypeOf(t);
  95. }, _getPrototypeOf(t);
  96. }
  97. function _inherits(t, e) {
  98. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  99. t.prototype = Object.create(e && e.prototype, {
  100. constructor: {
  101. value: t,
  102. writable: !0,
  103. configurable: !0
  104. }
  105. }), Object.defineProperty(t, "prototype", {
  106. writable: !1
  107. }), e && _setPrototypeOf(t, e);
  108. }
  109. function _isNativeReflectConstruct() {
  110. try {
  111. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  112. } catch (t) {}
  113. return (_isNativeReflectConstruct = function () {
  114. return !!t;
  115. })();
  116. }
  117. function _iterableToArrayLimit(r, l) {
  118. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  119. if (null != t) {
  120. var e,
  121. n,
  122. i,
  123. u,
  124. a = [],
  125. f = !0,
  126. o = !1;
  127. try {
  128. if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  129. } catch (r) {
  130. o = !0, n = r;
  131. } finally {
  132. try {
  133. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  134. } finally {
  135. if (o) throw n;
  136. }
  137. }
  138. return a;
  139. }
  140. }
  141. function _nonIterableRest() {
  142. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  143. }
  144. function _possibleConstructorReturn(t, e) {
  145. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  146. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  147. return _assertThisInitialized(t);
  148. }
  149. function _setPrototypeOf(t, e) {
  150. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  151. return t.__proto__ = e, t;
  152. }, _setPrototypeOf(t, e);
  153. }
  154. function _slicedToArray(r, e) {
  155. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  156. }
  157. function _superPropBase(t, o) {
  158. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  159. return t;
  160. }
  161. function _superPropGet(t, e, r, o) {
  162. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  163. return function (t) {
  164. return p.apply(r, t);
  165. } ;
  166. }
  167. function _toPrimitive(t, r) {
  168. if ("object" != typeof t || !t) return t;
  169. var e = t[Symbol.toPrimitive];
  170. if (void 0 !== e) {
  171. var i = e.call(t, r);
  172. if ("object" != typeof i) return i;
  173. throw new TypeError("@@toPrimitive must return a primitive value.");
  174. }
  175. return (String )(t);
  176. }
  177. function _toPropertyKey(t) {
  178. var i = _toPrimitive(t, "string");
  179. return "symbol" == typeof i ? i : i + "";
  180. }
  181. function _unsupportedIterableToArray(r, a) {
  182. if (r) {
  183. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  184. var t = {}.toString.call(r).slice(8, -1);
  185. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  186. }
  187. }
  188. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  189. var es_array_concat = {};
  190. var globalThis_1;
  191. var hasRequiredGlobalThis;
  192. function requireGlobalThis () {
  193. if (hasRequiredGlobalThis) return globalThis_1;
  194. hasRequiredGlobalThis = 1;
  195. var check = function (it) {
  196. return it && it.Math === Math && it;
  197. };
  198. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  199. globalThis_1 =
  200. // eslint-disable-next-line es/no-global-this -- safe
  201. check(typeof globalThis == 'object' && globalThis) ||
  202. check(typeof window == 'object' && window) ||
  203. // eslint-disable-next-line no-restricted-globals -- safe
  204. check(typeof self == 'object' && self) ||
  205. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  206. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  207. // eslint-disable-next-line no-new-func -- fallback
  208. (function () { return this; })() || Function('return this')();
  209. return globalThis_1;
  210. }
  211. var objectGetOwnPropertyDescriptor = {};
  212. var fails;
  213. var hasRequiredFails;
  214. function requireFails () {
  215. if (hasRequiredFails) return fails;
  216. hasRequiredFails = 1;
  217. fails = function (exec) {
  218. try {
  219. return !!exec();
  220. } catch (error) {
  221. return true;
  222. }
  223. };
  224. return fails;
  225. }
  226. var descriptors;
  227. var hasRequiredDescriptors;
  228. function requireDescriptors () {
  229. if (hasRequiredDescriptors) return descriptors;
  230. hasRequiredDescriptors = 1;
  231. var fails = requireFails();
  232. // Detect IE8's incomplete defineProperty implementation
  233. descriptors = !fails(function () {
  234. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  235. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  236. });
  237. return descriptors;
  238. }
  239. var functionBindNative;
  240. var hasRequiredFunctionBindNative;
  241. function requireFunctionBindNative () {
  242. if (hasRequiredFunctionBindNative) return functionBindNative;
  243. hasRequiredFunctionBindNative = 1;
  244. var fails = requireFails();
  245. functionBindNative = !fails(function () {
  246. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  247. var test = (function () { /* empty */ }).bind();
  248. // eslint-disable-next-line no-prototype-builtins -- safe
  249. return typeof test != 'function' || test.hasOwnProperty('prototype');
  250. });
  251. return functionBindNative;
  252. }
  253. var functionCall;
  254. var hasRequiredFunctionCall;
  255. function requireFunctionCall () {
  256. if (hasRequiredFunctionCall) return functionCall;
  257. hasRequiredFunctionCall = 1;
  258. var NATIVE_BIND = requireFunctionBindNative();
  259. var call = Function.prototype.call;
  260. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  261. return call.apply(call, arguments);
  262. };
  263. return functionCall;
  264. }
  265. var objectPropertyIsEnumerable = {};
  266. var hasRequiredObjectPropertyIsEnumerable;
  267. function requireObjectPropertyIsEnumerable () {
  268. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  269. hasRequiredObjectPropertyIsEnumerable = 1;
  270. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  271. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  272. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  273. // Nashorn ~ JDK8 bug
  274. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  275. // `Object.prototype.propertyIsEnumerable` method implementation
  276. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  277. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  278. var descriptor = getOwnPropertyDescriptor(this, V);
  279. return !!descriptor && descriptor.enumerable;
  280. } : $propertyIsEnumerable;
  281. return objectPropertyIsEnumerable;
  282. }
  283. var createPropertyDescriptor;
  284. var hasRequiredCreatePropertyDescriptor;
  285. function requireCreatePropertyDescriptor () {
  286. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  287. hasRequiredCreatePropertyDescriptor = 1;
  288. createPropertyDescriptor = function (bitmap, value) {
  289. return {
  290. enumerable: !(bitmap & 1),
  291. configurable: !(bitmap & 2),
  292. writable: !(bitmap & 4),
  293. value: value
  294. };
  295. };
  296. return createPropertyDescriptor;
  297. }
  298. var functionUncurryThis;
  299. var hasRequiredFunctionUncurryThis;
  300. function requireFunctionUncurryThis () {
  301. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  302. hasRequiredFunctionUncurryThis = 1;
  303. var NATIVE_BIND = requireFunctionBindNative();
  304. var FunctionPrototype = Function.prototype;
  305. var call = FunctionPrototype.call;
  306. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  307. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  308. return function () {
  309. return call.apply(fn, arguments);
  310. };
  311. };
  312. return functionUncurryThis;
  313. }
  314. var classofRaw;
  315. var hasRequiredClassofRaw;
  316. function requireClassofRaw () {
  317. if (hasRequiredClassofRaw) return classofRaw;
  318. hasRequiredClassofRaw = 1;
  319. var uncurryThis = requireFunctionUncurryThis();
  320. var toString = uncurryThis({}.toString);
  321. var stringSlice = uncurryThis(''.slice);
  322. classofRaw = function (it) {
  323. return stringSlice(toString(it), 8, -1);
  324. };
  325. return classofRaw;
  326. }
  327. var indexedObject;
  328. var hasRequiredIndexedObject;
  329. function requireIndexedObject () {
  330. if (hasRequiredIndexedObject) return indexedObject;
  331. hasRequiredIndexedObject = 1;
  332. var uncurryThis = requireFunctionUncurryThis();
  333. var fails = requireFails();
  334. var classof = requireClassofRaw();
  335. var $Object = Object;
  336. var split = uncurryThis(''.split);
  337. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  338. indexedObject = fails(function () {
  339. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  340. // eslint-disable-next-line no-prototype-builtins -- safe
  341. return !$Object('z').propertyIsEnumerable(0);
  342. }) ? function (it) {
  343. return classof(it) === 'String' ? split(it, '') : $Object(it);
  344. } : $Object;
  345. return indexedObject;
  346. }
  347. var isNullOrUndefined;
  348. var hasRequiredIsNullOrUndefined;
  349. function requireIsNullOrUndefined () {
  350. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  351. hasRequiredIsNullOrUndefined = 1;
  352. // we can't use just `it == null` since of `document.all` special case
  353. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  354. isNullOrUndefined = function (it) {
  355. return it === null || it === undefined;
  356. };
  357. return isNullOrUndefined;
  358. }
  359. var requireObjectCoercible;
  360. var hasRequiredRequireObjectCoercible;
  361. function requireRequireObjectCoercible () {
  362. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  363. hasRequiredRequireObjectCoercible = 1;
  364. var isNullOrUndefined = requireIsNullOrUndefined();
  365. var $TypeError = TypeError;
  366. // `RequireObjectCoercible` abstract operation
  367. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  368. requireObjectCoercible = function (it) {
  369. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  370. return it;
  371. };
  372. return requireObjectCoercible;
  373. }
  374. var toIndexedObject;
  375. var hasRequiredToIndexedObject;
  376. function requireToIndexedObject () {
  377. if (hasRequiredToIndexedObject) return toIndexedObject;
  378. hasRequiredToIndexedObject = 1;
  379. // toObject with fallback for non-array-like ES3 strings
  380. var IndexedObject = requireIndexedObject();
  381. var requireObjectCoercible = requireRequireObjectCoercible();
  382. toIndexedObject = function (it) {
  383. return IndexedObject(requireObjectCoercible(it));
  384. };
  385. return toIndexedObject;
  386. }
  387. var isCallable;
  388. var hasRequiredIsCallable;
  389. function requireIsCallable () {
  390. if (hasRequiredIsCallable) return isCallable;
  391. hasRequiredIsCallable = 1;
  392. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  393. var documentAll = typeof document == 'object' && document.all;
  394. // `IsCallable` abstract operation
  395. // https://tc39.es/ecma262/#sec-iscallable
  396. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  397. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  398. return typeof argument == 'function' || argument === documentAll;
  399. } : function (argument) {
  400. return typeof argument == 'function';
  401. };
  402. return isCallable;
  403. }
  404. var isObject;
  405. var hasRequiredIsObject;
  406. function requireIsObject () {
  407. if (hasRequiredIsObject) return isObject;
  408. hasRequiredIsObject = 1;
  409. var isCallable = requireIsCallable();
  410. isObject = function (it) {
  411. return typeof it == 'object' ? it !== null : isCallable(it);
  412. };
  413. return isObject;
  414. }
  415. var getBuiltIn;
  416. var hasRequiredGetBuiltIn;
  417. function requireGetBuiltIn () {
  418. if (hasRequiredGetBuiltIn) return getBuiltIn;
  419. hasRequiredGetBuiltIn = 1;
  420. var globalThis = requireGlobalThis();
  421. var isCallable = requireIsCallable();
  422. var aFunction = function (argument) {
  423. return isCallable(argument) ? argument : undefined;
  424. };
  425. getBuiltIn = function (namespace, method) {
  426. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  427. };
  428. return getBuiltIn;
  429. }
  430. var objectIsPrototypeOf;
  431. var hasRequiredObjectIsPrototypeOf;
  432. function requireObjectIsPrototypeOf () {
  433. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  434. hasRequiredObjectIsPrototypeOf = 1;
  435. var uncurryThis = requireFunctionUncurryThis();
  436. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  437. return objectIsPrototypeOf;
  438. }
  439. var environmentUserAgent;
  440. var hasRequiredEnvironmentUserAgent;
  441. function requireEnvironmentUserAgent () {
  442. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  443. hasRequiredEnvironmentUserAgent = 1;
  444. var globalThis = requireGlobalThis();
  445. var navigator = globalThis.navigator;
  446. var userAgent = navigator && navigator.userAgent;
  447. environmentUserAgent = userAgent ? String(userAgent) : '';
  448. return environmentUserAgent;
  449. }
  450. var environmentV8Version;
  451. var hasRequiredEnvironmentV8Version;
  452. function requireEnvironmentV8Version () {
  453. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  454. hasRequiredEnvironmentV8Version = 1;
  455. var globalThis = requireGlobalThis();
  456. var userAgent = requireEnvironmentUserAgent();
  457. var process = globalThis.process;
  458. var Deno = globalThis.Deno;
  459. var versions = process && process.versions || Deno && Deno.version;
  460. var v8 = versions && versions.v8;
  461. var match, version;
  462. if (v8) {
  463. match = v8.split('.');
  464. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  465. // but their correct versions are not interesting for us
  466. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  467. }
  468. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  469. // so check `userAgent` even if `.v8` exists, but 0
  470. if (!version && userAgent) {
  471. match = userAgent.match(/Edge\/(\d+)/);
  472. if (!match || match[1] >= 74) {
  473. match = userAgent.match(/Chrome\/(\d+)/);
  474. if (match) version = +match[1];
  475. }
  476. }
  477. environmentV8Version = version;
  478. return environmentV8Version;
  479. }
  480. var symbolConstructorDetection;
  481. var hasRequiredSymbolConstructorDetection;
  482. function requireSymbolConstructorDetection () {
  483. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  484. hasRequiredSymbolConstructorDetection = 1;
  485. /* eslint-disable es/no-symbol -- required for testing */
  486. var V8_VERSION = requireEnvironmentV8Version();
  487. var fails = requireFails();
  488. var globalThis = requireGlobalThis();
  489. var $String = globalThis.String;
  490. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  491. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  492. var symbol = Symbol('symbol detection');
  493. // Chrome 38 Symbol has incorrect toString conversion
  494. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  495. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  496. // of course, fail.
  497. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  498. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  499. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  500. });
  501. return symbolConstructorDetection;
  502. }
  503. var useSymbolAsUid;
  504. var hasRequiredUseSymbolAsUid;
  505. function requireUseSymbolAsUid () {
  506. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  507. hasRequiredUseSymbolAsUid = 1;
  508. /* eslint-disable es/no-symbol -- required for testing */
  509. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  510. useSymbolAsUid = NATIVE_SYMBOL
  511. && !Symbol.sham
  512. && typeof Symbol.iterator == 'symbol';
  513. return useSymbolAsUid;
  514. }
  515. var isSymbol;
  516. var hasRequiredIsSymbol;
  517. function requireIsSymbol () {
  518. if (hasRequiredIsSymbol) return isSymbol;
  519. hasRequiredIsSymbol = 1;
  520. var getBuiltIn = requireGetBuiltIn();
  521. var isCallable = requireIsCallable();
  522. var isPrototypeOf = requireObjectIsPrototypeOf();
  523. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  524. var $Object = Object;
  525. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  526. return typeof it == 'symbol';
  527. } : function (it) {
  528. var $Symbol = getBuiltIn('Symbol');
  529. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  530. };
  531. return isSymbol;
  532. }
  533. var tryToString;
  534. var hasRequiredTryToString;
  535. function requireTryToString () {
  536. if (hasRequiredTryToString) return tryToString;
  537. hasRequiredTryToString = 1;
  538. var $String = String;
  539. tryToString = function (argument) {
  540. try {
  541. return $String(argument);
  542. } catch (error) {
  543. return 'Object';
  544. }
  545. };
  546. return tryToString;
  547. }
  548. var aCallable;
  549. var hasRequiredACallable;
  550. function requireACallable () {
  551. if (hasRequiredACallable) return aCallable;
  552. hasRequiredACallable = 1;
  553. var isCallable = requireIsCallable();
  554. var tryToString = requireTryToString();
  555. var $TypeError = TypeError;
  556. // `Assert: IsCallable(argument) is true`
  557. aCallable = function (argument) {
  558. if (isCallable(argument)) return argument;
  559. throw new $TypeError(tryToString(argument) + ' is not a function');
  560. };
  561. return aCallable;
  562. }
  563. var getMethod;
  564. var hasRequiredGetMethod;
  565. function requireGetMethod () {
  566. if (hasRequiredGetMethod) return getMethod;
  567. hasRequiredGetMethod = 1;
  568. var aCallable = requireACallable();
  569. var isNullOrUndefined = requireIsNullOrUndefined();
  570. // `GetMethod` abstract operation
  571. // https://tc39.es/ecma262/#sec-getmethod
  572. getMethod = function (V, P) {
  573. var func = V[P];
  574. return isNullOrUndefined(func) ? undefined : aCallable(func);
  575. };
  576. return getMethod;
  577. }
  578. var ordinaryToPrimitive;
  579. var hasRequiredOrdinaryToPrimitive;
  580. function requireOrdinaryToPrimitive () {
  581. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  582. hasRequiredOrdinaryToPrimitive = 1;
  583. var call = requireFunctionCall();
  584. var isCallable = requireIsCallable();
  585. var isObject = requireIsObject();
  586. var $TypeError = TypeError;
  587. // `OrdinaryToPrimitive` abstract operation
  588. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  589. ordinaryToPrimitive = function (input, pref) {
  590. var fn, val;
  591. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  592. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  593. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  594. throw new $TypeError("Can't convert object to primitive value");
  595. };
  596. return ordinaryToPrimitive;
  597. }
  598. var sharedStore = {exports: {}};
  599. var isPure;
  600. var hasRequiredIsPure;
  601. function requireIsPure () {
  602. if (hasRequiredIsPure) return isPure;
  603. hasRequiredIsPure = 1;
  604. isPure = false;
  605. return isPure;
  606. }
  607. var defineGlobalProperty;
  608. var hasRequiredDefineGlobalProperty;
  609. function requireDefineGlobalProperty () {
  610. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  611. hasRequiredDefineGlobalProperty = 1;
  612. var globalThis = requireGlobalThis();
  613. // eslint-disable-next-line es/no-object-defineproperty -- safe
  614. var defineProperty = Object.defineProperty;
  615. defineGlobalProperty = function (key, value) {
  616. try {
  617. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  618. } catch (error) {
  619. globalThis[key] = value;
  620. } return value;
  621. };
  622. return defineGlobalProperty;
  623. }
  624. var hasRequiredSharedStore;
  625. function requireSharedStore () {
  626. if (hasRequiredSharedStore) return sharedStore.exports;
  627. hasRequiredSharedStore = 1;
  628. var IS_PURE = requireIsPure();
  629. var globalThis = requireGlobalThis();
  630. var defineGlobalProperty = requireDefineGlobalProperty();
  631. var SHARED = '__core-js_shared__';
  632. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  633. (store.versions || (store.versions = [])).push({
  634. version: '3.38.1',
  635. mode: IS_PURE ? 'pure' : 'global',
  636. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  637. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  638. source: 'https://github.com/zloirock/core-js'
  639. });
  640. return sharedStore.exports;
  641. }
  642. var shared;
  643. var hasRequiredShared;
  644. function requireShared () {
  645. if (hasRequiredShared) return shared;
  646. hasRequiredShared = 1;
  647. var store = requireSharedStore();
  648. shared = function (key, value) {
  649. return store[key] || (store[key] = value || {});
  650. };
  651. return shared;
  652. }
  653. var toObject;
  654. var hasRequiredToObject;
  655. function requireToObject () {
  656. if (hasRequiredToObject) return toObject;
  657. hasRequiredToObject = 1;
  658. var requireObjectCoercible = requireRequireObjectCoercible();
  659. var $Object = Object;
  660. // `ToObject` abstract operation
  661. // https://tc39.es/ecma262/#sec-toobject
  662. toObject = function (argument) {
  663. return $Object(requireObjectCoercible(argument));
  664. };
  665. return toObject;
  666. }
  667. var hasOwnProperty_1;
  668. var hasRequiredHasOwnProperty;
  669. function requireHasOwnProperty () {
  670. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  671. hasRequiredHasOwnProperty = 1;
  672. var uncurryThis = requireFunctionUncurryThis();
  673. var toObject = requireToObject();
  674. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  675. // `HasOwnProperty` abstract operation
  676. // https://tc39.es/ecma262/#sec-hasownproperty
  677. // eslint-disable-next-line es/no-object-hasown -- safe
  678. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  679. return hasOwnProperty(toObject(it), key);
  680. };
  681. return hasOwnProperty_1;
  682. }
  683. var uid;
  684. var hasRequiredUid;
  685. function requireUid () {
  686. if (hasRequiredUid) return uid;
  687. hasRequiredUid = 1;
  688. var uncurryThis = requireFunctionUncurryThis();
  689. var id = 0;
  690. var postfix = Math.random();
  691. var toString = uncurryThis(1.0.toString);
  692. uid = function (key) {
  693. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  694. };
  695. return uid;
  696. }
  697. var wellKnownSymbol;
  698. var hasRequiredWellKnownSymbol;
  699. function requireWellKnownSymbol () {
  700. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  701. hasRequiredWellKnownSymbol = 1;
  702. var globalThis = requireGlobalThis();
  703. var shared = requireShared();
  704. var hasOwn = requireHasOwnProperty();
  705. var uid = requireUid();
  706. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  707. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  708. var Symbol = globalThis.Symbol;
  709. var WellKnownSymbolsStore = shared('wks');
  710. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  711. wellKnownSymbol = function (name) {
  712. if (!hasOwn(WellKnownSymbolsStore, name)) {
  713. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  714. ? Symbol[name]
  715. : createWellKnownSymbol('Symbol.' + name);
  716. } return WellKnownSymbolsStore[name];
  717. };
  718. return wellKnownSymbol;
  719. }
  720. var toPrimitive;
  721. var hasRequiredToPrimitive;
  722. function requireToPrimitive () {
  723. if (hasRequiredToPrimitive) return toPrimitive;
  724. hasRequiredToPrimitive = 1;
  725. var call = requireFunctionCall();
  726. var isObject = requireIsObject();
  727. var isSymbol = requireIsSymbol();
  728. var getMethod = requireGetMethod();
  729. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  730. var wellKnownSymbol = requireWellKnownSymbol();
  731. var $TypeError = TypeError;
  732. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  733. // `ToPrimitive` abstract operation
  734. // https://tc39.es/ecma262/#sec-toprimitive
  735. toPrimitive = function (input, pref) {
  736. if (!isObject(input) || isSymbol(input)) return input;
  737. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  738. var result;
  739. if (exoticToPrim) {
  740. if (pref === undefined) pref = 'default';
  741. result = call(exoticToPrim, input, pref);
  742. if (!isObject(result) || isSymbol(result)) return result;
  743. throw new $TypeError("Can't convert object to primitive value");
  744. }
  745. if (pref === undefined) pref = 'number';
  746. return ordinaryToPrimitive(input, pref);
  747. };
  748. return toPrimitive;
  749. }
  750. var toPropertyKey;
  751. var hasRequiredToPropertyKey;
  752. function requireToPropertyKey () {
  753. if (hasRequiredToPropertyKey) return toPropertyKey;
  754. hasRequiredToPropertyKey = 1;
  755. var toPrimitive = requireToPrimitive();
  756. var isSymbol = requireIsSymbol();
  757. // `ToPropertyKey` abstract operation
  758. // https://tc39.es/ecma262/#sec-topropertykey
  759. toPropertyKey = function (argument) {
  760. var key = toPrimitive(argument, 'string');
  761. return isSymbol(key) ? key : key + '';
  762. };
  763. return toPropertyKey;
  764. }
  765. var documentCreateElement;
  766. var hasRequiredDocumentCreateElement;
  767. function requireDocumentCreateElement () {
  768. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  769. hasRequiredDocumentCreateElement = 1;
  770. var globalThis = requireGlobalThis();
  771. var isObject = requireIsObject();
  772. var document = globalThis.document;
  773. // typeof document.createElement is 'object' in old IE
  774. var EXISTS = isObject(document) && isObject(document.createElement);
  775. documentCreateElement = function (it) {
  776. return EXISTS ? document.createElement(it) : {};
  777. };
  778. return documentCreateElement;
  779. }
  780. var ie8DomDefine;
  781. var hasRequiredIe8DomDefine;
  782. function requireIe8DomDefine () {
  783. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  784. hasRequiredIe8DomDefine = 1;
  785. var DESCRIPTORS = requireDescriptors();
  786. var fails = requireFails();
  787. var createElement = requireDocumentCreateElement();
  788. // Thanks to IE8 for its funny defineProperty
  789. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  790. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  791. return Object.defineProperty(createElement('div'), 'a', {
  792. get: function () { return 7; }
  793. }).a !== 7;
  794. });
  795. return ie8DomDefine;
  796. }
  797. var hasRequiredObjectGetOwnPropertyDescriptor;
  798. function requireObjectGetOwnPropertyDescriptor () {
  799. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  800. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  801. var DESCRIPTORS = requireDescriptors();
  802. var call = requireFunctionCall();
  803. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  804. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  805. var toIndexedObject = requireToIndexedObject();
  806. var toPropertyKey = requireToPropertyKey();
  807. var hasOwn = requireHasOwnProperty();
  808. var IE8_DOM_DEFINE = requireIe8DomDefine();
  809. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  810. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  811. // `Object.getOwnPropertyDescriptor` method
  812. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  813. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  814. O = toIndexedObject(O);
  815. P = toPropertyKey(P);
  816. if (IE8_DOM_DEFINE) try {
  817. return $getOwnPropertyDescriptor(O, P);
  818. } catch (error) { /* empty */ }
  819. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  820. };
  821. return objectGetOwnPropertyDescriptor;
  822. }
  823. var objectDefineProperty = {};
  824. var v8PrototypeDefineBug;
  825. var hasRequiredV8PrototypeDefineBug;
  826. function requireV8PrototypeDefineBug () {
  827. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  828. hasRequiredV8PrototypeDefineBug = 1;
  829. var DESCRIPTORS = requireDescriptors();
  830. var fails = requireFails();
  831. // V8 ~ Chrome 36-
  832. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  833. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  834. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  835. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  836. value: 42,
  837. writable: false
  838. }).prototype !== 42;
  839. });
  840. return v8PrototypeDefineBug;
  841. }
  842. var anObject;
  843. var hasRequiredAnObject;
  844. function requireAnObject () {
  845. if (hasRequiredAnObject) return anObject;
  846. hasRequiredAnObject = 1;
  847. var isObject = requireIsObject();
  848. var $String = String;
  849. var $TypeError = TypeError;
  850. // `Assert: Type(argument) is Object`
  851. anObject = function (argument) {
  852. if (isObject(argument)) return argument;
  853. throw new $TypeError($String(argument) + ' is not an object');
  854. };
  855. return anObject;
  856. }
  857. var hasRequiredObjectDefineProperty;
  858. function requireObjectDefineProperty () {
  859. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  860. hasRequiredObjectDefineProperty = 1;
  861. var DESCRIPTORS = requireDescriptors();
  862. var IE8_DOM_DEFINE = requireIe8DomDefine();
  863. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  864. var anObject = requireAnObject();
  865. var toPropertyKey = requireToPropertyKey();
  866. var $TypeError = TypeError;
  867. // eslint-disable-next-line es/no-object-defineproperty -- safe
  868. var $defineProperty = Object.defineProperty;
  869. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  870. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  871. var ENUMERABLE = 'enumerable';
  872. var CONFIGURABLE = 'configurable';
  873. var WRITABLE = 'writable';
  874. // `Object.defineProperty` method
  875. // https://tc39.es/ecma262/#sec-object.defineproperty
  876. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  877. anObject(O);
  878. P = toPropertyKey(P);
  879. anObject(Attributes);
  880. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  881. var current = $getOwnPropertyDescriptor(O, P);
  882. if (current && current[WRITABLE]) {
  883. O[P] = Attributes.value;
  884. Attributes = {
  885. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  886. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  887. writable: false
  888. };
  889. }
  890. } return $defineProperty(O, P, Attributes);
  891. } : $defineProperty : function defineProperty(O, P, Attributes) {
  892. anObject(O);
  893. P = toPropertyKey(P);
  894. anObject(Attributes);
  895. if (IE8_DOM_DEFINE) try {
  896. return $defineProperty(O, P, Attributes);
  897. } catch (error) { /* empty */ }
  898. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  899. if ('value' in Attributes) O[P] = Attributes.value;
  900. return O;
  901. };
  902. return objectDefineProperty;
  903. }
  904. var createNonEnumerableProperty;
  905. var hasRequiredCreateNonEnumerableProperty;
  906. function requireCreateNonEnumerableProperty () {
  907. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  908. hasRequiredCreateNonEnumerableProperty = 1;
  909. var DESCRIPTORS = requireDescriptors();
  910. var definePropertyModule = requireObjectDefineProperty();
  911. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  912. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  913. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  914. } : function (object, key, value) {
  915. object[key] = value;
  916. return object;
  917. };
  918. return createNonEnumerableProperty;
  919. }
  920. var makeBuiltIn = {exports: {}};
  921. var functionName;
  922. var hasRequiredFunctionName;
  923. function requireFunctionName () {
  924. if (hasRequiredFunctionName) return functionName;
  925. hasRequiredFunctionName = 1;
  926. var DESCRIPTORS = requireDescriptors();
  927. var hasOwn = requireHasOwnProperty();
  928. var FunctionPrototype = Function.prototype;
  929. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  930. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  931. var EXISTS = hasOwn(FunctionPrototype, 'name');
  932. // additional protection from minified / mangled / dropped function names
  933. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  934. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  935. functionName = {
  936. EXISTS: EXISTS,
  937. PROPER: PROPER,
  938. CONFIGURABLE: CONFIGURABLE
  939. };
  940. return functionName;
  941. }
  942. var inspectSource;
  943. var hasRequiredInspectSource;
  944. function requireInspectSource () {
  945. if (hasRequiredInspectSource) return inspectSource;
  946. hasRequiredInspectSource = 1;
  947. var uncurryThis = requireFunctionUncurryThis();
  948. var isCallable = requireIsCallable();
  949. var store = requireSharedStore();
  950. var functionToString = uncurryThis(Function.toString);
  951. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  952. if (!isCallable(store.inspectSource)) {
  953. store.inspectSource = function (it) {
  954. return functionToString(it);
  955. };
  956. }
  957. inspectSource = store.inspectSource;
  958. return inspectSource;
  959. }
  960. var weakMapBasicDetection;
  961. var hasRequiredWeakMapBasicDetection;
  962. function requireWeakMapBasicDetection () {
  963. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  964. hasRequiredWeakMapBasicDetection = 1;
  965. var globalThis = requireGlobalThis();
  966. var isCallable = requireIsCallable();
  967. var WeakMap = globalThis.WeakMap;
  968. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  969. return weakMapBasicDetection;
  970. }
  971. var sharedKey;
  972. var hasRequiredSharedKey;
  973. function requireSharedKey () {
  974. if (hasRequiredSharedKey) return sharedKey;
  975. hasRequiredSharedKey = 1;
  976. var shared = requireShared();
  977. var uid = requireUid();
  978. var keys = shared('keys');
  979. sharedKey = function (key) {
  980. return keys[key] || (keys[key] = uid(key));
  981. };
  982. return sharedKey;
  983. }
  984. var hiddenKeys;
  985. var hasRequiredHiddenKeys;
  986. function requireHiddenKeys () {
  987. if (hasRequiredHiddenKeys) return hiddenKeys;
  988. hasRequiredHiddenKeys = 1;
  989. hiddenKeys = {};
  990. return hiddenKeys;
  991. }
  992. var internalState;
  993. var hasRequiredInternalState;
  994. function requireInternalState () {
  995. if (hasRequiredInternalState) return internalState;
  996. hasRequiredInternalState = 1;
  997. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  998. var globalThis = requireGlobalThis();
  999. var isObject = requireIsObject();
  1000. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1001. var hasOwn = requireHasOwnProperty();
  1002. var shared = requireSharedStore();
  1003. var sharedKey = requireSharedKey();
  1004. var hiddenKeys = requireHiddenKeys();
  1005. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  1006. var TypeError = globalThis.TypeError;
  1007. var WeakMap = globalThis.WeakMap;
  1008. var set, get, has;
  1009. var enforce = function (it) {
  1010. return has(it) ? get(it) : set(it, {});
  1011. };
  1012. var getterFor = function (TYPE) {
  1013. return function (it) {
  1014. var state;
  1015. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  1016. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  1017. } return state;
  1018. };
  1019. };
  1020. if (NATIVE_WEAK_MAP || shared.state) {
  1021. var store = shared.state || (shared.state = new WeakMap());
  1022. /* eslint-disable no-self-assign -- prototype methods protection */
  1023. store.get = store.get;
  1024. store.has = store.has;
  1025. store.set = store.set;
  1026. /* eslint-enable no-self-assign -- prototype methods protection */
  1027. set = function (it, metadata) {
  1028. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1029. metadata.facade = it;
  1030. store.set(it, metadata);
  1031. return metadata;
  1032. };
  1033. get = function (it) {
  1034. return store.get(it) || {};
  1035. };
  1036. has = function (it) {
  1037. return store.has(it);
  1038. };
  1039. } else {
  1040. var STATE = sharedKey('state');
  1041. hiddenKeys[STATE] = true;
  1042. set = function (it, metadata) {
  1043. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1044. metadata.facade = it;
  1045. createNonEnumerableProperty(it, STATE, metadata);
  1046. return metadata;
  1047. };
  1048. get = function (it) {
  1049. return hasOwn(it, STATE) ? it[STATE] : {};
  1050. };
  1051. has = function (it) {
  1052. return hasOwn(it, STATE);
  1053. };
  1054. }
  1055. internalState = {
  1056. set: set,
  1057. get: get,
  1058. has: has,
  1059. enforce: enforce,
  1060. getterFor: getterFor
  1061. };
  1062. return internalState;
  1063. }
  1064. var hasRequiredMakeBuiltIn;
  1065. function requireMakeBuiltIn () {
  1066. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  1067. hasRequiredMakeBuiltIn = 1;
  1068. var uncurryThis = requireFunctionUncurryThis();
  1069. var fails = requireFails();
  1070. var isCallable = requireIsCallable();
  1071. var hasOwn = requireHasOwnProperty();
  1072. var DESCRIPTORS = requireDescriptors();
  1073. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  1074. var inspectSource = requireInspectSource();
  1075. var InternalStateModule = requireInternalState();
  1076. var enforceInternalState = InternalStateModule.enforce;
  1077. var getInternalState = InternalStateModule.get;
  1078. var $String = String;
  1079. // eslint-disable-next-line es/no-object-defineproperty -- safe
  1080. var defineProperty = Object.defineProperty;
  1081. var stringSlice = uncurryThis(''.slice);
  1082. var replace = uncurryThis(''.replace);
  1083. var join = uncurryThis([].join);
  1084. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  1085. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  1086. });
  1087. var TEMPLATE = String(String).split('String');
  1088. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  1089. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  1090. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  1091. }
  1092. if (options && options.getter) name = 'get ' + name;
  1093. if (options && options.setter) name = 'set ' + name;
  1094. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1095. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1096. else value.name = name;
  1097. }
  1098. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1099. defineProperty(value, 'length', { value: options.arity });
  1100. }
  1101. try {
  1102. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1103. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1104. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1105. } else if (value.prototype) value.prototype = undefined;
  1106. } catch (error) { /* empty */ }
  1107. var state = enforceInternalState(value);
  1108. if (!hasOwn(state, 'source')) {
  1109. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1110. } return value;
  1111. };
  1112. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1113. // eslint-disable-next-line no-extend-native -- required
  1114. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1115. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1116. }, 'toString');
  1117. return makeBuiltIn.exports;
  1118. }
  1119. var defineBuiltIn;
  1120. var hasRequiredDefineBuiltIn;
  1121. function requireDefineBuiltIn () {
  1122. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1123. hasRequiredDefineBuiltIn = 1;
  1124. var isCallable = requireIsCallable();
  1125. var definePropertyModule = requireObjectDefineProperty();
  1126. var makeBuiltIn = requireMakeBuiltIn();
  1127. var defineGlobalProperty = requireDefineGlobalProperty();
  1128. defineBuiltIn = function (O, key, value, options) {
  1129. if (!options) options = {};
  1130. var simple = options.enumerable;
  1131. var name = options.name !== undefined ? options.name : key;
  1132. if (isCallable(value)) makeBuiltIn(value, name, options);
  1133. if (options.global) {
  1134. if (simple) O[key] = value;
  1135. else defineGlobalProperty(key, value);
  1136. } else {
  1137. try {
  1138. if (!options.unsafe) delete O[key];
  1139. else if (O[key]) simple = true;
  1140. } catch (error) { /* empty */ }
  1141. if (simple) O[key] = value;
  1142. else definePropertyModule.f(O, key, {
  1143. value: value,
  1144. enumerable: false,
  1145. configurable: !options.nonConfigurable,
  1146. writable: !options.nonWritable
  1147. });
  1148. } return O;
  1149. };
  1150. return defineBuiltIn;
  1151. }
  1152. var objectGetOwnPropertyNames = {};
  1153. var mathTrunc;
  1154. var hasRequiredMathTrunc;
  1155. function requireMathTrunc () {
  1156. if (hasRequiredMathTrunc) return mathTrunc;
  1157. hasRequiredMathTrunc = 1;
  1158. var ceil = Math.ceil;
  1159. var floor = Math.floor;
  1160. // `Math.trunc` method
  1161. // https://tc39.es/ecma262/#sec-math.trunc
  1162. // eslint-disable-next-line es/no-math-trunc -- safe
  1163. mathTrunc = Math.trunc || function trunc(x) {
  1164. var n = +x;
  1165. return (n > 0 ? floor : ceil)(n);
  1166. };
  1167. return mathTrunc;
  1168. }
  1169. var toIntegerOrInfinity;
  1170. var hasRequiredToIntegerOrInfinity;
  1171. function requireToIntegerOrInfinity () {
  1172. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1173. hasRequiredToIntegerOrInfinity = 1;
  1174. var trunc = requireMathTrunc();
  1175. // `ToIntegerOrInfinity` abstract operation
  1176. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1177. toIntegerOrInfinity = function (argument) {
  1178. var number = +argument;
  1179. // eslint-disable-next-line no-self-compare -- NaN check
  1180. return number !== number || number === 0 ? 0 : trunc(number);
  1181. };
  1182. return toIntegerOrInfinity;
  1183. }
  1184. var toAbsoluteIndex;
  1185. var hasRequiredToAbsoluteIndex;
  1186. function requireToAbsoluteIndex () {
  1187. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1188. hasRequiredToAbsoluteIndex = 1;
  1189. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1190. var max = Math.max;
  1191. var min = Math.min;
  1192. // Helper for a popular repeating case of the spec:
  1193. // Let integer be ? ToInteger(index).
  1194. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1195. toAbsoluteIndex = function (index, length) {
  1196. var integer = toIntegerOrInfinity(index);
  1197. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1198. };
  1199. return toAbsoluteIndex;
  1200. }
  1201. var toLength;
  1202. var hasRequiredToLength;
  1203. function requireToLength () {
  1204. if (hasRequiredToLength) return toLength;
  1205. hasRequiredToLength = 1;
  1206. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1207. var min = Math.min;
  1208. // `ToLength` abstract operation
  1209. // https://tc39.es/ecma262/#sec-tolength
  1210. toLength = function (argument) {
  1211. var len = toIntegerOrInfinity(argument);
  1212. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1213. };
  1214. return toLength;
  1215. }
  1216. var lengthOfArrayLike;
  1217. var hasRequiredLengthOfArrayLike;
  1218. function requireLengthOfArrayLike () {
  1219. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1220. hasRequiredLengthOfArrayLike = 1;
  1221. var toLength = requireToLength();
  1222. // `LengthOfArrayLike` abstract operation
  1223. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1224. lengthOfArrayLike = function (obj) {
  1225. return toLength(obj.length);
  1226. };
  1227. return lengthOfArrayLike;
  1228. }
  1229. var arrayIncludes;
  1230. var hasRequiredArrayIncludes;
  1231. function requireArrayIncludes () {
  1232. if (hasRequiredArrayIncludes) return arrayIncludes;
  1233. hasRequiredArrayIncludes = 1;
  1234. var toIndexedObject = requireToIndexedObject();
  1235. var toAbsoluteIndex = requireToAbsoluteIndex();
  1236. var lengthOfArrayLike = requireLengthOfArrayLike();
  1237. // `Array.prototype.{ indexOf, includes }` methods implementation
  1238. var createMethod = function (IS_INCLUDES) {
  1239. return function ($this, el, fromIndex) {
  1240. var O = toIndexedObject($this);
  1241. var length = lengthOfArrayLike(O);
  1242. if (length === 0) return !IS_INCLUDES && -1;
  1243. var index = toAbsoluteIndex(fromIndex, length);
  1244. var value;
  1245. // Array#includes uses SameValueZero equality algorithm
  1246. // eslint-disable-next-line no-self-compare -- NaN check
  1247. if (IS_INCLUDES && el !== el) while (length > index) {
  1248. value = O[index++];
  1249. // eslint-disable-next-line no-self-compare -- NaN check
  1250. if (value !== value) return true;
  1251. // Array#indexOf ignores holes, Array#includes - not
  1252. } else for (;length > index; index++) {
  1253. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1254. } return !IS_INCLUDES && -1;
  1255. };
  1256. };
  1257. arrayIncludes = {
  1258. // `Array.prototype.includes` method
  1259. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1260. includes: createMethod(true),
  1261. // `Array.prototype.indexOf` method
  1262. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1263. indexOf: createMethod(false)
  1264. };
  1265. return arrayIncludes;
  1266. }
  1267. var objectKeysInternal;
  1268. var hasRequiredObjectKeysInternal;
  1269. function requireObjectKeysInternal () {
  1270. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1271. hasRequiredObjectKeysInternal = 1;
  1272. var uncurryThis = requireFunctionUncurryThis();
  1273. var hasOwn = requireHasOwnProperty();
  1274. var toIndexedObject = requireToIndexedObject();
  1275. var indexOf = requireArrayIncludes().indexOf;
  1276. var hiddenKeys = requireHiddenKeys();
  1277. var push = uncurryThis([].push);
  1278. objectKeysInternal = function (object, names) {
  1279. var O = toIndexedObject(object);
  1280. var i = 0;
  1281. var result = [];
  1282. var key;
  1283. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1284. // Don't enum bug & hidden keys
  1285. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1286. ~indexOf(result, key) || push(result, key);
  1287. }
  1288. return result;
  1289. };
  1290. return objectKeysInternal;
  1291. }
  1292. var enumBugKeys;
  1293. var hasRequiredEnumBugKeys;
  1294. function requireEnumBugKeys () {
  1295. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1296. hasRequiredEnumBugKeys = 1;
  1297. // IE8- don't enum bug keys
  1298. enumBugKeys = [
  1299. 'constructor',
  1300. 'hasOwnProperty',
  1301. 'isPrototypeOf',
  1302. 'propertyIsEnumerable',
  1303. 'toLocaleString',
  1304. 'toString',
  1305. 'valueOf'
  1306. ];
  1307. return enumBugKeys;
  1308. }
  1309. var hasRequiredObjectGetOwnPropertyNames;
  1310. function requireObjectGetOwnPropertyNames () {
  1311. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1312. hasRequiredObjectGetOwnPropertyNames = 1;
  1313. var internalObjectKeys = requireObjectKeysInternal();
  1314. var enumBugKeys = requireEnumBugKeys();
  1315. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1316. // `Object.getOwnPropertyNames` method
  1317. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1318. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1319. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1320. return internalObjectKeys(O, hiddenKeys);
  1321. };
  1322. return objectGetOwnPropertyNames;
  1323. }
  1324. var objectGetOwnPropertySymbols = {};
  1325. var hasRequiredObjectGetOwnPropertySymbols;
  1326. function requireObjectGetOwnPropertySymbols () {
  1327. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1328. hasRequiredObjectGetOwnPropertySymbols = 1;
  1329. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1330. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1331. return objectGetOwnPropertySymbols;
  1332. }
  1333. var ownKeys;
  1334. var hasRequiredOwnKeys;
  1335. function requireOwnKeys () {
  1336. if (hasRequiredOwnKeys) return ownKeys;
  1337. hasRequiredOwnKeys = 1;
  1338. var getBuiltIn = requireGetBuiltIn();
  1339. var uncurryThis = requireFunctionUncurryThis();
  1340. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1341. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1342. var anObject = requireAnObject();
  1343. var concat = uncurryThis([].concat);
  1344. // all object keys, includes non-enumerable and symbols
  1345. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1346. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1347. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1348. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1349. };
  1350. return ownKeys;
  1351. }
  1352. var copyConstructorProperties;
  1353. var hasRequiredCopyConstructorProperties;
  1354. function requireCopyConstructorProperties () {
  1355. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1356. hasRequiredCopyConstructorProperties = 1;
  1357. var hasOwn = requireHasOwnProperty();
  1358. var ownKeys = requireOwnKeys();
  1359. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1360. var definePropertyModule = requireObjectDefineProperty();
  1361. copyConstructorProperties = function (target, source, exceptions) {
  1362. var keys = ownKeys(source);
  1363. var defineProperty = definePropertyModule.f;
  1364. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1365. for (var i = 0; i < keys.length; i++) {
  1366. var key = keys[i];
  1367. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1368. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1369. }
  1370. }
  1371. };
  1372. return copyConstructorProperties;
  1373. }
  1374. var isForced_1;
  1375. var hasRequiredIsForced;
  1376. function requireIsForced () {
  1377. if (hasRequiredIsForced) return isForced_1;
  1378. hasRequiredIsForced = 1;
  1379. var fails = requireFails();
  1380. var isCallable = requireIsCallable();
  1381. var replacement = /#|\.prototype\./;
  1382. var isForced = function (feature, detection) {
  1383. var value = data[normalize(feature)];
  1384. return value === POLYFILL ? true
  1385. : value === NATIVE ? false
  1386. : isCallable(detection) ? fails(detection)
  1387. : !!detection;
  1388. };
  1389. var normalize = isForced.normalize = function (string) {
  1390. return String(string).replace(replacement, '.').toLowerCase();
  1391. };
  1392. var data = isForced.data = {};
  1393. var NATIVE = isForced.NATIVE = 'N';
  1394. var POLYFILL = isForced.POLYFILL = 'P';
  1395. isForced_1 = isForced;
  1396. return isForced_1;
  1397. }
  1398. var _export;
  1399. var hasRequired_export;
  1400. function require_export () {
  1401. if (hasRequired_export) return _export;
  1402. hasRequired_export = 1;
  1403. var globalThis = requireGlobalThis();
  1404. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1405. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1406. var defineBuiltIn = requireDefineBuiltIn();
  1407. var defineGlobalProperty = requireDefineGlobalProperty();
  1408. var copyConstructorProperties = requireCopyConstructorProperties();
  1409. var isForced = requireIsForced();
  1410. /*
  1411. options.target - name of the target object
  1412. options.global - target is the global object
  1413. options.stat - export as static methods of target
  1414. options.proto - export as prototype methods of target
  1415. options.real - real prototype method for the `pure` version
  1416. options.forced - export even if the native feature is available
  1417. options.bind - bind methods to the target, required for the `pure` version
  1418. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1419. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1420. options.sham - add a flag to not completely full polyfills
  1421. options.enumerable - export as enumerable property
  1422. options.dontCallGetSet - prevent calling a getter on target
  1423. options.name - the .name of the function if it does not match the key
  1424. */
  1425. _export = function (options, source) {
  1426. var TARGET = options.target;
  1427. var GLOBAL = options.global;
  1428. var STATIC = options.stat;
  1429. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1430. if (GLOBAL) {
  1431. target = globalThis;
  1432. } else if (STATIC) {
  1433. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1434. } else {
  1435. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1436. }
  1437. if (target) for (key in source) {
  1438. sourceProperty = source[key];
  1439. if (options.dontCallGetSet) {
  1440. descriptor = getOwnPropertyDescriptor(target, key);
  1441. targetProperty = descriptor && descriptor.value;
  1442. } else targetProperty = target[key];
  1443. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1444. // contained in target
  1445. if (!FORCED && targetProperty !== undefined) {
  1446. if (typeof sourceProperty == typeof targetProperty) continue;
  1447. copyConstructorProperties(sourceProperty, targetProperty);
  1448. }
  1449. // add a flag to not completely full polyfills
  1450. if (options.sham || (targetProperty && targetProperty.sham)) {
  1451. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1452. }
  1453. defineBuiltIn(target, key, sourceProperty, options);
  1454. }
  1455. };
  1456. return _export;
  1457. }
  1458. var isArray;
  1459. var hasRequiredIsArray;
  1460. function requireIsArray () {
  1461. if (hasRequiredIsArray) return isArray;
  1462. hasRequiredIsArray = 1;
  1463. var classof = requireClassofRaw();
  1464. // `IsArray` abstract operation
  1465. // https://tc39.es/ecma262/#sec-isarray
  1466. // eslint-disable-next-line es/no-array-isarray -- safe
  1467. isArray = Array.isArray || function isArray(argument) {
  1468. return classof(argument) === 'Array';
  1469. };
  1470. return isArray;
  1471. }
  1472. var doesNotExceedSafeInteger;
  1473. var hasRequiredDoesNotExceedSafeInteger;
  1474. function requireDoesNotExceedSafeInteger () {
  1475. if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
  1476. hasRequiredDoesNotExceedSafeInteger = 1;
  1477. var $TypeError = TypeError;
  1478. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1479. doesNotExceedSafeInteger = function (it) {
  1480. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1481. return it;
  1482. };
  1483. return doesNotExceedSafeInteger;
  1484. }
  1485. var createProperty;
  1486. var hasRequiredCreateProperty;
  1487. function requireCreateProperty () {
  1488. if (hasRequiredCreateProperty) return createProperty;
  1489. hasRequiredCreateProperty = 1;
  1490. var DESCRIPTORS = requireDescriptors();
  1491. var definePropertyModule = requireObjectDefineProperty();
  1492. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  1493. createProperty = function (object, key, value) {
  1494. if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  1495. else object[key] = value;
  1496. };
  1497. return createProperty;
  1498. }
  1499. var toStringTagSupport;
  1500. var hasRequiredToStringTagSupport;
  1501. function requireToStringTagSupport () {
  1502. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1503. hasRequiredToStringTagSupport = 1;
  1504. var wellKnownSymbol = requireWellKnownSymbol();
  1505. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1506. var test = {};
  1507. test[TO_STRING_TAG] = 'z';
  1508. toStringTagSupport = String(test) === '[object z]';
  1509. return toStringTagSupport;
  1510. }
  1511. var classof;
  1512. var hasRequiredClassof;
  1513. function requireClassof () {
  1514. if (hasRequiredClassof) return classof;
  1515. hasRequiredClassof = 1;
  1516. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1517. var isCallable = requireIsCallable();
  1518. var classofRaw = requireClassofRaw();
  1519. var wellKnownSymbol = requireWellKnownSymbol();
  1520. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1521. var $Object = Object;
  1522. // ES3 wrong here
  1523. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1524. // fallback for IE11 Script Access Denied error
  1525. var tryGet = function (it, key) {
  1526. try {
  1527. return it[key];
  1528. } catch (error) { /* empty */ }
  1529. };
  1530. // getting tag from ES6+ `Object.prototype.toString`
  1531. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1532. var O, tag, result;
  1533. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1534. // @@toStringTag case
  1535. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1536. // builtinTag case
  1537. : CORRECT_ARGUMENTS ? classofRaw(O)
  1538. // ES3 arguments fallback
  1539. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1540. };
  1541. return classof;
  1542. }
  1543. var isConstructor;
  1544. var hasRequiredIsConstructor;
  1545. function requireIsConstructor () {
  1546. if (hasRequiredIsConstructor) return isConstructor;
  1547. hasRequiredIsConstructor = 1;
  1548. var uncurryThis = requireFunctionUncurryThis();
  1549. var fails = requireFails();
  1550. var isCallable = requireIsCallable();
  1551. var classof = requireClassof();
  1552. var getBuiltIn = requireGetBuiltIn();
  1553. var inspectSource = requireInspectSource();
  1554. var noop = function () { /* empty */ };
  1555. var construct = getBuiltIn('Reflect', 'construct');
  1556. var constructorRegExp = /^\s*(?:class|function)\b/;
  1557. var exec = uncurryThis(constructorRegExp.exec);
  1558. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1559. var isConstructorModern = function isConstructor(argument) {
  1560. if (!isCallable(argument)) return false;
  1561. try {
  1562. construct(noop, [], argument);
  1563. return true;
  1564. } catch (error) {
  1565. return false;
  1566. }
  1567. };
  1568. var isConstructorLegacy = function isConstructor(argument) {
  1569. if (!isCallable(argument)) return false;
  1570. switch (classof(argument)) {
  1571. case 'AsyncFunction':
  1572. case 'GeneratorFunction':
  1573. case 'AsyncGeneratorFunction': return false;
  1574. }
  1575. try {
  1576. // we can't check .prototype since constructors produced by .bind haven't it
  1577. // `Function#toString` throws on some built-it function in some legacy engines
  1578. // (for example, `DOMQuad` and similar in FF41-)
  1579. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1580. } catch (error) {
  1581. return true;
  1582. }
  1583. };
  1584. isConstructorLegacy.sham = true;
  1585. // `IsConstructor` abstract operation
  1586. // https://tc39.es/ecma262/#sec-isconstructor
  1587. isConstructor = !construct || fails(function () {
  1588. var called;
  1589. return isConstructorModern(isConstructorModern.call)
  1590. || !isConstructorModern(Object)
  1591. || !isConstructorModern(function () { called = true; })
  1592. || called;
  1593. }) ? isConstructorLegacy : isConstructorModern;
  1594. return isConstructor;
  1595. }
  1596. var arraySpeciesConstructor;
  1597. var hasRequiredArraySpeciesConstructor;
  1598. function requireArraySpeciesConstructor () {
  1599. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1600. hasRequiredArraySpeciesConstructor = 1;
  1601. var isArray = requireIsArray();
  1602. var isConstructor = requireIsConstructor();
  1603. var isObject = requireIsObject();
  1604. var wellKnownSymbol = requireWellKnownSymbol();
  1605. var SPECIES = wellKnownSymbol('species');
  1606. var $Array = Array;
  1607. // a part of `ArraySpeciesCreate` abstract operation
  1608. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1609. arraySpeciesConstructor = function (originalArray) {
  1610. var C;
  1611. if (isArray(originalArray)) {
  1612. C = originalArray.constructor;
  1613. // cross-realm fallback
  1614. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1615. else if (isObject(C)) {
  1616. C = C[SPECIES];
  1617. if (C === null) C = undefined;
  1618. }
  1619. } return C === undefined ? $Array : C;
  1620. };
  1621. return arraySpeciesConstructor;
  1622. }
  1623. var arraySpeciesCreate;
  1624. var hasRequiredArraySpeciesCreate;
  1625. function requireArraySpeciesCreate () {
  1626. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1627. hasRequiredArraySpeciesCreate = 1;
  1628. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1629. // `ArraySpeciesCreate` abstract operation
  1630. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1631. arraySpeciesCreate = function (originalArray, length) {
  1632. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1633. };
  1634. return arraySpeciesCreate;
  1635. }
  1636. var arrayMethodHasSpeciesSupport;
  1637. var hasRequiredArrayMethodHasSpeciesSupport;
  1638. function requireArrayMethodHasSpeciesSupport () {
  1639. if (hasRequiredArrayMethodHasSpeciesSupport) return arrayMethodHasSpeciesSupport;
  1640. hasRequiredArrayMethodHasSpeciesSupport = 1;
  1641. var fails = requireFails();
  1642. var wellKnownSymbol = requireWellKnownSymbol();
  1643. var V8_VERSION = requireEnvironmentV8Version();
  1644. var SPECIES = wellKnownSymbol('species');
  1645. arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1646. // We can't use this feature detection in V8 since it causes
  1647. // deoptimization and serious performance degradation
  1648. // https://github.com/zloirock/core-js/issues/677
  1649. return V8_VERSION >= 51 || !fails(function () {
  1650. var array = [];
  1651. var constructor = array.constructor = {};
  1652. constructor[SPECIES] = function () {
  1653. return { foo: 1 };
  1654. };
  1655. return array[METHOD_NAME](Boolean).foo !== 1;
  1656. });
  1657. };
  1658. return arrayMethodHasSpeciesSupport;
  1659. }
  1660. var hasRequiredEs_array_concat;
  1661. function requireEs_array_concat () {
  1662. if (hasRequiredEs_array_concat) return es_array_concat;
  1663. hasRequiredEs_array_concat = 1;
  1664. var $ = require_export();
  1665. var fails = requireFails();
  1666. var isArray = requireIsArray();
  1667. var isObject = requireIsObject();
  1668. var toObject = requireToObject();
  1669. var lengthOfArrayLike = requireLengthOfArrayLike();
  1670. var doesNotExceedSafeInteger = requireDoesNotExceedSafeInteger();
  1671. var createProperty = requireCreateProperty();
  1672. var arraySpeciesCreate = requireArraySpeciesCreate();
  1673. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1674. var wellKnownSymbol = requireWellKnownSymbol();
  1675. var V8_VERSION = requireEnvironmentV8Version();
  1676. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1677. // We can't use this feature detection in V8 since it causes
  1678. // deoptimization and serious performance degradation
  1679. // https://github.com/zloirock/core-js/issues/679
  1680. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1681. var array = [];
  1682. array[IS_CONCAT_SPREADABLE] = false;
  1683. return array.concat()[0] !== array;
  1684. });
  1685. var isConcatSpreadable = function (O) {
  1686. if (!isObject(O)) return false;
  1687. var spreadable = O[IS_CONCAT_SPREADABLE];
  1688. return spreadable !== undefined ? !!spreadable : isArray(O);
  1689. };
  1690. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1691. // `Array.prototype.concat` method
  1692. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1693. // with adding support of @@isConcatSpreadable and @@species
  1694. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1695. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1696. concat: function concat(arg) {
  1697. var O = toObject(this);
  1698. var A = arraySpeciesCreate(O, 0);
  1699. var n = 0;
  1700. var i, k, length, len, E;
  1701. for (i = -1, length = arguments.length; i < length; i++) {
  1702. E = i === -1 ? O : arguments[i];
  1703. if (isConcatSpreadable(E)) {
  1704. len = lengthOfArrayLike(E);
  1705. doesNotExceedSafeInteger(n + len);
  1706. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1707. } else {
  1708. doesNotExceedSafeInteger(n + 1);
  1709. createProperty(A, n++, E);
  1710. }
  1711. }
  1712. A.length = n;
  1713. return A;
  1714. }
  1715. });
  1716. return es_array_concat;
  1717. }
  1718. requireEs_array_concat();
  1719. var es_array_filter = {};
  1720. var functionUncurryThisClause;
  1721. var hasRequiredFunctionUncurryThisClause;
  1722. function requireFunctionUncurryThisClause () {
  1723. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1724. hasRequiredFunctionUncurryThisClause = 1;
  1725. var classofRaw = requireClassofRaw();
  1726. var uncurryThis = requireFunctionUncurryThis();
  1727. functionUncurryThisClause = function (fn) {
  1728. // Nashorn bug:
  1729. // https://github.com/zloirock/core-js/issues/1128
  1730. // https://github.com/zloirock/core-js/issues/1130
  1731. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1732. };
  1733. return functionUncurryThisClause;
  1734. }
  1735. var functionBindContext;
  1736. var hasRequiredFunctionBindContext;
  1737. function requireFunctionBindContext () {
  1738. if (hasRequiredFunctionBindContext) return functionBindContext;
  1739. hasRequiredFunctionBindContext = 1;
  1740. var uncurryThis = requireFunctionUncurryThisClause();
  1741. var aCallable = requireACallable();
  1742. var NATIVE_BIND = requireFunctionBindNative();
  1743. var bind = uncurryThis(uncurryThis.bind);
  1744. // optional / simple context binding
  1745. functionBindContext = function (fn, that) {
  1746. aCallable(fn);
  1747. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1748. return fn.apply(that, arguments);
  1749. };
  1750. };
  1751. return functionBindContext;
  1752. }
  1753. var arrayIteration;
  1754. var hasRequiredArrayIteration;
  1755. function requireArrayIteration () {
  1756. if (hasRequiredArrayIteration) return arrayIteration;
  1757. hasRequiredArrayIteration = 1;
  1758. var bind = requireFunctionBindContext();
  1759. var uncurryThis = requireFunctionUncurryThis();
  1760. var IndexedObject = requireIndexedObject();
  1761. var toObject = requireToObject();
  1762. var lengthOfArrayLike = requireLengthOfArrayLike();
  1763. var arraySpeciesCreate = requireArraySpeciesCreate();
  1764. var push = uncurryThis([].push);
  1765. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1766. var createMethod = function (TYPE) {
  1767. var IS_MAP = TYPE === 1;
  1768. var IS_FILTER = TYPE === 2;
  1769. var IS_SOME = TYPE === 3;
  1770. var IS_EVERY = TYPE === 4;
  1771. var IS_FIND_INDEX = TYPE === 6;
  1772. var IS_FILTER_REJECT = TYPE === 7;
  1773. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1774. return function ($this, callbackfn, that, specificCreate) {
  1775. var O = toObject($this);
  1776. var self = IndexedObject(O);
  1777. var length = lengthOfArrayLike(self);
  1778. var boundFunction = bind(callbackfn, that);
  1779. var index = 0;
  1780. var create = specificCreate || arraySpeciesCreate;
  1781. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1782. var value, result;
  1783. for (;length > index; index++) if (NO_HOLES || index in self) {
  1784. value = self[index];
  1785. result = boundFunction(value, index, O);
  1786. if (TYPE) {
  1787. if (IS_MAP) target[index] = result; // map
  1788. else if (result) switch (TYPE) {
  1789. case 3: return true; // some
  1790. case 5: return value; // find
  1791. case 6: return index; // findIndex
  1792. case 2: push(target, value); // filter
  1793. } else switch (TYPE) {
  1794. case 4: return false; // every
  1795. case 7: push(target, value); // filterReject
  1796. }
  1797. }
  1798. }
  1799. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1800. };
  1801. };
  1802. arrayIteration = {
  1803. // `Array.prototype.forEach` method
  1804. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1805. forEach: createMethod(0),
  1806. // `Array.prototype.map` method
  1807. // https://tc39.es/ecma262/#sec-array.prototype.map
  1808. map: createMethod(1),
  1809. // `Array.prototype.filter` method
  1810. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1811. filter: createMethod(2),
  1812. // `Array.prototype.some` method
  1813. // https://tc39.es/ecma262/#sec-array.prototype.some
  1814. some: createMethod(3),
  1815. // `Array.prototype.every` method
  1816. // https://tc39.es/ecma262/#sec-array.prototype.every
  1817. every: createMethod(4),
  1818. // `Array.prototype.find` method
  1819. // https://tc39.es/ecma262/#sec-array.prototype.find
  1820. find: createMethod(5),
  1821. // `Array.prototype.findIndex` method
  1822. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1823. findIndex: createMethod(6),
  1824. // `Array.prototype.filterReject` method
  1825. // https://github.com/tc39/proposal-array-filtering
  1826. filterReject: createMethod(7)
  1827. };
  1828. return arrayIteration;
  1829. }
  1830. var hasRequiredEs_array_filter;
  1831. function requireEs_array_filter () {
  1832. if (hasRequiredEs_array_filter) return es_array_filter;
  1833. hasRequiredEs_array_filter = 1;
  1834. var $ = require_export();
  1835. var $filter = requireArrayIteration().filter;
  1836. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1837. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1838. // `Array.prototype.filter` method
  1839. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1840. // with adding support of @@species
  1841. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1842. filter: function filter(callbackfn /* , thisArg */) {
  1843. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1844. }
  1845. });
  1846. return es_array_filter;
  1847. }
  1848. requireEs_array_filter();
  1849. var es_array_find = {};
  1850. var objectDefineProperties = {};
  1851. var objectKeys;
  1852. var hasRequiredObjectKeys;
  1853. function requireObjectKeys () {
  1854. if (hasRequiredObjectKeys) return objectKeys;
  1855. hasRequiredObjectKeys = 1;
  1856. var internalObjectKeys = requireObjectKeysInternal();
  1857. var enumBugKeys = requireEnumBugKeys();
  1858. // `Object.keys` method
  1859. // https://tc39.es/ecma262/#sec-object.keys
  1860. // eslint-disable-next-line es/no-object-keys -- safe
  1861. objectKeys = Object.keys || function keys(O) {
  1862. return internalObjectKeys(O, enumBugKeys);
  1863. };
  1864. return objectKeys;
  1865. }
  1866. var hasRequiredObjectDefineProperties;
  1867. function requireObjectDefineProperties () {
  1868. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1869. hasRequiredObjectDefineProperties = 1;
  1870. var DESCRIPTORS = requireDescriptors();
  1871. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1872. var definePropertyModule = requireObjectDefineProperty();
  1873. var anObject = requireAnObject();
  1874. var toIndexedObject = requireToIndexedObject();
  1875. var objectKeys = requireObjectKeys();
  1876. // `Object.defineProperties` method
  1877. // https://tc39.es/ecma262/#sec-object.defineproperties
  1878. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1879. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1880. anObject(O);
  1881. var props = toIndexedObject(Properties);
  1882. var keys = objectKeys(Properties);
  1883. var length = keys.length;
  1884. var index = 0;
  1885. var key;
  1886. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1887. return O;
  1888. };
  1889. return objectDefineProperties;
  1890. }
  1891. var html;
  1892. var hasRequiredHtml;
  1893. function requireHtml () {
  1894. if (hasRequiredHtml) return html;
  1895. hasRequiredHtml = 1;
  1896. var getBuiltIn = requireGetBuiltIn();
  1897. html = getBuiltIn('document', 'documentElement');
  1898. return html;
  1899. }
  1900. var objectCreate;
  1901. var hasRequiredObjectCreate;
  1902. function requireObjectCreate () {
  1903. if (hasRequiredObjectCreate) return objectCreate;
  1904. hasRequiredObjectCreate = 1;
  1905. /* global ActiveXObject -- old IE, WSH */
  1906. var anObject = requireAnObject();
  1907. var definePropertiesModule = requireObjectDefineProperties();
  1908. var enumBugKeys = requireEnumBugKeys();
  1909. var hiddenKeys = requireHiddenKeys();
  1910. var html = requireHtml();
  1911. var documentCreateElement = requireDocumentCreateElement();
  1912. var sharedKey = requireSharedKey();
  1913. var GT = '>';
  1914. var LT = '<';
  1915. var PROTOTYPE = 'prototype';
  1916. var SCRIPT = 'script';
  1917. var IE_PROTO = sharedKey('IE_PROTO');
  1918. var EmptyConstructor = function () { /* empty */ };
  1919. var scriptTag = function (content) {
  1920. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1921. };
  1922. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1923. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1924. activeXDocument.write(scriptTag(''));
  1925. activeXDocument.close();
  1926. var temp = activeXDocument.parentWindow.Object;
  1927. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1928. activeXDocument = null;
  1929. return temp;
  1930. };
  1931. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1932. var NullProtoObjectViaIFrame = function () {
  1933. // Thrash, waste and sodomy: IE GC bug
  1934. var iframe = documentCreateElement('iframe');
  1935. var JS = 'java' + SCRIPT + ':';
  1936. var iframeDocument;
  1937. iframe.style.display = 'none';
  1938. html.appendChild(iframe);
  1939. // https://github.com/zloirock/core-js/issues/475
  1940. iframe.src = String(JS);
  1941. iframeDocument = iframe.contentWindow.document;
  1942. iframeDocument.open();
  1943. iframeDocument.write(scriptTag('document.F=Object'));
  1944. iframeDocument.close();
  1945. return iframeDocument.F;
  1946. };
  1947. // Check for document.domain and active x support
  1948. // No need to use active x approach when document.domain is not set
  1949. // see https://github.com/es-shims/es5-shim/issues/150
  1950. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1951. // avoid IE GC bug
  1952. var activeXDocument;
  1953. var NullProtoObject = function () {
  1954. try {
  1955. activeXDocument = new ActiveXObject('htmlfile');
  1956. } catch (error) { /* ignore */ }
  1957. NullProtoObject = typeof document != 'undefined'
  1958. ? document.domain && activeXDocument
  1959. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1960. : NullProtoObjectViaIFrame()
  1961. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1962. var length = enumBugKeys.length;
  1963. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1964. return NullProtoObject();
  1965. };
  1966. hiddenKeys[IE_PROTO] = true;
  1967. // `Object.create` method
  1968. // https://tc39.es/ecma262/#sec-object.create
  1969. // eslint-disable-next-line es/no-object-create -- safe
  1970. objectCreate = Object.create || function create(O, Properties) {
  1971. var result;
  1972. if (O !== null) {
  1973. EmptyConstructor[PROTOTYPE] = anObject(O);
  1974. result = new EmptyConstructor();
  1975. EmptyConstructor[PROTOTYPE] = null;
  1976. // add "__proto__" for Object.getPrototypeOf polyfill
  1977. result[IE_PROTO] = O;
  1978. } else result = NullProtoObject();
  1979. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1980. };
  1981. return objectCreate;
  1982. }
  1983. var addToUnscopables;
  1984. var hasRequiredAddToUnscopables;
  1985. function requireAddToUnscopables () {
  1986. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1987. hasRequiredAddToUnscopables = 1;
  1988. var wellKnownSymbol = requireWellKnownSymbol();
  1989. var create = requireObjectCreate();
  1990. var defineProperty = requireObjectDefineProperty().f;
  1991. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1992. var ArrayPrototype = Array.prototype;
  1993. // Array.prototype[@@unscopables]
  1994. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1995. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1996. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1997. configurable: true,
  1998. value: create(null)
  1999. });
  2000. }
  2001. // add a key to Array.prototype[@@unscopables]
  2002. addToUnscopables = function (key) {
  2003. ArrayPrototype[UNSCOPABLES][key] = true;
  2004. };
  2005. return addToUnscopables;
  2006. }
  2007. var hasRequiredEs_array_find;
  2008. function requireEs_array_find () {
  2009. if (hasRequiredEs_array_find) return es_array_find;
  2010. hasRequiredEs_array_find = 1;
  2011. var $ = require_export();
  2012. var $find = requireArrayIteration().find;
  2013. var addToUnscopables = requireAddToUnscopables();
  2014. var FIND = 'find';
  2015. var SKIPS_HOLES = true;
  2016. // Shouldn't skip holes
  2017. // eslint-disable-next-line es/no-array-prototype-find -- testing
  2018. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  2019. // `Array.prototype.find` method
  2020. // https://tc39.es/ecma262/#sec-array.prototype.find
  2021. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  2022. find: function find(callbackfn /* , that = undefined */) {
  2023. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2024. }
  2025. });
  2026. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2027. addToUnscopables(FIND);
  2028. return es_array_find;
  2029. }
  2030. requireEs_array_find();
  2031. var es_array_includes = {};
  2032. var hasRequiredEs_array_includes;
  2033. function requireEs_array_includes () {
  2034. if (hasRequiredEs_array_includes) return es_array_includes;
  2035. hasRequiredEs_array_includes = 1;
  2036. var $ = require_export();
  2037. var $includes = requireArrayIncludes().includes;
  2038. var fails = requireFails();
  2039. var addToUnscopables = requireAddToUnscopables();
  2040. // FF99+ bug
  2041. var BROKEN_ON_SPARSE = fails(function () {
  2042. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  2043. return !Array(1).includes();
  2044. });
  2045. // `Array.prototype.includes` method
  2046. // https://tc39.es/ecma262/#sec-array.prototype.includes
  2047. $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  2048. includes: function includes(el /* , fromIndex = 0 */) {
  2049. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  2050. }
  2051. });
  2052. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2053. addToUnscopables('includes');
  2054. return es_array_includes;
  2055. }
  2056. requireEs_array_includes();
  2057. var es_array_join = {};
  2058. var arrayMethodIsStrict;
  2059. var hasRequiredArrayMethodIsStrict;
  2060. function requireArrayMethodIsStrict () {
  2061. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  2062. hasRequiredArrayMethodIsStrict = 1;
  2063. var fails = requireFails();
  2064. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  2065. var method = [][METHOD_NAME];
  2066. return !!method && fails(function () {
  2067. // eslint-disable-next-line no-useless-call -- required for testing
  2068. method.call(null, argument || function () { return 1; }, 1);
  2069. });
  2070. };
  2071. return arrayMethodIsStrict;
  2072. }
  2073. var hasRequiredEs_array_join;
  2074. function requireEs_array_join () {
  2075. if (hasRequiredEs_array_join) return es_array_join;
  2076. hasRequiredEs_array_join = 1;
  2077. var $ = require_export();
  2078. var uncurryThis = requireFunctionUncurryThis();
  2079. var IndexedObject = requireIndexedObject();
  2080. var toIndexedObject = requireToIndexedObject();
  2081. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2082. var nativeJoin = uncurryThis([].join);
  2083. var ES3_STRINGS = IndexedObject !== Object;
  2084. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  2085. // `Array.prototype.join` method
  2086. // https://tc39.es/ecma262/#sec-array.prototype.join
  2087. $({ target: 'Array', proto: true, forced: FORCED }, {
  2088. join: function join(separator) {
  2089. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  2090. }
  2091. });
  2092. return es_array_join;
  2093. }
  2094. requireEs_array_join();
  2095. var es_array_map = {};
  2096. var hasRequiredEs_array_map;
  2097. function requireEs_array_map () {
  2098. if (hasRequiredEs_array_map) return es_array_map;
  2099. hasRequiredEs_array_map = 1;
  2100. var $ = require_export();
  2101. var $map = requireArrayIteration().map;
  2102. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  2103. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
  2104. // `Array.prototype.map` method
  2105. // https://tc39.es/ecma262/#sec-array.prototype.map
  2106. // with adding support of @@species
  2107. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  2108. map: function map(callbackfn /* , thisArg */) {
  2109. return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2110. }
  2111. });
  2112. return es_array_map;
  2113. }
  2114. requireEs_array_map();
  2115. var es_date_toJson = {};
  2116. var hasRequiredEs_date_toJson;
  2117. function requireEs_date_toJson () {
  2118. if (hasRequiredEs_date_toJson) return es_date_toJson;
  2119. hasRequiredEs_date_toJson = 1;
  2120. var $ = require_export();
  2121. var fails = requireFails();
  2122. var toObject = requireToObject();
  2123. var toPrimitive = requireToPrimitive();
  2124. var FORCED = fails(function () {
  2125. return new Date(NaN).toJSON() !== null
  2126. || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
  2127. });
  2128. // `Date.prototype.toJSON` method
  2129. // https://tc39.es/ecma262/#sec-date.prototype.tojson
  2130. $({ target: 'Date', proto: true, arity: 1, forced: FORCED }, {
  2131. // eslint-disable-next-line no-unused-vars -- required for `.length`
  2132. toJSON: function toJSON(key) {
  2133. var O = toObject(this);
  2134. var pv = toPrimitive(O, 'number');
  2135. return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
  2136. }
  2137. });
  2138. return es_date_toJson;
  2139. }
  2140. requireEs_date_toJson();
  2141. var es_object_assign = {};
  2142. var objectAssign;
  2143. var hasRequiredObjectAssign;
  2144. function requireObjectAssign () {
  2145. if (hasRequiredObjectAssign) return objectAssign;
  2146. hasRequiredObjectAssign = 1;
  2147. var DESCRIPTORS = requireDescriptors();
  2148. var uncurryThis = requireFunctionUncurryThis();
  2149. var call = requireFunctionCall();
  2150. var fails = requireFails();
  2151. var objectKeys = requireObjectKeys();
  2152. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  2153. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  2154. var toObject = requireToObject();
  2155. var IndexedObject = requireIndexedObject();
  2156. // eslint-disable-next-line es/no-object-assign -- safe
  2157. var $assign = Object.assign;
  2158. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  2159. var defineProperty = Object.defineProperty;
  2160. var concat = uncurryThis([].concat);
  2161. // `Object.assign` method
  2162. // https://tc39.es/ecma262/#sec-object.assign
  2163. objectAssign = !$assign || fails(function () {
  2164. // should have correct order of operations (Edge bug)
  2165. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  2166. enumerable: true,
  2167. get: function () {
  2168. defineProperty(this, 'b', {
  2169. value: 3,
  2170. enumerable: false
  2171. });
  2172. }
  2173. }), { b: 2 })).b !== 1) return true;
  2174. // should work with symbols and should have deterministic property order (V8 bug)
  2175. var A = {};
  2176. var B = {};
  2177. // eslint-disable-next-line es/no-symbol -- safe
  2178. var symbol = Symbol('assign detection');
  2179. var alphabet = 'abcdefghijklmnopqrst';
  2180. A[symbol] = 7;
  2181. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  2182. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  2183. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  2184. var T = toObject(target);
  2185. var argumentsLength = arguments.length;
  2186. var index = 1;
  2187. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  2188. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  2189. while (argumentsLength > index) {
  2190. var S = IndexedObject(arguments[index++]);
  2191. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  2192. var length = keys.length;
  2193. var j = 0;
  2194. var key;
  2195. while (length > j) {
  2196. key = keys[j++];
  2197. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  2198. }
  2199. } return T;
  2200. } : $assign;
  2201. return objectAssign;
  2202. }
  2203. var hasRequiredEs_object_assign;
  2204. function requireEs_object_assign () {
  2205. if (hasRequiredEs_object_assign) return es_object_assign;
  2206. hasRequiredEs_object_assign = 1;
  2207. var $ = require_export();
  2208. var assign = requireObjectAssign();
  2209. // `Object.assign` method
  2210. // https://tc39.es/ecma262/#sec-object.assign
  2211. // eslint-disable-next-line es/no-object-assign -- required for testing
  2212. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  2213. assign: assign
  2214. });
  2215. return es_object_assign;
  2216. }
  2217. requireEs_object_assign();
  2218. var es_object_entries = {};
  2219. var correctPrototypeGetter;
  2220. var hasRequiredCorrectPrototypeGetter;
  2221. function requireCorrectPrototypeGetter () {
  2222. if (hasRequiredCorrectPrototypeGetter) return correctPrototypeGetter;
  2223. hasRequiredCorrectPrototypeGetter = 1;
  2224. var fails = requireFails();
  2225. correctPrototypeGetter = !fails(function () {
  2226. function F() { /* empty */ }
  2227. F.prototype.constructor = null;
  2228. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  2229. return Object.getPrototypeOf(new F()) !== F.prototype;
  2230. });
  2231. return correctPrototypeGetter;
  2232. }
  2233. var objectGetPrototypeOf;
  2234. var hasRequiredObjectGetPrototypeOf;
  2235. function requireObjectGetPrototypeOf () {
  2236. if (hasRequiredObjectGetPrototypeOf) return objectGetPrototypeOf;
  2237. hasRequiredObjectGetPrototypeOf = 1;
  2238. var hasOwn = requireHasOwnProperty();
  2239. var isCallable = requireIsCallable();
  2240. var toObject = requireToObject();
  2241. var sharedKey = requireSharedKey();
  2242. var CORRECT_PROTOTYPE_GETTER = requireCorrectPrototypeGetter();
  2243. var IE_PROTO = sharedKey('IE_PROTO');
  2244. var $Object = Object;
  2245. var ObjectPrototype = $Object.prototype;
  2246. // `Object.getPrototypeOf` method
  2247. // https://tc39.es/ecma262/#sec-object.getprototypeof
  2248. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  2249. objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  2250. var object = toObject(O);
  2251. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  2252. var constructor = object.constructor;
  2253. if (isCallable(constructor) && object instanceof constructor) {
  2254. return constructor.prototype;
  2255. } return object instanceof $Object ? ObjectPrototype : null;
  2256. };
  2257. return objectGetPrototypeOf;
  2258. }
  2259. var objectToArray;
  2260. var hasRequiredObjectToArray;
  2261. function requireObjectToArray () {
  2262. if (hasRequiredObjectToArray) return objectToArray;
  2263. hasRequiredObjectToArray = 1;
  2264. var DESCRIPTORS = requireDescriptors();
  2265. var fails = requireFails();
  2266. var uncurryThis = requireFunctionUncurryThis();
  2267. var objectGetPrototypeOf = requireObjectGetPrototypeOf();
  2268. var objectKeys = requireObjectKeys();
  2269. var toIndexedObject = requireToIndexedObject();
  2270. var $propertyIsEnumerable = requireObjectPropertyIsEnumerable().f;
  2271. var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
  2272. var push = uncurryThis([].push);
  2273. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  2274. // of `null` prototype objects
  2275. var IE_BUG = DESCRIPTORS && fails(function () {
  2276. // eslint-disable-next-line es/no-object-create -- safe
  2277. var O = Object.create(null);
  2278. O[2] = 2;
  2279. return !propertyIsEnumerable(O, 2);
  2280. });
  2281. // `Object.{ entries, values }` methods implementation
  2282. var createMethod = function (TO_ENTRIES) {
  2283. return function (it) {
  2284. var O = toIndexedObject(it);
  2285. var keys = objectKeys(O);
  2286. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  2287. var length = keys.length;
  2288. var i = 0;
  2289. var result = [];
  2290. var key;
  2291. while (length > i) {
  2292. key = keys[i++];
  2293. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  2294. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  2295. }
  2296. }
  2297. return result;
  2298. };
  2299. };
  2300. objectToArray = {
  2301. // `Object.entries` method
  2302. // https://tc39.es/ecma262/#sec-object.entries
  2303. entries: createMethod(true),
  2304. // `Object.values` method
  2305. // https://tc39.es/ecma262/#sec-object.values
  2306. values: createMethod(false)
  2307. };
  2308. return objectToArray;
  2309. }
  2310. var hasRequiredEs_object_entries;
  2311. function requireEs_object_entries () {
  2312. if (hasRequiredEs_object_entries) return es_object_entries;
  2313. hasRequiredEs_object_entries = 1;
  2314. var $ = require_export();
  2315. var $entries = requireObjectToArray().entries;
  2316. // `Object.entries` method
  2317. // https://tc39.es/ecma262/#sec-object.entries
  2318. $({ target: 'Object', stat: true }, {
  2319. entries: function entries(O) {
  2320. return $entries(O);
  2321. }
  2322. });
  2323. return es_object_entries;
  2324. }
  2325. requireEs_object_entries();
  2326. var es_object_keys = {};
  2327. var hasRequiredEs_object_keys;
  2328. function requireEs_object_keys () {
  2329. if (hasRequiredEs_object_keys) return es_object_keys;
  2330. hasRequiredEs_object_keys = 1;
  2331. var $ = require_export();
  2332. var toObject = requireToObject();
  2333. var nativeKeys = requireObjectKeys();
  2334. var fails = requireFails();
  2335. var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
  2336. // `Object.keys` method
  2337. // https://tc39.es/ecma262/#sec-object.keys
  2338. $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
  2339. keys: function keys(it) {
  2340. return nativeKeys(toObject(it));
  2341. }
  2342. });
  2343. return es_object_keys;
  2344. }
  2345. requireEs_object_keys();
  2346. var es_object_toString = {};
  2347. var objectToString;
  2348. var hasRequiredObjectToString;
  2349. function requireObjectToString () {
  2350. if (hasRequiredObjectToString) return objectToString;
  2351. hasRequiredObjectToString = 1;
  2352. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2353. var classof = requireClassof();
  2354. // `Object.prototype.toString` method implementation
  2355. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2356. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  2357. return '[object ' + classof(this) + ']';
  2358. };
  2359. return objectToString;
  2360. }
  2361. var hasRequiredEs_object_toString;
  2362. function requireEs_object_toString () {
  2363. if (hasRequiredEs_object_toString) return es_object_toString;
  2364. hasRequiredEs_object_toString = 1;
  2365. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2366. var defineBuiltIn = requireDefineBuiltIn();
  2367. var toString = requireObjectToString();
  2368. // `Object.prototype.toString` method
  2369. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2370. if (!TO_STRING_TAG_SUPPORT) {
  2371. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2372. }
  2373. return es_object_toString;
  2374. }
  2375. requireEs_object_toString();
  2376. var es_regexp_exec = {};
  2377. var toString;
  2378. var hasRequiredToString;
  2379. function requireToString () {
  2380. if (hasRequiredToString) return toString;
  2381. hasRequiredToString = 1;
  2382. var classof = requireClassof();
  2383. var $String = String;
  2384. toString = function (argument) {
  2385. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  2386. return $String(argument);
  2387. };
  2388. return toString;
  2389. }
  2390. var regexpFlags;
  2391. var hasRequiredRegexpFlags;
  2392. function requireRegexpFlags () {
  2393. if (hasRequiredRegexpFlags) return regexpFlags;
  2394. hasRequiredRegexpFlags = 1;
  2395. var anObject = requireAnObject();
  2396. // `RegExp.prototype.flags` getter implementation
  2397. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  2398. regexpFlags = function () {
  2399. var that = anObject(this);
  2400. var result = '';
  2401. if (that.hasIndices) result += 'd';
  2402. if (that.global) result += 'g';
  2403. if (that.ignoreCase) result += 'i';
  2404. if (that.multiline) result += 'm';
  2405. if (that.dotAll) result += 's';
  2406. if (that.unicode) result += 'u';
  2407. if (that.unicodeSets) result += 'v';
  2408. if (that.sticky) result += 'y';
  2409. return result;
  2410. };
  2411. return regexpFlags;
  2412. }
  2413. var regexpStickyHelpers;
  2414. var hasRequiredRegexpStickyHelpers;
  2415. function requireRegexpStickyHelpers () {
  2416. if (hasRequiredRegexpStickyHelpers) return regexpStickyHelpers;
  2417. hasRequiredRegexpStickyHelpers = 1;
  2418. var fails = requireFails();
  2419. var globalThis = requireGlobalThis();
  2420. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  2421. var $RegExp = globalThis.RegExp;
  2422. var UNSUPPORTED_Y = fails(function () {
  2423. var re = $RegExp('a', 'y');
  2424. re.lastIndex = 2;
  2425. return re.exec('abcd') !== null;
  2426. });
  2427. // UC Browser bug
  2428. // https://github.com/zloirock/core-js/issues/1008
  2429. var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
  2430. return !$RegExp('a', 'y').sticky;
  2431. });
  2432. var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
  2433. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  2434. var re = $RegExp('^r', 'gy');
  2435. re.lastIndex = 2;
  2436. return re.exec('str') !== null;
  2437. });
  2438. regexpStickyHelpers = {
  2439. BROKEN_CARET: BROKEN_CARET,
  2440. MISSED_STICKY: MISSED_STICKY,
  2441. UNSUPPORTED_Y: UNSUPPORTED_Y
  2442. };
  2443. return regexpStickyHelpers;
  2444. }
  2445. var regexpUnsupportedDotAll;
  2446. var hasRequiredRegexpUnsupportedDotAll;
  2447. function requireRegexpUnsupportedDotAll () {
  2448. if (hasRequiredRegexpUnsupportedDotAll) return regexpUnsupportedDotAll;
  2449. hasRequiredRegexpUnsupportedDotAll = 1;
  2450. var fails = requireFails();
  2451. var globalThis = requireGlobalThis();
  2452. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  2453. var $RegExp = globalThis.RegExp;
  2454. regexpUnsupportedDotAll = fails(function () {
  2455. var re = $RegExp('.', 's');
  2456. return !(re.dotAll && re.test('\n') && re.flags === 's');
  2457. });
  2458. return regexpUnsupportedDotAll;
  2459. }
  2460. var regexpUnsupportedNcg;
  2461. var hasRequiredRegexpUnsupportedNcg;
  2462. function requireRegexpUnsupportedNcg () {
  2463. if (hasRequiredRegexpUnsupportedNcg) return regexpUnsupportedNcg;
  2464. hasRequiredRegexpUnsupportedNcg = 1;
  2465. var fails = requireFails();
  2466. var globalThis = requireGlobalThis();
  2467. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  2468. var $RegExp = globalThis.RegExp;
  2469. regexpUnsupportedNcg = fails(function () {
  2470. var re = $RegExp('(?<a>b)', 'g');
  2471. return re.exec('b').groups.a !== 'b' ||
  2472. 'b'.replace(re, '$<a>c') !== 'bc';
  2473. });
  2474. return regexpUnsupportedNcg;
  2475. }
  2476. var regexpExec;
  2477. var hasRequiredRegexpExec;
  2478. function requireRegexpExec () {
  2479. if (hasRequiredRegexpExec) return regexpExec;
  2480. hasRequiredRegexpExec = 1;
  2481. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  2482. /* eslint-disable regexp/no-useless-quantifier -- testing */
  2483. var call = requireFunctionCall();
  2484. var uncurryThis = requireFunctionUncurryThis();
  2485. var toString = requireToString();
  2486. var regexpFlags = requireRegexpFlags();
  2487. var stickyHelpers = requireRegexpStickyHelpers();
  2488. var shared = requireShared();
  2489. var create = requireObjectCreate();
  2490. var getInternalState = requireInternalState().get;
  2491. var UNSUPPORTED_DOT_ALL = requireRegexpUnsupportedDotAll();
  2492. var UNSUPPORTED_NCG = requireRegexpUnsupportedNcg();
  2493. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  2494. var nativeExec = RegExp.prototype.exec;
  2495. var patchedExec = nativeExec;
  2496. var charAt = uncurryThis(''.charAt);
  2497. var indexOf = uncurryThis(''.indexOf);
  2498. var replace = uncurryThis(''.replace);
  2499. var stringSlice = uncurryThis(''.slice);
  2500. var UPDATES_LAST_INDEX_WRONG = (function () {
  2501. var re1 = /a/;
  2502. var re2 = /b*/g;
  2503. call(nativeExec, re1, 'a');
  2504. call(nativeExec, re2, 'a');
  2505. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  2506. })();
  2507. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  2508. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  2509. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  2510. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  2511. if (PATCH) {
  2512. patchedExec = function exec(string) {
  2513. var re = this;
  2514. var state = getInternalState(re);
  2515. var str = toString(string);
  2516. var raw = state.raw;
  2517. var result, reCopy, lastIndex, match, i, object, group;
  2518. if (raw) {
  2519. raw.lastIndex = re.lastIndex;
  2520. result = call(patchedExec, raw, str);
  2521. re.lastIndex = raw.lastIndex;
  2522. return result;
  2523. }
  2524. var groups = state.groups;
  2525. var sticky = UNSUPPORTED_Y && re.sticky;
  2526. var flags = call(regexpFlags, re);
  2527. var source = re.source;
  2528. var charsAdded = 0;
  2529. var strCopy = str;
  2530. if (sticky) {
  2531. flags = replace(flags, 'y', '');
  2532. if (indexOf(flags, 'g') === -1) {
  2533. flags += 'g';
  2534. }
  2535. strCopy = stringSlice(str, re.lastIndex);
  2536. // Support anchored sticky behavior.
  2537. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  2538. source = '(?: ' + source + ')';
  2539. strCopy = ' ' + strCopy;
  2540. charsAdded++;
  2541. }
  2542. // ^(? + rx + ) is needed, in combination with some str slicing, to
  2543. // simulate the 'y' flag.
  2544. reCopy = new RegExp('^(?:' + source + ')', flags);
  2545. }
  2546. if (NPCG_INCLUDED) {
  2547. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  2548. }
  2549. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  2550. match = call(nativeExec, sticky ? reCopy : re, strCopy);
  2551. if (sticky) {
  2552. if (match) {
  2553. match.input = stringSlice(match.input, charsAdded);
  2554. match[0] = stringSlice(match[0], charsAdded);
  2555. match.index = re.lastIndex;
  2556. re.lastIndex += match[0].length;
  2557. } else re.lastIndex = 0;
  2558. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  2559. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  2560. }
  2561. if (NPCG_INCLUDED && match && match.length > 1) {
  2562. // Fix browsers whose `exec` methods don't consistently return `undefined`
  2563. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  2564. call(nativeReplace, match[0], reCopy, function () {
  2565. for (i = 1; i < arguments.length - 2; i++) {
  2566. if (arguments[i] === undefined) match[i] = undefined;
  2567. }
  2568. });
  2569. }
  2570. if (match && groups) {
  2571. match.groups = object = create(null);
  2572. for (i = 0; i < groups.length; i++) {
  2573. group = groups[i];
  2574. object[group[0]] = match[group[1]];
  2575. }
  2576. }
  2577. return match;
  2578. };
  2579. }
  2580. regexpExec = patchedExec;
  2581. return regexpExec;
  2582. }
  2583. var hasRequiredEs_regexp_exec;
  2584. function requireEs_regexp_exec () {
  2585. if (hasRequiredEs_regexp_exec) return es_regexp_exec;
  2586. hasRequiredEs_regexp_exec = 1;
  2587. var $ = require_export();
  2588. var exec = requireRegexpExec();
  2589. // `RegExp.prototype.exec` method
  2590. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  2591. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  2592. exec: exec
  2593. });
  2594. return es_regexp_exec;
  2595. }
  2596. requireEs_regexp_exec();
  2597. var es_regexp_toString = {};
  2598. var regexpGetFlags;
  2599. var hasRequiredRegexpGetFlags;
  2600. function requireRegexpGetFlags () {
  2601. if (hasRequiredRegexpGetFlags) return regexpGetFlags;
  2602. hasRequiredRegexpGetFlags = 1;
  2603. var call = requireFunctionCall();
  2604. var hasOwn = requireHasOwnProperty();
  2605. var isPrototypeOf = requireObjectIsPrototypeOf();
  2606. var regExpFlags = requireRegexpFlags();
  2607. var RegExpPrototype = RegExp.prototype;
  2608. regexpGetFlags = function (R) {
  2609. var flags = R.flags;
  2610. return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
  2611. ? call(regExpFlags, R) : flags;
  2612. };
  2613. return regexpGetFlags;
  2614. }
  2615. var hasRequiredEs_regexp_toString;
  2616. function requireEs_regexp_toString () {
  2617. if (hasRequiredEs_regexp_toString) return es_regexp_toString;
  2618. hasRequiredEs_regexp_toString = 1;
  2619. var PROPER_FUNCTION_NAME = requireFunctionName().PROPER;
  2620. var defineBuiltIn = requireDefineBuiltIn();
  2621. var anObject = requireAnObject();
  2622. var $toString = requireToString();
  2623. var fails = requireFails();
  2624. var getRegExpFlags = requireRegexpGetFlags();
  2625. var TO_STRING = 'toString';
  2626. var RegExpPrototype = RegExp.prototype;
  2627. var nativeToString = RegExpPrototype[TO_STRING];
  2628. var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
  2629. // FF44- RegExp#toString has a wrong name
  2630. var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
  2631. // `RegExp.prototype.toString` method
  2632. // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
  2633. if (NOT_GENERIC || INCORRECT_NAME) {
  2634. defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
  2635. var R = anObject(this);
  2636. var pattern = $toString(R.source);
  2637. var flags = $toString(getRegExpFlags(R));
  2638. return '/' + pattern + '/' + flags;
  2639. }, { unsafe: true });
  2640. }
  2641. return es_regexp_toString;
  2642. }
  2643. requireEs_regexp_toString();
  2644. var es_string_includes = {};
  2645. var isRegexp;
  2646. var hasRequiredIsRegexp;
  2647. function requireIsRegexp () {
  2648. if (hasRequiredIsRegexp) return isRegexp;
  2649. hasRequiredIsRegexp = 1;
  2650. var isObject = requireIsObject();
  2651. var classof = requireClassofRaw();
  2652. var wellKnownSymbol = requireWellKnownSymbol();
  2653. var MATCH = wellKnownSymbol('match');
  2654. // `IsRegExp` abstract operation
  2655. // https://tc39.es/ecma262/#sec-isregexp
  2656. isRegexp = function (it) {
  2657. var isRegExp;
  2658. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
  2659. };
  2660. return isRegexp;
  2661. }
  2662. var notARegexp;
  2663. var hasRequiredNotARegexp;
  2664. function requireNotARegexp () {
  2665. if (hasRequiredNotARegexp) return notARegexp;
  2666. hasRequiredNotARegexp = 1;
  2667. var isRegExp = requireIsRegexp();
  2668. var $TypeError = TypeError;
  2669. notARegexp = function (it) {
  2670. if (isRegExp(it)) {
  2671. throw new $TypeError("The method doesn't accept regular expressions");
  2672. } return it;
  2673. };
  2674. return notARegexp;
  2675. }
  2676. var correctIsRegexpLogic;
  2677. var hasRequiredCorrectIsRegexpLogic;
  2678. function requireCorrectIsRegexpLogic () {
  2679. if (hasRequiredCorrectIsRegexpLogic) return correctIsRegexpLogic;
  2680. hasRequiredCorrectIsRegexpLogic = 1;
  2681. var wellKnownSymbol = requireWellKnownSymbol();
  2682. var MATCH = wellKnownSymbol('match');
  2683. correctIsRegexpLogic = function (METHOD_NAME) {
  2684. var regexp = /./;
  2685. try {
  2686. '/./'[METHOD_NAME](regexp);
  2687. } catch (error1) {
  2688. try {
  2689. regexp[MATCH] = false;
  2690. return '/./'[METHOD_NAME](regexp);
  2691. } catch (error2) { /* empty */ }
  2692. } return false;
  2693. };
  2694. return correctIsRegexpLogic;
  2695. }
  2696. var hasRequiredEs_string_includes;
  2697. function requireEs_string_includes () {
  2698. if (hasRequiredEs_string_includes) return es_string_includes;
  2699. hasRequiredEs_string_includes = 1;
  2700. var $ = require_export();
  2701. var uncurryThis = requireFunctionUncurryThis();
  2702. var notARegExp = requireNotARegexp();
  2703. var requireObjectCoercible = requireRequireObjectCoercible();
  2704. var toString = requireToString();
  2705. var correctIsRegExpLogic = requireCorrectIsRegexpLogic();
  2706. var stringIndexOf = uncurryThis(''.indexOf);
  2707. // `String.prototype.includes` method
  2708. // https://tc39.es/ecma262/#sec-string.prototype.includes
  2709. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  2710. includes: function includes(searchString /* , position = 0 */) {
  2711. return !!~stringIndexOf(
  2712. toString(requireObjectCoercible(this)),
  2713. toString(notARegExp(searchString)),
  2714. arguments.length > 1 ? arguments[1] : undefined
  2715. );
  2716. }
  2717. });
  2718. return es_string_includes;
  2719. }
  2720. requireEs_string_includes();
  2721. var es_string_replace = {};
  2722. var functionApply;
  2723. var hasRequiredFunctionApply;
  2724. function requireFunctionApply () {
  2725. if (hasRequiredFunctionApply) return functionApply;
  2726. hasRequiredFunctionApply = 1;
  2727. var NATIVE_BIND = requireFunctionBindNative();
  2728. var FunctionPrototype = Function.prototype;
  2729. var apply = FunctionPrototype.apply;
  2730. var call = FunctionPrototype.call;
  2731. // eslint-disable-next-line es/no-reflect -- safe
  2732. functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
  2733. return call.apply(apply, arguments);
  2734. });
  2735. return functionApply;
  2736. }
  2737. var fixRegexpWellKnownSymbolLogic;
  2738. var hasRequiredFixRegexpWellKnownSymbolLogic;
  2739. function requireFixRegexpWellKnownSymbolLogic () {
  2740. if (hasRequiredFixRegexpWellKnownSymbolLogic) return fixRegexpWellKnownSymbolLogic;
  2741. hasRequiredFixRegexpWellKnownSymbolLogic = 1;
  2742. // TODO: Remove from `core-js@4` since it's moved to entry points
  2743. requireEs_regexp_exec();
  2744. var call = requireFunctionCall();
  2745. var defineBuiltIn = requireDefineBuiltIn();
  2746. var regexpExec = requireRegexpExec();
  2747. var fails = requireFails();
  2748. var wellKnownSymbol = requireWellKnownSymbol();
  2749. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  2750. var SPECIES = wellKnownSymbol('species');
  2751. var RegExpPrototype = RegExp.prototype;
  2752. fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  2753. var SYMBOL = wellKnownSymbol(KEY);
  2754. var DELEGATES_TO_SYMBOL = !fails(function () {
  2755. // String methods call symbol-named RegExp methods
  2756. var O = {};
  2757. O[SYMBOL] = function () { return 7; };
  2758. return ''[KEY](O) !== 7;
  2759. });
  2760. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  2761. // Symbol-named RegExp methods call .exec
  2762. var execCalled = false;
  2763. var re = /a/;
  2764. if (KEY === 'split') {
  2765. // We can't use real regex here since it causes deoptimization
  2766. // and serious performance degradation in V8
  2767. // https://github.com/zloirock/core-js/issues/306
  2768. re = {};
  2769. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  2770. // a new one. We need to return the patched regex when creating the new one.
  2771. re.constructor = {};
  2772. re.constructor[SPECIES] = function () { return re; };
  2773. re.flags = '';
  2774. re[SYMBOL] = /./[SYMBOL];
  2775. }
  2776. re.exec = function () {
  2777. execCalled = true;
  2778. return null;
  2779. };
  2780. re[SYMBOL]('');
  2781. return !execCalled;
  2782. });
  2783. if (
  2784. !DELEGATES_TO_SYMBOL ||
  2785. !DELEGATES_TO_EXEC ||
  2786. FORCED
  2787. ) {
  2788. var nativeRegExpMethod = /./[SYMBOL];
  2789. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  2790. var $exec = regexp.exec;
  2791. if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
  2792. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2793. // The native String method already delegates to @@method (this
  2794. // polyfilled function), leasing to infinite recursion.
  2795. // We avoid it by directly calling the native @@method method.
  2796. return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
  2797. }
  2798. return { done: true, value: call(nativeMethod, str, regexp, arg2) };
  2799. }
  2800. return { done: false };
  2801. });
  2802. defineBuiltIn(String.prototype, KEY, methods[0]);
  2803. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  2804. }
  2805. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  2806. };
  2807. return fixRegexpWellKnownSymbolLogic;
  2808. }
  2809. var stringMultibyte;
  2810. var hasRequiredStringMultibyte;
  2811. function requireStringMultibyte () {
  2812. if (hasRequiredStringMultibyte) return stringMultibyte;
  2813. hasRequiredStringMultibyte = 1;
  2814. var uncurryThis = requireFunctionUncurryThis();
  2815. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  2816. var toString = requireToString();
  2817. var requireObjectCoercible = requireRequireObjectCoercible();
  2818. var charAt = uncurryThis(''.charAt);
  2819. var charCodeAt = uncurryThis(''.charCodeAt);
  2820. var stringSlice = uncurryThis(''.slice);
  2821. var createMethod = function (CONVERT_TO_STRING) {
  2822. return function ($this, pos) {
  2823. var S = toString(requireObjectCoercible($this));
  2824. var position = toIntegerOrInfinity(pos);
  2825. var size = S.length;
  2826. var first, second;
  2827. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  2828. first = charCodeAt(S, position);
  2829. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  2830. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  2831. ? CONVERT_TO_STRING
  2832. ? charAt(S, position)
  2833. : first
  2834. : CONVERT_TO_STRING
  2835. ? stringSlice(S, position, position + 2)
  2836. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  2837. };
  2838. };
  2839. stringMultibyte = {
  2840. // `String.prototype.codePointAt` method
  2841. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  2842. codeAt: createMethod(false),
  2843. // `String.prototype.at` method
  2844. // https://github.com/mathiasbynens/String.prototype.at
  2845. charAt: createMethod(true)
  2846. };
  2847. return stringMultibyte;
  2848. }
  2849. var advanceStringIndex;
  2850. var hasRequiredAdvanceStringIndex;
  2851. function requireAdvanceStringIndex () {
  2852. if (hasRequiredAdvanceStringIndex) return advanceStringIndex;
  2853. hasRequiredAdvanceStringIndex = 1;
  2854. var charAt = requireStringMultibyte().charAt;
  2855. // `AdvanceStringIndex` abstract operation
  2856. // https://tc39.es/ecma262/#sec-advancestringindex
  2857. advanceStringIndex = function (S, index, unicode) {
  2858. return index + (unicode ? charAt(S, index).length : 1);
  2859. };
  2860. return advanceStringIndex;
  2861. }
  2862. var getSubstitution;
  2863. var hasRequiredGetSubstitution;
  2864. function requireGetSubstitution () {
  2865. if (hasRequiredGetSubstitution) return getSubstitution;
  2866. hasRequiredGetSubstitution = 1;
  2867. var uncurryThis = requireFunctionUncurryThis();
  2868. var toObject = requireToObject();
  2869. var floor = Math.floor;
  2870. var charAt = uncurryThis(''.charAt);
  2871. var replace = uncurryThis(''.replace);
  2872. var stringSlice = uncurryThis(''.slice);
  2873. // eslint-disable-next-line redos/no-vulnerable -- safe
  2874. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  2875. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  2876. // `GetSubstitution` abstract operation
  2877. // https://tc39.es/ecma262/#sec-getsubstitution
  2878. getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
  2879. var tailPos = position + matched.length;
  2880. var m = captures.length;
  2881. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  2882. if (namedCaptures !== undefined) {
  2883. namedCaptures = toObject(namedCaptures);
  2884. symbols = SUBSTITUTION_SYMBOLS;
  2885. }
  2886. return replace(replacement, symbols, function (match, ch) {
  2887. var capture;
  2888. switch (charAt(ch, 0)) {
  2889. case '$': return '$';
  2890. case '&': return matched;
  2891. case '`': return stringSlice(str, 0, position);
  2892. case "'": return stringSlice(str, tailPos);
  2893. case '<':
  2894. capture = namedCaptures[stringSlice(ch, 1, -1)];
  2895. break;
  2896. default: // \d\d?
  2897. var n = +ch;
  2898. if (n === 0) return match;
  2899. if (n > m) {
  2900. var f = floor(n / 10);
  2901. if (f === 0) return match;
  2902. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  2903. return match;
  2904. }
  2905. capture = captures[n - 1];
  2906. }
  2907. return capture === undefined ? '' : capture;
  2908. });
  2909. };
  2910. return getSubstitution;
  2911. }
  2912. var regexpExecAbstract;
  2913. var hasRequiredRegexpExecAbstract;
  2914. function requireRegexpExecAbstract () {
  2915. if (hasRequiredRegexpExecAbstract) return regexpExecAbstract;
  2916. hasRequiredRegexpExecAbstract = 1;
  2917. var call = requireFunctionCall();
  2918. var anObject = requireAnObject();
  2919. var isCallable = requireIsCallable();
  2920. var classof = requireClassofRaw();
  2921. var regexpExec = requireRegexpExec();
  2922. var $TypeError = TypeError;
  2923. // `RegExpExec` abstract operation
  2924. // https://tc39.es/ecma262/#sec-regexpexec
  2925. regexpExecAbstract = function (R, S) {
  2926. var exec = R.exec;
  2927. if (isCallable(exec)) {
  2928. var result = call(exec, R, S);
  2929. if (result !== null) anObject(result);
  2930. return result;
  2931. }
  2932. if (classof(R) === 'RegExp') return call(regexpExec, R, S);
  2933. throw new $TypeError('RegExp#exec called on incompatible receiver');
  2934. };
  2935. return regexpExecAbstract;
  2936. }
  2937. var hasRequiredEs_string_replace;
  2938. function requireEs_string_replace () {
  2939. if (hasRequiredEs_string_replace) return es_string_replace;
  2940. hasRequiredEs_string_replace = 1;
  2941. var apply = requireFunctionApply();
  2942. var call = requireFunctionCall();
  2943. var uncurryThis = requireFunctionUncurryThis();
  2944. var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
  2945. var fails = requireFails();
  2946. var anObject = requireAnObject();
  2947. var isCallable = requireIsCallable();
  2948. var isNullOrUndefined = requireIsNullOrUndefined();
  2949. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  2950. var toLength = requireToLength();
  2951. var toString = requireToString();
  2952. var requireObjectCoercible = requireRequireObjectCoercible();
  2953. var advanceStringIndex = requireAdvanceStringIndex();
  2954. var getMethod = requireGetMethod();
  2955. var getSubstitution = requireGetSubstitution();
  2956. var regExpExec = requireRegexpExecAbstract();
  2957. var wellKnownSymbol = requireWellKnownSymbol();
  2958. var REPLACE = wellKnownSymbol('replace');
  2959. var max = Math.max;
  2960. var min = Math.min;
  2961. var concat = uncurryThis([].concat);
  2962. var push = uncurryThis([].push);
  2963. var stringIndexOf = uncurryThis(''.indexOf);
  2964. var stringSlice = uncurryThis(''.slice);
  2965. var maybeToString = function (it) {
  2966. return it === undefined ? it : String(it);
  2967. };
  2968. // IE <= 11 replaces $0 with the whole match, as if it was $&
  2969. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  2970. var REPLACE_KEEPS_$0 = (function () {
  2971. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  2972. return 'a'.replace(/./, '$0') === '$0';
  2973. })();
  2974. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  2975. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  2976. if (/./[REPLACE]) {
  2977. return /./[REPLACE]('a', '$0') === '';
  2978. }
  2979. return false;
  2980. })();
  2981. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  2982. var re = /./;
  2983. re.exec = function () {
  2984. var result = [];
  2985. result.groups = { a: '7' };
  2986. return result;
  2987. };
  2988. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  2989. return ''.replace(re, '$<a>') !== '7';
  2990. });
  2991. // @@replace logic
  2992. fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  2993. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  2994. return [
  2995. // `String.prototype.replace` method
  2996. // https://tc39.es/ecma262/#sec-string.prototype.replace
  2997. function replace(searchValue, replaceValue) {
  2998. var O = requireObjectCoercible(this);
  2999. var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
  3000. return replacer
  3001. ? call(replacer, searchValue, O, replaceValue)
  3002. : call(nativeReplace, toString(O), searchValue, replaceValue);
  3003. },
  3004. // `RegExp.prototype[@@replace]` method
  3005. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  3006. function (string, replaceValue) {
  3007. var rx = anObject(this);
  3008. var S = toString(string);
  3009. if (
  3010. typeof replaceValue == 'string' &&
  3011. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  3012. stringIndexOf(replaceValue, '$<') === -1
  3013. ) {
  3014. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  3015. if (res.done) return res.value;
  3016. }
  3017. var functionalReplace = isCallable(replaceValue);
  3018. if (!functionalReplace) replaceValue = toString(replaceValue);
  3019. var global = rx.global;
  3020. var fullUnicode;
  3021. if (global) {
  3022. fullUnicode = rx.unicode;
  3023. rx.lastIndex = 0;
  3024. }
  3025. var results = [];
  3026. var result;
  3027. while (true) {
  3028. result = regExpExec(rx, S);
  3029. if (result === null) break;
  3030. push(results, result);
  3031. if (!global) break;
  3032. var matchStr = toString(result[0]);
  3033. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  3034. }
  3035. var accumulatedResult = '';
  3036. var nextSourcePosition = 0;
  3037. for (var i = 0; i < results.length; i++) {
  3038. result = results[i];
  3039. var matched = toString(result[0]);
  3040. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  3041. var captures = [];
  3042. var replacement;
  3043. // NOTE: This is equivalent to
  3044. // captures = result.slice(1).map(maybeToString)
  3045. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  3046. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  3047. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  3048. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
  3049. var namedCaptures = result.groups;
  3050. if (functionalReplace) {
  3051. var replacerArgs = concat([matched], captures, position, S);
  3052. if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
  3053. replacement = toString(apply(replaceValue, undefined, replacerArgs));
  3054. } else {
  3055. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  3056. }
  3057. if (position >= nextSourcePosition) {
  3058. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  3059. nextSourcePosition = position + matched.length;
  3060. }
  3061. }
  3062. return accumulatedResult + stringSlice(S, nextSourcePosition);
  3063. }
  3064. ];
  3065. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  3066. return es_string_replace;
  3067. }
  3068. requireEs_string_replace();
  3069. var es_string_search = {};
  3070. var sameValue;
  3071. var hasRequiredSameValue;
  3072. function requireSameValue () {
  3073. if (hasRequiredSameValue) return sameValue;
  3074. hasRequiredSameValue = 1;
  3075. // `SameValue` abstract operation
  3076. // https://tc39.es/ecma262/#sec-samevalue
  3077. // eslint-disable-next-line es/no-object-is -- safe
  3078. sameValue = Object.is || function is(x, y) {
  3079. // eslint-disable-next-line no-self-compare -- NaN check
  3080. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  3081. };
  3082. return sameValue;
  3083. }
  3084. var hasRequiredEs_string_search;
  3085. function requireEs_string_search () {
  3086. if (hasRequiredEs_string_search) return es_string_search;
  3087. hasRequiredEs_string_search = 1;
  3088. var call = requireFunctionCall();
  3089. var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
  3090. var anObject = requireAnObject();
  3091. var isNullOrUndefined = requireIsNullOrUndefined();
  3092. var requireObjectCoercible = requireRequireObjectCoercible();
  3093. var sameValue = requireSameValue();
  3094. var toString = requireToString();
  3095. var getMethod = requireGetMethod();
  3096. var regExpExec = requireRegexpExecAbstract();
  3097. // @@search logic
  3098. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  3099. return [
  3100. // `String.prototype.search` method
  3101. // https://tc39.es/ecma262/#sec-string.prototype.search
  3102. function search(regexp) {
  3103. var O = requireObjectCoercible(this);
  3104. var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
  3105. return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  3106. },
  3107. // `RegExp.prototype[@@search]` method
  3108. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  3109. function (string) {
  3110. var rx = anObject(this);
  3111. var S = toString(string);
  3112. var res = maybeCallNative(nativeSearch, rx, S);
  3113. if (res.done) return res.value;
  3114. var previousLastIndex = rx.lastIndex;
  3115. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  3116. var result = regExpExec(rx, S);
  3117. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  3118. return result === null ? -1 : result.index;
  3119. }
  3120. ];
  3121. });
  3122. return es_string_search;
  3123. }
  3124. requireEs_string_search();
  3125. var web_domCollections_forEach = {};
  3126. var domIterables;
  3127. var hasRequiredDomIterables;
  3128. function requireDomIterables () {
  3129. if (hasRequiredDomIterables) return domIterables;
  3130. hasRequiredDomIterables = 1;
  3131. // iterable DOM collections
  3132. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  3133. domIterables = {
  3134. CSSRuleList: 0,
  3135. CSSStyleDeclaration: 0,
  3136. CSSValueList: 0,
  3137. ClientRectList: 0,
  3138. DOMRectList: 0,
  3139. DOMStringList: 0,
  3140. DOMTokenList: 1,
  3141. DataTransferItemList: 0,
  3142. FileList: 0,
  3143. HTMLAllCollection: 0,
  3144. HTMLCollection: 0,
  3145. HTMLFormElement: 0,
  3146. HTMLSelectElement: 0,
  3147. MediaList: 0,
  3148. MimeTypeArray: 0,
  3149. NamedNodeMap: 0,
  3150. NodeList: 1,
  3151. PaintRequestList: 0,
  3152. Plugin: 0,
  3153. PluginArray: 0,
  3154. SVGLengthList: 0,
  3155. SVGNumberList: 0,
  3156. SVGPathSegList: 0,
  3157. SVGPointList: 0,
  3158. SVGStringList: 0,
  3159. SVGTransformList: 0,
  3160. SourceBufferList: 0,
  3161. StyleSheetList: 0,
  3162. TextTrackCueList: 0,
  3163. TextTrackList: 0,
  3164. TouchList: 0
  3165. };
  3166. return domIterables;
  3167. }
  3168. var domTokenListPrototype;
  3169. var hasRequiredDomTokenListPrototype;
  3170. function requireDomTokenListPrototype () {
  3171. if (hasRequiredDomTokenListPrototype) return domTokenListPrototype;
  3172. hasRequiredDomTokenListPrototype = 1;
  3173. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  3174. var documentCreateElement = requireDocumentCreateElement();
  3175. var classList = documentCreateElement('span').classList;
  3176. var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
  3177. domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
  3178. return domTokenListPrototype;
  3179. }
  3180. var arrayForEach;
  3181. var hasRequiredArrayForEach;
  3182. function requireArrayForEach () {
  3183. if (hasRequiredArrayForEach) return arrayForEach;
  3184. hasRequiredArrayForEach = 1;
  3185. var $forEach = requireArrayIteration().forEach;
  3186. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  3187. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  3188. // `Array.prototype.forEach` method implementation
  3189. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  3190. arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  3191. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  3192. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  3193. } : [].forEach;
  3194. return arrayForEach;
  3195. }
  3196. var hasRequiredWeb_domCollections_forEach;
  3197. function requireWeb_domCollections_forEach () {
  3198. if (hasRequiredWeb_domCollections_forEach) return web_domCollections_forEach;
  3199. hasRequiredWeb_domCollections_forEach = 1;
  3200. var globalThis = requireGlobalThis();
  3201. var DOMIterables = requireDomIterables();
  3202. var DOMTokenListPrototype = requireDomTokenListPrototype();
  3203. var forEach = requireArrayForEach();
  3204. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  3205. var handlePrototype = function (CollectionPrototype) {
  3206. // some Chrome versions have non-configurable methods on DOMTokenList
  3207. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  3208. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  3209. } catch (error) {
  3210. CollectionPrototype.forEach = forEach;
  3211. }
  3212. };
  3213. for (var COLLECTION_NAME in DOMIterables) {
  3214. if (DOMIterables[COLLECTION_NAME]) {
  3215. handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype);
  3216. }
  3217. }
  3218. handlePrototype(DOMTokenListPrototype);
  3219. return web_domCollections_forEach;
  3220. }
  3221. requireWeb_domCollections_forEach();
  3222. /**
  3223. * @author: Dennis Hernández
  3224. * @update zhixin wen <wenzhixin2010@gmail.com>
  3225. */
  3226. var Utils = $.fn.bootstrapTable.utils;
  3227. var UtilsCookie = {
  3228. cookieIds: {
  3229. sortOrder: 'bs.table.sortOrder',
  3230. sortName: 'bs.table.sortName',
  3231. sortPriority: 'bs.table.sortPriority',
  3232. pageNumber: 'bs.table.pageNumber',
  3233. pageList: 'bs.table.pageList',
  3234. hiddenColumns: 'bs.table.hiddenColumns',
  3235. cardView: 'bs.table.cardView',
  3236. customView: 'bs.table.customView',
  3237. searchText: 'bs.table.searchText',
  3238. reorderColumns: 'bs.table.reorderColumns',
  3239. filterControl: 'bs.table.filterControl',
  3240. filterBy: 'bs.table.filterBy'
  3241. },
  3242. getCurrentHeader: function getCurrentHeader(that) {
  3243. return that.options.height ? that.$tableHeader : that.$header;
  3244. },
  3245. getCurrentSearchControls: function getCurrentSearchControls(that) {
  3246. return that.options.height ? 'table select, table input' : 'select, input';
  3247. },
  3248. isCookieSupportedByBrowser: function isCookieSupportedByBrowser() {
  3249. return navigator.cookieEnabled;
  3250. },
  3251. isCookieEnabled: function isCookieEnabled(that, cookieName) {
  3252. return that.options.cookiesEnabled.includes(cookieName);
  3253. },
  3254. setCookie: function setCookie(that, cookieName, cookieValue) {
  3255. if (!that.options.cookie || !UtilsCookie.isCookieEnabled(that, cookieName)) {
  3256. return;
  3257. }
  3258. return that._storage.setItem("".concat(that.options.cookieIdTable, ".").concat(cookieName), cookieValue);
  3259. },
  3260. getCookie: function getCookie(that, cookieName) {
  3261. if (!cookieName || !UtilsCookie.isCookieEnabled(that, cookieName)) {
  3262. return null;
  3263. }
  3264. return that._storage.getItem("".concat(that.options.cookieIdTable, ".").concat(cookieName));
  3265. },
  3266. deleteCookie: function deleteCookie(that, cookieName) {
  3267. return that._storage.removeItem("".concat(that.options.cookieIdTable, ".").concat(cookieName));
  3268. },
  3269. calculateExpiration: function calculateExpiration(cookieExpire) {
  3270. var time = cookieExpire.replace(/[0-9]*/, ''); // s,mi,h,d,m,y
  3271. cookieExpire = cookieExpire.replace(/[A-Za-z]{1,2}/, ''); // number
  3272. switch (time.toLowerCase()) {
  3273. case 's':
  3274. cookieExpire = +cookieExpire;
  3275. break;
  3276. case 'mi':
  3277. cookieExpire *= 60;
  3278. break;
  3279. case 'h':
  3280. cookieExpire = cookieExpire * 60 * 60;
  3281. break;
  3282. case 'd':
  3283. cookieExpire = cookieExpire * 24 * 60 * 60;
  3284. break;
  3285. case 'm':
  3286. cookieExpire = cookieExpire * 30 * 24 * 60 * 60;
  3287. break;
  3288. case 'y':
  3289. cookieExpire = cookieExpire * 365 * 24 * 60 * 60;
  3290. break;
  3291. default:
  3292. cookieExpire = undefined;
  3293. break;
  3294. }
  3295. if (!cookieExpire) {
  3296. return '';
  3297. }
  3298. var d = new Date();
  3299. d.setTime(d.getTime() + cookieExpire * 1000);
  3300. return d.toGMTString();
  3301. },
  3302. initCookieFilters: function initCookieFilters(that) {
  3303. setTimeout(function () {
  3304. var parsedCookieFilters = JSON.parse(UtilsCookie.getCookie(that, UtilsCookie.cookieIds.filterControl));
  3305. if (!that._filterControlValuesLoaded && parsedCookieFilters) {
  3306. var cachedFilters = {};
  3307. var header = UtilsCookie.getCurrentHeader(that);
  3308. var searchControls = UtilsCookie.getCurrentSearchControls(that);
  3309. var applyCookieFilters = function applyCookieFilters(element, filteredCookies) {
  3310. filteredCookies.forEach(function (cookie) {
  3311. var value = element.value.toString();
  3312. var text = cookie.text;
  3313. if (text === '' || element.type === 'radio' && value !== text) {
  3314. return;
  3315. }
  3316. if (element.tagName === 'INPUT' && element.type === 'radio' && value === text) {
  3317. element.checked = true;
  3318. cachedFilters[cookie.field] = text;
  3319. } else if (element.tagName === 'INPUT') {
  3320. element.value = text;
  3321. cachedFilters[cookie.field] = text;
  3322. } else if (element.tagName === 'SELECT' && that.options.filterControlContainer) {
  3323. element.value = text;
  3324. cachedFilters[cookie.field] = text;
  3325. } else if (text !== '' && element.tagName === 'SELECT') {
  3326. cachedFilters[cookie.field] = text;
  3327. var _iterator = _createForOfIteratorHelper(element),
  3328. _step;
  3329. try {
  3330. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  3331. var currentElement = _step.value;
  3332. if (currentElement.value === text) {
  3333. currentElement.selected = true;
  3334. return;
  3335. }
  3336. }
  3337. } catch (err) {
  3338. _iterator.e(err);
  3339. } finally {
  3340. _iterator.f();
  3341. }
  3342. var option = document.createElement('option');
  3343. option.value = text;
  3344. option.text = text;
  3345. element.add(option, element[1]);
  3346. element.selectedIndex = 1;
  3347. }
  3348. });
  3349. };
  3350. var filterContainer = header;
  3351. if (that.options.filterControlContainer) {
  3352. filterContainer = $("".concat(that.options.filterControlContainer));
  3353. }
  3354. filterContainer.find(searchControls).each(function () {
  3355. var field = $(this).closest('[data-field]').data('field');
  3356. var filteredCookies = parsedCookieFilters.filter(function (cookie) {
  3357. return cookie.field === field;
  3358. });
  3359. applyCookieFilters(this, filteredCookies);
  3360. });
  3361. that.initColumnSearch(cachedFilters);
  3362. that._filterControlValuesLoaded = true;
  3363. that.initServer();
  3364. }
  3365. }, 250);
  3366. }
  3367. };
  3368. Object.assign($.fn.bootstrapTable.defaults, {
  3369. cookie: false,
  3370. cookieExpire: '2h',
  3371. cookiePath: null,
  3372. cookieDomain: null,
  3373. cookieSecure: null,
  3374. cookieSameSite: 'Lax',
  3375. cookieIdTable: '',
  3376. cookiesEnabled: ['bs.table.sortOrder', 'bs.table.sortName', 'bs.table.sortPriority', 'bs.table.pageNumber', 'bs.table.pageList', 'bs.table.hiddenColumns', 'bs.table.searchText', 'bs.table.filterControl', 'bs.table.filterBy', 'bs.table.reorderColumns', 'bs.table.cardView', 'bs.table.customView'],
  3377. cookieStorage: 'cookieStorage',
  3378. // localStorage, sessionStorage, customStorage
  3379. cookieCustomStorageGet: null,
  3380. cookieCustomStorageSet: null,
  3381. cookieCustomStorageDelete: null,
  3382. // internal variable
  3383. _filterControls: [],
  3384. _filterControlValuesLoaded: false,
  3385. _storage: {
  3386. setItem: undefined,
  3387. getItem: undefined,
  3388. removeItem: undefined
  3389. }
  3390. });
  3391. $.fn.bootstrapTable.methods.push('getCookies');
  3392. $.fn.bootstrapTable.methods.push('deleteCookie');
  3393. Object.assign($.fn.bootstrapTable.utils, {
  3394. setCookie: UtilsCookie.setCookie,
  3395. getCookie: UtilsCookie.getCookie
  3396. });
  3397. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  3398. function _class() {
  3399. _classCallCheck(this, _class);
  3400. return _callSuper(this, _class, arguments);
  3401. }
  3402. _inherits(_class, _$$BootstrapTable);
  3403. return _createClass(_class, [{
  3404. key: "init",
  3405. value: function init() {
  3406. if (this.options.cookie) {
  3407. if (this.options.cookieStorage === 'cookieStorage' && !UtilsCookie.isCookieSupportedByBrowser()) {
  3408. throw new Error('Cookies are not enabled in this browser.');
  3409. }
  3410. this.configureStorage();
  3411. // FilterBy logic
  3412. var filterByCookieValue = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.filterBy);
  3413. if (typeof filterByCookieValue === 'boolean' && !filterByCookieValue) {
  3414. throw new Error('The cookie value of filterBy must be a json!');
  3415. }
  3416. var filterByCookie = {};
  3417. try {
  3418. filterByCookie = JSON.parse(filterByCookieValue);
  3419. } catch (e) {
  3420. throw new Error('Could not parse the json of the filterBy cookie!');
  3421. }
  3422. this.filterColumns = filterByCookie ? filterByCookie : {};
  3423. // FilterControl logic
  3424. this._filterControls = [];
  3425. this._filterControlValuesLoaded = false;
  3426. this.options.cookiesEnabled = typeof this.options.cookiesEnabled === 'string' ? this.options.cookiesEnabled.replace('[', '').replace(']', '').replace(/'/g, '').replace(/ /g, '').split(',') : this.options.cookiesEnabled;
  3427. if (this.options.filterControl) {
  3428. var that = this;
  3429. this.$el.on('column-search.bs.table', function (e, field, text) {
  3430. var isNewField = true;
  3431. for (var i = 0; i < that._filterControls.length; i++) {
  3432. if (that._filterControls[i].field === field) {
  3433. that._filterControls[i].text = text;
  3434. isNewField = false;
  3435. break;
  3436. }
  3437. }
  3438. if (isNewField) {
  3439. that._filterControls.push({
  3440. field: field,
  3441. text: text
  3442. });
  3443. }
  3444. UtilsCookie.setCookie(that, UtilsCookie.cookieIds.filterControl, JSON.stringify(that._filterControls));
  3445. }).on('created-controls.bs.table', UtilsCookie.initCookieFilters(that));
  3446. }
  3447. }
  3448. _superPropGet(_class, "init", this)([]);
  3449. }
  3450. }, {
  3451. key: "initServer",
  3452. value: function initServer() {
  3453. if (this.options.cookie && this.options.filterControl && !this._filterControlValuesLoaded) {
  3454. var cookie = JSON.parse(UtilsCookie.getCookie(this, UtilsCookie.cookieIds.filterControl));
  3455. if (cookie) {
  3456. return;
  3457. }
  3458. }
  3459. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  3460. args[_key] = arguments[_key];
  3461. }
  3462. _superPropGet(_class, "initServer", this)(args);
  3463. }
  3464. }, {
  3465. key: "initTable",
  3466. value: function initTable() {
  3467. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  3468. args[_key2] = arguments[_key2];
  3469. }
  3470. _superPropGet(_class, "initTable", this)(args);
  3471. this.initCookie();
  3472. }
  3473. }, {
  3474. key: "onSort",
  3475. value: function onSort() {
  3476. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  3477. args[_key3] = arguments[_key3];
  3478. }
  3479. _superPropGet(_class, "onSort", this)(args);
  3480. if (!this.options.cookie) {
  3481. return;
  3482. }
  3483. if (this.options.sortName === undefined || this.options.sortOrder === undefined) {
  3484. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortName);
  3485. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortOrder);
  3486. } else {
  3487. this.options.sortPriority = null;
  3488. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortPriority);
  3489. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);
  3490. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);
  3491. }
  3492. }
  3493. }, {
  3494. key: "onMultipleSort",
  3495. value: function onMultipleSort() {
  3496. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  3497. args[_key4] = arguments[_key4];
  3498. }
  3499. _superPropGet(_class, "onMultipleSort", this)(args);
  3500. if (!this.options.cookie) {
  3501. return;
  3502. }
  3503. if (this.options.sortPriority === undefined) {
  3504. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortPriority);
  3505. } else {
  3506. this.options.sortName = undefined;
  3507. this.options.sortOrder = undefined;
  3508. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortName);
  3509. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortOrder);
  3510. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortPriority, JSON.stringify(this.options.sortPriority));
  3511. }
  3512. }
  3513. }, {
  3514. key: "onPageNumber",
  3515. value: function onPageNumber() {
  3516. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  3517. args[_key5] = arguments[_key5];
  3518. }
  3519. _superPropGet(_class, "onPageNumber", this)(args);
  3520. if (!this.options.cookie) {
  3521. return;
  3522. }
  3523. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
  3524. }
  3525. }, {
  3526. key: "onPageListChange",
  3527. value: function onPageListChange() {
  3528. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  3529. args[_key6] = arguments[_key6];
  3530. }
  3531. _superPropGet(_class, "onPageListChange", this)(args);
  3532. if (!this.options.cookie) {
  3533. return;
  3534. }
  3535. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize === this.options.formatAllRows() ? 'all' : this.options.pageSize);
  3536. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
  3537. }
  3538. }, {
  3539. key: "onPagePre",
  3540. value: function onPagePre() {
  3541. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  3542. args[_key7] = arguments[_key7];
  3543. }
  3544. _superPropGet(_class, "onPagePre", this)(args);
  3545. if (!this.options.cookie) {
  3546. return;
  3547. }
  3548. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
  3549. }
  3550. }, {
  3551. key: "onPageNext",
  3552. value: function onPageNext() {
  3553. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  3554. args[_key8] = arguments[_key8];
  3555. }
  3556. _superPropGet(_class, "onPageNext", this)(args);
  3557. if (!this.options.cookie) {
  3558. return;
  3559. }
  3560. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
  3561. }
  3562. }, {
  3563. key: "_toggleColumn",
  3564. value: function _toggleColumn() {
  3565. for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
  3566. args[_key9] = arguments[_key9];
  3567. }
  3568. _superPropGet(_class, "_toggleColumn", this)(args);
  3569. if (!this.options.cookie) {
  3570. return;
  3571. }
  3572. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.hiddenColumns, JSON.stringify(this.getHiddenColumns().map(function (column) {
  3573. return column.field;
  3574. })));
  3575. }
  3576. }, {
  3577. key: "_toggleAllColumns",
  3578. value: function _toggleAllColumns() {
  3579. for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
  3580. args[_key10] = arguments[_key10];
  3581. }
  3582. _superPropGet(_class, "_toggleAllColumns", this)(args);
  3583. if (!this.options.cookie) {
  3584. return;
  3585. }
  3586. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.hiddenColumns, JSON.stringify(this.getHiddenColumns().map(function (column) {
  3587. return column.field;
  3588. })));
  3589. }
  3590. }, {
  3591. key: "toggleView",
  3592. value: function toggleView() {
  3593. _superPropGet(_class, "toggleView", this)([]);
  3594. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.cardView, this.options.cardView);
  3595. }
  3596. }, {
  3597. key: "toggleCustomView",
  3598. value: function toggleCustomView() {
  3599. _superPropGet(_class, "toggleCustomView", this)([]);
  3600. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.customView, this.customViewDefaultView);
  3601. }
  3602. }, {
  3603. key: "selectPage",
  3604. value: function selectPage(page) {
  3605. _superPropGet(_class, "selectPage", this)([page]);
  3606. if (!this.options.cookie) {
  3607. return;
  3608. }
  3609. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, page);
  3610. }
  3611. }, {
  3612. key: "onSearch",
  3613. value: function onSearch(event) {
  3614. _superPropGet(_class, "onSearch", this)([event, arguments.length > 1 ? arguments[1] : true]);
  3615. if (!this.options.cookie) {
  3616. return;
  3617. }
  3618. if (this.options.search) {
  3619. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.searchText, this.searchText);
  3620. }
  3621. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
  3622. }
  3623. }, {
  3624. key: "initHeader",
  3625. value: function initHeader() {
  3626. if (this.options.reorderableColumns && this.options.cookie) {
  3627. this.columnsSortOrder = JSON.parse(UtilsCookie.getCookie(this, UtilsCookie.cookieIds.reorderColumns));
  3628. }
  3629. for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
  3630. args[_key11] = arguments[_key11];
  3631. }
  3632. _superPropGet(_class, "initHeader", this)(args);
  3633. }
  3634. }, {
  3635. key: "persistReorderColumnsState",
  3636. value: function persistReorderColumnsState(that) {
  3637. UtilsCookie.setCookie(that, UtilsCookie.cookieIds.reorderColumns, JSON.stringify(that.columnsSortOrder));
  3638. }
  3639. }, {
  3640. key: "filterBy",
  3641. value: function filterBy() {
  3642. for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
  3643. args[_key12] = arguments[_key12];
  3644. }
  3645. _superPropGet(_class, "filterBy", this)(args);
  3646. if (!this.options.cookie) {
  3647. return;
  3648. }
  3649. UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns));
  3650. }
  3651. }, {
  3652. key: "initCookie",
  3653. value: function initCookie() {
  3654. if (!this.options.cookie) {
  3655. return;
  3656. }
  3657. if (this.options.cookieIdTable === '' || this.options.cookieExpire === '') {
  3658. console.error('Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies.');
  3659. this.options.cookie = false; // Make sure that the cookie extension is disabled
  3660. return;
  3661. }
  3662. var sortOrderCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortOrder);
  3663. var sortOrderNameCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortName);
  3664. var sortPriorityCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortPriority);
  3665. var pageNumberCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.pageNumber);
  3666. var pageListCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.pageList);
  3667. var searchTextCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.searchText);
  3668. var cardViewCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.cardView);
  3669. var customViewCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.customView);
  3670. var hiddenColumnsCookieValue = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.hiddenColumns);
  3671. var hiddenColumnsCookie = {};
  3672. try {
  3673. hiddenColumnsCookie = JSON.parse(hiddenColumnsCookieValue);
  3674. } catch (e) {
  3675. throw new Error('Could not parse the json of the hidden columns cookie!', hiddenColumnsCookieValue);
  3676. }
  3677. try {
  3678. sortPriorityCookie = JSON.parse(sortPriorityCookie);
  3679. } catch (e) {
  3680. throw new Error('Could not parse the json of the sortPriority cookie!', sortPriorityCookie);
  3681. }
  3682. if (!sortPriorityCookie) {
  3683. // sortOrder
  3684. this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder;
  3685. // sortName
  3686. this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName;
  3687. } else {
  3688. this.options.sortOrder = undefined;
  3689. this.options.sortName = undefined;
  3690. }
  3691. // sortPriority
  3692. this.options.sortPriority = sortPriorityCookie ? sortPriorityCookie : this.options.sortPriority;
  3693. if (this.options.sortOrder || this.options.sortName) {
  3694. // sortPriority
  3695. this.options.sortPriority = null;
  3696. }
  3697. // pageNumber
  3698. this.options.pageNumber = pageNumberCookie ? +pageNumberCookie : this.options.pageNumber;
  3699. // pageSize
  3700. this.options.pageSize = pageListCookie ? pageListCookie === 'all' ? this.options.formatAllRows() : +pageListCookie : this.options.pageSize;
  3701. // searchText
  3702. if (UtilsCookie.isCookieEnabled(this, UtilsCookie.cookieIds.searchText) && this.options.searchText === '') {
  3703. this.options.searchText = searchTextCookie ? searchTextCookie : '';
  3704. }
  3705. // cardView
  3706. if (cardViewCookie !== null) {
  3707. this.options.cardView = cardViewCookie === 'true' ? cardViewCookie : false;
  3708. }
  3709. this.customViewDefaultView = customViewCookie === 'true';
  3710. if (hiddenColumnsCookie) {
  3711. var _iterator2 = _createForOfIteratorHelper(this.columns),
  3712. _step2;
  3713. try {
  3714. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  3715. var column = _step2.value;
  3716. if (!column.switchable) {
  3717. continue;
  3718. }
  3719. column.visible = this.isSelectionColumn(column) || !hiddenColumnsCookie.includes(column.field);
  3720. }
  3721. } catch (err) {
  3722. _iterator2.e(err);
  3723. } finally {
  3724. _iterator2.f();
  3725. }
  3726. }
  3727. }
  3728. }, {
  3729. key: "getCookies",
  3730. value: function getCookies() {
  3731. var bootstrapTable = this;
  3732. var cookies = {};
  3733. for (var _i = 0, _Object$entries = Object.entries(UtilsCookie.cookieIds); _i < _Object$entries.length; _i++) {
  3734. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  3735. key = _Object$entries$_i[0],
  3736. value = _Object$entries$_i[1];
  3737. cookies[key] = UtilsCookie.getCookie(bootstrapTable, value);
  3738. if (key === 'columns' || key === 'hiddenColumns' || key === 'sortPriority') {
  3739. cookies[key] = JSON.parse(cookies[key]);
  3740. }
  3741. }
  3742. return cookies;
  3743. }
  3744. }, {
  3745. key: "deleteCookie",
  3746. value: function deleteCookie(cookieName) {
  3747. if (!cookieName || !this.options.cookie) {
  3748. return;
  3749. }
  3750. UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds[cookieName]);
  3751. }
  3752. }, {
  3753. key: "configureStorage",
  3754. value: function configureStorage() {
  3755. var that = this;
  3756. this._storage = {};
  3757. switch (this.options.cookieStorage) {
  3758. case 'cookieStorage':
  3759. this._storage.setItem = function (cookieName, cookieValue) {
  3760. document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), "; expires=".concat(UtilsCookie.calculateExpiration(that.options.cookieExpire)), that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', that.options.cookieSecure ? '; secure' : '', ";SameSite=".concat(that.options.cookieSameSite)].join('');
  3761. };
  3762. this._storage.getItem = function (cookieName) {
  3763. var value = "; ".concat(document.cookie);
  3764. var parts = value.split("; ".concat(cookieName, "="));
  3765. return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : null;
  3766. };
  3767. this._storage.removeItem = function (cookieName) {
  3768. document.cookie = [encodeURIComponent(cookieName), '=', '; expires=Thu, 01 Jan 1970 00:00:00 GMT', that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', ";SameSite=".concat(that.options.cookieSameSite)].join('');
  3769. };
  3770. break;
  3771. case 'localStorage':
  3772. this._storage.setItem = function (cookieName, cookieValue) {
  3773. localStorage.setItem(cookieName, cookieValue);
  3774. };
  3775. this._storage.getItem = function (cookieName) {
  3776. return localStorage.getItem(cookieName);
  3777. };
  3778. this._storage.removeItem = function (cookieName) {
  3779. localStorage.removeItem(cookieName);
  3780. };
  3781. break;
  3782. case 'sessionStorage':
  3783. this._storage.setItem = function (cookieName, cookieValue) {
  3784. sessionStorage.setItem(cookieName, cookieValue);
  3785. };
  3786. this._storage.getItem = function (cookieName) {
  3787. return sessionStorage.getItem(cookieName);
  3788. };
  3789. this._storage.removeItem = function (cookieName) {
  3790. sessionStorage.removeItem(cookieName);
  3791. };
  3792. break;
  3793. case 'customStorage':
  3794. if (!this.options.cookieCustomStorageSet || !this.options.cookieCustomStorageGet || !this.options.cookieCustomStorageDelete) {
  3795. throw new Error('The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete');
  3796. }
  3797. this._storage.setItem = function (cookieName, cookieValue) {
  3798. Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageSet, [cookieName, cookieValue], '');
  3799. };
  3800. this._storage.getItem = function (cookieName) {
  3801. return Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageGet, [cookieName], '');
  3802. };
  3803. this._storage.removeItem = function (cookieName) {
  3804. Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageDelete, [cookieName], '');
  3805. };
  3806. break;
  3807. default:
  3808. throw new Error('Storage method not supported.');
  3809. }
  3810. }
  3811. }]);
  3812. }($.BootstrapTable);
  3813. }));