Best JavaScript code snippet using chai
jspdf.plugin.autotable.umd.js
Source:jspdf.plugin.autotable.umd.js
...209 }();210 function interopDefault(ex) {211 return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;212 }213 function createCommonjsModule(fn, module) {214 return module = { exports: {} }, fn(module, module.exports), module.exports;215 }216 var _global = createCommonjsModule(function (module) {217 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028218 var global = module.exports = typeof window != 'undefined' && window.Math == Math219 ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();220 if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef221 });222 var _global$1 = interopDefault(_global);223 var require$$0 = Object.freeze({224 default: _global$1225 });226 var _has = createCommonjsModule(function (module) {227 var hasOwnProperty = {}.hasOwnProperty;228 module.exports = function(it, key){229 return hasOwnProperty.call(it, key);230 };231 });232 var _has$1 = interopDefault(_has);233 var require$$2 = Object.freeze({234 default: _has$1235 });236 var _fails = createCommonjsModule(function (module) {237 module.exports = function(exec){238 try {239 return !!exec();240 } catch(e){241 return true;242 }243 };244 });245 var _fails$1 = interopDefault(_fails);246 var require$$0$2 = Object.freeze({247 default: _fails$1248 });249 var _descriptors = createCommonjsModule(function (module) {250 // Thank's IE8 for his funny defineProperty251 module.exports = !interopDefault(require$$0$2)(function(){252 return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;253 });254 });255 var _descriptors$1 = interopDefault(_descriptors);256 var require$$0$1 = Object.freeze({257 default: _descriptors$1258 });259 var _core = createCommonjsModule(function (module) {260 var core = module.exports = {version: '2.4.0'};261 if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef262 });263 var _core$1 = interopDefault(_core);264 var version = _core.version;265var require$$0$3 = Object.freeze({266 default: _core$1,267 version: version268 });269 var _isObject = createCommonjsModule(function (module) {270 module.exports = function(it){271 return typeof it === 'object' ? it !== null : typeof it === 'function';272 };273 });274 var _isObject$1 = interopDefault(_isObject);275 var require$$3$1 = Object.freeze({276 default: _isObject$1277 });278 var _anObject = createCommonjsModule(function (module) {279 var isObject = interopDefault(require$$3$1);280 module.exports = function(it){281 if(!isObject(it))throw TypeError(it + ' is not an object!');282 return it;283 };284 });285 var _anObject$1 = interopDefault(_anObject);286 var require$$2$1 = Object.freeze({287 default: _anObject$1288 });289 var _domCreate = createCommonjsModule(function (module) {290 var isObject = interopDefault(require$$3$1)291 , document = interopDefault(require$$0).document292 // in old IE typeof document.createElement is 'object'293 , is = isObject(document) && isObject(document.createElement);294 module.exports = function(it){295 return is ? document.createElement(it) : {};296 };297 });298 var _domCreate$1 = interopDefault(_domCreate);299 var require$$1$3 = Object.freeze({300 default: _domCreate$1301 });302 var _ie8DomDefine = createCommonjsModule(function (module) {303 module.exports = !interopDefault(require$$0$1) && !interopDefault(require$$0$2)(function(){304 return Object.defineProperty(interopDefault(require$$1$3)('div'), 'a', {get: function(){ return 7; }}).a != 7;305 });306 });307 var _ie8DomDefine$1 = interopDefault(_ie8DomDefine);308 var require$$1$2 = Object.freeze({309 default: _ie8DomDefine$1310 });311 var _toPrimitive = createCommonjsModule(function (module) {312 // 7.1.1 ToPrimitive(input [, PreferredType])313 var isObject = interopDefault(require$$3$1);314 // instead of the ES6 spec version, we didn't implement @@toPrimitive case315 // and the second argument - flag - preferred type is a string316 module.exports = function(it, S){317 if(!isObject(it))return it;318 var fn, val;319 if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;320 if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;321 if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;322 throw TypeError("Can't convert object to primitive value");323 };324 });325 var _toPrimitive$1 = interopDefault(_toPrimitive);326 var require$$3$2 = Object.freeze({327 default: _toPrimitive$1328 });329 var _objectDp = createCommonjsModule(function (module, exports) {330 var anObject = interopDefault(require$$2$1)331 , IE8_DOM_DEFINE = interopDefault(require$$1$2)332 , toPrimitive = interopDefault(require$$3$2)333 , dP = Object.defineProperty;334 exports.f = interopDefault(require$$0$1) ? Object.defineProperty : function defineProperty(O, P, Attributes){335 anObject(O);336 P = toPrimitive(P, true);337 anObject(Attributes);338 if(IE8_DOM_DEFINE)try {339 return dP(O, P, Attributes);340 } catch(e){ /* empty */ }341 if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');342 if('value' in Attributes)O[P] = Attributes.value;343 return O;344 };345 });346 var _objectDp$1 = interopDefault(_objectDp);347 var f = _objectDp.f;348var require$$3 = Object.freeze({349 default: _objectDp$1,350 f: f351 });352 var _propertyDesc = createCommonjsModule(function (module) {353 module.exports = function(bitmap, value){354 return {355 enumerable : !(bitmap & 1),356 configurable: !(bitmap & 2),357 writable : !(bitmap & 4),358 value : value359 };360 };361 });362 var _propertyDesc$1 = interopDefault(_propertyDesc);363 var require$$3$3 = Object.freeze({364 default: _propertyDesc$1365 });366 var _hide = createCommonjsModule(function (module) {367 var dP = interopDefault(require$$3)368 , createDesc = interopDefault(require$$3$3);369 module.exports = interopDefault(require$$0$1) ? function(object, key, value){370 return dP.f(object, key, createDesc(1, value));371 } : function(object, key, value){372 object[key] = value;373 return object;374 };375 });376 var _hide$1 = interopDefault(_hide);377 var require$$1$1 = Object.freeze({378 default: _hide$1379 });380 var _uid = createCommonjsModule(function (module) {381 var id = 0382 , px = Math.random();383 module.exports = function(key){384 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));385 };386 });387 var _uid$1 = interopDefault(_uid);388 var require$$0$4 = Object.freeze({389 default: _uid$1390 });391 var _redefine = createCommonjsModule(function (module) {392 var global = interopDefault(require$$0)393 , hide = interopDefault(require$$1$1)394 , has = interopDefault(require$$2)395 , SRC = interopDefault(require$$0$4)('src')396 , TO_STRING = 'toString'397 , $toString = Function[TO_STRING]398 , TPL = ('' + $toString).split(TO_STRING);399 interopDefault(require$$0$3).inspectSource = function(it){400 return $toString.call(it);401 };402 (module.exports = function(O, key, val, safe){403 var isFunction = typeof val == 'function';404 if(isFunction)has(val, 'name') || hide(val, 'name', key);405 if(O[key] === val)return;406 if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));407 if(O === global){408 O[key] = val;409 } else {410 if(!safe){411 delete O[key];412 hide(O, key, val);413 } else {414 if(O[key])O[key] = val;415 else hide(O, key, val);416 }417 }418 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative419 })(Function.prototype, TO_STRING, function toString(){420 return typeof this == 'function' && this[SRC] || $toString.call(this);421 });422 });423 var _redefine$1 = interopDefault(_redefine);424 var require$$7 = Object.freeze({425 default: _redefine$1426 });427 var _aFunction = createCommonjsModule(function (module) {428 module.exports = function(it){429 if(typeof it != 'function')throw TypeError(it + ' is not a function!');430 return it;431 };432 });433 var _aFunction$1 = interopDefault(_aFunction);434 var require$$0$6 = Object.freeze({435 default: _aFunction$1436 });437 var _ctx = createCommonjsModule(function (module) {438 // optional / simple context binding439 var aFunction = interopDefault(require$$0$6);440 module.exports = function(fn, that, length){441 aFunction(fn);442 if(that === undefined)return fn;443 switch(length){444 case 1: return function(a){445 return fn.call(that, a);446 };447 case 2: return function(a, b){448 return fn.call(that, a, b);449 };450 case 3: return function(a, b, c){451 return fn.call(that, a, b, c);452 };453 }454 return function(/* ...args */){455 return fn.apply(that, arguments);456 };457 };458 });459 var _ctx$1 = interopDefault(_ctx);460 var require$$0$5 = Object.freeze({461 default: _ctx$1462 });463 var _export = createCommonjsModule(function (module) {464 var global = interopDefault(require$$0)465 , core = interopDefault(require$$0$3)466 , hide = interopDefault(require$$1$1)467 , redefine = interopDefault(require$$7)468 , ctx = interopDefault(require$$0$5)469 , PROTOTYPE = 'prototype';470 var $export = function(type, name, source){471 var IS_FORCED = type & $export.F472 , IS_GLOBAL = type & $export.G473 , IS_STATIC = type & $export.S474 , IS_PROTO = type & $export.P475 , IS_BIND = type & $export.B476 , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]477 , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})478 , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})479 , key, own, out, exp;480 if(IS_GLOBAL)source = name;481 for(key in source){482 // contains in native483 own = !IS_FORCED && target && target[key] !== undefined;484 // export native or passed485 out = (own ? target : source)[key];486 // bind timers to global for call from export context487 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;488 // extend global489 if(target)redefine(target, key, out, type & $export.U);490 // export491 if(exports[key] != out)hide(exports, key, exp);492 if(IS_PROTO && expProto[key] != out)expProto[key] = out;493 }494 };495 global.core = core;496 // type bitmap497 $export.F = 1; // forced498 $export.G = 2; // global499 $export.S = 4; // static500 $export.P = 8; // proto501 $export.B = 16; // bind502 $export.W = 32; // wrap503 $export.U = 64; // safe504 $export.R = 128; // real proto method for `library` 505 module.exports = $export;506 });507 var _export$1 = interopDefault(_export);508 var require$$1 = Object.freeze({509 default: _export$1510 });511 var _meta = createCommonjsModule(function (module) {512 var META = interopDefault(require$$0$4)('meta')513 , isObject = interopDefault(require$$3$1)514 , has = interopDefault(require$$2)515 , setDesc = interopDefault(require$$3).f516 , id = 0;517 var isExtensible = Object.isExtensible || function(){518 return true;519 };520 var FREEZE = !interopDefault(require$$0$2)(function(){521 return isExtensible(Object.preventExtensions({}));522 });523 var setMeta = function(it){524 setDesc(it, META, {value: {525 i: 'O' + ++id, // object ID526 w: {} // weak collections IDs527 }});528 };529 var fastKey = function(it, create){530 // return primitive with prefix531 if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;532 if(!has(it, META)){533 // can't set metadata to uncaught frozen object534 if(!isExtensible(it))return 'F';535 // not necessary to add metadata536 if(!create)return 'E';537 // add missing metadata538 setMeta(it);539 // return object ID540 } return it[META].i;541 };542 var getWeak = function(it, create){543 if(!has(it, META)){544 // can't set metadata to uncaught frozen object545 if(!isExtensible(it))return true;546 // not necessary to add metadata547 if(!create)return false;548 // add missing metadata549 setMeta(it);550 // return hash weak collections IDs551 } return it[META].w;552 };553 // add metadata on freeze-family methods calling554 var onFreeze = function(it){555 if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);556 return it;557 };558 var meta = module.exports = {559 KEY: META,560 NEED: false,561 fastKey: fastKey,562 getWeak: getWeak,563 onFreeze: onFreeze564 };565 });566 var _meta$1 = interopDefault(_meta);567 var KEY = _meta.KEY;568 var NEED = _meta.NEED;569 var fastKey = _meta.fastKey;570 var getWeak = _meta.getWeak;571 var onFreeze = _meta.onFreeze;572var require$$24 = Object.freeze({573 default: _meta$1,574 KEY: KEY,575 NEED: NEED,576 fastKey: fastKey,577 getWeak: getWeak,578 onFreeze: onFreeze579 });580 var _shared = createCommonjsModule(function (module) {581 var global = interopDefault(require$$0)582 , SHARED = '__core-js_shared__'583 , store = global[SHARED] || (global[SHARED] = {});584 module.exports = function(key){585 return store[key] || (store[key] = {});586 };587 });588 var _shared$1 = interopDefault(_shared);589 var require$$1$4 = Object.freeze({590 default: _shared$1591 });592 var _wks = createCommonjsModule(function (module) {593 var store = interopDefault(require$$1$4)('wks')594 , uid = interopDefault(require$$0$4)595 , Symbol = interopDefault(require$$0).Symbol596 , USE_SYMBOL = typeof Symbol == 'function';597 var $exports = module.exports = function(name){598 return store[name] || (store[name] =599 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));600 };601 $exports.store = store;602 });603 var _wks$1 = interopDefault(_wks);604 var require$$0$7 = Object.freeze({605 default: _wks$1606 });607 var _setToStringTag = createCommonjsModule(function (module) {608 var def = interopDefault(require$$3).f609 , has = interopDefault(require$$2)610 , TAG = interopDefault(require$$0$7)('toStringTag');611 module.exports = function(it, tag, stat){612 if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});613 };614 });615 var _setToStringTag$1 = interopDefault(_setToStringTag);616 var require$$2$2 = Object.freeze({617 default: _setToStringTag$1618 });619 var _wksExt = createCommonjsModule(function (module, exports) {620 exports.f = interopDefault(require$$0$7);621 });622 var _wksExt$1 = interopDefault(_wksExt);623 var f$1 = _wksExt.f;624var require$$1$5 = Object.freeze({625 default: _wksExt$1,626 f: f$1627 });628 var _library = createCommonjsModule(function (module) {629 module.exports = false;630 });631 var _library$1 = interopDefault(_library);632 var require$$9 = Object.freeze({633 default: _library$1634 });635 var _wksDefine = createCommonjsModule(function (module) {636 var global = interopDefault(require$$0)637 , core = interopDefault(require$$0$3)638 , LIBRARY = interopDefault(require$$9)639 , wksExt = interopDefault(require$$1$5)640 , defineProperty = interopDefault(require$$3).f;641 module.exports = function(name){642 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});643 if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});644 };645 });646 var _wksDefine$1 = interopDefault(_wksDefine);647 var require$$17 = Object.freeze({648 default: _wksDefine$1649 });650 var _cof = createCommonjsModule(function (module) {651 var toString = {}.toString;652 module.exports = function(it){653 return toString.call(it).slice(8, -1);654 };655 });656 var _cof$1 = interopDefault(_cof);657 var require$$1$9 = Object.freeze({658 default: _cof$1659 });660 var _iobject = createCommonjsModule(function (module) {661 // fallback for non-array-like ES3 and non-enumerable old V8 strings662 var cof = interopDefault(require$$1$9);663 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){664 return cof(it) == 'String' ? it.split('') : Object(it);665 };666 });667 var _iobject$1 = interopDefault(_iobject);668 var require$$1$8 = Object.freeze({669 default: _iobject$1670 });671 var _defined = createCommonjsModule(function (module) {672 // 7.2.1 RequireObjectCoercible(argument)673 module.exports = function(it){674 if(it == undefined)throw TypeError("Can't call method on " + it);675 return it;676 };677 });678 var _defined$1 = interopDefault(_defined);679 var require$$0$8 = Object.freeze({680 default: _defined$1681 });682 var _toIobject = createCommonjsModule(function (module) {683 // to indexed object, toObject with fallback for non-array-like ES3 strings684 var IObject = interopDefault(require$$1$8)685 , defined = interopDefault(require$$0$8);686 module.exports = function(it){687 return IObject(defined(it));688 };689 });690 var _toIobject$1 = interopDefault(_toIobject);691 var require$$1$7 = Object.freeze({692 default: _toIobject$1693 });694 var _toInteger = createCommonjsModule(function (module) {695 // 7.1.4 ToInteger696 var ceil = Math.ceil697 , floor = Math.floor;698 module.exports = function(it){699 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);700 };701 });702 var _toInteger$1 = interopDefault(_toInteger);703 var require$$0$9 = Object.freeze({704 default: _toInteger$1705 });706 var _toLength = createCommonjsModule(function (module) {707 // 7.1.15 ToLength708 var toInteger = interopDefault(require$$0$9)709 , min = Math.min;710 module.exports = function(it){711 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991712 };713 });714 var _toLength$1 = interopDefault(_toLength);715 var require$$1$11 = Object.freeze({716 default: _toLength$1717 });718 var _toIndex = createCommonjsModule(function (module) {719 var toInteger = interopDefault(require$$0$9)720 , max = Math.max721 , min = Math.min;722 module.exports = function(index, length){723 index = toInteger(index);724 return index < 0 ? max(index + length, 0) : min(index, length);725 };726 });727 var _toIndex$1 = interopDefault(_toIndex);728 var require$$0$10 = Object.freeze({729 default: _toIndex$1730 });731 var _arrayIncludes = createCommonjsModule(function (module) {732 // false -> Array#indexOf733 // true -> Array#includes734 var toIObject = interopDefault(require$$1$7)735 , toLength = interopDefault(require$$1$11)736 , toIndex = interopDefault(require$$0$10);737 module.exports = function(IS_INCLUDES){738 return function($this, el, fromIndex){739 var O = toIObject($this)740 , length = toLength(O.length)741 , index = toIndex(fromIndex, length)742 , value;743 // Array#includes uses SameValueZero equality algorithm744 if(IS_INCLUDES && el != el)while(length > index){745 value = O[index++];746 if(value != value)return true;747 // Array#toIndex ignores holes, Array#includes - not748 } else for(;length > index; index++)if(IS_INCLUDES || index in O){749 if(O[index] === el)return IS_INCLUDES || index || 0;750 } return !IS_INCLUDES && -1;751 };752 };753 });754 var _arrayIncludes$1 = interopDefault(_arrayIncludes);755 var require$$1$10 = Object.freeze({756 default: _arrayIncludes$1757 });758 var _sharedKey = createCommonjsModule(function (module) {759 var shared = interopDefault(require$$1$4)('keys')760 , uid = interopDefault(require$$0$4);761 module.exports = function(key){762 return shared[key] || (shared[key] = uid(key));763 };764 });765 var _sharedKey$1 = interopDefault(_sharedKey);766 var require$$0$11 = Object.freeze({767 default: _sharedKey$1768 });769 var _objectKeysInternal = createCommonjsModule(function (module) {770 var has = interopDefault(require$$2)771 , toIObject = interopDefault(require$$1$7)772 , arrayIndexOf = interopDefault(require$$1$10)(false)773 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO');774 module.exports = function(object, names){775 var O = toIObject(object)776 , i = 0777 , result = []778 , key;779 for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);780 // Don't enum bug & hidden keys781 while(names.length > i)if(has(O, key = names[i++])){782 ~arrayIndexOf(result, key) || result.push(key);783 }784 return result;785 };786 });787 var _objectKeysInternal$1 = interopDefault(_objectKeysInternal);788 var require$$1$6 = Object.freeze({789 default: _objectKeysInternal$1790 });791 var _enumBugKeys = createCommonjsModule(function (module) {792 // IE 8- don't enum bug keys793 module.exports = (794 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'795 ).split(',');796 });797 var _enumBugKeys$1 = interopDefault(_enumBugKeys);798 var require$$0$12 = Object.freeze({799 default: _enumBugKeys$1800 });801 var _objectKeys = createCommonjsModule(function (module) {802 // 19.1.2.14 / 15.2.3.14 Object.keys(O)803 var $keys = interopDefault(require$$1$6)804 , enumBugKeys = interopDefault(require$$0$12);805 module.exports = Object.keys || function keys(O){806 return $keys(O, enumBugKeys);807 };808 });809 var _objectKeys$1 = interopDefault(_objectKeys);810 var require$$2$3 = Object.freeze({811 default: _objectKeys$1812 });813 var _keyof = createCommonjsModule(function (module) {814 var getKeys = interopDefault(require$$2$3)815 , toIObject = interopDefault(require$$1$7);816 module.exports = function(object, el){817 var O = toIObject(object)818 , keys = getKeys(O)819 , length = keys.length820 , index = 0821 , key;822 while(length > index)if(O[key = keys[index++]] === el)return key;823 };824 });825 var _keyof$1 = interopDefault(_keyof);826 var require$$16 = Object.freeze({827 default: _keyof$1828 });829 var _objectGops = createCommonjsModule(function (module, exports) {830 exports.f = Object.getOwnPropertySymbols;831 });832 var _objectGops$1 = interopDefault(_objectGops);833 var f$2 = _objectGops.f;834var require$$4 = Object.freeze({835 default: _objectGops$1,836 f: f$2837 });838 var _objectPie = createCommonjsModule(function (module, exports) {839 exports.f = {}.propertyIsEnumerable;840 });841 var _objectPie$1 = interopDefault(_objectPie);842 var f$3 = _objectPie.f;843var require$$0$13 = Object.freeze({844 default: _objectPie$1,845 f: f$3846 });847 var _enumKeys = createCommonjsModule(function (module) {848 // all enumerable object keys, includes symbols849 var getKeys = interopDefault(require$$2$3)850 , gOPS = interopDefault(require$$4)851 , pIE = interopDefault(require$$0$13);852 module.exports = function(it){853 var result = getKeys(it)854 , getSymbols = gOPS.f;855 if(getSymbols){856 var symbols = getSymbols(it)857 , isEnum = pIE.f858 , i = 0859 , key;860 while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);861 } return result;862 };863 });864 var _enumKeys$1 = interopDefault(_enumKeys);865 var require$$15 = Object.freeze({866 default: _enumKeys$1867 });868 var _isArray = createCommonjsModule(function (module) {869 // 7.2.2 IsArray(argument)870 var cof = interopDefault(require$$1$9);871 module.exports = Array.isArray || function isArray(arg){872 return cof(arg) == 'Array';873 };874 });875 var _isArray$1 = interopDefault(_isArray);876 var require$$0$14 = Object.freeze({877 default: _isArray$1878 });879 var _objectDps = createCommonjsModule(function (module) {880 var dP = interopDefault(require$$3)881 , anObject = interopDefault(require$$2$1)882 , getKeys = interopDefault(require$$2$3);883 module.exports = interopDefault(require$$0$1) ? Object.defineProperties : function defineProperties(O, Properties){884 anObject(O);885 var keys = getKeys(Properties)886 , length = keys.length887 , i = 0888 , P;889 while(length > i)dP.f(O, P = keys[i++], Properties[P]);890 return O;891 };892 });893 var _objectDps$1 = interopDefault(_objectDps);894 var require$$4$2 = Object.freeze({895 default: _objectDps$1896 });897 var _html = createCommonjsModule(function (module) {898 module.exports = interopDefault(require$$0).document && document.documentElement;899 });900 var _html$1 = interopDefault(_html);901 var require$$0$15 = Object.freeze({902 default: _html$1903 });904 var _objectCreate = createCommonjsModule(function (module) {905 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])906 var anObject = interopDefault(require$$2$1)907 , dPs = interopDefault(require$$4$2)908 , enumBugKeys = interopDefault(require$$0$12)909 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO')910 , Empty = function(){ /* empty */ }911 , PROTOTYPE = 'prototype';912 // Create object with fake `null` prototype: use iframe Object with cleared prototype913 var createDict = function(){914 // Thrash, waste and sodomy: IE GC bug915 var iframe = interopDefault(require$$1$3)('iframe')916 , i = enumBugKeys.length917 , lt = '<'918 , gt = '>'919 , iframeDocument;920 iframe.style.display = 'none';921 interopDefault(require$$0$15).appendChild(iframe);922 iframe.src = 'javascript:'; // eslint-disable-line no-script-url923 // createDict = iframe.contentWindow.Object;924 // html.removeChild(iframe);925 iframeDocument = iframe.contentWindow.document;926 iframeDocument.open();927 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);928 iframeDocument.close();929 createDict = iframeDocument.F;930 while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];931 return createDict();932 };933 module.exports = Object.create || function create(O, Properties){934 var result;935 if(O !== null){936 Empty[PROTOTYPE] = anObject(O);937 result = new Empty;938 Empty[PROTOTYPE] = null;939 // add "__proto__" for Object.getPrototypeOf polyfill940 result[IE_PROTO] = O;941 } else result = createDict();942 return Properties === undefined ? result : dPs(result, Properties);943 };944 });945 var _objectCreate$1 = interopDefault(_objectCreate);946 var require$$4$1 = Object.freeze({947 default: _objectCreate$1948 });949 var _objectGopn = createCommonjsModule(function (module, exports) {950 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)951 var $keys = interopDefault(require$$1$6)952 , hiddenKeys = interopDefault(require$$0$12).concat('length', 'prototype');953 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){954 return $keys(O, hiddenKeys);955 };956 });957 var _objectGopn$1 = interopDefault(_objectGopn);958 var f$5 = _objectGopn.f;959var require$$0$16 = Object.freeze({960 default: _objectGopn$1,961 f: f$5962 });963 var _objectGopnExt = createCommonjsModule(function (module) {964 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window965 var toIObject = interopDefault(require$$1$7)966 , gOPN = interopDefault(require$$0$16).f967 , toString = {}.toString;968 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames969 ? Object.getOwnPropertyNames(window) : [];970 var getWindowNames = function(it){971 try {972 return gOPN(it);973 } catch(e){974 return windowNames.slice();975 }976 };977 module.exports.f = function getOwnPropertyNames(it){978 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));979 };980 });981 var _objectGopnExt$1 = interopDefault(_objectGopnExt);982 var f$4 = _objectGopnExt.f;983var require$$8 = Object.freeze({984 default: _objectGopnExt$1,985 f: f$4986 });987 var _objectGopd = createCommonjsModule(function (module, exports) {988 var pIE = interopDefault(require$$0$13)989 , createDesc = interopDefault(require$$3$3)990 , toIObject = interopDefault(require$$1$7)991 , toPrimitive = interopDefault(require$$3$2)992 , has = interopDefault(require$$2)993 , IE8_DOM_DEFINE = interopDefault(require$$1$2)994 , gOPD = Object.getOwnPropertyDescriptor;995 exports.f = interopDefault(require$$0$1) ? gOPD : function getOwnPropertyDescriptor(O, P){996 O = toIObject(O);997 P = toPrimitive(P, true);998 if(IE8_DOM_DEFINE)try {999 return gOPD(O, P);1000 } catch(e){ /* empty */ }1001 if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);1002 };1003 });1004 var _objectGopd$1 = interopDefault(_objectGopd);1005 var f$6 = _objectGopd.f;1006var require$$7$1 = Object.freeze({1007 default: _objectGopd$1,1008 f: f$61009 });1010 var es6_symbol = createCommonjsModule(function (module) {1011 'use strict';1012 // ECMAScript 6 symbols shim1013 var global = interopDefault(require$$0)1014 , has = interopDefault(require$$2)1015 , DESCRIPTORS = interopDefault(require$$0$1)1016 , $export = interopDefault(require$$1)1017 , redefine = interopDefault(require$$7)1018 , META = interopDefault(require$$24).KEY1019 , $fails = interopDefault(require$$0$2)1020 , shared = interopDefault(require$$1$4)1021 , setToStringTag = interopDefault(require$$2$2)1022 , uid = interopDefault(require$$0$4)1023 , wks = interopDefault(require$$0$7)1024 , wksExt = interopDefault(require$$1$5)1025 , wksDefine = interopDefault(require$$17)1026 , keyOf = interopDefault(require$$16)1027 , enumKeys = interopDefault(require$$15)1028 , isArray = interopDefault(require$$0$14)1029 , anObject = interopDefault(require$$2$1)1030 , toIObject = interopDefault(require$$1$7)1031 , toPrimitive = interopDefault(require$$3$2)1032 , createDesc = interopDefault(require$$3$3)1033 , _create = interopDefault(require$$4$1)1034 , gOPNExt = interopDefault(require$$8)1035 , $GOPD = interopDefault(require$$7$1)1036 , $DP = interopDefault(require$$3)1037 , $keys = interopDefault(require$$2$3)1038 , gOPD = $GOPD.f1039 , dP = $DP.f1040 , gOPN = gOPNExt.f1041 , $Symbol = global.Symbol1042 , $JSON = global.JSON1043 , _stringify = $JSON && $JSON.stringify1044 , PROTOTYPE = 'prototype'1045 , HIDDEN = wks('_hidden')1046 , TO_PRIMITIVE = wks('toPrimitive')1047 , isEnum = {}.propertyIsEnumerable1048 , SymbolRegistry = shared('symbol-registry')1049 , AllSymbols = shared('symbols')1050 , OPSymbols = shared('op-symbols')1051 , ObjectProto = Object[PROTOTYPE]1052 , USE_NATIVE = typeof $Symbol == 'function'1053 , QObject = global.QObject;1054 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/1731055 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;1056 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=6871057 var setSymbolDesc = DESCRIPTORS && $fails(function(){1058 return _create(dP({}, 'a', {1059 get: function(){ return dP(this, 'a', {value: 7}).a; }1060 })).a != 7;1061 }) ? function(it, key, D){1062 var protoDesc = gOPD(ObjectProto, key);1063 if(protoDesc)delete ObjectProto[key];1064 dP(it, key, D);1065 if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);1066 } : dP;1067 var wrap = function(tag){1068 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);1069 sym._k = tag;1070 return sym;1071 };1072 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){1073 return typeof it == 'symbol';1074 } : function(it){1075 return it instanceof $Symbol;1076 };1077 var $defineProperty = function defineProperty(it, key, D){1078 if(it === ObjectProto)$defineProperty(OPSymbols, key, D);1079 anObject(it);1080 key = toPrimitive(key, true);1081 anObject(D);1082 if(has(AllSymbols, key)){1083 if(!D.enumerable){1084 if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));1085 it[HIDDEN][key] = true;1086 } else {1087 if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;1088 D = _create(D, {enumerable: createDesc(0, false)});1089 } return setSymbolDesc(it, key, D);1090 } return dP(it, key, D);1091 };1092 var $defineProperties = function defineProperties(it, P){1093 anObject(it);1094 var keys = enumKeys(P = toIObject(P))1095 , i = 01096 , l = keys.length1097 , key;1098 while(l > i)$defineProperty(it, key = keys[i++], P[key]);1099 return it;1100 };1101 var $create = function create(it, P){1102 return P === undefined ? _create(it) : $defineProperties(_create(it), P);1103 };1104 var $propertyIsEnumerable = function propertyIsEnumerable(key){1105 var E = isEnum.call(this, key = toPrimitive(key, true));1106 if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;1107 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;1108 };1109 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){1110 it = toIObject(it);1111 key = toPrimitive(key, true);1112 if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;1113 var D = gOPD(it, key);1114 if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;1115 return D;1116 };1117 var $getOwnPropertyNames = function getOwnPropertyNames(it){1118 var names = gOPN(toIObject(it))1119 , result = []1120 , i = 01121 , key;1122 while(names.length > i){1123 if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);1124 } return result;1125 };1126 var $getOwnPropertySymbols = function getOwnPropertySymbols(it){1127 var IS_OP = it === ObjectProto1128 , names = gOPN(IS_OP ? OPSymbols : toIObject(it))1129 , result = []1130 , i = 01131 , key;1132 while(names.length > i){1133 if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);1134 } return result;1135 };1136 // 19.4.1.1 Symbol([description])1137 if(!USE_NATIVE){1138 $Symbol = function Symbol(){1139 if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');1140 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);1141 var $set = function(value){1142 if(this === ObjectProto)$set.call(OPSymbols, value);1143 if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;1144 setSymbolDesc(this, tag, createDesc(1, value));1145 };1146 if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});1147 return wrap(tag);1148 };1149 redefine($Symbol[PROTOTYPE], 'toString', function toString(){1150 return this._k;1151 });1152 $GOPD.f = $getOwnPropertyDescriptor;1153 $DP.f = $defineProperty;1154 interopDefault(require$$0$16).f = gOPNExt.f = $getOwnPropertyNames;1155 interopDefault(require$$0$13).f = $propertyIsEnumerable;1156 interopDefault(require$$4).f = $getOwnPropertySymbols;1157 if(DESCRIPTORS && !interopDefault(require$$9)){1158 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);1159 }1160 wksExt.f = function(name){1161 return wrap(wks(name));1162 }1163 }1164 $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});1165 for(var symbols = (1166 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.141167 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'1168 ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);1169 for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);1170 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {1171 // 19.4.2.1 Symbol.for(key)1172 'for': function(key){1173 return has(SymbolRegistry, key += '')1174 ? SymbolRegistry[key]1175 : SymbolRegistry[key] = $Symbol(key);1176 },1177 // 19.4.2.5 Symbol.keyFor(sym)1178 keyFor: function keyFor(key){1179 if(isSymbol(key))return keyOf(SymbolRegistry, key);1180 throw TypeError(key + ' is not a symbol!');1181 },1182 useSetter: function(){ setter = true; },1183 useSimple: function(){ setter = false; }1184 });1185 $export($export.S + $export.F * !USE_NATIVE, 'Object', {1186 // 19.1.2.2 Object.create(O [, Properties])1187 create: $create,1188 // 19.1.2.4 Object.defineProperty(O, P, Attributes)1189 defineProperty: $defineProperty,1190 // 19.1.2.3 Object.defineProperties(O, Properties)1191 defineProperties: $defineProperties,1192 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)1193 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,1194 // 19.1.2.7 Object.getOwnPropertyNames(O)1195 getOwnPropertyNames: $getOwnPropertyNames,1196 // 19.1.2.8 Object.getOwnPropertySymbols(O)1197 getOwnPropertySymbols: $getOwnPropertySymbols1198 });1199 // 24.3.2 JSON.stringify(value [, replacer [, space]])1200 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){1201 var S = $Symbol();1202 // MS Edge converts symbol values to JSON as {}1203 // WebKit converts symbol values to JSON as null1204 // V8 throws on boxed symbols1205 return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';1206 })), 'JSON', {1207 stringify: function stringify(it){1208 if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined1209 var args = [it]1210 , i = 11211 , replacer, $replacer;1212 while(arguments.length > i)args.push(arguments[i++]);1213 replacer = args[1];1214 if(typeof replacer == 'function')$replacer = replacer;1215 if($replacer || !isArray(replacer))replacer = function(key, value){1216 if($replacer)value = $replacer.call(this, key, value);1217 if(!isSymbol(value))return value;1218 };1219 args[1] = replacer;1220 return _stringify.apply($JSON, args);1221 }1222 });1223 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)1224 $Symbol[PROTOTYPE][TO_PRIMITIVE] || interopDefault(require$$1$1)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);1225 // 19.4.3.5 Symbol.prototype[@@toStringTag]1226 setToStringTag($Symbol, 'Symbol');1227 // 20.2.1.9 Math[@@toStringTag]1228 setToStringTag(Math, 'Math', true);1229 // 24.3.3 JSON[@@toStringTag]1230 setToStringTag(global.JSON, 'JSON', true);1231 });1232 interopDefault(es6_symbol);1233 var _classof = createCommonjsModule(function (module) {1234 // getting tag from 19.1.3.6 Object.prototype.toString()1235 var cof = interopDefault(require$$1$9)1236 , TAG = interopDefault(require$$0$7)('toStringTag')1237 // ES3 wrong here1238 , ARG = cof(function(){ return arguments; }()) == 'Arguments';1239 // fallback for IE11 Script Access Denied error1240 var tryGet = function(it, key){1241 try {1242 return it[key];1243 } catch(e){ /* empty */ }1244 };1245 module.exports = function(it){1246 var O, T, B;1247 return it === undefined ? 'Undefined' : it === null ? 'Null'1248 // @@toStringTag case1249 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T1250 // builtinTag case1251 : ARG ? cof(O)1252 // ES3 arguments fallback1253 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;1254 };1255 });1256 var _classof$1 = interopDefault(_classof);1257 var require$$2$4 = Object.freeze({1258 default: _classof$11259 });1260 var es6_object_toString = createCommonjsModule(function (module) {1261 'use strict';1262 // 19.1.3.6 Object.prototype.toString()1263 var classof = interopDefault(require$$2$4)1264 , test = {};1265 test[interopDefault(require$$0$7)('toStringTag')] = 'z';1266 if(test + '' != '[object z]'){1267 interopDefault(require$$7)(Object.prototype, 'toString', function toString(){1268 return '[object ' + classof(this) + ']';1269 }, true);1270 }1271 });1272 interopDefault(es6_object_toString);1273 var symbol = createCommonjsModule(function (module) {1274 module.exports = interopDefault(require$$0$3).Symbol;1275 });1276 interopDefault(symbol);1277 var _addToUnscopables = createCommonjsModule(function (module) {1278 // 22.1.3.31 Array.prototype[@@unscopables]1279 var UNSCOPABLES = interopDefault(require$$0$7)('unscopables')1280 , ArrayProto = Array.prototype;1281 if(ArrayProto[UNSCOPABLES] == undefined)interopDefault(require$$1$1)(ArrayProto, UNSCOPABLES, {});1282 module.exports = function(key){1283 ArrayProto[UNSCOPABLES][key] = true;1284 };1285 });1286 var _addToUnscopables$1 = interopDefault(_addToUnscopables);1287 var require$$4$3 = Object.freeze({1288 default: _addToUnscopables$11289 });1290 var _iterStep = createCommonjsModule(function (module) {1291 module.exports = function(done, value){1292 return {value: value, done: !!done};1293 };1294 });1295 var _iterStep$1 = interopDefault(_iterStep);1296 var require$$3$4 = Object.freeze({1297 default: _iterStep$11298 });1299 var _iterators = createCommonjsModule(function (module) {1300 module.exports = {};1301 });1302 var _iterators$1 = interopDefault(_iterators);1303 var require$$4$4 = Object.freeze({1304 default: _iterators$11305 });1306 var _iterCreate = createCommonjsModule(function (module) {1307 'use strict';1308 var create = interopDefault(require$$4$1)1309 , descriptor = interopDefault(require$$3$3)1310 , setToStringTag = interopDefault(require$$2$2)1311 , IteratorPrototype = {};1312 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()1313 interopDefault(require$$1$1)(IteratorPrototype, interopDefault(require$$0$7)('iterator'), function(){ return this; });1314 module.exports = function(Constructor, NAME, next){1315 Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});1316 setToStringTag(Constructor, NAME + ' Iterator');1317 };1318 });1319 var _iterCreate$1 = interopDefault(_iterCreate);1320 var require$$3$5 = Object.freeze({1321 default: _iterCreate$11322 });1323 var _toObject = createCommonjsModule(function (module) {1324 // 7.1.13 ToObject(argument)1325 var defined = interopDefault(require$$0$8);1326 module.exports = function(it){1327 return Object(defined(it));1328 };1329 });1330 var _toObject$1 = interopDefault(_toObject);1331 var require$$2$5 = Object.freeze({1332 default: _toObject$11333 });1334 var _objectGpo = createCommonjsModule(function (module) {1335 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)1336 var has = interopDefault(require$$2)1337 , toObject = interopDefault(require$$2$5)1338 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO')1339 , ObjectProto = Object.prototype;1340 module.exports = Object.getPrototypeOf || function(O){1341 O = toObject(O);1342 if(has(O, IE_PROTO))return O[IE_PROTO];1343 if(typeof O.constructor == 'function' && O instanceof O.constructor){1344 return O.constructor.prototype;1345 } return O instanceof Object ? ObjectProto : null;1346 };1347 });1348 var _objectGpo$1 = interopDefault(_objectGpo);1349 var require$$1$12 = Object.freeze({1350 default: _objectGpo$11351 });1352 var _iterDefine = createCommonjsModule(function (module) {1353 'use strict';1354 var LIBRARY = interopDefault(require$$9)1355 , $export = interopDefault(require$$1)1356 , redefine = interopDefault(require$$7)1357 , hide = interopDefault(require$$1$1)1358 , has = interopDefault(require$$2)1359 , Iterators = interopDefault(require$$4$4)1360 , $iterCreate = interopDefault(require$$3$5)1361 , setToStringTag = interopDefault(require$$2$2)1362 , getPrototypeOf = interopDefault(require$$1$12)1363 , ITERATOR = interopDefault(require$$0$7)('iterator')1364 , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`1365 , FF_ITERATOR = '@@iterator'1366 , KEYS = 'keys'1367 , VALUES = 'values';1368 var returnThis = function(){ return this; };1369 module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){1370 $iterCreate(Constructor, NAME, next);1371 var getMethod = function(kind){1372 if(!BUGGY && kind in proto)return proto[kind];1373 switch(kind){1374 case KEYS: return function keys(){ return new Constructor(this, kind); };1375 case VALUES: return function values(){ return new Constructor(this, kind); };1376 } return function entries(){ return new Constructor(this, kind); };1377 };1378 var TAG = NAME + ' Iterator'1379 , DEF_VALUES = DEFAULT == VALUES1380 , VALUES_BUG = false1381 , proto = Base.prototype1382 , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]1383 , $default = $native || getMethod(DEFAULT)1384 , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined1385 , $anyNative = NAME == 'Array' ? proto.entries || $native : $native1386 , methods, key, IteratorPrototype;1387 // Fix native1388 if($anyNative){1389 IteratorPrototype = getPrototypeOf($anyNative.call(new Base));1390 if(IteratorPrototype !== Object.prototype){1391 // Set @@toStringTag to native iterators1392 setToStringTag(IteratorPrototype, TAG, true);1393 // fix for some old engines1394 if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);1395 }1396 }1397 // fix Array#{values, @@iterator}.name in V8 / FF1398 if(DEF_VALUES && $native && $native.name !== VALUES){1399 VALUES_BUG = true;1400 $default = function values(){ return $native.call(this); };1401 }1402 // Define iterator1403 if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){1404 hide(proto, ITERATOR, $default);1405 }1406 // Plug for library1407 Iterators[NAME] = $default;1408 Iterators[TAG] = returnThis;1409 if(DEFAULT){1410 methods = {1411 values: DEF_VALUES ? $default : getMethod(VALUES),1412 keys: IS_SET ? $default : getMethod(KEYS),1413 entries: $entries1414 };1415 if(FORCED)for(key in methods){1416 if(!(key in proto))redefine(proto, key, methods[key]);1417 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);1418 }1419 return methods;1420 };1421 });1422 var _iterDefine$1 = interopDefault(_iterDefine);1423 var require$$0$17 = Object.freeze({1424 default: _iterDefine$11425 });1426 var es6_array_iterator = createCommonjsModule(function (module) {1427 'use strict';1428 var addToUnscopables = interopDefault(require$$4$3)1429 , step = interopDefault(require$$3$4)1430 , Iterators = interopDefault(require$$4$4)1431 , toIObject = interopDefault(require$$1$7);1432 // 22.1.3.4 Array.prototype.entries()1433 // 22.1.3.13 Array.prototype.keys()1434 // 22.1.3.29 Array.prototype.values()1435 // 22.1.3.30 Array.prototype[@@iterator]()1436 module.exports = interopDefault(require$$0$17)(Array, 'Array', function(iterated, kind){1437 this._t = toIObject(iterated); // target1438 this._i = 0; // next index1439 this._k = kind; // kind1440 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()1441 }, function(){1442 var O = this._t1443 , kind = this._k1444 , index = this._i++;1445 if(!O || index >= O.length){1446 this._t = undefined;1447 return step(1);1448 }1449 if(kind == 'keys' )return step(0, index);1450 if(kind == 'values')return step(0, O[index]);1451 return step(0, [index, O[index]]);1452 }, 'values');1453 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)1454 Iterators.Arguments = Iterators.Array;1455 addToUnscopables('keys');1456 addToUnscopables('values');1457 addToUnscopables('entries');1458 });1459 interopDefault(es6_array_iterator);1460 var iterator = createCommonjsModule(function (module) {1461 module.exports = interopDefault(require$$0$3).Array.values;1462 });1463 interopDefault(iterator);1464 var _objectAssign = createCommonjsModule(function (module) {1465 'use strict';1466 // 19.1.2.1 Object.assign(target, source, ...)1467 var getKeys = interopDefault(require$$2$3)1468 , gOPS = interopDefault(require$$4)1469 , pIE = interopDefault(require$$0$13)1470 , toObject = interopDefault(require$$2$5)1471 , IObject = interopDefault(require$$1$8)1472 , $assign = Object.assign;1473 // should work with symbols and should have deterministic property order (V8 bug)1474 module.exports = !$assign || interopDefault(require$$0$2)(function(){1475 var A = {}1476 , B = {}1477 , S = Symbol()1478 , K = 'abcdefghijklmnopqrst';1479 A[S] = 7;1480 K.split('').forEach(function(k){ B[k] = k; });1481 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;1482 }) ? function assign(target, source){ // eslint-disable-line no-unused-vars1483 var T = toObject(target)1484 , aLen = arguments.length1485 , index = 11486 , getSymbols = gOPS.f1487 , isEnum = pIE.f;1488 while(aLen > index){1489 var S = IObject(arguments[index++])1490 , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)1491 , length = keys.length1492 , j = 01493 , key;1494 while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];1495 } return T;1496 } : $assign;1497 });1498 var _objectAssign$1 = interopDefault(_objectAssign);1499 var require$$0$18 = Object.freeze({1500 default: _objectAssign$11501 });1502 var es6_object_assign = createCommonjsModule(function (module) {1503 // 19.1.3.1 Object.assign(target, source)1504 var $export = interopDefault(require$$1);1505 $export($export.S + $export.F, 'Object', {assign: interopDefault(require$$0$18)});1506 });1507 interopDefault(es6_object_assign);1508 var assign = createCommonjsModule(function (module) {1509 module.exports = interopDefault(require$$0$3).Object.assign;1510 });1511 interopDefault(assign);1512 var es6_array_isArray = createCommonjsModule(function (module) {1513 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)1514 var $export = interopDefault(require$$1);1515 $export($export.S, 'Array', {isArray: interopDefault(require$$0$14)});1516 });1517 interopDefault(es6_array_isArray);1518 var isArray = createCommonjsModule(function (module) {1519 module.exports = interopDefault(require$$0$3).Array.isArray;1520 });1521 interopDefault(isArray);1522 var _objectToArray = createCommonjsModule(function (module) {1523 var getKeys = interopDefault(require$$2$3)1524 , toIObject = interopDefault(require$$1$7)1525 , isEnum = interopDefault(require$$0$13).f;1526 module.exports = function(isEntries){1527 return function(it){1528 var O = toIObject(it)1529 , keys = getKeys(O)1530 , length = keys.length1531 , i = 01532 , result = []1533 , key;1534 while(length > i)if(isEnum.call(O, key = keys[i++])){1535 result.push(isEntries ? [key, O[key]] : O[key]);1536 } return result;1537 };1538 };1539 });1540 var _objectToArray$1 = interopDefault(_objectToArray);1541 var require$$0$19 = Object.freeze({1542 default: _objectToArray$11543 });1544 var es7_object_values = createCommonjsModule(function (module) {1545 // https://github.com/tc39/proposal-object-values-entries1546 var $export = interopDefault(require$$1)1547 , $values = interopDefault(require$$0$19)(false);1548 $export($export.S, 'Object', {1549 values: function values(it){1550 return $values(it);1551 }1552 });1553 });1554 interopDefault(es7_object_values);1555 var values = createCommonjsModule(function (module) {1556 module.exports = interopDefault(require$$0$3).Object.values;1557 });1558 interopDefault(values);1559 var doc;1560 var cursor;1561 var styleModifiers;1562 var pageSize;1563 var settings;1564 var table;1565 // The current Table instance1566 /**1567 * Create a table from a set of rows and columns.1568 *1569 * @param {Object[]|String[]} headers Either as an array of objects or array of strings...
jspdf.plugin.autotable.src.js
Source:jspdf.plugin.autotable.src.js
...206 }();207 function interopDefault(ex) {208 return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;209 }210 function createCommonjsModule(fn, module) {211 return module = { exports: {} }, fn(module, module.exports), module.exports;212 }213 var _global = createCommonjsModule(function (module) {214 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028215 var global = module.exports = typeof window != 'undefined' && window.Math == Math216 ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();217 if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef218 });219 var _global$1 = interopDefault(_global);220 var require$$0 = Object.freeze({221 default: _global$1222 });223 var _has = createCommonjsModule(function (module) {224 var hasOwnProperty = {}.hasOwnProperty;225 module.exports = function(it, key){226 return hasOwnProperty.call(it, key);227 };228 });229 var _has$1 = interopDefault(_has);230 var require$$2 = Object.freeze({231 default: _has$1232 });233 var _fails = createCommonjsModule(function (module) {234 module.exports = function(exec){235 try {236 return !!exec();237 } catch(e){238 return true;239 }240 };241 });242 var _fails$1 = interopDefault(_fails);243 var require$$0$2 = Object.freeze({244 default: _fails$1245 });246 var _descriptors = createCommonjsModule(function (module) {247 // Thank's IE8 for his funny defineProperty248 module.exports = !interopDefault(require$$0$2)(function(){249 return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;250 });251 });252 var _descriptors$1 = interopDefault(_descriptors);253 var require$$0$1 = Object.freeze({254 default: _descriptors$1255 });256 var _core = createCommonjsModule(function (module) {257 var core = module.exports = {version: '2.4.0'};258 if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef259 });260 var _core$1 = interopDefault(_core);261 var version = _core.version;262var require$$0$3 = Object.freeze({263 default: _core$1,264 version: version265 });266 var _isObject = createCommonjsModule(function (module) {267 module.exports = function(it){268 return typeof it === 'object' ? it !== null : typeof it === 'function';269 };270 });271 var _isObject$1 = interopDefault(_isObject);272 var require$$3$1 = Object.freeze({273 default: _isObject$1274 });275 var _anObject = createCommonjsModule(function (module) {276 var isObject = interopDefault(require$$3$1);277 module.exports = function(it){278 if(!isObject(it))throw TypeError(it + ' is not an object!');279 return it;280 };281 });282 var _anObject$1 = interopDefault(_anObject);283 var require$$2$1 = Object.freeze({284 default: _anObject$1285 });286 var _domCreate = createCommonjsModule(function (module) {287 var isObject = interopDefault(require$$3$1)288 , document = interopDefault(require$$0).document289 // in old IE typeof document.createElement is 'object'290 , is = isObject(document) && isObject(document.createElement);291 module.exports = function(it){292 return is ? document.createElement(it) : {};293 };294 });295 var _domCreate$1 = interopDefault(_domCreate);296 var require$$1$3 = Object.freeze({297 default: _domCreate$1298 });299 var _ie8DomDefine = createCommonjsModule(function (module) {300 module.exports = !interopDefault(require$$0$1) && !interopDefault(require$$0$2)(function(){301 return Object.defineProperty(interopDefault(require$$1$3)('div'), 'a', {get: function(){ return 7; }}).a != 7;302 });303 });304 var _ie8DomDefine$1 = interopDefault(_ie8DomDefine);305 var require$$1$2 = Object.freeze({306 default: _ie8DomDefine$1307 });308 var _toPrimitive = createCommonjsModule(function (module) {309 // 7.1.1 ToPrimitive(input [, PreferredType])310 var isObject = interopDefault(require$$3$1);311 // instead of the ES6 spec version, we didn't implement @@toPrimitive case312 // and the second argument - flag - preferred type is a string313 module.exports = function(it, S){314 if(!isObject(it))return it;315 var fn, val;316 if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;317 if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;318 if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;319 throw TypeError("Can't convert object to primitive value");320 };321 });322 var _toPrimitive$1 = interopDefault(_toPrimitive);323 var require$$3$2 = Object.freeze({324 default: _toPrimitive$1325 });326 var _objectDp = createCommonjsModule(function (module, exports) {327 var anObject = interopDefault(require$$2$1)328 , IE8_DOM_DEFINE = interopDefault(require$$1$2)329 , toPrimitive = interopDefault(require$$3$2)330 , dP = Object.defineProperty;331 exports.f = interopDefault(require$$0$1) ? Object.defineProperty : function defineProperty(O, P, Attributes){332 anObject(O);333 P = toPrimitive(P, true);334 anObject(Attributes);335 if(IE8_DOM_DEFINE)try {336 return dP(O, P, Attributes);337 } catch(e){ /* empty */ }338 if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');339 if('value' in Attributes)O[P] = Attributes.value;340 return O;341 };342 });343 var _objectDp$1 = interopDefault(_objectDp);344 var f = _objectDp.f;345var require$$3 = Object.freeze({346 default: _objectDp$1,347 f: f348 });349 var _propertyDesc = createCommonjsModule(function (module) {350 module.exports = function(bitmap, value){351 return {352 enumerable : !(bitmap & 1),353 configurable: !(bitmap & 2),354 writable : !(bitmap & 4),355 value : value356 };357 };358 });359 var _propertyDesc$1 = interopDefault(_propertyDesc);360 var require$$3$3 = Object.freeze({361 default: _propertyDesc$1362 });363 var _hide = createCommonjsModule(function (module) {364 var dP = interopDefault(require$$3)365 , createDesc = interopDefault(require$$3$3);366 module.exports = interopDefault(require$$0$1) ? function(object, key, value){367 return dP.f(object, key, createDesc(1, value));368 } : function(object, key, value){369 object[key] = value;370 return object;371 };372 });373 var _hide$1 = interopDefault(_hide);374 var require$$1$1 = Object.freeze({375 default: _hide$1376 });377 var _uid = createCommonjsModule(function (module) {378 var id = 0379 , px = Math.random();380 module.exports = function(key){381 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));382 };383 });384 var _uid$1 = interopDefault(_uid);385 var require$$0$4 = Object.freeze({386 default: _uid$1387 });388 var _redefine = createCommonjsModule(function (module) {389 var global = interopDefault(require$$0)390 , hide = interopDefault(require$$1$1)391 , has = interopDefault(require$$2)392 , SRC = interopDefault(require$$0$4)('src')393 , TO_STRING = 'toString'394 , $toString = Function[TO_STRING]395 , TPL = ('' + $toString).split(TO_STRING);396 interopDefault(require$$0$3).inspectSource = function(it){397 return $toString.call(it);398 };399 (module.exports = function(O, key, val, safe){400 var isFunction = typeof val == 'function';401 if(isFunction)has(val, 'name') || hide(val, 'name', key);402 if(O[key] === val)return;403 if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));404 if(O === global){405 O[key] = val;406 } else {407 if(!safe){408 delete O[key];409 hide(O, key, val);410 } else {411 if(O[key])O[key] = val;412 else hide(O, key, val);413 }414 }415 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative416 })(Function.prototype, TO_STRING, function toString(){417 return typeof this == 'function' && this[SRC] || $toString.call(this);418 });419 });420 var _redefine$1 = interopDefault(_redefine);421 var require$$7 = Object.freeze({422 default: _redefine$1423 });424 var _aFunction = createCommonjsModule(function (module) {425 module.exports = function(it){426 if(typeof it != 'function')throw TypeError(it + ' is not a function!');427 return it;428 };429 });430 var _aFunction$1 = interopDefault(_aFunction);431 var require$$0$6 = Object.freeze({432 default: _aFunction$1433 });434 var _ctx = createCommonjsModule(function (module) {435 // optional / simple context binding436 var aFunction = interopDefault(require$$0$6);437 module.exports = function(fn, that, length){438 aFunction(fn);439 if(that === undefined)return fn;440 switch(length){441 case 1: return function(a){442 return fn.call(that, a);443 };444 case 2: return function(a, b){445 return fn.call(that, a, b);446 };447 case 3: return function(a, b, c){448 return fn.call(that, a, b, c);449 };450 }451 return function(/* ...args */){452 return fn.apply(that, arguments);453 };454 };455 });456 var _ctx$1 = interopDefault(_ctx);457 var require$$0$5 = Object.freeze({458 default: _ctx$1459 });460 var _export = createCommonjsModule(function (module) {461 var global = interopDefault(require$$0)462 , core = interopDefault(require$$0$3)463 , hide = interopDefault(require$$1$1)464 , redefine = interopDefault(require$$7)465 , ctx = interopDefault(require$$0$5)466 , PROTOTYPE = 'prototype';467 var $export = function(type, name, source){468 var IS_FORCED = type & $export.F469 , IS_GLOBAL = type & $export.G470 , IS_STATIC = type & $export.S471 , IS_PROTO = type & $export.P472 , IS_BIND = type & $export.B473 , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]474 , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})475 , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})476 , key, own, out, exp;477 if(IS_GLOBAL)source = name;478 for(key in source){479 // contains in native480 own = !IS_FORCED && target && target[key] !== undefined;481 // export native or passed482 out = (own ? target : source)[key];483 // bind timers to global for call from export context484 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;485 // extend global486 if(target)redefine(target, key, out, type & $export.U);487 // export488 if(exports[key] != out)hide(exports, key, exp);489 if(IS_PROTO && expProto[key] != out)expProto[key] = out;490 }491 };492 global.core = core;493 // type bitmap494 $export.F = 1; // forced495 $export.G = 2; // global496 $export.S = 4; // static497 $export.P = 8; // proto498 $export.B = 16; // bind499 $export.W = 32; // wrap500 $export.U = 64; // safe501 $export.R = 128; // real proto method for `library` 502 module.exports = $export;503 });504 var _export$1 = interopDefault(_export);505 var require$$1 = Object.freeze({506 default: _export$1507 });508 var _meta = createCommonjsModule(function (module) {509 var META = interopDefault(require$$0$4)('meta')510 , isObject = interopDefault(require$$3$1)511 , has = interopDefault(require$$2)512 , setDesc = interopDefault(require$$3).f513 , id = 0;514 var isExtensible = Object.isExtensible || function(){515 return true;516 };517 var FREEZE = !interopDefault(require$$0$2)(function(){518 return isExtensible(Object.preventExtensions({}));519 });520 var setMeta = function(it){521 setDesc(it, META, {value: {522 i: 'O' + ++id, // object ID523 w: {} // weak collections IDs524 }});525 };526 var fastKey = function(it, create){527 // return primitive with prefix528 if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;529 if(!has(it, META)){530 // can't set metadata to uncaught frozen object531 if(!isExtensible(it))return 'F';532 // not necessary to add metadata533 if(!create)return 'E';534 // add missing metadata535 setMeta(it);536 // return object ID537 } return it[META].i;538 };539 var getWeak = function(it, create){540 if(!has(it, META)){541 // can't set metadata to uncaught frozen object542 if(!isExtensible(it))return true;543 // not necessary to add metadata544 if(!create)return false;545 // add missing metadata546 setMeta(it);547 // return hash weak collections IDs548 } return it[META].w;549 };550 // add metadata on freeze-family methods calling551 var onFreeze = function(it){552 if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);553 return it;554 };555 var meta = module.exports = {556 KEY: META,557 NEED: false,558 fastKey: fastKey,559 getWeak: getWeak,560 onFreeze: onFreeze561 };562 });563 var _meta$1 = interopDefault(_meta);564 var KEY = _meta.KEY;565 var NEED = _meta.NEED;566 var fastKey = _meta.fastKey;567 var getWeak = _meta.getWeak;568 var onFreeze = _meta.onFreeze;569var require$$24 = Object.freeze({570 default: _meta$1,571 KEY: KEY,572 NEED: NEED,573 fastKey: fastKey,574 getWeak: getWeak,575 onFreeze: onFreeze576 });577 var _shared = createCommonjsModule(function (module) {578 var global = interopDefault(require$$0)579 , SHARED = '__core-js_shared__'580 , store = global[SHARED] || (global[SHARED] = {});581 module.exports = function(key){582 return store[key] || (store[key] = {});583 };584 });585 var _shared$1 = interopDefault(_shared);586 var require$$1$4 = Object.freeze({587 default: _shared$1588 });589 var _wks = createCommonjsModule(function (module) {590 var store = interopDefault(require$$1$4)('wks')591 , uid = interopDefault(require$$0$4)592 , Symbol = interopDefault(require$$0).Symbol593 , USE_SYMBOL = typeof Symbol == 'function';594 var $exports = module.exports = function(name){595 return store[name] || (store[name] =596 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));597 };598 $exports.store = store;599 });600 var _wks$1 = interopDefault(_wks);601 var require$$0$7 = Object.freeze({602 default: _wks$1603 });604 var _setToStringTag = createCommonjsModule(function (module) {605 var def = interopDefault(require$$3).f606 , has = interopDefault(require$$2)607 , TAG = interopDefault(require$$0$7)('toStringTag');608 module.exports = function(it, tag, stat){609 if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});610 };611 });612 var _setToStringTag$1 = interopDefault(_setToStringTag);613 var require$$2$2 = Object.freeze({614 default: _setToStringTag$1615 });616 var _wksExt = createCommonjsModule(function (module, exports) {617 exports.f = interopDefault(require$$0$7);618 });619 var _wksExt$1 = interopDefault(_wksExt);620 var f$1 = _wksExt.f;621var require$$1$5 = Object.freeze({622 default: _wksExt$1,623 f: f$1624 });625 var _library = createCommonjsModule(function (module) {626 module.exports = false;627 });628 var _library$1 = interopDefault(_library);629 var require$$9 = Object.freeze({630 default: _library$1631 });632 var _wksDefine = createCommonjsModule(function (module) {633 var global = interopDefault(require$$0)634 , core = interopDefault(require$$0$3)635 , LIBRARY = interopDefault(require$$9)636 , wksExt = interopDefault(require$$1$5)637 , defineProperty = interopDefault(require$$3).f;638 module.exports = function(name){639 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});640 if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});641 };642 });643 var _wksDefine$1 = interopDefault(_wksDefine);644 var require$$17 = Object.freeze({645 default: _wksDefine$1646 });647 var _cof = createCommonjsModule(function (module) {648 var toString = {}.toString;649 module.exports = function(it){650 return toString.call(it).slice(8, -1);651 };652 });653 var _cof$1 = interopDefault(_cof);654 var require$$1$9 = Object.freeze({655 default: _cof$1656 });657 var _iobject = createCommonjsModule(function (module) {658 // fallback for non-array-like ES3 and non-enumerable old V8 strings659 var cof = interopDefault(require$$1$9);660 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){661 return cof(it) == 'String' ? it.split('') : Object(it);662 };663 });664 var _iobject$1 = interopDefault(_iobject);665 var require$$1$8 = Object.freeze({666 default: _iobject$1667 });668 var _defined = createCommonjsModule(function (module) {669 // 7.2.1 RequireObjectCoercible(argument)670 module.exports = function(it){671 if(it == undefined)throw TypeError("Can't call method on " + it);672 return it;673 };674 });675 var _defined$1 = interopDefault(_defined);676 var require$$0$8 = Object.freeze({677 default: _defined$1678 });679 var _toIobject = createCommonjsModule(function (module) {680 // to indexed object, toObject with fallback for non-array-like ES3 strings681 var IObject = interopDefault(require$$1$8)682 , defined = interopDefault(require$$0$8);683 module.exports = function(it){684 return IObject(defined(it));685 };686 });687 var _toIobject$1 = interopDefault(_toIobject);688 var require$$1$7 = Object.freeze({689 default: _toIobject$1690 });691 var _toInteger = createCommonjsModule(function (module) {692 // 7.1.4 ToInteger693 var ceil = Math.ceil694 , floor = Math.floor;695 module.exports = function(it){696 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);697 };698 });699 var _toInteger$1 = interopDefault(_toInteger);700 var require$$0$9 = Object.freeze({701 default: _toInteger$1702 });703 var _toLength = createCommonjsModule(function (module) {704 // 7.1.15 ToLength705 var toInteger = interopDefault(require$$0$9)706 , min = Math.min;707 module.exports = function(it){708 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991709 };710 });711 var _toLength$1 = interopDefault(_toLength);712 var require$$1$11 = Object.freeze({713 default: _toLength$1714 });715 var _toIndex = createCommonjsModule(function (module) {716 var toInteger = interopDefault(require$$0$9)717 , max = Math.max718 , min = Math.min;719 module.exports = function(index, length){720 index = toInteger(index);721 return index < 0 ? max(index + length, 0) : min(index, length);722 };723 });724 var _toIndex$1 = interopDefault(_toIndex);725 var require$$0$10 = Object.freeze({726 default: _toIndex$1727 });728 var _arrayIncludes = createCommonjsModule(function (module) {729 // false -> Array#indexOf730 // true -> Array#includes731 var toIObject = interopDefault(require$$1$7)732 , toLength = interopDefault(require$$1$11)733 , toIndex = interopDefault(require$$0$10);734 module.exports = function(IS_INCLUDES){735 return function($this, el, fromIndex){736 var O = toIObject($this)737 , length = toLength(O.length)738 , index = toIndex(fromIndex, length)739 , value;740 // Array#includes uses SameValueZero equality algorithm741 if(IS_INCLUDES && el != el)while(length > index){742 value = O[index++];743 if(value != value)return true;744 // Array#toIndex ignores holes, Array#includes - not745 } else for(;length > index; index++)if(IS_INCLUDES || index in O){746 if(O[index] === el)return IS_INCLUDES || index || 0;747 } return !IS_INCLUDES && -1;748 };749 };750 });751 var _arrayIncludes$1 = interopDefault(_arrayIncludes);752 var require$$1$10 = Object.freeze({753 default: _arrayIncludes$1754 });755 var _sharedKey = createCommonjsModule(function (module) {756 var shared = interopDefault(require$$1$4)('keys')757 , uid = interopDefault(require$$0$4);758 module.exports = function(key){759 return shared[key] || (shared[key] = uid(key));760 };761 });762 var _sharedKey$1 = interopDefault(_sharedKey);763 var require$$0$11 = Object.freeze({764 default: _sharedKey$1765 });766 var _objectKeysInternal = createCommonjsModule(function (module) {767 var has = interopDefault(require$$2)768 , toIObject = interopDefault(require$$1$7)769 , arrayIndexOf = interopDefault(require$$1$10)(false)770 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO');771 module.exports = function(object, names){772 var O = toIObject(object)773 , i = 0774 , result = []775 , key;776 for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);777 // Don't enum bug & hidden keys778 while(names.length > i)if(has(O, key = names[i++])){779 ~arrayIndexOf(result, key) || result.push(key);780 }781 return result;782 };783 });784 var _objectKeysInternal$1 = interopDefault(_objectKeysInternal);785 var require$$1$6 = Object.freeze({786 default: _objectKeysInternal$1787 });788 var _enumBugKeys = createCommonjsModule(function (module) {789 // IE 8- don't enum bug keys790 module.exports = (791 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'792 ).split(',');793 });794 var _enumBugKeys$1 = interopDefault(_enumBugKeys);795 var require$$0$12 = Object.freeze({796 default: _enumBugKeys$1797 });798 var _objectKeys = createCommonjsModule(function (module) {799 // 19.1.2.14 / 15.2.3.14 Object.keys(O)800 var $keys = interopDefault(require$$1$6)801 , enumBugKeys = interopDefault(require$$0$12);802 module.exports = Object.keys || function keys(O){803 return $keys(O, enumBugKeys);804 };805 });806 var _objectKeys$1 = interopDefault(_objectKeys);807 var require$$2$3 = Object.freeze({808 default: _objectKeys$1809 });810 var _keyof = createCommonjsModule(function (module) {811 var getKeys = interopDefault(require$$2$3)812 , toIObject = interopDefault(require$$1$7);813 module.exports = function(object, el){814 var O = toIObject(object)815 , keys = getKeys(O)816 , length = keys.length817 , index = 0818 , key;819 while(length > index)if(O[key = keys[index++]] === el)return key;820 };821 });822 var _keyof$1 = interopDefault(_keyof);823 var require$$16 = Object.freeze({824 default: _keyof$1825 });826 var _objectGops = createCommonjsModule(function (module, exports) {827 exports.f = Object.getOwnPropertySymbols;828 });829 var _objectGops$1 = interopDefault(_objectGops);830 var f$2 = _objectGops.f;831var require$$4 = Object.freeze({832 default: _objectGops$1,833 f: f$2834 });835 var _objectPie = createCommonjsModule(function (module, exports) {836 exports.f = {}.propertyIsEnumerable;837 });838 var _objectPie$1 = interopDefault(_objectPie);839 var f$3 = _objectPie.f;840var require$$0$13 = Object.freeze({841 default: _objectPie$1,842 f: f$3843 });844 var _enumKeys = createCommonjsModule(function (module) {845 // all enumerable object keys, includes symbols846 var getKeys = interopDefault(require$$2$3)847 , gOPS = interopDefault(require$$4)848 , pIE = interopDefault(require$$0$13);849 module.exports = function(it){850 var result = getKeys(it)851 , getSymbols = gOPS.f;852 if(getSymbols){853 var symbols = getSymbols(it)854 , isEnum = pIE.f855 , i = 0856 , key;857 while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);858 } return result;859 };860 });861 var _enumKeys$1 = interopDefault(_enumKeys);862 var require$$15 = Object.freeze({863 default: _enumKeys$1864 });865 var _isArray = createCommonjsModule(function (module) {866 // 7.2.2 IsArray(argument)867 var cof = interopDefault(require$$1$9);868 module.exports = Array.isArray || function isArray(arg){869 return cof(arg) == 'Array';870 };871 });872 var _isArray$1 = interopDefault(_isArray);873 var require$$0$14 = Object.freeze({874 default: _isArray$1875 });876 var _objectDps = createCommonjsModule(function (module) {877 var dP = interopDefault(require$$3)878 , anObject = interopDefault(require$$2$1)879 , getKeys = interopDefault(require$$2$3);880 module.exports = interopDefault(require$$0$1) ? Object.defineProperties : function defineProperties(O, Properties){881 anObject(O);882 var keys = getKeys(Properties)883 , length = keys.length884 , i = 0885 , P;886 while(length > i)dP.f(O, P = keys[i++], Properties[P]);887 return O;888 };889 });890 var _objectDps$1 = interopDefault(_objectDps);891 var require$$4$2 = Object.freeze({892 default: _objectDps$1893 });894 var _html = createCommonjsModule(function (module) {895 module.exports = interopDefault(require$$0).document && document.documentElement;896 });897 var _html$1 = interopDefault(_html);898 var require$$0$15 = Object.freeze({899 default: _html$1900 });901 var _objectCreate = createCommonjsModule(function (module) {902 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])903 var anObject = interopDefault(require$$2$1)904 , dPs = interopDefault(require$$4$2)905 , enumBugKeys = interopDefault(require$$0$12)906 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO')907 , Empty = function(){ /* empty */ }908 , PROTOTYPE = 'prototype';909 // Create object with fake `null` prototype: use iframe Object with cleared prototype910 var createDict = function(){911 // Thrash, waste and sodomy: IE GC bug912 var iframe = interopDefault(require$$1$3)('iframe')913 , i = enumBugKeys.length914 , lt = '<'915 , gt = '>'916 , iframeDocument;917 iframe.style.display = 'none';918 interopDefault(require$$0$15).appendChild(iframe);919 iframe.src = 'javascript:'; // eslint-disable-line no-script-url920 // createDict = iframe.contentWindow.Object;921 // html.removeChild(iframe);922 iframeDocument = iframe.contentWindow.document;923 iframeDocument.open();924 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);925 iframeDocument.close();926 createDict = iframeDocument.F;927 while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];928 return createDict();929 };930 module.exports = Object.create || function create(O, Properties){931 var result;932 if(O !== null){933 Empty[PROTOTYPE] = anObject(O);934 result = new Empty;935 Empty[PROTOTYPE] = null;936 // add "__proto__" for Object.getPrototypeOf polyfill937 result[IE_PROTO] = O;938 } else result = createDict();939 return Properties === undefined ? result : dPs(result, Properties);940 };941 });942 var _objectCreate$1 = interopDefault(_objectCreate);943 var require$$4$1 = Object.freeze({944 default: _objectCreate$1945 });946 var _objectGopn = createCommonjsModule(function (module, exports) {947 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)948 var $keys = interopDefault(require$$1$6)949 , hiddenKeys = interopDefault(require$$0$12).concat('length', 'prototype');950 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){951 return $keys(O, hiddenKeys);952 };953 });954 var _objectGopn$1 = interopDefault(_objectGopn);955 var f$5 = _objectGopn.f;956var require$$0$16 = Object.freeze({957 default: _objectGopn$1,958 f: f$5959 });960 var _objectGopnExt = createCommonjsModule(function (module) {961 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window962 var toIObject = interopDefault(require$$1$7)963 , gOPN = interopDefault(require$$0$16).f964 , toString = {}.toString;965 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames966 ? Object.getOwnPropertyNames(window) : [];967 var getWindowNames = function(it){968 try {969 return gOPN(it);970 } catch(e){971 return windowNames.slice();972 }973 };974 module.exports.f = function getOwnPropertyNames(it){975 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));976 };977 });978 var _objectGopnExt$1 = interopDefault(_objectGopnExt);979 var f$4 = _objectGopnExt.f;980var require$$8 = Object.freeze({981 default: _objectGopnExt$1,982 f: f$4983 });984 var _objectGopd = createCommonjsModule(function (module, exports) {985 var pIE = interopDefault(require$$0$13)986 , createDesc = interopDefault(require$$3$3)987 , toIObject = interopDefault(require$$1$7)988 , toPrimitive = interopDefault(require$$3$2)989 , has = interopDefault(require$$2)990 , IE8_DOM_DEFINE = interopDefault(require$$1$2)991 , gOPD = Object.getOwnPropertyDescriptor;992 exports.f = interopDefault(require$$0$1) ? gOPD : function getOwnPropertyDescriptor(O, P){993 O = toIObject(O);994 P = toPrimitive(P, true);995 if(IE8_DOM_DEFINE)try {996 return gOPD(O, P);997 } catch(e){ /* empty */ }998 if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);999 };1000 });1001 var _objectGopd$1 = interopDefault(_objectGopd);1002 var f$6 = _objectGopd.f;1003var require$$7$1 = Object.freeze({1004 default: _objectGopd$1,1005 f: f$61006 });1007 var es6_symbol = createCommonjsModule(function (module) {1008 'use strict';1009 // ECMAScript 6 symbols shim1010 var global = interopDefault(require$$0)1011 , has = interopDefault(require$$2)1012 , DESCRIPTORS = interopDefault(require$$0$1)1013 , $export = interopDefault(require$$1)1014 , redefine = interopDefault(require$$7)1015 , META = interopDefault(require$$24).KEY1016 , $fails = interopDefault(require$$0$2)1017 , shared = interopDefault(require$$1$4)1018 , setToStringTag = interopDefault(require$$2$2)1019 , uid = interopDefault(require$$0$4)1020 , wks = interopDefault(require$$0$7)1021 , wksExt = interopDefault(require$$1$5)1022 , wksDefine = interopDefault(require$$17)1023 , keyOf = interopDefault(require$$16)1024 , enumKeys = interopDefault(require$$15)1025 , isArray = interopDefault(require$$0$14)1026 , anObject = interopDefault(require$$2$1)1027 , toIObject = interopDefault(require$$1$7)1028 , toPrimitive = interopDefault(require$$3$2)1029 , createDesc = interopDefault(require$$3$3)1030 , _create = interopDefault(require$$4$1)1031 , gOPNExt = interopDefault(require$$8)1032 , $GOPD = interopDefault(require$$7$1)1033 , $DP = interopDefault(require$$3)1034 , $keys = interopDefault(require$$2$3)1035 , gOPD = $GOPD.f1036 , dP = $DP.f1037 , gOPN = gOPNExt.f1038 , $Symbol = global.Symbol1039 , $JSON = global.JSON1040 , _stringify = $JSON && $JSON.stringify1041 , PROTOTYPE = 'prototype'1042 , HIDDEN = wks('_hidden')1043 , TO_PRIMITIVE = wks('toPrimitive')1044 , isEnum = {}.propertyIsEnumerable1045 , SymbolRegistry = shared('symbol-registry')1046 , AllSymbols = shared('symbols')1047 , OPSymbols = shared('op-symbols')1048 , ObjectProto = Object[PROTOTYPE]1049 , USE_NATIVE = typeof $Symbol == 'function'1050 , QObject = global.QObject;1051 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/1731052 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;1053 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=6871054 var setSymbolDesc = DESCRIPTORS && $fails(function(){1055 return _create(dP({}, 'a', {1056 get: function(){ return dP(this, 'a', {value: 7}).a; }1057 })).a != 7;1058 }) ? function(it, key, D){1059 var protoDesc = gOPD(ObjectProto, key);1060 if(protoDesc)delete ObjectProto[key];1061 dP(it, key, D);1062 if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);1063 } : dP;1064 var wrap = function(tag){1065 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);1066 sym._k = tag;1067 return sym;1068 };1069 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){1070 return typeof it == 'symbol';1071 } : function(it){1072 return it instanceof $Symbol;1073 };1074 var $defineProperty = function defineProperty(it, key, D){1075 if(it === ObjectProto)$defineProperty(OPSymbols, key, D);1076 anObject(it);1077 key = toPrimitive(key, true);1078 anObject(D);1079 if(has(AllSymbols, key)){1080 if(!D.enumerable){1081 if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));1082 it[HIDDEN][key] = true;1083 } else {1084 if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;1085 D = _create(D, {enumerable: createDesc(0, false)});1086 } return setSymbolDesc(it, key, D);1087 } return dP(it, key, D);1088 };1089 var $defineProperties = function defineProperties(it, P){1090 anObject(it);1091 var keys = enumKeys(P = toIObject(P))1092 , i = 01093 , l = keys.length1094 , key;1095 while(l > i)$defineProperty(it, key = keys[i++], P[key]);1096 return it;1097 };1098 var $create = function create(it, P){1099 return P === undefined ? _create(it) : $defineProperties(_create(it), P);1100 };1101 var $propertyIsEnumerable = function propertyIsEnumerable(key){1102 var E = isEnum.call(this, key = toPrimitive(key, true));1103 if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;1104 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;1105 };1106 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){1107 it = toIObject(it);1108 key = toPrimitive(key, true);1109 if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;1110 var D = gOPD(it, key);1111 if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;1112 return D;1113 };1114 var $getOwnPropertyNames = function getOwnPropertyNames(it){1115 var names = gOPN(toIObject(it))1116 , result = []1117 , i = 01118 , key;1119 while(names.length > i){1120 if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);1121 } return result;1122 };1123 var $getOwnPropertySymbols = function getOwnPropertySymbols(it){1124 var IS_OP = it === ObjectProto1125 , names = gOPN(IS_OP ? OPSymbols : toIObject(it))1126 , result = []1127 , i = 01128 , key;1129 while(names.length > i){1130 if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);1131 } return result;1132 };1133 // 19.4.1.1 Symbol([description])1134 if(!USE_NATIVE){1135 $Symbol = function Symbol(){1136 if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');1137 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);1138 var $set = function(value){1139 if(this === ObjectProto)$set.call(OPSymbols, value);1140 if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;1141 setSymbolDesc(this, tag, createDesc(1, value));1142 };1143 if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});1144 return wrap(tag);1145 };1146 redefine($Symbol[PROTOTYPE], 'toString', function toString(){1147 return this._k;1148 });1149 $GOPD.f = $getOwnPropertyDescriptor;1150 $DP.f = $defineProperty;1151 interopDefault(require$$0$16).f = gOPNExt.f = $getOwnPropertyNames;1152 interopDefault(require$$0$13).f = $propertyIsEnumerable;1153 interopDefault(require$$4).f = $getOwnPropertySymbols;1154 if(DESCRIPTORS && !interopDefault(require$$9)){1155 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);1156 }1157 wksExt.f = function(name){1158 return wrap(wks(name));1159 }1160 }1161 $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});1162 for(var symbols = (1163 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.141164 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'1165 ).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);1166 for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);1167 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {1168 // 19.4.2.1 Symbol.for(key)1169 'for': function(key){1170 return has(SymbolRegistry, key += '')1171 ? SymbolRegistry[key]1172 : SymbolRegistry[key] = $Symbol(key);1173 },1174 // 19.4.2.5 Symbol.keyFor(sym)1175 keyFor: function keyFor(key){1176 if(isSymbol(key))return keyOf(SymbolRegistry, key);1177 throw TypeError(key + ' is not a symbol!');1178 },1179 useSetter: function(){ setter = true; },1180 useSimple: function(){ setter = false; }1181 });1182 $export($export.S + $export.F * !USE_NATIVE, 'Object', {1183 // 19.1.2.2 Object.create(O [, Properties])1184 create: $create,1185 // 19.1.2.4 Object.defineProperty(O, P, Attributes)1186 defineProperty: $defineProperty,1187 // 19.1.2.3 Object.defineProperties(O, Properties)1188 defineProperties: $defineProperties,1189 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)1190 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,1191 // 19.1.2.7 Object.getOwnPropertyNames(O)1192 getOwnPropertyNames: $getOwnPropertyNames,1193 // 19.1.2.8 Object.getOwnPropertySymbols(O)1194 getOwnPropertySymbols: $getOwnPropertySymbols1195 });1196 // 24.3.2 JSON.stringify(value [, replacer [, space]])1197 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){1198 var S = $Symbol();1199 // MS Edge converts symbol values to JSON as {}1200 // WebKit converts symbol values to JSON as null1201 // V8 throws on boxed symbols1202 return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';1203 })), 'JSON', {1204 stringify: function stringify(it){1205 if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined1206 var args = [it]1207 , i = 11208 , replacer, $replacer;1209 while(arguments.length > i)args.push(arguments[i++]);1210 replacer = args[1];1211 if(typeof replacer == 'function')$replacer = replacer;1212 if($replacer || !isArray(replacer))replacer = function(key, value){1213 if($replacer)value = $replacer.call(this, key, value);1214 if(!isSymbol(value))return value;1215 };1216 args[1] = replacer;1217 return _stringify.apply($JSON, args);1218 }1219 });1220 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)1221 $Symbol[PROTOTYPE][TO_PRIMITIVE] || interopDefault(require$$1$1)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);1222 // 19.4.3.5 Symbol.prototype[@@toStringTag]1223 setToStringTag($Symbol, 'Symbol');1224 // 20.2.1.9 Math[@@toStringTag]1225 setToStringTag(Math, 'Math', true);1226 // 24.3.3 JSON[@@toStringTag]1227 setToStringTag(global.JSON, 'JSON', true);1228 });1229 interopDefault(es6_symbol);1230 var _classof = createCommonjsModule(function (module) {1231 // getting tag from 19.1.3.6 Object.prototype.toString()1232 var cof = interopDefault(require$$1$9)1233 , TAG = interopDefault(require$$0$7)('toStringTag')1234 // ES3 wrong here1235 , ARG = cof(function(){ return arguments; }()) == 'Arguments';1236 // fallback for IE11 Script Access Denied error1237 var tryGet = function(it, key){1238 try {1239 return it[key];1240 } catch(e){ /* empty */ }1241 };1242 module.exports = function(it){1243 var O, T, B;1244 return it === undefined ? 'Undefined' : it === null ? 'Null'1245 // @@toStringTag case1246 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T1247 // builtinTag case1248 : ARG ? cof(O)1249 // ES3 arguments fallback1250 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;1251 };1252 });1253 var _classof$1 = interopDefault(_classof);1254 var require$$2$4 = Object.freeze({1255 default: _classof$11256 });1257 var es6_object_toString = createCommonjsModule(function (module) {1258 'use strict';1259 // 19.1.3.6 Object.prototype.toString()1260 var classof = interopDefault(require$$2$4)1261 , test = {};1262 test[interopDefault(require$$0$7)('toStringTag')] = 'z';1263 if(test + '' != '[object z]'){1264 interopDefault(require$$7)(Object.prototype, 'toString', function toString(){1265 return '[object ' + classof(this) + ']';1266 }, true);1267 }1268 });1269 interopDefault(es6_object_toString);1270 var symbol = createCommonjsModule(function (module) {1271 module.exports = interopDefault(require$$0$3).Symbol;1272 });1273 interopDefault(symbol);1274 var _addToUnscopables = createCommonjsModule(function (module) {1275 // 22.1.3.31 Array.prototype[@@unscopables]1276 var UNSCOPABLES = interopDefault(require$$0$7)('unscopables')1277 , ArrayProto = Array.prototype;1278 if(ArrayProto[UNSCOPABLES] == undefined)interopDefault(require$$1$1)(ArrayProto, UNSCOPABLES, {});1279 module.exports = function(key){1280 ArrayProto[UNSCOPABLES][key] = true;1281 };1282 });1283 var _addToUnscopables$1 = interopDefault(_addToUnscopables);1284 var require$$4$3 = Object.freeze({1285 default: _addToUnscopables$11286 });1287 var _iterStep = createCommonjsModule(function (module) {1288 module.exports = function(done, value){1289 return {value: value, done: !!done};1290 };1291 });1292 var _iterStep$1 = interopDefault(_iterStep);1293 var require$$3$4 = Object.freeze({1294 default: _iterStep$11295 });1296 var _iterators = createCommonjsModule(function (module) {1297 module.exports = {};1298 });1299 var _iterators$1 = interopDefault(_iterators);1300 var require$$4$4 = Object.freeze({1301 default: _iterators$11302 });1303 var _iterCreate = createCommonjsModule(function (module) {1304 'use strict';1305 var create = interopDefault(require$$4$1)1306 , descriptor = interopDefault(require$$3$3)1307 , setToStringTag = interopDefault(require$$2$2)1308 , IteratorPrototype = {};1309 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()1310 interopDefault(require$$1$1)(IteratorPrototype, interopDefault(require$$0$7)('iterator'), function(){ return this; });1311 module.exports = function(Constructor, NAME, next){1312 Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});1313 setToStringTag(Constructor, NAME + ' Iterator');1314 };1315 });1316 var _iterCreate$1 = interopDefault(_iterCreate);1317 var require$$3$5 = Object.freeze({1318 default: _iterCreate$11319 });1320 var _toObject = createCommonjsModule(function (module) {1321 // 7.1.13 ToObject(argument)1322 var defined = interopDefault(require$$0$8);1323 module.exports = function(it){1324 return Object(defined(it));1325 };1326 });1327 var _toObject$1 = interopDefault(_toObject);1328 var require$$2$5 = Object.freeze({1329 default: _toObject$11330 });1331 var _objectGpo = createCommonjsModule(function (module) {1332 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)1333 var has = interopDefault(require$$2)1334 , toObject = interopDefault(require$$2$5)1335 , IE_PROTO = interopDefault(require$$0$11)('IE_PROTO')1336 , ObjectProto = Object.prototype;1337 module.exports = Object.getPrototypeOf || function(O){1338 O = toObject(O);1339 if(has(O, IE_PROTO))return O[IE_PROTO];1340 if(typeof O.constructor == 'function' && O instanceof O.constructor){1341 return O.constructor.prototype;1342 } return O instanceof Object ? ObjectProto : null;1343 };1344 });1345 var _objectGpo$1 = interopDefault(_objectGpo);1346 var require$$1$12 = Object.freeze({1347 default: _objectGpo$11348 });1349 var _iterDefine = createCommonjsModule(function (module) {1350 'use strict';1351 var LIBRARY = interopDefault(require$$9)1352 , $export = interopDefault(require$$1)1353 , redefine = interopDefault(require$$7)1354 , hide = interopDefault(require$$1$1)1355 , has = interopDefault(require$$2)1356 , Iterators = interopDefault(require$$4$4)1357 , $iterCreate = interopDefault(require$$3$5)1358 , setToStringTag = interopDefault(require$$2$2)1359 , getPrototypeOf = interopDefault(require$$1$12)1360 , ITERATOR = interopDefault(require$$0$7)('iterator')1361 , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`1362 , FF_ITERATOR = '@@iterator'1363 , KEYS = 'keys'1364 , VALUES = 'values';1365 var returnThis = function(){ return this; };1366 module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){1367 $iterCreate(Constructor, NAME, next);1368 var getMethod = function(kind){1369 if(!BUGGY && kind in proto)return proto[kind];1370 switch(kind){1371 case KEYS: return function keys(){ return new Constructor(this, kind); };1372 case VALUES: return function values(){ return new Constructor(this, kind); };1373 } return function entries(){ return new Constructor(this, kind); };1374 };1375 var TAG = NAME + ' Iterator'1376 , DEF_VALUES = DEFAULT == VALUES1377 , VALUES_BUG = false1378 , proto = Base.prototype1379 , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]1380 , $default = $native || getMethod(DEFAULT)1381 , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined1382 , $anyNative = NAME == 'Array' ? proto.entries || $native : $native1383 , methods, key, IteratorPrototype;1384 // Fix native1385 if($anyNative){1386 IteratorPrototype = getPrototypeOf($anyNative.call(new Base));1387 if(IteratorPrototype !== Object.prototype){1388 // Set @@toStringTag to native iterators1389 setToStringTag(IteratorPrototype, TAG, true);1390 // fix for some old engines1391 if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);1392 }1393 }1394 // fix Array#{values, @@iterator}.name in V8 / FF1395 if(DEF_VALUES && $native && $native.name !== VALUES){1396 VALUES_BUG = true;1397 $default = function values(){ return $native.call(this); };1398 }1399 // Define iterator1400 if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){1401 hide(proto, ITERATOR, $default);1402 }1403 // Plug for library1404 Iterators[NAME] = $default;1405 Iterators[TAG] = returnThis;1406 if(DEFAULT){1407 methods = {1408 values: DEF_VALUES ? $default : getMethod(VALUES),1409 keys: IS_SET ? $default : getMethod(KEYS),1410 entries: $entries1411 };1412 if(FORCED)for(key in methods){1413 if(!(key in proto))redefine(proto, key, methods[key]);1414 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);1415 }1416 return methods;1417 };1418 });1419 var _iterDefine$1 = interopDefault(_iterDefine);1420 var require$$0$17 = Object.freeze({1421 default: _iterDefine$11422 });1423 var es6_array_iterator = createCommonjsModule(function (module) {1424 'use strict';1425 var addToUnscopables = interopDefault(require$$4$3)1426 , step = interopDefault(require$$3$4)1427 , Iterators = interopDefault(require$$4$4)1428 , toIObject = interopDefault(require$$1$7);1429 // 22.1.3.4 Array.prototype.entries()1430 // 22.1.3.13 Array.prototype.keys()1431 // 22.1.3.29 Array.prototype.values()1432 // 22.1.3.30 Array.prototype[@@iterator]()1433 module.exports = interopDefault(require$$0$17)(Array, 'Array', function(iterated, kind){1434 this._t = toIObject(iterated); // target1435 this._i = 0; // next index1436 this._k = kind; // kind1437 // 22.1.5.2.1 %ArrayIteratorPrototype%.next()1438 }, function(){1439 var O = this._t1440 , kind = this._k1441 , index = this._i++;1442 if(!O || index >= O.length){1443 this._t = undefined;1444 return step(1);1445 }1446 if(kind == 'keys' )return step(0, index);1447 if(kind == 'values')return step(0, O[index]);1448 return step(0, [index, O[index]]);1449 }, 'values');1450 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)1451 Iterators.Arguments = Iterators.Array;1452 addToUnscopables('keys');1453 addToUnscopables('values');1454 addToUnscopables('entries');1455 });1456 interopDefault(es6_array_iterator);1457 var iterator = createCommonjsModule(function (module) {1458 module.exports = interopDefault(require$$0$3).Array.values;1459 });1460 interopDefault(iterator);1461 var _objectAssign = createCommonjsModule(function (module) {1462 'use strict';1463 // 19.1.2.1 Object.assign(target, source, ...)1464 var getKeys = interopDefault(require$$2$3)1465 , gOPS = interopDefault(require$$4)1466 , pIE = interopDefault(require$$0$13)1467 , toObject = interopDefault(require$$2$5)1468 , IObject = interopDefault(require$$1$8)1469 , $assign = Object.assign;1470 // should work with symbols and should have deterministic property order (V8 bug)1471 module.exports = !$assign || interopDefault(require$$0$2)(function(){1472 var A = {}1473 , B = {}1474 , S = Symbol()1475 , K = 'abcdefghijklmnopqrst';1476 A[S] = 7;1477 K.split('').forEach(function(k){ B[k] = k; });1478 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;1479 }) ? function assign(target, source){ // eslint-disable-line no-unused-vars1480 var T = toObject(target)1481 , aLen = arguments.length1482 , index = 11483 , getSymbols = gOPS.f1484 , isEnum = pIE.f;1485 while(aLen > index){1486 var S = IObject(arguments[index++])1487 , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)1488 , length = keys.length1489 , j = 01490 , key;1491 while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];1492 } return T;1493 } : $assign;1494 });1495 var _objectAssign$1 = interopDefault(_objectAssign);1496 var require$$0$18 = Object.freeze({1497 default: _objectAssign$11498 });1499 var es6_object_assign = createCommonjsModule(function (module) {1500 // 19.1.3.1 Object.assign(target, source)1501 var $export = interopDefault(require$$1);1502 $export($export.S + $export.F, 'Object', {assign: interopDefault(require$$0$18)});1503 });1504 interopDefault(es6_object_assign);1505 var assign = createCommonjsModule(function (module) {1506 module.exports = interopDefault(require$$0$3).Object.assign;1507 });1508 interopDefault(assign);1509 var es6_array_isArray = createCommonjsModule(function (module) {1510 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)1511 var $export = interopDefault(require$$1);1512 $export($export.S, 'Array', {isArray: interopDefault(require$$0$14)});1513 });1514 interopDefault(es6_array_isArray);1515 var isArray = createCommonjsModule(function (module) {1516 module.exports = interopDefault(require$$0$3).Array.isArray;1517 });1518 interopDefault(isArray);1519 var _objectToArray = createCommonjsModule(function (module) {1520 var getKeys = interopDefault(require$$2$3)1521 , toIObject = interopDefault(require$$1$7)1522 , isEnum = interopDefault(require$$0$13).f;1523 module.exports = function(isEntries){1524 return function(it){1525 var O = toIObject(it)1526 , keys = getKeys(O)1527 , length = keys.length1528 , i = 01529 , result = []1530 , key;1531 while(length > i)if(isEnum.call(O, key = keys[i++])){1532 result.push(isEntries ? [key, O[key]] : O[key]);1533 } return result;1534 };1535 };1536 });1537 var _objectToArray$1 = interopDefault(_objectToArray);1538 var require$$0$19 = Object.freeze({1539 default: _objectToArray$11540 });1541 var es7_object_values = createCommonjsModule(function (module) {1542 // https://github.com/tc39/proposal-object-values-entries1543 var $export = interopDefault(require$$1)1544 , $values = interopDefault(require$$0$19)(false);1545 $export($export.S, 'Object', {1546 values: function values(it){1547 return $values(it);1548 }1549 });1550 });1551 interopDefault(es7_object_values);1552 var values = createCommonjsModule(function (module) {1553 module.exports = interopDefault(require$$0$3).Object.values;1554 });1555 interopDefault(values);1556 var doc;1557 var cursor;1558 var styleModifiers;1559 var pageSize;1560 var settings;1561 var table;1562 // The current Table instance1563 /**1564 * Create a table from a set of rows and columns.1565 *1566 * @param {Object[]|String[]} headers Either as an array of objects or array of strings...
Using AI Code Generation
1var chai = require('chai');2var expect = chai.expect;3var assert = chai.assert;4var should = chai.should();5var chai = require('chai');6var expect = chai.expect;7var assert = chai.assert;8var should = chai.should();9var chai = require('chai');10var expect = chai.expect;11var assert = chai.assert;12var should = chai.should();13var chai = require('chai');14var expect = chai.expect;15var assert = chai.assert;16var should = chai.should();17var chai = require('chai');18var expect = chai.expect;19var assert = chai.assert;20var should = chai.should();21var chai = require('chai');22var expect = chai.expect;23var assert = chai.assert;24var should = chai.should();25var chai = require('chai');26var expect = chai.expect;27var assert = chai.assert;28var should = chai.should();29var chai = require('chai');30var expect = chai.expect;31var assert = chai.assert;32var should = chai.should();33var chai = require('chai');34var expect = chai.expect;35var assert = chai.assert;36var should = chai.should();37var chai = require('chai');38var expect = chai.expect;39var assert = chai.assert;40var should = chai.should();41var chai = require('chai');
Using AI Code Generation
1const chai = require('chai');2const expect = chai.expect;3const should = chai.should();4const assert = chai.assert;5const chaiHttp = require('chai-http');6const app = require('../app.js');7chai.use(chaiHttp);8describe('Test', () => {9 it('Test', (done) => {10 chai.request(app)11 .get('/test')12 .end((err, res) => {13 res.should.have.status(200);14 done();15 });16 });17});18const express = require('express');19const app = express();20app.get('/test', (req, res) => {21 res.status(200).send('test');22});23module.exports = app;24const chai = require('chai');25const expect = chai.expect;26const should = chai.should();27const assert = chai.assert;28const chaiHttp = require('chai-http');29const app = require('../app.js');30chai.use(chaiHttp);31describe('Test', () => {32 it('Test', (done) => {33 chai.request(app)34 .get('/test')35 .end((err, res) => {36 res.should.have.status(200);37 done();38 });39 });40});41const express = require('express');42const app = express();43app.get('/test', (req, res) => {44 res.status(200).send('test');45});46module.exports = app;
Using AI Code Generation
1const chai = require('chai')2const should = chai.should()3const chaiAsPromised = require('chai-as-promised')4chai.use(chaiAsPromised)5const { createCommonjsModule } = require('module')6const myModule = createCommonjsModule(function (module, exports) {7})8describe('Test myModule', () => {9 it('should do something', () => {10 })11})12describe('Test myModule', () => {13 it('should do something', () => {14 })15})16describe('Test myModule', () => {17 it('should do something', () => {18 })19})20describe('Test myModule', () => {21 it('should do something', () => {22 })23})24describe('Test myModule', () => {25 it('should do something', () => {26 })27})28describe('Test myModule', () => {29 it('should do something', () => {30 })31})32describe('Test myModule', () => {33 it('should do something', () => {34 })35})36describe('Test myModule', () => {37 it('should do something', () => {38 })39})40describe('Test myModule', () => {41 it('should do something', () => {42 })43})44describe('Test myModule', () => {45 it('should do something', () => {46 })47})48describe('Test myModule', () => {49 it('should do something', () => {50 })51})52describe('Test
Using AI Code Generation
1var chai = require('chai');2var expect = chai.expect;3var assert = chai.assert;4var chai = require('chai');5var expect = chai.expect;6var assert = chai.assert;7var chai = require('chai');8var expect = chai.expect;9var assert = chai.assert;10var chai = require('chai');11var expect = chai.expect;12var assert = chai.assert;13var chai = require('chai');14var expect = chai.expect;15var assert = chai.assert;16var chai = require('chai');17var expect = chai.expect;18var assert = chai.assert;19var chai = require('chai');20var expect = chai.expect;21var assert = chai.assert;22var chai = require('chai');23var expect = chai.expect;24var assert = chai.assert;25var chai = require('chai');26var expect = chai.expect;27var assert = chai.assert;28var chai = require('chai');29var expect = chai.expect;30var assert = chai.assert;31var chai = require('chai');32var expect = chai.expect;33var assert = chai.assert;34var chai = require('chai');35var expect = chai.expect;36var assert = chai.assert;
Using AI Code Generation
1var chai = require('chai');2var expect = chai.expect;3var should = chai.should();4var assert = chai.assert;5describe('test', function() {6 it('should be true', function() {7 expect(true).to.be.true;8 });9});10{11 "scripts": {12 },13 "devDependencies": {14 }15}16{17}18{19 "rules": {
Using AI Code Generation
1var chai = require('chai');2var expect = chai.expect;3var assert = chai.assert;4var should = chai.should();5var chai = require('chai');6var expect = chai.expect;7var assert = chai.assert;8var should = chai.should();9var chai = require('chai');10var expect = chai.expect;11var assert = chai.assert;12var should = chai.should();13var chai = require('chai');14var expect = chai.expect;15var assert = chai.assert;16var should = chai.should();17var chai = require('chai');18var expect = chai.expect;19var assert = chai.assert;20var should = chai.should();21var chai = require('chai');22var expect = chai.expect;23var assert = chai.assert;24var should = chai.should();25var chai = require('chai');26var expect = chai.expect;27var assert = chai.assert;28var should = chai.should();29var chai = require('chai');30var expect = chai.expect;31var assert = chai.assert;32var should = chai.should();33var chai = require('chai');34var expect = chai.expect;35var assert = chai.assert;36var should = chai.should();37var chai = require('chai');38var expect = chai.expect;39var assert = chai.assert;40var should = chai.should();41var chai = require('chai');42var expect = chai.expect;43var assert = chai.assert;44var should = chai.should();45var chai = require('chai');46var expect = chai.expect;47var assert = chai.assert;48var should = chai.should();
Using AI Code Generation
1const chai = require('chai');2const expect = chai.expect;3const should = chai.should();4const assert = chai.assert;5const chaiHttp = require('chai-http');6chai.use(chaiHttp);7const server = require('../server');8describe('Server!', function() {9 it('should exist', function() {10 expect(server).to.exist;11 });12});13describe('API', function() {14 it('should return json', function() {15 expect(server).to.exist;16 return chai.request(server)17 .get('/api')18 .then(function(res) {19 expect(res).to.have.status(200);20 expect(res).to.be.json;21 });22 });23});24describe('API', function() {25 it('should return json', function() {26 expect(server).to.exist;27 return chai.request(server)28 .get('/api')29 .then(function(res) {30 expect(res).to.have.status(200);31 expect(res).to.be.json;32 expect(res.body).to.be.an('object');33 expect(res.body).to.have.all.keys('data');34 expect(res.body.data).to.be.an('array');35 expect(res.body.data).to.have.lengthOf.at.least(1);36 const expectedKeys = ['id', 'title', 'content', 'author', 'publishDate'];37 res.body.data.forEach(function(item) {38 expect(item).to.be.an('object');39 expect(item).to.include.keys(expectedKeys);40 });41 });42 });43});44describe('API', function() {45 it('should return an array of objects with id, title, content, author, publishDate', function() {46 expect(server).to.exist;47 return chai.request(server)48 .get('/api')49 .then(function(res) {50 expect(res).to.have.status(200);51 expect(res).to.be.json;52 expect(res.body).to.be.an('object');53 expect(res.body).to.have.all.keys('data');54 expect(res.body.data).to.be.an('array');55 expect(res.body.data).to.have.lengthOf.at.least(1);56 const expectedKeys = ['id', 'title', 'content', 'author', 'publishDate'];57 res.body.data.forEach(function(item
Using AI Code Generation
1const chai = require('chai');2const { expect } = chai;3const { createCommonjsModule } = require('module');4const { createRequire } = require('module');5const require = createRequire(import.meta.url);6const { createRequireFromPath } = require('module');7const require = createRequireFromPath(import.meta.url);8const chai = require('chai');9const { expect } = chai;10const chai = require('chai');11const { expect } = chai;12const chai = require('chai');13const { expect } = chai;14const chai = require('chai');15const { expect } = chai;16const chai = require('chai');17const { expect } = chai;18const chai = require('chai');19const { expect } = chai;20const chai = require('chai');21const { expect } = chai;22const chai = require('chai');23const { expect } = chai;24const chai = require('chai');25const { expect } = chai;26const chai = require('chai');27const { expect } = chai;28const chai = require('chai');29const { expect } = chai;30const chai = require('chai');31const { expect } = chai;32const chai = require('chai');33const { expect } = chai;34const chai = require('chai');35const { expect } = chai;36const chai = require('chai');37const { expect } = chai;38const chai = require('chai');39const { expect } = chai;40const chai = require('chai');41const { expect } = chai;
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!