vendor: 8,069 bytes, lines 1-179
1(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ 2'use strict'; 3var isCallable = require('../internals/is-callable'); 4var tryToString = require('../internals/try-to-string'); 5 6var $TypeError = TypeError; 7 8// `Assert: IsCallable(argument) is true` 9module.exports = function (argument) { 10 if (isCallable(argument)) return argument; 11 throw new $TypeError(tryToString(argument) + ' is not a function'); 12}; 13 14},{"../internals/is-callable":86,"../internals/try-to-string":169}],2:[function(require,module,exports){ 15'use strict'; 16var isConstructor = require('../internals/is-constructor'); 17var tryToString = require('../internals/try-to-string'); 18 19var $TypeError = TypeError; 20 21// `Assert: IsConstructor(argument) is true` 22module.exports = function (argument) { 23 if (isConstructor(argument)) return argument; 24 throw new $TypeError(tryToString(argument) + ' is not a constructor'); 25}; 26 27},{"../internals/is-constructor":87,"../internals/try-to-string":169}],3:[function(require,module,exports){ 28'use strict'; 29var isPossiblePrototype = require('../internals/is-possible-prototype'); 30 31var $String = String; 32var $TypeError = TypeError; 33 34module.exports = function (argument) { 35 if (isPossiblePrototype(argument)) return argument; 36 throw new $TypeError("Can't set " + $String(argument) + ' as a prototype'); 37}; 38 39},{"../internals/is-possible-prototype":91}],4:[function(require,module,exports){ 40'use strict'; 41var wellKnownSymbol = require('../internals/well-known-symbol'); 42var create = require('../internals/object-create'); 43var defineProperty = require('../internals/object-define-property').f; 44 45var UNSCOPABLES = wellKnownSymbol('unscopables'); 46var ArrayPrototype = Array.prototype; 47 48// Array.prototype[@@unscopables] 49// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables 50if (ArrayPrototype[UNSCOPABLES] === undefined) { 51 defineProperty(ArrayPrototype, UNSCOPABLES, { 52 configurable: true, 53 value: create(null) 54 }); 55} 56 57// add a key to Array.prototype[@@unscopables] 58module.exports = function (key) { 59 ArrayPrototype[UNSCOPABLES][key] = true; 60}; 61 62},{"../internals/object-create":110,"../internals/object-define-property":112,"../internals/well-known-symbol":178}],5:[function(require,module,exports){ 63'use strict'; 64var charAt = require('../internals/string-multibyte').charAt; 65 66// `AdvanceStringIndex` abstract operation 67// https://tc39.es/ecma262/#sec-advancestringindex 68module.exports = function (S, index, unicode) { 69 return index + (unicode ? charAt(S, index).length : 1); 70}; 71 72},{"../internals/string-multibyte":151}],6:[function(require,module,exports){ 73'use strict'; 74var isPrototypeOf = require('../internals/object-is-prototype-of'); 75 76var $TypeError = TypeError; 77 78module.exports = function (it, Prototype) { 79 if (isPrototypeOf(Prototype, it)) return it; 80 throw new $TypeError('Incorrect invocation'); 81}; 82 83},{"../internals/object-is-prototype-of":118}],7:[function(require,module,exports){ 84'use strict'; 85var isObject = require('../internals/is-object'); 86 87var $String = String; 88var $TypeError = TypeError; 89 90// `Assert: Type(argument) is Object` 91module.exports = function (argument) { 92 if (isObject(argument)) return argument; 93 throw new $TypeError($String(argument) + ' is not an object'); 94}; 95 96},{"../internals/is-object":90}],8:[function(require,module,exports){ 97'use strict'; 98var $forEach = require('../internals/array-iteration').forEach; 99var arrayMethodIsStrict = require('../internals/array-method-is-strict'); 100 101var STRICT_METHOD = arrayMethodIsStrict('forEach'); 102 103// `Array.prototype.forEach` method implementation 104// https://tc39.es/ecma262/#sec-array.prototype.foreach 105module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { 106 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 107// eslint-disable-next-line es/no-array-prototype-foreach -- safe 108} : [].forEach; 109 110},{"../internals/array-iteration":11,"../internals/array-method-is-strict":13}],9:[function(require,module,exports){ 111'use strict'; 112var bind = require('../internals/function-bind-context'); 113var call = require('../internals/function-call'); 114var toObject = require('../internals/to-object'); 115var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); 116var isArrayIteratorMethod = require('../internals/is-array-iterator-method'); 117var isConstructor = require('../internals/is-constructor'); 118var lengthOfArrayLike = require('../internals/length-of-array-like'); 119var createProperty = require('../internals/create-property'); 120var getIterator = require('../internals/get-iterator'); 121var getIteratorMethod = require('../internals/get-iterator-method'); 122 123var $Array = Array; 124 125// `Array.from` method implementation 126// https://tc39.es/ecma262/#sec-array.from 127module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { 128 var O = toObject(arrayLike); 129 var IS_CONSTRUCTOR = isConstructor(this); 130 var argumentsLength = arguments.length; 131 var mapfn = argumentsLength > 1 ? arguments[1] : undefined; 132 var mapping = mapfn !== undefined; 133 if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined); 134 var iteratorMethod = getIteratorMethod(O); 135 var index = 0; 136 var length, result, step, iterator, next, value; 137 // if the target is not iterable or it's an array with the default iterator - use a simple case 138 if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) { 139 result = IS_CONSTRUCTOR ? new this() : []; 140 iterator = getIterator(O, iteratorMethod); 141 next = iterator.next; 142 for (;!(step = call(next, iterator)).done; index++) { 143 value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; 144 createProperty(result, index, value); 145 } 146 } else { 147 length = lengthOfArrayLike(O); 148 result = IS_CONSTRUCTOR ? new this(length) : $Array(length); 149 for (;length > index; index++) { 150 value = mapping ? mapfn(O[index], index) : O[index]; 151 createProperty(result, index, value); 152 } 153 } 154 result.length = index; 155 return result; 156}; 157 158},{"../internals/call-with-safe-iteration-closing":24,"../internals/create-property":34,"../internals/function-bind-context":60,"../internals/function-call":62,"../internals/get-iterator":70,"../internals/get-iterator-method":69,"../internals/is-array-iterator-method":84,"../internals/is-constructor":87,"../internals/length-of-array-like":103,"../internals/to-object":164}],10:[function(require,module,exports){ 159'use strict'; 160var toIndexedObject = require('../internals/to-indexed-object'); 161var toAbsoluteIndex = require('../internals/to-absolute-index'); 162var lengthOfArrayLike = require('../internals/length-of-array-like'); 163 164// `Array.prototype.{ indexOf, includes }` methods implementation 165var createMethod = function (IS_INCLUDES) { 166 return function ($this, el, fromIndex) { 167 var O = toIndexedObject($this); 168 var length = lengthOfArrayLike(O); 169 if (length === 0) return !IS_INCLUDES && -1; 170 var index = toAbsoluteIndex(fromIndex, length); 171 var value; 172 // Array#includes uses SameValueZero equality algorithm 173 // eslint-disable-next-line no-self-compare -- NaN check 174 if (IS_INCLUDES && el !== el) while (length > index) { 175 value = O[index++]; 176 // eslint-disable-next-line no-self-compare -- NaN check 177 if (value !== value) return true; 178 // Array#indexOf ignores holes, Array#includes - not 179 } else for (;length > index; index++) {
vendor: 6,283 bytes, lines 180-334
180 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; 181 } return !IS_INCLUDES && -1; 182 }; 183}; 184 185module.exports = { 186 // `Array.prototype.includes` method 187 // https://tc39.es/ecma262/#sec-array.prototype.includes 188 includes: createMethod(true), 189 // `Array.prototype.indexOf` method 190 // https://tc39.es/ecma262/#sec-array.prototype.indexof 191 indexOf: createMethod(false) 192}; 193 194},{"../internals/length-of-array-like":103,"../internals/to-absolute-index":160,"../internals/to-indexed-object":161}],11:[function(require,module,exports){ 195'use strict'; 196var bind = require('../internals/function-bind-context'); 197var uncurryThis = require('../internals/function-uncurry-this'); 198var IndexedObject = require('../internals/indexed-object'); 199var toObject = require('../internals/to-object'); 200var lengthOfArrayLike = require('../internals/length-of-array-like'); 201var arraySpeciesCreate = require('../internals/array-species-create'); 202 203var push = uncurryThis([].push); 204 205// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation 206var createMethod = function (TYPE) { 207 var IS_MAP = TYPE === 1; 208 var IS_FILTER = TYPE === 2; 209 var IS_SOME = TYPE === 3; 210 var IS_EVERY = TYPE === 4; 211 var IS_FIND_INDEX = TYPE === 6; 212 var IS_FILTER_REJECT = TYPE === 7; 213 var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; 214 return function ($this, callbackfn, that, specificCreate) { 215 var O = toObject($this); 216 var self = IndexedObject(O); 217 var length = lengthOfArrayLike(self); 218 var boundFunction = bind(callbackfn, that); 219 var index = 0; 220 var create = specificCreate || arraySpeciesCreate; 221 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; 222 var value, result; 223 for (;length > index; index++) if (NO_HOLES || index in self) { 224 value = self[index]; 225 result = boundFunction(value, index, O); 226 if (TYPE) { 227 if (IS_MAP) target[index] = result; // map 228 else if (result) switch (TYPE) { 229 case 3: return true; // some 230 case 5: return value; // find 231 case 6: return index; // findIndex 232 case 2: push(target, value); // filter 233 } else switch (TYPE) { 234 case 4: return false; // every 235 case 7: push(target, value); // filterReject 236 } 237 } 238 } 239 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; 240 }; 241}; 242 243module.exports = { 244 // `Array.prototype.forEach` method 245 // https://tc39.es/ecma262/#sec-array.prototype.foreach 246 forEach: createMethod(0), 247 // `Array.prototype.map` method 248 // https://tc39.es/ecma262/#sec-array.prototype.map 249 map: createMethod(1), 250 // `Array.prototype.filter` method 251 // https://tc39.es/ecma262/#sec-array.prototype.filter 252 filter: createMethod(2), 253 // `Array.prototype.some` method 254 // https://tc39.es/ecma262/#sec-array.prototype.some 255 some: createMethod(3), 256 // `Array.prototype.every` method 257 // https://tc39.es/ecma262/#sec-array.prototype.every 258 every: createMethod(4), 259 // `Array.prototype.find` method 260 // https://tc39.es/ecma262/#sec-array.prototype.find 261 find: createMethod(5), 262 // `Array.prototype.findIndex` method 263 // https://tc39.es/ecma262/#sec-array.prototype.findIndex 264 findIndex: createMethod(6), 265 // `Array.prototype.filterReject` method 266 // https://github.com/tc39/proposal-array-filtering 267 filterReject: createMethod(7) 268}; 269 270},{"../internals/array-species-create":18,"../internals/function-bind-context":60,"../internals/function-uncurry-this":66,"../internals/indexed-object":79,"../internals/length-of-array-like":103,"../internals/to-object":164}],12:[function(require,module,exports){ 271'use strict'; 272var fails = require('../internals/fails'); 273var wellKnownSymbol = require('../internals/well-known-symbol'); 274var V8_VERSION = require('../internals/environment-v8-version'); 275 276var SPECIES = wellKnownSymbol('species'); 277 278module.exports = function (METHOD_NAME) { 279 // We can't use this feature detection in V8 since it causes 280 // deoptimization and serious performance degradation 281 // https://github.com/zloirock/core-js/issues/677 282 return V8_VERSION >= 51 || !fails(function () { 283 var array = []; 284 var constructor = array.constructor = {}; 285 constructor[SPECIES] = function () { 286 return { foo: 1 }; 287 }; 288 return array[METHOD_NAME](Boolean).foo !== 1; 289 }); 290}; 291 292},{"../internals/environment-v8-version":51,"../internals/fails":57,"../internals/well-known-symbol":178}],13:[function(require,module,exports){ 293'use strict'; 294var fails = require('../internals/fails'); 295 296module.exports = function (METHOD_NAME, argument) { 297 var method = [][METHOD_NAME]; 298 return !!method && fails(function () { 299 // eslint-disable-next-line no-useless-call -- required for testing 300 method.call(null, argument || function () { return 1; }, 1); 301 }); 302}; 303 304},{"../internals/fails":57}],14:[function(require,module,exports){ 305'use strict'; 306var DESCRIPTORS = require('../internals/descriptors'); 307var isArray = require('../internals/is-array'); 308 309var $TypeError = TypeError; 310// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 311var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 312 313// Safari < 13 does not throw an error in this case 314var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { 315 // makes no sense without proper strict mode support 316 if (this !== undefined) return true; 317 try { 318 // eslint-disable-next-line es/no-object-defineproperty -- safe 319 Object.defineProperty([], 'length', { writable: false }).length = 1; 320 } catch (error) { 321 return error instanceof TypeError; 322 } 323}(); 324 325module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { 326 if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { 327 throw new $TypeError('Cannot set read only .length'); 328 } return O.length = length; 329} : function (O, length) { 330 return O.length = length; 331}; 332 333},{"../internals/descriptors":40,"../internals/is-array":85}],15:[function(require,module,exports){ 334'use strict';
vendor: 4,679 bytes, lines 335-462
335var uncurryThis = require('../internals/function-uncurry-this'); 336 337module.exports = uncurryThis([].slice); 338 339},{"../internals/function-uncurry-this":66}],16:[function(require,module,exports){ 340'use strict'; 341var arraySlice = require('../internals/array-slice'); 342 343var floor = Math.floor; 344 345var sort = function (array, comparefn) { 346 var length = array.length; 347 348 if (length < 8) { 349 // insertion sort 350 var i = 1; 351 var element, j; 352 353 while (i < length) { 354 j = i; 355 element = array[i]; 356 while (j && comparefn(array[j - 1], element) > 0) { 357 array[j] = array[--j]; 358 } 359 if (j !== i++) array[j] = element; 360 } 361 } else { 362 // merge sort 363 var middle = floor(length / 2); 364 var left = sort(arraySlice(array, 0, middle), comparefn); 365 var right = sort(arraySlice(array, middle), comparefn); 366 var llength = left.length; 367 var rlength = right.length; 368 var lindex = 0; 369 var rindex = 0; 370 371 while (lindex < llength || rindex < rlength) { 372 array[lindex + rindex] = (lindex < llength && rindex < rlength) 373 ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] 374 : lindex < llength ? left[lindex++] : right[rindex++]; 375 } 376 } 377 378 return array; 379}; 380 381module.exports = sort; 382 383},{"../internals/array-slice":15}],17:[function(require,module,exports){ 384'use strict'; 385var isArray = require('../internals/is-array'); 386var isConstructor = require('../internals/is-constructor'); 387var isObject = require('../internals/is-object'); 388var wellKnownSymbol = require('../internals/well-known-symbol'); 389 390var SPECIES = wellKnownSymbol('species'); 391var $Array = Array; 392 393// a part of `ArraySpeciesCreate` abstract operation 394// https://tc39.es/ecma262/#sec-arrayspeciescreate 395module.exports = function (originalArray) { 396 var C; 397 if (isArray(originalArray)) { 398 C = originalArray.constructor; 399 // cross-realm fallback 400 if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; 401 else if (isObject(C)) { 402 C = C[SPECIES]; 403 if (C === null) C = undefined; 404 } 405 } return C === undefined ? $Array : C; 406}; 407 408},{"../internals/is-array":85,"../internals/is-constructor":87,"../internals/is-object":90,"../internals/well-known-symbol":178}],18:[function(require,module,exports){ 409'use strict'; 410var arraySpeciesConstructor = require('../internals/array-species-constructor'); 411 412// `ArraySpeciesCreate` abstract operation 413// https://tc39.es/ecma262/#sec-arrayspeciescreate 414module.exports = function (originalArray, length) { 415 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); 416}; 417 418},{"../internals/array-species-constructor":17}],19:[function(require,module,exports){ 419'use strict'; 420var call = require('../internals/function-call'); 421var getBuiltIn = require('../internals/get-built-in'); 422var getMethod = require('../internals/get-method'); 423 424module.exports = function (iterator, method, argument, reject) { 425 try { 426 var returnMethod = getMethod(iterator, 'return'); 427 if (returnMethod) { 428 return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () { 429 method(argument); 430 }, function (error) { 431 reject(error); 432 }); 433 } 434 } catch (error2) { 435 return reject(error2); 436 } method(argument); 437}; 438 439},{"../internals/function-call":62,"../internals/get-built-in":67,"../internals/get-method":72}],20:[function(require,module,exports){ 440'use strict'; 441var call = require('../internals/function-call'); 442var perform = require('../internals/perform'); 443var anObject = require('../internals/an-object'); 444var create = require('../internals/object-create'); 445var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 446var defineBuiltIns = require('../internals/define-built-ins'); 447var wellKnownSymbol = require('../internals/well-known-symbol'); 448var InternalStateModule = require('../internals/internal-state'); 449var getBuiltIn = require('../internals/get-built-in'); 450var getMethod = require('../internals/get-method'); 451var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); 452var createIterResultObject = require('../internals/create-iter-result-object'); 453var iteratorClose = require('../internals/iterator-close'); 454 455var Promise = getBuiltIn('Promise'); 456 457var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 458var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; 459var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator'; 460var setInternalState = InternalStateModule.set; 461 462var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
vendor: 5,907 bytes, lines 463-599
463 var IS_GENERATOR = !IS_ITERATOR; 464 var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER); 465 466 var getStateOrEarlyExit = function (that) { 467 var stateCompletion = perform(function () { 468 return getInternalState(that); 469 }); 470 471 var stateError = stateCompletion.error; 472 var state = stateCompletion.value; 473 474 if (stateError || (IS_GENERATOR && state.done)) { 475 return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) }; 476 } return { exit: false, value: state }; 477 }; 478 479 return defineBuiltIns(create(AsyncIteratorPrototype), { 480 next: function next() { 481 var stateCompletion = getStateOrEarlyExit(this); 482 var state = stateCompletion.value; 483 if (stateCompletion.exit) return state; 484 var handlerCompletion = perform(function () { 485 return anObject(state.nextHandler(Promise)); 486 }); 487 var handlerError = handlerCompletion.error; 488 var value = handlerCompletion.value; 489 if (handlerError) state.done = true; 490 return handlerError ? Promise.reject(value) : Promise.resolve(value); 491 }, 492 'return': function () { 493 var stateCompletion = getStateOrEarlyExit(this); 494 var state = stateCompletion.value; 495 if (stateCompletion.exit) return state; 496 state.done = true; 497 var iterator = state.iterator; 498 var returnMethod, result; 499 var completion = perform(function () { 500 if (state.inner) try { 501 iteratorClose(state.inner.iterator, 'normal'); 502 } catch (error) { 503 return iteratorClose(iterator, 'throw', error); 504 } 505 return getMethod(iterator, 'return'); 506 }); 507 returnMethod = result = completion.value; 508 if (completion.error) return Promise.reject(result); 509 if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true)); 510 completion = perform(function () { 511 return call(returnMethod, iterator); 512 }); 513 result = completion.value; 514 if (completion.error) return Promise.reject(result); 515 return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) { 516 anObject(resolved); 517 return createIterResultObject(undefined, true); 518 }); 519 } 520 }); 521}; 522 523var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true); 524var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); 525 526createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper'); 527 528module.exports = function (nextHandler, IS_ITERATOR) { 529 var AsyncIteratorProxy = function AsyncIterator(record, state) { 530 if (state) { 531 state.iterator = record.iterator; 532 state.next = record.next; 533 } else state = record; 534 state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; 535 state.nextHandler = nextHandler; 536 state.counter = 0; 537 state.done = false; 538 setInternalState(this, state); 539 }; 540 541 AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype; 542 543 return AsyncIteratorProxy; 544}; 545 546},{"../internals/an-object":7,"../internals/async-iterator-prototype":23,"../internals/create-iter-result-object":31,"../internals/create-non-enumerable-property":32,"../internals/define-built-ins":38,"../internals/function-call":62,"../internals/get-built-in":67,"../internals/get-method":72,"../internals/internal-state":83,"../internals/iterator-close":96,"../internals/object-create":110,"../internals/perform":128,"../internals/well-known-symbol":178}],21:[function(require,module,exports){ 547'use strict'; 548// https://github.com/tc39/proposal-iterator-helpers 549// https://github.com/tc39/proposal-array-from-async 550var call = require('../internals/function-call'); 551var aCallable = require('../internals/a-callable'); 552var anObject = require('../internals/an-object'); 553var isObject = require('../internals/is-object'); 554var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); 555var getBuiltIn = require('../internals/get-built-in'); 556var getIteratorDirect = require('../internals/get-iterator-direct'); 557var closeAsyncIteration = require('../internals/async-iterator-close'); 558 559var createMethod = function (TYPE) { 560 var IS_TO_ARRAY = TYPE === 0; 561 var IS_FOR_EACH = TYPE === 1; 562 var IS_EVERY = TYPE === 2; 563 var IS_SOME = TYPE === 3; 564 return function (object, fn, target) { 565 anObject(object); 566 var MAPPING = fn !== undefined; 567 if (MAPPING || !IS_TO_ARRAY) aCallable(fn); 568 var record = getIteratorDirect(object); 569 var Promise = getBuiltIn('Promise'); 570 var iterator = record.iterator; 571 var next = record.next; 572 var counter = 0; 573 574 return new Promise(function (resolve, reject) { 575 var ifAbruptCloseAsyncIterator = function (error) { 576 closeAsyncIteration(iterator, reject, error, reject); 577 }; 578 579 var loop = function () { 580 try { 581 if (MAPPING) try { 582 doesNotExceedSafeInteger(counter); 583 } catch (error5) { ifAbruptCloseAsyncIterator(error5); } 584 Promise.resolve(anObject(call(next, iterator))).then(function (step) { 585 try { 586 if (anObject(step).done) { 587 if (IS_TO_ARRAY) { 588 target.length = counter; 589 resolve(target); 590 } else resolve(IS_SOME ? false : IS_EVERY || undefined); 591 } else { 592 var value = step.value; 593 try { 594 if (MAPPING) { 595 var result = fn(value, counter); 596 597 var handler = function ($result) { 598 if (IS_FOR_EACH) { 599 loop();
vendor: 1,105 bytes, lines 600-625
600 } else if (IS_EVERY) { 601 $result ? loop() : closeAsyncIteration(iterator, resolve, false, reject); 602 } else if (IS_TO_ARRAY) { 603 try { 604 target[counter++] = $result; 605 loop(); 606 } catch (error4) { ifAbruptCloseAsyncIterator(error4); } 607 } else { 608 $result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop(); 609 } 610 }; 611 612 if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); 613 else handler(result); 614 } else { 615 target[counter++] = value; 616 loop(); 617 } 618 } catch (error3) { ifAbruptCloseAsyncIterator(error3); } 619 } 620 } catch (error2) { reject(error2); } 621 }, reject); 622 } catch (error) { reject(error); } 623 }; 624 625 loop();
626 }); 627 }; 628}; 629 630module.exports = { 631 toArray: createMethod(0), 632 forEach: createMethod(1), 633 every: createMethod(2), 634 some: createMethod(3), 635 find: createMethod(4) 636}; 637 638},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/async-iterator-close":19,"../internals/does-not-exceed-safe-integer":42,"../internals/function-call":62,"../internals/get-built-in":67,"../internals/get-iterator-direct":68,"../internals/is-object":90}],22:[function(require,module,exports){ 639'use strict'; 640var call = require('../internals/function-call'); 641var aCallable = require('../internals/a-callable'); 642var anObject = require('../internals/an-object'); 643var isObject = require('../internals/is-object'); 644var getIteratorDirect = require('../internals/get-iterator-direct'); 645var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); 646var createIterResultObject = require('../internals/create-iter-result-object'); 647var closeAsyncIteration = require('../internals/async-iterator-close'); 648 649var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { 650 var state = this; 651 var iterator = state.iterator; 652 var mapper = state.mapper; 653 654 return new Promise(function (resolve, reject) { 655 var doneAndReject = function (error) { 656 state.done = true; 657 reject(error); 658 }; 659 660 var ifAbruptCloseAsyncIterator = function (error) { 661 closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); 662 }; 663 664 Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { 665 try { 666 if (anObject(step).done) { 667 state.done = true; 668 resolve(createIterResultObject(undefined, true)); 669 } else { 670 var value = step.value; 671 try { 672 var result = mapper(value, state.counter++); 673 674 var handler = function (mapped) { 675 resolve(createIterResultObject(mapped, false)); 676 }; 677 678 if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); 679 else handler(result); 680 } catch (error2) { ifAbruptCloseAsyncIterator(error2); } 681 } 682 } catch (error) { doneAndReject(error); } 683 }, doneAndReject); 684 }); 685}); 686 687// `AsyncIterator.prototype.map` method 688// https://github.com/tc39/proposal-iterator-helpers 689module.exports = function map(mapper) { 690 anObject(this); 691 aCallable(mapper); 692 return new AsyncIteratorProxy(getIteratorDirect(this), { 693 mapper: mapper 694 }); 695}; 696 697},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/async-iterator-close":19,"../internals/async-iterator-create-proxy":20,"../internals/create-iter-result-object":31,"../internals/function-call":62,"../internals/get-iterator-direct":68,"../internals/is-object":90}],23:[function(require,module,exports){ 698'use strict'; 699var globalThis = require('../internals/global-this'); 700var shared = require('../internals/shared-store'); 701var isCallable = require('../internals/is-callable'); 702var create = require('../internals/object-create'); 703var getPrototypeOf = require('../internals/object-get-prototype-of'); 704var defineBuiltIn = require('../internals/define-built-in'); 705var wellKnownSymbol = require('../internals/well-known-symbol'); 706var IS_PURE = require('../internals/is-pure'); 707 708var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR'; 709var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); 710var AsyncIterator = globalThis.AsyncIterator; 711var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype; 712var AsyncIteratorPrototype, prototype; 713 714if (PassedAsyncIteratorPrototype) { 715 AsyncIteratorPrototype = PassedAsyncIteratorPrototype; 716} else if (isCallable(AsyncIterator)) { 717 AsyncIteratorPrototype = AsyncIterator.prototype; 718} else if (shared[USE_FUNCTION_CONSTRUCTOR] || globalThis[USE_FUNCTION_CONSTRUCTOR]) { 719 try { 720 // eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax 721 prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')()))); 722 if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype; 723 } catch (error) { /* empty */ } 724} 725 726if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {}; 727else if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype); 728 729if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) { 730 defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () { 731 return this; 732 }); 733} 734 735module.exports = AsyncIteratorPrototype; 736 737},{"../internals/define-built-in":37,"../internals/global-this":73,"../internals/is-callable":86,"../internals/is-pure":92,"../internals/object-create":110,"../internals/object-get-prototype-of":117,"../internals/shared-store":148,"../internals/well-known-symbol":178}],24:[function(require,module,exports){ 738'use strict'; 739var anObject = require('../internals/an-object'); 740var iteratorClose = require('../internals/iterator-close'); 741 742// call something on iterator step with safe closing on error 743module.exports = function (iterator, fn, value, ENTRIES) { 744 try { 745 return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); 746 } catch (error) { 747 iteratorClose(iterator, 'throw', error); 748 } 749}; 750 751},{"../internals/an-object":7,"../internals/iterator-close":96}],25:[function(require,module,exports){ 752'use strict'; 753var wellKnownSymbol = require('../internals/well-known-symbol'); 754
vendor: 4,774 bytes, lines 755-891
755var ITERATOR = wellKnownSymbol('iterator'); 756var SAFE_CLOSING = false; 757 758try { 759 var called = 0; 760 var iteratorWithReturn = { 761 next: function () { 762 return { done: !!called++ }; 763 }, 764 'return': function () { 765 SAFE_CLOSING = true; 766 } 767 }; 768 iteratorWithReturn[ITERATOR] = function () { 769 return this; 770 }; 771 // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing 772 Array.from(iteratorWithReturn, function () { throw 2; }); 773} catch (error) { /* empty */ } 774 775module.exports = function (exec, SKIP_CLOSING) { 776 try { 777 if (!SKIP_CLOSING && !SAFE_CLOSING) return false; 778 } catch (error) { return false; } // workaround of old WebKit + `eval` bug 779 var ITERATION_SUPPORT = false; 780 try { 781 var object = {}; 782 object[ITERATOR] = function () { 783 return { 784 next: function () { 785 return { done: ITERATION_SUPPORT = true }; 786 } 787 }; 788 }; 789 exec(object); 790 } catch (error) { /* empty */ } 791 return ITERATION_SUPPORT; 792}; 793 794},{"../internals/well-known-symbol":178}],26:[function(require,module,exports){ 795'use strict'; 796var uncurryThis = require('../internals/function-uncurry-this'); 797 798var toString = uncurryThis({}.toString); 799var stringSlice = uncurryThis(''.slice); 800 801module.exports = function (it) { 802 return stringSlice(toString(it), 8, -1); 803}; 804 805},{"../internals/function-uncurry-this":66}],27:[function(require,module,exports){ 806'use strict'; 807var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); 808var isCallable = require('../internals/is-callable'); 809var classofRaw = require('../internals/classof-raw'); 810var wellKnownSymbol = require('../internals/well-known-symbol'); 811 812var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 813var $Object = Object; 814 815// ES3 wrong here 816var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments'; 817 818// fallback for IE11 Script Access Denied error 819var tryGet = function (it, key) { 820 try { 821 return it[key]; 822 } catch (error) { /* empty */ } 823}; 824 825// getting tag from ES6+ `Object.prototype.toString` 826module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { 827 var O, tag, result; 828 return it === undefined ? 'Undefined' : it === null ? 'Null' 829 // @@toStringTag case 830 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag 831 // builtinTag case 832 : CORRECT_ARGUMENTS ? classofRaw(O) 833 // ES3 arguments fallback 834 : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result; 835}; 836 837},{"../internals/classof-raw":26,"../internals/is-callable":86,"../internals/to-string-tag-support":167,"../internals/well-known-symbol":178}],28:[function(require,module,exports){ 838'use strict'; 839var hasOwn = require('../internals/has-own-property'); 840var ownKeys = require('../internals/own-keys'); 841var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); 842var definePropertyModule = require('../internals/object-define-property'); 843 844module.exports = function (target, source, exceptions) { 845 var keys = ownKeys(source); 846 var defineProperty = definePropertyModule.f; 847 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; 848 for (var i = 0; i < keys.length; i++) { 849 var key = keys[i]; 850 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { 851 defineProperty(target, key, getOwnPropertyDescriptor(source, key)); 852 } 853 } 854}; 855 856},{"../internals/has-own-property":74,"../internals/object-define-property":112,"../internals/object-get-own-property-descriptor":113,"../internals/own-keys":125}],29:[function(require,module,exports){ 857'use strict'; 858var wellKnownSymbol = require('../internals/well-known-symbol'); 859 860var MATCH = wellKnownSymbol('match'); 861 862module.exports = function (METHOD_NAME) { 863 var regexp = /./; 864 try { 865 '/./'[METHOD_NAME](regexp); 866 } catch (error1) { 867 try { 868 regexp[MATCH] = false; 869 return '/./'[METHOD_NAME](regexp); 870 } catch (error2) { /* empty */ } 871 } return false; 872}; 873 874},{"../internals/well-known-symbol":178}],30:[function(require,module,exports){ 875'use strict'; 876var fails = require('../internals/fails'); 877 878module.exports = !fails(function () { 879 function F() { /* empty */ } 880 F.prototype.constructor = null; 881 // eslint-disable-next-line es/no-object-getprototypeof -- required for testing 882 return Object.getPrototypeOf(new F()) !== F.prototype; 883}); 884 885},{"../internals/fails":57}],31:[function(require,module,exports){ 886'use strict'; 887// `CreateIterResultObject` abstract operation 888// https://tc39.es/ecma262/#sec-createiterresultobject 889module.exports = function (value, done) { 890 return { value: value, done: done }; 891};
vendor: 14,344 bytes, lines 892-1260
892 893},{}],32:[function(require,module,exports){ 894'use strict'; 895var DESCRIPTORS = require('../internals/descriptors'); 896var definePropertyModule = require('../internals/object-define-property'); 897var createPropertyDescriptor = require('../internals/create-property-descriptor'); 898 899module.exports = DESCRIPTORS ? function (object, key, value) { 900 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); 901} : function (object, key, value) { 902 object[key] = value; 903 return object; 904}; 905 906},{"../internals/create-property-descriptor":33,"../internals/descriptors":40,"../internals/object-define-property":112}],33:[function(require,module,exports){ 907'use strict'; 908module.exports = function (bitmap, value) { 909 return { 910 enumerable: !(bitmap & 1), 911 configurable: !(bitmap & 2), 912 writable: !(bitmap & 4), 913 value: value 914 }; 915}; 916 917},{}],34:[function(require,module,exports){ 918'use strict'; 919var DESCRIPTORS = require('../internals/descriptors'); 920var definePropertyModule = require('../internals/object-define-property'); 921var createPropertyDescriptor = require('../internals/create-property-descriptor'); 922 923module.exports = function (object, key, value) { 924 if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); 925 else object[key] = value; 926}; 927 928},{"../internals/create-property-descriptor":33,"../internals/descriptors":40,"../internals/object-define-property":112}],35:[function(require,module,exports){ 929'use strict'; 930var anObject = require('../internals/an-object'); 931var ordinaryToPrimitive = require('../internals/ordinary-to-primitive'); 932 933var $TypeError = TypeError; 934 935// `Date.prototype[@@toPrimitive](hint)` method implementation 936// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive 937module.exports = function (hint) { 938 anObject(this); 939 if (hint === 'string' || hint === 'default') hint = 'string'; 940 else if (hint !== 'number') throw new $TypeError('Incorrect hint'); 941 return ordinaryToPrimitive(this, hint); 942}; 943 944},{"../internals/an-object":7,"../internals/ordinary-to-primitive":124}],36:[function(require,module,exports){ 945'use strict'; 946var makeBuiltIn = require('../internals/make-built-in'); 947var defineProperty = require('../internals/object-define-property'); 948 949module.exports = function (target, name, descriptor) { 950 if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); 951 if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); 952 return defineProperty.f(target, name, descriptor); 953}; 954 955},{"../internals/make-built-in":104,"../internals/object-define-property":112}],37:[function(require,module,exports){ 956'use strict'; 957var isCallable = require('../internals/is-callable'); 958var definePropertyModule = require('../internals/object-define-property'); 959var makeBuiltIn = require('../internals/make-built-in'); 960var defineGlobalProperty = require('../internals/define-global-property'); 961 962module.exports = function (O, key, value, options) { 963 if (!options) options = {}; 964 var simple = options.enumerable; 965 var name = options.name !== undefined ? options.name : key; 966 if (isCallable(value)) makeBuiltIn(value, name, options); 967 if (options.global) { 968 if (simple) O[key] = value; 969 else defineGlobalProperty(key, value); 970 } else { 971 try { 972 if (!options.unsafe) delete O[key]; 973 else if (O[key]) simple = true; 974 } catch (error) { /* empty */ } 975 if (simple) O[key] = value; 976 else definePropertyModule.f(O, key, { 977 value: value, 978 enumerable: false, 979 configurable: !options.nonConfigurable, 980 writable: !options.nonWritable 981 }); 982 } return O; 983}; 984 985},{"../internals/define-global-property":39,"../internals/is-callable":86,"../internals/make-built-in":104,"../internals/object-define-property":112}],38:[function(require,module,exports){ 986'use strict'; 987var defineBuiltIn = require('../internals/define-built-in'); 988 989module.exports = function (target, src, options) { 990 for (var key in src) defineBuiltIn(target, key, src[key], options); 991 return target; 992}; 993 994},{"../internals/define-built-in":37}],39:[function(require,module,exports){ 995'use strict'; 996var globalThis = require('../internals/global-this'); 997 998// eslint-disable-next-line es/no-object-defineproperty -- safe 999var defineProperty = Object.defineProperty; 1000 1001module.exports = function (key, value) { 1002 try { 1003 defineProperty(globalThis, key, { value: value, configurable: true, writable: true }); 1004 } catch (error) { 1005 globalThis[key] = value; 1006 } return value; 1007}; 1008 1009},{"../internals/global-this":73}],40:[function(require,module,exports){ 1010'use strict'; 1011var fails = require('../internals/fails'); 1012 1013// Detect IE8's incomplete defineProperty implementation 1014module.exports = !fails(function () { 1015 // eslint-disable-next-line es/no-object-defineproperty -- required for testing 1016 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; 1017}); 1018 1019},{"../internals/fails":57}],41:[function(require,module,exports){ 1020'use strict'; 1021var globalThis = require('../internals/global-this'); 1022var isObject = require('../internals/is-object'); 1023 1024var document = globalThis.document; 1025// typeof document.createElement is 'object' in old IE 1026var EXISTS = isObject(document) && isObject(document.createElement); 1027 1028module.exports = function (it) { 1029 return EXISTS ? document.createElement(it) : {}; 1030}; 1031 1032},{"../internals/global-this":73,"../internals/is-object":90}],42:[function(require,module,exports){ 1033'use strict'; 1034var $TypeError = TypeError; 1035var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 1036 1037module.exports = function (it) { 1038 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); 1039 return it; 1040}; 1041 1042},{}],43:[function(require,module,exports){ 1043'use strict'; 1044// iterable DOM collections 1045// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods 1046module.exports = { 1047 CSSRuleList: 0, 1048 CSSStyleDeclaration: 0, 1049 CSSValueList: 0, 1050 ClientRectList: 0, 1051 DOMRectList: 0, 1052 DOMStringList: 0, 1053 DOMTokenList: 1, 1054 DataTransferItemList: 0, 1055 FileList: 0, 1056 HTMLAllCollection: 0, 1057 HTMLCollection: 0, 1058 HTMLFormElement: 0, 1059 HTMLSelectElement: 0, 1060 MediaList: 0, 1061 MimeTypeArray: 0, 1062 NamedNodeMap: 0, 1063 NodeList: 1, 1064 PaintRequestList: 0, 1065 Plugin: 0, 1066 PluginArray: 0, 1067 SVGLengthList: 0, 1068 SVGNumberList: 0, 1069 SVGPathSegList: 0, 1070 SVGPointList: 0, 1071 SVGStringList: 0, 1072 SVGTransformList: 0, 1073 SourceBufferList: 0, 1074 StyleSheetList: 0, 1075 TextTrackCueList: 0, 1076 TextTrackList: 0, 1077 TouchList: 0 1078}; 1079 1080},{}],44:[function(require,module,exports){ 1081'use strict'; 1082// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` 1083var documentCreateElement = require('../internals/document-create-element'); 1084 1085var classList = documentCreateElement('span').classList; 1086var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; 1087 1088module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype; 1089 1090},{"../internals/document-create-element":41}],45:[function(require,module,exports){ 1091'use strict'; 1092// IE8- don't enum bug keys 1093module.exports = [ 1094 'constructor', 1095 'hasOwnProperty', 1096 'isPrototypeOf', 1097 'propertyIsEnumerable', 1098 'toLocaleString', 1099 'toString', 1100 'valueOf' 1101]; 1102 1103},{}],46:[function(require,module,exports){ 1104'use strict'; 1105var userAgent = require('../internals/environment-user-agent'); 1106 1107module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; 1108 1109},{"../internals/environment-user-agent":50}],47:[function(require,module,exports){ 1110'use strict'; 1111var userAgent = require('../internals/environment-user-agent'); 1112 1113// eslint-disable-next-line redos/no-vulnerable -- safe 1114module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); 1115 1116},{"../internals/environment-user-agent":50}],48:[function(require,module,exports){ 1117'use strict'; 1118var ENVIRONMENT = require('../internals/environment'); 1119 1120module.exports = ENVIRONMENT === 'NODE'; 1121 1122},{"../internals/environment":52}],49:[function(require,module,exports){ 1123'use strict'; 1124var userAgent = require('../internals/environment-user-agent'); 1125 1126module.exports = /web0s(?!.*chrome)/i.test(userAgent); 1127 1128},{"../internals/environment-user-agent":50}],50:[function(require,module,exports){ 1129'use strict'; 1130var globalThis = require('../internals/global-this'); 1131 1132var navigator = globalThis.navigator; 1133var userAgent = navigator && navigator.userAgent; 1134 1135module.exports = userAgent ? String(userAgent) : ''; 1136 1137},{"../internals/global-this":73}],51:[function(require,module,exports){ 1138'use strict'; 1139var globalThis = require('../internals/global-this'); 1140var userAgent = require('../internals/environment-user-agent'); 1141 1142var process = globalThis.process; 1143var Deno = globalThis.Deno; 1144var versions = process && process.versions || Deno && Deno.version; 1145var v8 = versions && versions.v8; 1146var match, version; 1147 1148if (v8) { 1149 match = v8.split('.'); 1150 // in old Chrome, versions of V8 isn't V8 = Chrome / 10 1151 // but their correct versions are not interesting for us 1152 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); 1153} 1154 1155// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` 1156// so check `userAgent` even if `.v8` exists, but 0 1157if (!version && userAgent) { 1158 match = userAgent.match(/Edge\/(\d+)/); 1159 if (!match || match[1] >= 74) { 1160 match = userAgent.match(/Chrome\/(\d+)/); 1161 if (match) version = +match[1]; 1162 } 1163} 1164 1165module.exports = version; 1166 1167},{"../internals/environment-user-agent":50,"../internals/global-this":73}],52:[function(require,module,exports){ 1168'use strict'; 1169/* global Bun, Deno -- detection */ 1170var globalThis = require('../internals/global-this'); 1171var userAgent = require('../internals/environment-user-agent'); 1172var classof = require('../internals/classof-raw'); 1173 1174var userAgentStartsWith = function (string) { 1175 return userAgent.slice(0, string.length) === string; 1176}; 1177 1178module.exports = (function () { 1179 if (userAgentStartsWith('Bun/')) return 'BUN'; 1180 if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE'; 1181 if (userAgentStartsWith('Deno/')) return 'DENO'; 1182 if (userAgentStartsWith('Node.js/')) return 'NODE'; 1183 if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN'; 1184 if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO'; 1185 if (classof(globalThis.process) === 'process') return 'NODE'; 1186 if (globalThis.window && globalThis.document) return 'BROWSER'; 1187 return 'REST'; 1188})(); 1189 1190},{"../internals/classof-raw":26,"../internals/environment-user-agent":50,"../internals/global-this":73}],53:[function(require,module,exports){ 1191'use strict'; 1192var uncurryThis = require('../internals/function-uncurry-this'); 1193 1194var $Error = Error; 1195var replace = uncurryThis(''.replace); 1196 1197var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd'); 1198// eslint-disable-next-line redos/no-vulnerable -- safe 1199var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; 1200var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); 1201 1202module.exports = function (stack, dropEntries) { 1203 if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { 1204 while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); 1205 } return stack; 1206}; 1207 1208},{"../internals/function-uncurry-this":66}],54:[function(require,module,exports){ 1209'use strict'; 1210var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 1211var clearErrorStack = require('../internals/error-stack-clear'); 1212var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); 1213 1214// non-standard V8 1215var captureStackTrace = Error.captureStackTrace; 1216 1217module.exports = function (error, C, stack, dropEntries) { 1218 if (ERROR_STACK_INSTALLABLE) { 1219 if (captureStackTrace) captureStackTrace(error, C); 1220 else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries)); 1221 } 1222}; 1223 1224},{"../internals/create-non-enumerable-property":32,"../internals/error-stack-clear":53,"../internals/error-stack-installable":55}],55:[function(require,module,exports){ 1225'use strict'; 1226var fails = require('../internals/fails'); 1227var createPropertyDescriptor = require('../internals/create-property-descriptor'); 1228 1229module.exports = !fails(function () { 1230 var error = new Error('a'); 1231 if (!('stack' in error)) return true; 1232 // eslint-disable-next-line es/no-object-defineproperty -- safe 1233 Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); 1234 return error.stack !== 7; 1235}); 1236 1237},{"../internals/create-property-descriptor":33,"../internals/fails":57}],56:[function(require,module,exports){ 1238'use strict'; 1239var globalThis = require('../internals/global-this'); 1240var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; 1241var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 1242var defineBuiltIn = require('../internals/define-built-in'); 1243var defineGlobalProperty = require('../internals/define-global-property'); 1244var copyConstructorProperties = require('../internals/copy-constructor-properties'); 1245var isForced = require('../internals/is-forced'); 1246 1247/* 1248 options.target - name of the target object 1249 options.global - target is the global object 1250 options.stat - export as static methods of target 1251 options.proto - export as prototype methods of target 1252 options.real - real prototype method for the `pure` version 1253 options.forced - export even if the native feature is available 1254 options.bind - bind methods to the target, required for the `pure` version 1255 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version 1256 options.unsafe - use the simple assignment of property instead of delete + defineProperty 1257 options.sham - add a flag to not completely full polyfills 1258 options.enumerable - export as enumerable property 1259 options.dontCallGetSet - prevent calling a getter on target 1260 options.name - the .name of the function if it does not match the key
vendor: 4,339 bytes, lines 1261-1373
1261*/ 1262module.exports = function (options, source) { 1263 var TARGET = options.target; 1264 var GLOBAL = options.global; 1265 var STATIC = options.stat; 1266 var FORCED, target, key, targetProperty, sourceProperty, descriptor; 1267 if (GLOBAL) { 1268 target = globalThis; 1269 } else if (STATIC) { 1270 target = globalThis[TARGET] || defineGlobalProperty(TARGET, {}); 1271 } else { 1272 target = globalThis[TARGET] && globalThis[TARGET].prototype; 1273 } 1274 if (target) for (key in source) { 1275 sourceProperty = source[key]; 1276 if (options.dontCallGetSet) { 1277 descriptor = getOwnPropertyDescriptor(target, key); 1278 targetProperty = descriptor && descriptor.value; 1279 } else targetProperty = target[key]; 1280 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); 1281 // contained in target 1282 if (!FORCED && targetProperty !== undefined) { 1283 if (typeof sourceProperty == typeof targetProperty) continue; 1284 copyConstructorProperties(sourceProperty, targetProperty); 1285 } 1286 // add a flag to not completely full polyfills 1287 if (options.sham || (targetProperty && targetProperty.sham)) { 1288 createNonEnumerableProperty(sourceProperty, 'sham', true); 1289 } 1290 defineBuiltIn(target, key, sourceProperty, options); 1291 } 1292}; 1293 1294},{"../internals/copy-constructor-properties":28,"../internals/create-non-enumerable-property":32,"../internals/define-built-in":37,"../internals/define-global-property":39,"../internals/global-this":73,"../internals/is-forced":88,"../internals/object-get-own-property-descriptor":113}],57:[function(require,module,exports){ 1295'use strict'; 1296module.exports = function (exec) { 1297 try { 1298 return !!exec(); 1299 } catch (error) { 1300 return true; 1301 } 1302}; 1303 1304},{}],58:[function(require,module,exports){ 1305'use strict'; 1306// TODO: Remove from `core-js@4` since it's moved to entry points 1307require('../modules/es.regexp.exec'); 1308var call = require('../internals/function-call'); 1309var defineBuiltIn = require('../internals/define-built-in'); 1310var regexpExec = require('../internals/regexp-exec'); 1311var fails = require('../internals/fails'); 1312var wellKnownSymbol = require('../internals/well-known-symbol'); 1313var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 1314 1315var SPECIES = wellKnownSymbol('species'); 1316var RegExpPrototype = RegExp.prototype; 1317 1318module.exports = function (KEY, exec, FORCED, SHAM) { 1319 var SYMBOL = wellKnownSymbol(KEY); 1320 1321 var DELEGATES_TO_SYMBOL = !fails(function () { 1322 // String methods call symbol-named RegExp methods 1323 var O = {}; 1324 O[SYMBOL] = function () { return 7; }; 1325 return ''[KEY](O) !== 7; 1326 }); 1327 1328 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { 1329 // Symbol-named RegExp methods call .exec 1330 var execCalled = false; 1331 var re = /a/; 1332 1333 if (KEY === 'split') { 1334 // We can't use real regex here since it causes deoptimization 1335 // and serious performance degradation in V8 1336 // https://github.com/zloirock/core-js/issues/306 1337 re = {}; 1338 // RegExp[@@split] doesn't call the regex's exec method, but first creates 1339 // a new one. We need to return the patched regex when creating the new one. 1340 re.constructor = {}; 1341 re.constructor[SPECIES] = function () { return re; }; 1342 re.flags = ''; 1343 re[SYMBOL] = /./[SYMBOL]; 1344 } 1345 1346 re.exec = function () { 1347 execCalled = true; 1348 return null; 1349 }; 1350 1351 re[SYMBOL](''); 1352 return !execCalled; 1353 }); 1354 1355 if ( 1356 !DELEGATES_TO_SYMBOL || 1357 !DELEGATES_TO_EXEC || 1358 FORCED 1359 ) { 1360 var nativeRegExpMethod = /./[SYMBOL]; 1361 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { 1362 var $exec = regexp.exec; 1363 if ($exec === regexpExec || $exec === RegExpPrototype.exec) { 1364 if (DELEGATES_TO_SYMBOL && !forceStringMethod) { 1365 // The native String method already delegates to @@method (this 1366 // polyfilled function), leasing to infinite recursion. 1367 // We avoid it by directly calling the native @@method method. 1368 return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) }; 1369 } 1370 return { done: true, value: call(nativeMethod, str, regexp, arg2) }; 1371 } 1372 return { done: false }; 1373 });
vendor: 4,127 bytes, lines 1374-1476
1374 1375 defineBuiltIn(String.prototype, KEY, methods[0]); 1376 defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); 1377 } 1378 1379 if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true); 1380}; 1381 1382},{"../internals/create-non-enumerable-property":32,"../internals/define-built-in":37,"../internals/fails":57,"../internals/function-call":62,"../internals/regexp-exec":136,"../internals/well-known-symbol":178,"../modules/es.regexp.exec":212}],59:[function(require,module,exports){ 1383'use strict'; 1384var NATIVE_BIND = require('../internals/function-bind-native'); 1385 1386var FunctionPrototype = Function.prototype; 1387var apply = FunctionPrototype.apply; 1388var call = FunctionPrototype.call; 1389 1390// eslint-disable-next-line es/no-reflect -- safe 1391module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { 1392 return call.apply(apply, arguments); 1393}); 1394 1395},{"../internals/function-bind-native":61}],60:[function(require,module,exports){ 1396'use strict'; 1397var uncurryThis = require('../internals/function-uncurry-this-clause'); 1398var aCallable = require('../internals/a-callable'); 1399var NATIVE_BIND = require('../internals/function-bind-native'); 1400 1401var bind = uncurryThis(uncurryThis.bind); 1402 1403// optional / simple context binding 1404module.exports = function (fn, that) { 1405 aCallable(fn); 1406 return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { 1407 return fn.apply(that, arguments); 1408 }; 1409}; 1410 1411},{"../internals/a-callable":1,"../internals/function-bind-native":61,"../internals/function-uncurry-this-clause":65}],61:[function(require,module,exports){ 1412'use strict'; 1413var fails = require('../internals/fails'); 1414 1415module.exports = !fails(function () { 1416 // eslint-disable-next-line es/no-function-prototype-bind -- safe 1417 var test = (function () { /* empty */ }).bind(); 1418 // eslint-disable-next-line no-prototype-builtins -- safe 1419 return typeof test != 'function' || test.hasOwnProperty('prototype'); 1420}); 1421 1422},{"../internals/fails":57}],62:[function(require,module,exports){ 1423'use strict'; 1424var NATIVE_BIND = require('../internals/function-bind-native'); 1425 1426var call = Function.prototype.call; 1427 1428module.exports = NATIVE_BIND ? call.bind(call) : function () { 1429 return call.apply(call, arguments); 1430}; 1431 1432},{"../internals/function-bind-native":61}],63:[function(require,module,exports){ 1433'use strict'; 1434var DESCRIPTORS = require('../internals/descriptors'); 1435var hasOwn = require('../internals/has-own-property'); 1436 1437var FunctionPrototype = Function.prototype; 1438// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 1439var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; 1440 1441var EXISTS = hasOwn(FunctionPrototype, 'name'); 1442// additional protection from minified / mangled / dropped function names 1443var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; 1444var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable)); 1445 1446module.exports = { 1447 EXISTS: EXISTS, 1448 PROPER: PROPER, 1449 CONFIGURABLE: CONFIGURABLE 1450}; 1451 1452},{"../internals/descriptors":40,"../internals/has-own-property":74}],64:[function(require,module,exports){ 1453'use strict'; 1454var uncurryThis = require('../internals/function-uncurry-this'); 1455var aCallable = require('../internals/a-callable'); 1456 1457module.exports = function (object, key, method) { 1458 try { 1459 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 1460 return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); 1461 } catch (error) { /* empty */ } 1462}; 1463 1464},{"../internals/a-callable":1,"../internals/function-uncurry-this":66}],65:[function(require,module,exports){ 1465'use strict'; 1466var classofRaw = require('../internals/classof-raw'); 1467var uncurryThis = require('../internals/function-uncurry-this'); 1468 1469module.exports = function (fn) { 1470 // Nashorn bug: 1471 // https://github.com/zloirock/core-js/issues/1128 1472 // https://github.com/zloirock/core-js/issues/1130 1473 if (classofRaw(fn) === 'Function') return uncurryThis(fn); 1474}; 1475 1476}
vendor: 2,755 bytes, lines 1476-1545
1476,{"../internals/classof-raw":26,"../internals/function-uncurry-this":66}],66:[function(require,module,exports){ 1477'use strict'; 1478var NATIVE_BIND = require('../internals/function-bind-native'); 1479 1480var FunctionPrototype = Function.prototype; 1481var call = FunctionPrototype.call; 1482var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); 1483 1484module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { 1485 return function () { 1486 return call.apply(fn, arguments); 1487 }; 1488}; 1489 1490},{"../internals/function-bind-native":61}],67:[function(require,module,exports){ 1491'use strict'; 1492var globalThis = require('../internals/global-this'); 1493var isCallable = require('../internals/is-callable'); 1494 1495var aFunction = function (argument) { 1496 return isCallable(argument) ? argument : undefined; 1497}; 1498 1499module.exports = function (namespace, method) { 1500 return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]; 1501}; 1502 1503},{"../internals/global-this":73,"../internals/is-callable":86}],68:[function(require,module,exports){ 1504'use strict'; 1505// `GetIteratorDirect(obj)` abstract operation 1506// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect 1507module.exports = function (obj) { 1508 return { 1509 iterator: obj, 1510 next: obj.next, 1511 done: false 1512 }; 1513}; 1514 1515},{}],69:[function(require,module,exports){ 1516'use strict'; 1517var classof = require('../internals/classof'); 1518var getMethod = require('../internals/get-method'); 1519var isNullOrUndefined = require('../internals/is-null-or-undefined'); 1520var Iterators = require('../internals/iterators'); 1521var wellKnownSymbol = require('../internals/well-known-symbol'); 1522 1523var ITERATOR = wellKnownSymbol('iterator'); 1524 1525module.exports = function (it) { 1526 if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) 1527 || getMethod(it, '@@iterator') 1528 || Iterators[classof(it)]; 1529}; 1530 1531},{"../internals/classof":27,"../internals/get-method":72,"../internals/is-null-or-undefined":89,"../internals/iterators":102,"../internals/well-known-symbol":178}],70:[function(require,module,exports){ 1532'use strict'; 1533var call = require('../internals/function-call'); 1534var aCallable = require('../internals/a-callable'); 1535var anObject = require('../internals/an-object'); 1536var tryToString = require('../internals/try-to-string'); 1537var getIteratorMethod = require('../internals/get-iterator-method'); 1538 1539var $TypeError = TypeError; 1540 1541module.exports = function (argument, usingIterator) { 1542 var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; 1543 if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); 1544 throw new $TypeError(tryToString(argument) + ' is not iterable'); 1545};
vendor: 4,583 bytes, lines 1546-1659
1546 1547},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/function-call":62,"../internals/get-iterator-method":69,"../internals/try-to-string":169}],71:[function(require,module,exports){ 1548'use strict'; 1549var uncurryThis = require('../internals/function-uncurry-this'); 1550var isArray = require('../internals/is-array'); 1551var isCallable = require('../internals/is-callable'); 1552var classof = require('../internals/classof-raw'); 1553var toString = require('../internals/to-string'); 1554 1555var push = uncurryThis([].push); 1556 1557module.exports = function (replacer) { 1558 if (isCallable(replacer)) return replacer; 1559 if (!isArray(replacer)) return; 1560 var rawLength = replacer.length; 1561 var keys = []; 1562 for (var i = 0; i < rawLength; i++) { 1563 var element = replacer[i]; 1564 if (typeof element == 'string') push(keys, element); 1565 else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element)); 1566 } 1567 var keysLength = keys.length; 1568 var root = true; 1569 return function (key, value) { 1570 if (root) { 1571 root = false; 1572 return value; 1573 } 1574 if (isArray(this)) return value; 1575 for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value; 1576 }; 1577}; 1578 1579},{"../internals/classof-raw":26,"../internals/function-uncurry-this":66,"../internals/is-array":85,"../internals/is-callable":86,"../internals/to-string":168}],72:[function(require,module,exports){ 1580'use strict'; 1581var aCallable = require('../internals/a-callable'); 1582var isNullOrUndefined = require('../internals/is-null-or-undefined'); 1583 1584// `GetMethod` abstract operation 1585// https://tc39.es/ecma262/#sec-getmethod 1586module.exports = function (V, P) { 1587 var func = V[P]; 1588 return isNullOrUndefined(func) ? undefined : aCallable(func); 1589}; 1590 1591},{"../internals/a-callable":1,"../internals/is-null-or-undefined":89}],73:[function(require,module,exports){ 1592(function (global){(function (){ 1593'use strict'; 1594var check = function (it) { 1595 return it && it.Math === Math && it; 1596}; 1597 1598// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1599module.exports = 1600 // eslint-disable-next-line es/no-global-this -- safe 1601 check(typeof globalThis == 'object' && globalThis) || 1602 check(typeof window == 'object' && window) || 1603 // eslint-disable-next-line no-restricted-globals -- safe 1604 check(typeof self == 'object' && self) || 1605 check(typeof global == 'object' && global) || 1606 check(typeof this == 'object' && this) || 1607 // eslint-disable-next-line no-new-func -- fallback 1608 (function () { return this; })() || Function('return this')(); 1609 1610}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) 1611},{}],74:[function(require,module,exports){ 1612'use strict'; 1613var uncurryThis = require('../internals/function-uncurry-this'); 1614var toObject = require('../internals/to-object'); 1615 1616var hasOwnProperty = uncurryThis({}.hasOwnProperty); 1617 1618// `HasOwnProperty` abstract operation 1619// https://tc39.es/ecma262/#sec-hasownproperty 1620// eslint-disable-next-line es/no-object-hasown -- safe 1621module.exports = Object.hasOwn || function hasOwn(it, key) { 1622 return hasOwnProperty(toObject(it), key); 1623}; 1624 1625},{"../internals/function-uncurry-this":66,"../internals/to-object":164}],75:[function(require,module,exports){ 1626'use strict'; 1627module.exports = {}; 1628 1629},{}],76:[function(require,module,exports){ 1630'use strict'; 1631module.exports = function (a, b) { 1632 try { 1633 // eslint-disable-next-line no-console -- safe 1634 arguments.length === 1 ? console.error(a) : console.error(a, b); 1635 } catch (error) { /* empty */ } 1636}; 1637 1638},{}],77:[function(require,module,exports){ 1639'use strict'; 1640var getBuiltIn = require('../internals/get-built-in'); 1641 1642module.exports = getBuiltIn('document', 'documentElement'); 1643 1644},{"../internals/get-built-in":67}],78:[function(require,module,exports){ 1645'use strict'; 1646var DESCRIPTORS = require('../internals/descriptors'); 1647var fails = require('../internals/fails'); 1648var createElement = require('../internals/document-create-element'); 1649 1650// Thanks to IE8 for its funny defineProperty 1651module.exports = !DESCRIPTORS && !fails(function () { 1652 // eslint-disable-next-line es/no-object-defineproperty -- required for testing 1653 return Object.defineProperty(createElement('div'), 'a', { 1654 get: function () { return 7; } 1655 }).a !== 7; 1656}); 1657 1658},{"../internals/descriptors":40,"../internals/document-create-element":41,"../internals/fails":57}],79:[function(require,module,exports){ 1659'use strict';
vendor: 9,787 bytes, lines 1660-1919
1660var uncurryThis = require('../internals/function-uncurry-this'); 1661var fails = require('../internals/fails'); 1662var classof = require('../internals/classof-raw'); 1663 1664var $Object = Object; 1665var split = uncurryThis(''.split); 1666 1667// fallback for non-array-like ES3 and non-enumerable old V8 strings 1668module.exports = fails(function () { 1669 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 1670 // eslint-disable-next-line no-prototype-builtins -- safe 1671 return !$Object('z').propertyIsEnumerable(0); 1672}) ? function (it) { 1673 return classof(it) === 'String' ? split(it, '') : $Object(it); 1674} : $Object; 1675 1676},{"../internals/classof-raw":26,"../internals/fails":57,"../internals/function-uncurry-this":66}],80:[function(require,module,exports){ 1677'use strict'; 1678var isCallable = require('../internals/is-callable'); 1679var isObject = require('../internals/is-object'); 1680var setPrototypeOf = require('../internals/object-set-prototype-of'); 1681 1682// makes subclassing work correct for wrapped built-ins 1683module.exports = function ($this, dummy, Wrapper) { 1684 var NewTarget, NewTargetPrototype; 1685 if ( 1686 // it can work only with native `setPrototypeOf` 1687 setPrototypeOf && 1688 // we haven't completely correct pre-ES6 way for getting `new.target`, so use this 1689 isCallable(NewTarget = dummy.constructor) && 1690 NewTarget !== Wrapper && 1691 isObject(NewTargetPrototype = NewTarget.prototype) && 1692 NewTargetPrototype !== Wrapper.prototype 1693 ) setPrototypeOf($this, NewTargetPrototype); 1694 return $this; 1695}; 1696 1697},{"../internals/is-callable":86,"../internals/is-object":90,"../internals/object-set-prototype-of":122}],81:[function(require,module,exports){ 1698'use strict'; 1699var uncurryThis = require('../internals/function-uncurry-this'); 1700var isCallable = require('../internals/is-callable'); 1701var store = require('../internals/shared-store'); 1702 1703var functionToString = uncurryThis(Function.toString); 1704 1705// this helper broken in `[email protected]`, so we can't use `shared` helper 1706if (!isCallable(store.inspectSource)) { 1707 store.inspectSource = function (it) { 1708 return functionToString(it); 1709 }; 1710} 1711 1712module.exports = store.inspectSource; 1713 1714},{"../internals/function-uncurry-this":66,"../internals/is-callable":86,"../internals/shared-store":148}],82:[function(require,module,exports){ 1715'use strict'; 1716var isObject = require('../internals/is-object'); 1717var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 1718 1719// `InstallErrorCause` abstract operation 1720// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause 1721module.exports = function (O, options) { 1722 if (isObject(options) && 'cause' in options) { 1723 createNonEnumerableProperty(O, 'cause', options.cause); 1724 } 1725}; 1726 1727},{"../internals/create-non-enumerable-property":32,"../internals/is-object":90}],83:[function(require,module,exports){ 1728'use strict'; 1729var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection'); 1730var globalThis = require('../internals/global-this'); 1731var isObject = require('../internals/is-object'); 1732var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 1733var hasOwn = require('../internals/has-own-property'); 1734var shared = require('../internals/shared-store'); 1735var sharedKey = require('../internals/shared-key'); 1736var hiddenKeys = require('../internals/hidden-keys'); 1737 1738var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; 1739var TypeError = globalThis.TypeError; 1740var WeakMap = globalThis.WeakMap; 1741var set, get, has; 1742 1743var enforce = function (it) { 1744 return has(it) ? get(it) : set(it, {}); 1745}; 1746 1747var getterFor = function (TYPE) { 1748 return function (it) { 1749 var state; 1750 if (!isObject(it) || (state = get(it)).type !== TYPE) { 1751 throw new TypeError('Incompatible receiver, ' + TYPE + ' required'); 1752 } return state; 1753 }; 1754}; 1755 1756if (NATIVE_WEAK_MAP || shared.state) { 1757 var store = shared.state || (shared.state = new WeakMap()); 1758 /* eslint-disable no-self-assign -- prototype methods protection */ 1759 store.get = store.get; 1760 store.has = store.has; 1761 store.set = store.set; 1762 /* eslint-enable no-self-assign -- prototype methods protection */ 1763 set = function (it, metadata) { 1764 if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); 1765 metadata.facade = it; 1766 store.set(it, metadata); 1767 return metadata; 1768 }; 1769 get = function (it) { 1770 return store.get(it) || {}; 1771 }; 1772 has = function (it) { 1773 return store.has(it); 1774 }; 1775} else { 1776 var STATE = sharedKey('state'); 1777 hiddenKeys[STATE] = true; 1778 set = function (it, metadata) { 1779 if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); 1780 metadata.facade = it; 1781 createNonEnumerableProperty(it, STATE, metadata); 1782 return metadata; 1783 }; 1784 get = function (it) { 1785 return hasOwn(it, STATE) ? it[STATE] : {}; 1786 }; 1787 has = function (it) { 1788 return hasOwn(it, STATE); 1789 }; 1790} 1791 1792module.exports = { 1793 set: set, 1794 get: get, 1795 has: has, 1796 enforce: enforce, 1797 getterFor: getterFor 1798}; 1799 1800},{"../internals/create-non-enumerable-property":32,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/hidden-keys":75,"../internals/is-object":90,"../internals/shared-key":147,"../internals/shared-store":148,"../internals/weak-map-basic-detection":175}],84:[function(require,module,exports){ 1801'use strict'; 1802var wellKnownSymbol = require('../internals/well-known-symbol'); 1803var Iterators = require('../internals/iterators'); 1804 1805var ITERATOR = wellKnownSymbol('iterator'); 1806var ArrayPrototype = Array.prototype; 1807 1808// check on default Array iterator 1809module.exports = function (it) { 1810 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); 1811}; 1812 1813},{"../internals/iterators":102,"../internals/well-known-symbol":178}],85:[function(require,module,exports){ 1814'use strict'; 1815var classof = require('../internals/classof-raw'); 1816 1817// `IsArray` abstract operation 1818// https://tc39.es/ecma262/#sec-isarray 1819// eslint-disable-next-line es/no-array-isarray -- safe 1820module.exports = Array.isArray || function isArray(argument) { 1821 return classof(argument) === 'Array'; 1822}; 1823 1824},{"../internals/classof-raw":26}],86:[function(require,module,exports){ 1825'use strict'; 1826// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot 1827var documentAll = typeof document == 'object' && document.all; 1828 1829// `IsCallable` abstract operation 1830// https://tc39.es/ecma262/#sec-iscallable 1831// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing 1832module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) { 1833 return typeof argument == 'function' || argument === documentAll; 1834} : function (argument) { 1835 return typeof argument == 'function'; 1836}; 1837 1838},{}],87:[function(require,module,exports){ 1839'use strict'; 1840var uncurryThis = require('../internals/function-uncurry-this'); 1841var fails = require('../internals/fails'); 1842var isCallable = require('../internals/is-callable'); 1843var classof = require('../internals/classof'); 1844var getBuiltIn = require('../internals/get-built-in'); 1845var inspectSource = require('../internals/inspect-source'); 1846 1847var noop = function () { /* empty */ }; 1848var construct = getBuiltIn('Reflect', 'construct'); 1849var constructorRegExp = /^\s*(?:class|function)\b/; 1850var exec = uncurryThis(constructorRegExp.exec); 1851var INCORRECT_TO_STRING = !constructorRegExp.test(noop); 1852 1853var isConstructorModern = function isConstructor(argument) { 1854 if (!isCallable(argument)) return false; 1855 try { 1856 construct(noop, [], argument); 1857 return true; 1858 } catch (error) { 1859 return false; 1860 } 1861}; 1862 1863var isConstructorLegacy = function isConstructor(argument) { 1864 if (!isCallable(argument)) return false; 1865 switch (classof(argument)) { 1866 case 'AsyncFunction': 1867 case 'GeneratorFunction': 1868 case 'AsyncGeneratorFunction': return false; 1869 } 1870 try { 1871 // we can't check .prototype since constructors produced by .bind haven't it 1872 // `Function#toString` throws on some built-it function in some legacy engines 1873 // (for example, `DOMQuad` and similar in FF41-) 1874 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); 1875 } catch (error) { 1876 return true; 1877 } 1878}; 1879 1880isConstructorLegacy.sham = true; 1881 1882// `IsConstructor` abstract operation 1883// https://tc39.es/ecma262/#sec-isconstructor 1884module.exports = !construct || fails(function () { 1885 var called; 1886 return isConstructorModern(isConstructorModern.call) 1887 || !isConstructorModern(Object) 1888 || !isConstructorModern(function () { called = true; }) 1889 || called; 1890}) ? isConstructorLegacy : isConstructorModern; 1891 1892},{"../internals/classof":27,"../internals/fails":57,"../internals/function-uncurry-this":66,"../internals/get-built-in":67,"../internals/inspect-source":81,"../internals/is-callable":86}],88:[function(require,module,exports){ 1893'use strict'; 1894var fails = require('../internals/fails'); 1895var isCallable = require('../internals/is-callable'); 1896 1897var replacement = /#|\.prototype\./; 1898 1899var isForced = function (feature, detection) { 1900 var value = data[normalize(feature)]; 1901 return value === POLYFILL ? true 1902 : value === NATIVE ? false 1903 : isCallable(detection) ? fails(detection) 1904 : !!detection; 1905}; 1906 1907var normalize = isForced.normalize = function (string) { 1908 return String(string).replace(replacement, '.').toLowerCase(); 1909}; 1910 1911var data = isForced.data = {}; 1912var NATIVE = isForced.NATIVE = 'N'; 1913var POLYFILL = isForced.POLYFILL = 'P'; 1914 1915module.exports = isForced; 1916 1917},{"../internals/fails":57,"../internals/is-callable":86}],89:[function(require,module,exports){ 1918'use strict'; 1919// we can't use just `it == null` since of `document.all` special case
vendor: 4,706 bytes, lines 1920-2045
1920// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec 1921module.exports = function (it) { 1922 return it === null || it === undefined; 1923}; 1924 1925},{}],90:[function(require,module,exports){ 1926'use strict'; 1927var isCallable = require('../internals/is-callable'); 1928 1929module.exports = function (it) { 1930 return typeof it == 'object' ? it !== null : isCallable(it); 1931}; 1932 1933},{"../internals/is-callable":86}],91:[function(require,module,exports){ 1934'use strict'; 1935var isObject = require('../internals/is-object'); 1936 1937module.exports = function (argument) { 1938 return isObject(argument) || argument === null; 1939}; 1940 1941},{"../internals/is-object":90}],92:[function(require,module,exports){ 1942'use strict'; 1943module.exports = false; 1944 1945},{}],93:[function(require,module,exports){ 1946'use strict'; 1947var isObject = require('../internals/is-object'); 1948var classof = require('../internals/classof-raw'); 1949var wellKnownSymbol = require('../internals/well-known-symbol'); 1950 1951var MATCH = wellKnownSymbol('match'); 1952 1953// `IsRegExp` abstract operation 1954// https://tc39.es/ecma262/#sec-isregexp 1955module.exports = function (it) { 1956 var isRegExp; 1957 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp'); 1958}; 1959 1960},{"../internals/classof-raw":26,"../internals/is-object":90,"../internals/well-known-symbol":178}],94:[function(require,module,exports){ 1961'use strict'; 1962var getBuiltIn = require('../internals/get-built-in'); 1963var isCallable = require('../internals/is-callable'); 1964var isPrototypeOf = require('../internals/object-is-prototype-of'); 1965var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); 1966 1967var $Object = Object; 1968 1969module.exports = USE_SYMBOL_AS_UID ? function (it) { 1970 return typeof it == 'symbol'; 1971} : function (it) { 1972 var $Symbol = getBuiltIn('Symbol'); 1973 return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); 1974}; 1975 1976},{"../internals/get-built-in":67,"../internals/is-callable":86,"../internals/object-is-prototype-of":118,"../internals/use-symbol-as-uid":172}],95:[function(require,module,exports){ 1977'use strict'; 1978var bind = require('../internals/function-bind-context'); 1979var call = require('../internals/function-call'); 1980var anObject = require('../internals/an-object'); 1981var tryToString = require('../internals/try-to-string'); 1982var isArrayIteratorMethod = require('../internals/is-array-iterator-method'); 1983var lengthOfArrayLike = require('../internals/length-of-array-like'); 1984var isPrototypeOf = require('../internals/object-is-prototype-of'); 1985var getIterator = require('../internals/get-iterator'); 1986var getIteratorMethod = require('../internals/get-iterator-method'); 1987var iteratorClose = require('../internals/iterator-close'); 1988 1989var $TypeError = TypeError; 1990 1991var Result = function (stopped, result) { 1992 this.stopped = stopped; 1993 this.result = result; 1994}; 1995 1996var ResultPrototype = Result.prototype; 1997 1998module.exports = function (iterable, unboundFunction, options) { 1999 var that = options && options.that; 2000 var AS_ENTRIES = !!(options && options.AS_ENTRIES); 2001 var IS_RECORD = !!(options && options.IS_RECORD); 2002 var IS_ITERATOR = !!(options && options.IS_ITERATOR); 2003 var INTERRUPTED = !!(options && options.INTERRUPTED); 2004 var fn = bind(unboundFunction, that); 2005 var iterator, iterFn, index, length, result, next, step; 2006 2007 var stop = function (condition) { 2008 if (iterator) iteratorClose(iterator, 'normal', condition); 2009 return new Result(true, condition); 2010 }; 2011 2012 var callFn = function (value) { 2013 if (AS_ENTRIES) { 2014 anObject(value); 2015 return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); 2016 } return INTERRUPTED ? fn(value, stop) : fn(value); 2017 }; 2018 2019 if (IS_RECORD) { 2020 iterator = iterable.iterator; 2021 } else if (IS_ITERATOR) { 2022 iterator = iterable; 2023 } else { 2024 iterFn = getIteratorMethod(iterable); 2025 if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable'); 2026 // optimisation for array iterators 2027 if (isArrayIteratorMethod(iterFn)) { 2028 for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { 2029 result = callFn(iterable[index]); 2030 if (result && isPrototypeOf(ResultPrototype, result)) return result; 2031 } return new Result(false); 2032 } 2033 iterator = getIterator(iterable, iterFn); 2034 } 2035 2036 next = IS_RECORD ? iterable.next : iterator.next; 2037 while (!(step = call(next, iterator)).done) { 2038 try { 2039 result = callFn(step.value); 2040 } catch (error) { 2041 iteratorClose(iterator, 'throw', error); 2042 } 2043 if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result; 2044 } return new Result(false); 2045};
vendor: 6,877 bytes, lines 2046-2189
2046 2047},{"../internals/an-object":7,"../internals/function-bind-context":60,"../internals/function-call":62,"../internals/get-iterator":70,"../internals/get-iterator-method":69,"../internals/is-array-iterator-method":84,"../internals/iterator-close":96,"../internals/length-of-array-like":103,"../internals/object-is-prototype-of":118,"../internals/try-to-string":169}],96:[function(require,module,exports){ 2048'use strict'; 2049var call = require('../internals/function-call'); 2050var anObject = require('../internals/an-object'); 2051var getMethod = require('../internals/get-method'); 2052 2053module.exports = function (iterator, kind, value) { 2054 var innerResult, innerError; 2055 anObject(iterator); 2056 try { 2057 innerResult = getMethod(iterator, 'return'); 2058 if (!innerResult) { 2059 if (kind === 'throw') throw value; 2060 return value; 2061 } 2062 innerResult = call(innerResult, iterator); 2063 } catch (error) { 2064 innerError = true; 2065 innerResult = error; 2066 } 2067 if (kind === 'throw') throw value; 2068 if (innerError) throw innerResult; 2069 anObject(innerResult); 2070 return value; 2071}; 2072 2073},{"../internals/an-object":7,"../internals/function-call":62,"../internals/get-method":72}],97:[function(require,module,exports){ 2074'use strict'; 2075var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; 2076var create = require('../internals/object-create'); 2077var createPropertyDescriptor = require('../internals/create-property-descriptor'); 2078var setToStringTag = require('../internals/set-to-string-tag'); 2079var Iterators = require('../internals/iterators'); 2080 2081var returnThis = function () { return this; }; 2082 2083module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { 2084 var TO_STRING_TAG = NAME + ' Iterator'; 2085 IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); 2086 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); 2087 Iterators[TO_STRING_TAG] = returnThis; 2088 return IteratorConstructor; 2089}; 2090 2091},{"../internals/create-property-descriptor":33,"../internals/iterators":102,"../internals/iterators-core":101,"../internals/object-create":110,"../internals/set-to-string-tag":146}],98:[function(require,module,exports){ 2092'use strict'; 2093var call = require('../internals/function-call'); 2094var create = require('../internals/object-create'); 2095var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 2096var defineBuiltIns = require('../internals/define-built-ins'); 2097var wellKnownSymbol = require('../internals/well-known-symbol'); 2098var InternalStateModule = require('../internals/internal-state'); 2099var getMethod = require('../internals/get-method'); 2100var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; 2101var createIterResultObject = require('../internals/create-iter-result-object'); 2102var iteratorClose = require('../internals/iterator-close'); 2103 2104var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 2105var ITERATOR_HELPER = 'IteratorHelper'; 2106var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; 2107var setInternalState = InternalStateModule.set; 2108 2109var createIteratorProxyPrototype = function (IS_ITERATOR) { 2110 var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); 2111 2112 return defineBuiltIns(create(IteratorPrototype), { 2113 next: function next() { 2114 var state = getInternalState(this); 2115 // for simplification: 2116 // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject` 2117 // for `%IteratorHelperPrototype%.next` - just a value 2118 if (IS_ITERATOR) return state.nextHandler(); 2119 try { 2120 var result = state.done ? undefined : state.nextHandler(); 2121 return createIterResultObject(result, state.done); 2122 } catch (error) { 2123 state.done = true; 2124 throw error; 2125 } 2126 }, 2127 'return': function () { 2128 var state = getInternalState(this); 2129 var iterator = state.iterator; 2130 state.done = true; 2131 if (IS_ITERATOR) { 2132 var returnMethod = getMethod(iterator, 'return'); 2133 return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); 2134 } 2135 if (state.inner) try { 2136 iteratorClose(state.inner.iterator, 'normal'); 2137 } catch (error) { 2138 return iteratorClose(iterator, 'throw', error); 2139 } 2140 iteratorClose(iterator, 'normal'); 2141 return createIterResultObject(undefined, true); 2142 } 2143 }); 2144}; 2145 2146var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); 2147var IteratorHelperPrototype = createIteratorProxyPrototype(false); 2148 2149createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); 2150 2151module.exports = function (nextHandler, IS_ITERATOR) { 2152 var IteratorProxy = function Iterator(record, state) { 2153 if (state) { 2154 state.iterator = record.iterator; 2155 state.next = record.next; 2156 } else state = record; 2157 state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; 2158 state.nextHandler = nextHandler; 2159 state.counter = 0; 2160 state.done = false; 2161 setInternalState(this, state); 2162 }; 2163 2164 IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype; 2165 2166 return IteratorProxy; 2167}; 2168 2169},{"../internals/create-iter-result-object":31,"../internals/create-non-enumerable-property":32,"../internals/define-built-ins":38,"../internals/function-call":62,"../internals/get-method":72,"../internals/internal-state":83,"../internals/iterator-close":96,"../internals/iterators-core":101,"../internals/object-create":110,"../internals/well-known-symbol":178}],99:[function(require,module,exports){ 2170'use strict'; 2171var $ = require('../internals/export'); 2172var call = require('../internals/function-call'); 2173var IS_PURE = require('../internals/is-pure'); 2174var FunctionName = require('../internals/function-name'); 2175var isCallable = require('../internals/is-callable'); 2176var createIteratorConstructor = require('../internals/iterator-create-constructor'); 2177var getPrototypeOf = require('../internals/object-get-prototype-of'); 2178var setPrototypeOf = require('../internals/object-set-prototype-of'); 2179var setToStringTag = require('../internals/set-to-string-tag'); 2180var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 2181var defineBuiltIn = require('../internals/define-built-in'); 2182var wellKnownSymbol = require('../internals/well-known-symbol'); 2183var Iterators = require('../internals/iterators'); 2184var IteratorsCore = require('../internals/iterators-core'); 2185 2186var PROPER_FUNCTION_NAME = FunctionName.PROPER; 2187var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; 2188var IteratorPrototype = IteratorsCore.IteratorPrototype; 2189var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
vendor: 5,728 bytes, lines 2190-2309
2190var ITERATOR = wellKnownSymbol('iterator'); 2191var KEYS = 'keys'; 2192var VALUES = 'values'; 2193var ENTRIES = 'entries'; 2194 2195var returnThis = function () { return this; }; 2196 2197module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { 2198 createIteratorConstructor(IteratorConstructor, NAME, next); 2199 2200 var getIterationMethod = function (KIND) { 2201 if (KIND === DEFAULT && defaultIterator) return defaultIterator; 2202 if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; 2203 2204 switch (KIND) { 2205 case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; 2206 case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; 2207 case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; 2208 } 2209 2210 return function () { return new IteratorConstructor(this); }; 2211 }; 2212 2213 var TO_STRING_TAG = NAME + ' Iterator'; 2214 var INCORRECT_VALUES_NAME = false; 2215 var IterablePrototype = Iterable.prototype; 2216 var nativeIterator = IterablePrototype[ITERATOR] 2217 || IterablePrototype['@@iterator'] 2218 || DEFAULT && IterablePrototype[DEFAULT]; 2219 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); 2220 var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; 2221 var CurrentIteratorPrototype, methods, KEY; 2222 2223 // fix native 2224 if (anyNativeIterator) { 2225 CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); 2226 if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { 2227 if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { 2228 if (setPrototypeOf) { 2229 setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); 2230 } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { 2231 defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); 2232 } 2233 } 2234 // Set @@toStringTag to native iterators 2235 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); 2236 if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; 2237 } 2238 } 2239 2240 // fix Array.prototype.{ values, @@iterator }.name in V8 / FF 2241 if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { 2242 if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { 2243 createNonEnumerableProperty(IterablePrototype, 'name', VALUES); 2244 } else { 2245 INCORRECT_VALUES_NAME = true; 2246 defaultIterator = function values() { return call(nativeIterator, this); }; 2247 } 2248 } 2249 2250 // export additional methods 2251 if (DEFAULT) { 2252 methods = { 2253 values: getIterationMethod(VALUES), 2254 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), 2255 entries: getIterationMethod(ENTRIES) 2256 }; 2257 if (FORCED) for (KEY in methods) { 2258 if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { 2259 defineBuiltIn(IterablePrototype, KEY, methods[KEY]); 2260 } 2261 } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); 2262 } 2263 2264 // define iterator 2265 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { 2266 defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); 2267 } 2268 Iterators[NAME] = defaultIterator; 2269 2270 return methods; 2271}; 2272 2273},{"../internals/create-non-enumerable-property":32,"../internals/define-built-in":37,"../internals/export":56,"../internals/function-call":62,"../internals/function-name":63,"../internals/is-callable":86,"../internals/is-pure":92,"../internals/iterator-create-constructor":97,"../internals/iterators":102,"../internals/iterators-core":101,"../internals/object-get-prototype-of":117,"../internals/object-set-prototype-of":122,"../internals/set-to-string-tag":146,"../internals/well-known-symbol":178}],100:[function(require,module,exports){ 2274'use strict'; 2275var call = require('../internals/function-call'); 2276var aCallable = require('../internals/a-callable'); 2277var anObject = require('../internals/an-object'); 2278var getIteratorDirect = require('../internals/get-iterator-direct'); 2279var createIteratorProxy = require('../internals/iterator-create-proxy'); 2280var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); 2281 2282var IteratorProxy = createIteratorProxy(function () { 2283 var iterator = this.iterator; 2284 var result = anObject(call(this.next, iterator)); 2285 var done = this.done = !!result.done; 2286 if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); 2287}); 2288 2289// `Iterator.prototype.map` method 2290// https://github.com/tc39/proposal-iterator-helpers 2291module.exports = function map(mapper) { 2292 anObject(this); 2293 aCallable(mapper); 2294 return new IteratorProxy(getIteratorDirect(this), { 2295 mapper: mapper 2296 }); 2297}; 2298 2299},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/call-with-safe-iteration-closing":24,"../internals/function-call":62,"../internals/get-iterator-direct":68,"../internals/iterator-create-proxy":98}],101:[function(require,module,exports){ 2300'use strict'; 2301var fails = require('../internals/fails'); 2302var isCallable = require('../internals/is-callable'); 2303var isObject = require('../internals/is-object'); 2304var create = require('../internals/object-create'); 2305var getPrototypeOf = require('../internals/object-get-prototype-of'); 2306var defineBuiltIn = require('../internals/define-built-in'); 2307var wellKnownSymbol = require('../internals/well-known-symbol'); 2308var IS_PURE = require('../internals/is-pure'); 2309
vendor: 4,878 bytes, lines 2310-2419
2310var ITERATOR = wellKnownSymbol('iterator'); 2311var BUGGY_SAFARI_ITERATORS = false; 2312 2313// `%IteratorPrototype%` object 2314// https://tc39.es/ecma262/#sec-%iteratorprototype%-object 2315var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; 2316 2317/* eslint-disable es/no-array-prototype-keys -- safe */ 2318if ([].keys) { 2319 arrayIterator = [].keys(); 2320 // Safari 8 has buggy iterators w/o `next` 2321 if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; 2322 else { 2323 PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); 2324 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; 2325 } 2326} 2327 2328var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { 2329 var test = {}; 2330 // FF44- legacy iterators case 2331 return IteratorPrototype[ITERATOR].call(test) !== test; 2332}); 2333 2334if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; 2335else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); 2336 2337// `%IteratorPrototype%[@@iterator]()` method 2338// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator 2339if (!isCallable(IteratorPrototype[ITERATOR])) { 2340 defineBuiltIn(IteratorPrototype, ITERATOR, function () { 2341 return this; 2342 }); 2343} 2344 2345module.exports = { 2346 IteratorPrototype: IteratorPrototype, 2347 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS 2348}; 2349 2350},{"../internals/define-built-in":37,"../internals/fails":57,"../internals/is-callable":86,"../internals/is-object":90,"../internals/is-pure":92,"../internals/object-create":110,"../internals/object-get-prototype-of":117,"../internals/well-known-symbol":178}],102:[function(require,module,exports){ 2351arguments[4][75][0].apply(exports,arguments) 2352},{"dup":75}],103:[function(require,module,exports){ 2353'use strict'; 2354var toLength = require('../internals/to-length'); 2355 2356// `LengthOfArrayLike` abstract operation 2357// https://tc39.es/ecma262/#sec-lengthofarraylike 2358module.exports = function (obj) { 2359 return toLength(obj.length); 2360}; 2361 2362},{"../internals/to-length":163}],104:[function(require,module,exports){ 2363'use strict'; 2364var uncurryThis = require('../internals/function-uncurry-this'); 2365var fails = require('../internals/fails'); 2366var isCallable = require('../internals/is-callable'); 2367var hasOwn = require('../internals/has-own-property'); 2368var DESCRIPTORS = require('../internals/descriptors'); 2369var CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE; 2370var inspectSource = require('../internals/inspect-source'); 2371var InternalStateModule = require('../internals/internal-state'); 2372 2373var enforceInternalState = InternalStateModule.enforce; 2374var getInternalState = InternalStateModule.get; 2375var $String = String; 2376// eslint-disable-next-line es/no-object-defineproperty -- safe 2377var defineProperty = Object.defineProperty; 2378var stringSlice = uncurryThis(''.slice); 2379var replace = uncurryThis(''.replace); 2380var join = uncurryThis([].join); 2381 2382var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { 2383 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; 2384}); 2385 2386var TEMPLATE = String(String).split('String'); 2387 2388var makeBuiltIn = module.exports = function (value, name, options) { 2389 if (stringSlice($String(name), 0, 7) === 'Symbol(') { 2390 name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'; 2391 } 2392 if (options && options.getter) name = 'get ' + name; 2393 if (options && options.setter) name = 'set ' + name; 2394 if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { 2395 if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); 2396 else value.name = name; 2397 } 2398 if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) { 2399 defineProperty(value, 'length', { value: options.arity }); 2400 } 2401 try { 2402 if (options && hasOwn(options, 'constructor') && options.constructor) { 2403 if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); 2404 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable 2405 } else if (value.prototype) value.prototype = undefined; 2406 } catch (error) { /* empty */ } 2407 var state = enforceInternalState(value); 2408 if (!hasOwn(state, 'source')) { 2409 state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); 2410 } return value; 2411}; 2412 2413// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 2414// eslint-disable-next-line no-extend-native -- required 2415Function.prototype.toString = makeBuiltIn(function toString() { 2416 return isCallable(this) && getInternalState(this).source || inspectSource(this); 2417}, 'toString'); 2418 2419},{"../internals/descriptors":40,"../internals/fails":57,"../internals/function-name":63,"../internals/function-uncurr
vendor: 9,749 bytes, lines 2419-2668
2419y-this":66,"../internals/has-own-property":74,"../internals/inspect-source":81,"../internals/internal-state":83,"../internals/is-callable":86}],105:[function(require,module,exports){ 2420'use strict'; 2421var ceil = Math.ceil; 2422var floor = Math.floor; 2423 2424// `Math.trunc` method 2425// https://tc39.es/ecma262/#sec-math.trunc 2426// eslint-disable-next-line es/no-math-trunc -- safe 2427module.exports = Math.trunc || function trunc(x) { 2428 var n = +x; 2429 return (n > 0 ? floor : ceil)(n); 2430}; 2431 2432},{}],106:[function(require,module,exports){ 2433'use strict'; 2434var globalThis = require('../internals/global-this'); 2435var safeGetBuiltIn = require('../internals/safe-get-built-in'); 2436var bind = require('../internals/function-bind-context'); 2437var macrotask = require('../internals/task').set; 2438var Queue = require('../internals/queue'); 2439var IS_IOS = require('../internals/environment-is-ios'); 2440var IS_IOS_PEBBLE = require('../internals/environment-is-ios-pebble'); 2441var IS_WEBOS_WEBKIT = require('../internals/environment-is-webos-webkit'); 2442var IS_NODE = require('../internals/environment-is-node'); 2443 2444var MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver; 2445var document = globalThis.document; 2446var process = globalThis.process; 2447var Promise = globalThis.Promise; 2448var microtask = safeGetBuiltIn('queueMicrotask'); 2449var notify, toggle, node, promise, then; 2450 2451// modern engines have queueMicrotask method 2452if (!microtask) { 2453 var queue = new Queue(); 2454 2455 var flush = function () { 2456 var parent, fn; 2457 if (IS_NODE && (parent = process.domain)) parent.exit(); 2458 while (fn = queue.get()) try { 2459 fn(); 2460 } catch (error) { 2461 if (queue.head) notify(); 2462 throw error; 2463 } 2464 if (parent) parent.enter(); 2465 }; 2466 2467 // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 2468 // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 2469 if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) { 2470 toggle = true; 2471 node = document.createTextNode(''); 2472 new MutationObserver(flush).observe(node, { characterData: true }); 2473 notify = function () { 2474 node.data = toggle = !toggle; 2475 }; 2476 // environments with maybe non-completely correct, but existent Promise 2477 } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) { 2478 // Promise.resolve without an argument throws an error in LG WebOS 2 2479 promise = Promise.resolve(undefined); 2480 // workaround of WebKit ~ iOS Safari 10.1 bug 2481 promise.constructor = Promise; 2482 then = bind(promise.then, promise); 2483 notify = function () { 2484 then(flush); 2485 }; 2486 // Node.js without promises 2487 } else if (IS_NODE) { 2488 notify = function () { 2489 process.nextTick(flush); 2490 }; 2491 // for other environments - macrotask based on: 2492 // - setImmediate 2493 // - MessageChannel 2494 // - window.postMessage 2495 // - onreadystatechange 2496 // - setTimeout 2497 } else { 2498 // `webpack` dev server bug on IE global methods - use bind(fn, global) 2499 macrotask = bind(macrotask, globalThis); 2500 notify = function () { 2501 macrotask(flush); 2502 }; 2503 } 2504 2505 microtask = function (fn) { 2506 if (!queue.head) notify(); 2507 queue.add(fn); 2508 }; 2509} 2510 2511module.exports = microtask; 2512 2513},{"../internals/environment-is-ios":47,"../internals/environment-is-ios-pebble":46,"../internals/environment-is-node":48,"../internals/environment-is-webos-webkit":49,"../internals/function-bind-context":60,"../internals/global-this":73,"../internals/queue":134,"../internals/safe-get-built-in":143,"../internals/task":158}],107:[function(require,module,exports){ 2514'use strict'; 2515var aCallable = require('../internals/a-callable'); 2516 2517var $TypeError = TypeError; 2518 2519var PromiseCapability = function (C) { 2520 var resolve, reject; 2521 this.promise = new C(function ($$resolve, $$reject) { 2522 if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor'); 2523 resolve = $$resolve; 2524 reject = $$reject; 2525 }); 2526 this.resolve = aCallable(resolve); 2527 this.reject = aCallable(reject); 2528}; 2529 2530// `NewPromiseCapability` abstract operation 2531// https://tc39.es/ecma262/#sec-newpromisecapability 2532module.exports.f = function (C) { 2533 return new PromiseCapability(C); 2534}; 2535 2536},{"../internals/a-callable":1}],108:[function(require,module,exports){ 2537'use strict'; 2538var toString = require('../internals/to-string'); 2539 2540module.exports = function (argument, $default) { 2541 return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); 2542}; 2543 2544},{"../internals/to-string":168}],109:[function(require,module,exports){ 2545'use strict'; 2546var isRegExp = require('../internals/is-regexp'); 2547 2548var $TypeError = TypeError; 2549 2550module.exports = function (it) { 2551 if (isRegExp(it)) { 2552 throw new $TypeError("The method doesn't accept regular expressions"); 2553 } return it; 2554}; 2555 2556},{"../internals/is-regexp":93}],110:[function(require,module,exports){ 2557'use strict'; 2558/* global ActiveXObject -- old IE, WSH */ 2559var anObject = require('../internals/an-object'); 2560var definePropertiesModule = require('../internals/object-define-properties'); 2561var enumBugKeys = require('../internals/enum-bug-keys'); 2562var hiddenKeys = require('../internals/hidden-keys'); 2563var html = require('../internals/html'); 2564var documentCreateElement = require('../internals/document-create-element'); 2565var sharedKey = require('../internals/shared-key'); 2566 2567var GT = '>'; 2568var LT = '<'; 2569var PROTOTYPE = 'prototype'; 2570var SCRIPT = 'script'; 2571var IE_PROTO = sharedKey('IE_PROTO'); 2572 2573var EmptyConstructor = function () { /* empty */ }; 2574 2575var scriptTag = function (content) { 2576 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; 2577}; 2578 2579// Create object with fake `null` prototype: use ActiveX Object with cleared prototype 2580var NullProtoObjectViaActiveX = function (activeXDocument) { 2581 activeXDocument.write(scriptTag('')); 2582 activeXDocument.close(); 2583 var temp = activeXDocument.parentWindow.Object; 2584 // eslint-disable-next-line no-useless-assignment -- avoid memory leak 2585 activeXDocument = null; 2586 return temp; 2587}; 2588 2589// Create object with fake `null` prototype: use iframe Object with cleared prototype 2590var NullProtoObjectViaIFrame = function () { 2591 // Thrash, waste and sodomy: IE GC bug 2592 var iframe = documentCreateElement('iframe'); 2593 var JS = 'java' + SCRIPT + ':'; 2594 var iframeDocument; 2595 iframe.style.display = 'none'; 2596 html.appendChild(iframe); 2597 // https://github.com/zloirock/core-js/issues/475 2598 iframe.src = String(JS); 2599 iframeDocument = iframe.contentWindow.document; 2600 iframeDocument.open(); 2601 iframeDocument.write(scriptTag('document.F=Object')); 2602 iframeDocument.close(); 2603 return iframeDocument.F; 2604}; 2605 2606// Check for document.domain and active x support 2607// No need to use active x approach when document.domain is not set 2608// see https://github.com/es-shims/es5-shim/issues/150 2609// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 2610// avoid IE GC bug 2611var activeXDocument; 2612var NullProtoObject = function () { 2613 try { 2614 activeXDocument = new ActiveXObject('htmlfile'); 2615 } catch (error) { /* ignore */ } 2616 NullProtoObject = typeof document != 'undefined' 2617 ? document.domain && activeXDocument 2618 ? NullProtoObjectViaActiveX(activeXDocument) // old IE 2619 : NullProtoObjectViaIFrame() 2620 : NullProtoObjectViaActiveX(activeXDocument); // WSH 2621 var length = enumBugKeys.length; 2622 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; 2623 return NullProtoObject(); 2624}; 2625 2626hiddenKeys[IE_PROTO] = true; 2627 2628// `Object.create` method 2629// https://tc39.es/ecma262/#sec-object.create 2630// eslint-disable-next-line es/no-object-create -- safe 2631module.exports = Object.create || function create(O, Properties) { 2632 var result; 2633 if (O !== null) { 2634 EmptyConstructor[PROTOTYPE] = anObject(O); 2635 result = new EmptyConstructor(); 2636 EmptyConstructor[PROTOTYPE] = null; 2637 // add "__proto__" for Object.getPrototypeOf polyfill 2638 result[IE_PROTO] = O; 2639 } else result = NullProtoObject(); 2640 return Properties === undefined ? result : definePropertiesModule.f(result, Properties); 2641}; 2642 2643},{"../internals/an-object":7,"../internals/document-create-element":41,"../internals/enum-bug-keys":45,"../internals/hidden-keys":75,"../internals/html":77,"../internals/object-define-properties":111,"../internals/shared-key":147}],111:[function(require,module,exports){ 2644'use strict'; 2645var DESCRIPTORS = require('../internals/descriptors'); 2646var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug'); 2647var definePropertyModule = require('../internals/object-define-property'); 2648var anObject = require('../internals/an-object'); 2649var toIndexedObject = require('../internals/to-indexed-object'); 2650var objectKeys = require('../internals/object-keys'); 2651 2652// `Object.defineProperties` method 2653// https://tc39.es/ecma262/#sec-object.defineproperties 2654// eslint-disable-next-line es/no-object-defineproperties -- safe 2655exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { 2656 anObject(O); 2657 var props = toIndexedObject(Properties); 2658 var keys = objectKeys(Properties); 2659 var length = keys.length; 2660 var index = 0; 2661 var key; 2662 while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); 2663 return O; 2664}; 2665 2666},{"../internals/an-object":7,"../internals/descriptors":40,"../internals/object-define-property":112,"../internals/object-keys":120,"../internals/to-indexed-object":161,"../internals/v8-prototype-define-bug":173}],112:[function(require,module,exports){ 2667'use strict'; 2668var DESCRIPTORS = require('../internals/descriptors');
vendor: 6,658 bytes, lines 2669-2807
2669var IE8_DOM_DEFINE = require('../internals/ie8-dom-define'); 2670var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug'); 2671var anObject = require('../internals/an-object'); 2672var toPropertyKey = require('../internals/to-property-key'); 2673 2674var $TypeError = TypeError; 2675// eslint-disable-next-line es/no-object-defineproperty -- safe 2676var $defineProperty = Object.defineProperty; 2677// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 2678var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 2679var ENUMERABLE = 'enumerable'; 2680var CONFIGURABLE = 'configurable'; 2681var WRITABLE = 'writable'; 2682 2683// `Object.defineProperty` method 2684// https://tc39.es/ecma262/#sec-object.defineproperty 2685exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { 2686 anObject(O); 2687 P = toPropertyKey(P); 2688 anObject(Attributes); 2689 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { 2690 var current = $getOwnPropertyDescriptor(O, P); 2691 if (current && current[WRITABLE]) { 2692 O[P] = Attributes.value; 2693 Attributes = { 2694 configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], 2695 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], 2696 writable: false 2697 }; 2698 } 2699 } return $defineProperty(O, P, Attributes); 2700} : $defineProperty : function defineProperty(O, P, Attributes) { 2701 anObject(O); 2702 P = toPropertyKey(P); 2703 anObject(Attributes); 2704 if (IE8_DOM_DEFINE) try { 2705 return $defineProperty(O, P, Attributes); 2706 } catch (error) { /* empty */ } 2707 if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported'); 2708 if ('value' in Attributes) O[P] = Attributes.value; 2709 return O; 2710}; 2711 2712},{"../internals/an-object":7,"../internals/descriptors":40,"../internals/ie8-dom-define":78,"../internals/to-property-key":166,"../internals/v8-prototype-define-bug":173}],113:[function(require,module,exports){ 2713'use strict'; 2714var DESCRIPTORS = require('../internals/descriptors'); 2715var call = require('../internals/function-call'); 2716var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable'); 2717var createPropertyDescriptor = require('../internals/create-property-descriptor'); 2718var toIndexedObject = require('../internals/to-indexed-object'); 2719var toPropertyKey = require('../internals/to-property-key'); 2720var hasOwn = require('../internals/has-own-property'); 2721var IE8_DOM_DEFINE = require('../internals/ie8-dom-define'); 2722 2723// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 2724var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 2725 2726// `Object.getOwnPropertyDescriptor` method 2727// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor 2728exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { 2729 O = toIndexedObject(O); 2730 P = toPropertyKey(P); 2731 if (IE8_DOM_DEFINE) try { 2732 return $getOwnPropertyDescriptor(O, P); 2733 } catch (error) { /* empty */ } 2734 if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); 2735}; 2736 2737},{"../internals/create-property-descriptor":33,"../internals/descriptors":40,"../internals/function-call":62,"../internals/has-own-property":74,"../internals/ie8-dom-define":78,"../internals/object-property-is-enumerable":121,"../internals/to-indexed-object":161,"../internals/to-property-key":166}],114:[function(require,module,exports){ 2738'use strict'; 2739/* eslint-disable es/no-object-getownpropertynames -- safe */ 2740var classof = require('../internals/classof-raw'); 2741var toIndexedObject = require('../internals/to-indexed-object'); 2742var $getOwnPropertyNames = require('../internals/object-get-own-property-names').f; 2743var arraySlice = require('../internals/array-slice'); 2744 2745var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 2746 ? Object.getOwnPropertyNames(window) : []; 2747 2748var getWindowNames = function (it) { 2749 try { 2750 return $getOwnPropertyNames(it); 2751 } catch (error) { 2752 return arraySlice(windowNames); 2753 } 2754}; 2755 2756// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 2757module.exports.f = function getOwnPropertyNames(it) { 2758 return windowNames && classof(it) === 'Window' 2759 ? getWindowNames(it) 2760 : $getOwnPropertyNames(toIndexedObject(it)); 2761}; 2762 2763},{"../internals/array-slice":15,"../internals/classof-raw":26,"../internals/object-get-own-property-names":115,"../internals/to-indexed-object":161}],115:[function(require,module,exports){ 2764'use strict'; 2765var internalObjectKeys = require('../internals/object-keys-internal'); 2766var enumBugKeys = require('../internals/enum-bug-keys'); 2767 2768var hiddenKeys = enumBugKeys.concat('length', 'prototype'); 2769 2770// `Object.getOwnPropertyNames` method 2771// https://tc39.es/ecma262/#sec-object.getownpropertynames 2772// eslint-disable-next-line es/no-object-getownpropertynames -- safe 2773exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 2774 return internalObjectKeys(O, hiddenKeys); 2775}; 2776 2777},{"../internals/enum-bug-keys":45,"../internals/object-keys-internal":119}],116:[function(require,module,exports){ 2778'use strict'; 2779// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe 2780exports.f = Object.getOwnPropertySymbols; 2781 2782},{}],117:[function(require,module,exports){ 2783'use strict'; 2784var hasOwn = require('../internals/has-own-property'); 2785var isCallable = require('../internals/is-callable'); 2786var toObject = require('../internals/to-object'); 2787var sharedKey = require('../internals/shared-key'); 2788var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); 2789 2790var IE_PROTO = sharedKey('IE_PROTO'); 2791var $Object = Object; 2792var ObjectPrototype = $Object.prototype; 2793 2794// `Object.getPrototypeOf` method 2795// https://tc39.es/ecma262/#sec-object.getprototypeof 2796// eslint-disable-next-line es/no-object-getprototypeof -- safe 2797module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { 2798 var object = toObject(O); 2799 if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; 2800 var constructor = object.constructor; 2801 if (isCallable(constructor) && object instanceof constructor) { 2802 return constructor.prototype; 2803 } return object instanceof $Object ? ObjectPrototype : null; 2804}; 2805 2806},{"../internals/correct-prototype-getter":30,"../internals/has-own-property":74,"../internals/is-callable":86,"../internals/shared-key":147,"../internals/to-object":164}],118:[function(require,module,exports){ 2807'use strict';
vendor: 11,782 bytes, lines 2808-3076
2808var uncurryThis = require('../internals/function-uncurry-this'); 2809 2810module.exports = uncurryThis({}.isPrototypeOf); 2811 2812},{"../internals/function-uncurry-this":66}],119:[function(require,module,exports){ 2813'use strict'; 2814var uncurryThis = require('../internals/function-uncurry-this'); 2815var hasOwn = require('../internals/has-own-property'); 2816var toIndexedObject = require('../internals/to-indexed-object'); 2817var indexOf = require('../internals/array-includes').indexOf; 2818var hiddenKeys = require('../internals/hidden-keys'); 2819 2820var push = uncurryThis([].push); 2821 2822module.exports = function (object, names) { 2823 var O = toIndexedObject(object); 2824 var i = 0; 2825 var result = []; 2826 var key; 2827 for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); 2828 // Don't enum bug & hidden keys 2829 while (names.length > i) if (hasOwn(O, key = names[i++])) { 2830 ~indexOf(result, key) || push(result, key); 2831 } 2832 return result; 2833}; 2834 2835},{"../internals/array-includes":10,"../internals/function-uncurry-this":66,"../internals/has-own-property":74,"../internals/hidden-keys":75,"../internals/to-indexed-object":161}],120:[function(require,module,exports){ 2836'use strict'; 2837var internalObjectKeys = require('../internals/object-keys-internal'); 2838var enumBugKeys = require('../internals/enum-bug-keys'); 2839 2840// `Object.keys` method 2841// https://tc39.es/ecma262/#sec-object.keys 2842// eslint-disable-next-line es/no-object-keys -- safe 2843module.exports = Object.keys || function keys(O) { 2844 return internalObjectKeys(O, enumBugKeys); 2845}; 2846 2847},{"../internals/enum-bug-keys":45,"../internals/object-keys-internal":119}],121:[function(require,module,exports){ 2848'use strict'; 2849var $propertyIsEnumerable = {}.propertyIsEnumerable; 2850// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 2851var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 2852 2853// Nashorn ~ JDK8 bug 2854var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); 2855 2856// `Object.prototype.propertyIsEnumerable` method implementation 2857// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable 2858exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { 2859 var descriptor = getOwnPropertyDescriptor(this, V); 2860 return !!descriptor && descriptor.enumerable; 2861} : $propertyIsEnumerable; 2862 2863},{}],122:[function(require,module,exports){ 2864'use strict'; 2865/* eslint-disable no-proto -- safe */ 2866var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor'); 2867var isObject = require('../internals/is-object'); 2868var requireObjectCoercible = require('../internals/require-object-coercible'); 2869var aPossiblePrototype = require('../internals/a-possible-prototype'); 2870 2871// `Object.setPrototypeOf` method 2872// https://tc39.es/ecma262/#sec-object.setprototypeof 2873// Works with __proto__ only. Old v8 can't work with null proto objects. 2874// eslint-disable-next-line es/no-object-setprototypeof -- safe 2875module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { 2876 var CORRECT_SETTER = false; 2877 var test = {}; 2878 var setter; 2879 try { 2880 setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); 2881 setter(test, []); 2882 CORRECT_SETTER = test instanceof Array; 2883 } catch (error) { /* empty */ } 2884 return function setPrototypeOf(O, proto) { 2885 requireObjectCoercible(O); 2886 aPossiblePrototype(proto); 2887 if (!isObject(O)) return O; 2888 if (CORRECT_SETTER) setter(O, proto); 2889 else O.__proto__ = proto; 2890 return O; 2891 }; 2892}() : undefined); 2893 2894},{"../internals/a-possible-prototype":3,"../internals/function-uncurry-this-accessor":64,"../internals/is-object":90,"../internals/require-object-coercible":142}],123:[function(require,module,exports){ 2895'use strict'; 2896var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); 2897var classof = require('../internals/classof'); 2898 2899// `Object.prototype.toString` method implementation 2900// https://tc39.es/ecma262/#sec-object.prototype.tostring 2901module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { 2902 return '[object ' + classof(this) + ']'; 2903}; 2904 2905},{"../internals/classof":27,"../internals/to-string-tag-support":167}],124:[function(require,module,exports){ 2906'use strict'; 2907var call = require('../internals/function-call'); 2908var isCallable = require('../internals/is-callable'); 2909var isObject = require('../internals/is-object'); 2910 2911var $TypeError = TypeError; 2912 2913// `OrdinaryToPrimitive` abstract operation 2914// https://tc39.es/ecma262/#sec-ordinarytoprimitive 2915module.exports = function (input, pref) { 2916 var fn, val; 2917 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; 2918 if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; 2919 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; 2920 throw new $TypeError("Can't convert object to primitive value"); 2921}; 2922 2923},{"../internals/function-call":62,"../internals/is-callable":86,"../internals/is-object":90}],125:[function(require,module,exports){ 2924'use strict'; 2925var getBuiltIn = require('../internals/get-built-in'); 2926var uncurryThis = require('../internals/function-uncurry-this'); 2927var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names'); 2928var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); 2929var anObject = require('../internals/an-object'); 2930 2931var concat = uncurryThis([].concat); 2932 2933// all object keys, includes non-enumerable and symbols 2934module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { 2935 var keys = getOwnPropertyNamesModule.f(anObject(it)); 2936 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; 2937 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; 2938}; 2939 2940},{"../internals/an-object":7,"../internals/function-uncurry-this":66,"../internals/get-built-in":67,"../internals/object-get-own-property-names":115,"../internals/object-get-own-property-symbols":116}],126:[function(require,module,exports){ 2941'use strict'; 2942var uncurryThis = require('../internals/function-uncurry-this'); 2943var hasOwn = require('../internals/has-own-property'); 2944 2945var $SyntaxError = SyntaxError; 2946var $parseInt = parseInt; 2947var fromCharCode = String.fromCharCode; 2948var at = uncurryThis(''.charAt); 2949var slice = uncurryThis(''.slice); 2950var exec = uncurryThis(/./.exec); 2951 2952var codePoints = { 2953 '\\"': '"', 2954 '\\\\': '\\', 2955 '\\/': '/', 2956 '\\b': '\b', 2957 '\\f': '\f', 2958 '\\n': '\n', 2959 '\\r': '\r', 2960 '\\t': '\t' 2961}; 2962 2963var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i; 2964// eslint-disable-next-line regexp/no-control-character -- safe 2965var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/; 2966 2967module.exports = function (source, i) { 2968 var unterminated = true; 2969 var value = ''; 2970 while (i < source.length) { 2971 var chr = at(source, i); 2972 if (chr === '\\') { 2973 var twoChars = slice(source, i, i + 2); 2974 if (hasOwn(codePoints, twoChars)) { 2975 value += codePoints[twoChars]; 2976 i += 2; 2977 } else if (twoChars === '\\u') { 2978 i += 2; 2979 var fourHexDigits = slice(source, i, i + 4); 2980 if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i); 2981 value += fromCharCode($parseInt(fourHexDigits, 16)); 2982 i += 4; 2983 } else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"'); 2984 } else if (chr === '"') { 2985 unterminated = false; 2986 i++; 2987 break; 2988 } else { 2989 if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i); 2990 value += chr; 2991 i++; 2992 } 2993 } 2994 if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i); 2995 return { value: value, end: i }; 2996}; 2997 2998},{"../internals/function-uncurry-this":66,"../internals/has-own-property":74}],127:[function(require,module,exports){ 2999'use strict'; 3000var globalThis = require('../internals/global-this'); 3001 3002module.exports = globalThis; 3003 3004},{"../internals/global-this":73}],128:[function(require,module,exports){ 3005'use strict'; 3006module.exports = function (exec) { 3007 try { 3008 return { error: false, value: exec() }; 3009 } catch (error) { 3010 return { error: true, value: error }; 3011 } 3012}; 3013 3014},{}],129:[function(require,module,exports){ 3015'use strict'; 3016var globalThis = require('../internals/global-this'); 3017var NativePromiseConstructor = require('../internals/promise-native-constructor'); 3018var isCallable = require('../internals/is-callable'); 3019var isForced = require('../internals/is-forced'); 3020var inspectSource = require('../internals/inspect-source'); 3021var wellKnownSymbol = require('../internals/well-known-symbol'); 3022var ENVIRONMENT = require('../internals/environment'); 3023var IS_PURE = require('../internals/is-pure'); 3024var V8_VERSION = require('../internals/environment-v8-version'); 3025 3026var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; 3027var SPECIES = wellKnownSymbol('species'); 3028var SUBCLASSING = false; 3029var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent); 3030 3031var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () { 3032 var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor); 3033 var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor); 3034 // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables 3035 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 3036 // We can't detect it synchronously, so just check versions 3037 if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; 3038 // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution 3039 if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true; 3040 // We can't use @@species feature detection in V8 since it causes 3041 // deoptimization and performance degradation 3042 // https://github.com/zloirock/core-js/issues/679 3043 if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) { 3044 // Detect correctness of subclassing with @@species support 3045 var promise = new NativePromiseConstructor(function (resolve) { resolve(1); }); 3046 var FakePromise = function (exec) { 3047 exec(function () { /* empty */ }, function () { /* empty */ }); 3048 }; 3049 var constructor = promise.constructor = {}; 3050 constructor[SPECIES] = FakePromise; 3051 SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; 3052 if (!SUBCLASSING) return true; 3053 // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test 3054 } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT; 3055}); 3056 3057module.exports = { 3058 CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR, 3059 REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT, 3060 SUBCLASSING: SUBCLASSING 3061}; 3062 3063},{"../internals/environment":52,"../internals/environment-v8-version":51,"../internals/global-this":73,"../internals/inspect-source":81,"../internals/is-callable":86,"../internals/is-forced":88,"../internals/is-pure":92,"../internals/promise-native-constructor":130,"../internals/well-known-symbol":178}],130:[function(require,module,exports){ 3064'use strict'; 3065var globalThis = require('../internals/global-this'); 3066 3067module.exports = globalThis.Promise; 3068 3069},{"../internals/global-this":73}],131:[function(require,module,exports){ 3070'use strict'; 3071var anObject = require('../internals/an-object'); 3072var isObject = require('../internals/is-object'); 3073var newPromiseCapability = require('../internals/new-promise-capability'); 3074 3075module.exports = function (C, x) { 3076 anObject(C);
vendor: 9,691 bytes, lines 3077-3339
3077 if (isObject(x) && x.constructor === C) return x; 3078 var promiseCapability = newPromiseCapability.f(C); 3079 var resolve = promiseCapability.resolve; 3080 resolve(x); 3081 return promiseCapability.promise; 3082}; 3083 3084},{"../internals/an-object":7,"../internals/is-object":90,"../internals/new-promise-capability":107}],132:[function(require,module,exports){ 3085'use strict'; 3086var NativePromiseConstructor = require('../internals/promise-native-constructor'); 3087var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); 3088var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; 3089 3090module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) { 3091 NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ }); 3092}); 3093 3094},{"../internals/check-correctness-of-iteration":25,"../internals/promise-constructor-detection":129,"../internals/promise-native-constructor":130}],133:[function(require,module,exports){ 3095'use strict'; 3096var defineProperty = require('../internals/object-define-property').f; 3097 3098module.exports = function (Target, Source, key) { 3099 key in Target || defineProperty(Target, key, { 3100 configurable: true, 3101 get: function () { return Source[key]; }, 3102 set: function (it) { Source[key] = it; } 3103 }); 3104}; 3105 3106},{"../internals/object-define-property":112}],134:[function(require,module,exports){ 3107'use strict'; 3108var Queue = function () { 3109 this.head = null; 3110 this.tail = null; 3111}; 3112 3113Queue.prototype = { 3114 add: function (item) { 3115 var entry = { item: item, next: null }; 3116 var tail = this.tail; 3117 if (tail) tail.next = entry; 3118 else this.head = entry; 3119 this.tail = entry; 3120 }, 3121 get: function () { 3122 var entry = this.head; 3123 if (entry) { 3124 var next = this.head = entry.next; 3125 if (next === null) this.tail = null; 3126 return entry.item; 3127 } 3128 } 3129}; 3130 3131module.exports = Queue; 3132 3133},{}],135:[function(require,module,exports){ 3134'use strict'; 3135var call = require('../internals/function-call'); 3136var anObject = require('../internals/an-object'); 3137var isCallable = require('../internals/is-callable'); 3138var classof = require('../internals/classof-raw'); 3139var regexpExec = require('../internals/regexp-exec'); 3140 3141var $TypeError = TypeError; 3142 3143// `RegExpExec` abstract operation 3144// https://tc39.es/ecma262/#sec-regexpexec 3145module.exports = function (R, S) { 3146 var exec = R.exec; 3147 if (isCallable(exec)) { 3148 var result = call(exec, R, S); 3149 if (result !== null) anObject(result); 3150 return result; 3151 } 3152 if (classof(R) === 'RegExp') return call(regexpExec, R, S); 3153 throw new $TypeError('RegExp#exec called on incompatible receiver'); 3154}; 3155 3156},{"../internals/an-object":7,"../internals/classof-raw":26,"../internals/function-call":62,"../internals/is-callable":86,"../internals/regexp-exec":136}],136:[function(require,module,exports){ 3157'use strict'; 3158/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ 3159/* eslint-disable regexp/no-useless-quantifier -- testing */ 3160var call = require('../internals/function-call'); 3161var uncurryThis = require('../internals/function-uncurry-this'); 3162var toString = require('../internals/to-string'); 3163var regexpFlags = require('../internals/regexp-flags'); 3164var stickyHelpers = require('../internals/regexp-sticky-helpers'); 3165var shared = require('../internals/shared'); 3166var create = require('../internals/object-create'); 3167var getInternalState = require('../internals/internal-state').get; 3168var UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all'); 3169var UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg'); 3170 3171var nativeReplace = shared('native-string-replace', String.prototype.replace); 3172var nativeExec = RegExp.prototype.exec; 3173var patchedExec = nativeExec; 3174var charAt = uncurryThis(''.charAt); 3175var indexOf = uncurryThis(''.indexOf); 3176var replace = uncurryThis(''.replace); 3177var stringSlice = uncurryThis(''.slice); 3178 3179var UPDATES_LAST_INDEX_WRONG = (function () { 3180 var re1 = /a/; 3181 var re2 = /b*/g; 3182 call(nativeExec, re1, 'a'); 3183 call(nativeExec, re2, 'a'); 3184 return re1.lastIndex !== 0 || re2.lastIndex !== 0; 3185})(); 3186 3187var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; 3188 3189// nonparticipating capturing group, copied from es5-shim's String#split patch. 3190var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; 3191 3192var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; 3193 3194if (PATCH) { 3195 patchedExec = function exec(string) { 3196 var re = this; 3197 var state = getInternalState(re); 3198 var str = toString(string); 3199 var raw = state.raw; 3200 var result, reCopy, lastIndex, match, i, object, group; 3201 3202 if (raw) { 3203 raw.lastIndex = re.lastIndex; 3204 result = call(patchedExec, raw, str); 3205 re.lastIndex = raw.lastIndex; 3206 return result; 3207 } 3208 3209 var groups = state.groups; 3210 var sticky = UNSUPPORTED_Y && re.sticky; 3211 var flags = call(regexpFlags, re); 3212 var source = re.source; 3213 var charsAdded = 0; 3214 var strCopy = str; 3215 3216 if (sticky) { 3217 flags = replace(flags, 'y', ''); 3218 if (indexOf(flags, 'g') === -1) { 3219 flags += 'g'; 3220 } 3221 3222 strCopy = stringSlice(str, re.lastIndex); 3223 // Support anchored sticky behavior. 3224 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) { 3225 source = '(?: ' + source + ')'; 3226 strCopy = ' ' + strCopy; 3227 charsAdded++; 3228 } 3229 // ^(? + rx + ) is needed, in combination with some str slicing, to 3230 // simulate the 'y' flag. 3231 reCopy = new RegExp('^(?:' + source + ')', flags); 3232 } 3233 3234 if (NPCG_INCLUDED) { 3235 reCopy = new RegExp('^' + source + '$(?!\\s)', flags); 3236 } 3237 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; 3238 3239 match = call(nativeExec, sticky ? reCopy : re, strCopy); 3240 3241 if (sticky) { 3242 if (match) { 3243 match.input = stringSlice(match.input, charsAdded); 3244 match[0] = stringSlice(match[0], charsAdded); 3245 match.index = re.lastIndex; 3246 re.lastIndex += match[0].length; 3247 } else re.lastIndex = 0; 3248 } else if (UPDATES_LAST_INDEX_WRONG && match) { 3249 re.lastIndex = re.global ? match.index + match[0].length : lastIndex; 3250 } 3251 if (NPCG_INCLUDED && match && match.length > 1) { 3252 // Fix browsers whose `exec` methods don't consistently return `undefined` 3253 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ 3254 call(nativeReplace, match[0], reCopy, function () { 3255 for (i = 1; i < arguments.length - 2; i++) { 3256 if (arguments[i] === undefined) match[i] = undefined; 3257 } 3258 }); 3259 } 3260 3261 if (match && groups) { 3262 match.groups = object = create(null); 3263 for (i = 0; i < groups.length; i++) { 3264 group = groups[i]; 3265 object[group[0]] = match[group[1]]; 3266 } 3267 } 3268 3269 return match; 3270 }; 3271} 3272 3273module.exports = patchedExec; 3274 3275},{"../internals/function-call":62,"../internals/function-uncurry-this":66,"../internals/internal-state":83,"../internals/object-create":110,"../internals/regexp-flags":137,"../internals/regexp-sticky-helpers":139,"../internals/regexp-unsupported-dot-all":140,"../internals/regexp-unsupported-ncg":141,"../internals/shared":149,"../internals/to-string":168}],137:[function(require,module,exports){ 3276'use strict'; 3277var anObject = require('../internals/an-object'); 3278 3279// `RegExp.prototype.flags` getter implementation 3280// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags 3281module.exports = function () { 3282 var that = anObject(this); 3283 var result = ''; 3284 if (that.hasIndices) result += 'd'; 3285 if (that.global) result += 'g'; 3286 if (that.ignoreCase) result += 'i'; 3287 if (that.multiline) result += 'm'; 3288 if (that.dotAll) result += 's'; 3289 if (that.unicode) result += 'u'; 3290 if (that.unicodeSets) result += 'v'; 3291 if (that.sticky) result += 'y'; 3292 return result; 3293}; 3294 3295},{"../internals/an-object":7}],138:[function(require,module,exports){ 3296'use strict'; 3297var call = require('../internals/function-call'); 3298var hasOwn = require('../internals/has-own-property'); 3299var isPrototypeOf = require('../internals/object-is-prototype-of'); 3300var regExpFlags = require('../internals/regexp-flags'); 3301 3302var RegExpPrototype = RegExp.prototype; 3303 3304module.exports = function (R) { 3305 var flags = R.flags; 3306 return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) 3307 ? call(regExpFlags, R) : flags; 3308}; 3309 3310},{"../internals/function-call":62,"../internals/has-own-property":74,"../internals/object-is-prototype-of":118,"../internals/regexp-flags":137}],139:[function(require,module,exports){ 3311'use strict'; 3312var fails = require('../internals/fails'); 3313var globalThis = require('../internals/global-this'); 3314 3315// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError 3316var $RegExp = globalThis.RegExp; 3317 3318var UNSUPPORTED_Y = fails(function () { 3319 var re = $RegExp('a', 'y'); 3320 re.lastIndex = 2; 3321 return re.exec('abcd') !== null; 3322}); 3323 3324// UC Browser bug 3325// https://github.com/zloirock/core-js/issues/1008 3326var MISSED_STICKY = UNSUPPORTED_Y || fails(function () { 3327 return !$RegExp('a', 'y').sticky; 3328}); 3329 3330var BROKEN_CARET = UNSUPPORTED_Y || fails(function () { 3331 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 3332 var re = $RegExp('^r', 'gy'); 3333 re.lastIndex = 2; 3334 return re.exec('str') !== null; 3335}); 3336 3337module.exports = { 3338 BROKEN_CARET: BROKEN_CARET, 3339 MISSED_STICKY: MISSED_STICKY,
vendor: 4,570 bytes, lines 3340-3459
3340 UNSUPPORTED_Y: UNSUPPORTED_Y 3341}; 3342 3343},{"../internals/fails":57,"../internals/global-this":73}],140:[function(require,module,exports){ 3344'use strict'; 3345var fails = require('../internals/fails'); 3346var globalThis = require('../internals/global-this'); 3347 3348// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError 3349var $RegExp = globalThis.RegExp; 3350 3351module.exports = fails(function () { 3352 var re = $RegExp('.', 's'); 3353 return !(re.dotAll && re.test('\n') && re.flags === 's'); 3354}); 3355 3356},{"../internals/fails":57,"../internals/global-this":73}],141:[function(require,module,exports){ 3357'use strict'; 3358var fails = require('../internals/fails'); 3359var globalThis = require('../internals/global-this'); 3360 3361// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError 3362var $RegExp = globalThis.RegExp; 3363 3364module.exports = fails(function () { 3365 var re = $RegExp('(?<a>b)', 'g'); 3366 return re.exec('b').groups.a !== 'b' || 3367 'b'.replace(re, '$<a>c') !== 'bc'; 3368}); 3369 3370},{"../internals/fails":57,"../internals/global-this":73}],142:[function(require,module,exports){ 3371'use strict'; 3372var isNullOrUndefined = require('../internals/is-null-or-undefined'); 3373 3374var $TypeError = TypeError; 3375 3376// `RequireObjectCoercible` abstract operation 3377// https://tc39.es/ecma262/#sec-requireobjectcoercible 3378module.exports = function (it) { 3379 if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); 3380 return it; 3381}; 3382 3383},{"../internals/is-null-or-undefined":89}],143:[function(require,module,exports){ 3384'use strict'; 3385var globalThis = require('../internals/global-this'); 3386var DESCRIPTORS = require('../internals/descriptors'); 3387 3388// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 3389var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 3390 3391// Avoid NodeJS experimental warning 3392module.exports = function (name) { 3393 if (!DESCRIPTORS) return globalThis[name]; 3394 var descriptor = getOwnPropertyDescriptor(globalThis, name); 3395 return descriptor && descriptor.value; 3396}; 3397 3398},{"../internals/descriptors":40,"../internals/global-this":73}],144:[function(require,module,exports){ 3399'use strict'; 3400// `SameValue` abstract operation 3401// https://tc39.es/ecma262/#sec-samevalue 3402// eslint-disable-next-line es/no-object-is -- safe 3403module.exports = Object.is || function is(x, y) { 3404 // eslint-disable-next-line no-self-compare -- NaN check 3405 return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y; 3406}; 3407 3408},{}],145:[function(require,module,exports){ 3409'use strict'; 3410var getBuiltIn = require('../internals/get-built-in'); 3411var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 3412var wellKnownSymbol = require('../internals/well-known-symbol'); 3413var DESCRIPTORS = require('../internals/descriptors'); 3414 3415var SPECIES = wellKnownSymbol('species'); 3416 3417module.exports = function (CONSTRUCTOR_NAME) { 3418 var Constructor = getBuiltIn(CONSTRUCTOR_NAME); 3419 3420 if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { 3421 defineBuiltInAccessor(Constructor, SPECIES, { 3422 configurable: true, 3423 get: function () { return this; } 3424 }); 3425 } 3426}; 3427 3428},{"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/get-built-in":67,"../internals/well-known-symbol":178}],146:[function(require,module,exports){ 3429'use strict'; 3430var defineProperty = require('../internals/object-define-property').f; 3431var hasOwn = require('../internals/has-own-property'); 3432var wellKnownSymbol = require('../internals/well-known-symbol'); 3433 3434var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 3435 3436module.exports = function (target, TAG, STATIC) { 3437 if (target && !STATIC) target = target.prototype; 3438 if (target && !hasOwn(target, TO_STRING_TAG)) { 3439 defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); 3440 } 3441}; 3442 3443},{"../internals/has-own-property":74,"../internals/object-define-property":112,"../internals/well-known-symbol":178}],147:[function(require,module,exports){ 3444'use strict'; 3445var shared = require('../internals/shared'); 3446var uid = require('../internals/uid'); 3447 3448var keys = shared('keys'); 3449 3450module.exports = function (key) { 3451 return keys[key] || (keys[key] = uid(key)); 3452}; 3453 3454},{"../internals/shared":149,"../internals/uid":170}],148:[function(require,module,exports){ 3455'use strict'; 3456var IS_PURE = require('../internals/is-pure'); 3457var globalThis = require('../internals/global-this'); 3458var defineGlobalProperty = require('../internals/define-global-property'); 3459
3460var SHARED = '__core-js_shared__'; 3461var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); 3462 3463(store.versions || (store.versions = [])).push({ 3464 version: '3.38.1', 3465 mode: IS_PURE ? 'pure' : 'global', 3466 copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)', 3467 license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE', 3468 source: 'https://github.com/zloirock/core-js' 3469}); 3470 3471},{"../internals/define-global-property":39,"../internals/global-this":73,"../internals/is-pure":92}],149:[function(require,module,exports){ 3472'use strict'; 3473var store = require('../internals/shared-store'); 3474 3475module.exports = function (key, value) { 3476 return store[key] || (store[key] = value || {}); 3477}; 3478 3479},{"../internals/shared-store":148}],150:[function(require,module,exports){ 3480'use strict'; 3481var anObject = require('../internals/an-object'); 3482var aConstructor = require('../internals/a-constructor'); 3483var isNullOrUndefined = require('../internals/is-null-or-undefined'); 3484var wellKnownSymbol = require('../internals/well-known-symbol'); 3485 3486var SPECIES = wellKnownSymbol('species'); 3487 3488// `SpeciesConstructor` abstract operation 3489// https://tc39.es/ecma262/#sec-speciesconstructor 3490module.exports = function (O, defaultConstructor) { 3491 var C = anObject(O).constructor; 3492 var S; 3493 return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); 3494}; 3495 3496},{"../internals/a-constructor":2,"../internals/an-object":7,"../internals/is-null-or-undefined":89,"../internals/well-known-symbol":178}],151:[function(require,module,exports){ 3497'use strict'; 3498var uncurryThis = require('../internals/function-uncurry-this'); 3499var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); 3500var toString = require('../internals/to-string'); 3501var requireObjectCoercible = require('../internals/require-object-coercible'); 3502 3503var charAt = uncurryThis(''.charAt); 3504var charCodeAt = uncurryThis(''.charCodeAt); 3505var stringSlice = uncurryThis(''.slice); 3506 3507var createMethod = function (CONVERT_TO_STRING) { 3508 return function ($this, pos) { 3509 var S = toString(requireObjectCoercible($this)); 3510 var position = toIntegerOrInfinity(pos); 3511 var size = S.length; 3512 var first, second; 3513 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; 3514 first = charCodeAt(S, position); 3515 return first < 0xD800 || first > 0xDBFF || position + 1 === size 3516 || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF 3517 ? CONVERT_TO_STRING 3518 ? charAt(S, position) 3519 : first 3520 : CONVERT_TO_STRING 3521 ? stringSlice(S, position, position + 2) 3522 : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; 3523 }; 3524}; 3525 3526module.exports = { 3527 // `String.prototype.codePointAt` method 3528 // https://tc39.es/ecma262/#sec-string.prototype.codepointat 3529 codeAt: createMethod(false), 3530 // `String.prototype.at` method 3531 // https://github.com/mathiasbynens/String.prototype.at 3532 charAt: createMethod(true) 3533}; 3534 3535},{"../internals/function-uncurry-this":66,"../internals/require-object-coercible":142,"../internals/to-integer-or-infinity":162,"../internals/to-string":168}],152:[function(require,module,exports){ 3536'use strict'; 3537var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); 3538var toString = require('../internals/to-string'); 3539var requireObjectCoercible = require('../internals/require-object-coercible'); 3540 3541var $RangeError = RangeError; 3542 3543// `String.prototype.repeat` method implementation 3544// https://tc39.es/ecma262/#sec-string.prototype.repeat 3545module.exports = function repeat(count) { 3546 var str = toString(requireObjectCoercible(this)); 3547 var result = ''; 3548 var n = toIntegerOrInfinity(count); 3549 if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions'); 3550 for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str; 3551 return result; 3552}; 3553 3554},{"../internals/require-object-coercible":142,"../internals/to-integer-or-infinity":162,"../internals/to-string":168}],153:[function(require,module,exports){ 3555'use strict'; 3556var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER; 3557var fails = require('../internals/fails');
vendor: 1,940 bytes, lines 3558-3605
3558var whitespaces = require('../internals/whitespaces'); 3559 3560var non = '\u200B\u0085\u180E'; 3561 3562// check that a method works with the correct list 3563// of whitespaces and has a correct name 3564module.exports = function (METHOD_NAME) { 3565 return fails(function () { 3566 return !!whitespaces[METHOD_NAME]() 3567 || non[METHOD_NAME]() !== non 3568 || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); 3569 }); 3570}; 3571 3572},{"../internals/fails":57,"../internals/function-name":63,"../internals/whitespaces":179}],154:[function(require,module,exports){ 3573'use strict'; 3574var uncurryThis = require('../internals/function-uncurry-this'); 3575var requireObjectCoercible = require('../internals/require-object-coercible'); 3576var toString = require('../internals/to-string'); 3577var whitespaces = require('../internals/whitespaces'); 3578 3579var replace = uncurryThis(''.replace); 3580var ltrim = RegExp('^[' + whitespaces + ']+'); 3581var rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$'); 3582 3583// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation 3584var createMethod = function (TYPE) { 3585 return function ($this) { 3586 var string = toString(requireObjectCoercible($this)); 3587 if (TYPE & 1) string = replace(string, ltrim, ''); 3588 if (TYPE & 2) string = replace(string, rtrim, '$1'); 3589 return string; 3590 }; 3591}; 3592 3593module.exports = { 3594 // `String.prototype.{ trimLeft, trimStart }` methods 3595 // https://tc39.es/ecma262/#sec-string.prototype.trimstart 3596 start: createMethod(1), 3597 // `String.prototype.{ trimRight, trimEnd }` methods 3598 // https://tc39.es/ecma262/#sec-string.prototype.trimend 3599 end: createMethod(2), 3600 // `String.prototype.trim` method 3601 // https://tc39.es/ecma262/#sec-string.prototype.trim 3602 trim: createMethod(3) 3603}; 3604 3605},{"../internals/function-uncurry-this":66,"../internals/require-object-coercible":142,"../internals/to-string":168,"../internals/whitespace
vendor: 6,626 bytes, lines 3605-3776
3605s":179}],155:[function(require,module,exports){ 3606'use strict'; 3607/* eslint-disable es/no-symbol -- required for testing */ 3608var V8_VERSION = require('../internals/environment-v8-version'); 3609var fails = require('../internals/fails'); 3610var globalThis = require('../internals/global-this'); 3611 3612var $String = globalThis.String; 3613 3614// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing 3615module.exports = !!Object.getOwnPropertySymbols && !fails(function () { 3616 var symbol = Symbol('symbol detection'); 3617 // Chrome 38 Symbol has incorrect toString conversion 3618 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances 3619 // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, 3620 // of course, fail. 3621 return !$String(symbol) || !(Object(symbol) instanceof Symbol) || 3622 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances 3623 !Symbol.sham && V8_VERSION && V8_VERSION < 41; 3624}); 3625 3626},{"../internals/environment-v8-version":51,"../internals/fails":57,"../internals/global-this":73}],156:[function(require,module,exports){ 3627'use strict'; 3628var call = require('../internals/function-call'); 3629var getBuiltIn = require('../internals/get-built-in'); 3630var wellKnownSymbol = require('../internals/well-known-symbol'); 3631var defineBuiltIn = require('../internals/define-built-in'); 3632 3633module.exports = function () { 3634 var Symbol = getBuiltIn('Symbol'); 3635 var SymbolPrototype = Symbol && Symbol.prototype; 3636 var valueOf = SymbolPrototype && SymbolPrototype.valueOf; 3637 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); 3638 3639 if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { 3640 // `Symbol.prototype[@@toPrimitive]` method 3641 // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive 3642 // eslint-disable-next-line no-unused-vars -- required for .length 3643 defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) { 3644 return call(valueOf, this); 3645 }, { arity: 1 }); 3646 } 3647}; 3648 3649},{"../internals/define-built-in":37,"../internals/function-call":62,"../internals/get-built-in":67,"../internals/well-known-symbol":178}],157:[function(require,module,exports){ 3650'use strict'; 3651var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 3652 3653/* eslint-disable es/no-symbol -- safe */ 3654module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor; 3655 3656},{"../internals/symbol-constructor-detection":155}],158:[function(require,module,exports){ 3657'use strict'; 3658var globalThis = require('../internals/global-this'); 3659var apply = require('../internals/function-apply'); 3660var bind = require('../internals/function-bind-context'); 3661var isCallable = require('../internals/is-callable'); 3662var hasOwn = require('../internals/has-own-property'); 3663var fails = require('../internals/fails'); 3664var html = require('../internals/html'); 3665var arraySlice = require('../internals/array-slice'); 3666var createElement = require('../internals/document-create-element'); 3667var validateArgumentsLength = require('../internals/validate-arguments-length'); 3668var IS_IOS = require('../internals/environment-is-ios'); 3669var IS_NODE = require('../internals/environment-is-node'); 3670 3671var set = globalThis.setImmediate; 3672var clear = globalThis.clearImmediate; 3673var process = globalThis.process; 3674var Dispatch = globalThis.Dispatch; 3675var Function = globalThis.Function; 3676var MessageChannel = globalThis.MessageChannel; 3677var String = globalThis.String; 3678var counter = 0; 3679var queue = {}; 3680var ONREADYSTATECHANGE = 'onreadystatechange'; 3681var $location, defer, channel, port; 3682 3683fails(function () { 3684 // Deno throws a ReferenceError on `location` access without `--location` flag 3685 $location = globalThis.location; 3686}); 3687 3688var run = function (id) { 3689 if (hasOwn(queue, id)) { 3690 var fn = queue[id]; 3691 delete queue[id]; 3692 fn(); 3693 } 3694}; 3695 3696var runner = function (id) { 3697 return function () { 3698 run(id); 3699 }; 3700}; 3701 3702var eventListener = function (event) { 3703 run(event.data); 3704}; 3705 3706var globalPostMessageDefer = function (id) { 3707 // old engines have not location.origin 3708 globalThis.postMessage(String(id), $location.protocol + '//' + $location.host); 3709}; 3710 3711// Node.js 0.9+ & IE10+ has setImmediate, otherwise: 3712if (!set || !clear) { 3713 set = function setImmediate(handler) { 3714 validateArgumentsLength(arguments.length, 1); 3715 var fn = isCallable(handler) ? handler : Function(handler); 3716 var args = arraySlice(arguments, 1); 3717 queue[++counter] = function () { 3718 apply(fn, undefined, args); 3719 }; 3720 defer(counter); 3721 return counter; 3722 }; 3723 clear = function clearImmediate(id) { 3724 delete queue[id]; 3725 }; 3726 // Node.js 0.8- 3727 if (IS_NODE) { 3728 defer = function (id) { 3729 process.nextTick(runner(id)); 3730 }; 3731 // Sphere (JS game engine) Dispatch API 3732 } else if (Dispatch && Dispatch.now) { 3733 defer = function (id) { 3734 Dispatch.now(runner(id)); 3735 }; 3736 // Browsers with MessageChannel, includes WebWorkers 3737 // except iOS - https://github.com/zloirock/core-js/issues/624 3738 } else if (MessageChannel && !IS_IOS) { 3739 channel = new MessageChannel(); 3740 port = channel.port2; 3741 channel.port1.onmessage = eventListener; 3742 defer = bind(port.postMessage, port); 3743 // Browsers with postMessage, skip WebWorkers 3744 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' 3745 } else if ( 3746 globalThis.addEventListener && 3747 isCallable(globalThis.postMessage) && 3748 !globalThis.importScripts && 3749 $location && $location.protocol !== 'file:' && 3750 !fails(globalPostMessageDefer) 3751 ) { 3752 defer = globalPostMessageDefer; 3753 globalThis.addEventListener('message', eventListener, false); 3754 // IE8- 3755 } else if (ONREADYSTATECHANGE in createElement('script')) { 3756 defer = function (id) { 3757 html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { 3758 html.removeChild(this); 3759 run(id); 3760 }; 3761 }; 3762 // Rest old browsers 3763 } else { 3764 defer = function (id) { 3765 setTimeout(runner(id), 0); 3766 }; 3767 } 3768} 3769 3770module.exports = { 3771 set: set, 3772 clear: clear 3773}; 3774 3775},{"../internals/array-slice":15,"../internals/document-create-element":41,"../internals/environment-is-ios":47,"../internals/environment-is-node":48,"../internals/fails":57,"../internals/function-apply":59,"../internals/function-bind-context":60,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/html":77,"../internals/is-callable":86,"../internals/validate-arguments-length":174}],159:[function(require,module,exports){ 3776'use strict';
vendor: 15,356 bytes, lines 3777-4142
3777var uncurryThis = require('../internals/function-uncurry-this'); 3778 3779// `thisNumberValue` abstract operation 3780// https://tc39.es/ecma262/#sec-thisnumbervalue 3781module.exports = uncurryThis(1.0.valueOf); 3782 3783},{"../internals/function-uncurry-this":66}],160:[function(require,module,exports){ 3784'use strict'; 3785var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); 3786 3787var max = Math.max; 3788var min = Math.min; 3789 3790// Helper for a popular repeating case of the spec: 3791// Let integer be ? ToInteger(index). 3792// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). 3793module.exports = function (index, length) { 3794 var integer = toIntegerOrInfinity(index); 3795 return integer < 0 ? max(integer + length, 0) : min(integer, length); 3796}; 3797 3798},{"../internals/to-integer-or-infinity":162}],161:[function(require,module,exports){ 3799'use strict'; 3800// toObject with fallback for non-array-like ES3 strings 3801var IndexedObject = require('../internals/indexed-object'); 3802var requireObjectCoercible = require('../internals/require-object-coercible'); 3803 3804module.exports = function (it) { 3805 return IndexedObject(requireObjectCoercible(it)); 3806}; 3807 3808},{"../internals/indexed-object":79,"../internals/require-object-coercible":142}],162:[function(require,module,exports){ 3809'use strict'; 3810var trunc = require('../internals/math-trunc'); 3811 3812// `ToIntegerOrInfinity` abstract operation 3813// https://tc39.es/ecma262/#sec-tointegerorinfinity 3814module.exports = function (argument) { 3815 var number = +argument; 3816 // eslint-disable-next-line no-self-compare -- NaN check 3817 return number !== number || number === 0 ? 0 : trunc(number); 3818}; 3819 3820},{"../internals/math-trunc":105}],163:[function(require,module,exports){ 3821'use strict'; 3822var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); 3823 3824var min = Math.min; 3825 3826// `ToLength` abstract operation 3827// https://tc39.es/ecma262/#sec-tolength 3828module.exports = function (argument) { 3829 var len = toIntegerOrInfinity(argument); 3830 return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 3831}; 3832 3833},{"../internals/to-integer-or-infinity":162}],164:[function(require,module,exports){ 3834'use strict'; 3835var requireObjectCoercible = require('../internals/require-object-coercible'); 3836 3837var $Object = Object; 3838 3839// `ToObject` abstract operation 3840// https://tc39.es/ecma262/#sec-toobject 3841module.exports = function (argument) { 3842 return $Object(requireObjectCoercible(argument)); 3843}; 3844 3845},{"../internals/require-object-coercible":142}],165:[function(require,module,exports){ 3846'use strict'; 3847var call = require('../internals/function-call'); 3848var isObject = require('../internals/is-object'); 3849var isSymbol = require('../internals/is-symbol'); 3850var getMethod = require('../internals/get-method'); 3851var ordinaryToPrimitive = require('../internals/ordinary-to-primitive'); 3852var wellKnownSymbol = require('../internals/well-known-symbol'); 3853 3854var $TypeError = TypeError; 3855var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); 3856 3857// `ToPrimitive` abstract operation 3858// https://tc39.es/ecma262/#sec-toprimitive 3859module.exports = function (input, pref) { 3860 if (!isObject(input) || isSymbol(input)) return input; 3861 var exoticToPrim = getMethod(input, TO_PRIMITIVE); 3862 var result; 3863 if (exoticToPrim) { 3864 if (pref === undefined) pref = 'default'; 3865 result = call(exoticToPrim, input, pref); 3866 if (!isObject(result) || isSymbol(result)) return result; 3867 throw new $TypeError("Can't convert object to primitive value"); 3868 } 3869 if (pref === undefined) pref = 'number'; 3870 return ordinaryToPrimitive(input, pref); 3871}; 3872 3873},{"../internals/function-call":62,"../internals/get-method":72,"../internals/is-object":90,"../internals/is-symbol":94,"../internals/ordinary-to-primitive":124,"../internals/well-known-symbol":178}],166:[function(require,module,exports){ 3874'use strict'; 3875var toPrimitive = require('../internals/to-primitive'); 3876var isSymbol = require('../internals/is-symbol'); 3877 3878// `ToPropertyKey` abstract operation 3879// https://tc39.es/ecma262/#sec-topropertykey 3880module.exports = function (argument) { 3881 var key = toPrimitive(argument, 'string'); 3882 return isSymbol(key) ? key : key + ''; 3883}; 3884 3885},{"../internals/is-symbol":94,"../internals/to-primitive":165}],167:[function(require,module,exports){ 3886'use strict'; 3887var wellKnownSymbol = require('../internals/well-known-symbol'); 3888 3889var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 3890var test = {}; 3891 3892test[TO_STRING_TAG] = 'z'; 3893 3894module.exports = String(test) === '[object z]'; 3895 3896},{"../internals/well-known-symbol":178}],168:[function(require,module,exports){ 3897'use strict'; 3898var classof = require('../internals/classof'); 3899 3900var $String = String; 3901 3902module.exports = function (argument) { 3903 if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); 3904 return $String(argument); 3905}; 3906 3907},{"../internals/classof":27}],169:[function(require,module,exports){ 3908'use strict'; 3909var $String = String; 3910 3911module.exports = function (argument) { 3912 try { 3913 return $String(argument); 3914 } catch (error) { 3915 return 'Object'; 3916 } 3917}; 3918 3919},{}],170:[function(require,module,exports){ 3920'use strict'; 3921var uncurryThis = require('../internals/function-uncurry-this'); 3922 3923var id = 0; 3924var postfix = Math.random(); 3925var toString = uncurryThis(1.0.toString); 3926 3927module.exports = function (key) { 3928 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); 3929}; 3930 3931},{"../internals/function-uncurry-this":66}],171:[function(require,module,exports){ 3932'use strict'; 3933var fails = require('../internals/fails'); 3934var wellKnownSymbol = require('../internals/well-known-symbol'); 3935var DESCRIPTORS = require('../internals/descriptors'); 3936var IS_PURE = require('../internals/is-pure'); 3937 3938var ITERATOR = wellKnownSymbol('iterator'); 3939 3940module.exports = !fails(function () { 3941 // eslint-disable-next-line unicorn/relative-url-style -- required for testing 3942 var url = new URL('b?a=1&b=2&c=3', 'https://a'); 3943 var params = url.searchParams; 3944 var params2 = new URLSearchParams('a=1&a=2&b=3'); 3945 var result = ''; 3946 url.pathname = 'c%20d'; 3947 params.forEach(function (value, key) { 3948 params['delete']('b'); 3949 result += key + value; 3950 }); 3951 params2['delete']('a', 2); 3952 // `undefined` case is a Chromium 117 bug 3953 // https://bugs.chromium.org/p/v8/issues/detail?id=14222 3954 params2['delete']('b', undefined); 3955 return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b'))) 3956 || (!params.size && (IS_PURE || !DESCRIPTORS)) 3957 || !params.sort 3958 || url.href !== 'https://a/c%20d?a=1&c=3' 3959 || params.get('c') !== '3' 3960 || String(new URLSearchParams('?a=1')) !== 'a=1' 3961 || !params[ITERATOR] 3962 // throws in Edge 3963 || new URL('https://a@b').username !== 'a' 3964 || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' 3965 // not punycoded in Edge 3966 || new URL('https://ÑеÑÑ').host !== 'xn--e1aybc' 3967 // not escaped in Chrome 62- 3968 || new URL('https://a#б').hash !== '#%D0%B1' 3969 // fails in Chrome 66- 3970 || result !== 'a1c3' 3971 // throws in Safari 3972 || new URL('https://x', undefined).host !== 'x'; 3973}); 3974 3975},{"../internals/descriptors":40,"../internals/fails":57,"../internals/is-pure":92,"../internals/well-known-symbol":178}],172:[function(require,module,exports){ 3976'use strict'; 3977/* eslint-disable es/no-symbol -- required for testing */ 3978var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 3979 3980module.exports = NATIVE_SYMBOL 3981 && !Symbol.sham 3982 && typeof Symbol.iterator == 'symbol'; 3983 3984},{"../internals/symbol-constructor-detection":155}],173:[function(require,module,exports){ 3985'use strict'; 3986var DESCRIPTORS = require('../internals/descriptors'); 3987var fails = require('../internals/fails'); 3988 3989// V8 ~ Chrome 36- 3990// https://bugs.chromium.org/p/v8/issues/detail?id=3334 3991module.exports = DESCRIPTORS && fails(function () { 3992 // eslint-disable-next-line es/no-object-defineproperty -- required for testing 3993 return Object.defineProperty(function () { /* empty */ }, 'prototype', { 3994 value: 42, 3995 writable: false 3996 }).prototype !== 42; 3997}); 3998 3999},{"../internals/descriptors":40,"../internals/fails":57}],174:[function(require,module,exports){ 4000'use strict'; 4001var $TypeError = TypeError; 4002 4003module.exports = function (passed, required) { 4004 if (passed < required) throw new $TypeError('Not enough arguments'); 4005 return passed; 4006}; 4007 4008},{}],175:[function(require,module,exports){ 4009'use strict'; 4010var globalThis = require('../internals/global-this'); 4011var isCallable = require('../internals/is-callable'); 4012 4013var WeakMap = globalThis.WeakMap; 4014 4015module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); 4016 4017},{"../internals/global-this":73,"../internals/is-callable":86}],176:[function(require,module,exports){ 4018'use strict'; 4019var path = require('../internals/path'); 4020var hasOwn = require('../internals/has-own-property'); 4021var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped'); 4022var defineProperty = require('../internals/object-define-property').f; 4023 4024module.exports = function (NAME) { 4025 var Symbol = path.Symbol || (path.Symbol = {}); 4026 if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, { 4027 value: wrappedWellKnownSymbolModule.f(NAME) 4028 }); 4029}; 4030 4031},{"../internals/has-own-property":74,"../internals/object-define-property":112,"../internals/path":127,"../internals/well-known-symbol-wrapped":177}],177:[function(require,module,exports){ 4032'use strict'; 4033var wellKnownSymbol = require('../internals/well-known-symbol'); 4034 4035exports.f = wellKnownSymbol; 4036 4037},{"../internals/well-known-symbol":178}],178:[function(require,module,exports){ 4038'use strict'; 4039var globalThis = require('../internals/global-this'); 4040var shared = require('../internals/shared'); 4041var hasOwn = require('../internals/has-own-property'); 4042var uid = require('../internals/uid'); 4043var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 4044var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); 4045 4046var Symbol = globalThis.Symbol; 4047var WellKnownSymbolsStore = shared('wks'); 4048var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; 4049 4050module.exports = function (name) { 4051 if (!hasOwn(WellKnownSymbolsStore, name)) { 4052 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) 4053 ? Symbol[name] 4054 : createWellKnownSymbol('Symbol.' + name); 4055 } return WellKnownSymbolsStore[name]; 4056}; 4057 4058},{"../internals/global-this":73,"../internals/has-own-property":74,"../internals/shared":149,"../internals/symbol-constructor-detection":155,"../internals/uid":170,"../internals/use-symbol-as-uid":172}],179:[function(require,module,exports){ 4059'use strict'; 4060// a string of all valid unicode whitespaces 4061module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + 4062 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 4063 4064},{}],180:[function(require,module,exports){ 4065'use strict'; 4066var getBuiltIn = require('../internals/get-built-in'); 4067var hasOwn = require('../internals/has-own-property'); 4068var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 4069var isPrototypeOf = require('../internals/object-is-prototype-of'); 4070var setPrototypeOf = require('../internals/object-set-prototype-of'); 4071var copyConstructorProperties = require('../internals/copy-constructor-properties'); 4072var proxyAccessor = require('../internals/proxy-accessor'); 4073var inheritIfRequired = require('../internals/inherit-if-required'); 4074var normalizeStringArgument = require('../internals/normalize-string-argument'); 4075var installErrorCause = require('../internals/install-error-cause'); 4076var installErrorStack = require('../internals/error-stack-install'); 4077var DESCRIPTORS = require('../internals/descriptors'); 4078var IS_PURE = require('../internals/is-pure'); 4079 4080module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { 4081 var STACK_TRACE_LIMIT = 'stackTraceLimit'; 4082 var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; 4083 var path = FULL_NAME.split('.'); 4084 var ERROR_NAME = path[path.length - 1]; 4085 var OriginalError = getBuiltIn.apply(null, path); 4086 4087 if (!OriginalError) return; 4088 4089 var OriginalErrorPrototype = OriginalError.prototype; 4090 4091 // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 4092 if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; 4093 4094 if (!FORCED) return OriginalError; 4095 4096 var BaseError = getBuiltIn('Error'); 4097 4098 var WrappedError = wrapper(function (a, b) { 4099 var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); 4100 var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); 4101 if (message !== undefined) createNonEnumerableProperty(result, 'message', message); 4102 installErrorStack(result, WrappedError, result.stack, 2); 4103 if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); 4104 if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); 4105 return result; 4106 }); 4107 4108 WrappedError.prototype = OriginalErrorPrototype; 4109 4110 if (ERROR_NAME !== 'Error') { 4111 if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); 4112 else copyConstructorProperties(WrappedError, BaseError, { name: true }); 4113 } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { 4114 proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); 4115 proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); 4116 } 4117 4118 copyConstructorProperties(WrappedError, OriginalError); 4119 4120 if (!IS_PURE) try { 4121 // Safari 13- bug: WebAssembly errors does not have a proper `.name` 4122 if (OriginalErrorPrototype.name !== ERROR_NAME) { 4123 createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); 4124 } 4125 OriginalErrorPrototype.constructor = WrappedError; 4126 } catch (error) { /* empty */ } 4127 4128 return WrappedError; 4129}; 4130 4131},{"../internals/copy-constructor-properties":28,"../internals/create-non-enumerable-property":32,"../internals/descriptors":40,"../internals/error-stack-install":54,"../internals/get-built-in":67,"../internals/has-own-property":74,"../internals/inherit-if-required":80,"../internals/install-error-cause":82,"../internals/is-pure":92,"../internals/normalize-string-argument":108,"../internals/object-is-prototype-of":118,"../internals/object-set-prototype-of":122,"../internals/proxy-accessor":133}],181:[function(require,module,exports){ 4132'use strict'; 4133var $ = require('../internals/export'); 4134var fails = require('../internals/fails'); 4135var isArray = require('../internals/is-array'); 4136var isObject = require('../internals/is-object'); 4137var toObject = require('../internals/to-object'); 4138var lengthOfArrayLike = require('../internals/length-of-array-like'); 4139var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); 4140var createProperty = require('../internals/create-property'); 4141var arraySpeciesCreate = require('../internals/array-species-create'); 4142var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-s
vendor: 4,794 bytes, lines 4142-4253
4142pecies-support'); 4143var wellKnownSymbol = require('../internals/well-known-symbol'); 4144var V8_VERSION = require('../internals/environment-v8-version'); 4145 4146var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); 4147 4148// We can't use this feature detection in V8 since it causes 4149// deoptimization and serious performance degradation 4150// https://github.com/zloirock/core-js/issues/679 4151var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { 4152 var array = []; 4153 array[IS_CONCAT_SPREADABLE] = false; 4154 return array.concat()[0] !== array; 4155}); 4156 4157var isConcatSpreadable = function (O) { 4158 if (!isObject(O)) return false; 4159 var spreadable = O[IS_CONCAT_SPREADABLE]; 4160 return spreadable !== undefined ? !!spreadable : isArray(O); 4161}; 4162 4163var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); 4164 4165// `Array.prototype.concat` method 4166// https://tc39.es/ecma262/#sec-array.prototype.concat 4167// with adding support of @@isConcatSpreadable and @@species 4168$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { 4169 // eslint-disable-next-line no-unused-vars -- required for `.length` 4170 concat: function concat(arg) { 4171 var O = toObject(this); 4172 var A = arraySpeciesCreate(O, 0); 4173 var n = 0; 4174 var i, k, length, len, E; 4175 for (i = -1, length = arguments.length; i < length; i++) { 4176 E = i === -1 ? O : arguments[i]; 4177 if (isConcatSpreadable(E)) { 4178 len = lengthOfArrayLike(E); 4179 doesNotExceedSafeInteger(n + len); 4180 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); 4181 } else { 4182 doesNotExceedSafeInteger(n + 1); 4183 createProperty(A, n++, E); 4184 } 4185 } 4186 A.length = n; 4187 return A; 4188 } 4189}); 4190 4191},{"../internals/array-method-has-species-support":12,"../internals/array-species-create":18,"../internals/create-property":34,"../internals/does-not-exceed-safe-integer":42,"../internals/environment-v8-version":51,"../internals/export":56,"../internals/fails":57,"../internals/is-array":85,"../internals/is-object":90,"../internals/length-of-array-like":103,"../internals/to-object":164,"../internals/well-known-symbol":178}],182:[function(require,module,exports){ 4192'use strict'; 4193var $ = require('../internals/export'); 4194var $filter = require('../internals/array-iteration').filter; 4195var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); 4196 4197var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter'); 4198 4199// `Array.prototype.filter` method 4200// https://tc39.es/ecma262/#sec-array.prototype.filter 4201// with adding support of @@species 4202$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { 4203 filter: function filter(callbackfn /* , thisArg */) { 4204 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 4205 } 4206}); 4207 4208},{"../internals/array-iteration":11,"../internals/array-method-has-species-support":12,"../internals/export":56}],183:[function(require,module,exports){ 4209'use strict'; 4210var $ = require('../internals/export'); 4211var $find = require('../internals/array-iteration').find; 4212var addToUnscopables = require('../internals/add-to-unscopables'); 4213 4214var FIND = 'find'; 4215var SKIPS_HOLES = true; 4216 4217// Shouldn't skip holes 4218// eslint-disable-next-line es/no-array-prototype-find -- testing 4219if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); 4220 4221// `Array.prototype.find` method 4222// https://tc39.es/ecma262/#sec-array.prototype.find 4223$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { 4224 find: function find(callbackfn /* , that = undefined */) { 4225 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 4226 } 4227}); 4228 4229// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables 4230addToUnscopables(FIND); 4231 4232},{"../internals/add-to-unscopables":4,"../internals/array-iteration":11,"../internals/export":56}],184:[function(require,module,exports){ 4233'use strict'; 4234var $ = require('../internals/export'); 4235var from = require('../internals/array-from'); 4236var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); 4237 4238var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) { 4239 // eslint-disable-next-line es/no-array-from -- required for testing 4240 Array.from(iterable); 4241}); 4242 4243// `Array.from` method 4244// https://tc39.es/ecma262/#sec-array.from 4245$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, { 4246 from: from 4247}); 4248 4249},{"../internals/array-from":9,"../internals/check-correctness-of-iteration":25,"../internals/export":56}],185:[function(require,module,exports){ 4250'use strict'; 4251var $ = require('../internals/export'); 4252var $includes = require('../internals/array-includes').includes; 4253var fails = require('../internals/fails');
vendor: 4,700 bytes, lines 4254-4358
4254var addToUnscopables = require('../internals/add-to-unscopables'); 4255 4256// FF99+ bug 4257var BROKEN_ON_SPARSE = fails(function () { 4258 // eslint-disable-next-line es/no-array-prototype-includes -- detection 4259 return !Array(1).includes(); 4260}); 4261 4262// `Array.prototype.includes` method 4263// https://tc39.es/ecma262/#sec-array.prototype.includes 4264$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { 4265 includes: function includes(el /* , fromIndex = 0 */) { 4266 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); 4267 } 4268}); 4269 4270// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables 4271addToUnscopables('includes'); 4272 4273},{"../internals/add-to-unscopables":4,"../internals/array-includes":10,"../internals/export":56,"../internals/fails":57}],186:[function(require,module,exports){ 4274'use strict'; 4275var toIndexedObject = require('../internals/to-indexed-object'); 4276var addToUnscopables = require('../internals/add-to-unscopables'); 4277var Iterators = require('../internals/iterators'); 4278var InternalStateModule = require('../internals/internal-state'); 4279var defineProperty = require('../internals/object-define-property').f; 4280var defineIterator = require('../internals/iterator-define'); 4281var createIterResultObject = require('../internals/create-iter-result-object'); 4282var IS_PURE = require('../internals/is-pure'); 4283var DESCRIPTORS = require('../internals/descriptors'); 4284 4285var ARRAY_ITERATOR = 'Array Iterator'; 4286var setInternalState = InternalStateModule.set; 4287var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); 4288 4289// `Array.prototype.entries` method 4290// https://tc39.es/ecma262/#sec-array.prototype.entries 4291// `Array.prototype.keys` method 4292// https://tc39.es/ecma262/#sec-array.prototype.keys 4293// `Array.prototype.values` method 4294// https://tc39.es/ecma262/#sec-array.prototype.values 4295// `Array.prototype[@@iterator]` method 4296// https://tc39.es/ecma262/#sec-array.prototype-@@iterator 4297// `CreateArrayIterator` internal method 4298// https://tc39.es/ecma262/#sec-createarrayiterator 4299module.exports = defineIterator(Array, 'Array', function (iterated, kind) { 4300 setInternalState(this, { 4301 type: ARRAY_ITERATOR, 4302 target: toIndexedObject(iterated), // target 4303 index: 0, // next index 4304 kind: kind // kind 4305 }); 4306// `%ArrayIteratorPrototype%.next` method 4307// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next 4308}, function () { 4309 var state = getInternalState(this); 4310 var target = state.target; 4311 var index = state.index++; 4312 if (!target || index >= target.length) { 4313 state.target = null; 4314 return createIterResultObject(undefined, true); 4315 } 4316 switch (state.kind) { 4317 case 'keys': return createIterResultObject(index, false); 4318 case 'values': return createIterResultObject(target[index], false); 4319 } return createIterResultObject([index, target[index]], false); 4320}, 'values'); 4321 4322// argumentsList[@@iterator] is %ArrayProto_values% 4323// https://tc39.es/ecma262/#sec-createunmappedargumentsobject 4324// https://tc39.es/ecma262/#sec-createmappedargumentsobject 4325var values = Iterators.Arguments = Iterators.Array; 4326 4327// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables 4328addToUnscopables('keys'); 4329addToUnscopables('values'); 4330addToUnscopables('entries'); 4331 4332// V8 ~ Chrome 45- bug 4333if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try { 4334 defineProperty(values, 'name', { value: 'values' }); 4335} catch (error) { /* empty */ } 4336 4337},{"../internals/add-to-unscopables":4,"../internals/create-iter-result-object":31,"../internals/descriptors":40,"../internals/internal-state":83,"../internals/is-pure":92,"../internals/iterator-define":99,"../internals/iterators":102,"../internals/object-define-property":112,"../internals/to-indexed-object":161}],187:[function(require,module,exports){ 4338'use strict'; 4339var $ = require('../internals/export'); 4340var uncurryThis = require('../internals/function-uncurry-this'); 4341var IndexedObject = require('../internals/indexed-object'); 4342var toIndexedObject = require('../internals/to-indexed-object'); 4343var arrayMethodIsStrict = require('../internals/array-method-is-strict'); 4344 4345var nativeJoin = uncurryThis([].join); 4346 4347var ES3_STRINGS = IndexedObject !== Object; 4348var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ','); 4349 4350// `Array.prototype.join` method 4351// https://tc39.es/ecma262/#sec-array.prototype.join 4352$({ target: 'Array', proto: true, forced: FORCED }, { 4353 join: function join(separator) { 4354 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator); 4355 } 4356}); 4357 4358},{"../internals/array-method-is-strict":13,"../internals/export":56,"../internals/function-uncurr
vendor: 4,818 bytes, lines 4358-4470
4358y-this":66,"../internals/indexed-object":79,"../internals/to-indexed-object":161}],188:[function(require,module,exports){ 4359'use strict'; 4360var $ = require('../internals/export'); 4361var $map = require('../internals/array-iteration').map; 4362var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); 4363 4364var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map'); 4365 4366// `Array.prototype.map` method 4367// https://tc39.es/ecma262/#sec-array.prototype.map 4368// with adding support of @@species 4369$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { 4370 map: function map(callbackfn /* , thisArg */) { 4371 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 4372 } 4373}); 4374 4375},{"../internals/array-iteration":11,"../internals/array-method-has-species-support":12,"../internals/export":56}],189:[function(require,module,exports){ 4376'use strict'; 4377var $ = require('../internals/export'); 4378var toObject = require('../internals/to-object'); 4379var lengthOfArrayLike = require('../internals/length-of-array-like'); 4380var setArrayLength = require('../internals/array-set-length'); 4381var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer'); 4382var fails = require('../internals/fails'); 4383 4384var INCORRECT_TO_LENGTH = fails(function () { 4385 return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; 4386}); 4387 4388// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError 4389// https://bugs.chromium.org/p/v8/issues/detail?id=12681 4390var properErrorOnNonWritableLength = function () { 4391 try { 4392 // eslint-disable-next-line es/no-object-defineproperty -- safe 4393 Object.defineProperty([], 'length', { writable: false }).push(); 4394 } catch (error) { 4395 return error instanceof TypeError; 4396 } 4397}; 4398 4399var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); 4400 4401// `Array.prototype.push` method 4402// https://tc39.es/ecma262/#sec-array.prototype.push 4403$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { 4404 // eslint-disable-next-line no-unused-vars -- required for `.length` 4405 push: function push(item) { 4406 var O = toObject(this); 4407 var len = lengthOfArrayLike(O); 4408 var argCount = arguments.length; 4409 doesNotExceedSafeInteger(len + argCount); 4410 for (var i = 0; i < argCount; i++) { 4411 O[len] = arguments[i]; 4412 len++; 4413 } 4414 setArrayLength(O, len); 4415 return len; 4416 } 4417}); 4418 4419},{"../internals/array-set-length":14,"../internals/does-not-exceed-safe-integer":42,"../internals/export":56,"../internals/fails":57,"../internals/length-of-array-like":103,"../internals/to-object":164}],190:[function(require,module,exports){ 4420'use strict'; 4421var $ = require('../internals/export'); 4422var isArray = require('../internals/is-array'); 4423var isConstructor = require('../internals/is-constructor'); 4424var isObject = require('../internals/is-object'); 4425var toAbsoluteIndex = require('../internals/to-absolute-index'); 4426var lengthOfArrayLike = require('../internals/length-of-array-like'); 4427var toIndexedObject = require('../internals/to-indexed-object'); 4428var createProperty = require('../internals/create-property'); 4429var wellKnownSymbol = require('../internals/well-known-symbol'); 4430var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support'); 4431var nativeSlice = require('../internals/array-slice'); 4432 4433var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice'); 4434 4435var SPECIES = wellKnownSymbol('species'); 4436var $Array = Array; 4437var max = Math.max; 4438 4439// `Array.prototype.slice` method 4440// https://tc39.es/ecma262/#sec-array.prototype.slice 4441// fallback for not array-like ES3 strings and DOM objects 4442$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { 4443 slice: function slice(start, end) { 4444 var O = toIndexedObject(this); 4445 var length = lengthOfArrayLike(O); 4446 var k = toAbsoluteIndex(start, length); 4447 var fin = toAbsoluteIndex(end === undefined ? length : end, length); 4448 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible 4449 var Constructor, result, n; 4450 if (isArray(O)) { 4451 Constructor = O.constructor; 4452 // cross-realm fallback 4453 if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) { 4454 Constructor = undefined; 4455 } else if (isObject(Constructor)) { 4456 Constructor = Constructor[SPECIES]; 4457 if (Constructor === null) Constructor = undefined; 4458 } 4459 if (Constructor === $Array || Constructor === undefined) { 4460 return nativeSlice(O, k, fin); 4461 } 4462 } 4463 result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0)); 4464 for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); 4465 result.length = n; 4466 return result; 4467 } 4468}); 4469 4470}
vendor: 4,201 bytes, lines 4470-4549
4470,{"../internals/array-method-has-species-support":12,"../internals/array-slice":15,"../internals/create-property":34,"../internals/export":56,"../internals/is-array":85,"../internals/is-constructor":87,"../internals/is-object":90,"../internals/length-of-array-like":103,"../internals/to-absolute-index":160,"../internals/to-indexed-object":161,"../internals/well-known-symbol":178}],191:[function(require,module,exports){ 4471'use strict'; 4472var hasOwn = require('../internals/has-own-property'); 4473var defineBuiltIn = require('../internals/define-built-in'); 4474var dateToPrimitive = require('../internals/date-to-primitive'); 4475var wellKnownSymbol = require('../internals/well-known-symbol'); 4476 4477var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); 4478var DatePrototype = Date.prototype; 4479 4480// `Date.prototype[@@toPrimitive]` method 4481// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive 4482if (!hasOwn(DatePrototype, TO_PRIMITIVE)) { 4483 defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive); 4484} 4485 4486},{"../internals/date-to-primitive":35,"../internals/define-built-in":37,"../internals/has-own-property":74,"../internals/well-known-symbol":178}],192:[function(require,module,exports){ 4487'use strict'; 4488/* eslint-disable no-unused-vars -- required for functions `.length` */ 4489var $ = require('../internals/export'); 4490var globalThis = require('../internals/global-this'); 4491var apply = require('../internals/function-apply'); 4492var wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause'); 4493 4494var WEB_ASSEMBLY = 'WebAssembly'; 4495var WebAssembly = globalThis[WEB_ASSEMBLY]; 4496 4497// eslint-disable-next-line es/no-error-cause -- feature detection 4498var FORCED = new Error('e', { cause: 7 }).cause !== 7; 4499 4500var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { 4501 var O = {}; 4502 O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); 4503 $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); 4504}; 4505 4506var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { 4507 if (WebAssembly && WebAssembly[ERROR_NAME]) { 4508 var O = {}; 4509 O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); 4510 $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); 4511 } 4512}; 4513 4514// https://tc39.es/ecma262/#sec-nativeerror 4515exportGlobalErrorCauseWrapper('Error', function (init) { 4516 return function Error(message) { return apply(init, this, arguments); }; 4517}); 4518exportGlobalErrorCauseWrapper('EvalError', function (init) { 4519 return function EvalError(message) { return apply(init, this, arguments); }; 4520}); 4521exportGlobalErrorCauseWrapper('RangeError', function (init) { 4522 return function RangeError(message) { return apply(init, this, arguments); }; 4523}); 4524exportGlobalErrorCauseWrapper('ReferenceError', function (init) { 4525 return function ReferenceError(message) { return apply(init, this, arguments); }; 4526}); 4527exportGlobalErrorCauseWrapper('SyntaxError', function (init) { 4528 return function SyntaxError(message) { return apply(init, this, arguments); }; 4529}); 4530exportGlobalErrorCauseWrapper('TypeError', function (init) { 4531 return function TypeError(message) { return apply(init, this, arguments); }; 4532}); 4533exportGlobalErrorCauseWrapper('URIError', function (init) { 4534 return function URIError(message) { return apply(init, this, arguments); }; 4535}); 4536exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { 4537 return function CompileError(message) { return apply(init, this, arguments); }; 4538}); 4539exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { 4540 return function LinkError(message) { return apply(init, this, arguments); }; 4541}); 4542exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { 4543 return function RuntimeError(message) { return apply(init, this, arguments); }; 4544}); 4545 4546},{"../internals/export":56,"../internals/function-apply":59,"../internals/global-this":73,"../internals/wrap-error-constructor-with-cause":180}],193:[function(require,module,exports){ 4547'use strict'; 4548var DESCRIPTORS = require('../internals/descriptors'); 4549var FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;
vendor: 4,289 bytes, lines 4550-4649
4550var uncurryThis = require('../internals/function-uncurry-this'); 4551var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 4552 4553var FunctionPrototype = Function.prototype; 4554var functionToString = uncurryThis(FunctionPrototype.toString); 4555var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; 4556var regExpExec = uncurryThis(nameRE.exec); 4557var NAME = 'name'; 4558 4559// Function instances `.name` property 4560// https://tc39.es/ecma262/#sec-function-instances-name 4561if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) { 4562 defineBuiltInAccessor(FunctionPrototype, NAME, { 4563 configurable: true, 4564 get: function () { 4565 try { 4566 return regExpExec(nameRE, functionToString(this))[1]; 4567 } catch (error) { 4568 return ''; 4569 } 4570 } 4571 }); 4572} 4573 4574},{"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/function-name":63,"../internals/function-uncurry-this":66}],194:[function(require,module,exports){ 4575'use strict'; 4576var $ = require('../internals/export'); 4577var getBuiltIn = require('../internals/get-built-in'); 4578var apply = require('../internals/function-apply'); 4579var call = require('../internals/function-call'); 4580var uncurryThis = require('../internals/function-uncurry-this'); 4581var fails = require('../internals/fails'); 4582var isCallable = require('../internals/is-callable'); 4583var isSymbol = require('../internals/is-symbol'); 4584var arraySlice = require('../internals/array-slice'); 4585var getReplacerFunction = require('../internals/get-json-replacer-function'); 4586var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 4587 4588var $String = String; 4589var $stringify = getBuiltIn('JSON', 'stringify'); 4590var exec = uncurryThis(/./.exec); 4591var charAt = uncurryThis(''.charAt); 4592var charCodeAt = uncurryThis(''.charCodeAt); 4593var replace = uncurryThis(''.replace); 4594var numberToString = uncurryThis(1.0.toString); 4595 4596var tester = /[\uD800-\uDFFF]/g; 4597var low = /^[\uD800-\uDBFF]$/; 4598var hi = /^[\uDC00-\uDFFF]$/; 4599 4600var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () { 4601 var symbol = getBuiltIn('Symbol')('stringify detection'); 4602 // MS Edge converts symbol values to JSON as {} 4603 return $stringify([symbol]) !== '[null]' 4604 // WebKit converts symbol values to JSON as null 4605 || $stringify({ a: symbol }) !== '{}' 4606 // V8 throws on boxed symbols 4607 || $stringify(Object(symbol)) !== '{}'; 4608}); 4609 4610// https://github.com/tc39/proposal-well-formed-stringify 4611var ILL_FORMED_UNICODE = fails(function () { 4612 return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' 4613 || $stringify('\uDEAD') !== '"\\udead"'; 4614}); 4615 4616var stringifyWithSymbolsFix = function (it, replacer) { 4617 var args = arraySlice(arguments); 4618 var $replacer = getReplacerFunction(replacer); 4619 if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined 4620 args[1] = function (key, value) { 4621 // some old implementations (like WebKit) could pass numbers as keys 4622 if (isCallable($replacer)) value = call($replacer, this, $String(key), value); 4623 if (!isSymbol(value)) return value; 4624 }; 4625 return apply($stringify, null, args); 4626}; 4627 4628var fixIllFormed = function (match, offset, string) { 4629 var prev = charAt(string, offset - 1); 4630 var next = charAt(string, offset + 1); 4631 if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) { 4632 return '\\u' + numberToString(charCodeAt(match, 0), 16); 4633 } return match; 4634}; 4635 4636if ($stringify) { 4637 // `JSON.stringify` method 4638 // https://tc39.es/ecma262/#sec-json.stringify 4639 $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, { 4640 // eslint-disable-next-line no-unused-vars -- required for `.length` 4641 stringify: function stringify(it, replacer, space) { 4642 var args = arraySlice(arguments); 4643 var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args); 4644 return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result; 4645 } 4646 }); 4647} 4648 4649},{"../internals/array-slice":15,"../internals/export":56,"../internals/fails":57,"../internals/function-apply":59,"../internals/function-call":62,"../internals/function-uncurr
vendor: 15,802 bytes, lines 4649-5027
4649y-this":66,"../internals/get-built-in":67,"../internals/get-json-replacer-function":71,"../internals/is-callable":86,"../internals/is-symbol":94,"../internals/symbol-constructor-detection":155}],195:[function(require,module,exports){ 4650'use strict'; 4651var globalThis = require('../internals/global-this'); 4652var setToStringTag = require('../internals/set-to-string-tag'); 4653 4654// JSON[@@toStringTag] property 4655// https://tc39.es/ecma262/#sec-json-@@tostringtag 4656setToStringTag(globalThis.JSON, 'JSON', true); 4657 4658},{"../internals/global-this":73,"../internals/set-to-string-tag":146}],196:[function(require,module,exports){ 4659'use strict'; 4660var setToStringTag = require('../internals/set-to-string-tag'); 4661 4662// Math[@@toStringTag] property 4663// https://tc39.es/ecma262/#sec-math-@@tostringtag 4664setToStringTag(Math, 'Math', true); 4665 4666},{"../internals/set-to-string-tag":146}],197:[function(require,module,exports){ 4667'use strict'; 4668var $ = require('../internals/export'); 4669var IS_PURE = require('../internals/is-pure'); 4670var DESCRIPTORS = require('../internals/descriptors'); 4671var globalThis = require('../internals/global-this'); 4672var path = require('../internals/path'); 4673var uncurryThis = require('../internals/function-uncurry-this'); 4674var isForced = require('../internals/is-forced'); 4675var hasOwn = require('../internals/has-own-property'); 4676var inheritIfRequired = require('../internals/inherit-if-required'); 4677var isPrototypeOf = require('../internals/object-is-prototype-of'); 4678var isSymbol = require('../internals/is-symbol'); 4679var toPrimitive = require('../internals/to-primitive'); 4680var fails = require('../internals/fails'); 4681var getOwnPropertyNames = require('../internals/object-get-own-property-names').f; 4682var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; 4683var defineProperty = require('../internals/object-define-property').f; 4684var thisNumberValue = require('../internals/this-number-value'); 4685var trim = require('../internals/string-trim').trim; 4686 4687var NUMBER = 'Number'; 4688var NativeNumber = globalThis[NUMBER]; 4689var PureNumberNamespace = path[NUMBER]; 4690var NumberPrototype = NativeNumber.prototype; 4691var TypeError = globalThis.TypeError; 4692var stringSlice = uncurryThis(''.slice); 4693var charCodeAt = uncurryThis(''.charCodeAt); 4694 4695// `ToNumeric` abstract operation 4696// https://tc39.es/ecma262/#sec-tonumeric 4697var toNumeric = function (value) { 4698 var primValue = toPrimitive(value, 'number'); 4699 return typeof primValue == 'bigint' ? primValue : toNumber(primValue); 4700}; 4701 4702// `ToNumber` abstract operation 4703// https://tc39.es/ecma262/#sec-tonumber 4704var toNumber = function (argument) { 4705 var it = toPrimitive(argument, 'number'); 4706 var first, third, radix, maxCode, digits, length, index, code; 4707 if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number'); 4708 if (typeof it == 'string' && it.length > 2) { 4709 it = trim(it); 4710 first = charCodeAt(it, 0); 4711 if (first === 43 || first === 45) { 4712 third = charCodeAt(it, 2); 4713 if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 4714 } else if (first === 48) { 4715 switch (charCodeAt(it, 1)) { 4716 // fast equal of /^0b[01]+$/i 4717 case 66: 4718 case 98: 4719 radix = 2; 4720 maxCode = 49; 4721 break; 4722 // fast equal of /^0o[0-7]+$/i 4723 case 79: 4724 case 111: 4725 radix = 8; 4726 maxCode = 55; 4727 break; 4728 default: 4729 return +it; 4730 } 4731 digits = stringSlice(it, 2); 4732 length = digits.length; 4733 for (index = 0; index < length; index++) { 4734 code = charCodeAt(digits, index); 4735 // parseInt parses a string to a first unavailable symbol 4736 // but ToNumber should return NaN if a string contains unavailable symbols 4737 if (code < 48 || code > maxCode) return NaN; 4738 } return parseInt(digits, radix); 4739 } 4740 } return +it; 4741}; 4742 4743var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); 4744 4745var calledWithNew = function (dummy) { 4746 // includes check on 1..constructor(foo) case 4747 return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }); 4748}; 4749 4750// `Number` constructor 4751// https://tc39.es/ecma262/#sec-number-constructor 4752var NumberWrapper = function Number(value) { 4753 var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); 4754 return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; 4755}; 4756 4757NumberWrapper.prototype = NumberPrototype; 4758if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; 4759 4760$({ global: true, constructor: true, wrap: true, forced: FORCED }, { 4761 Number: NumberWrapper 4762}); 4763 4764// Use `internal/copy-constructor-properties` helper in `core-js@4` 4765var copyConstructorProperties = function (target, source) { 4766 for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( 4767 // ES3: 4768 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 4769 // ES2015 (in case, if modules with ES2015 Number statics required before): 4770 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + 4771 // ESNext 4772 'fromString,range' 4773 ).split(','), j = 0, key; keys.length > j; j++) { 4774 if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { 4775 defineProperty(target, key, getOwnPropertyDescriptor(source, key)); 4776 } 4777 } 4778}; 4779 4780if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace); 4781if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); 4782 4783},{"../internals/descriptors":40,"../internals/export":56,"../internals/fails":57,"../internals/function-uncurry-this":66,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/inherit-if-required":80,"../internals/is-forced":88,"../internals/is-pure":92,"../internals/is-symbol":94,"../internals/object-define-property":112,"../internals/object-get-own-property-descriptor":113,"../internals/object-get-own-property-names":115,"../internals/object-is-prototype-of":118,"../internals/path":127,"../internals/string-trim":154,"../internals/this-number-value":159,"../internals/to-primitive":165}],198:[function(require,module,exports){ 4784'use strict'; 4785var $ = require('../internals/export'); 4786var uncurryThis = require('../internals/function-uncurry-this'); 4787var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); 4788var thisNumberValue = require('../internals/this-number-value'); 4789var $repeat = require('../internals/string-repeat'); 4790var fails = require('../internals/fails'); 4791 4792var $RangeError = RangeError; 4793var $String = String; 4794var floor = Math.floor; 4795var repeat = uncurryThis($repeat); 4796var stringSlice = uncurryThis(''.slice); 4797var nativeToFixed = uncurryThis(1.0.toFixed); 4798 4799var pow = function (x, n, acc) { 4800 return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); 4801}; 4802 4803var log = function (x) { 4804 var n = 0; 4805 var x2 = x; 4806 while (x2 >= 4096) { 4807 n += 12; 4808 x2 /= 4096; 4809 } 4810 while (x2 >= 2) { 4811 n += 1; 4812 x2 /= 2; 4813 } return n; 4814}; 4815 4816var multiply = function (data, n, c) { 4817 var index = -1; 4818 var c2 = c; 4819 while (++index < 6) { 4820 c2 += n * data[index]; 4821 data[index] = c2 % 1e7; 4822 c2 = floor(c2 / 1e7); 4823 } 4824}; 4825 4826var divide = function (data, n) { 4827 var index = 6; 4828 var c = 0; 4829 while (--index >= 0) { 4830 c += data[index]; 4831 data[index] = floor(c / n); 4832 c = (c % n) * 1e7; 4833 } 4834}; 4835 4836var dataToString = function (data) { 4837 var index = 6; 4838 var s = ''; 4839 while (--index >= 0) { 4840 if (s !== '' || index === 0 || data[index] !== 0) { 4841 var t = $String(data[index]); 4842 s = s === '' ? t : s + repeat('0', 7 - t.length) + t; 4843 } 4844 } return s; 4845}; 4846 4847var FORCED = fails(function () { 4848 return nativeToFixed(0.00008, 3) !== '0.000' || 4849 nativeToFixed(0.9, 0) !== '1' || 4850 nativeToFixed(1.255, 2) !== '1.25' || 4851 nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128'; 4852}) || !fails(function () { 4853 // V8 ~ Android 4.3- 4854 nativeToFixed({}); 4855}); 4856 4857// `Number.prototype.toFixed` method 4858// https://tc39.es/ecma262/#sec-number.prototype.tofixed 4859$({ target: 'Number', proto: true, forced: FORCED }, { 4860 toFixed: function toFixed(fractionDigits) { 4861 var number = thisNumberValue(this); 4862 var fractDigits = toIntegerOrInfinity(fractionDigits); 4863 var data = [0, 0, 0, 0, 0, 0]; 4864 var sign = ''; 4865 var result = '0'; 4866 var e, z, j, k; 4867 4868 // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation 4869 if (fractDigits < 0 || fractDigits > 20) throw new $RangeError('Incorrect fraction digits'); 4870 // eslint-disable-next-line no-self-compare -- NaN check 4871 if (number !== number) return 'NaN'; 4872 if (number <= -1e21 || number >= 1e21) return $String(number); 4873 if (number < 0) { 4874 sign = '-'; 4875 number = -number; 4876 } 4877 if (number > 1e-21) { 4878 e = log(number * pow(2, 69, 1)) - 69; 4879 z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1); 4880 z *= 0x10000000000000; 4881 e = 52 - e; 4882 if (e > 0) { 4883 multiply(data, 0, z); 4884 j = fractDigits; 4885 while (j >= 7) { 4886 multiply(data, 1e7, 0); 4887 j -= 7; 4888 } 4889 multiply(data, pow(10, j, 1), 0); 4890 j = e - 1; 4891 while (j >= 23) { 4892 divide(data, 1 << 23); 4893 j -= 23; 4894 } 4895 divide(data, 1 << j); 4896 multiply(data, 1, 1); 4897 divide(data, 2); 4898 result = dataToString(data); 4899 } else { 4900 multiply(data, 0, z); 4901 multiply(data, 1 << -e, 0); 4902 result = dataToString(data) + repeat('0', fractDigits); 4903 } 4904 } 4905 if (fractDigits > 0) { 4906 k = result.length; 4907 result = sign + (k <= fractDigits 4908 ? '0.' + repeat('0', fractDigits - k) + result 4909 : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits)); 4910 } else { 4911 result = sign + result; 4912 } return result; 4913 } 4914}); 4915 4916},{"../internals/export":56,"../internals/fails":57,"../internals/function-uncurry-this":66,"../internals/string-repeat":152,"../internals/this-number-value":159,"../internals/to-integer-or-infinity":162}],199:[function(require,module,exports){ 4917'use strict'; 4918var $ = require('../internals/export'); 4919var fails = require('../internals/fails'); 4920var toIndexedObject = require('../internals/to-indexed-object'); 4921var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; 4922var DESCRIPTORS = require('../internals/descriptors'); 4923 4924var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); }); 4925 4926// `Object.getOwnPropertyDescriptor` method 4927// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor 4928$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, { 4929 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { 4930 return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); 4931 } 4932}); 4933 4934},{"../internals/descriptors":40,"../internals/export":56,"../internals/fails":57,"../internals/object-get-own-property-descriptor":113,"../internals/to-indexed-object":161}],200:[function(require,module,exports){ 4935'use strict'; 4936var $ = require('../internals/export'); 4937var DESCRIPTORS = require('../internals/descriptors'); 4938var ownKeys = require('../internals/own-keys'); 4939var toIndexedObject = require('../internals/to-indexed-object'); 4940var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); 4941var createProperty = require('../internals/create-property'); 4942 4943// `Object.getOwnPropertyDescriptors` method 4944// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors 4945$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { 4946 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { 4947 var O = toIndexedObject(object); 4948 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; 4949 var keys = ownKeys(O); 4950 var result = {}; 4951 var index = 0; 4952 var key, descriptor; 4953 while (keys.length > index) { 4954 descriptor = getOwnPropertyDescriptor(O, key = keys[index++]); 4955 if (descriptor !== undefined) createProperty(result, key, descriptor); 4956 } 4957 return result; 4958 } 4959}); 4960 4961},{"../internals/create-property":34,"../internals/descriptors":40,"../internals/export":56,"../internals/object-get-own-property-descriptor":113,"../internals/own-keys":125,"../internals/to-indexed-object":161}],201:[function(require,module,exports){ 4962'use strict'; 4963var $ = require('../internals/export'); 4964var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 4965var fails = require('../internals/fails'); 4966var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); 4967var toObject = require('../internals/to-object'); 4968 4969// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives 4970// https://bugs.chromium.org/p/v8/issues/detail?id=3443 4971var FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); }); 4972 4973// `Object.getOwnPropertySymbols` method 4974// https://tc39.es/ecma262/#sec-object.getownpropertysymbols 4975$({ target: 'Object', stat: true, forced: FORCED }, { 4976 getOwnPropertySymbols: function getOwnPropertySymbols(it) { 4977 var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f; 4978 return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []; 4979 } 4980}); 4981 4982},{"../internals/export":56,"../internals/fails":57,"../internals/object-get-own-property-symbols":116,"../internals/symbol-constructor-detection":155,"../internals/to-object":164}],202:[function(require,module,exports){ 4983'use strict'; 4984var $ = require('../internals/export'); 4985var fails = require('../internals/fails'); 4986var toObject = require('../internals/to-object'); 4987var nativeGetPrototypeOf = require('../internals/object-get-prototype-of'); 4988var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); 4989 4990var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); }); 4991 4992// `Object.getPrototypeOf` method 4993// https://tc39.es/ecma262/#sec-object.getprototypeof 4994$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, { 4995 getPrototypeOf: function getPrototypeOf(it) { 4996 return nativeGetPrototypeOf(toObject(it)); 4997 } 4998}); 4999 5000 5001},{"../internals/correct-prototype-getter":30,"../internals/export":56,"../internals/fails":57,"../internals/object-get-prototype-of":117,"../internals/to-object":164}],203:[function(require,module,exports){ 5002'use strict'; 5003var $ = require('../internals/export'); 5004var toObject = require('../internals/to-object'); 5005var nativeKeys = require('../internals/object-keys'); 5006var fails = require('../internals/fails'); 5007 5008var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); }); 5009 5010// `Object.keys` method 5011// https://tc39.es/ecma262/#sec-object.keys 5012$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { 5013 keys: function keys(it) { 5014 return nativeKeys(toObject(it)); 5015 } 5016}); 5017 5018},{"../internals/export":56,"../internals/fails":57,"../internals/object-keys":120,"../internals/to-object":164}],204:[function(require,module,exports){ 5019'use strict'; 5020var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support'); 5021var defineBuiltIn = require('../internals/define-built-in'); 5022var toString = require('../internals/object-to-string'); 5023 5024// `Object.prototype.toString` method 5025// https://tc39.es/ecma262/#sec-object.prototype.tostring 5026if (!TO_STRING_TAG_SUPPORT) { 5027 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
vendor: 5,767 bytes, lines 5028-5142
5028} 5029 5030},{"../internals/define-built-in":37,"../internals/object-to-string":123,"../internals/to-string-tag-support":167}],205:[function(require,module,exports){ 5031'use strict'; 5032var $ = require('../internals/export'); 5033var call = require('../internals/function-call'); 5034var aCallable = require('../internals/a-callable'); 5035var newPromiseCapabilityModule = require('../internals/new-promise-capability'); 5036var perform = require('../internals/perform'); 5037var iterate = require('../internals/iterate'); 5038var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); 5039 5040// `Promise.all` method 5041// https://tc39.es/ecma262/#sec-promise.all 5042$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { 5043 all: function all(iterable) { 5044 var C = this; 5045 var capability = newPromiseCapabilityModule.f(C); 5046 var resolve = capability.resolve; 5047 var reject = capability.reject; 5048 var result = perform(function () { 5049 var $promiseResolve = aCallable(C.resolve); 5050 var values = []; 5051 var counter = 0; 5052 var remaining = 1; 5053 iterate(iterable, function (promise) { 5054 var index = counter++; 5055 var alreadyCalled = false; 5056 remaining++; 5057 call($promiseResolve, C, promise).then(function (value) { 5058 if (alreadyCalled) return; 5059 alreadyCalled = true; 5060 values[index] = value; 5061 --remaining || resolve(values); 5062 }, reject); 5063 }); 5064 --remaining || resolve(values); 5065 }); 5066 if (result.error) reject(result.value); 5067 return capability.promise; 5068 } 5069}); 5070 5071},{"../internals/a-callable":1,"../internals/export":56,"../internals/function-call":62,"../internals/iterate":95,"../internals/new-promise-capability":107,"../internals/perform":128,"../internals/promise-statics-incorrect-iteration":132}],206:[function(require,module,exports){ 5072'use strict'; 5073var $ = require('../internals/export'); 5074var IS_PURE = require('../internals/is-pure'); 5075var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; 5076var NativePromiseConstructor = require('../internals/promise-native-constructor'); 5077var getBuiltIn = require('../internals/get-built-in'); 5078var isCallable = require('../internals/is-callable'); 5079var defineBuiltIn = require('../internals/define-built-in'); 5080 5081var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; 5082 5083// `Promise.prototype.catch` method 5084// https://tc39.es/ecma262/#sec-promise.prototype.catch 5085$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, { 5086 'catch': function (onRejected) { 5087 return this.then(undefined, onRejected); 5088 } 5089}); 5090 5091// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` 5092if (!IS_PURE && isCallable(NativePromiseConstructor)) { 5093 var method = getBuiltIn('Promise').prototype['catch']; 5094 if (NativePromisePrototype['catch'] !== method) { 5095 defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true }); 5096 } 5097} 5098 5099},{"../internals/define-built-in":37,"../internals/export":56,"../internals/get-built-in":67,"../internals/is-callable":86,"../internals/is-pure":92,"../internals/promise-constructor-detection":129,"../internals/promise-native-constructor":130}],207:[function(require,module,exports){ 5100'use strict'; 5101var $ = require('../internals/export'); 5102var IS_PURE = require('../internals/is-pure'); 5103var IS_NODE = require('../internals/environment-is-node'); 5104var globalThis = require('../internals/global-this'); 5105var call = require('../internals/function-call'); 5106var defineBuiltIn = require('../internals/define-built-in'); 5107var setPrototypeOf = require('../internals/object-set-prototype-of'); 5108var setToStringTag = require('../internals/set-to-string-tag'); 5109var setSpecies = require('../internals/set-species'); 5110var aCallable = require('../internals/a-callable'); 5111var isCallable = require('../internals/is-callable'); 5112var isObject = require('../internals/is-object'); 5113var anInstance = require('../internals/an-instance'); 5114var speciesConstructor = require('../internals/species-constructor'); 5115var task = require('../internals/task').set; 5116var microtask = require('../internals/microtask'); 5117var hostReportErrors = require('../internals/host-report-errors'); 5118var perform = require('../internals/perform'); 5119var Queue = require('../internals/queue'); 5120var InternalStateModule = require('../internals/internal-state'); 5121var NativePromiseConstructor = require('../internals/promise-native-constructor'); 5122var PromiseConstructorDetection = require('../internals/promise-constructor-detection'); 5123var newPromiseCapabilityModule = require('../internals/new-promise-capability'); 5124 5125var PROMISE = 'Promise'; 5126var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR; 5127var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT; 5128var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING; 5129var getInternalPromiseState = InternalStateModule.getterFor(PROMISE); 5130var setInternalState = InternalStateModule.set; 5131var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype; 5132var PromiseConstructor = NativePromiseConstructor; 5133var PromisePrototype = NativePromisePrototype; 5134var TypeError = globalThis.TypeError; 5135var document = globalThis.document; 5136var process = globalThis.process; 5137var newPromiseCapability = newPromiseCapabilityModule.f; 5138var newGenericPromiseCapability = newPromiseCapability; 5139 5140var DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent); 5141var UNHANDLED_REJECTION = 'unhandledrejection'; 5142var REJECTION_HANDLED = 'rejectionhandled';
vendor: 5,284 bytes, lines 5143-5323
5143var PENDING = 0; 5144var FULFILLED = 1; 5145var REJECTED = 2; 5146var HANDLED = 1; 5147var UNHANDLED = 2; 5148 5149var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; 5150 5151// helpers 5152var isThenable = function (it) { 5153 var then; 5154 return isObject(it) && isCallable(then = it.then) ? then : false; 5155}; 5156 5157var callReaction = function (reaction, state) { 5158 var value = state.value; 5159 var ok = state.state === FULFILLED; 5160 var handler = ok ? reaction.ok : reaction.fail; 5161 var resolve = reaction.resolve; 5162 var reject = reaction.reject; 5163 var domain = reaction.domain; 5164 var result, then, exited; 5165 try { 5166 if (handler) { 5167 if (!ok) { 5168 if (state.rejection === UNHANDLED) onHandleUnhandled(state); 5169 state.rejection = HANDLED; 5170 } 5171 if (handler === true) result = value; 5172 else { 5173 if (domain) domain.enter(); 5174 result = handler(value); // can throw 5175 if (domain) { 5176 domain.exit(); 5177 exited = true; 5178 } 5179 } 5180 if (result === reaction.promise) { 5181 reject(new TypeError('Promise-chain cycle')); 5182 } else if (then = isThenable(result)) { 5183 call(then, result, resolve, reject); 5184 } else resolve(result); 5185 } else reject(value); 5186 } catch (error) { 5187 if (domain && !exited) domain.exit(); 5188 reject(error); 5189 } 5190}; 5191 5192var notify = function (state, isReject) { 5193 if (state.notified) return; 5194 state.notified = true; 5195 microtask(function () { 5196 var reactions = state.reactions; 5197 var reaction; 5198 while (reaction = reactions.get()) { 5199 callReaction(reaction, state); 5200 } 5201 state.notified = false; 5202 if (isReject && !state.rejection) onUnhandled(state); 5203 }); 5204}; 5205 5206var dispatchEvent = function (name, promise, reason) { 5207 var event, handler; 5208 if (DISPATCH_EVENT) { 5209 event = document.createEvent('Event'); 5210 event.promise = promise; 5211 event.reason = reason; 5212 event.initEvent(name, false, true); 5213 globalThis.dispatchEvent(event); 5214 } else event = { promise: promise, reason: reason }; 5215 if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event); 5216 else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); 5217}; 5218 5219var onUnhandled = function (state) { 5220 call(task, globalThis, function () { 5221 var promise = state.facade; 5222 var value = state.value; 5223 var IS_UNHANDLED = isUnhandled(state); 5224 var result; 5225 if (IS_UNHANDLED) { 5226 result = perform(function () { 5227 if (IS_NODE) { 5228 process.emit('unhandledRejection', value, promise); 5229 } else dispatchEvent(UNHANDLED_REJECTION, promise, value); 5230 }); 5231 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should 5232 state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; 5233 if (result.error) throw result.value; 5234 } 5235 }); 5236}; 5237 5238var isUnhandled = function (state) { 5239 return state.rejection !== HANDLED && !state.parent; 5240}; 5241 5242var onHandleUnhandled = function (state) { 5243 call(task, globalThis, function () { 5244 var promise = state.facade; 5245 if (IS_NODE) { 5246 process.emit('rejectionHandled', promise); 5247 } else dispatchEvent(REJECTION_HANDLED, promise, state.value); 5248 }); 5249}; 5250 5251var bind = function (fn, state, unwrap) { 5252 return function (value) { 5253 fn(state, value, unwrap); 5254 }; 5255}; 5256 5257var internalReject = function (state, value, unwrap) { 5258 if (state.done) return; 5259 state.done = true; 5260 if (unwrap) state = unwrap; 5261 state.value = value; 5262 state.state = REJECTED; 5263 notify(state, true); 5264}; 5265 5266var internalResolve = function (state, value, unwrap) { 5267 if (state.done) return; 5268 state.done = true; 5269 if (unwrap) state = unwrap; 5270 try { 5271 if (state.facade === value) throw new TypeError("Promise can't be resolved itself"); 5272 var then = isThenable(value); 5273 if (then) { 5274 microtask(function () { 5275 var wrapper = { done: false }; 5276 try { 5277 call(then, value, 5278 bind(internalResolve, wrapper, state), 5279 bind(internalReject, wrapper, state) 5280 ); 5281 } catch (error) { 5282 internalReject(wrapper, error, state); 5283 } 5284 }); 5285 } else { 5286 state.value = value; 5287 state.state = FULFILLED; 5288 notify(state, false); 5289 } 5290 } catch (error) { 5291 internalReject({ done: false }, error, state); 5292 } 5293}; 5294 5295// constructor polyfill 5296if (FORCED_PROMISE_CONSTRUCTOR) { 5297 // 25.4.3.1 Promise(executor) 5298 PromiseConstructor = function Promise(executor) { 5299 anInstance(this, PromisePrototype); 5300 aCallable(executor); 5301 call(Internal, this); 5302 var state = getInternalPromiseState(this); 5303 try { 5304 executor(bind(internalResolve, state), bind(internalReject, state)); 5305 } catch (error) { 5306 internalReject(state, error); 5307 } 5308 }; 5309 5310 PromisePrototype = PromiseConstructor.prototype; 5311 5312 // eslint-disable-next-line no-unused-vars -- required for `.length` 5313 Internal = function Promise(executor) { 5314 setInternalState(this, { 5315 type: PROMISE, 5316 done: false, 5317 notified: false, 5318 parent: false, 5319 reactions: new Queue(), 5320 rejection: false, 5321 state: PENDING, 5322 value: null 5323 });
vendor: 4,847 bytes, lines 5324-5421
5324 }; 5325 5326 // `Promise.prototype.then` method 5327 // https://tc39.es/ecma262/#sec-promise.prototype.then 5328 Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) { 5329 var state = getInternalPromiseState(this); 5330 var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); 5331 state.parent = true; 5332 reaction.ok = isCallable(onFulfilled) ? onFulfilled : true; 5333 reaction.fail = isCallable(onRejected) && onRejected; 5334 reaction.domain = IS_NODE ? process.domain : undefined; 5335 if (state.state === PENDING) state.reactions.add(reaction); 5336 else microtask(function () { 5337 callReaction(reaction, state); 5338 }); 5339 return reaction.promise; 5340 }); 5341 5342 OwnPromiseCapability = function () { 5343 var promise = new Internal(); 5344 var state = getInternalPromiseState(promise); 5345 this.promise = promise; 5346 this.resolve = bind(internalResolve, state); 5347 this.reject = bind(internalReject, state); 5348 }; 5349 5350 newPromiseCapabilityModule.f = newPromiseCapability = function (C) { 5351 return C === PromiseConstructor || C === PromiseWrapper 5352 ? new OwnPromiseCapability(C) 5353 : newGenericPromiseCapability(C); 5354 }; 5355 5356 if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) { 5357 nativeThen = NativePromisePrototype.then; 5358 5359 if (!NATIVE_PROMISE_SUBCLASSING) { 5360 // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs 5361 defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { 5362 var that = this; 5363 return new PromiseConstructor(function (resolve, reject) { 5364 call(nativeThen, that, resolve, reject); 5365 }).then(onFulfilled, onRejected); 5366 // https://github.com/zloirock/core-js/issues/640 5367 }, { unsafe: true }); 5368 } 5369 5370 // make `.constructor === Promise` work for native promise-based APIs 5371 try { 5372 delete NativePromisePrototype.constructor; 5373 } catch (error) { /* empty */ } 5374 5375 // make `instanceof Promise` work for native promise-based APIs 5376 if (setPrototypeOf) { 5377 setPrototypeOf(NativePromisePrototype, PromisePrototype); 5378 } 5379 } 5380} 5381 5382$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { 5383 Promise: PromiseConstructor 5384}); 5385 5386setToStringTag(PromiseConstructor, PROMISE, false, true); 5387setSpecies(PROMISE); 5388 5389},{"../internals/a-callable":1,"../internals/an-instance":6,"../internals/define-built-in":37,"../internals/environment-is-node":48,"../internals/export":56,"../internals/function-call":62,"../internals/global-this":73,"../internals/host-report-errors":76,"../internals/internal-state":83,"../internals/is-callable":86,"../internals/is-object":90,"../internals/is-pure":92,"../internals/microtask":106,"../internals/new-promise-capability":107,"../internals/object-set-prototype-of":122,"../internals/perform":128,"../internals/promise-constructor-detection":129,"../internals/promise-native-constructor":130,"../internals/queue":134,"../internals/set-species":145,"../internals/set-to-string-tag":146,"../internals/species-constructor":150,"../internals/task":158}],208:[function(require,module,exports){ 5390'use strict'; 5391// TODO: Remove this module from `core-js@4` since it's split to modules listed below 5392require('../modules/es.promise.constructor'); 5393require('../modules/es.promise.all'); 5394require('../modules/es.promise.catch'); 5395require('../modules/es.promise.race'); 5396require('../modules/es.promise.reject'); 5397require('../modules/es.promise.resolve'); 5398 5399},{"../modules/es.promise.all":205,"../modules/es.promise.catch":206,"../modules/es.promise.constructor":207,"../modules/es.promise.race":209,"../modules/es.promise.reject":210,"../modules/es.promise.resolve":211}],209:[function(require,module,exports){ 5400'use strict'; 5401var $ = require('../internals/export'); 5402var call = require('../internals/function-call'); 5403var aCallable = require('../internals/a-callable'); 5404var newPromiseCapabilityModule = require('../internals/new-promise-capability'); 5405var perform = require('../internals/perform'); 5406var iterate = require('../internals/iterate'); 5407var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); 5408 5409// `Promise.race` method 5410// https://tc39.es/ecma262/#sec-promise.race 5411$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { 5412 race: function race(iterable) { 5413 var C = this; 5414 var capability = newPromiseCapabilityModule.f(C); 5415 var reject = capability.reject; 5416 var result = perform(function () { 5417 var $promiseResolve = aCallable(C.resolve); 5418 iterate(iterable, function (promise) { 5419 call($promiseResolve, C, promise).then(capability.resolve, reject); 5420 }); 5421 });
vendor: 5,838 bytes, lines 5422-5554
5422 if (result.error) reject(result.value); 5423 return capability.promise; 5424 } 5425}); 5426 5427},{"../internals/a-callable":1,"../internals/export":56,"../internals/function-call":62,"../internals/iterate":95,"../internals/new-promise-capability":107,"../internals/perform":128,"../internals/promise-statics-incorrect-iteration":132}],210:[function(require,module,exports){ 5428'use strict'; 5429var $ = require('../internals/export'); 5430var newPromiseCapabilityModule = require('../internals/new-promise-capability'); 5431var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; 5432 5433// `Promise.reject` method 5434// https://tc39.es/ecma262/#sec-promise.reject 5435$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, { 5436 reject: function reject(r) { 5437 var capability = newPromiseCapabilityModule.f(this); 5438 var capabilityReject = capability.reject; 5439 capabilityReject(r); 5440 return capability.promise; 5441 } 5442}); 5443 5444},{"../internals/export":56,"../internals/new-promise-capability":107,"../internals/promise-constructor-detection":129}],211:[function(require,module,exports){ 5445'use strict'; 5446var $ = require('../internals/export'); 5447var getBuiltIn = require('../internals/get-built-in'); 5448var IS_PURE = require('../internals/is-pure'); 5449var NativePromiseConstructor = require('../internals/promise-native-constructor'); 5450var FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR; 5451var promiseResolve = require('../internals/promise-resolve'); 5452 5453var PromiseConstructorWrapper = getBuiltIn('Promise'); 5454var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR; 5455 5456// `Promise.resolve` method 5457// https://tc39.es/ecma262/#sec-promise.resolve 5458$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, { 5459 resolve: function resolve(x) { 5460 return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x); 5461 } 5462}); 5463 5464},{"../internals/export":56,"../internals/get-built-in":67,"../internals/is-pure":92,"../internals/promise-constructor-detection":129,"../internals/promise-native-constructor":130,"../internals/promise-resolve":131}],212:[function(require,module,exports){ 5465'use strict'; 5466var $ = require('../internals/export'); 5467var exec = require('../internals/regexp-exec'); 5468 5469// `RegExp.prototype.exec` method 5470// https://tc39.es/ecma262/#sec-regexp.prototype.exec 5471$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { 5472 exec: exec 5473}); 5474 5475},{"../internals/export":56,"../internals/regexp-exec":136}],213:[function(require,module,exports){ 5476'use strict'; 5477// TODO: Remove from `core-js@4` since it's moved to entry points 5478require('../modules/es.regexp.exec'); 5479var $ = require('../internals/export'); 5480var call = require('../internals/function-call'); 5481var isCallable = require('../internals/is-callable'); 5482var anObject = require('../internals/an-object'); 5483var toString = require('../internals/to-string'); 5484 5485var DELEGATES_TO_EXEC = function () { 5486 var execCalled = false; 5487 var re = /[ac]/; 5488 re.exec = function () { 5489 execCalled = true; 5490 return /./.exec.apply(this, arguments); 5491 }; 5492 return re.test('abc') === true && execCalled; 5493}(); 5494 5495var nativeTest = /./.test; 5496 5497// `RegExp.prototype.test` method 5498// https://tc39.es/ecma262/#sec-regexp.prototype.test 5499$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { 5500 test: function (S) { 5501 var R = anObject(this); 5502 var string = toString(S); 5503 var exec = R.exec; 5504 if (!isCallable(exec)) return call(nativeTest, R, string); 5505 var result = call(exec, R, string); 5506 if (result === null) return false; 5507 anObject(result); 5508 return true; 5509 } 5510}); 5511 5512},{"../internals/an-object":7,"../internals/export":56,"../internals/function-call":62,"../internals/is-callable":86,"../internals/to-string":168,"../modules/es.regexp.exec":212}],214:[function(require,module,exports){ 5513'use strict'; 5514var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER; 5515var defineBuiltIn = require('../internals/define-built-in'); 5516var anObject = require('../internals/an-object'); 5517var $toString = require('../internals/to-string'); 5518var fails = require('../internals/fails'); 5519var getRegExpFlags = require('../internals/regexp-get-flags'); 5520 5521var TO_STRING = 'toString'; 5522var RegExpPrototype = RegExp.prototype; 5523var nativeToString = RegExpPrototype[TO_STRING]; 5524 5525var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; }); 5526// FF44- RegExp#toString has a wrong name 5527var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING; 5528 5529// `RegExp.prototype.toString` method 5530// https://tc39.es/ecma262/#sec-regexp.prototype.tostring 5531if (NOT_GENERIC || INCORRECT_NAME) { 5532 defineBuiltIn(RegExpPrototype, TO_STRING, function toString() { 5533 var R = anObject(this); 5534 var pattern = $toString(R.source); 5535 var flags = $toString(getRegExpFlags(R)); 5536 return '/' + pattern + '/' + flags; 5537 }, { unsafe: true }); 5538} 5539 5540},{"../internals/an-object":7,"../internals/define-built-in":37,"../internals/fails":57,"../internals/function-name":63,"../internals/regexp-get-flags":138,"../internals/to-string":168}],215:[function(require,module,exports){ 5541'use strict'; 5542var $ = require('../internals/export'); 5543var uncurryThis = require('../internals/function-uncurry-this'); 5544var toAbsoluteIndex = require('../internals/to-absolute-index'); 5545 5546var $RangeError = RangeError; 5547var fromCharCode = String.fromCharCode; 5548// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing 5549var $fromCodePoint = String.fromCodePoint; 5550var join = uncurryThis([].join); 5551 5552// length should be 1, old FF problem 5553var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1; 5554
vendor: 2,529 bytes, lines 5555-5608
5555// `String.fromCodePoint` method 5556// https://tc39.es/ecma262/#sec-string.fromcodepoint 5557$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, { 5558 // eslint-disable-next-line no-unused-vars -- required for `.length` 5559 fromCodePoint: function fromCodePoint(x) { 5560 var elements = []; 5561 var length = arguments.length; 5562 var i = 0; 5563 var code; 5564 while (length > i) { 5565 code = +arguments[i++]; 5566 if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point'); 5567 elements[i] = code < 0x10000 5568 ? fromCharCode(code) 5569 : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00); 5570 } return join(elements, ''); 5571 } 5572}); 5573 5574},{"../internals/export":56,"../internals/function-uncurry-this":66,"../internals/to-absolute-index":160}],216:[function(require,module,exports){ 5575'use strict'; 5576var $ = require('../internals/export'); 5577var uncurryThis = require('../internals/function-uncurry-this'); 5578var notARegExp = require('../internals/not-a-regexp'); 5579var requireObjectCoercible = require('../internals/require-object-coercible'); 5580var toString = require('../internals/to-string'); 5581var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic'); 5582 5583var stringIndexOf = uncurryThis(''.indexOf); 5584 5585// `String.prototype.includes` method 5586// https://tc39.es/ecma262/#sec-string.prototype.includes 5587$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, { 5588 includes: function includes(searchString /* , position = 0 */) { 5589 return !!~stringIndexOf( 5590 toString(requireObjectCoercible(this)), 5591 toString(notARegExp(searchString)), 5592 arguments.length > 1 ? arguments[1] : undefined 5593 ); 5594 } 5595}); 5596 5597},{"../internals/correct-is-regexp-logic":29,"../internals/export":56,"../internals/function-uncurry-this":66,"../internals/not-a-regexp":109,"../internals/require-object-coercible":142,"../internals/to-string":168}],217:[function(require,module,exports){ 5598'use strict'; 5599var charAt = require('../internals/string-multibyte').charAt; 5600var toString = require('../internals/to-string'); 5601var InternalStateModule = require('../internals/internal-state'); 5602var defineIterator = require('../internals/iterator-define'); 5603var createIterResultObject = require('../internals/create-iter-result-object'); 5604 5605var STRING_ITERATOR = 'String Iterator'; 5606var setInternalState = InternalStateModule.set; 5607var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); 5608
vendor: 4,323 bytes, lines 5609-5701
5609// `String.prototype[@@iterator]` method 5610// https://tc39.es/ecma262/#sec-string.prototype-@@iterator 5611defineIterator(String, 'String', function (iterated) { 5612 setInternalState(this, { 5613 type: STRING_ITERATOR, 5614 string: toString(iterated), 5615 index: 0 5616 }); 5617// `%StringIteratorPrototype%.next` method 5618// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next 5619}, function next() { 5620 var state = getInternalState(this); 5621 var string = state.string; 5622 var index = state.index; 5623 var point; 5624 if (index >= string.length) return createIterResultObject(undefined, true); 5625 point = charAt(string, index); 5626 state.index += point.length; 5627 return createIterResultObject(point, false); 5628}); 5629 5630},{"../internals/create-iter-result-object":31,"../internals/internal-state":83,"../internals/iterator-define":99,"../internals/string-multibyte":151,"../internals/to-string":168}],218:[function(require,module,exports){ 5631'use strict'; 5632var call = require('../internals/function-call'); 5633var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); 5634var anObject = require('../internals/an-object'); 5635var isNullOrUndefined = require('../internals/is-null-or-undefined'); 5636var toLength = require('../internals/to-length'); 5637var toString = require('../internals/to-string'); 5638var requireObjectCoercible = require('../internals/require-object-coercible'); 5639var getMethod = require('../internals/get-method'); 5640var advanceStringIndex = require('../internals/advance-string-index'); 5641var regExpExec = require('../internals/regexp-exec-abstract'); 5642 5643// @@match logic 5644fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { 5645 return [ 5646 // `String.prototype.match` method 5647 // https://tc39.es/ecma262/#sec-string.prototype.match 5648 function match(regexp) { 5649 var O = requireObjectCoercible(this); 5650 var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH); 5651 return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O)); 5652 }, 5653 // `RegExp.prototype[@@match]` method 5654 // https://tc39.es/ecma262/#sec-regexp.prototype-@@match 5655 function (string) { 5656 var rx = anObject(this); 5657 var S = toString(string); 5658 var res = maybeCallNative(nativeMatch, rx, S); 5659 5660 if (res.done) return res.value; 5661 5662 if (!rx.global) return regExpExec(rx, S); 5663 5664 var fullUnicode = rx.unicode; 5665 rx.lastIndex = 0; 5666 var A = []; 5667 var n = 0; 5668 var result; 5669 while ((result = regExpExec(rx, S)) !== null) { 5670 var matchStr = toString(result[0]); 5671 A[n] = matchStr; 5672 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); 5673 n++; 5674 } 5675 return n === 0 ? null : A; 5676 } 5677 ]; 5678}); 5679 5680},{"../internals/advance-string-index":5,"../internals/an-object":7,"../internals/fix-regexp-well-known-symbol-logic":58,"../internals/function-call":62,"../internals/get-method":72,"../internals/is-null-or-undefined":89,"../internals/regexp-exec-abstract":135,"../internals/require-object-coercible":142,"../internals/to-length":163,"../internals/to-string":168}],219:[function(require,module,exports){ 5681'use strict'; 5682var call = require('../internals/function-call'); 5683var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic'); 5684var anObject = require('../internals/an-object'); 5685var isNullOrUndefined = require('../internals/is-null-or-undefined'); 5686var requireObjectCoercible = require('../internals/require-object-coercible'); 5687var sameValue = require('../internals/same-value'); 5688var toString = require('../internals/to-string'); 5689var getMethod = require('../internals/get-method'); 5690var regExpExec = require('../internals/regexp-exec-abstract'); 5691 5692// @@search logic 5693fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { 5694 return [ 5695 // `String.prototype.search` method 5696 // https://tc39.es/ecma262/#sec-string.prototype.search 5697 function search(regexp) { 5698 var O = requireObjectCoercible(this); 5699 var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH); 5700 return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O)); 5701 },
vendor: 5,373 bytes, lines 5702-5806
5702 // `RegExp.prototype[@@search]` method 5703 // https://tc39.es/ecma262/#sec-regexp.prototype-@@search 5704 function (string) { 5705 var rx = anObject(this); 5706 var S = toString(string); 5707 var res = maybeCallNative(nativeSearch, rx, S); 5708 5709 if (res.done) return res.value; 5710 5711 var previousLastIndex = rx.lastIndex; 5712 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; 5713 var result = regExpExec(rx, S); 5714 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; 5715 return result === null ? -1 : result.index; 5716 } 5717 ]; 5718}); 5719 5720},{"../internals/an-object":7,"../internals/fix-regexp-well-known-symbol-logic":58,"../internals/function-call":62,"../internals/get-method":72,"../internals/is-null-or-undefined":89,"../internals/regexp-exec-abstract":135,"../internals/require-object-coercible":142,"../internals/same-value":144,"../internals/to-string":168}],220:[function(require,module,exports){ 5721'use strict'; 5722var $ = require('../internals/export'); 5723var $trim = require('../internals/string-trim').trim; 5724var forcedStringTrimMethod = require('../internals/string-trim-forced'); 5725 5726// `String.prototype.trim` method 5727// https://tc39.es/ecma262/#sec-string.prototype.trim 5728$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { 5729 trim: function trim() { 5730 return $trim(this); 5731 } 5732}); 5733 5734},{"../internals/export":56,"../internals/string-trim":154,"../internals/string-trim-forced":153}],221:[function(require,module,exports){ 5735'use strict'; 5736var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); 5737 5738// `Symbol.asyncIterator` well-known symbol 5739// https://tc39.es/ecma262/#sec-symbol.asynciterator 5740defineWellKnownSymbol('asyncIterator'); 5741 5742},{"../internals/well-known-symbol-define":176}],222:[function(require,module,exports){ 5743'use strict'; 5744var $ = require('../internals/export'); 5745var globalThis = require('../internals/global-this'); 5746var call = require('../internals/function-call'); 5747var uncurryThis = require('../internals/function-uncurry-this'); 5748var IS_PURE = require('../internals/is-pure'); 5749var DESCRIPTORS = require('../internals/descriptors'); 5750var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 5751var fails = require('../internals/fails'); 5752var hasOwn = require('../internals/has-own-property'); 5753var isPrototypeOf = require('../internals/object-is-prototype-of'); 5754var anObject = require('../internals/an-object'); 5755var toIndexedObject = require('../internals/to-indexed-object'); 5756var toPropertyKey = require('../internals/to-property-key'); 5757var $toString = require('../internals/to-string'); 5758var createPropertyDescriptor = require('../internals/create-property-descriptor'); 5759var nativeObjectCreate = require('../internals/object-create'); 5760var objectKeys = require('../internals/object-keys'); 5761var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names'); 5762var getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external'); 5763var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols'); 5764var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor'); 5765var definePropertyModule = require('../internals/object-define-property'); 5766var definePropertiesModule = require('../internals/object-define-properties'); 5767var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable'); 5768var defineBuiltIn = require('../internals/define-built-in'); 5769var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 5770var shared = require('../internals/shared'); 5771var sharedKey = require('../internals/shared-key'); 5772var hiddenKeys = require('../internals/hidden-keys'); 5773var uid = require('../internals/uid'); 5774var wellKnownSymbol = require('../internals/well-known-symbol'); 5775var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped'); 5776var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); 5777var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive'); 5778var setToStringTag = require('../internals/set-to-string-tag'); 5779var InternalStateModule = require('../internals/internal-state'); 5780var $forEach = require('../internals/array-iteration').forEach; 5781 5782var HIDDEN = sharedKey('hidden'); 5783var SYMBOL = 'Symbol'; 5784var PROTOTYPE = 'prototype'; 5785 5786var setInternalState = InternalStateModule.set; 5787var getInternalState = InternalStateModule.getterFor(SYMBOL); 5788 5789var ObjectPrototype = Object[PROTOTYPE]; 5790var $Symbol = globalThis.Symbol; 5791var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE]; 5792var RangeError = globalThis.RangeError; 5793var TypeError = globalThis.TypeError; 5794var QObject = globalThis.QObject; 5795var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; 5796var nativeDefineProperty = definePropertyModule.f; 5797var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; 5798var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; 5799var push = uncurryThis([].push); 5800 5801var AllSymbols = shared('symbols'); 5802var ObjectPrototypeSymbols = shared('op-symbols'); 5803var WellKnownSymbolsStore = shared('wks'); 5804 5805// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 5806var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findC
vendor: 4,664 bytes, lines 5806-5916
5806hild; 5807 5808// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 5809var fallbackDefineProperty = function (O, P, Attributes) { 5810 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); 5811 if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; 5812 nativeDefineProperty(O, P, Attributes); 5813 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { 5814 nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); 5815 } 5816}; 5817 5818var setSymbolDescriptor = DESCRIPTORS && fails(function () { 5819 return nativeObjectCreate(nativeDefineProperty({}, 'a', { 5820 get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; } 5821 })).a !== 7; 5822}) ? fallbackDefineProperty : nativeDefineProperty; 5823 5824var wrap = function (tag, description) { 5825 var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype); 5826 setInternalState(symbol, { 5827 type: SYMBOL, 5828 tag: tag, 5829 description: description 5830 }); 5831 if (!DESCRIPTORS) symbol.description = description; 5832 return symbol; 5833}; 5834 5835var $defineProperty = function defineProperty(O, P, Attributes) { 5836 if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); 5837 anObject(O); 5838 var key = toPropertyKey(P); 5839 anObject(Attributes); 5840 if (hasOwn(AllSymbols, key)) { 5841 if (!Attributes.enumerable) { 5842 if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null))); 5843 O[HIDDEN][key] = true; 5844 } else { 5845 if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; 5846 Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); 5847 } return setSymbolDescriptor(O, key, Attributes); 5848 } return nativeDefineProperty(O, key, Attributes); 5849}; 5850 5851var $defineProperties = function defineProperties(O, Properties) { 5852 anObject(O); 5853 var properties = toIndexedObject(Properties); 5854 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); 5855 $forEach(keys, function (key) { 5856 if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); 5857 }); 5858 return O; 5859}; 5860 5861var $create = function create(O, Properties) { 5862 return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); 5863}; 5864 5865var $propertyIsEnumerable = function propertyIsEnumerable(V) { 5866 var P = toPropertyKey(V); 5867 var enumerable = call(nativePropertyIsEnumerable, this, P); 5868 if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false; 5869 return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] 5870 ? enumerable : true; 5871}; 5872 5873var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { 5874 var it = toIndexedObject(O); 5875 var key = toPropertyKey(P); 5876 if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return; 5877 var descriptor = nativeGetOwnPropertyDescriptor(it, key); 5878 if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) { 5879 descriptor.enumerable = true; 5880 } 5881 return descriptor; 5882}; 5883 5884var $getOwnPropertyNames = function getOwnPropertyNames(O) { 5885 var names = nativeGetOwnPropertyNames(toIndexedObject(O)); 5886 var result = []; 5887 $forEach(names, function (key) { 5888 if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key); 5889 }); 5890 return result; 5891}; 5892 5893var $getOwnPropertySymbols = function (O) { 5894 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; 5895 var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); 5896 var result = []; 5897 $forEach(names, function (key) { 5898 if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) { 5899 push(result, AllSymbols[key]); 5900 } 5901 }); 5902 return result; 5903}; 5904 5905// `Symbol` constructor 5906// https://tc39.es/ecma262/#sec-symbol-constructor 5907if (!NATIVE_SYMBOL) { 5908 $Symbol = function Symbol() { 5909 if (isPrototypeOf(SymbolPrototype, this)) throw new TypeError('Symbol is not a constructor'); 5910 var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]); 5911 var tag = uid(description); 5912 var setter = function (value) { 5913 var $this = this === undefined ? globalThis : this; 5914 if ($this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value); 5915 if (hasOwn($this, HIDDEN) && hasOwn($this[HIDDEN], tag)) $this[HIDDEN][tag] = false; 5916 var descriptor = createPropertyDescriptor(1, value);
vendor: 4,813 bytes, lines 5917-6013
5917 try { 5918 setSymbolDescriptor($this, tag, descriptor); 5919 } catch (error) { 5920 if (!(error instanceof RangeError)) throw error; 5921 fallbackDefineProperty($this, tag, descriptor); 5922 } 5923 }; 5924 if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); 5925 return wrap(tag, description); 5926 }; 5927 5928 SymbolPrototype = $Symbol[PROTOTYPE]; 5929 5930 defineBuiltIn(SymbolPrototype, 'toString', function toString() { 5931 return getInternalState(this).tag; 5932 }); 5933 5934 defineBuiltIn($Symbol, 'withoutSetter', function (description) { 5935 return wrap(uid(description), description); 5936 }); 5937 5938 propertyIsEnumerableModule.f = $propertyIsEnumerable; 5939 definePropertyModule.f = $defineProperty; 5940 definePropertiesModule.f = $defineProperties; 5941 getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; 5942 getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; 5943 getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; 5944 5945 wrappedWellKnownSymbolModule.f = function (name) { 5946 return wrap(wellKnownSymbol(name), name); 5947 }; 5948 5949 if (DESCRIPTORS) { 5950 // https://github.com/tc39/proposal-Symbol-description 5951 defineBuiltInAccessor(SymbolPrototype, 'description', { 5952 configurable: true, 5953 get: function description() { 5954 return getInternalState(this).description; 5955 } 5956 }); 5957 if (!IS_PURE) { 5958 defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); 5959 } 5960 } 5961} 5962 5963$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { 5964 Symbol: $Symbol 5965}); 5966 5967$forEach(objectKeys(WellKnownSymbolsStore), function (name) { 5968 defineWellKnownSymbol(name); 5969}); 5970 5971$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { 5972 useSetter: function () { USE_SETTER = true; }, 5973 useSimple: function () { USE_SETTER = false; } 5974}); 5975 5976$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { 5977 // `Object.create` method 5978 // https://tc39.es/ecma262/#sec-object.create 5979 create: $create, 5980 // `Object.defineProperty` method 5981 // https://tc39.es/ecma262/#sec-object.defineproperty 5982 defineProperty: $defineProperty, 5983 // `Object.defineProperties` method 5984 // https://tc39.es/ecma262/#sec-object.defineproperties 5985 defineProperties: $defineProperties, 5986 // `Object.getOwnPropertyDescriptor` method 5987 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors 5988 getOwnPropertyDescriptor: $getOwnPropertyDescriptor 5989}); 5990 5991$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, { 5992 // `Object.getOwnPropertyNames` method 5993 // https://tc39.es/ecma262/#sec-object.getownpropertynames 5994 getOwnPropertyNames: $getOwnPropertyNames 5995}); 5996 5997// `Symbol.prototype[@@toPrimitive]` method 5998// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive 5999defineSymbolToPrimitive(); 6000 6001// `Symbol.prototype[@@toStringTag]` property 6002// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag 6003setToStringTag($Symbol, SYMBOL); 6004 6005hiddenKeys[HIDDEN] = true; 6006 6007},{"../internals/an-object":7,"../internals/array-iteration":11,"../internals/create-property-descriptor":33,"../internals/define-built-in":37,"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/export":56,"../internals/fails":57,"../internals/function-call":62,"../internals/function-uncurry-this":66,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/hidden-keys":75,"../internals/internal-state":83,"../internals/is-pure":92,"../internals/object-create":110,"../internals/object-define-properties":111,"../internals/object-define-property":112,"../internals/object-get-own-property-descriptor":113,"../internals/object-get-own-property-names":115,"../internals/object-get-own-property-names-external":114,"../internals/object-get-own-property-symbols":116,"../internals/object-is-prototype-of":118,"../internals/object-keys":120,"../internals/object-property-is-enumerable":121,"../internals/set-to-string-tag":146,"../internals/shared":149,"../internals/shared-key":147,"../internals/symbol-constructor-detection":155,"../internals/symbol-define-to-primitive":156,"../internals/to-indexed-object":161,"../internals/to-property-key":166,"../internals/to-string":168,"../internals/uid":170,"../internals/well-known-symbol":178,"../internals/well-known-symbol-define":176,"../internals/well-known-symbol-wrapped":177}],223:[function(require,module,exports){ 6008// `Symbol.prototype.description` getter 6009// https://tc39.es/ecma262/#sec-symbol.prototype.description 6010'use strict'; 6011var $ = require('../internals/export'); 6012var DESCRIPTORS = require('../internals/descriptors'); 6013var globalThis = require('../internals/global-this');
vendor: 4,551 bytes, lines 6014-6106
6014var uncurryThis = require('../internals/function-uncurry-this'); 6015var hasOwn = require('../internals/has-own-property'); 6016var isCallable = require('../internals/is-callable'); 6017var isPrototypeOf = require('../internals/object-is-prototype-of'); 6018var toString = require('../internals/to-string'); 6019var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 6020var copyConstructorProperties = require('../internals/copy-constructor-properties'); 6021 6022var NativeSymbol = globalThis.Symbol; 6023var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; 6024 6025if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) || 6026 // Safari 12 bug 6027 NativeSymbol().description !== undefined 6028)) { 6029 var EmptyStringDescriptionStore = {}; 6030 // wrap Symbol constructor for correct work with undefined description 6031 var SymbolWrapper = function Symbol() { 6032 var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]); 6033 var result = isPrototypeOf(SymbolPrototype, this) 6034 // eslint-disable-next-line sonar/inconsistent-function-call -- ok 6035 ? new NativeSymbol(description) 6036 // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' 6037 : description === undefined ? NativeSymbol() : NativeSymbol(description); 6038 if (description === '') EmptyStringDescriptionStore[result] = true; 6039 return result; 6040 }; 6041 6042 copyConstructorProperties(SymbolWrapper, NativeSymbol); 6043 SymbolWrapper.prototype = SymbolPrototype; 6044 SymbolPrototype.constructor = SymbolWrapper; 6045 6046 var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)'; 6047 var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf); 6048 var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString); 6049 var regexp = /^Symbol\((.*)\)[^)]+$/; 6050 var replace = uncurryThis(''.replace); 6051 var stringSlice = uncurryThis(''.slice); 6052 6053 defineBuiltInAccessor(SymbolPrototype, 'description', { 6054 configurable: true, 6055 get: function description() { 6056 var symbol = thisSymbolValue(this); 6057 if (hasOwn(EmptyStringDescriptionStore, symbol)) return ''; 6058 var string = symbolDescriptiveString(symbol); 6059 var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1'); 6060 return desc === '' ? undefined : desc; 6061 } 6062 }); 6063 6064 $({ global: true, constructor: true, forced: true }, { 6065 Symbol: SymbolWrapper 6066 }); 6067} 6068 6069},{"../internals/copy-constructor-properties":28,"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/export":56,"../internals/function-uncurry-this":66,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/is-callable":86,"../internals/object-is-prototype-of":118,"../internals/to-string":168}],224:[function(require,module,exports){ 6070'use strict'; 6071var $ = require('../internals/export'); 6072var getBuiltIn = require('../internals/get-built-in'); 6073var hasOwn = require('../internals/has-own-property'); 6074var toString = require('../internals/to-string'); 6075var shared = require('../internals/shared'); 6076var NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection'); 6077 6078var StringToSymbolRegistry = shared('string-to-symbol-registry'); 6079var SymbolToStringRegistry = shared('symbol-to-string-registry'); 6080 6081// `Symbol.for` method 6082// https://tc39.es/ecma262/#sec-symbol.for 6083$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { 6084 'for': function (key) { 6085 var string = toString(key); 6086 if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; 6087 var symbol = getBuiltIn('Symbol')(string); 6088 StringToSymbolRegistry[string] = symbol; 6089 SymbolToStringRegistry[symbol] = string; 6090 return symbol; 6091 } 6092}); 6093 6094},{"../internals/export":56,"../internals/get-built-in":67,"../internals/has-own-property":74,"../internals/shared":149,"../internals/symbol-registry-detection":157,"../internals/to-string":168}],225:[function(require,module,exports){ 6095'use strict'; 6096var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); 6097 6098// `Symbol.iterator` well-known symbol 6099// https://tc39.es/ecma262/#sec-symbol.iterator 6100defineWellKnownSymbol('iterator'); 6101 6102},{"../internals/well-known-symbol-define":176}],226:[function(require,module,exports){ 6103'use strict'; 6104// TODO: Remove this module from `core-js@4` since it's split to modules listed below 6105require('../modules/es.symbol.constructor'); 6106require('../modules/es.symbol.for');
6107require('../modules/es.symbol.key-for'); 6108require('../modules/es.json.stringify'); 6109require('../modules/es.object.get-own-property-symbols'); 6110 6111},{"../modules/es.json.stringify":194,"../modules/es.object.get-own-property-symbols":201,"../modules/es.symbol.constructor":222,"../modules/es.symbol.for":224,"../modules/es.symbol.key-for":227}],227:[function(require,module,exports){ 6112'use strict'; 6113var $ = require('../internals/export'); 6114var hasOwn = require('../internals/has-own-property'); 6115var isSymbol = require('../internals/is-symbol'); 6116var tryToString = require('../internals/try-to-string'); 6117var shared = require('../internals/shared'); 6118var NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection'); 6119 6120var SymbolToStringRegistry = shared('symbol-to-string-registry'); 6121 6122// `Symbol.keyFor` method 6123// https://tc39.es/ecma262/#sec-symbol.keyfor 6124$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { 6125 keyFor: function keyFor(sym) { 6126 if (!isSymbol(sym)) throw new TypeError(tryToString(sym) + ' is not a symbol'); 6127 if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; 6128 } 6129}); 6130 6131},{"../internals/export":56,"../internals/has-own-property":74,"../internals/is-symbol":94,"../internals/shared":149,"../internals/symbol-registry-detection":157,"../internals/try-to-string":169}],228:[function(require,module,exports){ 6132'use strict'; 6133var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); 6134var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive'); 6135 6136// `Symbol.toPrimitive` well-known symbol 6137// https://tc39.es/ecma262/#sec-symbol.toprimitive 6138defineWellKnownSymbol('toPrimitive'); 6139 6140// `Symbol.prototype[@@toPrimitive]` method 6141// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive 6142defineSymbolToPrimitive(); 6143 6144},{"../internals/symbol-define-to-primitive":156,"../internals/well-known-symbol-define":176}],229:[function(require,module,exports){ 6145'use strict'; 6146var getBuiltIn = require('../internals/get-built-in'); 6147var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); 6148var setToStringTag = require('../internals/set-to-string-tag'); 6149 6150// `Symbol.toStringTag` well-known symbol 6151// https://tc39.es/ecma262/#sec-symbol.tostringtag 6152defineWellKnownSymbol('toStringTag'); 6153 6154// `Symbol.prototype[@@toStringTag]` property 6155// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag 6156setToStringTag(getBuiltIn('Symbol'), 'Symbol'); 6157 6158},{"../internals/get-built-in":67,"../internals/set-to-string-tag":146,"../internals/well-known-symbol-define":176}],230:[function(require,module,exports){ 6159'use strict'; 6160var $ = require('../internals/export'); 6161var call = require('../internals/function-call'); 6162var aCallable = require('../internals/a-callable'); 6163var anObject = require('../internals/an-object'); 6164var isObject = require('../internals/is-object'); 6165var getIteratorDirect = require('../internals/get-iterator-direct'); 6166var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); 6167var createIterResultObject = require('../internals/create-iter-result-object'); 6168var closeAsyncIteration = require('../internals/async-iterator-close'); 6169var IS_PURE = require('../internals/is-pure'); 6170 6171var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { 6172 var state = this; 6173 var iterator = state.iterator; 6174 var predicate = state.predicate; 6175 6176 return new Promise(function (resolve, reject) { 6177 var doneAndReject = function (error) { 6178 state.done = true; 6179 reject(error); 6180 }; 6181 6182 var ifAbruptCloseAsyncIterator = function (error) { 6183 closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); 6184 }; 6185 6186 var loop = function () { 6187 try { 6188 Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { 6189 try { 6190 if (anObject(step).done) { 6191 state.done = true; 6192 resolve(createIterResultObject(undefined, true)); 6193 } else { 6194 var value = step.value; 6195 try { 6196 var result = predicate(value, state.counter++); 6197 6198 var handler = function (selected) { 6199 selected ? resolve(createIterResultObject(value, false)) : loop();
6200 }; 6201 6202 if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); 6203 else handler(result); 6204 } catch (error3) { ifAbruptCloseAsyncIterator(error3); } 6205 } 6206 } catch (error2) { doneAndReject(error2); } 6207 }, doneAndReject); 6208 } catch (error) { doneAndReject(error); } 6209 }; 6210 6211 loop(); 6212 }); 6213}); 6214 6215// `AsyncIterator.prototype.filter` method 6216// https://github.com/tc39/proposal-async-iterator-helpers 6217$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { 6218 filter: function filter(predicate) { 6219 anObject(this); 6220 aCallable(predicate); 6221 return new AsyncIteratorProxy(getIteratorDirect(this), { 6222 predicate: predicate 6223 }); 6224 } 6225}); 6226 6227},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/async-iterator-close":19,"../internals/async-iterator-create-proxy":20,"../internals/create-iter-result-object":31,"../internals/export":56,"../internals/function-call":62,"../internals/get-iterator-direct":68,"../internals/is-object":90,"../internals/is-pure":92}],231:[function(require,module,exports){ 6228'use strict'; 6229var $ = require('../internals/export'); 6230var $find = require('../internals/async-iterator-iteration').find; 6231 6232// `AsyncIterator.prototype.find` method 6233// https://github.com/tc39/proposal-async-iterator-helpers 6234$({ target: 'AsyncIterator', proto: true, real: true }, { 6235 find: function find(predicate) { 6236 return $find(this, predicate); 6237 } 6238}); 6239 6240},{"../internals/async-iterator-iteration":21,"../internals/export":56}],232:[function(require,module,exports){ 6241'use strict'; 6242var $ = require('../internals/export'); 6243var $forEach = require('../internals/async-iterator-iteration').forEach; 6244 6245// `AsyncIterator.prototype.forEach` method 6246// https://github.com/tc39/proposal-async-iterator-helpers 6247$({ target: 'AsyncIterator', proto: true, real: true }, { 6248 forEach: function forEach(fn) { 6249 return $forEach(this, fn); 6250 } 6251}); 6252 6253},{"../internals/async-iterator-iteration":21,"../internals/export":56}],233:[function(require,module,exports){ 6254'use strict'; 6255var $ = require('../internals/export'); 6256var map = require('../internals/async-iterator-map'); 6257var IS_PURE = require('../internals/is-pure'); 6258 6259// `AsyncIterator.prototype.map` method 6260// https://github.com/tc39/proposal-async-iterator-helpers 6261$({ target: 'AsyncIterator', proto: true, real: true, forced: IS_PURE }, { 6262 map: map 6263}); 6264 6265 6266},{"../internals/async-iterator-map":22,"../internals/export":56,"../internals/is-pure":92}],234:[function(require,module,exports){ 6267'use strict'; 6268var $ = require('../internals/export'); 6269var globalThis = require('../internals/global-this'); 6270var anInstance = require('../internals/an-instance'); 6271var anObject = require('../internals/an-object'); 6272var isCallable = require('../internals/is-callable'); 6273var getPrototypeOf = require('../internals/object-get-prototype-of'); 6274var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 6275var createProperty = require('../internals/create-property'); 6276var fails = require('../internals/fails'); 6277var hasOwn = require('../internals/has-own-property'); 6278var wellKnownSymbol = require('../internals/well-known-symbol'); 6279var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; 6280var DESCRIPTORS = require('../internals/descriptors'); 6281var IS_PURE = require('../internals/is-pure'); 6282 6283var CONSTRUCTOR = 'constructor';
vendor: 9,740 bytes, lines 6284-6522
6284var ITERATOR = 'Iterator'; 6285var TO_STRING_TAG = wellKnownSymbol('toStringTag'); 6286 6287var $TypeError = TypeError; 6288var NativeIterator = globalThis[ITERATOR]; 6289 6290// FF56- have non-standard global helper `Iterator` 6291var FORCED = IS_PURE 6292 || !isCallable(NativeIterator) 6293 || NativeIterator.prototype !== IteratorPrototype 6294 // FF44- non-standard `Iterator` passes previous tests 6295 || !fails(function () { NativeIterator({}); }); 6296 6297var IteratorConstructor = function Iterator() { 6298 anInstance(this, IteratorPrototype); 6299 if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable'); 6300}; 6301 6302var defineIteratorPrototypeAccessor = function (key, value) { 6303 if (DESCRIPTORS) { 6304 defineBuiltInAccessor(IteratorPrototype, key, { 6305 configurable: true, 6306 get: function () { 6307 return value; 6308 }, 6309 set: function (replacement) { 6310 anObject(this); 6311 if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); 6312 if (hasOwn(this, key)) this[key] = replacement; 6313 else createProperty(this, key, replacement); 6314 } 6315 }); 6316 } else IteratorPrototype[key] = value; 6317}; 6318 6319if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); 6320 6321if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) { 6322 defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); 6323} 6324 6325IteratorConstructor.prototype = IteratorPrototype; 6326 6327// `Iterator` constructor 6328// https://github.com/tc39/proposal-iterator-helpers 6329$({ global: true, constructor: true, forced: FORCED }, { 6330 Iterator: IteratorConstructor 6331}); 6332 6333},{"../internals/an-instance":6,"../internals/an-object":7,"../internals/create-property":34,"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/export":56,"../internals/fails":57,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/is-callable":86,"../internals/is-pure":92,"../internals/iterators-core":101,"../internals/object-get-prototype-of":117,"../internals/well-known-symbol":178}],235:[function(require,module,exports){ 6334'use strict'; 6335var $ = require('../internals/export'); 6336var call = require('../internals/function-call'); 6337var aCallable = require('../internals/a-callable'); 6338var anObject = require('../internals/an-object'); 6339var getIteratorDirect = require('../internals/get-iterator-direct'); 6340var createIteratorProxy = require('../internals/iterator-create-proxy'); 6341var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); 6342var IS_PURE = require('../internals/is-pure'); 6343 6344var IteratorProxy = createIteratorProxy(function () { 6345 var iterator = this.iterator; 6346 var predicate = this.predicate; 6347 var next = this.next; 6348 var result, done, value; 6349 while (true) { 6350 result = anObject(call(next, iterator)); 6351 done = this.done = !!result.done; 6352 if (done) return; 6353 value = result.value; 6354 if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; 6355 } 6356}); 6357 6358// `Iterator.prototype.filter` method 6359// https://github.com/tc39/proposal-iterator-helpers 6360$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { 6361 filter: function filter(predicate) { 6362 anObject(this); 6363 aCallable(predicate); 6364 return new IteratorProxy(getIteratorDirect(this), { 6365 predicate: predicate 6366 }); 6367 } 6368}); 6369 6370},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/call-with-safe-iteration-closing":24,"../internals/export":56,"../internals/function-call":62,"../internals/get-iterator-direct":68,"../internals/is-pure":92,"../internals/iterator-create-proxy":98}],236:[function(require,module,exports){ 6371'use strict'; 6372var $ = require('../internals/export'); 6373var iterate = require('../internals/iterate'); 6374var aCallable = require('../internals/a-callable'); 6375var anObject = require('../internals/an-object'); 6376var getIteratorDirect = require('../internals/get-iterator-direct'); 6377 6378// `Iterator.prototype.find` method 6379// https://github.com/tc39/proposal-iterator-helpers 6380$({ target: 'Iterator', proto: true, real: true }, { 6381 find: function find(predicate) { 6382 anObject(this); 6383 aCallable(predicate); 6384 var record = getIteratorDirect(this); 6385 var counter = 0; 6386 return iterate(record, function (value, stop) { 6387 if (predicate(value, counter++)) return stop(value); 6388 }, { IS_RECORD: true, INTERRUPTED: true }).result; 6389 } 6390}); 6391 6392},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/export":56,"../internals/get-iterator-direct":68,"../internals/iterate":95}],237:[function(require,module,exports){ 6393'use strict'; 6394var $ = require('../internals/export'); 6395var iterate = require('../internals/iterate'); 6396var aCallable = require('../internals/a-callable'); 6397var anObject = require('../internals/an-object'); 6398var getIteratorDirect = require('../internals/get-iterator-direct'); 6399 6400// `Iterator.prototype.forEach` method 6401// https://github.com/tc39/proposal-iterator-helpers 6402$({ target: 'Iterator', proto: true, real: true }, { 6403 forEach: function forEach(fn) { 6404 anObject(this); 6405 aCallable(fn); 6406 var record = getIteratorDirect(this); 6407 var counter = 0; 6408 iterate(record, function (value) { 6409 fn(value, counter++); 6410 }, { IS_RECORD: true }); 6411 } 6412}); 6413 6414},{"../internals/a-callable":1,"../internals/an-object":7,"../internals/export":56,"../internals/get-iterator-direct":68,"../internals/iterate":95}],238:[function(require,module,exports){ 6415'use strict'; 6416var $ = require('../internals/export'); 6417var map = require('../internals/iterator-map'); 6418var IS_PURE = require('../internals/is-pure'); 6419 6420// `Iterator.prototype.map` method 6421// https://github.com/tc39/proposal-iterator-helpers 6422$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, { 6423 map: map 6424}); 6425 6426},{"../internals/export":56,"../internals/is-pure":92,"../internals/iterator-map":100}],239:[function(require,module,exports){ 6427'use strict'; 6428var $ = require('../internals/export'); 6429var DESCRIPTORS = require('../internals/descriptors'); 6430var globalThis = require('../internals/global-this'); 6431var getBuiltIn = require('../internals/get-built-in'); 6432var uncurryThis = require('../internals/function-uncurry-this'); 6433var call = require('../internals/function-call'); 6434var isCallable = require('../internals/is-callable'); 6435var isObject = require('../internals/is-object'); 6436var isArray = require('../internals/is-array'); 6437var hasOwn = require('../internals/has-own-property'); 6438var toString = require('../internals/to-string'); 6439var lengthOfArrayLike = require('../internals/length-of-array-like'); 6440var createProperty = require('../internals/create-property'); 6441var fails = require('../internals/fails'); 6442var parseJSONString = require('../internals/parse-json-string'); 6443var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); 6444 6445var JSON = globalThis.JSON; 6446var Number = globalThis.Number; 6447var SyntaxError = globalThis.SyntaxError; 6448var nativeParse = JSON && JSON.parse; 6449var enumerableOwnProperties = getBuiltIn('Object', 'keys'); 6450// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe 6451var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 6452var at = uncurryThis(''.charAt); 6453var slice = uncurryThis(''.slice); 6454var exec = uncurryThis(/./.exec); 6455var push = uncurryThis([].push); 6456 6457var IS_DIGIT = /^\d$/; 6458var IS_NON_ZERO_DIGIT = /^[1-9]$/; 6459var IS_NUMBER_START = /^[\d-]$/; 6460var IS_WHITESPACE = /^[\t\n\r ]$/; 6461 6462var PRIMITIVE = 0; 6463var OBJECT = 1; 6464 6465var $parse = function (source, reviver) { 6466 source = toString(source); 6467 var context = new Context(source, 0, ''); 6468 var root = context.parse(); 6469 var value = root.value; 6470 var endIndex = context.skip(IS_WHITESPACE, root.end); 6471 if (endIndex < source.length) { 6472 throw new SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex); 6473 } 6474 return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value; 6475}; 6476 6477var internalize = function (holder, name, reviver, node) { 6478 var val = holder[name]; 6479 var unmodified = node && val === node.value; 6480 var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {}; 6481 var elementRecordsLen, keys, len, i, P; 6482 if (isObject(val)) { 6483 var nodeIsArray = isArray(val); 6484 var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {}; 6485 if (nodeIsArray) { 6486 elementRecordsLen = nodes.length; 6487 len = lengthOfArrayLike(val); 6488 for (i = 0; i < len; i++) { 6489 internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined)); 6490 } 6491 } else { 6492 keys = enumerableOwnProperties(val); 6493 len = lengthOfArrayLike(keys); 6494 for (i = 0; i < len; i++) { 6495 P = keys[i]; 6496 internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined)); 6497 } 6498 } 6499 } 6500 return call(reviver, holder, name, val, context); 6501}; 6502 6503var internalizeProperty = function (object, key, value) { 6504 if (DESCRIPTORS) { 6505 var descriptor = getOwnPropertyDescriptor(object, key); 6506 if (descriptor && !descriptor.configurable) return; 6507 } 6508 if (value === undefined) delete object[key]; 6509 else createProperty(object, key, value); 6510}; 6511 6512var Node = function (value, end, source, nodes) { 6513 this.value = value; 6514 this.end = end; 6515 this.source = source; 6516 this.nodes = nodes; 6517}; 6518 6519var Context = function (source, index) { 6520 this.source = source; 6521 this.index = index; 6522};
vendor: 5,269 bytes, lines 6523-6679
6523 6524// https://www.json.org/json-en.html 6525Context.prototype = { 6526 fork: function (nextIndex) { 6527 return new Context(this.source, nextIndex); 6528 }, 6529 parse: function () { 6530 var source = this.source; 6531 var i = this.skip(IS_WHITESPACE, this.index); 6532 var fork = this.fork(i); 6533 var chr = at(source, i); 6534 if (exec(IS_NUMBER_START, chr)) return fork.number(); 6535 switch (chr) { 6536 case '{': 6537 return fork.object(); 6538 case '[': 6539 return fork.array(); 6540 case '"': 6541 return fork.string(); 6542 case 't': 6543 return fork.keyword(true); 6544 case 'f': 6545 return fork.keyword(false); 6546 case 'n': 6547 return fork.keyword(null); 6548 } throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i); 6549 }, 6550 node: function (type, value, start, end, nodes) { 6551 return new Node(value, end, type ? null : slice(this.source, start, end), nodes); 6552 }, 6553 object: function () { 6554 var source = this.source; 6555 var i = this.index + 1; 6556 var expectKeypair = false; 6557 var object = {}; 6558 var nodes = {}; 6559 while (i < source.length) { 6560 i = this.until(['"', '}'], i); 6561 if (at(source, i) === '}' && !expectKeypair) { 6562 i++; 6563 break; 6564 } 6565 // Parsing the key 6566 var result = this.fork(i).string(); 6567 var key = result.value; 6568 i = result.end; 6569 i = this.until([':'], i) + 1; 6570 // Parsing value 6571 i = this.skip(IS_WHITESPACE, i); 6572 result = this.fork(i).parse(); 6573 createProperty(nodes, key, result); 6574 createProperty(object, key, result.value); 6575 i = this.until([',', '}'], result.end); 6576 var chr = at(source, i); 6577 if (chr === ',') { 6578 expectKeypair = true; 6579 i++; 6580 } else if (chr === '}') { 6581 i++; 6582 break; 6583 } 6584 } 6585 return this.node(OBJECT, object, this.index, i, nodes); 6586 }, 6587 array: function () { 6588 var source = this.source; 6589 var i = this.index + 1; 6590 var expectElement = false; 6591 var array = []; 6592 var nodes = []; 6593 while (i < source.length) { 6594 i = this.skip(IS_WHITESPACE, i); 6595 if (at(source, i) === ']' && !expectElement) { 6596 i++; 6597 break; 6598 } 6599 var result = this.fork(i).parse(); 6600 push(nodes, result); 6601 push(array, result.value); 6602 i = this.until([',', ']'], result.end); 6603 if (at(source, i) === ',') { 6604 expectElement = true; 6605 i++; 6606 } else if (at(source, i) === ']') { 6607 i++; 6608 break; 6609 } 6610 } 6611 return this.node(OBJECT, array, this.index, i, nodes); 6612 }, 6613 string: function () { 6614 var index = this.index; 6615 var parsed = parseJSONString(this.source, this.index + 1); 6616 return this.node(PRIMITIVE, parsed.value, index, parsed.end); 6617 }, 6618 number: function () { 6619 var source = this.source; 6620 var startIndex = this.index; 6621 var i = startIndex; 6622 if (at(source, i) === '-') i++; 6623 if (at(source, i) === '0') i++; 6624 else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, i + 1); 6625 else throw new SyntaxError('Failed to parse number at: ' + i); 6626 if (at(source, i) === '.') i = this.skip(IS_DIGIT, i + 1); 6627 if (at(source, i) === 'e' || at(source, i) === 'E') { 6628 i++; 6629 if (at(source, i) === '+' || at(source, i) === '-') i++; 6630 var exponentStartIndex = i; 6631 i = this.skip(IS_DIGIT, i); 6632 if (exponentStartIndex === i) throw new SyntaxError("Failed to parse number's exponent value at: " + i); 6633 } 6634 return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i); 6635 }, 6636 keyword: function (value) { 6637 var keyword = '' + value; 6638 var index = this.index; 6639 var endIndex = index + keyword.length; 6640 if (slice(this.source, index, endIndex) !== keyword) throw new SyntaxError('Failed to parse value at: ' + index); 6641 return this.node(PRIMITIVE, value, index, endIndex); 6642 }, 6643 skip: function (regex, i) { 6644 var source = this.source; 6645 for (; i < source.length; i++) if (!exec(regex, at(source, i))) break; 6646 return i; 6647 }, 6648 until: function (array, i) { 6649 i = this.skip(IS_WHITESPACE, i); 6650 var chr = at(this.source, i); 6651 for (var j = 0; j < array.length; j++) if (array[j] === chr) return i; 6652 throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i); 6653 } 6654}; 6655 6656var NO_SOURCE_SUPPORT = fails(function () { 6657 var unsafeInt = '9007199254740993'; 6658 var source; 6659 nativeParse(unsafeInt, function (key, value, context) { 6660 source = context.source; 6661 }); 6662 return source !== unsafeInt; 6663}); 6664 6665var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () { 6666 // Safari 9 bug 6667 return 1 / nativeParse('-0 \t') !== -Infinity; 6668}); 6669 6670// `JSON.parse` method 6671// https://tc39.es/ecma262/#sec-json.parse 6672// https://github.com/tc39/proposal-json-parse-with-source 6673$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, { 6674 parse: function parse(text, reviver) { 6675 return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver); 6676 } 6677}); 6678 6679},{"../internals/create-property":34,"../internals/descriptors":40,"../internals/export":56,"../internals/fails":57,"../internals/function-call":62,"../internals/function-uncurr
6679y-this":66,"../internals/get-built-in":67,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/is-array":85,"../internals/is-callable":86,"../internals/is-object":90,"../internals/length-of-array-like":103,"../internals/parse-json-string":126,"../internals/symbol-constructor-detection":155,"../internals/to-string":168}],240:[function(require,module,exports){ 6680'use strict'; 6681var globalThis = require('../internals/global-this'); 6682var DOMIterables = require('../internals/dom-iterables'); 6683var DOMTokenListPrototype = require('../internals/dom-token-list-prototype'); 6684var forEach = require('../internals/array-for-each'); 6685var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 6686 6687var handlePrototype = function (CollectionPrototype) { 6688 // some Chrome versions have non-configurable methods on DOMTokenList 6689 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { 6690 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); 6691 } catch (error) { 6692 CollectionPrototype.forEach = forEach; 6693 } 6694}; 6695 6696for (var COLLECTION_NAME in DOMIterables) { 6697 if (DOMIterables[COLLECTION_NAME]) { 6698 handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype); 6699 } 6700} 6701 6702handlePrototype(DOMTokenListPrototype); 6703 6704},{"../internals/array-for-each":8,"../internals/create-non-enumerable-property":32,"../internals/dom-iterables":43,"../internals/dom-token-list-prototype":44,"../internals/global-this":73}],241:[function(require,module,exports){ 6705'use strict'; 6706var globalThis = require('../internals/global-this'); 6707var DOMIterables = require('../internals/dom-iterables'); 6708var DOMTokenListPrototype = require('../internals/dom-token-list-prototype'); 6709var ArrayIteratorMethods = require('../modules/es.array.iterator'); 6710var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); 6711var setToStringTag = require('../internals/set-to-string-tag'); 6712var wellKnownSymbol = require('../internals/well-known-symbol'); 6713 6714var ITERATOR = wellKnownSymbol('iterator'); 6715var ArrayValues = ArrayIteratorMethods.values; 6716 6717var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { 6718 if (CollectionPrototype) { 6719 // some Chrome versions have non-configurable methods on DOMTokenList 6720 if (CollectionPrototype[ITERATOR] !== ArrayValues) try { 6721 createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); 6722 } catch (error) { 6723 CollectionPrototype[ITERATOR] = ArrayValues; 6724 } 6725 setToStringTag(CollectionPrototype, COLLECTION_NAME, true); 6726 if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { 6727 // some Chrome versions have non-configurable methods on DOMTokenList 6728 if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { 6729 createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); 6730 } catch (error) { 6731 CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; 6732 } 6733 } 6734 } 6735}; 6736 6737for (var COLLECTION_NAME in DOMIterables) { 6738 handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype, COLLECTION_NAME); 6739} 6740 6741handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); 6742 6743},{"../internals/create-non-enumerable-property":32,"../internals/dom-iterables":43,"../internals/dom-token-list-prototype":44,"../internals/global-this":73,"../internals/set-to-string-tag":146,"../internals/well-known-symbol":178,"../modules/es.array.iterator":186}],242:[function(require,module,exports){ 6744'use strict'; 6745// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` 6746require('../modules/es.array.iterator'); 6747require('../modules/es.string.from-code-point'); 6748var $ = require('../internals/export'); 6749var globalThis = require('../internals/global-this'); 6750var safeGetBuiltIn = require('../internals/safe-get-built-in'); 6751var getBuiltIn = require('../internals/get-built-in'); 6752var call = require('../internals/function-call');
vendor: 13,575 bytes, lines 6753-7153
6753var uncurryThis = require('../internals/function-uncurry-this'); 6754var DESCRIPTORS = require('../internals/descriptors'); 6755var USE_NATIVE_URL = require('../internals/url-constructor-detection'); 6756var defineBuiltIn = require('../internals/define-built-in'); 6757var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 6758var defineBuiltIns = require('../internals/define-built-ins'); 6759var setToStringTag = require('../internals/set-to-string-tag'); 6760var createIteratorConstructor = require('../internals/iterator-create-constructor'); 6761var InternalStateModule = require('../internals/internal-state'); 6762var anInstance = require('../internals/an-instance'); 6763var isCallable = require('../internals/is-callable'); 6764var hasOwn = require('../internals/has-own-property'); 6765var bind = require('../internals/function-bind-context'); 6766var classof = require('../internals/classof'); 6767var anObject = require('../internals/an-object'); 6768var isObject = require('../internals/is-object'); 6769var $toString = require('../internals/to-string'); 6770var create = require('../internals/object-create'); 6771var createPropertyDescriptor = require('../internals/create-property-descriptor'); 6772var getIterator = require('../internals/get-iterator'); 6773var getIteratorMethod = require('../internals/get-iterator-method'); 6774var createIterResultObject = require('../internals/create-iter-result-object'); 6775var validateArgumentsLength = require('../internals/validate-arguments-length'); 6776var wellKnownSymbol = require('../internals/well-known-symbol'); 6777var arraySort = require('../internals/array-sort'); 6778 6779var ITERATOR = wellKnownSymbol('iterator'); 6780var URL_SEARCH_PARAMS = 'URLSearchParams'; 6781var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator'; 6782var setInternalState = InternalStateModule.set; 6783var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS); 6784var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR); 6785 6786var nativeFetch = safeGetBuiltIn('fetch'); 6787var NativeRequest = safeGetBuiltIn('Request'); 6788var Headers = safeGetBuiltIn('Headers'); 6789var RequestPrototype = NativeRequest && NativeRequest.prototype; 6790var HeadersPrototype = Headers && Headers.prototype; 6791var TypeError = globalThis.TypeError; 6792var encodeURIComponent = globalThis.encodeURIComponent; 6793var fromCharCode = String.fromCharCode; 6794var fromCodePoint = getBuiltIn('String', 'fromCodePoint'); 6795var $parseInt = parseInt; 6796var charAt = uncurryThis(''.charAt); 6797var join = uncurryThis([].join); 6798var push = uncurryThis([].push); 6799var replace = uncurryThis(''.replace); 6800var shift = uncurryThis([].shift); 6801var splice = uncurryThis([].splice); 6802var split = uncurryThis(''.split); 6803var stringSlice = uncurryThis(''.slice); 6804var exec = uncurryThis(/./.exec); 6805 6806var plus = /\+/g; 6807var FALLBACK_REPLACER = '\uFFFD'; 6808var VALID_HEX = /^[0-9a-f]+$/i; 6809 6810var parseHexOctet = function (string, start) { 6811 var substr = stringSlice(string, start, start + 2); 6812 if (!exec(VALID_HEX, substr)) return NaN; 6813 6814 return $parseInt(substr, 16); 6815}; 6816 6817var getLeadingOnes = function (octet) { 6818 var count = 0; 6819 for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) { 6820 count++; 6821 } 6822 return count; 6823}; 6824 6825var utf8Decode = function (octets) { 6826 var codePoint = null; 6827 6828 switch (octets.length) { 6829 case 1: 6830 codePoint = octets[0]; 6831 break; 6832 case 2: 6833 codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F); 6834 break; 6835 case 3: 6836 codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F); 6837 break; 6838 case 4: 6839 codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F); 6840 break; 6841 } 6842 6843 return codePoint > 0x10FFFF ? null : codePoint; 6844}; 6845 6846var decode = function (input) { 6847 input = replace(input, plus, ' '); 6848 var length = input.length; 6849 var result = ''; 6850 var i = 0; 6851 6852 while (i < length) { 6853 var decodedChar = charAt(input, i); 6854 6855 if (decodedChar === '%') { 6856 if (charAt(input, i + 1) === '%' || i + 3 > length) { 6857 result += '%'; 6858 i++; 6859 continue; 6860 } 6861 6862 var octet = parseHexOctet(input, i + 1); 6863 6864 // eslint-disable-next-line no-self-compare -- NaN check 6865 if (octet !== octet) { 6866 result += decodedChar; 6867 i++; 6868 continue; 6869 } 6870 6871 i += 2; 6872 var byteSequenceLength = getLeadingOnes(octet); 6873 6874 if (byteSequenceLength === 0) { 6875 decodedChar = fromCharCode(octet); 6876 } else { 6877 if (byteSequenceLength === 1 || byteSequenceLength > 4) { 6878 result += FALLBACK_REPLACER; 6879 i++; 6880 continue; 6881 } 6882 6883 var octets = [octet]; 6884 var sequenceIndex = 1; 6885 6886 while (sequenceIndex < byteSequenceLength) { 6887 i++; 6888 if (i + 3 > length || charAt(input, i) !== '%') break; 6889 6890 var nextByte = parseHexOctet(input, i + 1); 6891 6892 // eslint-disable-next-line no-self-compare -- NaN check 6893 if (nextByte !== nextByte) { 6894 i += 3; 6895 break; 6896 } 6897 if (nextByte > 191 || nextByte < 128) break; 6898 6899 push(octets, nextByte); 6900 i += 2; 6901 sequenceIndex++; 6902 } 6903 6904 if (octets.length !== byteSequenceLength) { 6905 result += FALLBACK_REPLACER; 6906 continue; 6907 } 6908 6909 var codePoint = utf8Decode(octets); 6910 if (codePoint === null) { 6911 result += FALLBACK_REPLACER; 6912 } else { 6913 decodedChar = fromCodePoint(codePoint); 6914 } 6915 } 6916 } 6917 6918 result += decodedChar; 6919 i++; 6920 } 6921 6922 return result; 6923}; 6924 6925var find = /[!'()~]|%20/g; 6926 6927var replacements = { 6928 '!': '%21', 6929 "'": '%27', 6930 '(': '%28', 6931 ')': '%29', 6932 '~': '%7E', 6933 '%20': '+' 6934}; 6935 6936var replacer = function (match) { 6937 return replacements[match]; 6938}; 6939 6940var serialize = function (it) { 6941 return replace(encodeURIComponent(it), find, replacer); 6942}; 6943 6944var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) { 6945 setInternalState(this, { 6946 type: URL_SEARCH_PARAMS_ITERATOR, 6947 target: getInternalParamsState(params).entries, 6948 index: 0, 6949 kind: kind 6950 }); 6951}, URL_SEARCH_PARAMS, function next() { 6952 var state = getInternalIteratorState(this); 6953 var target = state.target; 6954 var index = state.index++; 6955 if (!target || index >= target.length) { 6956 state.target = null; 6957 return createIterResultObject(undefined, true); 6958 } 6959 var entry = target[index]; 6960 switch (state.kind) { 6961 case 'keys': return createIterResultObject(entry.key, false); 6962 case 'values': return createIterResultObject(entry.value, false); 6963 } return createIterResultObject([entry.key, entry.value], false); 6964}, true); 6965 6966var URLSearchParamsState = function (init) { 6967 this.entries = []; 6968 this.url = null; 6969 6970 if (init !== undefined) { 6971 if (isObject(init)) this.parseObject(init); 6972 else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init)); 6973 } 6974}; 6975 6976URLSearchParamsState.prototype = { 6977 type: URL_SEARCH_PARAMS, 6978 bindURL: function (url) { 6979 this.url = url; 6980 this.update(); 6981 }, 6982 parseObject: function (object) { 6983 var entries = this.entries; 6984 var iteratorMethod = getIteratorMethod(object); 6985 var iterator, next, step, entryIterator, entryNext, first, second; 6986 6987 if (iteratorMethod) { 6988 iterator = getIterator(object, iteratorMethod); 6989 next = iterator.next; 6990 while (!(step = call(next, iterator)).done) { 6991 entryIterator = getIterator(anObject(step.value)); 6992 entryNext = entryIterator.next; 6993 if ( 6994 (first = call(entryNext, entryIterator)).done || 6995 (second = call(entryNext, entryIterator)).done || 6996 !call(entryNext, entryIterator).done 6997 ) throw new TypeError('Expected sequence with length 2'); 6998 push(entries, { key: $toString(first.value), value: $toString(second.value) }); 6999 } 7000 } else for (var key in object) if (hasOwn(object, key)) { 7001 push(entries, { key: key, value: $toString(object[key]) }); 7002 } 7003 }, 7004 parseQuery: function (query) { 7005 if (query) { 7006 var entries = this.entries; 7007 var attributes = split(query, '&'); 7008 var index = 0; 7009 var attribute, entry; 7010 while (index < attributes.length) { 7011 attribute = attributes[index++]; 7012 if (attribute.length) { 7013 entry = split(attribute, '='); 7014 push(entries, { 7015 key: decode(shift(entry)), 7016 value: decode(join(entry, '=')) 7017 }); 7018 } 7019 } 7020 } 7021 }, 7022 serialize: function () { 7023 var entries = this.entries; 7024 var result = []; 7025 var index = 0; 7026 var entry; 7027 while (index < entries.length) { 7028 entry = entries[index++]; 7029 push(result, serialize(entry.key) + '=' + serialize(entry.value)); 7030 } return join(result, '&'); 7031 }, 7032 update: function () { 7033 this.entries.length = 0; 7034 this.parseQuery(this.url.query); 7035 }, 7036 updateURL: function () { 7037 if (this.url) this.url.update(); 7038 } 7039}; 7040 7041// `URLSearchParams` constructor 7042// https://url.spec.whatwg.org/#interface-urlsearchparams 7043var URLSearchParamsConstructor = function URLSearchParams(/* init */) { 7044 anInstance(this, URLSearchParamsPrototype); 7045 var init = arguments.length > 0 ? arguments[0] : undefined; 7046 var state = setInternalState(this, new URLSearchParamsState(init)); 7047 if (!DESCRIPTORS) this.size = state.entries.length; 7048}; 7049 7050var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; 7051 7052defineBuiltIns(URLSearchParamsPrototype, { 7053 // `URLSearchParams.prototype.append` method 7054 // https://url.spec.whatwg.org/#dom-urlsearchparams-append 7055 append: function append(name, value) { 7056 var state = getInternalParamsState(this); 7057 validateArgumentsLength(arguments.length, 2); 7058 push(state.entries, { key: $toString(name), value: $toString(value) }); 7059 if (!DESCRIPTORS) this.length++; 7060 state.updateURL(); 7061 }, 7062 // `URLSearchParams.prototype.delete` method 7063 // https://url.spec.whatwg.org/#dom-urlsearchparams-delete 7064 'delete': function (name /* , value */) { 7065 var state = getInternalParamsState(this); 7066 var length = validateArgumentsLength(arguments.length, 1); 7067 var entries = state.entries; 7068 var key = $toString(name); 7069 var $value = length < 2 ? undefined : arguments[1]; 7070 var value = $value === undefined ? $value : $toString($value); 7071 var index = 0; 7072 while (index < entries.length) { 7073 var entry = entries[index]; 7074 if (entry.key === key && (value === undefined || entry.value === value)) { 7075 splice(entries, index, 1); 7076 if (value !== undefined) break; 7077 } else index++; 7078 } 7079 if (!DESCRIPTORS) this.size = entries.length; 7080 state.updateURL(); 7081 }, 7082 // `URLSearchParams.prototype.get` method 7083 // https://url.spec.whatwg.org/#dom-urlsearchparams-get 7084 get: function get(name) { 7085 var entries = getInternalParamsState(this).entries; 7086 validateArgumentsLength(arguments.length, 1); 7087 var key = $toString(name); 7088 var index = 0; 7089 for (; index < entries.length; index++) { 7090 if (entries[index].key === key) return entries[index].value; 7091 } 7092 return null; 7093 }, 7094 // `URLSearchParams.prototype.getAll` method 7095 // https://url.spec.whatwg.org/#dom-urlsearchparams-getall 7096 getAll: function getAll(name) { 7097 var entries = getInternalParamsState(this).entries; 7098 validateArgumentsLength(arguments.length, 1); 7099 var key = $toString(name); 7100 var result = []; 7101 var index = 0; 7102 for (; index < entries.length; index++) { 7103 if (entries[index].key === key) push(result, entries[index].value); 7104 } 7105 return result; 7106 }, 7107 // `URLSearchParams.prototype.has` method 7108 // https://url.spec.whatwg.org/#dom-urlsearchparams-has 7109 has: function has(name /* , value */) { 7110 var entries = getInternalParamsState(this).entries; 7111 var length = validateArgumentsLength(arguments.length, 1); 7112 var key = $toString(name); 7113 var $value = length < 2 ? undefined : arguments[1]; 7114 var value = $value === undefined ? $value : $toString($value); 7115 var index = 0; 7116 while (index < entries.length) { 7117 var entry = entries[index++]; 7118 if (entry.key === key && (value === undefined || entry.value === value)) return true; 7119 } 7120 return false; 7121 }, 7122 // `URLSearchParams.prototype.set` method 7123 // https://url.spec.whatwg.org/#dom-urlsearchparams-set 7124 set: function set(name, value) { 7125 var state = getInternalParamsState(this); 7126 validateArgumentsLength(arguments.length, 1); 7127 var entries = state.entries; 7128 var found = false; 7129 var key = $toString(name); 7130 var val = $toString(value); 7131 var index = 0; 7132 var entry; 7133 for (; index < entries.length; index++) { 7134 entry = entries[index]; 7135 if (entry.key === key) { 7136 if (found) splice(entries, index--, 1); 7137 else { 7138 found = true; 7139 entry.value = val; 7140 } 7141 } 7142 } 7143 if (!found) push(entries, { key: key, value: val }); 7144 if (!DESCRIPTORS) this.size = entries.length; 7145 state.updateURL(); 7146 }, 7147 // `URLSearchParams.prototype.sort` method 7148 // https://url.spec.whatwg.org/#dom-urlsearchparams-sort 7149 sort: function sort() { 7150 var state = getInternalParamsState(this); 7151 arraySort(state.entries, function (a, b) { 7152 return a.key > b.key ? 1 : -1; 7153 });
vendor: 3,011 bytes, lines 7154-7236
7154 state.updateURL(); 7155 }, 7156 // `URLSearchParams.prototype.forEach` method 7157 forEach: function forEach(callback /* , thisArg */) { 7158 var entries = getInternalParamsState(this).entries; 7159 var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined); 7160 var index = 0; 7161 var entry; 7162 while (index < entries.length) { 7163 entry = entries[index++]; 7164 boundFunction(entry.value, entry.key, this); 7165 } 7166 }, 7167 // `URLSearchParams.prototype.keys` method 7168 keys: function keys() { 7169 return new URLSearchParamsIterator(this, 'keys'); 7170 }, 7171 // `URLSearchParams.prototype.values` method 7172 values: function values() { 7173 return new URLSearchParamsIterator(this, 'values'); 7174 }, 7175 // `URLSearchParams.prototype.entries` method 7176 entries: function entries() { 7177 return new URLSearchParamsIterator(this, 'entries'); 7178 } 7179}, { enumerable: true }); 7180 7181// `URLSearchParams.prototype[@@iterator]` method 7182defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' }); 7183 7184// `URLSearchParams.prototype.toString` method 7185// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior 7186defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() { 7187 return getInternalParamsState(this).serialize(); 7188}, { enumerable: true }); 7189 7190// `URLSearchParams.prototype.size` getter 7191// https://github.com/whatwg/url/pull/734 7192if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', { 7193 get: function size() { 7194 return getInternalParamsState(this).entries.length; 7195 }, 7196 configurable: true, 7197 enumerable: true 7198}); 7199 7200setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS); 7201 7202$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, { 7203 URLSearchParams: URLSearchParamsConstructor 7204}); 7205 7206// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams` 7207if (!USE_NATIVE_URL && isCallable(Headers)) { 7208 var headersHas = uncurryThis(HeadersPrototype.has); 7209 var headersSet = uncurryThis(HeadersPrototype.set); 7210 7211 var wrapRequestOptions = function (init) { 7212 if (isObject(init)) { 7213 var body = init.body; 7214 var headers; 7215 if (classof(body) === URL_SEARCH_PARAMS) { 7216 headers = init.headers ? new Headers(init.headers) : new Headers(); 7217 if (!headersHas(headers, 'content-type')) { 7218 headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); 7219 } 7220 return create(init, { 7221 body: createPropertyDescriptor(0, $toString(body)), 7222 headers: createPropertyDescriptor(0, headers) 7223 }); 7224 } 7225 } return init; 7226 }; 7227 7228 if (isCallable(nativeFetch)) { 7229 $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, { 7230 fetch: function fetch(input /* , init */) { 7231 return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); 7232 } 7233 }); 7234 } 7235 7236 if (isCallable(NativeRequest)) {
vendor: 5,079 bytes, lines 7237-7334
7237 var RequestConstructor = function Request(input /* , init */) { 7238 anInstance(this, RequestPrototype); 7239 return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); 7240 }; 7241 7242 RequestPrototype.constructor = RequestConstructor; 7243 RequestConstructor.prototype = RequestPrototype; 7244 7245 $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, { 7246 Request: RequestConstructor 7247 }); 7248 } 7249} 7250 7251module.exports = { 7252 URLSearchParams: URLSearchParamsConstructor, 7253 getState: getInternalParamsState 7254}; 7255 7256},{"../internals/an-instance":6,"../internals/an-object":7,"../internals/array-sort":16,"../internals/classof":27,"../internals/create-iter-result-object":31,"../internals/create-property-descriptor":33,"../internals/define-built-in":37,"../internals/define-built-in-accessor":36,"../internals/define-built-ins":38,"../internals/descriptors":40,"../internals/export":56,"../internals/function-bind-context":60,"../internals/function-call":62,"../internals/function-uncurry-this":66,"../internals/get-built-in":67,"../internals/get-iterator":70,"../internals/get-iterator-method":69,"../internals/global-this":73,"../internals/has-own-property":74,"../internals/internal-state":83,"../internals/is-callable":86,"../internals/is-object":90,"../internals/iterator-create-constructor":97,"../internals/object-create":110,"../internals/safe-get-built-in":143,"../internals/set-to-string-tag":146,"../internals/to-string":168,"../internals/url-constructor-detection":171,"../internals/validate-arguments-length":174,"../internals/well-known-symbol":178,"../modules/es.array.iterator":186,"../modules/es.string.from-code-point":215}],243:[function(require,module,exports){ 7257'use strict'; 7258var defineBuiltIn = require('../internals/define-built-in'); 7259var uncurryThis = require('../internals/function-uncurry-this'); 7260var toString = require('../internals/to-string'); 7261var validateArgumentsLength = require('../internals/validate-arguments-length'); 7262 7263var $URLSearchParams = URLSearchParams; 7264var URLSearchParamsPrototype = $URLSearchParams.prototype; 7265var append = uncurryThis(URLSearchParamsPrototype.append); 7266var $delete = uncurryThis(URLSearchParamsPrototype['delete']); 7267var forEach = uncurryThis(URLSearchParamsPrototype.forEach); 7268var push = uncurryThis([].push); 7269var params = new $URLSearchParams('a=1&a=2&b=3'); 7270 7271params['delete']('a', 1); 7272// `undefined` case is a Chromium 117 bug 7273// https://bugs.chromium.org/p/v8/issues/detail?id=14222 7274params['delete']('b', undefined); 7275 7276if (params + '' !== 'a=2') { 7277 defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) { 7278 var length = arguments.length; 7279 var $value = length < 2 ? undefined : arguments[1]; 7280 if (length && $value === undefined) return $delete(this, name); 7281 var entries = []; 7282 forEach(this, function (v, k) { // also validates `this` 7283 push(entries, { key: k, value: v }); 7284 }); 7285 validateArgumentsLength(length, 1); 7286 var key = toString(name); 7287 var value = toString($value); 7288 var index = 0; 7289 var dindex = 0; 7290 var found = false; 7291 var entriesLength = entries.length; 7292 var entry; 7293 while (index < entriesLength) { 7294 entry = entries[index++]; 7295 if (found || entry.key === key) { 7296 found = true; 7297 $delete(this, entry.key); 7298 } else dindex++; 7299 } 7300 while (dindex < entriesLength) { 7301 entry = entries[dindex++]; 7302 if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value); 7303 } 7304 }, { enumerable: true, unsafe: true }); 7305} 7306 7307},{"../internals/define-built-in":37,"../internals/function-uncurry-this":66,"../internals/to-string":168,"../internals/validate-arguments-length":174}],244:[function(require,module,exports){ 7308'use strict'; 7309var defineBuiltIn = require('../internals/define-built-in'); 7310var uncurryThis = require('../internals/function-uncurry-this'); 7311var toString = require('../internals/to-string'); 7312var validateArgumentsLength = require('../internals/validate-arguments-length'); 7313 7314var $URLSearchParams = URLSearchParams; 7315var URLSearchParamsPrototype = $URLSearchParams.prototype; 7316var getAll = uncurryThis(URLSearchParamsPrototype.getAll); 7317var $has = uncurryThis(URLSearchParamsPrototype.has); 7318var params = new $URLSearchParams('a=1'); 7319 7320// `undefined` case is a Chromium 117 bug 7321// https://bugs.chromium.org/p/v8/issues/detail?id=14222 7322if (params.has('a', 2) || !params.has('a', undefined)) { 7323 defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) { 7324 var length = arguments.length; 7325 var $value = length < 2 ? undefined : arguments[1]; 7326 if (length && $value === undefined) return $has(this, name); 7327 var values = getAll(this, name); // also validates `this` 7328 validateArgumentsLength(length, 1); 7329 var value = toString($value); 7330 var index = 0; 7331 while (index < values.length) { 7332 if (values[index++] === value) return true; 7333 } return false; 7334 }, { enumerable: true, unsafe: true });
7335} 7336 7337},{"../internals/define-built-in":37,"../internals/function-uncurry-this":66,"../internals/to-string":168,"../internals/validate-arguments-length":174}],245:[function(require,module,exports){ 7338'use strict'; 7339// TODO: Remove this module from `core-js@4` since it's replaced to module below 7340require('../modules/web.url-search-params.constructor'); 7341 7342},{"../modules/web.url-search-params.constructor":242}],246:[function(require,module,exports){ 7343'use strict'; 7344var DESCRIPTORS = require('../internals/descriptors'); 7345var uncurryThis = require('../internals/function-uncurry-this'); 7346var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); 7347 7348var URLSearchParamsPrototype = URLSearchParams.prototype; 7349var forEach = uncurryThis(URLSearchParamsPrototype.forEach); 7350 7351// `URLSearchParams.prototype.size` getter 7352// https://github.com/whatwg/url/pull/734 7353if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) { 7354 defineBuiltInAccessor(URLSearchParamsPrototype, 'size', { 7355 get: function size() { 7356 var count = 0; 7357 forEach(this, function () { count++; }); 7358 return count; 7359 }, 7360 configurable: true, 7361 enumerable: true 7362 }); 7363} 7364 7365},{"../internals/define-built-in-accessor":36,"../internals/descriptors":40,"../internals/function-uncurry-this":66}],247:[function(require,module,exports){ 7366"use strict"; 7367 7368function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } 7369require("core-js/modules/es.symbol.js"); 7370require("core-js/modules/es.symbol.description.js"); 7371require("core-js/modules/es.symbol.async-iterator.js"); 7372require("core-js/modules/es.symbol.iterator.js"); 7373require("core-js/modules/es.symbol.to-primitive.js"); 7374require("core-js/modules/es.symbol.to-string-tag.js"); 7375require("core-js/modules/es.error.cause.js"); 7376require("core-js/modules/es.array.filter.js"); 7377require("core-js/modules/es.array.from.js"); 7378require("core-js/modules/es.array.push.js"); 7379require("core-js/modules/es.date.to-primitive.js"); 7380require("core-js/modules/es.function.name.js"); 7381require("core-js/modules/es.json.to-string-tag.js"); 7382require("core-js/modules/es.math.to-string-tag.js"); 7383require("core-js/modules/es.number.constructor.js"); 7384require("core-js/modules/es.object.get-own-property-descriptor.js"); 7385require("core-js/modules/es.object.get-own-property-descriptors.js"); 7386require("core-js/modules/es.object.get-prototype-of.js"); 7387require("core-js/modules/es.object.keys.js"); 7388require("core-js/modules/es.regexp.test.js"); 7389require("core-js/modules/es.regexp.to-string.js"); 7390require("core-js/modules/esnext.async-iterator.filter.js"); 7391require("core-js/modules/esnext.async-iterator.for-each.js"); 7392require("core-js/modules/esnext.iterator.constructor.js"); 7393require("core-js/modules/esnext.iterator.filter.js"); 7394require("core-js/modules/esnext.iterator.for-each.js"); 7395require("core-js/modules/web.dom-collections.for-each.js"); 7396require("core-js/modules/es.array.concat.js"); 7397require("core-js/modules/es.array.includes.js"); 7398require("core-js/modules/es.array.iterator.js"); 7399require("core-js/modules/es.array.slice.js"); 7400require("core-js/modules/es.object.to-string.js"); 7401require("core-js/modules/es.promise.js"); 7402require("core-js/modules/es.regexp.exec.js"); 7403require("core-js/modules/es.string.includes.js"); 7404require("core-js/modules/es.string.iterator.js"); 7405require("core-js/modules/es.string.search.js"); 7406require("core-js/modules/web.dom-collections.iterator.js"); 7407require("core-js/modules/web.url-search-params.js"); 7408require("core-js/modules/web.url-search-params.delete.js"); 7409require("core-js/modules/web.url-search-params.has.js"); 7410require("core-js/modules/web.url-search-params.size.js"); 7411var _pay = _interopRequireDefault(require("./pay")); 7412function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } 7413function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } 7414function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {};
7414 r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } 7415function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } 7416function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } 7417function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } 7418function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } 7419function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } 7420function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } 7421function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap;
vendor: 5,439 bytes, line 7421
7421 var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEac
7421h(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } 7422function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } 7423function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } 7424_jsweb.use(["swiper4", "underscore", "jq_qrcode"], function () { 7425 var swiperBanner = null; 7426 var swiperIndex = null; 7427 $("body").on("click", ".popup .popup-close-btn", function () { 7428 $(this).parents(".popup").fadeOut(function () { 7429 $(this).remove(); 7430 }); 7431 }).on("mouseover", ".pagination-index .item", function () { 7432 swiperIndex.slideTo($(this).index()); 7433 }).on("click", ".pay-guide", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { 7434 return _regeneratorRuntime().wrap(function _callee$(_context) { 7435 while (1) switch (_context.prev = _context.next) { 7436 case 0: 7437 (0, _pay.default)(); 7438 case 1: 7439 case "end": 7440 return _context.stop(); 7441 } 7442 }, _callee); 7443 }))).on("click", ".download-mobile-btn", function () { 7444 renderMobileDownload(); 7445 }); 7446 $(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { 7447 var vedioEle, _res$data, res, data, html, _iterator, _step, element, gw_url, related_url, style; 7448 return _regeneratorRuntime().wrap(function _callee2$(_context2) { 7449 while (1) switch (_context2.prev = _context2.next) { 7450 case 0: 7451 if (_jsweb.getParam("openMobileDownload")) { 7452 renderMobileDownload(); 7453 } 7454 headerJs.download({ 7455 callback: function callback(res) { 7456 $(".edg .download-pc-btn .version span").html(res.version_number); 7457 $(".header .c .download-pc-btn, .edg .download-pc-btn").attr("href", res.url); 7458 } 7459 }); 7460 vedioEle = $(".swiper-slide-1 video.figure"); 7461 if (vedioEle[0].canPlayType("video/webm")) { 7462 vedioEle.on("ended", function () { 7463 this.currentTime = 4; 7464 this.play(); 7465 }); 7466 } else { 7467 vedioEle.after("<img src=\"https://ak-gw.akspeedy.com/index3/sli
7467de-1-img.png\" class=\"figure\" alt=\"ak\u52A0\u901F\u5668\">").remove(); 7468 } 7469 _context2.prev = 4; 7470 _context2.next = 7; 7471 return _jsweb.reqPromise("".concat(NEW_G_YB, "/api/v1/game/client/banner"), { 7472 method: "post", 7473 data: { 7474 type: 0, 7475 related_type: ["0"] 7476 } 7477 }); 7478 case 7: 7479 res = _context2.sent; 7480 data = ((_res$data = res.data) !== null && _res$data !== void 0 ? _res$data : []).slice(0, 5); 7481 html = ""; 7482 _iterator = _createForOfIteratorHelper(data); 7483 _context2.prev = 11; 7484 _iterator.s(); 7485 case 13: 7486 if ((_step = _iterator.n()).done) { 7487 _context2.next = 22; 7488 break; 7489 } 7490 element = _step.value; 7491 gw_url = element.gw_url, related_url = element.related_url; 7492 if (gw_url) { 7493 _context2.next = 18; 7494 break; 7495 } 7496 return _context2.abrupt("continue", 20); 7497 case 18: 7498 style = "background-image: url(".concat(gw_url, ")"); 7499 html += related_url ? "<a class=\"swiper-slide\" href=\"".concat(related_url, "\" target=\"_blank\" style=\"").concat(style, "\"></a>") : "<div class=\"swiper-slide\" style=\"".concat(style, "\"></div>"); 7500 case 20: 7501 _context2.next = 13; 7502 break; 7503 case 22: 7504 _context2.next = 27; 7505 break; 7506 case 24: 7507 _context2.prev = 24; 7508 _context2.t0 = _context2["catch"](11); 7509 _iterator.e(_context2.t0); 7510 case 27: 7511 _context2.prev = 27; 7512 _iterator.f(); 7513 return _context2.finish(27); 7514 case 30: 7515 $(".swiper-banner .swiper-wrapper").append(html); 7516 swiperBanner = new Swiper(".swiper-banner", { 7517 autoplay: { 7518 delay: 3000, 7519 disableOnInteraction: false 7520 }, 7521 pagination: { 7522 el: ".pagination-banner", 7523 clickable: true, 7524 type: "bullets" 7525 } 7526 }); 7527 _context2.next = 37; 7528 break; 7529 case 34: 7530 _context2.prev = 34; 7531 _context2.t1 = _context2["catch"](4); 7532 console.log(_context2.t1); 7533 case 37: 7534 swiperIndex = new Swiper(".swiper-index", { 7535 effect: "fade", 7536 fadeEffect: { 7537 crossFade: true 7538 }, 7539 autoplay: { 7540 delay: 5000, 7541 disableOnInteraction: false 7542 }, 7543 pagination: { 7544 el: ".pagination-index", 7545 clickable: true, 7546 type: "custom", 7547 renderCustom: function renderCustom(swiper, current, total) { 7548 var paginationHTML = ""; 7549 for (var index = 1; index <= total; index++) { 7550 var obj = { 7551 1: "AKå éå¨3.0", 7552 2: "æ¯å¤©14å°æ¶è¶ é¿å è´¹", 7553 3: "å¤åºæ¯å éï¼ç¨³å®å¦å±±", 7554 4: "ç¹è²æå¡ï¼æ¸¸æå¦è添翼", 7555 5: "鿶坿åï¼è¶ 髿§ä»·æ¯" 7556 }; 7557 paginationHTML += "<div class=\"item ".concat(index === current ? "active" : "", "\">\n <img src=\"https://ak-gw.akspeedy.com/index3/pagination-index-left-icon.png\" alt=\"ak\u52A0\u901F\u5668\" />\n <div class=\"text\">").concat(obj[index], "</div>\n\t\t\t\t\t\t</div>"); 7558 } 7559 return paginationHTML; 7560 } 7561 }, 7562 on: { 7563 init: function init() { 7564 $(".swiper-index").css({ 7565 visibility: "visible" 7566 }); 7567 }, 7568 slideChangeTransitionStart: function slideChangeTransitionStart() { 7569 if (this.activeIndex === 0) { 7570 vedioEle[0].load(); 7571 } 7572 } 7573 } 7574 }); 7575 case 38: 7576 case "end": 7577 return _context2.stop(); 7578 } 7579 }, _callee2, null, [[4, 34], [11, 24, 27, 30]]); 7580 }))); 7581 function renderMobileDownload() { 7582 $("body").append($(_.template(document.getElementById("popup-mobile-download").innerHTML)({})).fadeIn()); 7583 var qrcodeOptions = { 7584 width: 141, 7585 height: 141, 7586 render: "canvas", 7587 //è®¾ç½®æ¸²ææ¹å¼ table canvas 7588 typeNumber: -1, 7589 //è®¡ç®æ¨¡å¼ 7590 correctLevel: 0, 7591 //çº éç级 7592 background: "#ffffff", 7593 //èæ¯é¢è² 7594 foreground: "#000000", 7595 //忝é¢è² 7596 text: "".concat(HTML_URL, "/html/download-guide.html") 7597 }; 7598 $(".popup-mobile-download .android .qrcode").html("").qrcode(_objectSpread(_objectSpread({}, qrcodeOptions), {}, { 7599 text: "".concat(HTML_URL, "/html/download-guide.html") 7600 })); 7601 $(".popup-mobile-download .ios .qrcode").html("").qrcode(_objectSpread(_objectSpread({}, qrcodeOptions), {}, { 7602 text: "https://apps.apple.com/cn/app/ak%E6%B8%B8%E6%88%8F%E5%8A%A0%E9%80%9F%E5%99%A8-%E5%85%A8%E7%90%83%E7%BD%91%E7%BB%9C%E5%8A%A0%E9%80%9F%E5%8A%A9%E6%89%8B/id1502957027" 7603 })); 7604 headerJs.download({ 7605 type: "android", 7606 callback: function callback(res) { 7607 $(".popup-mobile-download .android .text a").attr("href", res.url); 7608 } 7609 });
7610 } 7611}); 7612function getVisitSource() { 7613 var referrer = document.referrer; 7614 var urlParams = new URLSearchParams(window.location.search); 7615 var utmSource = urlParams.get("utm_source"); 7616 if (utmSource) { 7617 return utmSource; 7618 } 7619 if (referrer.includes("baidu.com")) { 7620 return "Baidu"; 7621 } else if (referrer.includes("bing.com")) { 7622 return "Bing"; 7623 } else if (referrer.includes("sogou.com")) { 7624 return "Sogou"; 7625 } else if (referrer.includes("quark.cn")) { 7626 return "Quark"; 7627 } else if (referrer.includes("youdao.com")) { 7628 return "Youdao"; 7629 } else if (referrer.includes("so.com")) { 7630 return "360"; 7631 } else if (referrer.includes("google.com")) { 7632 return "Google"; 7633 } else if (referrer.includes("hao123.com")) { 7634 return "Hao123"; 7635 } else if (referrer) { 7636 return ""; 7637 } 7638 return ""; 7639} 7640_jsweb.scReport("", {}, function (sensors) { 7641 var source = getVisitSource(); 7642 if (source) {} 7643 sensors === null || sensors === void 0 || sensors.track("pageview", { 7644 referrer: source 7645 }); 7646}); 7647 7648},{"./pay":248,"core-js/modules/es.array.concat.js":181,"core-js/modules/es.array.filter.js":182,"core-js/modules/es.array.from.js":184,"core-js/modules/es.array.includes.js":185,"core-js/modules/es.array.iterator.js":186,"core-js/modules/es.array.push.js":189,"core-js/modules/es.array.slice.js":190,"core-js/modules/es.date.to-primitive.js":191,"core-js/modules/es.error.cause.js":192,"core-js/modules/es.function.name.js":193,"core-js/modules/es.json.to-string-tag.js":195,"core-js/modules/es.math.to-string-tag.js":196,"core-js/modules/es.number.constructor.js":197,"core-js/modules/es.object.get-own-property-descriptor.js":199,"core-js/modules/es.object.get-own-property-descriptors.js":200,"core-js/modules/es.object.get-prototype-of.js":202,"core-js/modules/es.object.keys.js":203,"core-js/modules/es.object.to-string.js":204,"core-js/modules/es.promise.js":208,"core-js/modules/es.regexp.exec.js":212,"core-js/modules/es.regexp.test.js":213,"core-js/modules/es.regexp.to-string.js":214,"core-js/modules/es.string.includes.js":216,"core-js/modules/es.string.iterator.js":217,"core-js/modules/es.string.search.js":219,"core-js/modules/es.symbol.async-iterator.js":221,"core-js/modules/es.symbol.description.js":223,"core-js/modules/es.symbol.iterator.js":225,"core-js/modules/es.symbol.js":226,"core-js/modules/es.symbol.to-primitive.js":228,"core-js/modules/es.symbol.to-string-tag.js":229,"core-js/modules/esnext.async-iterator.filter.js":230,"core-js/modules/esnext.async-iterator.for-each.js":232,"core-js/modules/esnext.iterator.constructor.js":234,"core-js/modules/esnext.iterator.filter.js":235,"core-js/modules/esnext.iterator.for-each.js":237,"core-js/modules/web.dom-collections.for-each.js":240,"core-js/modules/web.dom-collections.iterator.js":241,"core-js/modules/web.url-search-params.delete.js":243,"core-js/modules/web.url-search-params.has.js":244,"core-js/modules/web.url-search-params.js":245,"core-js/modules/web.url-search-params.size.js":246}],248:[function(require,module,exports){ 7649"use strict"; 7650 7651function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } 7652require("core-js/modules/es.symbol.js"); 7653require("core-js/modules/es.symbol.description.js"); 7654require("core-js/modules/es.symbol.async-iterator.js"); 7655require("core-js/modules/es.symbol.iterator.js"); 7656require("core-js/modules/es.symbol.to-string-tag.js"); 7657require("core-js/modules/es.error.cause.js"); 7658require("core-js/modules/es.array.iterator.js"); 7659require("core-js/modules/es.array.push.js"); 7660require("core-js/modules/es.array.slice.js"); 7661require("core-js/modules/es.function.name.js"); 7662require("core-js/modules/es.json.to-string-tag.js"); 7663require("core-js/modules/es.math.to-string-tag.js"); 7664require("core-js/modules/es.object.get-prototype-of.js"); 7665require("core-js/modules/es.string.iterator.js"); 7666require("core-js/modules/esnext.async-iterator.for-each.js"); 7667require("core-js/modules/esnext.iterator.for-each.js"); 7668require("core-js/modules/web.dom-collections.for-each.js"); 7669require("core-js/modules/web.dom-collections.iterator.js"); 7670Object.defineProperty(exports, "__esModule", { 7671 value: true 7672}); 7673exports.default = App;
vendor: 2,040 bytes, lines 7674-7692
7674require("core-js/modules/es.array.concat.js"); 7675require("core-js/modules/es.array.find.js"); 7676require("core-js/modules/es.array.join.js"); 7677require("core-js/modules/es.array.map.js"); 7678require("core-js/modules/es.number.to-fixed.js"); 7679require("core-js/modules/es.object.keys.js"); 7680require("core-js/modules/es.object.to-string.js"); 7681require("core-js/modules/es.promise.js"); 7682require("core-js/modules/es.regexp.exec.js"); 7683require("core-js/modules/es.regexp.test.js"); 7684require("core-js/modules/es.string.match.js"); 7685require("core-js/modules/es.string.trim.js"); 7686require("core-js/modules/esnext.async-iterator.find.js"); 7687require("core-js/modules/esnext.async-iterator.map.js"); 7688require("core-js/modules/esnext.iterator.constructor.js"); 7689require("core-js/modules/esnext.iterator.find.js"); 7690require("core-js/modules/esnext.iterator.map.js"); 7691require("core-js/modules/esnext.json.parse.js"); 7692function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap;
vendor: 5,439 bytes, line 7692
7692 var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEac
7692h(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } 7693function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } 7694function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } 7695function App() { 7696 return _App.apply(this, arguments); 7697} 7698function _App() { 7699 _App = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { 7700 var ele, swiperInstance, selectedProduct, order_number, user_id, timer, t, tt, ttt, productId, phoneReg, checkAct, countDownTimer, renderProduct, _renderProduct, order, _order, checkOrderStatus, getEndTime, shadow, message; 7701 return _regeneratorRuntime().wrap(function _callee5$(_context5) { 7702 while (1) switch (_context5.prev = _context5.next) { 7703 case 0: 7704 message = function _message(_ref3) { 7705 var _ref3$type = _ref3.type, 7706 type = _ref3$type === void 0 ? "error" : _ref3$type, 7707 msg = _ref3.msg, 7708 _ref3$duration = _ref3.duration, 7709 duration = _ref3$duration === void 0 ? 1500 : _ref3$duration; 7710 var tag = "message-".concat(type, "-").concat(Date.now()); 7711 var html = "\n\t\t\t<div class=\"message-box message-".concat(type, " ").concat(tag, "\">\n\t\t\t\t<span></span>\n\t\t\t\t<span>").concat(msg, "</span>\n\t\t\t</div>\n\t\t"); 7712 $("body").append(html); 7713 setTimeout(function () { 7714 $(".".concat(tag)).addClass("message-active"); 7715 }); 7716 setTimeout(function () { 7717 $(".".concat(tag)).removeClass("message-active"); 7718 }, duration); 7719 }; 7720 shadow = function _shadow(msg) { 7721 var shadowEle = ele.find(".qrcode-box .shadow").html(msg); 7722 if (msg) { 7723 shadowEle.show(); 7724 } else { 7725 shadowEle.hide(); 7726 } 7727 return shadowEle; 7728 }; 7729 getEndTime = function _getEndTime2(endDate, startTime) { 7730 var startTime = startTime || +new Date(); 7731 var endTime = new Date(endDate).getTime(); 7732 var t = endTime - startTime; 7733 var d = 0, 7734 h = 0, 7735 m = 0, 7736 s = 0, 7737 ms = 0; 7738 var data = {}; 7739 if (t >= 0) { 7740 d = Math.floor(t / 1000 / 3600 / 24); 7741 h = Math.floor(t / 1000 / 60 / 60 % 24); 7742 m = Math.floor(t / 1000 / 60 % 60); 7743 s = Math.floor(t / 1000 % 60); 7744 ms = t % 1000; 7745 } 7746 data = { 7747 str: d + "天" + h + "æ¶" + m + "å" + s + "ç§" + ms + "毫ç§", 7748 day: d, 7749 hour: h, 7750 min: m, 7751 sec: s, 7752 millisec: ms 7753 }; 7754 return data; 7755 }; 7756 checkOrderStatus = function _checkOrderStatus() { 7757 timer = setInterval(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { 7758 var res; 7759 return _regeneratorRuntime().wrap(function _callee2$(_context2) { 7760 while (1) switch (_context2.prev = _context2.next) { 7761 case 0: 7762 _context2.prev = 0; 7763 t++; 7764 if (!(t > ttt)) { 7765 _context2.next = 6; 7766 break; 7767 } 7768 shadow("\n <div>\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F</div>\n <a href=\"javascript:;\">\u70B9\u51FB\u5237\u65B0</a>\n ").find("a").click(function () { 7769 order(); 7770 }); 7771 clearInterval(timer); 7772 return _context2.abrupt("return"); 7773 case 6: 7774 _context2.next = 8; 7775 return _jsweb.reqPromise("".concat(API_ADMIN_URL, "/api/v1/order/success"), { 7776 method: "post", 7777 data: { 7778 order_number: order_number 7779 } 7780 }); 7781 case 8: 7782 res = _context2.sent; 7783 if (res.code === 200 && res.status === "已仿¬¾") { 7784 clearInterval(timer); 7785 $(".popup").remove(); 7786 $("body").append($(_.template(document.getElementById("popup-pay-succ").innerHTML)({})).fadeIn()); 7787 } 7788 _context2.next = 15; 7789 break; 7790 case 12: 7791 _context2.prev = 12; 7792 _context2.t0 = _context2["catch"](0); 7793 console.error(_context2.t0); 7794 case 15: 7795 case "end": 7796 return _context2.stop(); 7797 } 7798 }, _callee2, null, [[0, 12]]); 7799 })), tt); 7800 }; 7801 _order = function _order3() { 7802 _order = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { 7803 var qrcode, _selectedProduct2, id, product_name, product_price, res, payParams; 7804 return _regeneratorRuntime().wrap(function _callee4$(_context4) { 7805 while (1) switch (_context4.prev = _context4.next) { 7806 case 0: 7807 _context4.prev = 0; 7808 qrcode = ele.find(".qrcode-box .qrcode"); 7809 qrcode.html(""); 7810 clearInterval(timer); 7811 t = 0; 7812 ele.find(".qrcode-box .icon").hide(); 7813 shadow(); 7814 _selectedProduct2 = selectedProduct, id = _selectedProduct2.id, product_name = _selectedProduct2.product_name, product_price = _selectedProduct2.product_price; 7815 if (id) { 7816 _context4.next = 10; 7817 break; 7818 } 7819 return _context4.abrupt("return"); 7820 case 10: 7821 if (phoneReg.test(user_id)) { 7822 _context4.next = 13; 7823 break; 7824 } 7825 shadow("请å è¾å ¥ææºå·å¹¶ç¡®è®¤"); 7826 return _context4.abrupt("return"); 7827 case 13: 7828 if (ele.find(".agree-box a").hasClass("active")) { 7829 _context4.next = 16; 7830 break; 7831 } 7832 shadow("请å å¾éåè®®"); 7833 return _context4.abrupt("return"); 7834 case 16: 7835 _context4.next = 18; 7836 return _jsweb.reqPromise("".concat(API_ADMIN_URL, "/api/v2/order/create_order"), { 7837 method: "post", 7838 data: { 7839 order_channel: "å®ç½å å¼" 7840 } 7841 }); 7842 case 18: 7843 res = _context4.sent; 7844 if (!(res.code !== 200)) { 7845 _context4.next = 22; 7846 break; 7847 } 7848 message({ 7849 msg: res.info 7850 }); 7851 return _context4.abrupt("return"); 7852 case 22: 7853 order_number = res.order; 7854 payParams = { 7855 pp: product_price, 7856 pn: product_name, 7857 pid: id, 7858 uid: user_id, 7859 up: 0, 7860 cid: 0, 7861 oc: "å®ç½å å¼", 7862 on: order_number 7863 }; 7864 ele.find(".qrcode-box .icon").show(); 7865 qrcode.qrcode({ 7866 width: 152, 7867 height: 152, 7868 render: "canvas", 7869 //è®¾ç½®æ¸²ææ¹å¼ table canvas 7870 typeNumber: -1, 7871 //è®¡ç®æ¨¡å¼ 7872 correctLevel: 0, 7873 //çº éç级 7874 background: "#ffffff", 7875 //èæ¯é¢è² 7876 foreground: "#000000", 7877 //忝é¢è² 7878 text: "".concat(HTML_URL, "/pay/cashier/?").concat(Object.keys(payParams).map(function (ele) { 7879 return "".concat(ele, "=").concat(payParams[ele]); 7880 }).join("&")) 7881 }); 7882 checkOrderStatus();
7883 _context4.next = 32; 7884 break; 7885 case 29: 7886 _context4.prev = 29; 7887 _context4.t0 = _context4["catch"](0); 7888 console.error(_context4.t0); 7889 case 32: 7890 case "end": 7891 return _context4.stop(); 7892 } 7893 }, _callee4, null, [[0, 29]]); 7894 })); 7895 return _order.apply(this, arguments); 7896 }; 7897 order = function _order2() { 7898 return _order.apply(this, arguments); 7899 }; 7900 _renderProduct = function _renderProduct3() { 7901 _renderProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(client_type) { 7902 var _res$data, _swiperInstance, _swiperInstance$destr, res, list, html, index, _list$index, product_name, product_price, duration_pc, origin_price, expired_time_hours; 7903 return _regeneratorRuntime().wrap(function _callee3$(_context3) { 7904 while (1) switch (_context3.prev = _context3.next) { 7905 case 0: 7906 _context3.prev = 0; 7907 _context3.next = 3; 7908 return _jsweb.reqPromise("".concat(API_PRODUCT_URL, "/api/v1/product/product_list"), { 7909 method: "post", 7910 data: { 7911 client_type: client_type 7912 } 7913 }); 7914 case 3: 7915 res = _context3.sent; 7916 if (!(res.code !== 200)) { 7917 _context3.next = 6; 7918 break; 7919 } 7920 throw "è·å产åå表é误"; 7921 case 6: 7922 list = ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || []; 7923 html = ""; 7924 for (index = 0; index < list.length; index++) { 7925 _list$index = list[index], product_name = _list$index.product_name, product_price = _list$index.product_price, duration_pc = _list$index.duration_pc, origin_price = _list$index.origin_price, expired_time_hours = _list$index.expired_time_hours; 7926 html += "<div class=\"swiper-slide swiper-slide-".concat(index + 1, "\">\n\t\t\t\t\t\t\t<div class=\"product\">\n\t\t\t\t\t\t\t\t<span style=\"background-image: url(https://ak-gw.akspeedy.com/index/pay/item-pname-tag-bg").concat(ele.find(".nav .active").index() + 1, ".png\"></span>\n\t\t\t\t\t\t\t\t").concat(product_name.match(/\d+/)[0], "\u5C0F\u65F6\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"pre-hour ").concat(expired_time_hours ? "ex_time" : "", "\">\n\t\t\t\t\t\t\t\t<span>").concat((product_price / duration_pc).toFixed(3), "</span>\n\t\t\t\t\t\t\t\t\u5143/\u5C0F\u65F6\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t").concat(expired_time_hours ? "<div class=\"expire-time\">\n \u6709\u6548\u671F".concat(expired_time_hours >= 8760 ? "".concat(expired_time_hours / 24 / 365, "\u5E74") : "".concat(expired_time_hours / 24, "\u5929"), "\n \t</div>") : "", "\n\t\t\t\t\t\t\t<div class=\"price\">").concat(product_price, "\u5143<span>\uFFE5").concat(origin_price, "</span></div>\n </div>"); 7927 } 7928 (_swiperInstance = swiperInstance) === null || _swiperInstance === void 0 || (_swiperInstance$destr = _swiperInstance.destroy) === null || _swiperInstance$destr === void 0 || _swiperInstance$destr.call(_swiperInstance); 7929 ele.find(".swiper-pay .swiper-wrapper").html(html); 7930 swiperInstance = new Swiper(".swiper-pay", { 7931 slidesPerView: 3, 7932 spaceBetween: 24, 7933 navigation: { 7934 nextEl: ".swiper-pay-next", 7935 prevEl: ".swiper-pay-prev" 7936 } 7937 }); 7938 ele.find(".swiper-pay .swiper-slide").click(function () { 7939 $(this).addClass("active").siblings().removeClass("active"); 7940 selectedProduct = list[$(this).index()] || {}; 7941 var _selectedProduct = selectedProduct, 7942 product_price = _selectedProduct.product_price; 7943 ele.find(".pay-price span").html(product_price.toFixed(2)); 7944 order(); 7945 }); 7946 ele.find(".swiper-pay .swiper-slide").eq(1).click(); 7947 _context3.next = 19; 7948 break; 7949 case 16: 7950 _context3.prev = 16; 7951 _context3.t0 = _context3["catch"](0); 7952 message({ 7953 msg: _context3.t0 7954 }); 7955 case 19: 7956 case "end": 7957 return _context3.stop(); 7958 } 7959 }, _callee3, null, [[0, 16]]); 7960 })); 7961 return _renderProduct.apply(this, arguments); 7962 }; 7963 renderProduct = function _renderProduct2(_x) { 7964 return _renderProduct.apply(this, arguments); 7965 }; 7966 ele = null; 7967 swiperInstance = null; 7968 selectedProduct = {}; 7969 order_number = null; 7970 user_id = ""; 7971 timer = null; 7972 t = 0; //æ§è¡æ¬¡æ° 7973 tt = 1000; //æ§è¡é´é 7974 ttt = 50; //æ»æ¬¡æ° 7975 productId = [10, 82]; 7976 phoneReg = /^1[3,4,5,6,7,8,9]\d{9}$/; 7977 checkAct = /*#__PURE__*/function () { 7978 var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { 7979 var _yield$_jsweb$reqProm, data; 7980 return _regeneratorRuntime().wrap(function _callee$(_context) { 7981 while (1) switch (_context.prev = _context.next) { 7982 case 0: 7983 _context.next = 2; 7984 return _jsweb.reqPromise("".concat(WEAL_API_URL, "/api/v1/activity/client"), { 7985 method: "get" 7986 }); 7987 case 2: 7988 _yield$_jsweb$reqProm = _context.sent; 7989 data = _yield$_jsweb$reqProm.data; 7990 if (data.id) { 7991 _context.next = 6; 7992 break; 7993 } 7994 return _context.abrupt("return"); 7995 case 6: 7996 try { 7997 productId = JSON.parse(data.extra).map(function (item) { 7998 return item.id; 7999 }); 8000 } catch (err) { 8001 console.log(err); 8002 } 8003 case 7: 8004 case "end": 8005 return _context.stop(); 8006 } 8007 }, _callee); 8008 })); 8009 return function checkAct() { 8010 return _ref.apply(this, arguments); 8011 }; 8012 }(); 8013 _context5.next = 22; 8014 return checkAct(); 8015 case 22: 8016 $("body").append($(_.template(document.getElementById("popup-pay").innerHTML)({})).fadeIn()); 8017 ele = $(".popup-pay"); 8018 countDownTimer = setInterval(function () { 8019 var _getEndTime = getEndTime("".concat(_jsweb.dateFormate("yyyy-MM-dd"), " 23:59:59")), 8020 hour = _getEndTime.hour, 8021 min = _getEndTime.min, 8022 sec = _getEndTime.sec, 8023 millisec = _getEndTime.millisec;
8024 ele.find(".top .count-down").html("\u8DDD\u79BB\u4ECA\u65E5\u7ED3\u675F\uFF1A".concat(hour < 10 ? "0".concat(hour) : hour, ":").concat(min < 10 ? "0".concat(min) : min, ":").concat(sec < 10 ? "0".concat(sec) : sec, ".").concat(millisec < 10 ? "00".concat(millisec) : millisec < 100 ? "0".concat(millisec) : millisec)); 8025 }, 30); 8026 ele.find(".popup-close-btn").click(function () { 8027 clearInterval(timer); 8028 clearInterval(countDownTimer); 8029 }); 8030 ele.find(".nav .item").click(function () { 8031 $(this).addClass("active").siblings().removeClass("active"); 8032 renderProduct($(this).index() === 0 ? productId[0] : productId[1]); 8033 }); 8034 ele.find(".phone input").on("input propertychange", function () { 8035 if (phoneReg.test($(this).val())) { 8036 ele.find(".phone a").removeClass("disabled"); 8037 } else { 8038 ele.find(".phone a").addClass("disabled"); 8039 } 8040 }); 8041 ele.find(".phone a").click(function () { 8042 if ($(this).hasClass("disabled")) { 8043 return; 8044 } 8045 if ($(this).hasClass("modify")) { 8046 user_id = ""; 8047 $(".phone input").attr("disabled", false).val(""); 8048 $(this).html("确认").removeClass("modify").addClass("disabled"); 8049 } else { 8050 user_id = ele.find(".phone input").val().trim(); 8051 $(".phone input").attr("disabled", true); 8052 $(this).html("ä¿®æ¹").addClass("modify"); 8053 } 8054 order(); 8055 }); 8056 ele.find(".agree-box a").click(function () { 8057 $(this).toggleClass("active"); 8058 order(); 8059 }); 8060 8061 //é»è®¤ 8062 ele.find(".nav .item").eq(0).click(); 8063 case 31: 8064 case "end": 8065 return _context5.stop(); 8066 } 8067 }, _callee5); 8068 })); 8069 return _App.apply(this, arguments); 8070} 8071 8072},{"core-js/modules/es.array.concat.js":181,"core-js/modules/es.array.find.js":183,"core-js/modules/es.array.iterator.js":186,"core-js/modules/es.array.join.js":187,"core-js/modules/es.array.map.js":188,"core-js/modules/es.array.push.js":189,"core-js/modules/es.array.slice.js":190,"core-js/modules/es.error.cause.js":192,"core-js/modules/es.function.name.js":193,"core-js/modules/es.json.to-string-tag.js":195,"core-js/modules/es.math.to-string-tag.js":196,"core-js/modules/es.number.to-fixed.js":198,"core-js/modules/es.object.get-prototype-of.js":202,"core-js/modules/es.object.keys.js":203,"core-js/modules/es.object.to-string.js":204,"core-js/modules/es.promise.js":208,"core-js/modules/es.regexp.exec.js":212,"core-js/modules/es.regexp.test.js":213,"core-js/modules/es.string.iterator.js":217,"core-js/modules/es.string.match.js":218,"core-js/modules/es.string.trim.js":220,"core-js/modules/es.symbol.async-iterator.js":221,"core-js/modules/es.symbol.description.js":223,"core-js/modules/es.symbol.iterator.js":225,"core-js/modules/es.symbol.js":226,"core-js/modules/es.symbol.to-string-tag.js":229,"core-js/modules/esnext.async-iterator.find.js":231,"core-js/modules/esnext.async-iterator.for-each.js":232,"core-js/modules/esnext.async-iterator.map.js":233,"core-js/modules/esnext.iterator.constructor.js":234,"core-js/modules/esnext.iterator.find.js":236,"core-js/modules/esnext.iterator.for-each.js":237,"core-js/modules/esnext.iterator.map.js":238,"core-js/modules/esnext.json.parse.js":239,"core-js/modules/web.dom-collections.for-each.js":240,"core-js/modules/web.dom-collections.iterator.js":241}]},{},[247]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.