From 4b2a5de4b8908d3c2b41d8a9965aeb80209a0d1d Mon Sep 17 00:00:00 2001 From: gomorizsolt Date: Wed, 29 Apr 2020 07:16:05 +0000 Subject: [PATCH] Update distified version --- dist/team-contribution-calendar.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/team-contribution-calendar.min.js b/dist/team-contribution-calendar.min.js index f75f7eb..6adcfeb 100644 --- a/dist/team-contribution-calendar.min.js +++ b/dist/team-contribution-calendar.min.js @@ -1 +1 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.TeamContributionCalendar=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;ia&&(b="#c6e48b"),10<=a&&20>a&&(b="#7bc96f"),20<=a&&30>a&&(b="#239a3b"),30<=a&&(b="#196127"),b};exports.getFillColor=getFillColor;var getCalendarDataByIndexes=function(a,b,c){return javaScriptUtils.isDefined(c)?a.children[0].children[b].children[c]:a.children[0].children[b]};exports.getCalendarDataByIndexes=getCalendarDataByIndexes;var elementExists=function(a){var b=(0,_elly["default"])(a);return javaScriptUtils.isDefined(b)};exports.elementExists=elementExists;var filterContributionDays=function(a,b){var c="day"===a.attributes["class"];if(!c)return!1;if(!b.start&&!b.end)return!0;var d=new Date(a.attributes["data-date"]);return b.start&&!b.end?d>=new Date(b.start):!b.start&&b.end?d<=new Date(b.end):d>=new Date(b.start)&&d<=new Date(b.end)};exports.filterContributionDays=filterContributionDays},{"../JavaScriptUtils/JavaScriptUtils":14,"@babel/runtime/helpers/interopRequireDefault":23,"@babel/runtime/helpers/interopRequireWildcard":24,elly:31}],11:[function(require,module,exports){"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.contributionsWithDateText=exports.tooltip=exports.header=exports.svgContainer=exports.container=void 0;var _elly=_interopRequireDefault(require("elly")),colorSchemas=_interopRequireWildcard(require("../../resources/ColorSchemas/ColorSchemas")),_ElementIds=_interopRequireDefault(require("../../resources/ElementIds/ElementIds")),LoaderIcon='',container=function(a){var b=(0,_elly["default"])(a);return b.style.display="inline-block",b.style.width="700px",b.style.borderTopLeftRadius="3px",b.style.borderTopRightRadius="3px",b.style.border="1px solid #E1E4E8",b.style.padding="10px 20px",b.style.minWidth="350px",b.style.fontSize="14px",b};exports.container=container;var svgContainer=function(){var a=document.createElement("DIV");return a.id=_ElementIds["default"].SVG_CONTAINER,a};exports.svgContainer=svgContainer;var getColorElement=function(a){var b=document.createElement("LI");return b.style.width="10px",b.style.height="10px",b.style.display="inline-block",b.style.margin="0 2px",b.style.backgroundColor=a,b},getColorsList=function(){var a=document.createElement("UL");a.style.listStyle="none",colorSchemas.gitHub.forEach(function(b){var c=getColorElement(b);a.appendChild(c)});var b=document.createElement("SPAN");b.innerText="Less",b.style.margin="0 5px",b.style.color="#767676";var c=document.createElement("SPAN");return c.innerText="More",c.style.margin="0 5px",c.style.color="#767676",a.insertBefore(b,a.childNodes[0]),a.insertBefore(c,a.nextSibling),a},header=function(a,b){var c=document.createElement("DIV"),d=getColorsList();c.id=_ElementIds["default"].HEADER,c.style.fontSize="1em";var e=document.createElement("P");return e.innerHTML=LoaderIcon,b&&(e.style.height="15px"),b||(e.innerText="".concat(a," contributions in the last year")),c.appendChild(e),c.appendChild(d),c.style.display="flex",c.style.justifyContent="space-between",c.style.alignItems="center",c};exports.header=header;var tooltip=function(){var a=document.createElement("DIV");return a.id=_ElementIds["default"].TOOLTIP,a.style.background="rgba(0, 0, 0, 0.8)",a.style.borderRadius="3px",a.style.fontSize="12px",a.style.padding="10px",a.style.textAlign="center",a.style.position="absolute",a.style.display="none",a.style.left="0px",a.style.top="0px",a};exports.tooltip=tooltip;var getDateText=function(a){var b=document.createElement("SPAN");return b.style.color="#959DA5",b.style.fontWeight="normal",b.innerText=" on ".concat(a),b},contributionsWithDateText=function(a,b){var c=document.createElement("SPAN");c.style.color="#FFFFFF",c.style.fontWeight="bold",c.innerText="No contributions",0arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method==="next"){this.arg=undefined}return ContinueSentinel}};return exports}(typeof module==="object"?module.exports:{});try{regeneratorRuntime=runtime}catch(accidentalStrictMode){Function("r","regeneratorRuntime = r")(runtime)}},{}],34:[function(require,module,exports){module.exports=function(args,slice,sliceEnd){var ret=[];var len=args.length;if(0===len)return ret;var start=slice<0?Math.max(0,slice+len):slice||0;if(sliceEnd!==undefined){len=sliceEnd<0?sliceEnd+len:sliceEnd}while(len-- >start){ret[len-start]=args[len]}return ret}},{}],35:[function(require,module,exports){(function(global){(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define(factory):(global=global||self,global.svgson=factory())})(this,function(){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _objectSpread(target){for(var i=1;i-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&(type=="object"||type=="function")}function isObjectLike(value){return!!value&&typeof value=="object"}function stubFalse(){return false}module.exports=isEmpty});var objectTag="[object Object]";function isHostObject(value){var result=false;if(value!=null&&typeof value.toString!="function"){try{result=!!(value+"")}catch(e){}}return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}var funcProto=Function.prototype,objectProto=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var objectCtorString=funcToString.call(Object);var objectToString=objectProto.toString;var getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(value){return!!value&&typeof value=="object"}function isPlainObject$1(value){if(!isObjectLike(value)||objectToString.call(value)!=objectTag||isHostObject(value)){return false}var proto=getPrototype(value);if(proto===null){return true}var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}var lodash_isplainobject=isPlainObject$1;var lodash_transform=createCommonjsModule(function(module,exports){var LARGE_ARRAY_SIZE=200;var FUNC_ERROR_TEXT="Expected a function";var HASH_UNDEFINED="__lodash_hash_undefined__";var UNORDERED_COMPARE_FLAG=1,PARTIAL_COMPARE_FLAG=2;var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",promiseTag="[object Promise]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reEscapeChar=/\\(\\)?/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var reIsUint=/^(?:0|[1-9]\d*)$/;var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;var freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&"object"=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{return freeProcess&&freeProcess.binding("util")}catch(e){}}();var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function arrayEach(array,iteratee){var index=-1,length=array?array.length:0;while(++index-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value])}else{data[index][1]=value}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++indexarrLength)){return false}var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other}var index=-1,result=true,seen=bitmask&UNORDERED_COMPARE_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&(type=="object"||type=="function")}function isObjectLike(value){return!!value&&typeof value=="object"}function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&objectToString.call(value)==symbolTag}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;function toString(value){return value==null?"":baseToString(value)}function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result}function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function transform(object,iteratee,accumulator){var isArr=isArray(object)||isTypedArray(object);iteratee=baseIteratee(iteratee,4);if(accumulator==null){if(isArr||isObject(object)){var Ctor=object.constructor;if(isArr){accumulator=isArray(object)?new Ctor:[]}else{accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{}}}else{accumulator={}}}(isArr?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator}function identity(value){return value}function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}module.exports=transform});var dist=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=cleanDeep;var _lodash2=_interopRequireDefault(lodash_isempty);var _lodash4=_interopRequireDefault(lodash_isplainobject);var _lodash6=_interopRequireDefault(lodash_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function cleanDeep(object){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$emptyArrays=_ref.emptyArrays,emptyArrays=_ref$emptyArrays===undefined?true:_ref$emptyArrays,_ref$emptyObjects=_ref.emptyObjects,emptyObjects=_ref$emptyObjects===undefined?true:_ref$emptyObjects,_ref$emptyStrings=_ref.emptyStrings,emptyStrings=_ref$emptyStrings===undefined?true:_ref$emptyStrings,_ref$nullValues=_ref.nullValues,nullValues=_ref$nullValues===undefined?true:_ref$nullValues,_ref$undefinedValues=_ref.undefinedValues,undefinedValues=_ref$undefinedValues===undefined?true:_ref$undefinedValues;return(0,_lodash6.default)(object,function(result,value,key){if(Array.isArray(value)||(0,_lodash4.default)(value)){value=cleanDeep(value,{emptyArrays:emptyArrays,emptyObjects:emptyObjects,emptyStrings:emptyStrings,nullValues:nullValues,undefinedValues:undefinedValues})}if(emptyObjects&&(0,_lodash4.default)(value)&&(0,_lodash2.default)(value)){return}if(emptyArrays&&Array.isArray(value)&&!value.length){return}if(emptyStrings&&value===""){return}if(nullValues&&value===null){return}if(undefinedValues&&value===undefined){return}if(Array.isArray(result)){return result.push(value)}result[key]=value})}module.exports=exports["default"]});var clean=unwrapExports(dist);var eventemitter3=createCommonjsModule(function(module){var has=Object.prototype.hasOwnProperty,prefix="~";function Events(){}if(Object.create){Events.prototype=Object.create(null);if(!(new Events).__proto__)prefix=false}function EE(fn,context,once){this.fn=fn;this.context=context;this.once=once||false}function EventEmitter(){this._events=new Events;this._eventsCount=0}EventEmitter.prototype.eventNames=function eventNames(){var names=[],events,name;if(this._eventsCount===0)return names;for(name in events=this._events){if(has.call(events,name))names.push(prefix?name.slice(1):name)}if(Object.getOwnPropertySymbols){return names.concat(Object.getOwnPropertySymbols(events))}return names};EventEmitter.prototype.listeners=function listeners(event,exists){var evt=prefix?prefix+event:event,available=this._events[evt];if(exists)return!!available;if(!available)return[];if(available.fn)return[available.fn];for(var i=0,l=available.length,ee=new Array(l);i":Action.gt,'"':Action.quote,"'":Action.quote,"=":Action.equal,"/":Action.slash};var getAction=function getAction(char){return charToAction[char]||Action.char};var create=function create(options){var _State$data,_State$tagBegin,_State$tagName,_State$tagEnd,_State$attributeNameS,_State$attributeName,_State$attributeNameE,_State$attributeValue,_State$attributeValue2,_lexer$stateMachine;options=Object.assign({debug:false},options);var lexer=new eventemitter3;var state=State.data;var data="";var tagName="";var attrName="";var attrValue="";var isClosing="";var openingQuote="";var emit=function emit(type,value){if(tagName[0]==="?"||tagName[0]==="!"){return}var event={type:type,value:value};if(options.debug){console.log("emit:",event)}lexer.emit("data",event)};lexer.stateMachine=(_lexer$stateMachine={},_defineProperty$1(_lexer$stateMachine,State.data,(_State$data={},_defineProperty$1(_State$data,Action.lt,function(){if(data.trim()){emit(Type.text,data)}tagName="";isClosing=false;state=State.tagBegin}),_defineProperty$1(_State$data,Action.char,function(char){data+=char}),_State$data)),_defineProperty$1(_lexer$stateMachine,State.cdata,_defineProperty$1({},Action.char,function(char){data+=char;if(data.substr(-3)==="]]>"){emit(Type.text,data.slice(0,-3));data="";state=State.data}})),_defineProperty$1(_lexer$stateMachine,State.tagBegin,(_State$tagBegin={},_defineProperty$1(_State$tagBegin,Action.space,noop),_defineProperty$1(_State$tagBegin,Action.char,function(char){tagName=char;state=State.tagName}),_defineProperty$1(_State$tagBegin,Action.slash,function(){tagName="";isClosing=true}),_State$tagBegin)),_defineProperty$1(_lexer$stateMachine,State.tagName,(_State$tagName={},_defineProperty$1(_State$tagName,Action.space,function(){if(isClosing){state=State.tagEnd}else{state=State.attributeNameStart;emit(Type.openTag,tagName)}}),_defineProperty$1(_State$tagName,Action.gt,function(){if(isClosing){emit(Type.closeTag,tagName)}else{emit(Type.openTag,tagName)}data="";state=State.data}),_defineProperty$1(_State$tagName,Action.slash,function(){state=State.tagEnd;emit(Type.openTag,tagName)}),_defineProperty$1(_State$tagName,Action.char,function(char){tagName+=char;if(tagName==="![CDATA["){state=State.cdata;data="";tagName=""}}),_State$tagName)),_defineProperty$1(_lexer$stateMachine,State.tagEnd,(_State$tagEnd={},_defineProperty$1(_State$tagEnd,Action.gt,function(){emit(Type.closeTag,tagName);data="";state=State.data}),_defineProperty$1(_State$tagEnd,Action.char,noop),_State$tagEnd)),_defineProperty$1(_lexer$stateMachine,State.attributeNameStart,(_State$attributeNameS={},_defineProperty$1(_State$attributeNameS,Action.char,function(char){attrName=char;state=State.attributeName}),_defineProperty$1(_State$attributeNameS,Action.gt,function(){data="";state=State.data}),_defineProperty$1(_State$attributeNameS,Action.space,noop),_defineProperty$1(_State$attributeNameS,Action.slash,function(){isClosing=true;state=State.tagEnd}),_State$attributeNameS)),_defineProperty$1(_lexer$stateMachine,State.attributeName,(_State$attributeName={},_defineProperty$1(_State$attributeName,Action.space,function(){state=State.attributeNameEnd}),_defineProperty$1(_State$attributeName,Action.equal,function(){emit(Type.attributeName,attrName);state=State.attributeValueBegin}),_defineProperty$1(_State$attributeName,Action.gt,function(){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeName,Action.slash,function(){isClosing=true;attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);state=State.tagEnd}),_defineProperty$1(_State$attributeName,Action.char,function(char){attrName+=char}),_State$attributeName)),_defineProperty$1(_lexer$stateMachine,State.attributeNameEnd,(_State$attributeNameE={},_defineProperty$1(_State$attributeNameE,Action.space,noop),_defineProperty$1(_State$attributeNameE,Action.equal,function(){emit(Type.attributeName,attrName);state=State.attributeValueBegin}),_defineProperty$1(_State$attributeNameE,Action.gt,function(){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeNameE,Action.char,function(char){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);attrName=char;state=State.attributeName}),_State$attributeNameE)),_defineProperty$1(_lexer$stateMachine,State.attributeValueBegin,(_State$attributeValue={},_defineProperty$1(_State$attributeValue,Action.space,noop),_defineProperty$1(_State$attributeValue,Action.quote,function(char){openingQuote=char;attrValue="";state=State.attributeValue}),_defineProperty$1(_State$attributeValue,Action.gt,function(){attrValue="";emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeValue,Action.char,function(char){openingQuote="";attrValue=char;state=State.attributeValue}),_State$attributeValue)),_defineProperty$1(_lexer$stateMachine,State.attributeValue,(_State$attributeValue2={},_defineProperty$1(_State$attributeValue2,Action.space,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);state=State.attributeNameStart}}),_defineProperty$1(_State$attributeValue2,Action.quote,function(char){if(openingQuote===char){emit(Type.attributeValue,attrValue);state=State.attributeNameStart}else{attrValue+=char}}),_defineProperty$1(_State$attributeValue2,Action.gt,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);data="";state=State.data}}),_defineProperty$1(_State$attributeValue2,Action.slash,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);isClosing=true;state=State.tagEnd}}),_defineProperty$1(_State$attributeValue2,Action.char,function(char){attrValue+=char}),_State$attributeValue2)),_lexer$stateMachine);var step=function step(char){if(options.debug){console.log(state,char)}var actions=lexer.stateMachine[state];var action=actions[getAction(char)]||actions[Action.error]||actions[Action.char];action(char)};lexer.write=function(str){var len=str.length;for(var i=0;i1;var isValid=hasMoreChildren?parsed.children.reduce(function(acc,_ref){var name=_ref.name;return!acc?name==="svg":true},false):parsed.children[0].name==="svg";if(isValid){return hasMoreChildren?parsed:parsed.children[0]}else{throw Error("nothing to parse")}};var removeDoctype=function removeDoctype(input){return input.replace(/<[\/]{0,1}(\!?DOCTYPE|\??xml)[^><]*>/gi,"")};var wrapInput=function wrapInput(input){return"".concat(input,"")};var removeAttrs=function removeAttrs(obj){return omitDeep(obj,["parent"])};var applyCompat=function applyCompat(node){var renamed=deepRenameKeys(node,function(key){if(key==="attributes"){return"attrs"}if(key==="children"){return"childs"}return key});return omitDeep(clean(renamed),["type"])};var camelize=function camelize(node){return deepRenameKeys(node,function(key){if(!notCamelcase(key)){return toCamelCase(key)}return key})};var toCamelCase=function toCamelCase(prop){return prop.replace(/[-|:]([a-z])/gi,function(all,letter){return letter.toUpperCase()})};var notCamelcase=function notCamelcase(prop){return/^(data|aria)(-\w+)/.test(prop)};var escapeText=function escapeText(text){if(text){var str=String(text);return/[&<>]/.test(str)?"/,"]]]]>"),"]]>"):str}return""};var escapeAttr=function escapeAttr(attr){return String(attr).replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")};var svgsonSync=function svgsonSync(input){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$transformNode=_ref.transformNode,transformNode=_ref$transformNode===void 0?function(node){return node}:_ref$transformNode,_ref$compat=_ref.compat,compat=_ref$compat===void 0?false:_ref$compat,_ref$camelcase=_ref.camelcase,camelcase=_ref$camelcase===void 0?false:_ref$camelcase;var wrap=function wrap(input){var cleanInput=removeDoctype(input);return wrapInput(cleanInput)};var unwrap=function unwrap(res){return res.name==="root"?res.children:res};var applyFilters=function applyFilters(input){var applyTransformNode=function applyTransformNode(node){var children=compat?node.childs:node.children;return node.name==="root"?children.map(applyTransformNode):_objectSpread({},transformNode(node),children&&children.length>0?_defineProperty({},compat?"childs":"children",children.map(applyTransformNode)):{})};var n;n=removeAttrs(input);if(compat){n=applyCompat(n)}n=applyTransformNode(n);if(camelcase||compat){n=camelize(n)}return n};return unwrap(applyFilters(parseInput(wrap(input))))};function svgson(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return new Promise(function(resolve,reject){try{var res=svgsonSync.apply(void 0,args);resolve(res)}catch(e){reject(e)}})}var stringify=function stringify(ast){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$transformAttr=_ref.transformAttr,transformAttr=_ref$transformAttr===void 0?function(key,value,escape){return"".concat(key,'="').concat(escape(value),'"')}:_ref$transformAttr,_ref$selfClose=_ref.selfClose,selfClose=_ref$selfClose===void 0?true:_ref$selfClose;if(Array.isArray(ast)){return ast.map(function(ast){return stringify(ast,{transformAttr:transformAttr,selfClose:selfClose})}).join("")}if(ast.type==="text"){return escapeText(ast.value)}var attributes="";for(var attr in ast.attributes){var attrStr=transformAttr(attr,ast.attributes[attr],escapeAttr,ast.name);attributes+=attrStr?" ".concat(attrStr):""}return ast.children.length||!selfClose?"<".concat(ast.name).concat(attributes,">").concat(stringify(ast.children,{transformAttr:transformAttr,selfClose:selfClose}),""):"<".concat(ast.name).concat(attributes,"/>")};var indexUmd=Object.assign({},{parse:svgson,parseSync:svgsonSync,stringify:stringify});return indexUmd})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}]},{},[3])(3)}); \ No newline at end of file +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.TeamContributionCalendar=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;ia&&(b="#c6e48b"),10<=a&&20>a&&(b="#7bc96f"),20<=a&&30>a&&(b="#239a3b"),30<=a&&(b="#196127"),b};exports.getFillColor=getFillColor;var getCalendarDataByIndexes=function(a,b,c){return javaScriptUtils.isDefined(c)?a.children[0].children[b].children[c]:a.children[0].children[b]};exports.getCalendarDataByIndexes=getCalendarDataByIndexes;var elementExists=function(a){var b=(0,_elly.default)(a);return javaScriptUtils.isDefined(b)};exports.elementExists=elementExists;var filterByTimeframe=function(a,b){if(!b.start&&!b.end)return a;var c=Object.entries(a).filter(function(a){var c=(0,_slicedToArray2.default)(a,1),d=c[0],e=new Date(d);return b.start&&!b.end?e>=new Date(b.start):!b.start&&b.end?e<=new Date(b.end):e>=new Date(b.start)&&e<=new Date(b.end)});return Object.fromEntries(c)};exports.filterByTimeframe=filterByTimeframe;var extractWeeksFromGitHub=function(a){return a.children[0].children.slice(0,53)};exports.extractWeeksFromGitHub=extractWeeksFromGitHub;var aggregateCalendars=(0,_immer.default)(function(a,b){var c=extractWeeksFromGitHub(a);c.forEach(function(c,d){c.children.forEach(function(c,e){var f=c.attributes["data-date"];if(f&&b[f]){var g=+c.attributes["data-count"]+ +b[c.attributes["data-date"]];a.children[0].children[d].children[e].attributes["data-count"]=g,a.children[0].children[d].children[e].attributes.fill=getFillColor(g)}})})});exports.aggregateCalendars=aggregateCalendars;var aggregateContributions=function(a){return Object.values(a).reduce(function(a,b){return a+b},0)};exports.aggregateContributions=aggregateContributions},{"../JavaScriptUtils/JavaScriptUtils":14,"@babel/runtime/helpers/interopRequireDefault":24,"@babel/runtime/helpers/interopRequireWildcard":25,"@babel/runtime/helpers/slicedToArray":30,"core-js/modules/es.array.fill":141,"core-js/modules/es.array.filter":142,"core-js/modules/es.array.for-each":143,"core-js/modules/es.array.iterator":145,"core-js/modules/es.array.reduce":147,"core-js/modules/es.array.slice":148,"core-js/modules/es.number.constructor":150,"core-js/modules/es.object.entries":151,"core-js/modules/es.object.from-entries":152,"core-js/modules/es.object.values":157,"core-js/modules/web.dom-collections.for-each":161,elly:162,immer:165}],11:[function(require,module,exports){"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");require("core-js/modules/es.array.for-each"),require("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.contributionsWithDateText=exports.tooltip=exports.header=exports.svgContainer=exports.container=void 0;var _elly=_interopRequireDefault(require("elly")),colorSchemas=_interopRequireWildcard(require("../../resources/ColorSchemas/ColorSchemas")),_ElementIds=_interopRequireDefault(require("../../resources/ElementIds/ElementIds")),LoaderIcon='',container=function(a){var b=(0,_elly.default)(a);return b.style.display="inline-block",b.style.width="700px",b.style.borderTopLeftRadius="3px",b.style.borderTopRightRadius="3px",b.style.border="1px solid #E1E4E8",b.style.padding="10px 20px",b.style.minWidth="350px",b.style.fontSize="14px",b};exports.container=container;var svgContainer=function(){var a=document.createElement("DIV");return a.id=_ElementIds.default.SVG_CONTAINER,a};exports.svgContainer=svgContainer;var getColorElement=function(a){var b=document.createElement("LI");return b.style.width="10px",b.style.height="10px",b.style.display="inline-block",b.style.margin="0 2px",b.style.backgroundColor=a,b},getColorsList=function(){var a=document.createElement("UL");a.style.listStyle="none",colorSchemas.gitHub.forEach(function(b){var c=getColorElement(b);a.appendChild(c)});var b=document.createElement("SPAN");b.innerText="Less",b.style.margin="0 5px",b.style.color="#767676";var c=document.createElement("SPAN");return c.innerText="More",c.style.margin="0 5px",c.style.color="#767676",a.insertBefore(b,a.childNodes[0]),a.insertBefore(c,a.nextSibling),a},header=function(a,b){var c=document.createElement("DIV"),d=getColorsList();c.id=_ElementIds.default.HEADER,c.style.fontSize="1em";var e=document.createElement("P");return e.innerHTML=LoaderIcon,b&&(e.style.height="15px"),b||(e.innerText="".concat(a," contributions in the last year")),c.appendChild(e),c.appendChild(d),c.style.display="flex",c.style.justifyContent="space-between",c.style.alignItems="center",c};exports.header=header;var tooltip=function(){var a=document.createElement("DIV");return a.id=_ElementIds.default.TOOLTIP,a.style.background="rgba(0, 0, 0, 0.8)",a.style.borderRadius="3px",a.style.fontSize="12px",a.style.padding="10px",a.style.textAlign="center",a.style.position="absolute",a.style.display="none",a.style.left="0px",a.style.top="0px",a};exports.tooltip=tooltip;var getDateText=function(a){var b=document.createElement("SPAN");return b.style.color="#959DA5",b.style.fontWeight="normal",b.innerText=" on ".concat(a),b},contributionsWithDateText=function(a,b){var c=document.createElement("SPAN");c.style.color="#FFFFFF",c.style.fontWeight="bold",c.innerText="No contributions",0arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i1?arguments[1]:undefined,length);var end=argumentsLength>2?arguments[2]:undefined;var endPos=end===undefined?length:toAbsoluteIndex(end,length);while(endPos>index)O[index++]=value;return O}},{"../internals/to-absolute-index":128,"../internals/to-length":131,"../internals/to-object":132}],41:[function(require,module,exports){"use strict";var $forEach=require("../internals/array-iteration").forEach;var arrayMethodIsStrict=require("../internals/array-method-is-strict");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var STRICT_METHOD=arrayMethodIsStrict("forEach");var USES_TO_LENGTH=arrayMethodUsesToLength("forEach");module.exports=!STRICT_METHOD||!USES_TO_LENGTH?function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:undefined)}:[].forEach},{"../internals/array-iteration":44,"../internals/array-method-is-strict":46,"../internals/array-method-uses-to-length":47}],42:[function(require,module,exports){"use strict";var bind=require("../internals/function-bind-context");var toObject=require("../internals/to-object");var callWithSafeIterationClosing=require("../internals/call-with-safe-iteration-closing");var isArrayIteratorMethod=require("../internals/is-array-iterator-method");var toLength=require("../internals/to-length");var createProperty=require("../internals/create-property");var getIteratorMethod=require("../internals/get-iterator-method");module.exports=function from(arrayLike){var O=toObject(arrayLike);var C=typeof this=="function"?this:Array;var argumentsLength=arguments.length;var mapfn=argumentsLength>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var iteratorMethod=getIteratorMethod(O);var index=0;var length,result,step,iterator,next,value;if(mapping)mapfn=bind(mapfn,argumentsLength>2?arguments[2]:undefined,2);if(iteratorMethod!=undefined&&!(C==Array&&isArrayIteratorMethod(iteratorMethod))){iterator=iteratorMethod.call(O);next=iterator.next;result=new C;for(;!(step=next.call(iterator)).done;index++){value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],true):step.value;createProperty(result,index,value)}}else{length=toLength(O.length);result=new C(length);for(;length>index;index++){value=mapping?mapfn(O[index],index):O[index];createProperty(result,index,value)}}result.length=index;return result}},{"../internals/call-with-safe-iteration-closing":50,"../internals/create-property":59,"../internals/function-bind-context":71,"../internals/get-iterator-method":73,"../internals/is-array-iterator-method":84,"../internals/to-length":131,"../internals/to-object":132}],43:[function(require,module,exports){var toIndexedObject=require("../internals/to-indexed-object");var toLength=require("../internals/to-length");var toAbsoluteIndex=require("../internals/to-absolute-index");var createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++){if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(true),indexOf:createMethod(false)}},{"../internals/to-absolute-index":128,"../internals/to-indexed-object":129,"../internals/to-length":131}],44:[function(require,module,exports){var bind=require("../internals/function-bind-context");var IndexedObject=require("../internals/indexed-object");var toObject=require("../internals/to-object");var toLength=require("../internals/to-length");var arraySpeciesCreate=require("../internals/array-species-create");var push=[].push;var createMethod=function(TYPE){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){var O=toObject($this);var self=IndexedObject(O);var boundFunction=bind(callbackfn,that,3);var length=toLength(self.length);var index=0;var create=specificCreate||arraySpeciesCreate;var target=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var value,result;for(;length>index;index++)if(NO_HOLES||index in self){value=self[index];result=boundFunction(value,index,O);if(TYPE){if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return true;case 5:return value;case 6:return index;case 2:push.call(target,value)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},{"../internals/array-species-create":49,"../internals/function-bind-context":71,"../internals/indexed-object":80,"../internals/to-length":131,"../internals/to-object":132}],45:[function(require,module,exports){var fails=require("../internals/fails");var wellKnownSymbol=require("../internals/well-known-symbol");var V8_VERSION=require("../internals/engine-v8-version");var SPECIES=wellKnownSymbol("species");module.exports=function(METHOD_NAME){return V8_VERSION>=51||!fails(function(){var array=[];var constructor=array.constructor={};constructor[SPECIES]=function(){return{foo:1}};return array[METHOD_NAME](Boolean).foo!==1})}},{"../internals/engine-v8-version":67,"../internals/fails":70,"../internals/well-known-symbol":138}],46:[function(require,module,exports){"use strict";var fails=require("../internals/fails");module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails(function(){method.call(null,argument||function(){throw 1},1)})}},{"../internals/fails":70}],47:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var fails=require("../internals/fails");var has=require("../internals/has");var defineProperty=Object.defineProperty;var cache={};var thrower=function(it){throw it};module.exports=function(METHOD_NAME,options){if(has(cache,METHOD_NAME))return cache[METHOD_NAME];if(!options)options={};var method=[][METHOD_NAME];var ACCESSORS=has(options,"ACCESSORS")?options.ACCESSORS:false;var argument0=has(options,0)?options[0]:thrower;var argument1=has(options,1)?options[1]:undefined;return cache[METHOD_NAME]=!!method&&!fails(function(){if(ACCESSORS&&!DESCRIPTORS)return true;var O={length:-1};if(ACCESSORS)defineProperty(O,1,{enumerable:true,get:thrower});else O[1]=1;method.call(O,argument0,argument1)})}},{"../internals/descriptors":62,"../internals/fails":70,"../internals/has":75}],48:[function(require,module,exports){var aFunction=require("../internals/a-function");var toObject=require("../internals/to-object");var IndexedObject=require("../internals/indexed-object");var toLength=require("../internals/to-length");var createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){aFunction(callbackfn);var O=toObject(that);var self=IndexedObject(O);var length=toLength(O.length);var index=IS_RIGHT?length-1:0;var i=IS_RIGHT?-1:1;if(argumentsLength<2)while(true){if(index in self){memo=self[index];index+=i;break}index+=i;if(IS_RIGHT?index<0:length<=index){throw TypeError("Reduce of empty array with no initial value")}}for(;IS_RIGHT?index>=0:length>index;index+=i)if(index in self){memo=callbackfn(memo,self[index],index,O)}return memo}};module.exports={left:createMethod(false),right:createMethod(true)}},{"../internals/a-function":35,"../internals/indexed-object":80,"../internals/to-length":131,"../internals/to-object":132}],49:[function(require,module,exports){var isObject=require("../internals/is-object");var isArray=require("../internals/is-array");var wellKnownSymbol=require("../internals/well-known-symbol");var SPECIES=wellKnownSymbol("species");module.exports=function(originalArray,length){var C;if(isArray(originalArray)){C=originalArray.constructor;if(typeof C=="function"&&(C===Array||isArray(C.prototype)))C=undefined;else if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined}}return new(C===undefined?Array:C)(length===0?0:length)}},{"../internals/is-array":85,"../internals/is-object":87,"../internals/well-known-symbol":138}],50:[function(require,module,exports){var anObject=require("../internals/an-object");module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){var returnMethod=iterator["return"];if(returnMethod!==undefined)anObject(returnMethod.call(iterator));throw error}}},{"../internals/an-object":39}],51:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var ITERATOR=wellKnownSymbol("iterator");var SAFE_CLOSING=false;try{var called=0;var iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=true}};iteratorWithReturn[ITERATOR]=function(){return this};Array.from(iteratorWithReturn,function(){throw 2})}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return false;var ITERATION_SUPPORT=false;try{var object={};object[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=true}}}};exec(object)}catch(error){}return ITERATION_SUPPORT}},{"../internals/well-known-symbol":138}],52:[function(require,module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},{}],53:[function(require,module,exports){var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var classofRaw=require("../internals/classof-raw");var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");var CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(error){}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===undefined?"Undefined":it===null?"Null":typeof(tag=tryGet(O=Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))=="Object"&&typeof O.callee=="function"?"Arguments":result}},{"../internals/classof-raw":52,"../internals/to-string-tag-support":134,"../internals/well-known-symbol":138}],54:[function(require,module,exports){var has=require("../internals/has");var ownKeys=require("../internals/own-keys");var getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor");var definePropertyModule=require("../internals/object-define-property");module.exports=function(target,source){var keys=ownKeys(source);var defineProperty=definePropertyModule.f;var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;for(var i=0;i=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=match[1]}}module.exports=version&&+version},{"../internals/engine-user-agent":66,"../internals/global":74}],68:[function(require,module,exports){module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],69:[function(require,module,exports){var global=require("../internals/global");var getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f;var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var redefine=require("../internals/redefine");var setGlobal=require("../internals/set-global");var copyConstructorProperties=require("../internals/copy-constructor-properties");var isForced=require("../internals/is-forced");module.exports=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL){target=global}else if(STATIC){target=global[TARGET]||setGlobal(TARGET,{})}else{target=(global[TARGET]||{}).prototype}if(target)for(key in source){sourceProperty=source[key];if(options.noTargetGet){descriptor=getOwnPropertyDescriptor(target,key);targetProperty=descriptor&&descriptor.value}else targetProperty=target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&targetProperty!==undefined){if(typeof sourceProperty===typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}if(options.sham||targetProperty&&targetProperty.sham){createNonEnumerableProperty(sourceProperty,"sham",true)}redefine(target,key,sourceProperty,options)}}},{"../internals/copy-constructor-properties":54,"../internals/create-non-enumerable-property":57,"../internals/global":74,"../internals/is-forced":86,"../internals/object-get-own-property-descriptor":100,"../internals/redefine":116,"../internals/set-global":118}],70:[function(require,module,exports){module.exports=function(exec){try{return!!exec()}catch(error){return true}}},{}],71:[function(require,module,exports){var aFunction=require("../internals/a-function");module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 0:return function(){return fn.call(that)};case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},{"../internals/a-function":35}],72:[function(require,module,exports){var path=require("../internals/path");var global=require("../internals/global");var aFunction=function(variable){return typeof variable=="function"?variable:undefined};module.exports=function(namespace,method){return arguments.length<2?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},{"../internals/global":74,"../internals/path":112}],73:[function(require,module,exports){var classof=require("../internals/classof");var Iterators=require("../internals/iterators");var wellKnownSymbol=require("../internals/well-known-symbol");var ITERATOR=wellKnownSymbol("iterator");module.exports=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},{"../internals/classof":53,"../internals/iterators":91,"../internals/well-known-symbol":138}],74:[function(require,module,exports){(function(global){var check=function(it){return it&&it.Math==Math&&it};module.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof global=="object"&&global)||Function("return this")()}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],75:[function(require,module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},{}],76:[function(require,module,exports){module.exports={}},{}],77:[function(require,module,exports){var global=require("../internals/global");module.exports=function(a,b){var console=global.console;if(console&&console.error){arguments.length===1?console.error(a):console.error(a,b)}}},{"../internals/global":74}],78:[function(require,module,exports){var getBuiltIn=require("../internals/get-built-in");module.exports=getBuiltIn("document","documentElement")},{"../internals/get-built-in":72}],79:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var fails=require("../internals/fails");var createElement=require("../internals/document-create-element");module.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":62,"../internals/document-create-element":63,"../internals/fails":70}],80:[function(require,module,exports){var fails=require("../internals/fails");var classof=require("../internals/classof-raw");var split="".split;module.exports=fails(function(){return!Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)=="String"?split.call(it,""):Object(it)}:Object},{"../internals/classof-raw":52,"../internals/fails":70}],81:[function(require,module,exports){var isObject=require("../internals/is-object");var setPrototypeOf=require("../internals/object-set-prototype-of");module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;if(setPrototypeOf&&typeof(NewTarget=dummy.constructor)=="function"&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype)setPrototypeOf($this,NewTargetPrototype);return $this}},{"../internals/is-object":87,"../internals/object-set-prototype-of":108}],82:[function(require,module,exports){var store=require("../internals/shared-store");var functionToString=Function.toString;if(typeof store.inspectSource!="function"){store.inspectSource=function(it){return functionToString.call(it)}}module.exports=store.inspectSource},{"../internals/shared-store":122}],83:[function(require,module,exports){var NATIVE_WEAK_MAP=require("../internals/native-weak-map");var global=require("../internals/global");var isObject=require("../internals/is-object");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var objectHas=require("../internals/has");var sharedKey=require("../internals/shared-key");var hiddenKeys=require("../internals/hidden-keys");var WeakMap=global.WeakMap;var set,get,has;var enforce=function(it){return has(it)?get(it):set(it,{})};var getterFor=function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE){throw TypeError("Incompatible receiver, "+TYPE+" required")}return state}};if(NATIVE_WEAK_MAP){var store=new WeakMap;var wmget=store.get;var wmhas=store.has;var wmset=store.set;set=function(it,metadata){wmset.call(store,it,metadata);return metadata};get=function(it){return wmget.call(store,it)||{}};has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");hiddenKeys[STATE]=true;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata};get=function(it){return objectHas(it,STATE)?it[STATE]:{}};has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}},{"../internals/create-non-enumerable-property":57,"../internals/global":74,"../internals/has":75,"../internals/hidden-keys":76,"../internals/is-object":87,"../internals/native-weak-map":95,"../internals/shared-key":121}],84:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var Iterators=require("../internals/iterators");var ITERATOR=wellKnownSymbol("iterator");var ArrayPrototype=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},{"../internals/iterators":91,"../internals/well-known-symbol":138}],85:[function(require,module,exports){var classof=require("../internals/classof-raw");module.exports=Array.isArray||function isArray(arg){return classof(arg)=="Array"}},{"../internals/classof-raw":52}],86:[function(require,module,exports){var fails=require("../internals/fails");var replacement=/#|\.prototype\./;var isForced=function(feature,detection){var value=data[normalize(feature)];return value==POLYFILL?true:value==NATIVE?false:typeof detection=="function"?fails(detection):!!detection};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()};var data=isForced.data={};var NATIVE=isForced.NATIVE="N";var POLYFILL=isForced.POLYFILL="P";module.exports=isForced},{"../internals/fails":70}],87:[function(require,module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},{}],88:[function(require,module,exports){module.exports=false},{}],89:[function(require,module,exports){var anObject=require("../internals/an-object");var isArrayIteratorMethod=require("../internals/is-array-iterator-method");var toLength=require("../internals/to-length");var bind=require("../internals/function-bind-context");var getIteratorMethod=require("../internals/get-iterator-method");var callWithSafeIterationClosing=require("../internals/call-with-safe-iteration-closing");var Result=function(stopped,result){this.stopped=stopped;this.result=result};var iterate=module.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){var boundFunction=bind(fn,that,AS_ENTRIES?2:1);var iterator,iterFn,index,length,result,next,step;if(IS_ITERATOR){iterator=iterable}else{iterFn=getIteratorMethod(iterable);if(typeof iterFn!="function")throw TypeError("Target is not iterable");if(isArrayIteratorMethod(iterFn)){for(index=0,length=toLength(iterable.length);length>index;index++){result=AS_ENTRIES?boundFunction(anObject(step=iterable[index])[0],step[1]):boundFunction(iterable[index]);if(result&&result instanceof Result)return result}return new Result(false)}iterator=iterFn.call(iterable)}next=iterator.next;while(!(step=next.call(iterator)).done){result=callWithSafeIterationClosing(iterator,boundFunction,step.value,AS_ENTRIES);if(typeof result=="object"&&result&&result instanceof Result)return result}return new Result(false)};iterate.stop=function(result){return new Result(true,result)}},{"../internals/an-object":39,"../internals/call-with-safe-iteration-closing":50,"../internals/function-bind-context":71,"../internals/get-iterator-method":73,"../internals/is-array-iterator-method":84,"../internals/to-length":131}],90:[function(require,module,exports){"use strict";var getPrototypeOf=require("../internals/object-get-prototype-of");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var has=require("../internals/has");var wellKnownSymbol=require("../internals/well-known-symbol");var IS_PURE=require("../internals/is-pure");var ITERATOR=wellKnownSymbol("iterator");var BUGGY_SAFARI_ITERATORS=false;var returnThis=function(){return this};var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator;if([].keys){arrayIterator=[].keys();if(!("next"in arrayIterator))BUGGY_SAFARI_ITERATORS=true;else{PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator));if(PrototypeOfArrayIteratorPrototype!==Object.prototype)IteratorPrototype=PrototypeOfArrayIteratorPrototype}}if(IteratorPrototype==undefined)IteratorPrototype={};if(!IS_PURE&&!has(IteratorPrototype,ITERATOR)){createNonEnumerableProperty(IteratorPrototype,ITERATOR,returnThis)}module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},{"../internals/create-non-enumerable-property":57,"../internals/has":75,"../internals/is-pure":88,"../internals/object-get-prototype-of":104,"../internals/well-known-symbol":138}],91:[function(require,module,exports){arguments[4][76][0].apply(exports,arguments)},{dup:76}],92:[function(require,module,exports){var global=require("../internals/global");var getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f;var classof=require("../internals/classof-raw");var macrotask=require("../internals/task").set;var IS_IOS=require("../internals/engine-is-ios");var MutationObserver=global.MutationObserver||global.WebKitMutationObserver;var process=global.process;var Promise=global.Promise;var IS_NODE=classof(process)=="process";var queueMicrotaskDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask");var queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;var flush,head,last,notify,toggle,node,promise,then;if(!queueMicrotask){flush=function(){var parent,fn;if(IS_NODE&&(parent=process.domain))parent.exit();while(head){fn=head.fn;head=head.next;try{fn()}catch(error){if(head)notify();else last=undefined;throw error}}last=undefined;if(parent)parent.enter()};if(IS_NODE){notify=function(){process.nextTick(flush)}}else if(MutationObserver&&!IS_IOS){toggle=true;node=document.createTextNode("");new MutationObserver(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){promise=Promise.resolve(undefined);then=promise.then;notify=function(){then.call(promise,flush)}}else{notify=function(){macrotask.call(global,flush)}}}module.exports=queueMicrotask||function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify()}last=task}},{"../internals/classof-raw":52,"../internals/engine-is-ios":65,"../internals/global":74,"../internals/object-get-own-property-descriptor":100,"../internals/task":127}],93:[function(require,module,exports){var global=require("../internals/global");module.exports=global.Promise},{"../internals/global":74}],94:[function(require,module,exports){var fails=require("../internals/fails");module.exports=!!Object.getOwnPropertySymbols&&!fails(function(){return!String(Symbol())})},{"../internals/fails":70}],95:[function(require,module,exports){var global=require("../internals/global");var inspectSource=require("../internals/inspect-source");var WeakMap=global.WeakMap;module.exports=typeof WeakMap==="function"&&/native code/.test(inspectSource(WeakMap))},{"../internals/global":74,"../internals/inspect-source":82}],96:[function(require,module,exports){"use strict";var aFunction=require("../internals/a-function");var PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},{"../internals/a-function":35}],97:[function(require,module,exports){var anObject=require("../internals/an-object");var defineProperties=require("../internals/object-define-properties");var enumBugKeys=require("../internals/enum-bug-keys");var hiddenKeys=require("../internals/hidden-keys");var html=require("../internals/html");var documentCreateElement=require("../internals/document-create-element");var sharedKey=require("../internals/shared-key");var GT=">";var LT="<";var PROTOTYPE="prototype";var SCRIPT="script";var IE_PROTO=sharedKey("IE_PROTO");var EmptyConstructor=function(){};var scriptTag=function(content){return LT+SCRIPT+GT+content+LT+"/"+SCRIPT+GT};var NullProtoObjectViaActiveX=function(activeXDocument){activeXDocument.write(scriptTag(""));activeXDocument.close();var temp=activeXDocument.parentWindow.Object;activeXDocument=null;return temp};var NullProtoObjectViaIFrame=function(){var iframe=documentCreateElement("iframe");var JS="java"+SCRIPT+":";var iframeDocument;iframe.style.display="none";html.appendChild(iframe);iframe.src=String(JS);iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(scriptTag("document.F=Object"));iframeDocument.close();return iframeDocument.F};var activeXDocument;var NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(error){}NullProtoObject=activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();var length=enumBugKeys.length;while(length--)delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];return NullProtoObject()};hiddenKeys[IE_PROTO]=true;module.exports=Object.create||function create(O,Properties){var result;if(O!==null){EmptyConstructor[PROTOTYPE]=anObject(O);result=new EmptyConstructor;EmptyConstructor[PROTOTYPE]=null;result[IE_PROTO]=O}else result=NullProtoObject();return Properties===undefined?result:defineProperties(result,Properties)}},{"../internals/an-object":39,"../internals/document-create-element":63,"../internals/enum-bug-keys":68,"../internals/hidden-keys":76,"../internals/html":78,"../internals/object-define-properties":98,"../internals/shared-key":121}],98:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var definePropertyModule=require("../internals/object-define-property");var anObject=require("../internals/an-object");var objectKeys=require("../internals/object-keys");module.exports=DESCRIPTORS?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=objectKeys(Properties);var length=keys.length;var index=0;var key;while(length>index)definePropertyModule.f(O,key=keys[index++],Properties[key]);return O}},{"../internals/an-object":39,"../internals/descriptors":62,"../internals/object-define-property":99,"../internals/object-keys":106}],99:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var IE8_DOM_DEFINE=require("../internals/ie8-dom-define");var anObject=require("../internals/an-object");var toPrimitive=require("../internals/to-primitive");var nativeDefineProperty=Object.defineProperty;exports.f=DESCRIPTORS?nativeDefineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");if("value"in Attributes)O[P]=Attributes.value;return O}},{"../internals/an-object":39,"../internals/descriptors":62,"../internals/ie8-dom-define":79,"../internals/to-primitive":133}],100:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var propertyIsEnumerableModule=require("../internals/object-property-is-enumerable");var createPropertyDescriptor=require("../internals/create-property-descriptor");var toIndexedObject=require("../internals/to-indexed-object");var toPrimitive=require("../internals/to-primitive");var has=require("../internals/has");var IE8_DOM_DEFINE=require("../internals/ie8-dom-define");var nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?nativeGetOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},{"../internals/create-property-descriptor":58,"../internals/descriptors":62,"../internals/has":75,"../internals/ie8-dom-define":79,"../internals/object-property-is-enumerable":107,"../internals/to-indexed-object":129,"../internals/to-primitive":133}],101:[function(require,module,exports){var toIndexedObject=require("../internals/to-indexed-object");var nativeGetOwnPropertyNames=require("../internals/object-get-own-property-names").f;var toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return nativeGetOwnPropertyNames(it)}catch(error){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):nativeGetOwnPropertyNames(toIndexedObject(it))}},{"../internals/object-get-own-property-names":102,"../internals/to-indexed-object":129}],102:[function(require,module,exports){var internalObjectKeys=require("../internals/object-keys-internal");var enumBugKeys=require("../internals/enum-bug-keys");var hiddenKeys=enumBugKeys.concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys(O,hiddenKeys)}},{"../internals/enum-bug-keys":68,"../internals/object-keys-internal":105}],103:[function(require,module,exports){exports.f=Object.getOwnPropertySymbols},{}],104:[function(require,module,exports){var has=require("../internals/has");var toObject=require("../internals/to-object");var sharedKey=require("../internals/shared-key");var CORRECT_PROTOTYPE_GETTER=require("../internals/correct-prototype-getter");var IE_PROTO=sharedKey("IE_PROTO");var ObjectPrototype=Object.prototype;module.exports=CORRECT_PROTOTYPE_GETTER?Object.getPrototypeOf:function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectPrototype:null}},{"../internals/correct-prototype-getter":55,"../internals/has":75,"../internals/shared-key":121,"../internals/to-object":132}],105:[function(require,module,exports){var has=require("../internals/has");var toIndexedObject=require("../internals/to-indexed-object");var indexOf=require("../internals/array-includes").indexOf;var hiddenKeys=require("../internals/hidden-keys");module.exports=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!has(hiddenKeys,key)&&has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~indexOf(result,key)||result.push(key)}return result}},{"../internals/array-includes":43,"../internals/has":75,"../internals/hidden-keys":76,"../internals/to-indexed-object":129}],106:[function(require,module,exports){var internalObjectKeys=require("../internals/object-keys-internal");var enumBugKeys=require("../internals/enum-bug-keys");module.exports=Object.keys||function keys(O){return internalObjectKeys(O,enumBugKeys)}},{"../internals/enum-bug-keys":68,"../internals/object-keys-internal":105}],107:[function(require,module,exports){"use strict";var nativePropertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!nativePropertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:nativePropertyIsEnumerable},{}],108:[function(require,module,exports){var anObject=require("../internals/an-object");var aPossiblePrototype=require("../internals/a-possible-prototype");module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var CORRECT_SETTER=false;var test={};var setter;try{setter=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;setter.call(test,[]);CORRECT_SETTER=test instanceof Array}catch(error){}return function setPrototypeOf(O,proto){anObject(O);aPossiblePrototype(proto);if(CORRECT_SETTER)setter.call(O,proto);else O.__proto__=proto;return O}}():undefined)},{"../internals/a-possible-prototype":36,"../internals/an-object":39}],109:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var objectKeys=require("../internals/object-keys");var toIndexedObject=require("../internals/to-indexed-object");var propertyIsEnumerable=require("../internals/object-property-is-enumerable").f;var createMethod=function(TO_ENTRIES){return function(it){var O=toIndexedObject(it);var keys=objectKeys(O);var length=keys.length;var i=0;var result=[];var key;while(length>i){key=keys[i++];if(!DESCRIPTORS||propertyIsEnumerable.call(O,key)){result.push(TO_ENTRIES?[key,O[key]]:O[key])}}return result}};module.exports={entries:createMethod(true),values:createMethod(false)}},{"../internals/descriptors":62,"../internals/object-keys":106,"../internals/object-property-is-enumerable":107,"../internals/to-indexed-object":129}],110:[function(require,module,exports){"use strict";var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var classof=require("../internals/classof");module.exports=TO_STRING_TAG_SUPPORT?{}.toString:function toString(){return"[object "+classof(this)+"]"}},{"../internals/classof":53,"../internals/to-string-tag-support":134}],111:[function(require,module,exports){var getBuiltIn=require("../internals/get-built-in");var getOwnPropertyNamesModule=require("../internals/object-get-own-property-names");var getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols");var anObject=require("../internals/an-object");module.exports=getBuiltIn("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject(it));var getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):keys}},{"../internals/an-object":39,"../internals/get-built-in":72,"../internals/object-get-own-property-names":102,"../internals/object-get-own-property-symbols":103}],112:[function(require,module,exports){var global=require("../internals/global");module.exports=global},{"../internals/global":74}],113:[function(require,module,exports){module.exports=function(exec){try{return{error:false,value:exec()}}catch(error){return{error:true,value:error}}}},{}],114:[function(require,module,exports){var anObject=require("../internals/an-object");var isObject=require("../internals/is-object");var newPromiseCapability=require("../internals/new-promise-capability");module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise}},{"../internals/an-object":39,"../internals/is-object":87,"../internals/new-promise-capability":96}],115:[function(require,module,exports){var redefine=require("../internals/redefine");module.exports=function(target,src,options){for(var key in src)redefine(target,key,src[key],options);return target}},{"../internals/redefine":116}],116:[function(require,module,exports){var global=require("../internals/global");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var has=require("../internals/has");var setGlobal=require("../internals/set-global");var inspectSource=require("../internals/inspect-source");var InternalStateModule=require("../internals/internal-state");var getInternalState=InternalStateModule.get;var enforceInternalState=InternalStateModule.enforce;var TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:false;var simple=options?!!options.enumerable:false;var noTargetGet=options?!!options.noTargetGet:false;if(typeof value=="function"){if(typeof key=="string"&&!has(value,"name"))createNonEnumerableProperty(value,"name",key);enforceInternalState(value).source=TEMPLATE.join(typeof key=="string"?key:"")}if(O===global){if(simple)O[key]=value;else setGlobal(key,value);return}else if(!unsafe){delete O[key]}else if(!noTargetGet&&O[key]){simple=true}if(simple)O[key]=value;else createNonEnumerableProperty(O,key,value)})(Function.prototype,"toString",function toString(){return typeof this=="function"&&getInternalState(this).source||inspectSource(this)})},{"../internals/create-non-enumerable-property":57,"../internals/global":74,"../internals/has":75,"../internals/inspect-source":82,"../internals/internal-state":83,"../internals/set-global":118}],117:[function(require,module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},{}],118:[function(require,module,exports){var global=require("../internals/global");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");module.exports=function(key,value){try{createNonEnumerableProperty(global,key,value)}catch(error){global[key]=value}return value}},{"../internals/create-non-enumerable-property":57,"../internals/global":74}],119:[function(require,module,exports){"use strict";var getBuiltIn=require("../internals/get-built-in");var definePropertyModule=require("../internals/object-define-property");var wellKnownSymbol=require("../internals/well-known-symbol");var DESCRIPTORS=require("../internals/descriptors");var SPECIES=wellKnownSymbol("species");module.exports=function(CONSTRUCTOR_NAME){var Constructor=getBuiltIn(CONSTRUCTOR_NAME);var defineProperty=definePropertyModule.f;if(DESCRIPTORS&&Constructor&&!Constructor[SPECIES]){defineProperty(Constructor,SPECIES,{configurable:true,get:function(){return this}})}}},{"../internals/descriptors":62,"../internals/get-built-in":72,"../internals/object-define-property":99,"../internals/well-known-symbol":138}],120:[function(require,module,exports){var defineProperty=require("../internals/object-define-property").f;var has=require("../internals/has");var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");module.exports=function(it,TAG,STATIC){if(it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)){defineProperty(it,TO_STRING_TAG,{configurable:true,value:TAG})}}},{"../internals/has":75,"../internals/object-define-property":99,"../internals/well-known-symbol":138}],121:[function(require,module,exports){var shared=require("../internals/shared");var uid=require("../internals/uid");var keys=shared("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}},{"../internals/shared":123,"../internals/uid":135}],122:[function(require,module,exports){var global=require("../internals/global");var setGlobal=require("../internals/set-global");var SHARED="__core-js_shared__";var store=global[SHARED]||setGlobal(SHARED,{});module.exports=store},{"../internals/global":74,"../internals/set-global":118}],123:[function(require,module,exports){var IS_PURE=require("../internals/is-pure");var store=require("../internals/shared-store");(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{})})("versions",[]).push({version:"3.6.5",mode:IS_PURE?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":88,"../internals/shared-store":122}],124:[function(require,module,exports){var anObject=require("../internals/an-object");var aFunction=require("../internals/a-function");var wellKnownSymbol=require("../internals/well-known-symbol");var SPECIES=wellKnownSymbol("species");module.exports=function(O,defaultConstructor){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?defaultConstructor:aFunction(S)}},{"../internals/a-function":35,"../internals/an-object":39,"../internals/well-known-symbol":138}],125:[function(require,module,exports){var toInteger=require("../internals/to-integer");var requireObjectCoercible=require("../internals/require-object-coercible");var createMethod=function(CONVERT_TO_STRING){return function($this,pos){var S=String(requireObjectCoercible($this));var position=toInteger(pos);var size=S.length;var first,second;if(position<0||position>=size)return CONVERT_TO_STRING?"":undefined;first=S.charCodeAt(position);return first<55296||first>56319||position+1===size||(second=S.charCodeAt(position+1))<56320||second>57343?CONVERT_TO_STRING?S.charAt(position):first:CONVERT_TO_STRING?S.slice(position,position+2):(first-55296<<10)+(second-56320)+65536}};module.exports={codeAt:createMethod(false),charAt:createMethod(true)}},{"../internals/require-object-coercible":117,"../internals/to-integer":130}],126:[function(require,module,exports){var requireObjectCoercible=require("../internals/require-object-coercible");var whitespaces=require("../internals/whitespaces");var whitespace="["+whitespaces+"]";var ltrim=RegExp("^"+whitespace+whitespace+"*");var rtrim=RegExp(whitespace+whitespace+"*$");var createMethod=function(TYPE){return function($this){var string=String(requireObjectCoercible($this));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string}};module.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},{"../internals/require-object-coercible":117,"../internals/whitespaces":139}],127:[function(require,module,exports){var global=require("../internals/global");var fails=require("../internals/fails");var classof=require("../internals/classof-raw");var bind=require("../internals/function-bind-context");var html=require("../internals/html");var createElement=require("../internals/document-create-element");var IS_IOS=require("../internals/engine-is-ios");var location=global.location;var set=global.setImmediate;var clear=global.clearImmediate;var process=global.process;var MessageChannel=global.MessageChannel;var Dispatch=global.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var defer,channel,port;var run=function(id){if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var runner=function(id){return function(){run(id)}};var listener=function(event){run(event.data)};var post=function(id){global.postMessage(id+"",location.protocol+"//"+location.host)};if(!set||!clear){set=function setImmediate(fn){var args=[];var i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){(typeof fn=="function"?fn:Function(fn)).apply(undefined,args)};defer(counter);return counter};clear=function clearImmediate(id){delete queue[id]};if(classof(process)=="process"){defer=function(id){process.nextTick(runner(id))}}else if(Dispatch&&Dispatch.now){defer=function(id){Dispatch.now(runner(id))}}else if(MessageChannel&&!IS_IOS){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=bind(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts&&!fails(post)&&location.protocol!=="file:"){defer=post;global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in createElement("script")){defer=function(id){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run(id)}}}else{defer=function(id){setTimeout(runner(id),0)}}}module.exports={set:set,clear:clear}},{"../internals/classof-raw":52,"../internals/document-create-element":63,"../internals/engine-is-ios":65,"../internals/fails":70,"../internals/function-bind-context":71,"../internals/global":74,"../internals/html":78}],128:[function(require,module,exports){var toInteger=require("../internals/to-integer");var max=Math.max;var min=Math.min;module.exports=function(index,length){var integer=toInteger(index);return integer<0?max(integer+length,0):min(integer,length)}},{"../internals/to-integer":130}],129:[function(require,module,exports){var IndexedObject=require("../internals/indexed-object");var requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},{"../internals/indexed-object":80,"../internals/require-object-coercible":117}],130:[function(require,module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(argument){return isNaN(argument=+argument)?0:(argument>0?floor:ceil)(argument)}},{}],131:[function(require,module,exports){var toInteger=require("../internals/to-integer");var min=Math.min;module.exports=function(argument){return argument>0?min(toInteger(argument),9007199254740991):0}},{"../internals/to-integer":130}],132:[function(require,module,exports){var requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(argument){return Object(requireObjectCoercible(argument))}},{"../internals/require-object-coercible":117}],133:[function(require,module,exports){var isObject=require("../internals/is-object");module.exports=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&typeof(fn=input.toString)=="function"&&!isObject(val=fn.call(input)))return val;if(typeof(fn=input.valueOf)=="function"&&!isObject(val=fn.call(input)))return val;if(!PREFERRED_STRING&&typeof(fn=input.toString)=="function"&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":87}],134:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");var test={};test[TO_STRING_TAG]="z";module.exports=String(test)==="[object z]"},{"../internals/well-known-symbol":138}],135:[function(require,module,exports){var id=0;var postfix=Math.random();module.exports=function(key){return"Symbol("+String(key===undefined?"":key)+")_"+(++id+postfix).toString(36)}},{}],136:[function(require,module,exports){var NATIVE_SYMBOL=require("../internals/native-symbol");module.exports=NATIVE_SYMBOL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":94}],137:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");exports.f=wellKnownSymbol},{"../internals/well-known-symbol":138}],138:[function(require,module,exports){var global=require("../internals/global");var shared=require("../internals/shared");var has=require("../internals/has");var uid=require("../internals/uid");var NATIVE_SYMBOL=require("../internals/native-symbol");var USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid");var WellKnownSymbolsStore=shared("wks");var Symbol=global.Symbol;var createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol:Symbol&&Symbol.withoutSetter||uid;module.exports=function(name){if(!has(WellKnownSymbolsStore,name)){if(NATIVE_SYMBOL&&has(Symbol,name))WellKnownSymbolsStore[name]=Symbol[name];else WellKnownSymbolsStore[name]=createWellKnownSymbol("Symbol."+name)}return WellKnownSymbolsStore[name]}},{"../internals/global":74,"../internals/has":75,"../internals/native-symbol":94,"../internals/shared":123,"../internals/uid":135,"../internals/use-symbol-as-uid":136}],139:[function(require,module,exports){module.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},{}],140:[function(require,module,exports){"use strict";var $=require("../internals/export");var fails=require("../internals/fails");var isArray=require("../internals/is-array");var isObject=require("../internals/is-object");var toObject=require("../internals/to-object");var toLength=require("../internals/to-length");var createProperty=require("../internals/create-property");var arraySpeciesCreate=require("../internals/array-species-create");var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var wellKnownSymbol=require("../internals/well-known-symbol");var V8_VERSION=require("../internals/engine-v8-version");var IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable");var MAX_SAFE_INTEGER=9007199254740991;var MAXIMUM_ALLOWED_INDEX_EXCEEDED="Maximum allowed index exceeded";var IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails(function(){var array=[];array[IS_CONCAT_SPREADABLE]=false;return array.concat()[0]!==array});var SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat");var isConcatSpreadable=function(O){if(!isObject(O))return false;var spreadable=O[IS_CONCAT_SPREADABLE];return spreadable!==undefined?!!spreadable:isArray(O)};var FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$({target:"Array",proto:true,forced:FORCED},{concat:function concat(arg){var O=toObject(this);var A=arraySpeciesCreate(O,0);var n=0;var i,k,length,len,E;for(i=-1,length=arguments.length;iMAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);for(k=0;k=MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);createProperty(A,n++,E)}}A.length=n;return A}})},{"../internals/array-method-has-species-support":45,"../internals/array-species-create":49,"../internals/create-property":59,"../internals/engine-v8-version":67,"../internals/export":69,"../internals/fails":70,"../internals/is-array":85,"../internals/is-object":87,"../internals/to-length":131,"../internals/to-object":132,"../internals/well-known-symbol":138}],141:[function(require,module,exports){var $=require("../internals/export");var fill=require("../internals/array-fill");var addToUnscopables=require("../internals/add-to-unscopables");$({target:"Array",proto:true},{fill:fill});addToUnscopables("fill")},{"../internals/add-to-unscopables":37,"../internals/array-fill":40,"../internals/export":69}],142:[function(require,module,exports){"use strict";var $=require("../internals/export");var $filter=require("../internals/array-iteration").filter;var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("filter");var USES_TO_LENGTH=arrayMethodUsesToLength("filter");$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{filter:function filter(callbackfn){return $filter(this,callbackfn,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-iteration":44,"../internals/array-method-has-species-support":45,"../internals/array-method-uses-to-length":47,"../internals/export":69}],143:[function(require,module,exports){"use strict";var $=require("../internals/export");var forEach=require("../internals/array-for-each");$({target:"Array",proto:true,forced:[].forEach!=forEach},{forEach:forEach})},{"../internals/array-for-each":41,"../internals/export":69}],144:[function(require,module,exports){var $=require("../internals/export");var from=require("../internals/array-from");var checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration");var INCORRECT_ITERATION=!checkCorrectnessOfIteration(function(iterable){Array.from(iterable)});$({target:"Array",stat:true,forced:INCORRECT_ITERATION},{from:from})},{"../internals/array-from":42,"../internals/check-correctness-of-iteration":51,"../internals/export":69}],145:[function(require,module,exports){"use strict";var toIndexedObject=require("../internals/to-indexed-object");var addToUnscopables=require("../internals/add-to-unscopables");var Iterators=require("../internals/iterators");var InternalStateModule=require("../internals/internal-state");var defineIterator=require("../internals/define-iterator");var ARRAY_ITERATOR="Array Iterator";var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR);module.exports=defineIterator(Array,"Array",function(iterated,kind){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(iterated),index:0,kind:kind})},function(){var state=getInternalState(this);var target=state.target;var kind=state.kind;var index=state.index++;if(!target||index>=target.length){state.target=undefined;return{value:undefined,done:true}}if(kind=="keys")return{value:index,done:false};if(kind=="values")return{value:target[index],done:false};return{value:[index,target[index]],done:false}},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},{"../internals/add-to-unscopables":37,"../internals/define-iterator":60,"../internals/internal-state":83,"../internals/iterators":91,"../internals/to-indexed-object":129}],146:[function(require,module,exports){"use strict";var $=require("../internals/export");var $map=require("../internals/array-iteration").map;var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");var USES_TO_LENGTH=arrayMethodUsesToLength("map");$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{map:function map(callbackfn){return $map(this,callbackfn,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-iteration":44,"../internals/array-method-has-species-support":45,"../internals/array-method-uses-to-length":47,"../internals/export":69}],147:[function(require,module,exports){"use strict";var $=require("../internals/export");var $reduce=require("../internals/array-reduce").left;var arrayMethodIsStrict=require("../internals/array-method-is-strict");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var STRICT_METHOD=arrayMethodIsStrict("reduce");var USES_TO_LENGTH=arrayMethodUsesToLength("reduce",{1:0});$({target:"Array",proto:true,forced:!STRICT_METHOD||!USES_TO_LENGTH},{reduce:function reduce(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-method-is-strict":46,"../internals/array-method-uses-to-length":47,"../internals/array-reduce":48,"../internals/export":69}],148:[function(require,module,exports){"use strict";var $=require("../internals/export");var isObject=require("../internals/is-object");var isArray=require("../internals/is-array");var toAbsoluteIndex=require("../internals/to-absolute-index");var toLength=require("../internals/to-length");var toIndexedObject=require("../internals/to-indexed-object");var createProperty=require("../internals/create-property");var wellKnownSymbol=require("../internals/well-known-symbol");var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("slice");var USES_TO_LENGTH=arrayMethodUsesToLength("slice",{ACCESSORS:true,0:0,1:2});var SPECIES=wellKnownSymbol("species");var nativeSlice=[].slice;var max=Math.max;$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{slice:function slice(start,end){var O=toIndexedObject(this);var length=toLength(O.length);var k=toAbsoluteIndex(start,length);var fin=toAbsoluteIndex(end===undefined?length:end,length);var Constructor,result,n;if(isArray(O)){Constructor=O.constructor;if(typeof Constructor=="function"&&(Constructor===Array||isArray(Constructor.prototype))){Constructor=undefined}else if(isObject(Constructor)){Constructor=Constructor[SPECIES];if(Constructor===null)Constructor=undefined}if(Constructor===Array||Constructor===undefined){return nativeSlice.call(O,k,fin)}}result=new(Constructor===undefined?Array:Constructor)(max(fin-k,0));for(n=0;k2){it=trim(it);first=it.charCodeAt(0);if(first===43||first===45){third=it.charCodeAt(2);if(third===88||third===120)return NaN}else if(first===48){switch(it.charCodeAt(1)){case 66:case 98:radix=2;maxCode=49;break;case 79:case 111:radix=8;maxCode=55;break;default:return+it}digits=it.slice(2);length=digits.length;for(index=0;indexmaxCode)return NaN}return parseInt(digits,radix)}}return+it};if(isForced(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){var NumberWrapper=function Number(value){var it=arguments.length<1?0:value;var dummy=this;return dummy instanceof NumberWrapper&&(BROKEN_CLASSOF?fails(function(){NumberPrototype.valueOf.call(dummy)}):classof(dummy)!=NUMBER)?inheritIfRequired(new NativeNumber(toNumber(it)),dummy,NumberWrapper):toNumber(it)};for(var keys=DESCRIPTORS?getOwnPropertyNames(NativeNumber):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),j=0,key;keys.length>j;j++){if(has(NativeNumber,key=keys[j])&&!has(NumberWrapper,key)){defineProperty(NumberWrapper,key,getOwnPropertyDescriptor(NativeNumber,key))}}NumberWrapper.prototype=NumberPrototype;NumberPrototype.constructor=NumberWrapper;redefine(global,NUMBER,NumberWrapper)}},{"../internals/classof-raw":52,"../internals/descriptors":62,"../internals/fails":70,"../internals/global":74,"../internals/has":75,"../internals/inherit-if-required":81,"../internals/is-forced":86,"../internals/object-create":97,"../internals/object-define-property":99,"../internals/object-get-own-property-descriptor":100,"../internals/object-get-own-property-names":102,"../internals/redefine":116,"../internals/string-trim":126,"../internals/to-primitive":133}],151:[function(require,module,exports){var $=require("../internals/export");var $entries=require("../internals/object-to-array").entries;$({target:"Object",stat:true},{entries:function entries(O){return $entries(O)}})},{"../internals/export":69,"../internals/object-to-array":109}],152:[function(require,module,exports){var $=require("../internals/export");var iterate=require("../internals/iterate");var createProperty=require("../internals/create-property");$({target:"Object",stat:true},{fromEntries:function fromEntries(iterable){var obj={};iterate(iterable,function(k,v){createProperty(obj,k,v)},undefined,true);return obj}})},{"../internals/create-property":59,"../internals/export":69,"../internals/iterate":89}],153:[function(require,module,exports){var $=require("../internals/export");var fails=require("../internals/fails");var toIndexedObject=require("../internals/to-indexed-object");var nativeGetOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f;var DESCRIPTORS=require("../internals/descriptors");var FAILS_ON_PRIMITIVES=fails(function(){nativeGetOwnPropertyDescriptor(1)});var FORCED=!DESCRIPTORS||FAILS_ON_PRIMITIVES;$({target:"Object",stat:true,forced:FORCED,sham:!DESCRIPTORS},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(it,key){return nativeGetOwnPropertyDescriptor(toIndexedObject(it),key)}})},{"../internals/descriptors":62,"../internals/export":69,"../internals/fails":70,"../internals/object-get-own-property-descriptor":100,"../internals/to-indexed-object":129}],154:[function(require,module,exports){var $=require("../internals/export");var DESCRIPTORS=require("../internals/descriptors");var ownKeys=require("../internals/own-keys");var toIndexedObject=require("../internals/to-indexed-object");var getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor");var createProperty=require("../internals/create-property");$({target:"Object",stat:true,sham:!DESCRIPTORS},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){var O=toIndexedObject(object);var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;var keys=ownKeys(O);var result={};var index=0;var key,descriptor;while(keys.length>index){descriptor=getOwnPropertyDescriptor(O,key=keys[index++]);if(descriptor!==undefined)createProperty(result,key,descriptor)}return result}})},{"../internals/create-property":59,"../internals/descriptors":62,"../internals/export":69,"../internals/object-get-own-property-descriptor":100,"../internals/own-keys":111,"../internals/to-indexed-object":129}],155:[function(require,module,exports){var $=require("../internals/export");var toObject=require("../internals/to-object");var nativeKeys=require("../internals/object-keys");var fails=require("../internals/fails");var FAILS_ON_PRIMITIVES=fails(function(){nativeKeys(1)});$({target:"Object",stat:true,forced:FAILS_ON_PRIMITIVES},{keys:function keys(it){return nativeKeys(toObject(it))}})},{"../internals/export":69,"../internals/fails":70,"../internals/object-keys":106,"../internals/to-object":132}],156:[function(require,module,exports){var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var redefine=require("../internals/redefine");var toString=require("../internals/object-to-string");if(!TO_STRING_TAG_SUPPORT){redefine(Object.prototype,"toString",toString,{unsafe:true})}},{"../internals/object-to-string":110,"../internals/redefine":116,"../internals/to-string-tag-support":134}],157:[function(require,module,exports){var $=require("../internals/export");var $values=require("../internals/object-to-array").values;$({target:"Object",stat:true},{values:function values(O){return $values(O)}})},{"../internals/export":69,"../internals/object-to-array":109}],158:[function(require,module,exports){"use strict";var $=require("../internals/export");var IS_PURE=require("../internals/is-pure");var global=require("../internals/global");var getBuiltIn=require("../internals/get-built-in");var NativePromise=require("../internals/native-promise-constructor");var redefine=require("../internals/redefine");var redefineAll=require("../internals/redefine-all");var setToStringTag=require("../internals/set-to-string-tag");var setSpecies=require("../internals/set-species");var isObject=require("../internals/is-object");var aFunction=require("../internals/a-function");var anInstance=require("../internals/an-instance");var classof=require("../internals/classof-raw");var inspectSource=require("../internals/inspect-source");var iterate=require("../internals/iterate");var checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration");var speciesConstructor=require("../internals/species-constructor");var task=require("../internals/task").set;var microtask=require("../internals/microtask");var promiseResolve=require("../internals/promise-resolve");var hostReportErrors=require("../internals/host-report-errors");var newPromiseCapabilityModule=require("../internals/new-promise-capability");var perform=require("../internals/perform");var InternalStateModule=require("../internals/internal-state");var isForced=require("../internals/is-forced");var wellKnownSymbol=require("../internals/well-known-symbol");var V8_VERSION=require("../internals/engine-v8-version");var SPECIES=wellKnownSymbol("species");var PROMISE="Promise";var getInternalState=InternalStateModule.get;var setInternalState=InternalStateModule.set;var getInternalPromiseState=InternalStateModule.getterFor(PROMISE);var PromiseConstructor=NativePromise;var TypeError=global.TypeError;var document=global.document;var process=global.process;var $fetch=getBuiltIn("fetch");var newPromiseCapability=newPromiseCapabilityModule.f;var newGenericPromiseCapability=newPromiseCapability;var IS_NODE=classof(process)=="process";var DISPATCH_EVENT=!!(document&&document.createEvent&&global.dispatchEvent);var UNHANDLED_REJECTION="unhandledrejection";var REJECTION_HANDLED="rejectionhandled";var PENDING=0;var FULFILLED=1;var REJECTED=2;var HANDLED=1;var UNHANDLED=2;var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen;var FORCED=isForced(PROMISE,function(){var GLOBAL_CORE_JS_PROMISE=inspectSource(PromiseConstructor)!==String(PromiseConstructor);if(!GLOBAL_CORE_JS_PROMISE){if(V8_VERSION===66)return true;if(!IS_NODE&&typeof PromiseRejectionEvent!="function")return true}if(IS_PURE&&!PromiseConstructor.prototype["finally"])return true;if(V8_VERSION>=51&&/native code/.test(PromiseConstructor))return false;var promise=PromiseConstructor.resolve(1);var FakePromise=function(exec){exec(function(){},function(){})};var constructor=promise.constructor={};constructor[SPECIES]=FakePromise;return!(promise.then(function(){})instanceof FakePromise)});var INCORRECT_ITERATION=FORCED||!checkCorrectnessOfIteration(function(iterable){PromiseConstructor.all(iterable)["catch"](function(){})});var isThenable=function(it){var then;return isObject(it)&&typeof(then=it.then)=="function"?then:false};var notify=function(promise,state,isReject){if(state.notified)return;state.notified=true;var chain=state.reactions;microtask(function(){var value=state.value;var ok=state.state==FULFILLED;var index=0;while(chain.length>index){var reaction=chain[index++];var handler=ok?reaction.ok:reaction.fail;var resolve=reaction.resolve;var reject=reaction.reject;var domain=reaction.domain;var result,then,exited;try{if(handler){if(!ok){if(state.rejection===UNHANDLED)onHandleUnhandled(promise,state);state.rejection=HANDLED}if(handler===true)result=value;else{if(domain)domain.enter();result=handler(value);if(domain){domain.exit();exited=true}}if(result===reaction.promise){reject(TypeError("Promise-chain cycle"))}else if(then=isThenable(result)){then.call(result,resolve,reject)}else resolve(result)}else reject(value)}catch(error){if(domain&&!exited)domain.exit();reject(error)}}state.reactions=[];state.notified=false;if(isReject&&!state.rejection)onUnhandled(promise,state)})};var dispatchEvent=function(name,promise,reason){var event,handler;if(DISPATCH_EVENT){event=document.createEvent("Event");event.promise=promise;event.reason=reason;event.initEvent(name,false,true);global.dispatchEvent(event)}else event={promise:promise,reason:reason};if(handler=global["on"+name])handler(event);else if(name===UNHANDLED_REJECTION)hostReportErrors("Unhandled promise rejection",reason)};var onUnhandled=function(promise,state){task.call(global,function(){var value=state.value;var IS_UNHANDLED=isUnhandled(state);var result;if(IS_UNHANDLED){result=perform(function(){if(IS_NODE){process.emit("unhandledRejection",value,promise)}else dispatchEvent(UNHANDLED_REJECTION,promise,value)});state.rejection=IS_NODE||isUnhandled(state)?UNHANDLED:HANDLED;if(result.error)throw result.value}})};var isUnhandled=function(state){return state.rejection!==HANDLED&&!state.parent};var onHandleUnhandled=function(promise,state){task.call(global,function(){if(IS_NODE){process.emit("rejectionHandled",promise)}else dispatchEvent(REJECTION_HANDLED,promise,state.value)})};var bind=function(fn,promise,state,unwrap){return function(value){fn(promise,state,value,unwrap)}};var internalReject=function(promise,state,value,unwrap){if(state.done)return;state.done=true;if(unwrap)state=unwrap;state.value=value;state.state=REJECTED;notify(promise,state,true)};var internalResolve=function(promise,state,value,unwrap){if(state.done)return;state.done=true;if(unwrap)state=unwrap;try{if(promise===value)throw TypeError("Promise can't be resolved itself");var then=isThenable(value);if(then){microtask(function(){var wrapper={done:false};try{then.call(value,bind(internalResolve,promise,wrapper,state),bind(internalReject,promise,wrapper,state))}catch(error){internalReject(promise,wrapper,error,state)}})}else{state.value=value;state.state=FULFILLED;notify(promise,state,false)}}catch(error){internalReject(promise,{done:false},error,state)}};if(FORCED){PromiseConstructor=function Promise(executor){anInstance(this,PromiseConstructor,PROMISE);aFunction(executor);Internal.call(this);var state=getInternalState(this);try{executor(bind(internalResolve,this,state),bind(internalReject,this,state))}catch(error){internalReject(this,state,error)}};Internal=function Promise(executor){setInternalState(this,{type:PROMISE,done:false,notified:false,parent:false,reactions:[],rejection:false,state:PENDING,value:undefined})};Internal.prototype=redefineAll(PromiseConstructor.prototype,{then:function then(onFulfilled,onRejected){var state=getInternalPromiseState(this);var reaction=newPromiseCapability(speciesConstructor(this,PromiseConstructor));reaction.ok=typeof onFulfilled=="function"?onFulfilled:true;reaction.fail=typeof onRejected=="function"&&onRejected;reaction.domain=IS_NODE?process.domain:undefined;state.parent=true;state.reactions.push(reaction);if(state.state!=PENDING)notify(this,state,false);return reaction.promise},catch:function(onRejected){return this.then(undefined,onRejected)}});OwnPromiseCapability=function(){var promise=new Internal;var state=getInternalState(promise);this.promise=promise;this.resolve=bind(internalResolve,promise,state);this.reject=bind(internalReject,promise,state)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)};if(!IS_PURE&&typeof NativePromise=="function"){nativeThen=NativePromise.prototype.then;redefine(NativePromise.prototype,"then",function then(onFulfilled,onRejected){var that=this;return new PromiseConstructor(function(resolve,reject){nativeThen.call(that,resolve,reject)}).then(onFulfilled,onRejected)},{unsafe:true});if(typeof $fetch=="function")$({global:true,enumerable:true,forced:true},{fetch:function fetch(input){return promiseResolve(PromiseConstructor,$fetch.apply(global,arguments))}})}}$({global:true,wrap:true,forced:FORCED},{Promise:PromiseConstructor});setToStringTag(PromiseConstructor,PROMISE,false,true);setSpecies(PROMISE);PromiseWrapper=getBuiltIn(PROMISE);$({target:PROMISE,stat:true,forced:FORCED},{reject:function reject(r){var capability=newPromiseCapability(this);capability.reject.call(undefined,r);return capability.promise}});$({target:PROMISE,stat:true,forced:IS_PURE||FORCED},{resolve:function resolve(x){return promiseResolve(IS_PURE&&this===PromiseWrapper?PromiseConstructor:this,x)}});$({target:PROMISE,stat:true,forced:INCORRECT_ITERATION},{all:function all(iterable){var C=this;var capability=newPromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;var result=perform(function(){var $promiseResolve=aFunction(C.resolve);var values=[];var counter=0;var remaining=1;iterate(iterable,function(promise){var index=counter++;var alreadyCalled=false;values.push(undefined);remaining++;$promiseResolve.call(C,promise).then(function(value){if(alreadyCalled)return;alreadyCalled=true;values[index]=value;--remaining||resolve(values)},reject)});--remaining||resolve(values)});if(result.error)reject(result.value);return capability.promise},race:function race(iterable){var C=this;var capability=newPromiseCapability(C);var reject=capability.reject;var result=perform(function(){var $promiseResolve=aFunction(C.resolve);iterate(iterable,function(promise){$promiseResolve.call(C,promise).then(capability.resolve,reject)})});if(result.error)reject(result.value);return capability.promise}})},{"../internals/a-function":35,"../internals/an-instance":38,"../internals/check-correctness-of-iteration":51,"../internals/classof-raw":52,"../internals/engine-v8-version":67,"../internals/export":69,"../internals/get-built-in":72,"../internals/global":74,"../internals/host-report-errors":77,"../internals/inspect-source":82,"../internals/internal-state":83,"../internals/is-forced":86,"../internals/is-object":87,"../internals/is-pure":88,"../internals/iterate":89,"../internals/microtask":92,"../internals/native-promise-constructor":93,"../internals/new-promise-capability":96,"../internals/perform":113,"../internals/promise-resolve":114,"../internals/redefine":116,"../internals/redefine-all":115,"../internals/set-species":119,"../internals/set-to-string-tag":120,"../internals/species-constructor":124,"../internals/task":127,"../internals/well-known-symbol":138}],159:[function(require,module,exports){"use strict";var charAt=require("../internals/string-multibyte").charAt;var InternalStateModule=require("../internals/internal-state");var defineIterator=require("../internals/define-iterator");var STRING_ITERATOR="String Iterator";var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(STRING_ITERATOR);defineIterator(String,"String",function(iterated){setInternalState(this,{type:STRING_ITERATOR,string:String(iterated),index:0})},function next(){var state=getInternalState(this);var string=state.string;var index=state.index;var point;if(index>=string.length)return{value:undefined,done:true};point=charAt(string,index);state.index+=point.length;return{value:point,done:false}})},{"../internals/define-iterator":60,"../internals/internal-state":83,"../internals/string-multibyte":125}],160:[function(require,module,exports){"use strict";var $=require("../internals/export");var global=require("../internals/global");var getBuiltIn=require("../internals/get-built-in");var IS_PURE=require("../internals/is-pure");var DESCRIPTORS=require("../internals/descriptors");var NATIVE_SYMBOL=require("../internals/native-symbol");var USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid");var fails=require("../internals/fails");var has=require("../internals/has");var isArray=require("../internals/is-array");var isObject=require("../internals/is-object");var anObject=require("../internals/an-object");var toObject=require("../internals/to-object");var toIndexedObject=require("../internals/to-indexed-object");var toPrimitive=require("../internals/to-primitive");var createPropertyDescriptor=require("../internals/create-property-descriptor");var nativeObjectCreate=require("../internals/object-create");var objectKeys=require("../internals/object-keys");var getOwnPropertyNamesModule=require("../internals/object-get-own-property-names");var getOwnPropertyNamesExternal=require("../internals/object-get-own-property-names-external");var getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols");var getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor");var definePropertyModule=require("../internals/object-define-property");var propertyIsEnumerableModule=require("../internals/object-property-is-enumerable");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var redefine=require("../internals/redefine");var shared=require("../internals/shared");var sharedKey=require("../internals/shared-key");var hiddenKeys=require("../internals/hidden-keys");var uid=require("../internals/uid");var wellKnownSymbol=require("../internals/well-known-symbol");var wrappedWellKnownSymbolModule=require("../internals/well-known-symbol-wrapped");var defineWellKnownSymbol=require("../internals/define-well-known-symbol");var setToStringTag=require("../internals/set-to-string-tag");var InternalStateModule=require("../internals/internal-state");var $forEach=require("../internals/array-iteration").forEach;var HIDDEN=sharedKey("hidden");var SYMBOL="Symbol";var PROTOTYPE="prototype";var TO_PRIMITIVE=wellKnownSymbol("toPrimitive");var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(SYMBOL);var ObjectPrototype=Object[PROTOTYPE];var $Symbol=global.Symbol;var $stringify=getBuiltIn("JSON","stringify");var nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;var nativeDefineProperty=definePropertyModule.f;var nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f;var nativePropertyIsEnumerable=propertyIsEnumerableModule.f;var AllSymbols=shared("symbols");var ObjectPrototypeSymbols=shared("op-symbols");var StringToSymbolRegistry=shared("string-to-symbol-registry");var SymbolToStringRegistry=shared("symbol-to-string-registry");var WellKnownSymbolsStore=shared("wks");var QObject=global.QObject;var USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDescriptor=DESCRIPTORS&&fails(function(){return nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a!=7})?function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor(ObjectPrototype,P);if(ObjectPrototypeDescriptor)delete ObjectPrototype[P];nativeDefineProperty(O,P,Attributes);if(ObjectPrototypeDescriptor&&O!==ObjectPrototype){nativeDefineProperty(ObjectPrototype,P,ObjectPrototypeDescriptor)}}:nativeDefineProperty;var wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate($Symbol[PROTOTYPE]);setInternalState(symbol,{type:SYMBOL,tag:tag,description:description});if(!DESCRIPTORS)symbol.description=description;return symbol};var isSymbol=USE_SYMBOL_AS_UID?function(it){return typeof it=="symbol"}:function(it){return Object(it)instanceof $Symbol};var $defineProperty=function defineProperty(O,P,Attributes){if(O===ObjectPrototype)$defineProperty(ObjectPrototypeSymbols,P,Attributes);anObject(O);var key=toPrimitive(P,true);anObject(Attributes);if(has(AllSymbols,key)){if(!Attributes.enumerable){if(!has(O,HIDDEN))nativeDefineProperty(O,HIDDEN,createPropertyDescriptor(1,{}));O[HIDDEN][key]=true}else{if(has(O,HIDDEN)&&O[HIDDEN][key])O[HIDDEN][key]=false;Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor(0,false)})}return setSymbolDescriptor(O,key,Attributes)}return nativeDefineProperty(O,key,Attributes)};var $defineProperties=function defineProperties(O,Properties){anObject(O);var properties=toIndexedObject(Properties);var keys=objectKeys(properties).concat($getOwnPropertySymbols(properties));$forEach(keys,function(key){if(!DESCRIPTORS||$propertyIsEnumerable.call(properties,key))$defineProperty(O,key,properties[key])});return O};var $create=function create(O,Properties){return Properties===undefined?nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)};var $propertyIsEnumerable=function propertyIsEnumerable(V){var P=toPrimitive(V,true);var enumerable=nativePropertyIsEnumerable.call(this,P);if(this===ObjectPrototype&&has(AllSymbols,P)&&!has(ObjectPrototypeSymbols,P))return false;return enumerable||!has(this,P)||!has(AllSymbols,P)||has(this,HIDDEN)&&this[HIDDEN][P]?enumerable:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(O,P){var it=toIndexedObject(O);var key=toPrimitive(P,true);if(it===ObjectPrototype&&has(AllSymbols,key)&&!has(ObjectPrototypeSymbols,key))return;var descriptor=nativeGetOwnPropertyDescriptor(it,key);if(descriptor&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key])){descriptor.enumerable=true}return descriptor};var $getOwnPropertyNames=function getOwnPropertyNames(O){var names=nativeGetOwnPropertyNames(toIndexedObject(O));var result=[];$forEach(names,function(key){if(!has(AllSymbols,key)&&!has(hiddenKeys,key))result.push(key)});return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype;var names=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject(O));var result=[];$forEach(names,function(key){if(has(AllSymbols,key)&&(!IS_OBJECT_PROTOTYPE||has(ObjectPrototype,key))){result.push(AllSymbols[key])}});return result};if(!NATIVE_SYMBOL){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");var description=!arguments.length||arguments[0]===undefined?undefined:String(arguments[0]);var tag=uid(description);var setter=function(value){if(this===ObjectPrototype)setter.call(ObjectPrototypeSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDescriptor(this,tag,createPropertyDescriptor(1,value))};if(DESCRIPTORS&&USE_SETTER)setSymbolDescriptor(ObjectPrototype,tag,{configurable:true,set:setter});return wrap(tag,description)};redefine($Symbol[PROTOTYPE],"toString",function toString(){return getInternalState(this).tag});redefine($Symbol,"withoutSetter",function(description){return wrap(uid(description),description)});propertyIsEnumerableModule.f=$propertyIsEnumerable;definePropertyModule.f=$defineProperty;getOwnPropertyDescriptorModule.f=$getOwnPropertyDescriptor;getOwnPropertyNamesModule.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames;getOwnPropertySymbolsModule.f=$getOwnPropertySymbols;wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol(name),name)};if(DESCRIPTORS){nativeDefineProperty($Symbol[PROTOTYPE],"description",{configurable:true,get:function description(){return getInternalState(this).description}});if(!IS_PURE){redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:true})}}}$({global:true,wrap:true,forced:!NATIVE_SYMBOL,sham:!NATIVE_SYMBOL},{Symbol:$Symbol});$forEach(objectKeys(WellKnownSymbolsStore),function(name){defineWellKnownSymbol(name)});$({target:SYMBOL,stat:true,forced:!NATIVE_SYMBOL},{for:function(key){var string=String(key);if(has(StringToSymbolRegistry,string))return StringToSymbolRegistry[string];var symbol=$Symbol(string);StringToSymbolRegistry[string]=symbol;SymbolToStringRegistry[symbol]=string;return symbol},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol");if(has(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]},useSetter:function(){USE_SETTER=true},useSimple:function(){USE_SETTER=false}});$({target:"Object",stat:true,forced:!NATIVE_SYMBOL,sham:!DESCRIPTORS},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor});$({target:"Object",stat:true,forced:!NATIVE_SYMBOL},{getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$({target:"Object",stat:true,forced:fails(function(){getOwnPropertySymbolsModule.f(1)})},{getOwnPropertySymbols:function getOwnPropertySymbols(it){return getOwnPropertySymbolsModule.f(toObject(it))}});if($stringify){var FORCED_JSON_STRINGIFY=!NATIVE_SYMBOL||fails(function(){var symbol=$Symbol();return $stringify([symbol])!="[null]"||$stringify({a:symbol})!="{}"||$stringify(Object(symbol))!="{}"});$({target:"JSON",stat:true,forced:FORCED_JSON_STRINGIFY},{stringify:function stringify(it,replacer,space){var args=[it];var index=1;var $replacer;while(arguments.length>index)args.push(arguments[index++]);$replacer=replacer;if(!isObject(replacer)&&it===undefined||isSymbol(it))return;if(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=="function")value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return $stringify.apply(null,args)}})}if(!$Symbol[PROTOTYPE][TO_PRIMITIVE]){createNonEnumerableProperty($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf)}setToStringTag($Symbol,SYMBOL);hiddenKeys[HIDDEN]=true},{"../internals/an-object":39,"../internals/array-iteration":44,"../internals/create-non-enumerable-property":57,"../internals/create-property-descriptor":58,"../internals/define-well-known-symbol":61,"../internals/descriptors":62,"../internals/export":69,"../internals/fails":70,"../internals/get-built-in":72,"../internals/global":74,"../internals/has":75,"../internals/hidden-keys":76,"../internals/internal-state":83,"../internals/is-array":85,"../internals/is-object":87,"../internals/is-pure":88,"../internals/native-symbol":94,"../internals/object-create":97,"../internals/object-define-property":99,"../internals/object-get-own-property-descriptor":100,"../internals/object-get-own-property-names":102,"../internals/object-get-own-property-names-external":101,"../internals/object-get-own-property-symbols":103,"../internals/object-keys":106,"../internals/object-property-is-enumerable":107,"../internals/redefine":116,"../internals/set-to-string-tag":120,"../internals/shared":123,"../internals/shared-key":121,"../internals/to-indexed-object":129,"../internals/to-object":132,"../internals/to-primitive":133,"../internals/uid":135,"../internals/use-symbol-as-uid":136,"../internals/well-known-symbol":138,"../internals/well-known-symbol-wrapped":137}],161:[function(require,module,exports){var global=require("../internals/global");var DOMIterables=require("../internals/dom-iterables");var forEach=require("../internals/array-for-each");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME];var CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty(CollectionPrototype,"forEach",forEach)}catch(error){CollectionPrototype.forEach=forEach}}},{"../internals/array-for-each":41,"../internals/create-non-enumerable-property":57,"../internals/dom-iterables":64,"../internals/global":74}],162:[function(require,module,exports){"use strict";var iterateObj=require("iterate-object"),sliced=require("sliced");function $(input,contextOrAttributes){if(typeof input==="string"){if(input.charAt(0)==="<"){input=document.createElement(input.slice(1,-1));iterateObj(contextOrAttributes||{},function(value,name){switch(name){case"text":input.textContent=value;return;case"html":input.innerHTML=value;return}input.setAttribute(name,value)});return input}else{contextOrAttributes=contextOrAttributes||document;return contextOrAttributes.querySelector(input)}}return input}$.$$=function(selector,context){if(typeof selector==="string"){context=context||document;return sliced(context.querySelectorAll(selector))}return[selector]};module.exports=$},{"iterate-object":166,sliced:169}],163:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _ref;var hasSymbol=typeof Symbol!=="undefined";var hasMap=typeof Map!=="undefined";var hasSet=typeof Set!=="undefined";var hasProxies=typeof Proxy!=="undefined"&&typeof Proxy.revocable!=="undefined"&&typeof Reflect!=="undefined";var NOTHING=hasSymbol?Symbol("immer-nothing"):(_ref={},_ref["immer-nothing"]=true,_ref);var DRAFTABLE=hasSymbol?Symbol("immer-draftable"):"__$immer_draftable";var DRAFT_STATE=hasSymbol?Symbol("immer-state"):"__$immer_state";var iteratorSymbol=hasSymbol?Symbol.iterator:"@@iterator";var errors={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function _(data){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+data},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function _(path){return"Cannot apply patch, path doesn't resolve: "+path},16:'Sets cannot have "replace" patches.',17:function _(op){return"Unsupported patch operation: "+op},18:function _(plugin){return"The plugin for '"+plugin+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+plugin+"()` when initializing your application."},19:"plugin not loaded",20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available"};function die(error){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}{var e=errors[error];var msg=!e?"unknown error nr: "+error:typeof e==="function"?e.apply(null,args):e;throw new Error("[Immer] "+msg)}}var ArchtypeObject=0;var ArchtypeArray=1;var ArchtypeMap=2;var ArchtypeSet=3;var ProxyTypeProxyObject=0;var ProxyTypeProxyArray=1;var ProxyTypeES5Object=4;var ProxyTypeES5Array=5;var ProxyTypeMap=2;var ProxyTypeSet=3;function isDraft(value){return!!value&&!!value[DRAFT_STATE]}function isDraftable(value){if(!value)return false;return isPlainObject(value)||Array.isArray(value)||!!value[DRAFTABLE]||!!value.constructor[DRAFTABLE]||isMap(value)||isSet(value)}function isPlainObject(value){if(!value||typeof value!=="object")return false;var proto=Object.getPrototypeOf(value);return!proto||proto===Object.prototype}function original(value){if(value&&value[DRAFT_STATE]){return value[DRAFT_STATE].base_}}var ownKeys=typeof Reflect!=="undefined"&&Reflect.ownKeys?Reflect.ownKeys:typeof Object.getOwnPropertySymbols!=="undefined"?function(obj){return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj))}:Object.getOwnPropertyNames;function each(obj,iter){if(getArchtype(obj)===ArchtypeObject){ownKeys(obj).forEach(function(key){return iter(key,obj[key],obj)})}else{obj.forEach(function(entry,index){return iter(index,entry,obj)})}}function getArchtype(thing){var state=thing[DRAFT_STATE];return state?state.type_>3?state.type_-4:state.type_:Array.isArray(thing)?ArchtypeArray:isMap(thing)?ArchtypeMap:isSet(thing)?ArchtypeSet:ArchtypeObject}function has(thing,prop){return getArchtype(thing)===ArchtypeMap?thing.has(prop):Object.prototype.hasOwnProperty.call(thing,prop)}function get(thing,prop){return getArchtype(thing)===ArchtypeMap?thing.get(prop):thing[prop]}function set(thing,propOrOldValue,value){var t=getArchtype(thing);if(t===ArchtypeMap)thing.set(propOrOldValue,value);else if(t===ArchtypeSet){thing.delete(propOrOldValue);thing.add(value)}else thing[propOrOldValue]=value}function is(x,y){if(x===y){return x!==0||1/x===1/y}else{return x!==x&&y!==y}}function isMap(target){return hasMap&&target instanceof Map}function isSet(target){return hasSet&&target instanceof Set}function latest(state){return state.copy_||state.base_}function shallowCopy(base,invokeGetters){if(invokeGetters===void 0){invokeGetters=false}if(Array.isArray(base))return base.slice();var clone=Object.create(Object.getPrototypeOf(base));each(base,function(key){if(key===DRAFT_STATE){return}var desc=Object.getOwnPropertyDescriptor(base,key);var value=desc.value;if(desc.get){if(!invokeGetters)die(1);value=desc.get.call(base)}if(desc.enumerable){clone[key]=value}else{Object.defineProperty(clone,key,{value:value,writable:true,configurable:true})}});return clone}function freeze(obj,deep){if(isDraft(obj)||Object.isFrozen(obj)||!isDraftable(obj))return;if(getArchtype(obj)>1){obj.set=obj.add=obj.clear=obj.delete=dontMutateFrozenCollections}Object.freeze(obj);if(deep)each(obj,function(_,value){return freeze(value,true)})}function dontMutateFrozenCollections(){die(2)}var plugins={};function getPlugin(pluginKey){var plugin=plugins[pluginKey];if(!plugin){die(18,pluginKey)}return plugin}function loadPlugin(pluginKey,implementation){plugins[pluginKey]=implementation}var currentScope;function getCurrentScope(){if(!currentScope)die(0);return currentScope}function createScope(parent_,immer_){return{drafts_:[],parent_:parent_,immer_:immer_,canAutoFreeze_:true,unfinalizedDrafts_:0}}function usePatchesInScope(scope,patchListener){if(patchListener){getPlugin("Patches");scope.patches_=[];scope.inversePatches_=[];scope.patchListener_=patchListener}}function revokeScope(scope){leaveScope(scope);scope.drafts_.forEach(revokeDraft);scope.drafts_=null}function leaveScope(scope){if(scope===currentScope){currentScope=scope.parent_}}function enterScope(immer){return currentScope=createScope(currentScope,immer)}function revokeDraft(draft){var state=draft[DRAFT_STATE];if(state.type_===ProxyTypeProxyObject||state.type_===ProxyTypeProxyArray)state.revoke_();else state.revoked_=true}function processResult(result,scope){scope.unfinalizedDrafts_=scope.drafts_.length;var baseDraft=scope.drafts_[0];var isReplaced=result!==undefined&&result!==baseDraft;if(!scope.immer_.useProxies_)getPlugin("ES5").willFinalizeES5_(scope,result,isReplaced);if(isReplaced){if(baseDraft[DRAFT_STATE].modified_){revokeScope(scope);die(4)}if(isDraftable(result)){result=finalize(scope,result);if(!scope.parent_)maybeFreeze(scope,result)}if(scope.patches_){getPlugin("Patches").generateReplacementPatches_(baseDraft[DRAFT_STATE],result,scope.patches_,scope.inversePatches_)}}else{result=finalize(scope,baseDraft,[])}revokeScope(scope);if(scope.patches_){scope.patchListener_(scope.patches_,scope.inversePatches_)}return result!==NOTHING?result:undefined}function finalize(rootScope,value,path){if(Object.isFrozen(value))return value;var state=value[DRAFT_STATE];if(!state){each(value,function(key,childValue){return finalizeProperty(rootScope,state,value,key,childValue,path)});return value}if(state.scope_!==rootScope)return value;if(!state.modified_){maybeFreeze(rootScope,state.base_,true);return state.base_}if(!state.finalized_){state.finalized_=true;state.scope_.unfinalizedDrafts_--;var result=state.type_===ProxyTypeES5Object||state.type_===ProxyTypeES5Array?state.copy_=shallowCopy(state.draft_,true):state.copy_;each(result,function(key,childValue){return finalizeProperty(rootScope,state,result,key,childValue,path)});maybeFreeze(rootScope,result,false);if(path&&rootScope.patches_){getPlugin("Patches").generatePatches_(state,path,rootScope.patches_,rootScope.inversePatches_)}}return state.copy_}function finalizeProperty(rootScope,parentState,targetObject,prop,childValue,rootPath){if(childValue===targetObject)die(5);if(isDraft(childValue)){var path=rootPath&&parentState&&parentState.type_!==ProxyTypeSet&&!has(parentState.assigned_,prop)?rootPath.concat(prop):undefined;var res=finalize(rootScope,childValue,path);set(targetObject,prop,res);if(isDraft(res)){rootScope.canAutoFreeze_=false}else return}if(parentState&&is(childValue,get(parentState.base_,prop))){return}if(isDraftable(childValue)){if(!rootScope.immer_.autoFreeze_&&rootScope.unfinalizedDrafts_<1){return}finalize(rootScope,childValue);if(!parentState||!parentState.scope_.parent_)maybeFreeze(rootScope,childValue)}}function maybeFreeze(scope,value,deep){if(deep===void 0){deep=false}if(scope.immer_.autoFreeze_&&scope.canAutoFreeze_){freeze(value,deep)}}function createProxyProxy(base,parent){var isArray=Array.isArray(base);var state={type_:isArray?ProxyTypeProxyArray:ProxyTypeProxyObject,scope_:parent?parent.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:parent,base_:base,draft_:null,drafts_:{},copy_:null,revoke_:null,isManual_:false};var target=state;var traps=objectTraps;if(isArray){target=[state];traps=arrayTraps}var _Proxy$revocable=Proxy.revocable(target,traps),revoke=_Proxy$revocable.revoke,proxy=_Proxy$revocable.proxy;state.draft_=proxy;state.revoke_=revoke;return proxy}var objectTraps={get:function get(state,prop){if(prop===DRAFT_STATE)return state;var drafts=state.drafts_;if(!state.modified_&&has(drafts,prop)){return drafts[prop]}var value=latest(state)[prop];if(state.finalized_||!isDraftable(value)){return value}if(state.modified_){if(value!==peek(state.base_,prop))return value;drafts=state.copy_}return drafts[prop]=createProxy(state.scope_.immer_,value,state)},has:function has(state,prop){return prop in latest(state)},ownKeys:function ownKeys(state){return Reflect.ownKeys(latest(state))},set:function set(state,prop,value){if(!state.modified_){var baseValue=peek(state.base_,prop);var isUnchanged=value?is(baseValue,value)||value===state.drafts_[prop]:is(baseValue,value)&&prop in state.base_;if(isUnchanged)return true;prepareCopy(state);markChangedProxy(state)}state.assigned_[prop]=true;state.copy_[prop]=value;return true},deleteProperty:function deleteProperty(state,prop){if(peek(state.base_,prop)!==undefined||prop in state.base_){state.assigned_[prop]=false;prepareCopy(state);markChangedProxy(state)}else if(state.assigned_[prop]){delete state.assigned_[prop]}if(state.copy_)delete state.copy_[prop];return true},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(state,prop){var owner=latest(state);var desc=Reflect.getOwnPropertyDescriptor(owner,prop);if(desc){desc.writable=true;desc.configurable=state.type_!==ProxyTypeProxyArray||prop!=="length"}return desc},defineProperty:function defineProperty(){die(11)},getPrototypeOf:function getPrototypeOf(state){return Object.getPrototypeOf(state.base_)},setPrototypeOf:function setPrototypeOf(){die(12)}};var arrayTraps={};each(objectTraps,function(key,fn){arrayTraps[key]=function(){arguments[0]=arguments[0][0];return fn.apply(this,arguments)}});arrayTraps.deleteProperty=function(state,prop){if(isNaN(parseInt(prop)))die(13);return objectTraps.deleteProperty.call(this,state[0],prop)};arrayTraps.set=function(state,prop,value){if(prop!=="length"&&isNaN(parseInt(prop)))die(14);return objectTraps.set.call(this,state[0],prop,value,state[0])};function peek(draft,prop){var state=draft[DRAFT_STATE];var desc=Reflect.getOwnPropertyDescriptor(state?latest(state):draft,prop);return desc&&desc.value}function markChangedProxy(state){if(!state.modified_){state.modified_=true;if(state.type_===ProxyTypeProxyObject||state.type_===ProxyTypeProxyArray){var copy=state.copy_=shallowCopy(state.base_);each(state.drafts_,function(key,value){copy[key]=value});state.drafts_=undefined}if(state.parent_){markChangedProxy(state.parent_)}}}function prepareCopy(state){if(!state.copy_){state.copy_=shallowCopy(state.base_)}}var Immer=function(){function Immer(config){this.useProxies_=hasProxies;this.autoFreeze_=true;if(typeof(config===null||config===void 0?void 0:config.useProxies)==="boolean")this.setUseProxies(config.useProxies);if(typeof(config===null||config===void 0?void 0:config.autoFreeze)==="boolean")this.setAutoFreeze(config.autoFreeze);this.produce=this.produce.bind(this);this.produceWithPatches=this.produceWithPatches.bind(this)}var _proto=Immer.prototype;_proto.produce=function produce(base,recipe,patchListener){if(typeof base==="function"&&typeof recipe!=="function"){var defaultBase=recipe;recipe=base;var self=this;return function curriedProduce(base){var _this=this;if(base===void 0){base=defaultBase}for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return self.produce(base,function(draft){var _recipe;return(_recipe=recipe).call.apply(_recipe,[_this,draft].concat(args))})}}if(typeof recipe!=="function")die(6);if(patchListener!==undefined&&typeof patchListener!=="function")die(7);var result;if(isDraftable(base)){var scope=enterScope(this);var proxy=createProxy(this,base,undefined);var hasError=true;try{result=recipe(proxy);hasError=false}finally{if(hasError)revokeScope(scope);else leaveScope(scope)}if(typeof Promise!=="undefined"&&result instanceof Promise){return result.then(function(result){usePatchesInScope(scope,patchListener);return processResult(result,scope)},function(error){revokeScope(scope);throw error})}usePatchesInScope(scope,patchListener);return processResult(result,scope)}else{result=recipe(base);if(result===NOTHING)return undefined;if(result===undefined)result=base;if(this.autoFreeze_)freeze(result,true);return result}};_proto.produceWithPatches=function produceWithPatches(arg1,arg2,arg3){var _this2=this;if(typeof arg1==="function"){return function(state){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}return _this2.produceWithPatches(state,function(draft){return arg1.apply(void 0,[draft].concat(args))})}}var patches,inversePatches;var nextState=this.produce(arg1,arg2,function(p,ip){patches=p;inversePatches=ip});return[nextState,patches,inversePatches]};_proto.createDraft=function createDraft(base){if(!isDraftable(base))die(8);var scope=enterScope(this);var proxy=createProxy(this,base,undefined);proxy[DRAFT_STATE].isManual_=true;leaveScope(scope);return proxy};_proto.finishDraft=function finishDraft(draft,patchListener){var state=draft&&draft[DRAFT_STATE];{if(!state||!state.isManual_)die(9);if(state.finalized_)die(10)}var scope=state.scope_;usePatchesInScope(scope,patchListener);return processResult(undefined,scope)};_proto.setAutoFreeze=function setAutoFreeze(value){this.autoFreeze_=value};_proto.setUseProxies=function setUseProxies(value){if(!hasProxies){die(20)}this.useProxies_=value};_proto.applyPatches=function applyPatches(base,patches){var i;for(i=patches.length-1;i>=0;i--){var patch=patches[i];if(patch.path.length===0&&patch.op==="replace"){base=patch.value;break}}var applyPatchesImpl=getPlugin("Patches").applyPatches_;if(isDraft(base)){return applyPatchesImpl(base,patches)}return this.produce(base,function(draft){return applyPatchesImpl(draft,patches.slice(i+1))})};return Immer}();function createProxy(immer,value,parent){var draft=isMap(value)?getPlugin("MapSet").proxyMap_(value,parent):isSet(value)?getPlugin("MapSet").proxySet_(value,parent):immer.useProxies_?createProxyProxy(value,parent):getPlugin("ES5").createES5Proxy_(value,parent);var scope=parent?parent.scope_:getCurrentScope();scope.drafts_.push(draft);return draft}function markChanged(immer,state){if(immer.useProxies_){markChangedProxy(state)}else{getPlugin("ES5").markChangedES5_(state)}}function enableES5(){function willFinalizeES5_(scope,result,isReplaced){scope.drafts_.forEach(function(draft){draft[DRAFT_STATE].finalizing_=true});if(!isReplaced){if(scope.patches_){markChangesRecursively(scope.drafts_[0])}markChangesSweep(scope.drafts_)}else if(isDraft(result)&&result[DRAFT_STATE].scope_===scope){markChangesSweep(scope.drafts_)}}function createES5Proxy_(base,parent){var isArray=Array.isArray(base);var draft=clonePotentialDraft(base);each(draft,function(prop){proxyProperty(draft,prop,isArray||isEnumerable(base,prop))});var state={type_:isArray?ProxyTypeES5Array:ProxyTypeES5Object,scope_:parent?parent.scope_:getCurrentScope(),modified_:false,finalizing_:false,finalized_:false,assigned_:{},parent_:parent,base_:base,draft_:draft,copy_:null,revoked_:false,isManual_:false};Object.defineProperty(draft,DRAFT_STATE,{value:state,writable:true});return draft}function peek(draft,prop){var state=draft[DRAFT_STATE];if(state&&!state.finalizing_){state.finalizing_=true;var value=draft[prop];state.finalizing_=false;return value}return draft[prop]}function _get(state,prop){assertUnrevoked(state);var value=peek(latest(state),prop);if(state.finalizing_)return value;if(value===peek(state.base_,prop)&&isDraftable(value)){prepareCopy(state);return state.copy_[prop]=createProxy(state.scope_.immer_,value,state)}return value}function _set(state,prop,value){assertUnrevoked(state);state.assigned_[prop]=true;if(!state.modified_){if(is(value,peek(latest(state),prop)))return;markChangedES5_(state);prepareCopy(state)}state.copy_[prop]=value}function markChangedES5_(state){if(!state.modified_){state.modified_=true;if(state.parent_)markChangedES5_(state.parent_)}}function prepareCopy(state){if(!state.copy_)state.copy_=clonePotentialDraft(state.base_)}function clonePotentialDraft(base){var state=base&&base[DRAFT_STATE];if(state){state.finalizing_=true;var draft=shallowCopy(state.draft_,true);state.finalizing_=false;return draft}return shallowCopy(base)}var descriptors={};function proxyProperty(draft,prop,enumerable){var desc=descriptors[prop];if(desc){desc.enumerable=enumerable}else{descriptors[prop]=desc={enumerable:enumerable,get:function get(){return _get(this[DRAFT_STATE],prop)},set:function set(value){_set(this[DRAFT_STATE],prop,value)}}}Object.defineProperty(draft,prop,desc)}function markChangesSweep(drafts){for(var i=drafts.length-1;i>=0;i--){var state=drafts[i][DRAFT_STATE];if(!state.modified_){switch(state.type_){case ProxyTypeES5Array:if(hasArrayChanges(state))markChangedES5_(state);break;case ProxyTypeES5Object:if(hasObjectChanges(state))markChangedES5_(state);break}}}}function markChangesRecursively(object){if(!object||typeof object!=="object")return;var state=object[DRAFT_STATE];if(!state)return;var base_=state.base_,draft_=state.draft_,assigned_=state.assigned_,type_=state.type_;if(type_===ProxyTypeES5Object){each(draft_,function(key){if(key===DRAFT_STATE)return;if(base_[key]===undefined&&!has(base_,key)){assigned_[key]=true;markChangedES5_(state)}else if(!assigned_[key]){markChangesRecursively(draft_[key])}});each(base_,function(key){if(draft_[key]===undefined&&!has(draft_,key)){assigned_[key]=false;markChangedES5_(state)}})}else if(type_===ProxyTypeES5Array){if(hasArrayChanges(state)){markChangedES5_(state);assigned_.length=true}if(draft_.length=0;i--){var key=keys[i];var baseValue=base_[key];if(baseValue===undefined&&!has(base_,key)){return true}else{var value=draft_[key];var _state=value&&value[DRAFT_STATE];if(_state?_state.base_!==baseValue:!is(value,baseValue)){return true}}}return keys.length!==Object.keys(base_).length}function hasArrayChanges(state){var draft_=state.draft_;if(draft_.length!==state.base_.length)return true;var descriptor=Object.getOwnPropertyDescriptor(draft_,draft_.length-1);if(descriptor&&!descriptor.get)return true;return false}function isEnumerable(base,prop){var desc=Object.getOwnPropertyDescriptor(base,prop);return desc&&desc.enumerable?true:false}function assertUnrevoked(state){if(state.revoked_)die(3,JSON.stringify(latest(state)))}loadPlugin("ES5",{createES5Proxy_:createES5Proxy_,markChangedES5_:markChangedES5_,willFinalizeES5_:willFinalizeES5_})}function enablePatches(){var REPLACE="replace";var ADD="add";var REMOVE="remove";function generatePatches_(state,basePath,patches,inversePatches){switch(state.type_){case ProxyTypeProxyObject:case ProxyTypeES5Object:case ProxyTypeMap:return generatePatchesFromAssigned(state,basePath,patches,inversePatches);case ProxyTypeES5Array:case ProxyTypeProxyArray:return generateArrayPatches(state,basePath,patches,inversePatches);case ProxyTypeSet:return generateSetPatches(state,basePath,patches,inversePatches)}}function generateArrayPatches(state,basePath,patches,inversePatches){var base_=state.base_,assigned_=state.assigned_;var copy_=state.copy_;if(copy_.lengthstart&&base_[end-1]===copy_[end+delta-1]){--end}for(var i=start;i=end;--_i){var _path=basePath.concat([_i]);patches[replaceCount+_i-end]={op:ADD,path:_path,value:copy_[_i]};inversePatches.push({op:REMOVE,path:_path})}}function generatePatchesFromAssigned(state,basePath,patches,inversePatches){var base_=state.base_,copy_=state.copy_;each(state.assigned_,function(key,assignedValue){var origValue=get(base_,key);var value=get(copy_,key);var op=!assignedValue?REMOVE:has(base_,key)?REPLACE:ADD;if(origValue===value&&op===REPLACE)return;var path=basePath.concat(key);patches.push(op===REMOVE?{op:op,path:path}:{op:op,path:path,value:value});inversePatches.push(op===ADD?{op:REMOVE,path:path}:op===REMOVE?{op:ADD,path:path,value:origValue}:{op:REPLACE,path:path,value:origValue})})}function generateSetPatches(state,basePath,patches,inversePatches){var base_=state.base_,copy_=state.copy_;var i=0;base_.forEach(function(value){if(!copy_.has(value)){var path=basePath.concat([i]);patches.push({op:REMOVE,path:path,value:value});inversePatches.unshift({op:ADD,path:path,value:value})}i++});i=0;copy_.forEach(function(value){if(!base_.has(value)){var path=basePath.concat([i]);patches.push({op:ADD,path:path,value:value});inversePatches.unshift({op:REMOVE,path:path,value:value})}i++})}function generateReplacementPatches_(rootState,replacement,patches,inversePatches){patches.push({op:REPLACE,path:[],value:replacement});inversePatches.push({op:REPLACE,path:[],value:rootState.base_})}function applyPatches_(draft,patches){patches.forEach(function(patch){var path=patch.path,op=patch.op;var base=draft;for(var i=0;i1?n-1:0),e=1;e3?n.t-4:n.t:Array.isArray(t)?1:a(t)?2:c(t)?3:0}function u(t,n){return 2===i(t)?t.has(n):Object.prototype.hasOwnProperty.call(t,n)}function o(t,n){return 2===i(t)?t.get(n):t[n]}function f(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}function a(t){return N&&t instanceof Map}function c(t){return $&&t instanceof Set}function s(t){return t.i||t.u}function v(n,r){if(void 0===r&&(r=!1),Array.isArray(n))return n.slice();var i=Object.create(Object.getPrototypeOf(n));return e(n,function(e){if(e!==X){var u=Object.getOwnPropertyDescriptor(n,e),o=u.value;u.get&&(r||t(1),o=u.get.call(n)),u.enumerable?i[e]=o:Object.defineProperty(i,e,{value:o,writable:!0,configurable:!0})}}),i}function p(t,u){n(t)||Object.isFrozen(t)||!r(t)||(i(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),u&&e(t,function(t,n){return p(n,!0)}))}function h(){t(2)}function l(n){var r=G[n];return r||t(19,n),r}function d(t,n){G[t]=n}function _(){return J}function y(t,n){n&&(l("Patches"),t.o=[],t.s=[],t.v=n)}function b(t){m(t),t.p.forEach(j),t.p=null}function m(t){t===J&&(J=t.h)}function O(t){return J={p:[],h:J,l:t,_:!0,m:0}}function j(t){var n=t[X];0===n.t||1===n.t?n.O():n.j=!0}function x(n,e){e.m=e.p.length;var i=e.p[0],u=void 0!==n&&n!==i;return e.l.S||l("ES5").P(e,n,u),u?(i[X].M&&(b(e),t(4)),r(n)&&(n=w(e,n),e.h||P(e,n)),e.o&&l("Patches").g(i[X],n,e.o,e.s)):n=w(e,i,[]),b(e),e.o&&e.v(e.o,e.s),n!==I?n:void 0}function w(t,n,r){if(Object.isFrozen(n))return n;var i=n[X];if(!i)return e(n,function(e,u){return S(t,i,n,e,u,r)}),n;if(i.A!==t)return n;if(!i.M)return P(t,i.u,!0),i.u;if(!i.R){i.R=!0,i.A.m--;var u=4===i.t||5===i.t?i.i=v(i.k,!0):i.i;e(u,function(n,e){return S(t,i,u,n,e,r)}),P(t,u,!1),r&&t.o&&l("Patches").F(i,r,t.o,t.s)}return i.i}function S(t,e,a,c,s,v){if(n(s)){var p=w(t,s,v&&e&&3!==e.t&&!u(e.D,c)?v.concat(c):void 0);if(l=c,d=p,2===(_=i(h=a))?h.set(l,d):3===_?(h.delete(l),h.add(d)):h[l]=d,!n(p))return;t._=!1}var h,l,d,_;if((!e||!f(s,o(e.u,c)))&&r(s)){if(!t.l.J&&t.m<1)return;w(t,s),e&&e.A.h||P(t,s)}}function P(t,n,r){void 0===r&&(r=!1),t.l.J&&t._&&p(n,r)}function M(t,n){var r=t[X],e=Reflect.getOwnPropertyDescriptor(r?s(r):t,n);return e&&e.value}function g(t){if(!t.M){if(t.M=!0,0===t.t||1===t.t){var n=t.i=v(t.u);e(t.p,function(t,r){n[t]=r}),t.p=void 0}t.h&&g(t.h)}}function A(t){t.i||(t.i=v(t.u))}function z(t,n,r){var e=a(n)?l("MapSet").K(n,r):c(n)?l("MapSet").N(n,r):t.S?function(t,n){var r=Array.isArray(t),e={t:r?1:0,A:n?n.A:_(),M:!1,R:!1,D:{},h:n,u:t,k:null,p:{},i:null,O:null,$:!1},i=e,u=H;r&&(i=[e],u=L);var o=Proxy.revocable(i,u),f=o.revoke,a=o.proxy;return e.k=a,e.O=f,a}(n,r):l("ES5").C(n,r);return(r?r.A:_()).p.push(e),e}function E(t,n){t.S?g(n):l("ES5").I(n)}function R(){function i(t,n){var r=t[X];if(r&&!r.W){r.W=!0;var e=t[n];return r.W=!1,e}return t[n]}function o(t){t.M||(t.M=!0,t.h&&o(t.h))}function a(t){t.i||(t.i=c(t.u))}function c(t){var n=t&&t[X];if(n){n.W=!0;var r=v(n.k,!0);return n.W=!1,r}return v(t)}function p(t){for(var n=t.length-1;n>=0;n--){var r=t[n][X];if(!r.M)switch(r.t){case 5:l(r)&&o(r);break;case 4:h(r)&&o(r)}}}function h(t){for(var n=t.u,r=t.k,e=Object.keys(r),i=e.length-1;i>=0;i--){var o=e[i],a=n[o];if(void 0===a&&!u(n,o))return!0;var c=r[o],s=c&&c[X];if(s?s.u!==a:!f(c,a))return!0}return e.length!==Object.keys(n).length}function l(t){var n=t.k;if(n.length!==t.u.length)return!0;var r=Object.getOwnPropertyDescriptor(n,n.length-1);return!(!r||r.get)}function y(n){n.j&&t(3,JSON.stringify(s(n)))}var b={};d("ES5",{C:function(t,n){var u=Array.isArray(t),v=c(t);e(v,function(n){!function(t,n,e){var u=b[n];u?u.enumerable=e:b[n]=u={enumerable:e,get:function(){return function(t,n){y(t);var e=i(s(t),n);return t.W?e:e===i(t.u,n)&&r(e)?(a(t),t.i[n]=z(t.A.l,e,t)):e}(this[X],n)},set:function(t){!function(t,n,r){if(y(t),t.D[n]=!0,!t.M){if(f(r,i(s(t),n)))return;o(t),a(t)}t.i[n]=r}(this[X],n,t)}},Object.defineProperty(t,n,u)}(v,n,u||function(t,n){var r=Object.getOwnPropertyDescriptor(t,n);return!(!r||!r.enumerable)}(t,n))});var p={t:u?5:4,A:n?n.A:_(),M:!1,W:!1,R:!1,D:{},h:n,u:t,k:v,i:null,j:!1,$:!1};return Object.defineProperty(v,X,{value:p,writable:!0}),v},I:o,P:function(t,r,i){t.p.forEach(function(t){t[X].W=!0}),i?n(r)&&r[X].A===t&&p(t.p):(t.o&&function t(n){if(n&&"object"==typeof n){var r=n[X];if(r){var i=r.u,f=r.k,a=r.D,c=r.t;if(4===c)e(f,function(n){n!==X&&(void 0!==i[n]||u(i,n)?a[n]||t(f[n]):(a[n]=!0,o(r)))}),e(i,function(t){void 0!==f[t]||u(f,t)||(a[t]=!1,o(r))});else if(5===c){if(l(r)&&(o(r),a.length=!0),f.lengthv&&u[p-1]===f[p+s-1];)--p;for(var h=v;h=p;--_){var y=n.concat([_]);e[d+_-p]={op:r,path:y,value:f[_]},i.push({op:"remove",path:y})}}(t,n,i,f);case 3:return function(t,n,e,i){var u=t.u,o=t.i,f=0;u.forEach(function(t){if(!o.has(t)){var u=n.concat([f]);e.push({op:"remove",path:u,value:t}),i.unshift({op:r,path:u,value:t})}f++}),f=0,o.forEach(function(t){if(!u.has(t)){var o=n.concat([f]);e.push({op:r,path:o,value:t}),i.unshift({op:"remove",path:o,value:t})}f++})}(t,n,i,f)}},g:function(t,n,r,e){r.push({op:"replace",path:[],value:n}),e.push({op:"replace",path:[],value:t.u})}})}function F(){function n(t,n){function r(){this.constructor=t}o(t,n),t.prototype=(r.prototype=n.prototype,new r)}function e(t){t.i||(t.D=new Map,t.i=new Map(t.u))}function i(t){t.i||(t.i=new Set,t.u.forEach(function(n){if(r(n)){var e=z(t.A.l,n,t);t.p.set(n,e),t.i.add(e)}else t.i.add(n)}))}function u(n){n.j&&t(3,JSON.stringify(s(n)))}var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)},f=function(){function t(t,n){return this[X]={t:2,h:n,A:n?n.A:_(),M:!1,R:!1,i:void 0,D:void 0,u:t,k:this,$:!1,j:!1},this}n(t,Map);var i=t.prototype;return Object.defineProperty(i,"size",{get:function(){return s(this[X]).size}}),i.has=function(t){return s(this[X]).has(t)},i.set=function(t,n){var r=this[X];return u(r),s(r).get(t)!==n&&(e(r),E(r.A.l,r),r.D.set(t,!0),r.i.set(t,n),r.D.set(t,!0)),this},i.delete=function(t){if(!this.has(t))return!1;var n=this[X];return u(n),e(n),E(n.A.l,n),n.D.set(t,!1),n.i.delete(t),!0},i.clear=function(){var t=this[X];return u(t),e(t),E(t.A.l,t),t.D=new Map,t.i.clear()},i.forEach=function(t,n){var r=this;s(this[X]).forEach(function(e,i){t.call(n,r.get(i),i,r)})},i.get=function(t){var n=this[X];u(n);var i=s(n).get(t);if(n.R||!r(i))return i;if(i!==n.u.get(t))return i;var o=z(n.A.l,i,n);return e(n),n.i.set(t,o),o},i.keys=function(){return s(this[X]).keys()},i.values=function(){var t,n=this,r=this.keys();return(t={})[q]=function(){return n.values()},t.next=function(){var t=r.next();return t.done?t:{done:!1,value:n.get(t.value)}},t},i.entries=function(){var t,n=this,r=this.keys();return(t={})[q]=function(){return n.entries()},t.next=function(){var t=r.next();if(t.done)return t;var e=n.get(t.value);return{done:!1,value:[t.value,e]}},t},i[q]=function(){return this.entries()},t}(),a=function(){function t(t,n){return this[X]={t:3,h:n,A:n?n.A:_(),M:!1,R:!1,i:void 0,u:t,k:this,p:new Map,j:!1,$:!1},this}n(t,Set);var r=t.prototype;return Object.defineProperty(r,"size",{get:function(){return s(this[X]).size}}),r.has=function(t){var n=this[X];return u(n),n.i?!!n.i.has(t)||!(!n.p.has(t)||!n.i.has(n.p.get(t))):n.u.has(t)},r.add=function(t){var n=this[X];return u(n),n.i?n.i.add(t):n.u.has(t)||(i(n),E(n.A.l,n),n.i.add(t)),this},r.delete=function(t){if(!this.has(t))return!1;var n=this[X];return u(n),i(n),E(n.A.l,n),n.i.delete(t)||!!n.p.has(t)&&n.i.delete(n.p.get(t))},r.clear=function(){var t=this[X];return u(t),i(t),E(t.A.l,t),t.i.clear()},r.values=function(){var t=this[X];return u(t),i(t),t.i.values()},r.entries=function(){var t=this[X];return u(t),i(t),t.i.entries()},r.keys=function(){return this.values()},r[q]=function(){return this.values()},r.forEach=function(t,n){for(var r=this.values(),e=r.next();!e.done;)t.call(n,e.value,e.value,this),e=r.next()},t}();d("MapSet",{K:function(t,n){return new f(t,n)},N:function(t,n){return new a(t,n)}})}var D;Object.defineProperty(exports,"__esModule",{value:!0});var J,K="undefined"!=typeof Symbol,N="undefined"!=typeof Map,$="undefined"!=typeof Set,C="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,I=K?Symbol("immer-nothing"):((D={})["immer-nothing"]=!0,D),W=K?Symbol("immer-draftable"):"__$immer_draftable",X=K?Symbol("immer-state"):"__$immer_state",q=K?Symbol.iterator:"@@iterator",B="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,G={},H={get:function(t,n){if(n===X)return t;var e=t.p;if(!t.M&&u(e,n))return e[n];var i=s(t)[n];if(t.R||!r(i))return i;if(t.M){if(i!==M(t.u,n))return i;e=t.i}return e[n]=z(t.A.l,i,t)},has:function(t,n){return n in s(t)},ownKeys:function(t){return Reflect.ownKeys(s(t))},set:function(t,n,r){if(!t.M){var e=M(t.u,n);if(r?f(e,r)||r===t.p[n]:f(e,r)&&n in t.u)return!0;A(t),g(t)}return t.D[n]=!0,t.i[n]=r,!0},deleteProperty:function(t,n){return void 0!==M(t.u,n)||n in t.u?(t.D[n]=!1,A(t),g(t)):t.D[n]&&delete t.D[n],t.i&&delete t.i[n],!0},getOwnPropertyDescriptor:function(t,n){var r=s(t),e=Reflect.getOwnPropertyDescriptor(r,n);return e&&(e.writable=!0,e.configurable=1!==t.t||"length"!==n),e},defineProperty:function(){t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.u)},setPrototypeOf:function(){t(12)}},L={};e(H,function(t,n){L[t]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),L.deleteProperty=function(t,n){return H.deleteProperty.call(this,t[0],n)},L.set=function(t,n,r){return H.set.call(this,t[0],n,r,t[0])};var Q=function(){function e(t){this.S=C,this.J=!1,"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var i=e.prototype;return i.produce=function(n,e,i){if("function"==typeof n&&"function"!=typeof e){var u=e;e=n;var o=this;return function(t){var n=this;void 0===t&&(t=u);for(var r=arguments.length,i=Array(r>1?r-1:0),f=1;f1?r-1:0),u=1;u=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}var u=l("Patches").X;return n(t)?u(t,r):this.produce(t,function(t){return u(t,r.slice(e+1))})},e}(),T=new Q,U=T.produce,V=T.produceWithPatches.bind(T),Y=T.setAutoFreeze.bind(T),Z=T.setUseProxies.bind(T),tt=T.applyPatches.bind(T),nt=T.createDraft.bind(T),rt=T.finishDraft.bind(T);exports.Immer=Q,exports.applyPatches=tt,exports.castDraft=function(t){return t},exports.castImmutable=function(t){return t},exports.createDraft=nt,exports.default=U,exports.enableAllPlugins=function(){R(),F(),k()},exports.enableES5=R,exports.enableMapSet=F,exports.enablePatches=k,exports.finishDraft=rt,exports.immerable=W,exports.isDraft=n,exports.isDraftable=r,exports.nothing=I,exports.original=function(t){if(t&&t[X])return t[X].u},exports.produce=U,exports.produceWithPatches=V,exports.setAutoFreeze=Y,exports.setUseProxies=Z},{}],165:[function(require,module,exports){(function(process){"use strict";if(process.env.NODE_ENV==="production"){module.exports=require("./immer.cjs.production.min.js")}else{module.exports=require("./immer.cjs.development.js")}}).call(this,require("_process"))},{"./immer.cjs.development.js":163,"./immer.cjs.production.min.js":164,_process:167}],166:[function(require,module,exports){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};function iterateObject(obj,fn){var i=0,keys=[];if(Array.isArray(obj)){for(;i1){for(var i=1;i=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method==="next"){this.arg=undefined}return ContinueSentinel}};return exports}(typeof module==="object"?module.exports:{});try{regeneratorRuntime=runtime}catch(accidentalStrictMode){Function("r","regeneratorRuntime = r")(runtime)}},{}],169:[function(require,module,exports){module.exports=function(args,slice,sliceEnd){var ret=[];var len=args.length;if(0===len)return ret;var start=slice<0?Math.max(0,slice+len):slice||0;if(sliceEnd!==undefined){len=sliceEnd<0?sliceEnd+len:sliceEnd}while(len-- >start){ret[len-start]=args[len]}return ret}},{}],170:[function(require,module,exports){(function(global){(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define(factory):(global=global||self,global.svgson=factory())})(this,function(){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _objectSpread(target){for(var i=1;i-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&(type=="object"||type=="function")}function isObjectLike(value){return!!value&&typeof value=="object"}function stubFalse(){return false}module.exports=isEmpty});var objectTag="[object Object]";function isHostObject(value){var result=false;if(value!=null&&typeof value.toString!="function"){try{result=!!(value+"")}catch(e){}}return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}var funcProto=Function.prototype,objectProto=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var objectCtorString=funcToString.call(Object);var objectToString=objectProto.toString;var getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(value){return!!value&&typeof value=="object"}function isPlainObject$1(value){if(!isObjectLike(value)||objectToString.call(value)!=objectTag||isHostObject(value)){return false}var proto=getPrototype(value);if(proto===null){return true}var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}var lodash_isplainobject=isPlainObject$1;var lodash_transform=createCommonjsModule(function(module,exports){var LARGE_ARRAY_SIZE=200;var FUNC_ERROR_TEXT="Expected a function";var HASH_UNDEFINED="__lodash_hash_undefined__";var UNORDERED_COMPARE_FLAG=1,PARTIAL_COMPARE_FLAG=2;var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991;var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",promiseTag="[object Promise]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reEscapeChar=/\\(\\)?/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var reIsUint=/^(?:0|[1-9]\d*)$/;var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;var freeGlobal=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&"object"=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{return freeProcess&&freeProcess.binding("util")}catch(e){}}();var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function arrayEach(array,iteratee){var index=-1,length=array?array.length:0;while(++index-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value])}else{data[index][1]=value}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++indexarrLength)){return false}var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other}var index=-1,result=true,seen=bitmask&UNORDERED_COMPARE_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&(type=="object"||type=="function")}function isObjectLike(value){return!!value&&typeof value=="object"}function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&objectToString.call(value)==symbolTag}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;function toString(value){return value==null?"":baseToString(value)}function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result}function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function transform(object,iteratee,accumulator){var isArr=isArray(object)||isTypedArray(object);iteratee=baseIteratee(iteratee,4);if(accumulator==null){if(isArr||isObject(object)){var Ctor=object.constructor;if(isArr){accumulator=isArray(object)?new Ctor:[]}else{accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{}}}else{accumulator={}}}(isArr?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator}function identity(value){return value}function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}module.exports=transform});var dist=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=cleanDeep;var _lodash2=_interopRequireDefault(lodash_isempty);var _lodash4=_interopRequireDefault(lodash_isplainobject);var _lodash6=_interopRequireDefault(lodash_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function cleanDeep(object){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$emptyArrays=_ref.emptyArrays,emptyArrays=_ref$emptyArrays===undefined?true:_ref$emptyArrays,_ref$emptyObjects=_ref.emptyObjects,emptyObjects=_ref$emptyObjects===undefined?true:_ref$emptyObjects,_ref$emptyStrings=_ref.emptyStrings,emptyStrings=_ref$emptyStrings===undefined?true:_ref$emptyStrings,_ref$nullValues=_ref.nullValues,nullValues=_ref$nullValues===undefined?true:_ref$nullValues,_ref$undefinedValues=_ref.undefinedValues,undefinedValues=_ref$undefinedValues===undefined?true:_ref$undefinedValues;return(0,_lodash6.default)(object,function(result,value,key){if(Array.isArray(value)||(0,_lodash4.default)(value)){value=cleanDeep(value,{emptyArrays:emptyArrays,emptyObjects:emptyObjects,emptyStrings:emptyStrings,nullValues:nullValues,undefinedValues:undefinedValues})}if(emptyObjects&&(0,_lodash4.default)(value)&&(0,_lodash2.default)(value)){return}if(emptyArrays&&Array.isArray(value)&&!value.length){return}if(emptyStrings&&value===""){return}if(nullValues&&value===null){return}if(undefinedValues&&value===undefined){return}if(Array.isArray(result)){return result.push(value)}result[key]=value})}module.exports=exports["default"]});var clean=unwrapExports(dist);var eventemitter3=createCommonjsModule(function(module){var has=Object.prototype.hasOwnProperty,prefix="~";function Events(){}if(Object.create){Events.prototype=Object.create(null);if(!(new Events).__proto__)prefix=false}function EE(fn,context,once){this.fn=fn;this.context=context;this.once=once||false}function EventEmitter(){this._events=new Events;this._eventsCount=0}EventEmitter.prototype.eventNames=function eventNames(){var names=[],events,name;if(this._eventsCount===0)return names;for(name in events=this._events){if(has.call(events,name))names.push(prefix?name.slice(1):name)}if(Object.getOwnPropertySymbols){return names.concat(Object.getOwnPropertySymbols(events))}return names};EventEmitter.prototype.listeners=function listeners(event,exists){var evt=prefix?prefix+event:event,available=this._events[evt];if(exists)return!!available;if(!available)return[];if(available.fn)return[available.fn];for(var i=0,l=available.length,ee=new Array(l);i":Action.gt,'"':Action.quote,"'":Action.quote,"=":Action.equal,"/":Action.slash};var getAction=function getAction(char){return charToAction[char]||Action.char};var create=function create(options){var _State$data,_State$tagBegin,_State$tagName,_State$tagEnd,_State$attributeNameS,_State$attributeName,_State$attributeNameE,_State$attributeValue,_State$attributeValue2,_lexer$stateMachine;options=Object.assign({debug:false},options);var lexer=new eventemitter3;var state=State.data;var data="";var tagName="";var attrName="";var attrValue="";var isClosing="";var openingQuote="";var emit=function emit(type,value){if(tagName[0]==="?"||tagName[0]==="!"){return}var event={type:type,value:value};if(options.debug){console.log("emit:",event)}lexer.emit("data",event)};lexer.stateMachine=(_lexer$stateMachine={},_defineProperty$1(_lexer$stateMachine,State.data,(_State$data={},_defineProperty$1(_State$data,Action.lt,function(){if(data.trim()){emit(Type.text,data)}tagName="";isClosing=false;state=State.tagBegin}),_defineProperty$1(_State$data,Action.char,function(char){data+=char}),_State$data)),_defineProperty$1(_lexer$stateMachine,State.cdata,_defineProperty$1({},Action.char,function(char){data+=char;if(data.substr(-3)==="]]>"){emit(Type.text,data.slice(0,-3));data="";state=State.data}})),_defineProperty$1(_lexer$stateMachine,State.tagBegin,(_State$tagBegin={},_defineProperty$1(_State$tagBegin,Action.space,noop),_defineProperty$1(_State$tagBegin,Action.char,function(char){tagName=char;state=State.tagName}),_defineProperty$1(_State$tagBegin,Action.slash,function(){tagName="";isClosing=true}),_State$tagBegin)),_defineProperty$1(_lexer$stateMachine,State.tagName,(_State$tagName={},_defineProperty$1(_State$tagName,Action.space,function(){if(isClosing){state=State.tagEnd}else{state=State.attributeNameStart;emit(Type.openTag,tagName)}}),_defineProperty$1(_State$tagName,Action.gt,function(){if(isClosing){emit(Type.closeTag,tagName)}else{emit(Type.openTag,tagName)}data="";state=State.data}),_defineProperty$1(_State$tagName,Action.slash,function(){state=State.tagEnd;emit(Type.openTag,tagName)}),_defineProperty$1(_State$tagName,Action.char,function(char){tagName+=char;if(tagName==="![CDATA["){state=State.cdata;data="";tagName=""}}),_State$tagName)),_defineProperty$1(_lexer$stateMachine,State.tagEnd,(_State$tagEnd={},_defineProperty$1(_State$tagEnd,Action.gt,function(){emit(Type.closeTag,tagName);data="";state=State.data}),_defineProperty$1(_State$tagEnd,Action.char,noop),_State$tagEnd)),_defineProperty$1(_lexer$stateMachine,State.attributeNameStart,(_State$attributeNameS={},_defineProperty$1(_State$attributeNameS,Action.char,function(char){attrName=char;state=State.attributeName}),_defineProperty$1(_State$attributeNameS,Action.gt,function(){data="";state=State.data}),_defineProperty$1(_State$attributeNameS,Action.space,noop),_defineProperty$1(_State$attributeNameS,Action.slash,function(){isClosing=true;state=State.tagEnd}),_State$attributeNameS)),_defineProperty$1(_lexer$stateMachine,State.attributeName,(_State$attributeName={},_defineProperty$1(_State$attributeName,Action.space,function(){state=State.attributeNameEnd}),_defineProperty$1(_State$attributeName,Action.equal,function(){emit(Type.attributeName,attrName);state=State.attributeValueBegin}),_defineProperty$1(_State$attributeName,Action.gt,function(){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeName,Action.slash,function(){isClosing=true;attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);state=State.tagEnd}),_defineProperty$1(_State$attributeName,Action.char,function(char){attrName+=char}),_State$attributeName)),_defineProperty$1(_lexer$stateMachine,State.attributeNameEnd,(_State$attributeNameE={},_defineProperty$1(_State$attributeNameE,Action.space,noop),_defineProperty$1(_State$attributeNameE,Action.equal,function(){emit(Type.attributeName,attrName);state=State.attributeValueBegin}),_defineProperty$1(_State$attributeNameE,Action.gt,function(){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeNameE,Action.char,function(char){attrValue="";emit(Type.attributeName,attrName);emit(Type.attributeValue,attrValue);attrName=char;state=State.attributeName}),_State$attributeNameE)),_defineProperty$1(_lexer$stateMachine,State.attributeValueBegin,(_State$attributeValue={},_defineProperty$1(_State$attributeValue,Action.space,noop),_defineProperty$1(_State$attributeValue,Action.quote,function(char){openingQuote=char;attrValue="";state=State.attributeValue}),_defineProperty$1(_State$attributeValue,Action.gt,function(){attrValue="";emit(Type.attributeValue,attrValue);data="";state=State.data}),_defineProperty$1(_State$attributeValue,Action.char,function(char){openingQuote="";attrValue=char;state=State.attributeValue}),_State$attributeValue)),_defineProperty$1(_lexer$stateMachine,State.attributeValue,(_State$attributeValue2={},_defineProperty$1(_State$attributeValue2,Action.space,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);state=State.attributeNameStart}}),_defineProperty$1(_State$attributeValue2,Action.quote,function(char){if(openingQuote===char){emit(Type.attributeValue,attrValue);state=State.attributeNameStart}else{attrValue+=char}}),_defineProperty$1(_State$attributeValue2,Action.gt,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);data="";state=State.data}}),_defineProperty$1(_State$attributeValue2,Action.slash,function(char){if(openingQuote){attrValue+=char}else{emit(Type.attributeValue,attrValue);isClosing=true;state=State.tagEnd}}),_defineProperty$1(_State$attributeValue2,Action.char,function(char){attrValue+=char}),_State$attributeValue2)),_lexer$stateMachine);var step=function step(char){if(options.debug){console.log(state,char)}var actions=lexer.stateMachine[state];var action=actions[getAction(char)]||actions[Action.error]||actions[Action.char];action(char)};lexer.write=function(str){var len=str.length;for(var i=0;i1;var isValid=hasMoreChildren?parsed.children.reduce(function(acc,_ref){var name=_ref.name;return!acc?name==="svg":true},false):parsed.children[0].name==="svg";if(isValid){return hasMoreChildren?parsed:parsed.children[0]}else{throw Error("nothing to parse")}};var removeDoctype=function removeDoctype(input){return input.replace(/<[\/]{0,1}(\!?DOCTYPE|\??xml)[^><]*>/gi,"")};var wrapInput=function wrapInput(input){return"".concat(input,"")};var removeAttrs=function removeAttrs(obj){return omitDeep(obj,["parent"])};var applyCompat=function applyCompat(node){var renamed=deepRenameKeys(node,function(key){if(key==="attributes"){return"attrs"}if(key==="children"){return"childs"}return key});return omitDeep(clean(renamed),["type"])};var camelize=function camelize(node){return deepRenameKeys(node,function(key){if(!notCamelcase(key)){return toCamelCase(key)}return key})};var toCamelCase=function toCamelCase(prop){return prop.replace(/[-|:]([a-z])/gi,function(all,letter){return letter.toUpperCase()})};var notCamelcase=function notCamelcase(prop){return/^(data|aria)(-\w+)/.test(prop)};var escapeText=function escapeText(text){if(text){var str=String(text);return/[&<>]/.test(str)?"/,"]]]]>"),"]]>"):str}return""};var escapeAttr=function escapeAttr(attr){return String(attr).replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")};var svgsonSync=function svgsonSync(input){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$transformNode=_ref.transformNode,transformNode=_ref$transformNode===void 0?function(node){return node}:_ref$transformNode,_ref$compat=_ref.compat,compat=_ref$compat===void 0?false:_ref$compat,_ref$camelcase=_ref.camelcase,camelcase=_ref$camelcase===void 0?false:_ref$camelcase;var wrap=function wrap(input){var cleanInput=removeDoctype(input);return wrapInput(cleanInput)};var unwrap=function unwrap(res){return res.name==="root"?res.children:res};var applyFilters=function applyFilters(input){var applyTransformNode=function applyTransformNode(node){var children=compat?node.childs:node.children;return node.name==="root"?children.map(applyTransformNode):_objectSpread({},transformNode(node),children&&children.length>0?_defineProperty({},compat?"childs":"children",children.map(applyTransformNode)):{})};var n;n=removeAttrs(input);if(compat){n=applyCompat(n)}n=applyTransformNode(n);if(camelcase||compat){n=camelize(n)}return n};return unwrap(applyFilters(parseInput(wrap(input))))};function svgson(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return new Promise(function(resolve,reject){try{var res=svgsonSync.apply(void 0,args);resolve(res)}catch(e){reject(e)}})}var stringify=function stringify(ast){var _ref=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref$transformAttr=_ref.transformAttr,transformAttr=_ref$transformAttr===void 0?function(key,value,escape){return"".concat(key,'="').concat(escape(value),'"')}:_ref$transformAttr,_ref$selfClose=_ref.selfClose,selfClose=_ref$selfClose===void 0?true:_ref$selfClose;if(Array.isArray(ast)){return ast.map(function(ast){return stringify(ast,{transformAttr:transformAttr,selfClose:selfClose})}).join("")}if(ast.type==="text"){return escapeText(ast.value)}var attributes="";for(var attr in ast.attributes){var attrStr=transformAttr(attr,ast.attributes[attr],escapeAttr,ast.name);attributes+=attrStr?" ".concat(attrStr):""}return ast.children.length||!selfClose?"<".concat(ast.name).concat(attributes,">").concat(stringify(ast.children,{transformAttr:transformAttr,selfClose:selfClose}),""):"<".concat(ast.name).concat(attributes,"/>")};var indexUmd=Object.assign({},{parse:svgson,parseSync:svgsonSync,stringify:stringify});return indexUmd})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}]},{},[3])(3)}); \ No newline at end of file