new function(){function w(b,d,p,g,k,n){return{tag:b,key:d,attrs:p,children:g,text:k,dom:n,domSize:void 0,state:{},events:void 0,instance:void 0,skip:!1}}w.normalize=function(b){return b instanceof Array?w("[",void 0,void 0,w.normalizeChildren(b),void 0,void 0):null!=b&&"object"!==typeof b?w("#",void 0,void 0,b,void 0,void 0):b};w.normalizeChildren=function(b){for(var d=0;d=q&&y>=B;){var h=a[q],v=e[B];if(h===v)q++,B++;else if(null!=h&&null!=v&&h.key===v.key)q++,B++,n(c,h,v,f,t(a,q,b),r,l),r&&h.tag===v.tag&&x(c,m(h),b);else if(h=a[g],h===v)g--,B++;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,f,t(a,g+1,b),r,l),B=q&&y>=B;){h=a[g];v=e[y];if(h===v)g--;else if(null!=h&&null!=v&&h.key===v.key)n(c,h,v,f,t(a,g+1,b),r,l),r&&h.tag===v.tag&&x(c,m(h),b), null!=h.dom&&(b=h.dom),g--;else{if(!k){k=a;var h=g,z={},w;for(w=0;wb.indexOf("?")?"?":"&";b+=g+h}return b}function k(b){try{return""!==b?JSON.parse(b):null}catch(d){throw Error(b);}}function n(b){return b.responseText}function m(b,d){if("function"===typeof b)if(d instanceof Array)for(var g=0;gl.status)d(m(f.type, b));else{var g=Error(l.responseText),h;for(h in b)g[h]=b[h];d.error(g)}}catch(x){d.error(x)}"function"===typeof u&&u()}};h?l.send(f.data):l.send();return d},jsonp:function(d){var k=t();void 0!==d.initialValue&&k(d.initialValue);var h=d.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+x++,l=b.document.createElement("script");b[h]=function(g){l.parentNode.removeChild(l);k(m(d.type,g));"function"===typeof u&&u();delete b[h]};l.onerror=function(){l.parentNode.removeChild(l);k.error(Error("JSONP request failed")); "function"===typeof u&&u();delete b[h]};null==d.data&&(d.data={});d.url=p(d.url,d.data);d.data[d.callbackKey||"callback"]=h;l.src=g(d.url,d.data);b.document.documentElement.appendChild(l);return k},setCompletionCallback:function(b){u=b}}}(window,console.error.bind(console)),D=function(){var b=[];return{subscribe:b.push.bind(b),unsubscribe:function(d){d=b.indexOf(d);-1