Socket
Socket
Sign inDemoInstall

inferno

Package Overview
Dependencies
Maintainers
1
Versions
334
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno - npm Package Compare versions

Comparing version 0.1.4 to 0.1.6

5

build/inferno.js

@@ -572,3 +572,3 @@ "use strict";

//in this case, our new array has more items so we'll need to add more children
if (val.length !== node.children.lastValue.length) {
if (node.children.lastValue != null && val.length !== node.children.lastValue.length) {
if (val.length > node.children.lastValue.length) {

@@ -581,3 +581,4 @@ //easiest way to add another child is to clone the node, so let's clone the first child

} else {
childNode = t7.getTemplateFromCache(val[s].templateKey, val[s].values);
endValue = val[s][val[s].length - 1];
childNode = t7.getTemplateFromCache(endValue.templateKey, val[s]);
createNode(childNode, node, node.dom, val, null, i, listeners, component);

@@ -584,0 +585,0 @@ }

14

dist/inferno.js

@@ -589,3 +589,3 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

//in this case, our new array has more items so we'll need to add more children
if (val.length !== node.children.lastValue.length) {
if (node.children.lastValue != null && val.length !== node.children.lastValue.length) {
if (val.length > node.children.lastValue.length) {

@@ -598,3 +598,4 @@ //easiest way to add another child is to clone the node, so let's clone the first child

} else {
childNode = t7.getTemplateFromCache(val[s].templateKey, val[s].values);
endValue = val[s][val[s].length - 1];
childNode = t7.getTemplateFromCache(endValue.templateKey, val[s]);
createNode(childNode, node, node.dom, val, null, i, listeners, component);

@@ -661,3 +662,3 @@ }

var precompile = false;
var version = "0.2.14";
var version = "0.2.16";

@@ -1408,7 +1409,10 @@ if(isBrowser === true) {

var newValues = []
cleanValues(values, newValues);
if(values.length > 2) {
cleanValues(values, newValues);
} else {
newValues = values;
}
return t7._cache[templateKey](newValues, components);
};
//set the type to React as default if it exists in global scope

@@ -1415,0 +1419,0 @@ output = typeof React != "undefined" ? t7.Outputs.React

@@ -1,1 +0,1 @@

/*! InfernoJS 2015-07-20 */ !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d=a("./inferno.js"),e=a("t7");e.setOutput(e.Outputs.Inferno),"undefined"!=typeof window?(window.Inferno=d,window.t7=e):b.exports=d},{"./inferno.js":2,t7:3}],2:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){a&&null!=a.tag?this.isRoot=!0:a&&a instanceof Array&&(this.isRoot=!0),this.value=a,this.valueKey=b}function f(a){this.props=a,this.state={},this.constructor&&this.constructor()}function g(a,b){switch(a){case"input":return"value"===b||"checked"===b;case"textarea":return"value"===b;case"select":return"value"===b||"selectedIndex"===b;case"option":return"selected"===b}}function h(a,b,c){if(c===!1||null==c)a.removeAttribute(b);else{c===!0&&(c="");var d,e=b.indexOf(":");if(-1!==e){var f=b.substr(0,e);switch(f){case"xlink":d="http://www.w3.org/1999/xlink"}}a.setAttribute(b,c)}}function i(a,b,c){c&&a.firstChild?a.firstChild.nodeValue=b:s?a.textContent=b:a.innerText=b}function j(a,b,c,d){"style"===c?updateStyle(b,oldAttrValue,attrs,d):g(a,c)?b[c]!==d&&(b[c]=d):"class"===c?b.className=d:h(b,c,d)}function k(a){var b={click:[]};return a.addEventListener("click",function(a){for(var c=0;c<b.click.length;c=c+1|0)b.click[c].target===a.target&&b.click[c].callback.call(b.click[c].component,a)}),b}function l(a,b,c,d,f,g,h,i){var m=0,n=0,o=null,p=!1,q=null,r=null;if(null!=f?(r=d[f][d[f].length-1],r.templateKey&&(a.templateKey=r.templateKey),d=d[f]):(r=d[d.length-1],r.templateKey&&(a.templateKey=r.templateKey)),a.component)return"function"==typeof a.component&&(a.component=new a.component(a.props),q=k(c),a.component.forceUpdate=v.render.bind(null,a.component.render.bind(a.component),c,q,a.component),a.component.forceUpdate(),a.isDynamic=!0),a.component instanceof w&&a.component.forceUpdate(),!0;if(null!=a.tag&&(null!==u&&u[a.tag]?a.dom=u[a.tag].cloneNode(!1):a.dom=document.createElement(a.tag),g?c.insertBefore(a.dom,c.childNodes[g]):c.appendChild(a.dom)),null!=a.attrs)for(m=0;m<a.attrs.length;m=m+1|0)null!=t[a.attrs[m].name]?(a.attrs[m].value.lastValue=d[a.attrs[m].value.valueKey],h[t[a.attrs[m].name]].push({target:a.dom,callback:a.attrs[m].value.value,component:i}),a.hasDynamicAttrs=!0,a.isDynamic=!0):a.attrs[m].value instanceof e?(a.hasDynamicAttrs=!0,a.isDynamic=!0,a.attrs[m].value.lastValue=d[a.attrs[m].value.valueKey],j(a.tag,a.dom,a.attrs[m].name,a.attrs[m].value.value)):j(a.tag,a.dom,a.attrs[m].name,a.attrs[m].value);if(null!=a.children)if(a.children instanceof Array)for(m=0;m<a.children.length;m=m+1|0)if("string"==typeof a.children[m]||"number"==typeof a.children[m]||"undefined"==typeof a.children[m])o=document.createTextNode(a.children[m]),a.dom.appendChild(o);else if(a.children[m]instanceof e)if(a.children[m].lastValue=d[a.children[m].valueKey],null!=a.children[m].lastValue&&null!=a.children[m].lastValue.templateKey&&(a.children[m].templateKey=a.children[m].lastValue.templateKey,a.children[m].lastValue=a.children[m].lastValue.values),a.isDynamic=!0,a.children[m].isDynamic=!0,a.children[m].isRoot===!0)if(a.children[m].isDynamic=!0,a.children[m].value instanceof Array)if(null!=a.children[m].templateKey)for(n=0;n<a.children[m].value.length;n=n+1|0)l(a.children[m].value[n],a.children[m],a.dom,d[a.children[m].valueKey].values,n,null,h,i);else for(n=0;n<a.children[m].value.length;n=n+1|0)l(a.children[m].value[n],a.children[m],a.dom,d[a.children[m].valueKey],n,null,h,i);else l(a.children[m].value,a.children[m],a.dom,d[a.children[m].valueKey],null,null,h,i);else a.children[m]instanceof e?(a.children[m].lastValue=d[a.children[m].valueKey],o=document.createTextNode(a.children[m].lastValue),a.dom.appendChild(o)):(o=document.createTextNode(a.children[m].value),a.dom.appendChild(o));else p=l(a.children[m],a,a.dom,d,null,null,h,i),p===!0&&(a.children[m].isDynamic=!0,a.isDynamic=!0);else if("string"==typeof a.children)o=document.createTextNode(a.children),a.dom.appendChild(o);else{if(a.children instanceof e&&a.children.isRoot===!0){if(a.children.value instanceof Array)for(m=0;m<a.children.value.length;m=m+1|0)l(a.children.value[m],a,a.dom,d[a.children.valueKey],m,null,h,i);else l(a.children.value,a,a.dom,d[a.children.valueKey],null,null,h,i);return a.children.isDynamic=!0,a.children.lastValue=d[a.children.valueKey],!0}a.children instanceof e&&(a.children.lastValue=d[a.children.valueKey],("string"==typeof a.children.lastValue||"number"==typeof a.children.lastValue)&&(o=document.createTextNode(a.children.lastValue),a.dom.appendChild(o)),a.isDynamic=!0)}return a.isDynamic?!0:!1}function m(a){var b=[];return b}function n(a,b){var c=0,d=null,f={tag:a.tag,dom:a.dom.cloneNode(!1),attrs:m(a.attrs)};if(a.isDynamic===!0&&(f.isDynamic=!0),a.children instanceof e)f.children=new e(a.children.value,a.children.valueKey);else if(a.children instanceof Array)for(f.children=[],c=0;c<a.children.length;c=c+1|0)a.children[c]instanceof e?(d=document.createTextNode(a.children[c].value),f.dom.appendChild(d),f.children.push(new e(a.children[c].value,a.children[c].valueKey))):"string"==typeof a.children[c]||"number"==typeof a.children[c]?(d=document.createTextNode(a.children[c]),f.dom.appendChild(d),f.children.push(a.children[c])):f.children.push(n(a.children[c],f.dom)),a.children[c].isDynamic===!0&&(f.children[c].isDynamic=!0);else("string"==typeof a.children||"number"==typeof a.children)&&(d=document.createTextNode(a.children),f.dom.appendChild(d),f.children=a.children);return b.appendChild(f.dom),f}function o(a,b){b.removeChild(a.dom)}function p(a,b,c,d,f,g,h){var k=0,m=0,q="",s="",u=0,v=null,x=null;if(a.isDynamic!==!1){if(null!=a.templateKey&&d instanceof Array&&(x=d[d.length-1],a.templateKey!==x.templateKey&&(o(a,c),a=r.getTemplateFromCache(x.templateKey,d),l(a,b,c,d,null,null,g,h),b[f]=a,a.templateKey=x.templateKey)),null!=a.component&&a.component instanceof w){if(a.propsValueKeys)for(s in a.propsValueKeys)a.props[s]=d[a.propsValueKeys[s]];return void a.component.forceUpdate()}if(null!=a.attrs&&a.hasDynamicAttrs===!0)for(k=0,u=a.attrs.length;u>k;k=k+1|0)null==t[a.attrs[k].name]&&a.attrs[k].value instanceof e&&(q=d[a.attrs[k].value.valueKey],q!==a.attrs[k].value.lastValue&&(a.attrs[k].value.lastValue=q,j(a.tag,a.dom,a.attrs[k].name,q)));if(a instanceof e&&a.isRoot){if(q=d[a.valueKey],null!=a.value.templateKey&&(x=q[q.length-1],a.value.templateKey!==x.templateKey&&(o(a.value,c),a.value=r.getTemplateFromCache(x.templateKey,q),l(a.value,a,c,q,null,f,g,h),a.value.templateKey=x.templateKey,a.lastValue=d)),q!==a.lastValue){if(a.value instanceof Array)for(k=0,u=a.value.length;u>k;k=k+1|0)("string"!=typeof a.value[k]||"number"!=typeof a.value[k])&&p(a.value[k],a,c,q[k],k,g,h);else if(a.value.children instanceof Array)for(k=0,u=a.value.children.length;u>k;k=k+1|0)("string"!=typeof a.value.children[k]||"number"!=typeof a.value.children[k])&&p(a.value.children[k],a.value,a.value.dom,q,k,g,h);a.lastValue=q}}else if(null!=a.children)if(a.children instanceof Array)for(k=0,u=a.children.length;u>k;k=k+1|0)a.children[k].isDynamic===!0&&(a.children[k]instanceof e&&!a.children[k].isRoot?(q=d[a.children[k].valueKey],x=q[q.length-1],null!=x&&null!=x.templateKey&&(a.children[k].templateKey=x.templateKey,q=d),q!==a.children[k].lastValue&&(a.children[k].lastValue=q,i(a.dom.childNodes[k],q,!0))):p(a.children[k],a,a.dom,d,k,g,h));else if(a.children instanceof e&&a.children.isRoot===!0){if(q=d[a.children.valueKey],null!=a.children.templateKey&&(x=q[q.length-1],a.children.templateKey!==x.templateKey&&(o(a.children.value,a.dom),a.children.value=r.getTemplateFromCache(x.templateKey,q),l(a.children.value,a.children,a.dom,q[k],null,g,h),a.children.templateKey=x.templateKey,a.children.lastValue=d)),q!==a.children.lastValue&&q instanceof Array){if(q.length!==a.children.lastValue.length)if(q.length>a.children.lastValue.length)for(m=0;m<q.length-a.children.lastValue.length;m=m+1|0)a.children.value.length>0?v=n(a.children.value[0],a.dom):(v=r.getTemplateFromCache(q[m].templateKey,q[m].values),l(v,a,a.dom,q,null,k,g,h)),a.children.value.push(v);else if(q.length<a.children.lastValue.length)for(m=0;m<a.children.lastValue.length-q.length;m=m+1|0)o(a.children.value[a.children.value.length-1],a.dom),a.children.value.pop();for(k=0,u=a.children.value.length;u>k;k=k+1|0)"object"==typeof a.children.value[k]&&p(a.children.value[k],a.children.value,a.dom,q[k],k,g,h);a.children.lastValue=q}}else a.children instanceof e&&(q=d[a.children.valueKey],null!=a.templateKey&&q instanceof Array&&(x=q[q.length-1],a.templateKey!==x.templateKey&&(a.templateKey=x.templateKey,q=d)),q!==a.children.lastValue&&(a.children.lastValue=q,("string"==typeof q||"number"==typeof q||q instanceof Date)&&i(a.dom,q,!0)))}}var q=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),r=a("t7"),s="textContent"in document,t={onClick:"click"},u=null;"undefined"!=typeof window&&(u={div:document.createElement("div"),span:document.createElement("span"),a:document.createElement("a"),p:document.createElement("p"),li:document.createElement("li"),tr:document.createElement("tr"),td:document.createElement("td")});var v={},w=function(){function a(b){d(this,a),this.props=b,this.state={}}return q(a,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(){}},{key:"setState",value:function(a){for(var b in a)this.state[b]=a[b];this.forceUpdate()}},{key:"replaceState",value:function(a){this.state=newSate,this.forceUpdate()}}]),a}();v.Component=w,f.prototype.forceUpdate=function(){},v.createValueNode=function(a,b){return new e(a,b)},v.createClass=function(a){var b=new f;for(var c in a)f[c]=a[c];return b},v.render=function(a,b,c,d){var e=null,f=null,g=null;null==d?null==b.rootNode?("function"==typeof a?(g=a(),f=g[g.length-1],e=r.getTemplateFromCache(f.templateKey,g,f.components)):(g=a,f=a[g.length-1],e=r.getTemplateFromCache(f.templateKey,g,f.components)),l(e,null,b,g,null,null,c,d),b.rootNode=[e]):("function"==typeof a?g=a():a.length>0&&(g=a),p(b.rootNode[0],b.rootNode,b,g,c,d)):null==d._rootNode?(g=a(),f=g[g.length-1],g&&(e=r.getTemplateFromCache(f.templateKey,g,f.components),l(e,null,b,g,null,null,c,d),d._rootNode=[e])):(g=a(),p(d._rootNode[0],d._rootNode,b,g,0,c,d))},b.exports=v},{t7:3}],3:[function(a,b,c){var d=function(){"use strict";function a(a,b,c,d){var e=[],f=0,h=0,i=null;if(null!=a.children&&a.children instanceof Array){for(f=0,h=a.children.length;h>f;f++)null!=a.children[f]&&("string"==typeof a.children[f]?(a.children[f]=a.children[f].replace(/(\r\n|\n|\r)/gm,""),i=a.children[f].match(/__\$props__\[\d*\]/g),null!==i?s===o.Outputs.Inferno?(a.children[f]=a.children[f].replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2),"),","===a.children[f].substring(a.children[f].length-1)&&(a.children[f]=a.children[f].substring(0,a.children[f].length-1)),e.push(a.children[f])):e.push(a.children[f]):e.push("'"+a.children[f]+"'")):g(a.children[f],e,d));1===e.length?b.push((c?"children: ":"")+e):b.push((c?"children: ":"")+"["+e.join(",")+"]")}else null!=a.children&&"string"==typeof a.children&&(a.children=a.children.replace(/(\r\n|\n|\r)/gm,"").trim(),i=a.children.match(/__\$props__\[\d*\]/g),null!==i&&(s===o.Outputs.Inferno?a.children=a.children.replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2),"):a.children=a.children.replace(/(__\$props__\[.*\])/g,"',$1,'")),",'"===a.children.substring(a.children.length-2)?(a.children=a.children.substring(0,a.children.length-2),b.push((c?"children: ":"")+"['"+a.children+"]")):b.push((c?"children: ":"")+"['"+a.children+"']"))}function b(a,b,c,d){var e=[],f=0,h=0,i=null;if(null!=a.children&&a.children instanceof Array){for(f=0,h=a.children.length;h>f;f++)null!=a.children[f]&&("string"==typeof a.children[f]?(a.children[f]=a.children[f].replace(/(\r\n|\n|\r)/gm,""),i=a.children[f].match(/__\$props__\[\d*\]/g),null!=i?(a.children[f]=a.children[f].replace(/(__\$props__\[[0-9]*\])/g,"$1"),","===a.children[f].substring(a.children[f].length-1)&&(a.children[f]=a.children[f].substring(0,a.children[f].length-1)),e.push(a.children[f])):e.push("'"+a.children[f]+"'")):g(a.children[f],e,f===a.children.length-1,d));e.length>0&&b.push(e.join(","))}else null!=a.children&&"string"==typeof a.children&&(a.children=a.children.replace(/(\r\n|\n|\r)/gm,""),b.push("'"+a.children+"'"))}function c(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null===d?b.push("'"+e+"':'"+c+"'"):b.push("'"+e+"':"+c)}function d(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null!==d&&b.push("'"+e+"':"+c.replace(/(__\$props__\[([0-9]*)\])/g,"$2"))}function e(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null===d?b.push("{name:'"+e+"',value:'"+c+"'}"):b.push("{name:'"+e+"',value:"+c.replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2)")+"}")}function f(a){return a[0]===a[0].toUpperCase()?!0:!1}function g(g,h,i){var j=[],k=[],l=[];if(g instanceof Array);else if(s===o.Outputs.Universal||s===o.Outputs.Inferno||s===o.Outputs.Mithril)if(null!=g.tag)if(f(g.tag)===!1)h.push("{tag: '"+g.tag+"'"),null!=g.key&&j.push("key: "+g.key),null!=g.attrs&&(s===o.Outputs.Inferno?(e(g,k),j.push("attrs: ["+k.join(",")+"]")):(c(g,k),j.push("attrs: {"+k.join(",")+"}"))),a(g,j,!0,i),h.push(j.join(",")+"}");else{if(("undefined"!=typeof window&&i===window||null==i)&&u===!1)throw new Error("Error referencing component '"+g.tag+"'. Components can only be used when within modules. See documentation for more information on t7.module().");s===o.Outputs.Universal?(c(g,k),h.push("__$components__."+g.tag+"({"+k.join(",")+"})")):s===o.Outputs.Mithril?(c(g,k),h.push("m.component(__$components__."+g.tag+",{"+k.join(",")+"})")):s===o.Outputs.Inferno&&(c(g,k),d(g,l),h.push("{component:__$components__."+g.tag+", props: {"+k.join(",")+"}, propsValueKeys: {"+l.join(",")+"}}"))}else h.push("'"+g+"'");else if(s===o.Outputs.React)if(null!=g.tag){if(f(g.tag)===!0){if(("undefined"!=typeof window&&i===window||null==i)&&u===!1)throw new Error("Error referencing component '"+g.tag+"'. Components can only be used when within modules. See documentation for more information on t7.module().");h.push("React.createElement(__$components__."+g.tag)}else h.push("React.createElement('"+g.tag+"'");null!=g.attrs?(c(g,k),null!=g.key&&k.push("'key':"+g.key),j.push("{"+k.join(",")+"}")):j.push("null"),b(g,j,!0,i),h.push(j.join(",")+")")}else g=g.replace(/(\r\n|\n|\r)/gm,"\\n"),h.push("'"+g+"'")}function h(a,b,c){var d=0,e=a.split(/(__\$props__\[\d*\])/g);for(d=0;d<e.length;d++)""!==e[d].trim()&&b.children.push(e[d]);return a=null}function i(a){return a.indexOf("'")>-1&&(a=a.replace(/'/g,"\\'")),a}function j(a,b){for(var c=0,d=/__\$props__\[([0-9]*)\]/,e=a.match(/__\$props__\[([0-9]*)\]/g),f=0;f<e.length;f++)c=d.exec(e[f])[1],a=a.replace(e[f],b[c]);return a}function k(a,b){var c="",d="",e=0,f=0,g=null,k=!1,m="",n="",o=null,p="",q=null,r=null;for(e=0,f=a.length;f>e;e++)if(c=a[e],"<"===c)k=!0;else if(">"===c&&k===!0){if("/"===m[0]){if(m!=="/"+q.tag&&-1===t.indexOf(q.tag)&&!q.closed)throw console.error("Template error: "+j(a,b)),new Error("Expected corresponding t7 closing tag for '"+q.tag+"'.");""!==p.trim()&&(p=i(p),p=h(p,q,!0),null!==p&&0===q.children.length?q.children=p:null!=p&&q.children.push(p)),q=q.parent,q&&(q.closed=!0)}else{if(p.trim().length>0&&!(q instanceof Array)&&(p=i(p),p=h(p.replace(/(\r\n|\n|\r)/gm,""),q),q.children.push(p),p=""),-1===m.indexOf(" ")?(r={},n=m):(r=l(m),n=r.tag),o={tag:n,attrs:r&&r.attrs?r.attrs:{},children:[],closed:"/"===m[m.length-1]||t.indexOf(n)>-1?!0:!1},r&&r.key&&(o.key=r.key),null===q){if(null!==g)throw new Error("t7 templates must contain only a single root element");g=q=o}else q instanceof Array?q.push(o):q.children.push(o);-1===t.indexOf(n)&&(q===o?o.parent=null:o.parent=q,q=o)}k=!1,m="",p=""}else k===!0?(m+=c,d=c):(p+=c,d=c);return g}function l(a){var b=[],c="",d="",e=0,f=0,g=0,h=0,i="",j=!1,k=[],l={},m="";for(e=0,g=a.length;g>e;e++)c=a[e]," "===c&&j===!1?(b.push(i),i=""):"'"===c?j===!1?j=!0:(j=!1,b.push(i),i=""):'"'===c?j===!1?j=!0:(j=!1,b.push(i),i=""):i+=c;for(""!==i&&b.push(i),i="",e=1,g=b.length;g>e;e++){for(k=[],d="",i="",f=0,h=b[e].length;h>f;f++)c=b[e][f],"="===c?(k.push(i),i=""):(i+=c,d=c);if(""!=i&&k.push(i),k.length>1){var n=k[1].match(/__\$props__\[\d*\]/g);null!==n?l[k[0]]=k[1]:"key"===k[0]?m=k[1]:l[k[0]]=k[1]}}return{tag:b[0],attrs:l,key:m}}function m(a,b){var c=a+"\n//# sourceURL="+b,d=document.createElement("script");d.textContent=c,r.appendChild(d)}function n(a){var b,c,d,e=0;if(0==a.length)return a;for(b=0,d=a.length;d>b;b++)c=a.charCodeAt(b),e=(e<<5)-e+c,e|=0;return e}function o(a){for(var b=null,c=1,d=arguments.length,e=null,f=null,h="",i=null,j=a[0],l=!1,p=[].slice.call(arguments,1);d>c;c++)j+=a[c];if(i=n(j),s===o.Outputs.Inferno){if(null!=o._cache[i])return p.push({templateKey:i,components:this}),p;l=!0}if(null==o._cache[i]){for(b="",c=0,d=a.length;d>c;c++)b+=c===a.length-1?a[c]:a[c]+"__$props__["+c+"]";if(e=[],g(k(b,p),e,this),h=e.join(","),u===!0)return{templateKey:i,template:"return "+h};q===!0?(f='t7._cache["'+i+'"]=function(__$props__, __$components__)',f+='{"use strict";return '+h+"}",m(f,i)):o._cache[i]=new Function('"use strict";var __$props__ = arguments[0];var __$components__ = arguments[1];return '+h)}return l===!0?(p.push({templateKey:i,components:this}),p):o._cache[i](p,this)}function p(a,b){var c=0,d=null,e=null;for(c=0;c<a.length;c=c+1|0)d=a[c],d instanceof Array?(e=d[d.length-1],null!=e.templateKey?b[c]=o.getTemplateFromCache(e.templateKey,d):(b[c]=[],p(a[c],b[c]))):b[c]=d}var q="undefined"!=typeof window&&null!=document,r=null,s=null,t=[],u=!1,v="0.2.14";q===!0&&(r=document.getElementsByTagName("head")[0]),t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];return o._cache={},o.Outputs={React:1,Universal:2,Inferno:3,Mithril:4},o.getOutput=function(){return s},o.setPrecompile=function(a){u=a},o.getVersion=function(){return v},o["if"]=function(a,b){return a?{"else":function(){return b()}}:{"else":function(a){return a()}}},o.setOutput=function(a){s=a},o.clearCache=function(){o._cache={}},o.assign=function(a){throw new Error("Error assigning component '"+a+"'. You can only assign components from within a module. Please check documentation for t7.module().")},o.module=function(a){var b={},c=function(){return o.apply(b,arguments)};c.assign=function(a,c){if(2===arguments.length)b[a]=c;else for(var d in a)b[d]=a[d]},c["if"]=o["if"],c.Outputs=o.Outputs,c.clearCache=o.clearCache,c.setOutput=o.setOutput,c.getOutput=o.getOutput,c.precompile=function(a){return o.precompile(a,b)},a(c)},o.precompile=function(a,b){var c=a[a.length-1];return null==o._cache[c.templateKey]&&(o._cache[c.templateKey]=c.template),s===o.Outputs.Inferno?(c.components=b,a):o.getTemplateFromCache(c.templateKey,a,b)},o.getTemplateFromCache=function(a,b,c){var d=[];return p(b,d),o._cache[a](d,c)},s="undefined"!=typeof React?o.Outputs.React:"undefined"!=typeof Inferno?o.Outputs.Inferno:o.Outputs.Universal,o}();"undefined"!=typeof b&&null!=b.exports&&(b.exports=d)},{}]},{},[1]);
/*! InfernoJS 2015-07-20 */ !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d=a("./inferno.js"),e=a("t7");e.setOutput(e.Outputs.Inferno),"undefined"!=typeof window?(window.Inferno=d,window.t7=e):b.exports=d},{"./inferno.js":2,t7:3}],2:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){a&&null!=a.tag?this.isRoot=!0:a&&a instanceof Array&&(this.isRoot=!0),this.value=a,this.valueKey=b}function f(a){this.props=a,this.state={},this.constructor&&this.constructor()}function g(a,b){switch(a){case"input":return"value"===b||"checked"===b;case"textarea":return"value"===b;case"select":return"value"===b||"selectedIndex"===b;case"option":return"selected"===b}}function h(a,b,c){if(c===!1||null==c)a.removeAttribute(b);else{c===!0&&(c="");var d,e=b.indexOf(":");if(-1!==e){var f=b.substr(0,e);switch(f){case"xlink":d="http://www.w3.org/1999/xlink"}}a.setAttribute(b,c)}}function i(a,b,c){c&&a.firstChild?a.firstChild.nodeValue=b:s?a.textContent=b:a.innerText=b}function j(a,b,c,d){"style"===c?updateStyle(b,oldAttrValue,attrs,d):g(a,c)?b[c]!==d&&(b[c]=d):"class"===c?b.className=d:h(b,c,d)}function k(a){var b={click:[]};return a.addEventListener("click",function(a){for(var c=0;c<b.click.length;c=c+1|0)b.click[c].target===a.target&&b.click[c].callback.call(b.click[c].component,a)}),b}function l(a,b,c,d,f,g,h,i){var m=0,n=0,o=null,p=!1,q=null,r=null;if(null!=f?(r=d[f][d[f].length-1],r.templateKey&&(a.templateKey=r.templateKey),d=d[f]):(r=d[d.length-1],r.templateKey&&(a.templateKey=r.templateKey)),a.component)return"function"==typeof a.component&&(a.component=new a.component(a.props),q=k(c),a.component.forceUpdate=v.render.bind(null,a.component.render.bind(a.component),c,q,a.component),a.component.forceUpdate(),a.isDynamic=!0),a.component instanceof w&&a.component.forceUpdate(),!0;if(null!=a.tag&&(null!==u&&u[a.tag]?a.dom=u[a.tag].cloneNode(!1):a.dom=document.createElement(a.tag),g?c.insertBefore(a.dom,c.childNodes[g]):c.appendChild(a.dom)),null!=a.attrs)for(m=0;m<a.attrs.length;m=m+1|0)null!=t[a.attrs[m].name]?(a.attrs[m].value.lastValue=d[a.attrs[m].value.valueKey],h[t[a.attrs[m].name]].push({target:a.dom,callback:a.attrs[m].value.value,component:i}),a.hasDynamicAttrs=!0,a.isDynamic=!0):a.attrs[m].value instanceof e?(a.hasDynamicAttrs=!0,a.isDynamic=!0,a.attrs[m].value.lastValue=d[a.attrs[m].value.valueKey],j(a.tag,a.dom,a.attrs[m].name,a.attrs[m].value.value)):j(a.tag,a.dom,a.attrs[m].name,a.attrs[m].value);if(null!=a.children)if(a.children instanceof Array)for(m=0;m<a.children.length;m=m+1|0)if("string"==typeof a.children[m]||"number"==typeof a.children[m]||"undefined"==typeof a.children[m])o=document.createTextNode(a.children[m]),a.dom.appendChild(o);else if(a.children[m]instanceof e)if(a.children[m].lastValue=d[a.children[m].valueKey],null!=a.children[m].lastValue&&null!=a.children[m].lastValue.templateKey&&(a.children[m].templateKey=a.children[m].lastValue.templateKey,a.children[m].lastValue=a.children[m].lastValue.values),a.isDynamic=!0,a.children[m].isDynamic=!0,a.children[m].isRoot===!0)if(a.children[m].isDynamic=!0,a.children[m].value instanceof Array)if(null!=a.children[m].templateKey)for(n=0;n<a.children[m].value.length;n=n+1|0)l(a.children[m].value[n],a.children[m],a.dom,d[a.children[m].valueKey].values,n,null,h,i);else for(n=0;n<a.children[m].value.length;n=n+1|0)l(a.children[m].value[n],a.children[m],a.dom,d[a.children[m].valueKey],n,null,h,i);else l(a.children[m].value,a.children[m],a.dom,d[a.children[m].valueKey],null,null,h,i);else a.children[m]instanceof e?(a.children[m].lastValue=d[a.children[m].valueKey],o=document.createTextNode(a.children[m].lastValue),a.dom.appendChild(o)):(o=document.createTextNode(a.children[m].value),a.dom.appendChild(o));else p=l(a.children[m],a,a.dom,d,null,null,h,i),p===!0&&(a.children[m].isDynamic=!0,a.isDynamic=!0);else if("string"==typeof a.children)o=document.createTextNode(a.children),a.dom.appendChild(o);else{if(a.children instanceof e&&a.children.isRoot===!0){if(a.children.value instanceof Array)for(m=0;m<a.children.value.length;m=m+1|0)l(a.children.value[m],a,a.dom,d[a.children.valueKey],m,null,h,i);else l(a.children.value,a,a.dom,d[a.children.valueKey],null,null,h,i);return a.children.isDynamic=!0,a.children.lastValue=d[a.children.valueKey],!0}a.children instanceof e&&(a.children.lastValue=d[a.children.valueKey],("string"==typeof a.children.lastValue||"number"==typeof a.children.lastValue)&&(o=document.createTextNode(a.children.lastValue),a.dom.appendChild(o)),a.isDynamic=!0)}return a.isDynamic?!0:!1}function m(a){var b=[];return b}function n(a,b){var c=0,d=null,f={tag:a.tag,dom:a.dom.cloneNode(!1),attrs:m(a.attrs)};if(a.isDynamic===!0&&(f.isDynamic=!0),a.children instanceof e)f.children=new e(a.children.value,a.children.valueKey);else if(a.children instanceof Array)for(f.children=[],c=0;c<a.children.length;c=c+1|0)a.children[c]instanceof e?(d=document.createTextNode(a.children[c].value),f.dom.appendChild(d),f.children.push(new e(a.children[c].value,a.children[c].valueKey))):"string"==typeof a.children[c]||"number"==typeof a.children[c]?(d=document.createTextNode(a.children[c]),f.dom.appendChild(d),f.children.push(a.children[c])):f.children.push(n(a.children[c],f.dom)),a.children[c].isDynamic===!0&&(f.children[c].isDynamic=!0);else("string"==typeof a.children||"number"==typeof a.children)&&(d=document.createTextNode(a.children),f.dom.appendChild(d),f.children=a.children);return b.appendChild(f.dom),f}function o(a,b){b.removeChild(a.dom)}function p(a,b,c,d,f,g,h){var k=0,m=0,q="",s="",u=0,v=null,x=null;if(a.isDynamic!==!1){if(null!=a.templateKey&&d instanceof Array&&(x=d[d.length-1],a.templateKey!==x.templateKey&&(o(a,c),a=r.getTemplateFromCache(x.templateKey,d),l(a,b,c,d,null,null,g,h),b[f]=a,a.templateKey=x.templateKey)),null!=a.component&&a.component instanceof w){if(a.propsValueKeys)for(s in a.propsValueKeys)a.props[s]=d[a.propsValueKeys[s]];return void a.component.forceUpdate()}if(null!=a.attrs&&a.hasDynamicAttrs===!0)for(k=0,u=a.attrs.length;u>k;k=k+1|0)null==t[a.attrs[k].name]&&a.attrs[k].value instanceof e&&(q=d[a.attrs[k].value.valueKey],q!==a.attrs[k].value.lastValue&&(a.attrs[k].value.lastValue=q,j(a.tag,a.dom,a.attrs[k].name,q)));if(a instanceof e&&a.isRoot){if(q=d[a.valueKey],null!=a.value.templateKey&&(x=q[q.length-1],a.value.templateKey!==x.templateKey&&(o(a.value,c),a.value=r.getTemplateFromCache(x.templateKey,q),l(a.value,a,c,q,null,f,g,h),a.value.templateKey=x.templateKey,a.lastValue=d)),q!==a.lastValue){if(a.value instanceof Array)for(k=0,u=a.value.length;u>k;k=k+1|0)("string"!=typeof a.value[k]||"number"!=typeof a.value[k])&&p(a.value[k],a,c,q[k],k,g,h);else if(a.value.children instanceof Array)for(k=0,u=a.value.children.length;u>k;k=k+1|0)("string"!=typeof a.value.children[k]||"number"!=typeof a.value.children[k])&&p(a.value.children[k],a.value,a.value.dom,q,k,g,h);a.lastValue=q}}else if(null!=a.children)if(a.children instanceof Array)for(k=0,u=a.children.length;u>k;k=k+1|0)a.children[k].isDynamic===!0&&(a.children[k]instanceof e&&!a.children[k].isRoot?(q=d[a.children[k].valueKey],x=q[q.length-1],null!=x&&null!=x.templateKey&&(a.children[k].templateKey=x.templateKey,q=d),q!==a.children[k].lastValue&&(a.children[k].lastValue=q,i(a.dom.childNodes[k],q,!0))):p(a.children[k],a,a.dom,d,k,g,h));else if(a.children instanceof e&&a.children.isRoot===!0){if(q=d[a.children.valueKey],null!=a.children.templateKey&&(x=q[q.length-1],a.children.templateKey!==x.templateKey&&(o(a.children.value,a.dom),a.children.value=r.getTemplateFromCache(x.templateKey,q),l(a.children.value,a.children,a.dom,q[k],null,g,h),a.children.templateKey=x.templateKey,a.children.lastValue=d)),q!==a.children.lastValue&&q instanceof Array){if(null!=a.children.lastValue&&q.length!==a.children.lastValue.length)if(q.length>a.children.lastValue.length)for(m=0;m<q.length-a.children.lastValue.length;m=m+1|0)a.children.value.length>0?v=n(a.children.value[0],a.dom):(x=q[m][q[m].length-1],v=r.getTemplateFromCache(x.templateKey,q[m]),l(v,a,a.dom,q,null,k,g,h)),a.children.value.push(v);else if(q.length<a.children.lastValue.length)for(m=0;m<a.children.lastValue.length-q.length;m=m+1|0)o(a.children.value[a.children.value.length-1],a.dom),a.children.value.pop();for(k=0,u=a.children.value.length;u>k;k=k+1|0)"object"==typeof a.children.value[k]&&p(a.children.value[k],a.children.value,a.dom,q[k],k,g,h);a.children.lastValue=q}}else a.children instanceof e&&(q=d[a.children.valueKey],null!=a.templateKey&&q instanceof Array&&(x=q[q.length-1],a.templateKey!==x.templateKey&&(a.templateKey=x.templateKey,q=d)),q!==a.children.lastValue&&(a.children.lastValue=q,("string"==typeof q||"number"==typeof q||q instanceof Date)&&i(a.dom,q,!0)))}}var q=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),r=a("t7"),s="textContent"in document,t={onClick:"click"},u=null;"undefined"!=typeof window&&(u={div:document.createElement("div"),span:document.createElement("span"),a:document.createElement("a"),p:document.createElement("p"),li:document.createElement("li"),tr:document.createElement("tr"),td:document.createElement("td")});var v={},w=function(){function a(b){d(this,a),this.props=b,this.state={}}return q(a,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(){}},{key:"setState",value:function(a){for(var b in a)this.state[b]=a[b];this.forceUpdate()}},{key:"replaceState",value:function(a){this.state=newSate,this.forceUpdate()}}]),a}();v.Component=w,f.prototype.forceUpdate=function(){},v.createValueNode=function(a,b){return new e(a,b)},v.createClass=function(a){var b=new f;for(var c in a)f[c]=a[c];return b},v.render=function(a,b,c,d){var e=null,f=null,g=null;null==d?null==b.rootNode?("function"==typeof a?(g=a(),f=g[g.length-1],e=r.getTemplateFromCache(f.templateKey,g,f.components)):(g=a,f=a[g.length-1],e=r.getTemplateFromCache(f.templateKey,g,f.components)),l(e,null,b,g,null,null,c,d),b.rootNode=[e]):("function"==typeof a?g=a():a.length>0&&(g=a),p(b.rootNode[0],b.rootNode,b,g,c,d)):null==d._rootNode?(g=a(),f=g[g.length-1],g&&(e=r.getTemplateFromCache(f.templateKey,g,f.components),l(e,null,b,g,null,null,c,d),d._rootNode=[e])):(g=a(),p(d._rootNode[0],d._rootNode,b,g,0,c,d))},b.exports=v},{t7:3}],3:[function(a,b,c){var d=function(){"use strict";function a(a,b,c,d){var e=[],f=0,h=0,i=null;if(null!=a.children&&a.children instanceof Array){for(f=0,h=a.children.length;h>f;f++)null!=a.children[f]&&("string"==typeof a.children[f]?(a.children[f]=a.children[f].replace(/(\r\n|\n|\r)/gm,""),i=a.children[f].match(/__\$props__\[\d*\]/g),null!==i?s===o.Outputs.Inferno?(a.children[f]=a.children[f].replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2),"),","===a.children[f].substring(a.children[f].length-1)&&(a.children[f]=a.children[f].substring(0,a.children[f].length-1)),e.push(a.children[f])):e.push(a.children[f]):e.push("'"+a.children[f]+"'")):g(a.children[f],e,d));1===e.length?b.push((c?"children: ":"")+e):b.push((c?"children: ":"")+"["+e.join(",")+"]")}else null!=a.children&&"string"==typeof a.children&&(a.children=a.children.replace(/(\r\n|\n|\r)/gm,"").trim(),i=a.children.match(/__\$props__\[\d*\]/g),null!==i&&(s===o.Outputs.Inferno?a.children=a.children.replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2),"):a.children=a.children.replace(/(__\$props__\[.*\])/g,"',$1,'")),",'"===a.children.substring(a.children.length-2)?(a.children=a.children.substring(0,a.children.length-2),b.push((c?"children: ":"")+"['"+a.children+"]")):b.push((c?"children: ":"")+"['"+a.children+"']"))}function b(a,b,c,d){var e=[],f=0,h=0,i=null;if(null!=a.children&&a.children instanceof Array){for(f=0,h=a.children.length;h>f;f++)null!=a.children[f]&&("string"==typeof a.children[f]?(a.children[f]=a.children[f].replace(/(\r\n|\n|\r)/gm,""),i=a.children[f].match(/__\$props__\[\d*\]/g),null!=i?(a.children[f]=a.children[f].replace(/(__\$props__\[[0-9]*\])/g,"$1"),","===a.children[f].substring(a.children[f].length-1)&&(a.children[f]=a.children[f].substring(0,a.children[f].length-1)),e.push(a.children[f])):e.push("'"+a.children[f]+"'")):g(a.children[f],e,f===a.children.length-1,d));e.length>0&&b.push(e.join(","))}else null!=a.children&&"string"==typeof a.children&&(a.children=a.children.replace(/(\r\n|\n|\r)/gm,""),b.push("'"+a.children+"'"))}function c(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null===d?b.push("'"+e+"':'"+c+"'"):b.push("'"+e+"':"+c)}function d(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null!==d&&b.push("'"+e+"':"+c.replace(/(__\$props__\[([0-9]*)\])/g,"$2"))}function e(a,b){var c="",d=null;for(var e in a.attrs)c=a.attrs[e],d=c.match(/__\$props__\[\d*\]/g),null===d?b.push("{name:'"+e+"',value:'"+c+"'}"):b.push("{name:'"+e+"',value:"+c.replace(/(__\$props__\[([0-9]*)\])/g,"Inferno.createValueNode($1,$2)")+"}")}function f(a){return a[0]===a[0].toUpperCase()?!0:!1}function g(g,h,i){var j=[],k=[],l=[];if(g instanceof Array);else if(s===o.Outputs.Universal||s===o.Outputs.Inferno||s===o.Outputs.Mithril)if(null!=g.tag)if(f(g.tag)===!1)h.push("{tag: '"+g.tag+"'"),null!=g.key&&j.push("key: "+g.key),null!=g.attrs&&(s===o.Outputs.Inferno?(e(g,k),j.push("attrs: ["+k.join(",")+"]")):(c(g,k),j.push("attrs: {"+k.join(",")+"}"))),a(g,j,!0,i),h.push(j.join(",")+"}");else{if(("undefined"!=typeof window&&i===window||null==i)&&u===!1)throw new Error("Error referencing component '"+g.tag+"'. Components can only be used when within modules. See documentation for more information on t7.module().");s===o.Outputs.Universal?(c(g,k),h.push("__$components__."+g.tag+"({"+k.join(",")+"})")):s===o.Outputs.Mithril?(c(g,k),h.push("m.component(__$components__."+g.tag+",{"+k.join(",")+"})")):s===o.Outputs.Inferno&&(c(g,k),d(g,l),h.push("{component:__$components__."+g.tag+", props: {"+k.join(",")+"}, propsValueKeys: {"+l.join(",")+"}}"))}else h.push("'"+g+"'");else if(s===o.Outputs.React)if(null!=g.tag){if(f(g.tag)===!0){if(("undefined"!=typeof window&&i===window||null==i)&&u===!1)throw new Error("Error referencing component '"+g.tag+"'. Components can only be used when within modules. See documentation for more information on t7.module().");h.push("React.createElement(__$components__."+g.tag)}else h.push("React.createElement('"+g.tag+"'");null!=g.attrs?(c(g,k),null!=g.key&&k.push("'key':"+g.key),j.push("{"+k.join(",")+"}")):j.push("null"),b(g,j,!0,i),h.push(j.join(",")+")")}else g=g.replace(/(\r\n|\n|\r)/gm,"\\n"),h.push("'"+g+"'")}function h(a,b,c){var d=0,e=a.split(/(__\$props__\[\d*\])/g);for(d=0;d<e.length;d++)""!==e[d].trim()&&b.children.push(e[d]);return a=null}function i(a){return a.indexOf("'")>-1&&(a=a.replace(/'/g,"\\'")),a}function j(a,b){for(var c=0,d=/__\$props__\[([0-9]*)\]/,e=a.match(/__\$props__\[([0-9]*)\]/g),f=0;f<e.length;f++)c=d.exec(e[f])[1],a=a.replace(e[f],b[c]);return a}function k(a,b){var c="",d="",e=0,f=0,g=null,k=!1,m="",n="",o=null,p="",q=null,r=null;for(e=0,f=a.length;f>e;e++)if(c=a[e],"<"===c)k=!0;else if(">"===c&&k===!0){if("/"===m[0]){if(m!=="/"+q.tag&&-1===t.indexOf(q.tag)&&!q.closed)throw console.error("Template error: "+j(a,b)),new Error("Expected corresponding t7 closing tag for '"+q.tag+"'.");""!==p.trim()&&(p=i(p),p=h(p,q,!0),null!==p&&0===q.children.length?q.children=p:null!=p&&q.children.push(p)),q=q.parent,q&&(q.closed=!0)}else{if(p.trim().length>0&&!(q instanceof Array)&&(p=i(p),p=h(p.replace(/(\r\n|\n|\r)/gm,""),q),q.children.push(p),p=""),-1===m.indexOf(" ")?(r={},n=m):(r=l(m),n=r.tag),o={tag:n,attrs:r&&r.attrs?r.attrs:{},children:[],closed:"/"===m[m.length-1]||t.indexOf(n)>-1?!0:!1},r&&r.key&&(o.key=r.key),null===q){if(null!==g)throw new Error("t7 templates must contain only a single root element");g=q=o}else q instanceof Array?q.push(o):q.children.push(o);-1===t.indexOf(n)&&(q===o?o.parent=null:o.parent=q,q=o)}k=!1,m="",p=""}else k===!0?(m+=c,d=c):(p+=c,d=c);return g}function l(a){var b=[],c="",d="",e=0,f=0,g=0,h=0,i="",j=!1,k=[],l={},m="";for(e=0,g=a.length;g>e;e++)c=a[e]," "===c&&j===!1?(b.push(i),i=""):"'"===c?j===!1?j=!0:(j=!1,b.push(i),i=""):'"'===c?j===!1?j=!0:(j=!1,b.push(i),i=""):i+=c;for(""!==i&&b.push(i),i="",e=1,g=b.length;g>e;e++){for(k=[],d="",i="",f=0,h=b[e].length;h>f;f++)c=b[e][f],"="===c?(k.push(i),i=""):(i+=c,d=c);if(""!=i&&k.push(i),k.length>1){var n=k[1].match(/__\$props__\[\d*\]/g);null!==n?l[k[0]]=k[1]:"key"===k[0]?m=k[1]:l[k[0]]=k[1]}}return{tag:b[0],attrs:l,key:m}}function m(a,b){var c=a+"\n//# sourceURL="+b,d=document.createElement("script");d.textContent=c,r.appendChild(d)}function n(a){var b,c,d,e=0;if(0==a.length)return a;for(b=0,d=a.length;d>b;b++)c=a.charCodeAt(b),e=(e<<5)-e+c,e|=0;return e}function o(a){for(var b=null,c=1,d=arguments.length,e=null,f=null,h="",i=null,j=a[0],l=!1,p=[].slice.call(arguments,1);d>c;c++)j+=a[c];if(i=n(j),s===o.Outputs.Inferno){if(null!=o._cache[i])return p.push({templateKey:i,components:this}),p;l=!0}if(null==o._cache[i]){for(b="",c=0,d=a.length;d>c;c++)b+=c===a.length-1?a[c]:a[c]+"__$props__["+c+"]";if(e=[],g(k(b,p),e,this),h=e.join(","),u===!0)return{templateKey:i,template:"return "+h};q===!0?(f='t7._cache["'+i+'"]=function(__$props__, __$components__)',f+='{"use strict";return '+h+"}",m(f,i)):o._cache[i]=new Function('"use strict";var __$props__ = arguments[0];var __$components__ = arguments[1];return '+h)}return l===!0?(p.push({templateKey:i,components:this}),p):o._cache[i](p,this)}function p(a,b){var c=0,d=null,e=null;for(c=0;c<a.length;c=c+1|0)d=a[c],d instanceof Array?(e=d[d.length-1],null!=e.templateKey?b[c]=o.getTemplateFromCache(e.templateKey,d):(b[c]=[],p(a[c],b[c]))):b[c]=d}var q="undefined"!=typeof window&&null!=document,r=null,s=null,t=[],u=!1,v="0.2.16";q===!0&&(r=document.getElementsByTagName("head")[0]),t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];return o._cache={},o.Outputs={React:1,Universal:2,Inferno:3,Mithril:4},o.getOutput=function(){return s},o.setPrecompile=function(a){u=a},o.getVersion=function(){return v},o["if"]=function(a,b){return a?{"else":function(){return b()}}:{"else":function(a){return a()}}},o.setOutput=function(a){s=a},o.clearCache=function(){o._cache={}},o.assign=function(a){throw new Error("Error assigning component '"+a+"'. You can only assign components from within a module. Please check documentation for t7.module().")},o.module=function(a){var b={},c=function(){return o.apply(b,arguments)};c.assign=function(a,c){if(2===arguments.length)b[a]=c;else for(var d in a)b[d]=a[d]},c["if"]=o["if"],c.Outputs=o.Outputs,c.clearCache=o.clearCache,c.setOutput=o.setOutput,c.getOutput=o.getOutput,c.precompile=function(a){return o.precompile(a,b)},a(c)},o.precompile=function(a,b){var c=a[a.length-1];return null==o._cache[c.templateKey]&&(o._cache[c.templateKey]=c.template),s===o.Outputs.Inferno?(c.components=b,a):o.getTemplateFromCache(c.templateKey,a,b)},o.getTemplateFromCache=function(a,b,c){var d=[];return b.length>2?p(b,d):d=b,o._cache[a](d,c)},s="undefined"!=typeof React?o.Outputs.React:"undefined"!=typeof Inferno?o.Outputs.Inferno:o.Outputs.Universal,o}();"undefined"!=typeof b&&null!=b.exports&&(b.exports=d)},{}]},{},[1]);
{
"name": "inferno",
"version": "0.1.4",
"version": "0.1.6",
"description": "A framework for building lightning fast user interfaces",

@@ -5,0 +5,0 @@ "main": "inferno.js",

# InfernoJS
Inferno is a framework for building user-interface components (specifically for the browser's DOM). Inferno's key characteristic is performance, under the hood it uses virtual DOM as a lightweight representation of the
actual DOM. However, unlike other frameworks that use virtual DOMs, Inferno does not diff its virtual DOM on each update, but rather it checks the non-static parts of the virtual DOM and checks parts that have only
been updated. This technique allows Inferno to achieve blazingly fast DOM operations with very little overhead.
Inferno is a framework for building user-interface components (specifically for the browser's DOM). Inferno achieves great performance for demanding applications by using virtual DOM as a lightweight representation of the
actual DOM to construct interfaces in a simple manner. However, unlike other frameworks that use virtual DOMs, Inferno does not diff the virtual DOM on each update, but rather it knows what parts of interface are static and only diffs parts that have changed. This technique allows Inferno to achieve blazingly fast DOM operations with very little overhead.

@@ -7,0 +6,0 @@ ## Overview

@@ -553,3 +553,3 @@ "use strict";

//in this case, our new array has more items so we'll need to add more children
if (val.length !== node.children.lastValue.length) {
if (node.children.lastValue != null && val.length !== node.children.lastValue.length) {
if (val.length > node.children.lastValue.length) {

@@ -562,3 +562,4 @@ //easiest way to add another child is to clone the node, so let's clone the first child

} else {
childNode = t7.getTemplateFromCache(val[s].templateKey, val[s].values);
endValue = val[s][val[s].length - 1];
childNode = t7.getTemplateFromCache(endValue.templateKey, val[s]);
createNode(childNode, node, node.dom, val, null, i, listeners, component);

@@ -565,0 +566,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc