"use strict";var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"indescriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);returnConstructor}}();var_typeof=typeofSymbol==="function"&&typeofSymbol.iterator==="symbol"?function(obj){returntypeofobj}:function(obj){returnobj&&typeofSymbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeofobj};function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function")}}(function(f){if((typeofexports==="undefined"?"undefined":_typeof(exports))==="object"&&typeofmodule!=="undefined"){module.exports=f()}elseif(typeofdefine==="function"&&define.amd){define([],f)}else{varg;if(typeofwindow!=="undefined"){g=window}elseif(typeofglobal!=="undefined"){g=global}elseif(typeofself!=="undefined"){g=self}else{g=this}g.isEq=f()}})(function(){vardefine,module,exports;returnfunction(){functionr(e,n,t){functiono(i,f){if(!n[i]){if(!e[i]){varc="function"==typeofrequire&&require;if(!f&&c)returnc(i,!0);if(u)returnu(i,!0);vara=newError("Cannot find module '"+i+"'");throwa.code="MODULE_NOT_FOUND",a}varp=n[i]={exports:{}};e[i][0].call(p.exports,function(r){varn=e[i][1][r];returno(n||r)},p,p.exports,r,e,n,t)}returnn[i].exports}for(varu="function"==typeofrequire&&require,i=0;i<t.length;i++){o(t[i])}returno}returnr}()({1:[function(require,module,exports){var_require=require("./utils"),always=_require.always,isNonZeroFalsy=_require.isNonZeroFalsy,stringify=_require.stringify,areNumbers=_require.areNumbers;varInfiniteListItem=function(){functionInfiniteListItem(list,value,index){_classCallCheck(this,InfiniteListItem);this.value=value;this.index=index;this.next=function(z){return!z?list.get(index+1):list.get(index+z)};this.previous=function(z){return!z?list.get(index-1):list.get(index-z)};if(typeofSymbol!=="undefined"&&Symbol.iterator){this[Symbol.iterator]=function(){return{next:functionnext(){return{value:list.get(index+1),done:false}}}}}}_createClass(InfiniteListItem,[{key:"toString",value:functiontoString(){return"InfiniteListItem [ .. "+stringify(this.value)+" .. ]"}}]);returnInfiniteListItem}();varInfiniteList=functionInfiniteList(start,next){_classCallCheck(this,InfiniteList);varcache=[];varj=0;this.get=function(index){if(isNonZeroFalsy(index)||index<0||!areNumbers(index))return;if(!cache[0])cache[0]=start;if(index===Infinity)returnnewInfiniteListItem(this,Infinity,Infinity);if(indexincache)returnnewInfiniteListItem(this,cache[index],index);if(!(indexincache)){if(cache.length<=index&&cache.length-1incache)while(cache.length<=index){cache[cache.length]=next(cache[cache.length-1],cache[cache.length-2])}}returnnewInfiniteListItem(this,cache[index],index)};this.clearCache=function(){returncache=[],undefined};if(typeofSymbol!=="undefined"&&Symbol.iterator){this[Symbol.iterator]=function(){var_this=this;return{next:functionnext(){return{value:_this.get(j++),done:false}}}}}if(typeofProxy!=="undefined")returnnewProxy(this,{get:functionget(obj,key){if(keyinobj)returnobj[key];varindex=typeofkey==="string"&&/^\d*$/g.test(key)?parseInt(key):undefined;if(index)returnobj["get"](index)},has:functionhas(obj,key){varindex=typeofkey==="string"&&/^\d*$/g.test(key)?parseInt(key):undefined;returnkeyinobj||areNumbers(index)&&index%1===0&&index>=0},enumerate:functionenumerate(obj){returnobj.keys()},ownKeys:functionownKeys(obj){returnobj.keys()}})};InfiniteList.prototype.take=function(from,to){vararr=[];if(isNonZeroFalsy(from)||from===0&&isNonZeroFalsy(to)||!areNumbers(from)&&isNonZeroFalsy(to))returnarr;varsource=void0,target=void0;if(isNonZeroFalsy(to)){source=0;target=from