utils.js 116 KB

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