(function(){ var _$browser_4 = {}; var cachedSetTimeout,cachedClearTimeout,process=_$browser_4={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i=0;i--){var last=parts[i];"."===last?parts.splice(i,1):".."===last?(parts.splice(i,1),up++):up&&(parts.splice(i,1),up--)}if(allowAboveRoot)for(;up--;up)parts.unshift("..");return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};function filter(xs,f){if(xs.filter)return xs.filter(f);for(var res=[],i=0;i=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/"),(resolvedAbsolute?"/":"")+resolvedPath||"."},_$pathBrowserify_24.normalize=function(path){var isAbsolute=_$pathBrowserify_24.isAbsolute(path),trailingSlash="/"===substr(path,-1);return(path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/"))||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(isAbsolute?"/":"")+path},_$pathBrowserify_24.isAbsolute=function(path){return"/"===path.charAt(0)},_$pathBrowserify_24.join=function(){var paths=Array.prototype.slice.call(arguments,0);return _$pathBrowserify_24.normalize(filter(paths,function(p,index){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},/* common-shake removed: exports.relative = */ void 0, function(from,to){function trim(arr){for(var start=0;start=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=_$pathBrowserify_24.resolve(from).substr(1),to=_$pathBrowserify_24.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(type){throw new RangeError(errors[type])}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}function mapDomain(string,fn){var parts=string.split("@"),result="";return parts.length>1&&(result=parts[0]+"@",string=parts[1]),result+map((string=string.replace(regexSeparators,".")).split("."),fn).join(".")}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;counter=55296&&value<=56319&&counter65535&&(output+=stringFromCharCode((value-=65536)>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,codePoint,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for((basic=input.lastIndexOf(delimiter))<0&&(basic=0),j=0;j=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;index=inputLength&&error("invalid-input"),((digit=(codePoint=input.charCodeAt(index++))-48<10?codePoint-22:codePoint-65<26?codePoint-65:codePoint-97<26?codePoint-97:base)>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,!(digit<(t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias));k+=base)w>floor(maxInt/(baseMinusT=base-t))&&error("overflow"),w*=baseMinusT;bias=adapt(i-oldi,out=output.length+1,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(inputLength=(input=ucs2decode(input)).length,n=initialN,delta=0,bias=initialBias,j=0;j=n&¤tValuefloor((maxInt-delta)/(handledCPCountPlusOne=handledCPCount+1))&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;jmaxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;!(q<(t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias));k+=base)qMinusT=q-t,baseMinusT=base-t,output.push(stringFromCharCode(digitToBasic(t+qMinusT%baseMinusT,0))),q=floor(qMinusT/baseMinusT);output.push(stringFromCharCode(digitToBasic(q,0))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength),delta=0,++handledCPCount}++delta,++n}return output.join("")}if(punycode={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:function(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})},toUnicode:function(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return punycode});else if(freeExports&&freeModule)if(_$punycode_25.exports==freeExports)freeModule.exports=punycode;else for(key in punycode)punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);else root.punycode=punycode}(this); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) _$punycode_25 = _$punycode_25.exports "use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var _$decode_26=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;i=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}; "use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};var _$encode_27=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return __isArray_27(obj[k])?map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""};var __isArray_27=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)};function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i",'"',"`"," ","\r","\n","\t"]),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},__dummy_31$2 = 0;function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&_$util_32.isObject(url)&&url instanceof Url)return url;var u=new Url;return u.parse(url,parseQueryString,slashesDenoteHost),u}Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!_$util_32.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var queryIndex=url.indexOf("?"),splitter=-1!==queryIndex&&queryIndex127?newpart+="x":newpart+=part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ipv6Hostname||(this.hostname=_$punycode_25.toASCII(this.hostname));var p=this.port?":"+this.port:"",h=this.hostname||"";this.host=h+p,this.href+=this.host,ipv6Hostname&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==rest[0]&&(rest="/"+rest))}if(!unsafeProtocol[lowerProto])for(i=0,l=autoEscape.length;i0)&&result.host.split("@"))&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift());return result.search=relative.search,result.query=relative.query,_$util_32.isNull(result.pathname)&&_$util_32.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)"."===(last=srcPath[i])?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var authInHost,isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);psychotic&&(result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"",(authInHost=!!(result.host&&result.host.indexOf("@")>0)&&result.host.split("@"))&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift()));return(mustEndAbs=mustEndAbs||result.host&&srcPath.length)&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),_$util_32.isNull(result.pathname)&&_$util_32.isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(":"!==(port=port[0])&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}; var _$mutable_36=function(target){for(var i=1;i1&&(stack.pop(),stack[stack.length-1][0][2][ix]=h(cur[0],cur[1],cur[2].length?cur[2]:void 0))}else if(s===OPEN){var c=[p[1],{},[]];cur[2].push(c),stack.push([c,cur[2].length-1])}else if(s===ATTR_KEY||0===s&&p[1]===ATTR_KEY){for(var copyKey,key="";i1&&/^\s*$/.test(tree[2][0])&&tree[2].shift(),tree[2].length>2||2===tree[2].length&&/\S/.test(tree[2][1]))throw new Error("multiple root elements must be wrapped in an enclosing tag");return Array.isArray(tree[2][0])&&"string"==typeof tree[2][0][0]&&Array.isArray(tree[2][0][2])&&(tree[2][0]=h(tree[2][0][0],tree[2][0][1],tree[2][0][2])),tree[2][0];function parse(str){var res=[];state===ATTR_VALUE_W&&(state=ATTR);for(var i=0;i"!==c||quot(state)||state===COMMENT?state===COMMENT&&/-$/.test(reg)&&"-"===c?(opts.comments&&res.push([ATTR_VALUE,reg.substr(0,reg.length-1)],[CLOSE]),reg="",state=TEXT):state===OPEN&&/^!--$/.test(reg)?(opts.comments&&res.push([OPEN,reg],[ATTR_KEY,"comment"],[ATTR_EQ]),reg=c,state=COMMENT):state===TEXT||state===COMMENT?reg+=c:state===OPEN&&"/"===c&®.length||(state===OPEN&&/\s/.test(c)?(reg.length&&res.push([OPEN,reg]),reg="",state=ATTR):state===OPEN?reg+=c:state===ATTR&&/[^\s"'=/]/.test(c)?(state=ATTR_KEY,reg=c):state===ATTR&&/\s/.test(c)?(reg.length&&res.push([ATTR_KEY,reg]),res.push([ATTR_BREAK])):state===ATTR_KEY&&/\s/.test(c)?(res.push([ATTR_KEY,reg]),reg="",state=ATTR_KEY_W):state===ATTR_KEY&&"="===c?(res.push([ATTR_KEY,reg],[ATTR_EQ]),reg="",state=ATTR_VALUE_W):state===ATTR_KEY?reg+=c:state!==ATTR_KEY_W&&state!==ATTR||"="!==c?state!==ATTR_KEY_W&&state!==ATTR||/\s/.test(c)?state===ATTR_VALUE_W&&'"'===c?state=ATTR_VALUE_DQ:state===ATTR_VALUE_W&&"'"===c?state=ATTR_VALUE_SQ:state===ATTR_VALUE_DQ&&'"'===c?(res.push([ATTR_VALUE,reg],[ATTR_BREAK]),reg="",state=ATTR):state===ATTR_VALUE_SQ&&"'"===c?(res.push([ATTR_VALUE,reg],[ATTR_BREAK]),reg="",state=ATTR):state!==ATTR_VALUE_W||/\s/.test(c)?state===ATTR_VALUE&&/\s/.test(c)?(res.push([ATTR_VALUE,reg],[ATTR_BREAK]),reg="",state=ATTR):state!==ATTR_VALUE&&state!==ATTR_VALUE_SQ&&state!==ATTR_VALUE_DQ||(reg+=c):(state=ATTR_VALUE,i--):(res.push([ATTR_BREAK]),/[\w-]/.test(c)?(reg+=c,state=ATTR_KEY):state=ATTR):(res.push([ATTR_EQ]),state=ATTR_VALUE_W)):(state===OPEN&®.length?res.push([OPEN,reg]):state===ATTR_KEY?res.push([ATTR_KEY,reg]):state===ATTR_VALUE&®.length&&res.push([ATTR_VALUE,reg]),res.push([CLOSE]),reg="",state=TEXT)}return state===TEXT&®.length?(res.push([TEXT,reg]),reg=""):state===ATTR_VALUE&®.length?(res.push([ATTR_VALUE,reg]),reg=""):state===ATTR_VALUE_DQ&®.length?(res.push([ATTR_VALUE,reg]),reg=""):state===ATTR_VALUE_SQ&®.length?(res.push([ATTR_VALUE,reg]),reg=""):state===ATTR_KEY&&(res.push([ATTR_KEY,reg]),reg=""),res}};function strfn(x){return"function"==typeof x?x:"string"==typeof x?x:x&&"object"==typeof x?x:concat("",x)}};Object.prototype.hasOwnProperty;var closeRE=RegExp("^("+["area","base","basefont","bgsound","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr","!--","animate","animateTransform","circle","cursor","desc","ellipse","feBlend","feColorMatrix","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","font-face-format","font-face-name","font-face-uri","glyph","glyphRef","hkern","image","line","missing-glyph","mpath","path","polygon","polyline","rect","set","stop","tref","use","view","vkern"].join("|")+")(?:[.#][a-zA-Z0-9\x7f-\uffff_:-]+)*$"); var _$browser_3 = {}; var __dummy_3$0 = 0,__dummy_3$1 = 0,SVGNS="http://www.w3.org/2000/svg",XLINKNS="http://www.w3.org/1999/xlink",BOOL_PROPS=["autofocus","checked","defaultchecked","disabled","formnovalidate","indeterminate","readonly","required","selected","willvalidate"],COMMENT_TAG="!--",SVG_TAGS=["svg","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"];function belCreateElement(tag,props,children){var el;-1!==SVG_TAGS.indexOf(tag)&&(props.namespace=SVGNS);var ns=!1;if(props.namespace&&(ns=props.namespace,delete props.namespace),ns)el=document.createElementNS(ns,tag);else{if(tag===COMMENT_TAG)return document.createComment(props.comment);el=document.createElement(tag)}for(var p in props)if(props.hasOwnProperty(p)){var key=p.toLowerCase(),val=props[p];if("classname"===key&&(key="class",p="class"),"htmlFor"===p&&(p="for"),-1!==BOOL_PROPS.indexOf(key))if("true"===val)val=key;else if("false"===val)continue;"on"===key.slice(0,2)?el[p]=val:ns?"xlink:href"===p?el.setAttributeNS(XLINKNS,p,val):/^xmlns($|:)/i.test(p)||el.setAttributeNS(null,p,val):el.setAttribute(p,val)}return _$appendChild_2(el,children),el}_$browser_3=_$hyperx_11(belCreateElement,{comments:!0}),_$browser_3.default=_$browser_3,_$browser_3.createElement=belCreateElement; var _$html_7=_$browser_3; var _$nanolru_15 = {}; function LRU(opts){if(!(this instanceof LRU))return new LRU(opts);"number"==typeof opts&&(opts={max:opts}),opts||(opts={}),this.cache={},this.head=this.tail=null,this.length=0,this.max=opts.max||1e3,this.maxAge=opts.maxAge||0}_$nanolru_15=LRU,Object.defineProperty(LRU.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),LRU.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},LRU.prototype.remove=function(key){if("string"!=typeof key&&(key=""+key),this.cache.hasOwnProperty(key)){var element=this.cache[key];return delete this.cache[key],this._unlink(key,element.prev,element.next),element.value}},LRU.prototype._unlink=function(key,prev,next){this.length--,0===this.length?this.head=this.tail=null:this.head===key?(this.head=prev,this.cache[this.head].next=null):this.tail===key?(this.tail=next,this.cache[this.tail].prev=null):(this.cache[prev].next=next,this.cache[next].prev=prev)},LRU.prototype.peek=function(key){if(this.cache.hasOwnProperty(key)){var element=this.cache[key];if(this._checkAge(key,element))return element.value}},LRU.prototype.set=function(key,value){var element;if("string"!=typeof key&&(key=""+key),this.cache.hasOwnProperty(key)){if((element=this.cache[key]).value=value,this.maxAge&&(element.modified=Date.now()),key===this.head)return value;this._unlink(key,element.prev,element.next)}else element={value:value,modified:0,next:null,prev:null},this.maxAge&&(element.modified=Date.now()),this.cache[key]=element,this.length===this.max&&this.evict();return this.length++,element.next=null,element.prev=this.head,this.head&&(this.cache[this.head].next=key),this.head=key,this.tail||(this.tail=key),value},LRU.prototype._checkAge=function(key,element){return!(this.maxAge&&Date.now()-element.modified>this.maxAge)||(this.remove(key),!1)},LRU.prototype.get=function(key){if("string"!=typeof key&&(key=""+key),this.cache.hasOwnProperty(key)){var element=this.cache[key];if(this._checkAge(key,element))return this.head!==key&&(key===this.tail?(this.tail=element.next,this.cache[this.tail].prev=null):this.cache[element.prev].next=element.next,this.cache[element.next].prev=element.prev,this.cache[this.head].next=key,element.prev=this.head,element.next=null,this.head=key),element.value}},LRU.prototype.evict=function(){this.tail&&this.remove(this.tail)}; var _$cache_6 = {}; /* removed: var _$nanolru_15=require("nanolru"); */;function ChooComponentCache(state,emit,lru){this.cache="number"==typeof lru?new _$nanolru_15(lru):lru||new _$nanolru_15(100),this.state=state,this.emit=emit}function newCall(Cls){return new(Cls.bind.apply(Cls,arguments))}_$cache_6=ChooComponentCache,ChooComponentCache.prototype.render=function(Component,id){var el=this.cache.get(id);if(!el){for(var args=[],i=2,len=arguments.length;i0;)self.queue.shift()(idleDeadline);self.scheduled=!1,self.queue.length&&self.schedule()})}},NanoScheduler.prototype.setTimeout=function(cb){setTimeout(cb,0,{timeRemaining:function(){return 1}})},_$nanoscheduler_22=function(){var scheduler;return hasWindow?(window._nanoScheduler||(window._nanoScheduler=new NanoScheduler(!0)),scheduler=window._nanoScheduler):scheduler=new NanoScheduler,scheduler}; var perf,scheduler=_$nanoscheduler_22();nanotiming.disabled=!0;try{perf=window.performance,nanotiming.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!perf.mark}catch(e){}function nanotiming(name){if(nanotiming.disabled)return __noop_23;var uuid=(1e4*perf.now()).toFixed()%Number.MAX_SAFE_INTEGER,startName="start-"+uuid+"-"+name;function end(cb){var endName="end-"+uuid+"-"+name;perf.mark(endName),scheduler.push(function(){var err=null;try{var measureName=name+" ["+uuid+"]";perf.measure(measureName,startName,endName),perf.clearMarks(startName),perf.clearMarks(endName)}catch(e){err=e}cb&&cb(err,name)})}return perf.mark(startName),end.uuid=uuid,end}function __noop_23(cb){cb&&scheduler.push(function(){cb(new Error("nanotiming: performance API unavailable"))})}var _$nanotiming_23=nanotiming; "use strict";var _$removeArrayItems_29=function(arr,startIdx,removeCount){var i,length=arr.length;if(!(startIdx>=length||0===removeCount)){var len=length-(removeCount=startIdx+removeCount>length?length-startIdx:removeCount);for(i=startIdx;i0&&this._emit(this._listeners[eventName],data),this._starListeners.length>0&&this._emit(this._starListeners,eventName,data,emitTiming.uuid),emitTiming(),this},Nanobus.prototype.on=Nanobus.prototype.addListener=function(eventName,listener){return"*"===eventName?this._starListeners.push(listener):(this._listeners[eventName]||(this._listeners[eventName]=[]),this._listeners[eventName].push(listener)),this},Nanobus.prototype.prependListener=function(eventName,listener){return"*"===eventName?this._starListeners.unshift(listener):(this._listeners[eventName]||(this._listeners[eventName]=[]),this._listeners[eventName].unshift(listener)),this},Nanobus.prototype.once=function(eventName,listener){var self=this;return this.on(eventName,function once(){listener.apply(self,arguments);self.removeListener(eventName,once)}),this},Nanobus.prototype.prependOnceListener=function(eventName,listener){var self=this;return this.prependListener(eventName,function once(){listener.apply(self,arguments);self.removeListener(eventName,once)}),this},Nanobus.prototype.removeListener=function(eventName,listener){return"*"===eventName?(this._starListeners=this._starListeners.slice(),remove(this._starListeners,listener)):(void 0!==this._listeners[eventName]&&(this._listeners[eventName]=this._listeners[eventName].slice()),remove(this._listeners[eventName],listener));function remove(arr,listener){if(arr){var index=arr.indexOf(listener);return-1!==index?(_$removeArrayItems_29(arr,index,1),!0):void 0}}},Nanobus.prototype.removeAllListeners=function(eventName){return eventName?"*"===eventName?this._starListeners=[]:this._listeners[eventName]=[]:(this._starListeners=[],this._listeners={}),this},Nanobus.prototype.listeners=function(eventName){var listeners="*"!==eventName?this._listeners[eventName]:this._starListeners,ret=[];if(listeners)for(var ilength=listeners.length,i=0;i=0;--i)attr=newAttrs[i],attrName=attr.name,attrNamespaceURI=attr.namespaceURI,attrValue=attr.value,attrNamespaceURI?(attrName=attr.localName||attrName,oldNode.getAttributeNS(attrNamespaceURI,attrName)!==attrValue&&oldNode.setAttributeNS(attrNamespaceURI,attrName,attrValue)):oldNode.hasAttribute(attrName)?oldNode.getAttribute(attrName)!==attrValue&&("null"===attrValue||"undefined"===attrValue?oldNode.removeAttribute(attrName):oldNode.setAttribute(attrName,attrValue)):oldNode.setAttribute(attrName,attrValue);for(var j=oldAttrs.length-1;j>=0;--j)!1!==(attr=oldAttrs[j]).specified&&(attrName=attr.name,(attrNamespaceURI=attr.namespaceURI)?(attrName=attr.localName||attrName,newNode.hasAttributeNS(attrNamespaceURI,attrName)||oldNode.removeAttributeNS(attrNamespaceURI,attrName)):newNode.hasAttributeNS(null,attrName)||oldNode.removeAttribute(attrName))}(newNode,oldNode);nodeType!==TEXT_NODE&&nodeType!==COMMENT_NODE||oldNode.nodeValue!==newNode.nodeValue&&(oldNode.nodeValue=newNode.nodeValue);"INPUT"===nodeName?function(newNode,oldNode){var newValue=newNode.value,oldValue=oldNode.value;updateAttribute(newNode,oldNode,"checked"),updateAttribute(newNode,oldNode,"disabled"),newValue!==oldValue&&(oldNode.setAttribute("value",newValue),oldNode.value=newValue);"null"===newValue&&(oldNode.value="",oldNode.removeAttribute("value"));newNode.hasAttributeNS(null,"value")?"range"===oldNode.type&&(oldNode.value=newValue):oldNode.removeAttribute("value")}(newNode,oldNode):"OPTION"===nodeName?function(newNode,oldNode){updateAttribute(newNode,oldNode,"selected")}(newNode,oldNode):"TEXTAREA"===nodeName&&function(newNode,oldNode){var newValue=newNode.value;newValue!==oldNode.value&&(oldNode.value=newValue);if(oldNode.firstChild&&oldNode.firstChild.nodeValue!==newValue){if(""===newValue&&oldNode.firstChild.nodeValue===oldNode.placeholder)return;oldNode.firstChild.nodeValue=newValue}}(newNode,oldNode);!function(newNode,oldNode){for(var i=0;i_$html_7`

music

visions

~enter~
`); /* removed: const _$html_7=require("choo/html"); */;var _$song_40=function(state,emit){var song=state.songs.find(song=>song.title==state.params.song.replace(/-/g," "));return console.log({song:song}),_$html_7`

${song.title}

${song.post.map(function(post){return _$html_7`

${post}

`})}
x close x
`}; _$Choo_8;/* removed: const _$html_7=require("choo/html"); */;var _$songbook_41=function(state,emit){return function(state,emit){return _$html_7`

M U S I C V I S I O N S

    ${state.songs.map(listTracks)}

Last Track: something

`}(state);function listTracks(song){return _$html_7`
  • ${song.title}
  • `}function change(data){console.log(data.target.innerHTML),song=data.target.innerHTML,emit("changeSong",song)}}; var _$musicVisions_1 = {}; const __dummy_1$0 = 0,main=(_$html_7,_$main_39),__dummy_1$1 = 0,__dummy_1$2 = 0,app=_$Choo_8();app.use(_$serviceWorker_5()),app.use(_$songs_38),app.route("/",main),app.route("#songbook",_$songbook_41),app.route("#songbook/:song",_$song_40),app.mount("div"); }());