new function(){function u(b,e,q,g,k,m){return{tag:b,key:e,attrs:q,children:g,text:k,dom:m,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}function y(b){if(null==b||"string"!==typeof b&&null==b.view)throw Error("The selector must be either a string or a component.");if("string"===typeof b&&void 0===H[b]){for(var e,q,g=[],k={};e=O.exec(b);){var m=e[1],n=e[2];""===m&&""!==n?q=n:"#"===m?k.id=n:"."===m?g.push(n):"["===e[3][0]&&((m=e[6])&&(m=m.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\")), k[e[4]]=m||!0)}0=t&&z>=B;){var v=a[t],w=f[B];if(v===w)t++,B++;else if(null!=v&&null!=w&&v.key===w.key)t++,B++,m(c,v,w,b,l(a,t,h),p,g),p&&v.tag===w.tag&&r(c,n(v),h);else if(v=a[k],v===w)k--,B++;else if(null!=v&&null!=w&&v.key===w.key)m(c,v,w,b,l(a,k+1,h),p,g),B=t&&z>=B;){v=a[k];w=f[z];if(v===w)k--;else if(null!=v&&null!=w&&v.key===w.key)m(c,v,w,b,l(a,k+1,h),p,g),p&&v.tag===w.tag&&r(c,n(v),h),null!=v.dom&&(h=v.dom),k--;else{if(!A){A=a;var v=k,u={},x;for(x=0;xb.indexOf("?")?"?":"&";b+=h+g}return b}function k(b){try{return""!==b?JSON.parse(b):null}catch(e){throw Error(b); }}function m(b){return b.responseText}function n(b,e){if("function"===typeof b)if(e instanceof Array)for(var g=0;gh.status)l(n(d.type,b));else{var e=Error(h.responseText),g;for(g in b)e[g]=b[g];l.error(e)}}catch(k){l.error(k)}"function"===typeof r&&r()}};z?h.send(d.data):h.send();return l},jsonp:function(d){var k=e();void 0!==d.initialValue&&k(d.initialValue);var m=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+ "_"+l++,h=b.document.createElement("script");b[m]=function(e){h.parentNode.removeChild(h);k(n(d.type,e));"function"===typeof r&&r();delete b[m]};h.onerror=function(){h.parentNode.removeChild(h);k.error(Error("JSONP request failed"));"function"===typeof r&&r();delete b[m]};null==d.data&&(d.data={});d.url=q(d.url,d.data);d.data[d.callbackKey||"callback"]=m;h.src=g(d.url,d.data);b.document.documentElement.appendChild(h);return k},setCompletionCallback:function(b){r=b}}}(window,M),G=function(){var b= [];return{subscribe:b.push.bind(b),unsubscribe:function(e){e=b.indexOf(e);-1