New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inferno

Package Overview
Dependencies
Maintainers
3
Versions
340
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.7.13 to 0.7.14

dist/inferno-compat.js

286

dist/inferno-component.js
/*!
* inferno-component v0.7.13
* inferno-component v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
var NO_RENDER = 'NO_RENDER';

@@ -76,3 +19,3 @@

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}

@@ -84,7 +27,18 @@

function isUndefined(obj) {
return obj === undefined;
}
function VPlaceholder() {
this.placeholder = true;
this.dom = null;
}
function createVPlaceholder() {
return new VPlaceholder();
}
function constructDefaults(string, object, value) {
/* eslint no-return-assign: 0 */
string.split(',').forEach(function (i) {
return object[i] = value;
});
string.split(',').forEach(function (i) { return object[i] = value; });
}

@@ -105,9 +59,2 @@

function createNullNode() {
return {
null: true,
dom: document.createTextNode('')
};
}
var screenWidth = isBrowser && window.screen.width;

@@ -120,3 +67,3 @@ var screenHeight = isBrowser && window.screen.height;

if (isBrowser) {
window.onscroll = function (e) {
window.onscroll = function () {
scrollX = window.scrollX;

@@ -127,3 +74,3 @@ scrollY = window.scrollY;

window.resize = function (e) {
window.resize = function () {
scrollX = window.scrollX;

@@ -154,4 +101,6 @@ scrollY = window.scrollY;

trigger: function trigger() {
var this$1 = this;
for (var i = 0; i < this._listeners.length; i++) {
this._listeners[i]();
this$1._listeners[i]();
}

@@ -204,11 +153,12 @@ }

} else if (isNullOrUndefined(nextNode)) {
nextNode = createNullNode();
nextNode = createVPlaceholder();
}
var lastNode = component._lastNode;
var parentDom = lastNode.dom.parentNode;
var activeNode = getActiveNode();
var subLifecycle = new Lifecycle();
component._patch(lastNode, nextNode, parentDom, subLifecycle, component.context, component, null);
component._lastNode = nextNode;
component._componentToDOMNodeMap.set(component, nextNode.dom);
component._parentNode.dom = nextNode.dom;

@@ -224,110 +174,100 @@

var Component = function () {
function Component(props) {
babelHelpers.classCallCheck(this, Component);
var Component = function Component(props) {
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
this._componentToDOMNodeMap = null;
};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
Component.prototype.render = function render () {
};
Component.prototype.forceUpdate = function forceUpdate (callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
};
babelHelpers.createClass(Component, [{
key: 'render',
value: function render() {}
}, {
key: 'forceUpdate',
value: function forceUpdate(callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
Component.prototype.setState = function setState (newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
};
Component.prototype.componentDidMount = function componentDidMount () {
};
Component.prototype.componentWillMount = function componentWillMount () {
};
Component.prototype.componentWillUnmount = function componentWillUnmount () {
};
Component.prototype.componentDidUpdate = function componentDidUpdate () {
};
Component.prototype.shouldComponentUpdate = function shouldComponentUpdate () {
return true;
};
Component.prototype.componentWillReceiveProps = function componentWillReceiveProps () {
};
Component.prototype.componentWillUpdate = function componentWillUpdate () {
};
Component.prototype.getChildContext = function getChildContext () {
};
Component.prototype._updateComponent = function _updateComponent (prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
}, {
key: 'setState',
value: function setState(newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {}
}, {
key: 'componentWillMount',
value: function componentWillMount() {}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {}
}, {
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate() {
return true;
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps() {}
}, {
key: 'componentWillUpdate',
value: function componentWillUpdate() {}
}, {
key: 'getChildContext',
value: function getChildContext() {}
}, {
key: '_updateComponent',
value: function _updateComponent(prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
this.componentDidUpdate(prevProps, prevState);
return node;
}
}
return NO_RENDER;
this.componentDidUpdate(prevProps, prevState);
return node;
}
}]);
return Component;
}();
}
return NO_RENDER;
};

@@ -334,0 +274,0 @@ return Component;

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.InfernoComponent=t()}(this,function(){"use strict";function e(e){return void 0===e||t(e)}function t(e){return null===e}function n(e,t,n){e.split(",").forEach(function(e){return t[e]=n})}function o(){return{"null":!0,dom:document.createTextNode("")}}function i(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=b,this.screenWidth=_}function r(){return document.activeElement}function l(e){e!==document.body&&document.activeElement!==e&&e.focus()}function a(e,t,n){for(var o in t)e._pendingState[o]=t[o];if(e._pendingSetState){var i=e._pendingState,r=e.state;e.state=Object.assign({},r,i),e._pendingState={}}else e._pendingSetState=!0,s(e,!1,n)}function s(t,n,a){if(!t._deferSetState||n){t._pendingSetState=!1;var s=t._pendingState,u=t.state,d=Object.assign({},u,s);t._pendingState={};var p=t._updateComponent(u,d,t.props,t.props,n);p===c?p=t._lastNode:e(p)&&(p=o());var f=t._lastNode,h=f.dom.parentNode,m=r(),w=new i;t._patch(f,p,h,w,t.context,t,null),t._lastNode=p,t._parentNode.dom=p.dom,w.trigger(),e(a)||a(),l(m)}}var u={};u.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},u.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var c="NO_RENDER",d="undefined"!=typeof window&&window.document,p="http://www.w3.org/1999/xlink",f="http://www.w3.org/XML/1998/namespace",h={},m={},w={},y={};n("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",w,p),n("xml:base,xml:lang,xml:space",w,f),n("volume,value",h,!0),n("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",m,!0),n("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",y,!0);var _=d&&window.screen.width,b=d&&window.screen.height,S=0,v=0,g=0;d&&(window.onscroll=function(e){S=window.scrollX,v=window.scrollY,g=performance.now()},window.resize=function(e){S=window.scrollX,v=window.scrollY,_=window.screen.width,b=window.screen.height,g=performance.now()}),i.prototype={refresh:function(){this.scrollX=d&&window.scrollX,this.scrollY=d&&window.scrollY},addListener:function(e){this._listeners.push(e)},trigger:function(){for(var e=0;e<this._listeners.length;e++)this._listeners[e]()}};var k="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",x=function(){function t(e){u.classCallCheck(this,t),this.props=e||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null}return u.createClass(t,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(e){if(this._unmounted)throw Error(k);s(this,!0,e)}},{key:"setState",value:function(e,t){if(this._unmounted)throw Error(k);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");a(this,e,t)}},{key:"componentDidMount",value:function(){}},{key:"componentWillMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillReceiveProps",value:function(){}},{key:"componentWillUpdate",value:function(){}},{key:"getChildContext",value:function(){}},{key:"_updateComponent",value:function(t,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!e(i)&&e(i.children)&&(i.children=o.children),o!==i||t!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var a=this.render();return this.componentDidUpdate(o,t),a}}return c}}]),t}();return x});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoComponent=e()}(this,function(){"use strict";function t(t){return n(t)||e(t)}function e(t){return null===t}function n(t){return void 0===t}function o(){this.placeholder=!0,this.dom=null}function i(){return new o}function r(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function l(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=y,this.screenWidth=g}function s(){return document.activeElement}function a(t){t!==document.body&&document.activeElement!==t&&t.focus()}function p(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var i=t._pendingState,r=t.state;t.state=Object.assign({},r,i),t._pendingState={}}else t._pendingSetState=!0,d(t,!1,n)}function d(e,n,o){if(!e._deferSetState||n){e._pendingSetState=!1;var r=e._pendingState,p=e.state,d=Object.assign({},p,r);e._pendingState={};var u=e._updateComponent(p,d,e.props,e.props,n);u===c?u=e._lastNode:t(u)&&(u=i());var h=e._lastNode,f=h.dom.parentNode,m=s(),w=new l;e._patch(h,u,f,w,e.context,e,null),e._lastNode=u,e._componentToDOMNodeMap.set(e,u.dom),e._parentNode.dom=u.dom,w.trigger(),t(o)||o(),a(m)}}var c="NO_RENDER",u="undefined"!=typeof window&&window.document,h="http://www.w3.org/1999/xlink",f="http://www.w3.org/XML/1998/namespace",m={},w={},_={},S={};r("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",_,h),r("xml:base,xml:lang,xml:space",_,f),r("volume,value",m,!0),r("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",w,!0),r("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",S,!0);var g=u&&window.screen.width,y=u&&window.screen.height,x=0,v=0,k=0;u&&(window.onscroll=function(){x=window.scrollX,v=window.scrollY,k=performance.now()},window.resize=function(){x=window.scrollX,v=window.scrollY,g=window.screen.width,y=window.screen.height,k=performance.now()}),l.prototype={refresh:function(){this.scrollX=u&&window.scrollX,this.scrollY=u&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=this,e=0;e<this._listeners.length;e++)t._listeners[e]()}};var b="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",C=function(t){this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null,this._componentToDOMNodeMap=null};return C.prototype.render=function(){},C.prototype.forceUpdate=function(t){if(this._unmounted)throw Error(b);d(this,!0,t)},C.prototype.setState=function(t,e){if(this._unmounted)throw Error(b);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");p(this,t,e)},C.prototype.componentDidMount=function(){},C.prototype.componentWillMount=function(){},C.prototype.componentWillUnmount=function(){},C.prototype.componentDidUpdate=function(){},C.prototype.shouldComponentUpdate=function(){return!0},C.prototype.componentWillReceiveProps=function(){},C.prototype.componentWillUpdate=function(){},C.prototype.getChildContext=function(){},C.prototype._updateComponent=function(e,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!t(i)&&t(i.children)&&(i.children=o.children),o!==i||e!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var s=this.render();return this.componentDidUpdate(o,e),s}}return c},C});
/*!
* inferno-create-class v0.7.13
* inferno-create-class v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
var NO_RENDER = 'NO_RENDER';

@@ -76,3 +19,3 @@

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}

@@ -84,7 +27,18 @@

function isUndefined(obj) {
return obj === undefined;
}
function VPlaceholder() {
this.placeholder = true;
this.dom = null;
}
function createVPlaceholder() {
return new VPlaceholder();
}
function constructDefaults(string, object, value) {
/* eslint no-return-assign: 0 */
string.split(',').forEach(function (i) {
return object[i] = value;
});
string.split(',').forEach(function (i) { return object[i] = value; });
}

@@ -105,9 +59,2 @@

function createNullNode() {
return {
null: true,
dom: document.createTextNode('')
};
}
var screenWidth = isBrowser && window.screen.width;

@@ -120,3 +67,3 @@ var screenHeight = isBrowser && window.screen.height;

if (isBrowser) {
window.onscroll = function (e) {
window.onscroll = function () {
scrollX = window.scrollX;

@@ -127,3 +74,3 @@ scrollY = window.scrollY;

window.resize = function (e) {
window.resize = function () {
scrollX = window.scrollX;

@@ -154,4 +101,6 @@ scrollY = window.scrollY;

trigger: function trigger() {
var this$1 = this;
for (var i = 0; i < this._listeners.length; i++) {
this._listeners[i]();
this$1._listeners[i]();
}

@@ -204,11 +153,12 @@ }

} else if (isNullOrUndefined(nextNode)) {
nextNode = createNullNode();
nextNode = createVPlaceholder();
}
var lastNode = component._lastNode;
var parentDom = lastNode.dom.parentNode;
var activeNode = getActiveNode();
var subLifecycle = new Lifecycle();
component._patch(lastNode, nextNode, parentDom, subLifecycle, component.context, component, null);
component._lastNode = nextNode;
component._componentToDOMNodeMap.set(component, nextNode.dom);
component._parentNode.dom = nextNode.dom;

@@ -224,110 +174,100 @@

var Component = function () {
function Component(props) {
babelHelpers.classCallCheck(this, Component);
var Component = function Component(props) {
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
this._componentToDOMNodeMap = null;
};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
Component.prototype.render = function render () {
};
Component.prototype.forceUpdate = function forceUpdate (callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
};
babelHelpers.createClass(Component, [{
key: 'render',
value: function render() {}
}, {
key: 'forceUpdate',
value: function forceUpdate(callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
Component.prototype.setState = function setState (newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
};
Component.prototype.componentDidMount = function componentDidMount () {
};
Component.prototype.componentWillMount = function componentWillMount () {
};
Component.prototype.componentWillUnmount = function componentWillUnmount () {
};
Component.prototype.componentDidUpdate = function componentDidUpdate () {
};
Component.prototype.shouldComponentUpdate = function shouldComponentUpdate () {
return true;
};
Component.prototype.componentWillReceiveProps = function componentWillReceiveProps () {
};
Component.prototype.componentWillUpdate = function componentWillUpdate () {
};
Component.prototype.getChildContext = function getChildContext () {
};
Component.prototype._updateComponent = function _updateComponent (prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
}, {
key: 'setState',
value: function setState(newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {}
}, {
key: 'componentWillMount',
value: function componentWillMount() {}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {}
}, {
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate() {
return true;
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps() {}
}, {
key: 'componentWillUpdate',
value: function componentWillUpdate() {}
}, {
key: 'getChildContext',
value: function getChildContext() {}
}, {
key: '_updateComponent',
value: function _updateComponent(prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
this.componentDidUpdate(prevProps, prevState);
return node;
}
}
return NO_RENDER;
this.componentDidUpdate(prevProps, prevState);
return node;
}
}]);
return Component;
}();
}
return NO_RENDER;
};

@@ -348,3 +288,4 @@ // don't autobind these methods since they already have guaranteed context.

function F() {}
function F() {
}

@@ -351,0 +292,0 @@ function extend(base, props, all) {

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoCreateClass=e()}(this,function(){"use strict";function t(t){return void 0===t||e(t)}function e(t){return null===t}function n(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function o(){return{"null":!0,dom:document.createTextNode("")}}function i(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=k,this.screenWidth=g}function r(){return document.activeElement}function l(t){t!==document.body&&document.activeElement!==t&&t.focus()}function a(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var i=t._pendingState,r=t.state;t.state=Object.assign({},r,i),t._pendingState={}}else t._pendingSetState=!0,s(t,!1,n)}function s(e,n,a){if(!e._deferSetState||n){e._pendingSetState=!1;var s=e._pendingState,u=e.state,c=Object.assign({},u,s);e._pendingState={};var p=e._updateComponent(u,c,e.props,e.props,n);p===h?p=e._lastNode:t(p)&&(p=o());var d=e._lastNode,f=d.dom.parentNode,m=r(),y=new i;e._patch(d,p,f,y,e.context,e,null),e._lastNode=p,e._parentNode.dom=p.dom,y.trigger(),t(a)||a(),l(m)}}function u(){}function c(e,n,o){for(var i in n)o!==!0&&t(n[i])||(e[i]=n[i]);return e}function p(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||N.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function d(t){function e(e){c(this,t),U.call(this,e),p(this),this.getInitialState&&(this.state=this.getInitialState())}return u.prototype=U.prototype,e.prototype=new u,e.prototype.constructor=e,e.displayName=t.displayName||"Component",e}var f={};f.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},f.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},f.createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),f.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},f.possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};var h="NO_RENDER",m="undefined"!=typeof window&&window.document,y="http://www.w3.org/1999/xlink",w="http://www.w3.org/XML/1998/namespace",_={},b={},v={},S={};n("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",v,y),n("xml:base,xml:lang,xml:space",v,w),n("volume,value",_,!0),n("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",b,!0),n("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",S,!0);var g=m&&window.screen.width,k=m&&window.screen.height,x=0,C=0,O=0;m&&(window.onscroll=function(t){x=window.scrollX,C=window.scrollY,O=performance.now()},window.resize=function(t){x=window.scrollX,C=window.scrollY,g=window.screen.width,k=window.screen.height,O=performance.now()}),i.prototype={refresh:function(){this.scrollX=m&&window.scrollX,this.scrollY=m&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=0;t<this._listeners.length;t++)this._listeners[t]()}};var W="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",U=function(){function e(t){f.classCallCheck(this,e),this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null}return f.createClass(e,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(t){if(this._unmounted)throw Error(W);s(this,!0,t)}},{key:"setState",value:function(t,e){if(this._unmounted)throw Error(W);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");a(this,t,e)}},{key:"componentDidMount",value:function(){}},{key:"componentWillMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillReceiveProps",value:function(){}},{key:"componentWillUpdate",value:function(){}},{key:"getChildContext",value:function(){}},{key:"_updateComponent",value:function(e,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!t(i)&&t(i.children)&&(i.children=o.children),o!==i||e!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var a=this.render();return this.componentDidUpdate(o,e),a}}return h}}]),e}(),N={constructor:1,render:1,shouldComponentUpdate:1,componentWillRecieveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1};return d});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoCreateClass=e()}(this,function(){"use strict";function t(t){return n(t)||e(t)}function e(t){return null===t}function n(t){return void 0===t}function o(){this.placeholder=!0,this.dom=null}function i(){return new o}function r(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function l(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=k,this.screenWidth=b}function s(){return document.activeElement}function p(t){t!==document.body&&document.activeElement!==t&&t.focus()}function a(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var i=t._pendingState,r=t.state;t.state=Object.assign({},r,i),t._pendingState={}}else t._pendingSetState=!0,c(t,!1,n)}function c(e,n,o){if(!e._deferSetState||n){e._pendingSetState=!1;var r=e._pendingState,a=e.state,c=Object.assign({},a,r);e._pendingState={};var d=e._updateComponent(a,c,e.props,e.props,n);d===m?d=e._lastNode:t(d)&&(d=i());var u=e._lastNode,h=u.dom.parentNode,f=s(),w=new l;e._patch(u,d,h,w,e.context,e,null),e._lastNode=d,e._componentToDOMNodeMap.set(e,d.dom),e._parentNode.dom=d.dom,w.trigger(),t(o)||o(),p(f)}}function d(){}function u(e,n,o){for(var i in n)o!==!0&&t(n[i])||(e[i]=n[i]);return e}function h(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||D.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function f(t){function e(e){u(this,t),O.call(this,e),h(this),this.getInitialState&&(this.state=this.getInitialState())}return d.prototype=O.prototype,e.prototype=new d,e.prototype.constructor=e,e.displayName=t.displayName||"Component",e}var m="NO_RENDER",w="undefined"!=typeof window&&window.document,_="http://www.w3.org/1999/xlink",y="http://www.w3.org/XML/1998/namespace",S={},g={},v={},x={};r("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",v,_),r("xml:base,xml:lang,xml:space",v,y),r("volume,value",S,!0),r("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",g,!0),r("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",x,!0);var b=w&&window.screen.width,k=w&&window.screen.height,C=0,W=0,U=0;w&&(window.onscroll=function(){C=window.scrollX,W=window.scrollY,U=performance.now()},window.resize=function(){C=window.scrollX,W=window.scrollY,b=window.screen.width,k=window.screen.height,U=performance.now()}),l.prototype={refresh:function(){this.scrollX=w&&window.scrollX,this.scrollY=w&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=this,e=0;e<this._listeners.length;e++)t._listeners[e]()}};var N="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",O=function(t){this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null,this._componentToDOMNodeMap=null};O.prototype.render=function(){},O.prototype.forceUpdate=function(t){if(this._unmounted)throw Error(N);c(this,!0,t)},O.prototype.setState=function(t,e){if(this._unmounted)throw Error(N);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");a(this,t,e)},O.prototype.componentDidMount=function(){},O.prototype.componentWillMount=function(){},O.prototype.componentWillUnmount=function(){},O.prototype.componentDidUpdate=function(){},O.prototype.shouldComponentUpdate=function(){return!0},O.prototype.componentWillReceiveProps=function(){},O.prototype.componentWillUpdate=function(){},O.prototype.getChildContext=function(){},O.prototype._updateComponent=function(e,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!t(i)&&t(i.children)&&(i.children=o.children),o!==i||e!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var s=this.render();return this.componentDidUpdate(o,e),s}}return m};var D={constructor:1,render:1,shouldComponentUpdate:1,componentWillRecieveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1};return f});
/*!
* inferno-create-element v0.7.13
* inferno-create-element v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
function isArray(obj) {

@@ -75,7 +18,7 @@ return obj instanceof Array;

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}
function isInvalidNode(obj) {
return isNull(obj) || obj === false || obj === true || obj === void 0;
return isNull(obj) || obj === false || obj === true || isUndefined(obj);
}

@@ -87,3 +30,3 @@

function isAttrAnEvent(attr) {
function isAttrAnEvent$1(attr) {
return attr[0] === 'o' && attr[1] === 'n' && attr.length > 3;

@@ -96,10 +39,23 @@ }

function isAttrAHook(hook) {
return hook === 'onCreated' || hook === 'onAttached' || hook === 'onWillDetach' || hook === 'onWillUpdate' || hook === 'onDidUpdate';
function isUndefined(obj) {
return obj === undefined;
}
function isAttrAComponentHook(hook) {
return hook === 'onComponentWillMount' || hook === 'onComponentDidMount' || hook === 'onComponentWillUnmount' || hook === 'onComponentShouldUpdate' || hook === 'onComponentWillUpdate' || hook === 'onComponentDidUpdate';
function isAttrAHook$1(hook) {
return hook === 'onCreated'
|| hook === 'onAttached'
|| hook === 'onWillDetach'
|| hook === 'onWillUpdate'
|| hook === 'onDidUpdate';
}
function isAttrAComponentHook$1(hook) {
return hook === 'onComponentWillMount'
|| hook === 'onComponentDidMount'
|| hook === 'onComponentWillUnmount'
|| hook === 'onComponentShouldUpdate'
|| hook === 'onComponentWillUpdate'
|| hook === 'onComponentDidUpdate';
}
function VNode(blueprint) {

@@ -175,3 +131,3 @@ this.bp = blueprint;

style = props[prop];
} else if (isAttrAHook(prop) && !isFunction(tag)) {
} else if (isAttrAHook$1(prop) && !isFunction(tag)) {
if (isNullOrUndefined(hooks)) {

@@ -182,3 +138,3 @@ hooks = {};

delete props[prop];
} else if (isAttrAnEvent(prop) && !isFunction(tag)) {
} else if (isAttrAnEvent$1(prop) && !isFunction(tag)) {
if (isNullOrUndefined(events)) {

@@ -189,3 +145,3 @@ events = {};

delete props[prop];
} else if (isAttrAComponentHook(prop) && isFunction(tag)) {
} else if (isAttrAComponentHook$1(prop) && isFunction(tag)) {
if (isNullOrUndefined(hooks)) {

@@ -209,15 +165,15 @@ hooks = {};

function createChild(_ref) {
var tag = _ref.tag;
var attrs = _ref.attrs;
var children = _ref.children;
var className = _ref.className;
var style = _ref.style;
var events = _ref.events;
var hooks = _ref.hooks;
function createChild(ref) {
var tag = ref.tag;
var attrs = ref.attrs;
var children = ref.children;
var className = ref.className;
var style = ref.style;
var events = ref.events;
var hooks = ref.hooks;
if (tag === void 0 && !isNullOrUndefined(attrs) && !attrs.tpl && !isNullOrUndefined(children) && children.length === 0) {
if (tag === undefined && !isNullOrUndefined(attrs) && !attrs.tpl && !isNullOrUndefined(children) && children.length === 0) {
return null;
}
var key = !isNullOrUndefined(attrs) && !isNullOrUndefined(attrs.key) ? attrs.key : void 0;
var key = !isNullOrUndefined(attrs) && !isNullOrUndefined(attrs.key) ? attrs.key : undefined;

@@ -230,3 +186,3 @@ if (!isNullOrUndefined(children) && children.length === 0) {

if (key !== void 0) {
if (key !== undefined) {
delete attrs.key;

@@ -244,6 +200,6 @@ }

vNode.hooks = attrsAndEvents.hooks || hooks;
vNode.children = children === void 0 ? null : children;
vNode.key = key === void 0 ? null : key;
vNode.className = className === void 0 ? null : className;
vNode.style = style === void 0 ? null : style;
vNode.children = children === undefined ? null : children;
vNode.key = key === undefined ? null : key;
vNode.className = className === undefined ? null : className;
vNode.style = style === undefined ? null : style;

@@ -260,3 +216,3 @@ return vNode;

var child = children[i];
if (!isNullOrUndefined(child) && (typeof child === 'undefined' ? 'undefined' : babelHelpers.typeof(child)) === 'object') {
if (!isNullOrUndefined(child) && typeof child === 'object') {
if (isArray(child)) {

@@ -276,4 +232,4 @@ if (child.length > 0) {

return newChildren;
} else if (childrenDefined && (typeof children === 'undefined' ? 'undefined' : babelHelpers.typeof(children)) === 'object') {
return children.dom === void 0 ? createChild(children) : children;
} else if (childrenDefined && typeof children === 'object') {
return children.dom === undefined ? createChild(children) : children;
}

@@ -284,5 +240,4 @@ return children;

function createElement(tag, props) {
for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
children[_key - 2] = arguments[_key];
}
var children = [], len = arguments.length - 2;
while ( len-- > 0 ) children[ len ] = arguments[ len + 2 ];

@@ -289,0 +244,0 @@ return createChild({ tag: tag, attrs: props, children: children });

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return void 0===t||i(t)}function e(t){return i(t)||t===!1||t===!0||void 0===t}function o(t){return"function"==typeof t}function r(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function i(t){return null===t}function l(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function u(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function s(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function a(t){return new s(t)}function f(e,i){var s=null,a=null,f=null,c=null,h=null;if(!n(e)){if(t(e))return e;for(var p in e)"className"===p?c=e[p]:"style"===p?h=e[p]:l(p)&&!o(i)?(n(a)&&(a={}),a[p.substring(2).toLowerCase()]=e[p],delete e[p]):r(p)&&!o(i)?(n(s)&&(s={}),s[p.toLowerCase()]=e[p],delete e[p]):u(p)&&o(i)?(n(a)&&(a={}),a["c"+p.substring(3)]=e[p],delete e[p]):o(i)?f=e:(n(f)&&(f={}),f[p]=e[p])}return{attrs:f,events:s,className:c,style:h,hooks:a}}function c(o){var r=o.tag,i=o.attrs,l=o.children,u=o.className,s=o.style,c=o.events,p=o.hooks;if(void 0===r&&!n(i)&&!i.tpl&&!n(l)&&0===l.length)return null;var d=n(i)||n(i.key)?void 0:i.key;n(l)||0!==l.length?e(l)||(l=h(t(l)&&1===l.length?l[0]:l)):l=null,void 0!==d&&delete i.key;var y=f(i,r),m=a();return u=u||y.className,s=s||y.style,m.tag=r||null,m.attrs=y.attrs||null,m.events=y.events||c,m.hooks=y.hooks||p,m.children=void 0===l?null:l,m.key=void 0===d?null:d,m.className=void 0===u?null:u,m.style=void 0===s?null:s,m}function h(e){var o=!n(e);if(o&&t(e)){for(var r=[],i=0;i<e.length;i++){var l=e[i];n(l)||"object"!==("undefined"==typeof l?"undefined":d.typeof(l))?r.push(l):t(l)?l.length>0?r.push(h(l)):r.push(null):r.push(c(l))}return r}return o&&"object"===("undefined"==typeof e?"undefined":d.typeof(e))&&void 0===e.dom?c(e):e}function p(t,n){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;e>r;r++)o[r-2]=arguments[r];return c({tag:t,attrs:n,children:o})}var d={};return d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d.classCallCheck=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},d.createClass=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),d.inherits=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},d.possibleConstructorReturn=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},s.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},p});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return i(t)||s(t)}function e(t){return s(t)||t===!1||t===!0||i(t)}function o(t){return"function"==typeof t}function l(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function s(t){return null===t}function i(t){return void 0===t}function u(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function r(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function a(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function h(t){return new a(t)}function c(e,s){var i=null,a=null,h=null,c=null,f=null;if(!n(e)){if(t(e))return e;for(var d in e)"className"===d?c=e[d]:"style"===d?f=e[d]:u(d)&&!o(s)?(n(a)&&(a={}),a[d.substring(2).toLowerCase()]=e[d],delete e[d]):l(d)&&!o(s)?(n(i)&&(i={}),i[d.toLowerCase()]=e[d],delete e[d]):r(d)&&o(s)?(n(a)&&(a={}),a["c"+d.substring(3)]=e[d],delete e[d]):o(s)?h=e:(n(h)&&(h={}),h[d]=e[d])}return{attrs:h,events:i,className:c,style:f,hooks:a}}function f(o){var l=o.tag,s=o.attrs,i=o.children,u=o.className,r=o.style,a=o.events,f=o.hooks;if(void 0===l&&!n(s)&&!s.tpl&&!n(i)&&0===i.length)return null;var p=n(s)||n(s.key)?void 0:s.key;n(i)||0!==i.length?e(i)||(i=d(t(i)&&1===i.length?i[0]:i)):i=null,void 0!==p&&delete s.key;var v=c(s,l),y=h();return u=u||v.className,r=r||v.style,y.tag=l||null,y.attrs=v.attrs||null,y.events=v.events||a,y.hooks=v.hooks||f,y.children=void 0===i?null:i,y.key=void 0===p?null:p,y.className=void 0===u?null:u,y.style=void 0===r?null:r,y}function d(e){var o=!n(e);if(o&&t(e)){for(var l=[],s=0;s<e.length;s++){var i=e[s];n(i)||"object"!=typeof i?l.push(i):t(i)?i.length>0?l.push(d(i)):l.push(null):l.push(f(i))}return l}return o&&"object"==typeof e&&void 0===e.dom?f(e):e}function p(t,n){for(var e=[],o=arguments.length-2;o-- >0;)e[o]=arguments[o+2];return f({tag:t,attrs:n,children:e})}return a.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},p});

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoDOM=n()}(this,function(){"use strict";function e(e,t){if(!o(e)){var r=n(e);(r&&e.length>0||!r)&&(t=t?Object.assign({},t,{children:e}):{children:e})}return t}function n(e){return e instanceof Array}function t(e){return void 0!==e.prototype.render}function r(e){return a(e)||s(e)}function o(e){return void 0===e||d(e)}function l(e){return d(e)||e===!1||e===!0||void 0===e}function i(e){return"function"==typeof e}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function d(e){return null===e}function c(e){return e instanceof Promise}function u(e,n,t){e.splice(e.indexOf(n),1,t)}function f(e,t){if(!l(e))if(n(e))for(var r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(o===t)return!0;if(o.children)return f(o.children,t)}}else{if(e===t)return!0;if(e.children)return f(e.children,t)}return!1}function h(e,n){var t=n.props.children;return f(t,e)?h(e,n._parentComponent):n}function p(e,n,t,r,l){if(void 0!==n){var i=e.key,a=null===i?n.pools.nonKeyed:n.pools.keyed[i];if(!o(a)){var s=a.pop();if(!o(s))return de(s,e,null,t,r,l,!0,n.isSVG),e.dom}}return null}function v(e){var n=e.bp;if(!o(n)){var t=e.key,r=n.pools;if(null===t){var l=r.nonKeyed;l&&l.push(e)}else{var i=r.keyed;(i[t]||(i[t]=[])).push(e)}return!0}return!1}function m(e,t,r,o,i,a){if(n(e))return Q(e,t);if(l(e))return null;var s=e.bp;if(We){var d=p(e,s,r,o,i);if(null!==d)return null!==t&&t.appendChild(d),d}return void 0===s?w(e,t,r,o,i,a):C(e,s,t,r,o,i)}function y(e){"select"===e.tag&&J(e)}function g(e,n,t,r){y(e);var o=e.attrs;if(null===n.attrKeys){var l=Object.keys(o);n.attrKeys=n.attrKeys?n.attrKeys.concat(l):l}var i=n.attrKeys;j(e,o,i,t,r)}function b(e,n,t){var r=e.events;null===n.eventKeys&&(n.eventKeys=Object.keys(r));var o=n.eventKeys;S(r,o,t)}function C(e,n,t,r,o,l){var i=e.tag;if(n.isComponent===!0)return T(e,i,e.attrs||{},e.hooks,e.children,l,t,r,o);var a=A(n.tag,n.isSVG);switch(e.dom=a,n.hasHooks===!0&&Z(e.hooks,r,a),n.lazy===!0&&ge(e,r,a),n.childrenType){case 1:K(e.children,a,!0);break;case 2:m(e.children,a,r,o,l);break;case 3:N(e,e.children,a,r,o,l);break;case 4:x(e.children,a,r,o,l);break;case 5:_(e,e.children,a,r,o,l)}return n.hasAttrs===!0&&g(e,n,a,l),n.hasClassName===!0&&(a.className=e.className),n.hasStyle===!0&&ce(null,e.style,a),n.hasEvents===!0&&b(e,n,a),null!==t&&t.appendChild(a),a}function w(e,n,t,r,s,d){var c=e.tag;if(null===c)return Q(e,n);if(i(c))return T(e,c,e.attrs||{},e.hooks,e.children,s,n,t,r);if(!a(c)||""===c)throw Error("Inferno Error: Expected function or string for element tag type");"svg"===c&&(d=!0);var u=A(c,d),f=e.children,h=e.attrs,p=e.events,v=e.hooks,m=e.className,g=e.style;return e.dom=u,o(v)||Z(v,t,u),l(f)||_(e,f,u,t,r,s,d),o(h)||(y(e),j(e,h,Object.keys(h),u,s)),o(m)||(u.className=m),o(g)||ce(null,g,u),o(p)||S(p,Object.keys(p),u),null!==n&&n.appendChild(u),u}function k(e,n,t,r,o,i,a){var s=B();t&&t.push(s),e.then(function(e){var d=m(e,null,r,o,i,a);null===n||l(d)||n.replaceChild(d,s),t&&u(t,s,d)}),n.appendChild(s)}function x(e,n,t,r,o){for(var l=0;l<e.length;l++)m(e[l],n,t,r,o)}function N(e,t,i,a,s,d,u){for(var f=null,h=!1,p=!1,v=0;v<t.length;v++){var y=t[v];if(r(y))h=!0,f=f||[],f.push(K(y,i,!1));else if(!o(y)&&n(y)){var g=R();h=!0,N(e,y,g,a,s,d,u),D(i,g),f=f||[],f.push(g)}else if(c(y))k(y,i,f,a,s,d,u);else{var b=m(y,i,a,s,d,u);h||!p&&!o(y)&&o(y.key)?(h=!0,f=f||[],f.push(b)):l(y)?(h=!0,f=f||[],f.push(b)):p===!1&&(p=!0)}}null!==f&&f.length>1&&h===!0&&(e.domChildren=f)}function _(e,t,o,l,i,a,s){n(t)?N(e,t,o,l,i,a,s):r(t)?K(t,o,!0):c(t)?k(t,o,null,l,i,a,s):m(t,o,l,i,a,s)}function O(e,n,t){!l(e)&&a(n)&&(e.refs[n]=t)}function S(e,n,t){for(var r=0;r<n.length;r++){var o=n[r];t[o]=e[o]}}function T(n,r,i,a,s,d,c,u,f){i=e(s,i);var h=void 0;if(t(r)){var p=new r(i);p._patch=de,!o(d)&&i.ref&&O(d,i.ref,p);var v=p.getChildContext();o(v)||(f=Object.assign({},f,v)),p.context=f,p._unmounted=!1,p._parentNode=n,d&&(p._parentComponent=d),p._pendingSetState=!0,p.componentWillMount();var y=p.render();p._pendingSetState=!1,l(y)?(p._lastNode=U(),h=p._lastNode.dom):(h=m(y,null,u,f,p,!1),p._lastNode=y,p.componentDidMount()),null===c||l(h)||c.appendChild(h),n.dom=h,n.instance=p}else{o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(h,i)}));var g=r(i,f);h=m(g,null,u,f,null,!1),n.instance=g,null===c||l(h)||c.appendChild(h),n.dom=h}return h}function j(e,n,t,r,o){for(var l=0;l<t.length;l++){var i=t[l];"ref"===i?O(h(e,o),n[i],r):fe(i,null,n[i],r)}}function E(e,n,t){e.split(",").forEach(function(e){return n[e]=t})}function M(e){return!o(e.append)}function D(e,n,t){o(t)?M(n)?n.append(e):e.appendChild(n):M(n)?n.insert(e,t):M(t)?e.insertBefore(n,t.childNodes[0]||t.dom):e.insertBefore(n,t)}function U(){return{"null":!0,dom:document.createTextNode("")}}function W(e,n,t){o(t)?e.appendChild(n):e.insertBefore(n,t)}function A(e,n){var t=void 0;return t=n===!0?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function K(e,n,t){if(null===n)return document.createTextNode(e);if(t){if(""!==e)return n.textContent=e,n.firstChild;var r=document.createTextNode("");return n.appendChild(r),r}var o=document.createTextNode(e);return n.appendChild(o),o}function H(e,n,t,r,l,i,a){var s=null,d=e._lastNode;o(d)||(s=e,e=d),L(e);var c=m(n,null,r,l,i,a);n.dom=c,V(t,c,e.dom),null!==s&&(s._lastNode=n)}function V(e,n,t){M(t)?t.replaceWith(n):e.replaceChild(n,t)}function L(e){if(!l(e)&&!r(e)){var t=e.instance,i=null,a=null;o(t)||(i=t.hooks,a=t.children,void 0!==t.render&&(t.componentWillUnmount(),t._unmounted=!0,L(t._lastNode)));var s=e.hooks||i;o(s)||(o(s.willDetach)||s.willDetach(e.dom),o(s.componentWillUnmount)||s.componentWillUnmount(e.dom,s));var d=e.children||a;if(!o(d))if(n(d))for(var c=0;c<d.length;c++)L(d[c]);else L(d)}}function B(){return document.createTextNode("")}function I(e,n){var t=e.dom;t===n?t.innerHTML="":(n.removeChild(t),We&&v(e)),L(e)}function Y(e,n,t){for(var r=n||Object.keys(e),o=0;o<r.length;o++){var l=r[o];t[l]=null}}function G(e,n,t){for(var r=0;r<n.length;r++)e.insertBefore(n[r],t)}function X(){return document.activeElement}function P(e,n){if(We){var t=n.length;if(t>5)for(var r=0;t>r;r++){var o=n[r];l(o)||v(o)}}e.textContent=""}function z(e){null!==e&&e!==document.body&&document.activeElement!==e&&e.focus()}function R(){var e=[],n=document.createTextNode(""),t=null,r={dom:n,childNodes:e,appendChild:function(r){e.push(r),t&&t.insertBefore(r,n)},removeChild:function(n){t&&t.removeChild(n),e.splice(e.indexOf(n),1)},insertBefore:function(n,r){t&&t.insertBefore(n,r),e.splice(e.indexOf(r),0,n)},replaceChild:function(n,r){t.replaceChild(n,r),u(e,r,n)},append:function(r){r.appendChild(n),t=r,G(t,e,n)},insert:function(r,o){r.insertBefore(n,o),t=r,G(t,e,n)},remove:function(){t.removeChild(n);for(var r=0;r<e.length;r++)t.removeChild(e[r]);t=null},replaceWith:function(r){t.replaceChild(r,n);for(var o=0;o<e.length;o++)t.removeChild(e[o]);t=null},getElementsByTagName:null};return Object.defineProperty(r,"parentNode",{get:function(){return t}}),Object.defineProperty(r,"firstChild",{get:function(){return e[0]}}),r}function q(e,n){return n.length&&!o(n[0])&&!o(n[0].key)||e.length&&!o(e[0])&&!o(e[0].key)}function F(e,n){if("option"===e.tag){var t=e.attrs&&e.attrs.value;n[t]?(e.attrs=e.attrs||{},e.attrs.selected="selected",e.dom.selected=!0):e.dom.selected=!1}else for(var r=0,o=e.children.length;o>r;r++)F(e.children[r],n)}function J(e){var t=e.attrs&&e.attrs.value,r={};if(n(t))for(var o=0,l=t.length;l>o;o++)r[t[o]]=t[o];else r[t]=t;for(var i=0,a=e.children.length;a>i;i++)F(e.children[i],r);e.attrs&&e.attrs[t]&&delete e.attrs.value}function Q(e,n){var t=B();return null!==n&&n.appendChild(t),l(e)||(e.dom=t),t}function Z(e,n,t){o(e.created)||e.created(t),o(e.attached)||n.addListener(function(){e.attached(t)})}function $(e){var n=e.attrs.value;o(n)||(e.dom.value=n)}function ee(e,n){if("input"===e){var t=n.attrs.type;if("text"===t)$(n);else if("checkbox"===t||"radio"===t){var r=n.attrs.checked;n.dom.checked=!!r}}else"textarea"===e&&$(n)}function ne(e,t,i,a,s,d,c){var u=t.children,f=e.children;if(f!==u){var h=null;e.domChildren&&(h=t.domChildren=e.domChildren),l(f)?r(u)?ae(i,f,u):o(u)||(n(u)?N(t,u,i,a,s,d,c):m(u,i,a,s,d,c)):l(u)?P(i,f):n(f)?n(u)?null===h&&f.length>1?ve(f,u,i,a,s,d,c):q(f,u)?ve(f,u,i,a,s,d,c):pe(f,u,i,h||(t.domChildren=[]),a,s,d,0,c):pe(f,[u],i,h||[],a,s,d,0):n(u)?pe([f],u,i,h||(t.domChildren=[i.firstChild]),a,s,d,0,c):r(u)?ae(i,f,u):r(f)?de(f,u,i,a,s,d,null,c):de(f,u,i,a,s,d,!0,c)}}function te(e,n,t,r){e&&(a(n)&&delete e.refs[n],a(t)&&(e.refs[t]=r))}function re(e,n,t,r,l){var i=n.events,a=e.events,s=!o(i),d=!o(a);s?d?ue(a,i,t,r,l):S(i,r,l):d&&Y(a,t,l)}function oe(e,n,t,r,l,i){"select"===e.tag&&J(n);var a=n.attrs,s=e.attrs,d=o(a),c=!o(s);if(!d)for(var u=r||Object.keys(a),f=u.length,p=0;f>p;p++){var v=u[p],m=c&&s[v],y=a[v];m!==y&&("ref"===v?te(i,m,y,l):fe(v,m,y,l))}if(c)for(var g=t||Object.keys(s),b=g.length,C=0;b>C;C++){var w=g[C];(d||o(a[w]))&&("ref"===w?te(h(node,i),s[w],null,l):l.removeAttribute(w))}}function le(e,n,r,i,a,s,d,c,u){var f=void 0;i.hasHooks===!0&&(f=n.hooks,f&&!o(f.willUpdate)&&f.willUpdate(e.dom));var h=n.tag||i.tag,p=e.tag||r.tag;if(p!==h)if(r.isComponent===!0){var v=e.instance;i.isComponent===!0?H(e,n,a,s,d,c,!1):t(p)?ie(v._lastNode,n,a,s,d,c,i.isSVG):ie(v,n,a,s,d,c,i.isSVG)}else H(e,n,a,s,d,c,i.isSVG);else if(o(p))n.dom=e.dom;else if(r.isComponent===!0){if(i.isComponent===!0){var y=e.instance;if(!o(y)&&y._unmounted){var g=T(n,p,n.attrs||{},n.hooks,n.children,y,a,s,d);null!==a&&V(a,g,e.dom)}else n.instance=y,n.dom=e.dom,he(!0,n,n.tag,r,i,y,e.attrs||{},n.attrs||{},n.hooks,n.children,a,s,d)}}else{var b=e.dom,C=r.childrenType,w=i.childrenType;if(n.dom=b,i.lazy===!0&&u===!1){var k=e.clipData;if(null===s.scrollY&&s.refresh(),n.clipData=k,(k.pending===!0||k.top-s.scrollY>s.screenHeight)&&ke(k,b,e,n,a,s))return;if(k.bottom<s.scrollY&&ke(k,b,e,n,a,s))return}if(C>0||w>0)if(5===w||5===C)ne(e,n,b,s,d,c);else{var x=e.children,_=n.children;0===C||l(x)?w>2?N(n,_,b,s,d,c):m(_,b,s,d,c):0===w||l(_)?C>2?P(b,x):I(x,b):x!==_&&(4===C&&4===w?ve(x,_,b,s,d,c):2===C&&2===w?de(x,_,b,s,d,c,!0,!1):1===C&&1===w?ae(b,x,_):ne(e,n,b,s,d,c))}if(r.hasAttrs!==!0&&i.hasAttrs!==!0||oe(e,n,r.attrKeys,i.attrKeys,b,c),r.hasEvents!==!0&&i.hasEvents!==!0||re(e,n,r.eventKeys,i.eventKeys,b),r.hasClassName===!0||i.hasClassName===!0){var O=n.className;e.className!==O&&(o(O)?b.removeAttribute("class"):b.className=O)}if(r.hasStyle===!0||i.hasStyle===!0){var S=n.style;e.style!==S&&ce(e.style,S,b)}i.hasHooks!==!0||o(f.didUpdate)||f.didUpdate(b),ee(h,n)}}function ie(e,n,r,l,a,s,d){if(c(n))n.then(function(n){de(e,n,r,l,a,s,null,!1)});else{var u=n.hooks,f=!o(u);f&&!o(u.willUpdate)&&u.willUpdate(e.dom);var h=n.tag||(o(n.bp)?null:n.bp.tag),p=e.tag||(o(e.bp)?null:e.bp.tag);if("svg"===h&&(d=!0),p!==h){var v=e.instance;i(p)?i(h)?H(e,n,r,l,a,s,d):t(p)?ie(v._lastNode,n,r,l,a,s,d):ie(v,n,r,l,a,s,d):H(v||e,n,r,l,a,s,d)}else if(o(p))n.dom=e.dom;else if(i(p)){if(i(h)){var m=e._instance;if(!o(m)&&m._unmounted){var y=T(n,p,n.attrs||{},n.hooks,n.children,m,r,l,a);null!==r&&V(r,y,e.dom)}else n.instance=e.instance,n.dom=e.dom,he(!1,n,n.tag,null,null,n.instance,e.attrs||{},n.attrs||{},n.hooks,n.children,r,l,a)}}else{var g=e.dom,b=n.className,C=n.style;n.dom=g,ne(e,n,g,l,a,s,d),oe(e,n,null,null,g,s),re(e,n,null,null,g),e.className!==b&&(o(b)?g.removeAttribute("class"):g.className=b),e.style!==C&&ce(e.style,C,g),f&&!o(u.didUpdate)&&u.didUpdate(g),ee(h,n)}}}function ae(e,n,t){r(n)?e.firstChild.nodeValue=t:e.textContent=t}function se(e,n,t,r,o,l,i,a){var s=e.bp,d=n.bp;void 0===s||void 0===d?ie(e,n,t,r,o,l,i):le(e,n,s,d,t,r,o,l,a)}function de(e,n,t,i,a,s,d,c){if(null!==d)se(e,n,t,i,a,s,c,!1);else if(l(e))m(n,t,i,a,s,c);else if(l(n))I(e,t);else if(r(e))if(r(n))t.firstChild.nodeValue=n;else{var u=m(n,null,i,a,s,c);n.dom=u,V(t,u,t.firstChild)}else if(r(n)){var f=document.createTextNode(n);V(t,f,e.dom)}else if(o(n.null))se(e,n,t,i,a,s,c,!1);else{var h=void 0;e.dom&&(L(e),h=e.dom),V(t,n.dom,h)}}function ce(e,n,t){if(a(n))t.style.cssText=n;else if(o(e)){if(!o(n))for(var r=Object.keys(n),l=0;l<r.length;l++){var i=r[l],d=n[i];s(d)&&!Be[i]?t.style[i]=d+"px":t.style[i]=d}}else if(o(n))t.removeAttribute("style");else{for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u],h=n[f];s(h)&&!Be[f]?t.style[f]=h+"px":t.style[f]=h}for(var p=Object.keys(e),v=0;v<p.length;v++){var m=p[v];o(n[m])&&(t.style[m]="")}}}function ue(e,n,t,r,l){for(var i=r||Object.keys(n),a=0;a<i.length;a++){var s=i[a],d=e[s],c=n[s];d!==c&&(l[s]=c)}for(var u=t||Object.keys(e),f=0;f<u.length;f++){var h=u[f];o(n[h])&&(l[h]=null)}}function fe(e,n,t,r){if("dangerouslySetInnerHTML"===e){var l=n&&n.__html,i=t&&t.__html;if(o(i))throw new Error("Inferno Error: dangerouslySetInnerHTML requires an object with a __html propety containing the innerHTML content");l!==i&&(r.innerHTML=i)}else if(He[e])r[e]=null===t?"":t;else if(Ve[e])r[e]=!!t;else{var a=Le[e];t===!1||o(t)?void 0!==a?r.removeAttributeNS(a,e):r.removeAttribute(e):void 0!==a?r.setAttributeNS(a,e,t===!0?e:t):r.setAttribute(e,t===!0?e:t)}}function he(n,r,i,a,s,d,c,u,f,h,p,v,m){if(u=e(h,u),t(i)){var y=d.props,g=d.state,b=d.state,C=d.getChildContext();o(C)||(m=Object.assign({},m,C)),d.context=m;var w=d._updateComponent(g,b,y,u);l(w)||w===De||(de(d._lastNode,w,p,v,m,d,null,!1),r.dom=w.dom,d._lastNode=w)}else{var k=!0,x=n&&s.hasHooks===!0||!o(f);if(x&&!o(f.componentShouldUpdate)&&(k=f.componentShouldUpdate(r.dom,c,u)),k!==!1){x&&!o(f.componentWillUpdate)&&f.componentWillUpdate(r.dom,c,u);var N=i(u,m);l(N)||(N.dom=r.dom,de(d,N,p,v,m,null,null,!1),r.instance=N,x&&!o(f.componentDidUpdate)&&f.componentDidUpdate(r.dom,c,u))}}}function pe(e,t,i,a,s,d,c,u,f){var h=void 0===i.append,p=e.length,v=t.length,y=p===v;if(y===!1)if(p>v)for(;p!==v;){var g=e[p-1];l(g)||(i.removeChild(a[p-1+u]),h&&a.splice(p-1+u,1),L(g),p--,e.pop())}else for(;p!==v;){var b=t[p],C=void 0;e.push(b),C=r(b)?document.createTextNode(b):m(b,null,s,d,c,f),l(C)||D(i,C),h&&(1===p&&a.push(i.firstChild),a.splice(p+u,0,C)),p++}for(var w=0;v>w;w++){var k=e[w],x=t[w],N=w+u;if(k===x&&l(k))u--;else if(l(x)){if(!l(k))if(n(k)&&0===k.length)for(var _=0;_<k.length;_++)I(k[_],i);else{var O=a[N];o(O)&&N--,i.removeChild(a[N]),h&&(a.splice(N,1),u--),L(k)}}else if(l(k))if(r(x)){var S=document.createTextNode(x),T=a[N];if(o(T)){var j=a[N+1];D(i,S,j),h&&a.splice(N,1,S)}else D(i,S,T),h&&a.splice(N,0,S)}else{var E=m(x,null,s,d,c,f),M=a[N];if(o(M)){var U=a[N+1];D(i,E,U),h&&a.splice(N,1,E)}else D(i,E,M),h&&a.splice(N,0,E)}else if(r(x))if(1===p)r(k)?void 0===i.getElementsByTagName?i.nodeValue=x:i.firstChild.nodeValue=x:(L(k),i.textContent=x);else{var W=document.createTextNode(x),A=a[N];o(A)?i.nodeValue=W.nodeValue:r(k)?A.nodeValue=x:void 0===A.append?(h&&a.splice(N,1,W),V(i,W,A)):(D(i,W,A.firstChild),A.remove(),a.splice(0,a.length,W)),L(k)}else if(n(x))if(q(k,x))ve(k,x,a[N],s,d,c,f);else if(n(k)){var K=a[N];if(void 0===K.append)if(x.length>1&&1===k.length){var H=R();H.insert(i,K),H.appendChild(K),h&&a.splice(N,1,H),pe(k,x,H,H.childNodes,s,d,c,0,f)}else pe(k,x,i,a,s,d,c,0,f);else pe(k,x,a[N],a[N].childNodes,s,d,c,0,f)}else if(x.length>1){var B=R();B.appendChild(i.firstChild),D(i,B,i.firstChild),h&&a.splice(N,1,B),pe([k],x,B,B.childNodes,s,d,c,w,f)}else pe([k],x,i,a,s,d,c,w,f);else n(k)?pe(k,[x],a,a[N].childNodes,s,d,c,0,f):(de(k,x,i,s,d,c,null,f),a[N]=x.dom)}}function ve(e,n,t,r,o,l,i){for(var a=e.length,s=n.length,d=void 0,c=a-1,u=s-1,f=0,h=0,p=null,v=null,y=null,g=null,b=void 0,C=void 0,w=0,k=void 0,x=void 0;c>=f&&u>=h&&(v=n[h],p=e[f],v.key===p.key);)de(p,v,t,r,o,l,!0,i),h++,f++;for(;c>=f&&u>=h&&(y=n[u],g=e[c],y.key===g.key);)de(g,y,t,r,o,l,!0,i),u--,c--;for(;c>=f&&u>=h&&(y=n[u],p=e[f],y.key===p.key);)C=s>u+1?n[u+1].dom:null,de(p,y,t,r,o,l,!0,i),W(t,y.dom,C),u--,f++;for(;c>=f&&u>=h&&(v=n[h],g=e[c],v.key===g.key);)C=e[f].dom,de(g,v,t,r,o,l,!0,i),W(t,v.dom,C),h++,c--;if(f>c){if(u>=h)for(C=s>u+1?n[u+1].dom:null;u>=h;h++)W(t,m(n[h],null,r,o,l,i),C)}else if(h>u)for(;c>=f;)I(e[f++],t);else{var N=c-f+1,_=u-h+1,O=new Array(_);for(d=0;_>d;d++)O[d]=-1;var S=!1,T=0;if(16>=N*_)for(d=f;c>=d;d++){var j=!0;for(g=e[d],b=h;u>=b;b++)if(y=n[b],g.key===y.key){O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i),j=!1;break}j&&(I(g,t),T++)}else{var E=new Map;for(d=h;u>=d;d++)x=n[d],E.set(x.key,d);for(d=c;d>=f;d--)g=e[d],b=E.get(g.key),void 0===b?(I(g,t),T++):(y=n[b],O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i))}if(S){var M=me(O);for(b=M.length-1,d=_-1;d>=0;d--)-1===O[d]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C)):0>b||d!==M[b]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,n[k].dom,C)):b--}else if(N-T!==_)for(d=_-1;d>=0;d--)-1===O[d]&&(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C))}}function me(e){var n=e.slice(0),t=[];t.push(0);var r=void 0,o=void 0,l=void 0,i=void 0,a=void 0;for(r=0;r<e.length;r++)if(-1!==e[r])if(o=t[t.length-1],e[o]<e[r])n[r]=o,t.push(r);else{for(l=0,i=t.length-1;i>l;)a=(l+i)/2|0,e[t[a]]<e[r]?l=a+1:i=a;e[r]<e[t[l]]&&(l>0&&(n[r]=t[l-1]),t[l]=r)}for(l=t.length,i=t[l-1];l-- >0;)t[l]=i,i=n[i];return t}function ye(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=Ye,this.screenWidth=Ie}function ge(e,n,t){n.addListener(function(){var r=t.getBoundingClientRect();null===n.scrollY&&n.refresh(),e.clipData={top:r.top+n.scrollY,left:r.left+n.scrollX,bottom:r.bottom+n.scrollY,right:r.right+n.scrollX,pending:!1}})}function be(e){se(e.lastNode,e.nextNode,e.parentDom,e.lifecycle,null,null,!1,!0),e.clipData.pending=!1}function Ce(){Re=!0,setTimeout(we,100)}function we(){ze.forEach(be),ze.clear(),Re=!1}function ke(e,n,t,r,o,l){if(performance.now()>Pe+2e3){var i=ze.get(n);return void 0===i?ze.set(n,{lastNode:t,nextNode:r,parentDom:o,clipData:e,lifecycle:l}):i.nextNode=r,e.pending=!0,Re===!1&&Ce(),!0}return we(),!1}function xe(e,n,t,o,l,i,a){if(r(e))if(3===n.nodeType&&""!==e)n.nodeValue=e;else{var s=document.createTextNode(e);V(o,s,n),t.splice(t.indexOf(n),1,s)}else Oe(e,n,o,l,i,a,!1)}function Ne(e){for(var n=[],t=e.childNodes,r=t.length,o=0;r>o;){var l=t[o];8===l.nodeType?(e.removeChild(l),r--):(n.push(l),o++)}return n}function _e(n,r,i,a,s,d,c,u,f,h,p){if(i=e(s,i),!t(r)){var v=n.instance=r(i);return o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(d,i)})),Oe(v,d,c,u,f,v,p)}var m=n.instance=new r(i);m._patch=de,!o(h)&&i.ref&&O(h,i.ref,m);var y=m.getChildContext();o(y)||(f=Object.assign({},f,y)),m.context=f,m._unmounted=!1,m._parentNode=n,h&&(m._parentComponent=h),m._pendingSetState=!0,m.componentWillMount();var g=m.render();m._pendingSetState=!1,l(g)?m._lastNode=U():(Oe(g,d,c,u,f,m,p),m._lastNode=g,m.componentDidMount())}function Oe(e,t,l,a,s,d,c){var u=e.bp,f=e.tag||u.tag;if(i(f))e.dom=t,_e(e,f,e.attrs||{},e.hooks,e.children,t,l,a,s,d,c);else if(1!==t.nodeType||f!==t.tagName.toLowerCase());else{e.dom=t;var h=e.hooks;u.hasHooks!==!0&&o(h)||Z(h,a,t);var p=e.children;if(!o(p))if(r(p))t.textContent!==p&&(t.textContent=p);else{var v=Ne(t);if(n(p)){if(e.domChildren=v,v.length===p.length)for(var m=0;m<p.length;m++)xe(p[m],v[m],v,t,a,s,d)}else 1===v.length&&xe(p,v[0],v,t,a,s,d)}var C=e.className,w=e.style;if(o(C)||(t.className=C),o(w)||ce(null,w,t),u&&u.hasAttrs===!0)g(e,u,t,d);else{var k=e.attrs;o(k)||(y(e),j(e,k,Object.keys(k),t,d))}if(u&&u.hasEvents===!0)b(e,u,t);else{var x=e.events;o(x)||S(x,Object.keys(x),t)}}}function Se(e,n,t){if(n&&1===n.nodeType){var r=n.querySelector("[data-infernoroot]");if(r&&r.parentNode===n)return Oe(e,r,n,t,{},!0),!0}return n!==qe?n.textContent="":console.warn('Inferno Warning: rendering to the "document.body" is dangerous! Use a dedicated container element instead.'),!1}function Te(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t.dom===e)return t}return null}function je(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t===e)return void Fe.splice(n,1)}}function Ee(e,n){var t=Te(n),r=new ye;if(d(t)){Se(e,n,r)||m(e,n,r,{},null,!1),r.trigger(),Fe.push({node:e,dom:n})}else{var o=X();de(t.node,e,n,r,{},null,null,!1),r.trigger(),null===e&&je(t),t.node=e,z(o)}}var Me={};Me.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},Me.classCallCheck=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},Me.createClass=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),Me.inherits=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},Me.possibleConstructorReturn=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n};var De="NO_RENDER",Ue="undefined"!=typeof window&&window.document,We=!0,Ae="http://www.w3.org/1999/xlink",Ke="http://www.w3.org/XML/1998/namespace",He={},Ve={},Le={},Be={};E("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",Le,Ae),E("xml:base,xml:lang,xml:space",Le,Ke),E("volume,value",He,!0),E("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",Ve,!0),E("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",Be,!0);var Ie=Ue&&window.screen.width,Ye=Ue&&window.screen.height,Ge=0,Xe=0,Pe=0;Ue&&(window.onscroll=function(e){Ge=window.scrollX,Xe=window.scrollY,Pe=performance.now()},window.resize=function(e){Ge=window.scrollX,Xe=window.scrollY,Ie=window.screen.width,Ye=window.screen.height,Pe=performance.now()}),ye.prototype={refresh:function(){this.scrollX=Ue&&window.scrollX,this.scrollY=Ue&&window.scrollY},addListener:function(e){this._listeners.push(e)},trigger:function(){for(var e=0;e<this._listeners.length;e++)this._listeners[e]()}};var ze=new Map,Re=!1,qe=document.body,Fe=[],Je={render:Ee};return Je});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoDOM=n()}(this,function(){"use strict";function e(e,t){if(!o(e)){var r=n(e);(r&&e.length>0||!r)&&(t=t?Object.assign({},t,{children:e}):{children:e})}return t}function n(e){return e instanceof Array}function t(e){return void 0!==e.prototype.render}function r(e){return a(e)||s(e)}function o(e){return u(e)||c(e)}function l(e){return c(e)||e===!1||e===!0||u(e)}function i(e){return"function"==typeof e}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function c(e){return null===e}function u(e){return void 0===e}function d(e,t){if(!l(e))if(n(e))for(var r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(o===t)return!0;if(o.children)return d(o.children,t)}}else{if(e===t)return!0;if(e.children)return d(e.children,t)}return!1}function f(e,n){var t=n.props.children;return d(t,e)?f(e,n._parentComponent):n}function m(e,n,t,r,l){if(void 0!==n){var i=e.key,a=null===i?n.pools.nonKeyed:n.pools.keyed[i];if(!o(a)){var s=a.pop();if(!o(s))return he(s,e,null,t,r,l,!0,n.isSVG),e.dom}}return null}function v(e){var n=e.bp;if(!o(n)){var t=e.key,r=n.pools;if(null===t){var l=r.nonKeyed;l&&l.push(e)}else{var i=r.keyed;(i[t]||(i[t]=[])).push(e)}return!0}return!1}function p(e){this.text=e,this.dom=null}function h(){this.placeholder=!0,this.dom=null}function g(e){this.dom=null,this.pointer=null,this.items=e}function y(e){return new p(e)}function w(){return new h}function k(e){return new g(e)}function x(e,n,t,r,o,l){if(G(e))return C(e,n);if(V(e))return N(e,n);if(I(e))return b(e,n,t,r,o,l);var i=e.bp;if(Ye&&i){var a=m(e,i,t,r,o);if(null!==a)return null!==n&&n.appendChild(a),a}return void 0===i?D(e,n,t,r,o,l):M(e,i,n,t,r,o)}function b(e,n,t,r,o,l){var i=e.items,a=document.createTextNode(""),s=document.createDocumentFragment();return j(i,s,t,r,o,l),e.pointer=a,e.dom=s,s.appendChild(a),n&&Y(n,s),s}function N(e,n){var t=document.createTextNode(e.text);return e.dom=t,n&&Y(n,t),t}function C(e,n){var t=document.createTextNode("");return e.dom=t,n&&Y(n,t),t}function _(e){"select"===e.tag&&oe(e)}function O(e,n,t,r){_(e);var o=e.attrs;if(null===n.attrKeys){var l=Object.keys(o);n.attrKeys=n.attrKeys?n.attrKeys.concat(l):l}var i=n.attrKeys;K(e,o,i,t,r)}function S(e,n,t){var r=e.events;null===n.eventKeys&&(n.eventKeys=Object.keys(r));var o=n.eventKeys;W(r,o,t)}function M(e,n,t,r,o,l){var i=e.tag;if(n.isComponent===!0)return A(e,i,e.attrs||{},e.hooks,e.children,l,t,r,o);var a=z(n.tag,n.isSVG);switch(e.dom=a,n.hasHooks===!0&&le(e.hooks,r,a),n.lazy===!0&&Me(e,r,a),n.childrenType){case 1:F(e.children,a,!0);break;case 2:x(e.children,a,r,o,l);break;case 3:j(e.children,a,r,o,l);break;case 4:T(e.children,a,r,o,l);break;case 5:U(e,e.children,a,r,o,l)}return n.hasAttrs===!0&&O(e,n,a,l),n.hasClassName===!0&&(a.className=e.className),n.hasStyle===!0&&ge(null,e.style,a),n.hasEvents===!0&&S(e,n,a),null!==t&&t.appendChild(a),a}function D(e,n,t,r,s,u){var d=e.tag;if(i(d))return A(e,d,e.attrs||{},e.hooks,e.children,s,n,t,r);if(!a(d)||""===d)throw Error("Inferno Error: Expected function or string for element tag type");"svg"===d&&(u=!0);var f=z(d,u),m=e.children,v=e.attrs,p=e.events,h=e.hooks,g=e.className,y=e.style;return e.dom=f,o(h)||le(h,t,f),l(m)||U(e,m,f,t,r,s,u),o(v)||(_(e),K(e,v,Object.keys(v),f,s)),o(g)||(f.className=g),o(y)||ge(null,y,f),o(p)||W(p,Object.keys(p),f),c(n)||n.appendChild(f),f}function T(e,n,t,r,o){for(var l=0;l<e.length;l++)x(e[l],n,t,r,o)}function j(e,t,o,i,a,s){e.complex=!1;for(var c=0;c<e.length;c++){var u=e[c];if(r(u)){var d=y(u);e[c]=d,N(d,t),e.complex=!0}else if(l(u)){var f=w();e[c]=f,C(f,t),e.complex=!0}else if(n(u)){var m=k(u);e[c]=m,b(m,t,o,i,a,s),e.complex=!0}else V(u)?(N(u,t),e.complex=!0):G(u)?(C(u,t),e.complex=!0):I(u)?(b(u,t,o,i,a,s),e.complex=!0):x(u,t,o,i,a,s)}}function U(e,t,o,i,a,s,c){n(t)?j(t,o,i,a,s,c):r(t)?F(t,o,!0):l(t)||x(t,o,i,a,s,c)}function E(e,n,t){!l(e)&&a(n)&&(e.refs[n]=t)}function W(e,n,t){for(var r=0;r<n.length;r++){var o=n[r];t[o]=e[o]}}function A(n,r,i,a,s,c,u,d,f){i=e(s,i);var m;if(t(r)){var v=new r(i);v._patch=he,v._componentToDOMNodeMap=on,!o(c)&&i.ref&&E(c,i.ref,v);var p=v.getChildContext();o(p)||(f=Object.assign({},f,p)),v.context=f,v._unmounted=!1,v._parentNode=n,c&&(v._parentComponent=c),v._pendingSetState=!0,v.componentWillMount();var h=v.render();l(h)&&(h=w()),v._pendingSetState=!1,m=x(h,null,d,f,v,!1),v._lastNode=h,v.componentDidMount(),null===u||l(m)||u.appendChild(m),on.set(v,m),n.dom=m,n.instance=v}else{o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||d.addListener(function(){a.componentDidMount(m,i)}));var g=r(i,f);l(g)&&(g=w()),m=x(g,null,d,f,null,!1),n.instance=g,null===u||l(m)||u.appendChild(m),n.dom=m}return m}function K(e,n,t,r,o){for(var l=0;l<t.length;l++){var i=t[l];"ref"===i?E(f(e,o),n[i],r):we(i,null,n[i],r)}}function H(e,n,t){var r=e.items,o=r.length,l=r.pointer;if(o>0)for(var i=0;i<o;i++){var a=r[i];I(a)?H(a,n,!0):(Q(n,a.dom),B(a))}t&&Q(n,l)}function L(e,n,t){e.split(",").forEach(function(e){return n[e]=t})}function V(e){return void 0!==e.text}function G(e){return e.placeholder===!0}function I(e){return void 0!==e.items}function Y(e,n,t){o(t)?e.appendChild(n):e.insertBefore(n,t)}function X(e,n,t){var r=n.pointer;H(n,e,!1),q(e,t,r)}function z(e,n){var t;return t=n===!0?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function F(e,n,t){if(null===n)return document.createTextNode(e);if(t){if(""!==e)return n.textContent=e,n.firstChild;var r=document.createTextNode("");return n.appendChild(r),r}var o=document.createTextNode(e);return n.appendChild(o),o}function R(e,n,t,r,l,i,a){var s=null,c=e._lastNode;o(c)||(s=e,e=c),B(e);var u=x(n,null,r,l,i,a);n.dom=u,q(t,u,e.dom),null!==s&&(s._lastNode=n)}function q(e,n,t){e.replaceChild(n,t)}function B(e,t){if(I(e))for(var i=e.items,a=0;a<i.length;a++)B(i[a]);else if(!(V(e)||G(e)||l(e)||r(e))){var s=e.instance,c=null,u=null;o(s)||(c=s.hooks,u=s.children,void 0!==s.render&&(s.componentWillUnmount(),s._unmounted=!0,on.delete(s),!t&&B(s._lastNode)));var d=e.hooks||c;o(d)||(o(d.willDetach)||d.willDetach(e.dom),o(d.componentWillUnmount)||d.componentWillUnmount(e.dom,d));var f=(o(s)?e.children:null)||u;if(!o(f))if(n(f))for(var m=0;m<f.length;m++)B(f[m]);else B(f)}}function P(e,t){var o=e[t];return r(o)&&(o=e[t]=y(o)),l(o)&&(o=e[t]=w()),n(o)&&(o=e[t]=k(o)),o}function J(e,n){var t=e.dom;t===n?t.innerHTML="":(n.removeChild(t),Ye&&v(e)),B(e)}function Q(e,n){e.removeChild(n)}function Z(e,n,t){for(var r=n||Object.keys(e),o=0;o<r.length;o++){var l=r[o];t[l]=null}}function $(){return document.activeElement}function ee(e,n){if(Ye){var t=n.length;if(t>5)for(var r=0;r<t;r++){var o=n[r];l(o)||v(o)}}e.textContent=""}function ne(e){null!==e&&e!==document.body&&document.activeElement!==e&&e.focus()}function te(e,n){return!e.complex&&(n.length&&!o(n[0])&&!o(n[0].key)&&e.length&&!o(e[0])&&!o(e[0].key))}function re(e,n){if("option"===e.tag){var t=e.attrs&&e.attrs.value;n[t]?(e.attrs=e.attrs||{},e.attrs.selected="selected",e.dom.selected=!0):e.dom.selected=!1}else for(var r=0,o=e.children.length;r<o;r++)re(e.children[r],n)}function oe(e){var t=e.attrs&&e.attrs.value,r={};if(n(t))for(var o=0,l=t.length;o<l;o++)r[t[o]]=t[o];else r[t]=t;for(var i=0,a=e.children.length;i<a;i++)re(e.children[i],r);e.attrs&&e.attrs[t]&&delete e.attrs.value}function le(e,n,t){o(e.created)||e.created(t),o(e.attached)||n.addListener(function(){e.attached(t)})}function ie(e){var n=e.attrs.value;o(n)||(e.dom.value=n)}function ae(e,n){if("input"===e){var t=n.attrs.type;if("text"===t)ie(n);else if("checkbox"===t||"radio"===t){var r=n.attrs.checked;n.dom.checked=!!r}}else"textarea"===e&&ie(n)}function se(e,t,o,i,a,s,c){var u=t.children,d=e.children;if(d!==u)if(l(d))r(u)?ve(o,d,u):l(u)||(n(u)?j(u,o,i,a,s,c):x(u,o,i,a,s,c));else if(l(u))ee(o,d);else if(n(d))n(u)?(u.complex=d.complex,te(d,u)?_e(d,u,o,i,a,s,c,null):be(d,u,o,i,a,s,c,null)):be(d,[u],o,i,a,s,c,null);else if(n(u)){var f=d;r(d)&&(f=y(f),f.dom=o.firstChild),be([f],u,o,i,a,s,c,null)}else r(u)?ve(o,d,u):r(d)?he(d,u,o,i,a,s,null,c):he(d,u,o,i,a,s,!0,c)}function ce(e,n,t,r){e&&(a(n)&&delete e.refs[n],a(t)&&(e.refs[t]=r))}function ue(e,n,t,r,l){var i=n.events,a=e.events,s=!o(i),c=!o(a);s?c?ye(a,i,t,r,l):W(i,r,l):c&&Z(a,t,l)}function de(e,n,t,r,l,i){"select"===e.tag&&oe(n);var a=n.attrs,s=e.attrs,c=o(a),u=!o(s);if(!c)for(var d=r||Object.keys(a),m=d.length,v=0;v<m;v++){var p=d[v],h=u&&s[p],g=a[p];h!==g&&("ref"===p?ce(i,h,g,l):we(p,h,g,l))}if(u)for(var y=t||Object.keys(s),w=y.length,k=0;k<w;k++){var x=y[k];(c||o(a[x]))&&("ref"===x?ce(f(node,i),s[x],null,l):l.removeAttribute(x))}}function fe(e,n,r,i,a,s,c,u,d){var f;i.hasHooks===!0&&(f=n.hooks,f&&!o(f.willUpdate)&&f.willUpdate(e.dom));var m=n.tag||i.tag,v=e.tag||r.tag;if(v!==m)if(r.isComponent===!0){var p=e.instance;i.isComponent===!0?R(e,n,a,s,c,u,!1):t(v)?(B(e,!0),me(p._lastNode,n,a,s,c,u,i.isSVG)):(B(e,!0),me(p,n,a,s,c,u,i.isSVG))}else R(e,n,a,s,c,u,i.isSVG);else if(o(v))n.dom=e.dom;else if(r.isComponent===!0){if(i.isComponent===!0){var h=e.instance;if(!o(h)&&h._unmounted){var g=A(n,v,n.attrs||{},n.hooks,n.children,h,a,s,c);null!==a&&q(a,g,e.dom)}else n.instance=h,n.dom=e.dom,ke(!0,n,n.tag,r,i,h,e.attrs||{},n.attrs||{},n.hooks,n.children,a,s,c)}}else{var y=e.dom,w=r.childrenType,k=i.childrenType;if(n.dom=y,i.lazy===!0&&d===!1){var b=e.clipData;if(null===s.scrollY&&s.refresh(),n.clipData=b,(b.pending===!0||b.top-s.scrollY>s.screenHeight)&&Ue(b,y,e,n,a,s))return;if(b.bottom<s.scrollY&&Ue(b,y,e,n,a,s))return}if(w>0||k>0)if(5===k||5===w)se(e,n,y,s,c,u);else{var N=e.children,C=n.children;0===w||l(N)?k>2?j(C,y,s,c,u):x(C,y,s,c,u):0===k||l(C)?w>2?ee(y,N):J(N,y):N!==C&&(4===w&&4===k?_e(N,C,y,s,c,u,i.isSVG,null):2===w&&2===k?he(N,C,y,s,c,u,!0,i.isSVG):1===w&&1===k?ve(y,N,C):se(e,n,y,s,c,u,i.isSVG))}if(r.hasAttrs!==!0&&i.hasAttrs!==!0||de(e,n,r.attrKeys,i.attrKeys,y,u),r.hasEvents!==!0&&i.hasEvents!==!0||ue(e,n,r.eventKeys,i.eventKeys,y),r.hasClassName===!0||i.hasClassName===!0){var _=n.className;e.className!==_&&(o(_)?y.removeAttribute("class"):y.className=_)}if(r.hasStyle===!0||i.hasStyle===!0){var O=n.style;e.style!==O&&ge(e.style,O,y)}i.hasHooks!==!0||o(f.didUpdate)||f.didUpdate(y),ae(m,n)}}function me(e,n,r,l,a,s,c){var u=n.hooks,d=!o(u);d&&!o(u.willUpdate)&&u.willUpdate(e.dom);var f=n.tag||(o(n.bp)?null:n.bp.tag),m=e.tag||(o(e.bp)?null:e.bp.tag);if("svg"===f&&(c=!0),m!==f){var v=e.instance;i(m)?i(f)?R(e,n,r,l,a,s,c):t(m)?(B(e,!0),me(v._lastNode,n,r,l,a,s,c)):(B(e,!0),me(v,n,r,l,a,s,c)):R(v||e,n,r,l,a,s,c)}else if(o(m))n.dom=e.dom;else if(i(m)){if(i(f)){var p=e._instance;if(!o(p)&&p._unmounted){var h=A(n,m,n.attrs||{},n.hooks,n.children,p,r,l,a);null!==r&&q(r,h,e.dom)}else n.instance=e.instance,n.dom=e.dom,ke(!1,n,n.tag,null,null,n.instance,e.attrs||{},n.attrs||{},n.hooks,n.children,r,l,a)}}else{var g=e.dom,y=n.className,w=n.style;n.dom=g,se(e,n,g,l,a,s,c),de(e,n,null,null,g,s),ue(e,n,null,null,g),e.className!==y&&(o(y)?g.removeAttribute("class"):g.className=y),e.style!==w&&ge(e.style,w,g),d&&!o(u.didUpdate)&&u.didUpdate(g),ae(f,n)}}function ve(e,n,t){r(n)?e.firstChild.nodeValue=t:e.textContent=t}function pe(e,n,t,r,o,l,i,a){var s=e.bp,c=n.bp;void 0===s||void 0===c?me(e,n,t,r,o,l,i):fe(e,n,s,c,t,r,o,l,a)}function he(e,n,t,o,i,a,s,c){if(null!==s)pe(e,n,t,o,i,a,c,!1);else if(l(e))x(n,t,o,i,a,c);else if(l(n))J(e,t);else if(r(e))if(r(n))t.firstChild.nodeValue=n;else{var u=x(n,null,o,i,a,c);n.dom=u,q(t,u,t.firstChild)}else if(r(n)){var d=document.createTextNode(n);q(t,d,e.dom)}else pe(e,n,t,o,i,a,c,!1)}function ge(e,n,t){if(a(n))t.style.cssText=n;else if(o(e)){if(!o(n))for(var r=Object.keys(n),l=0;l<r.length;l++){var i=r[l],c=n[i];s(c)&&!Be[i]?t.style[i]=c+"px":t.style[i]=c}}else if(o(n))t.removeAttribute("style");else{for(var u=Object.keys(n),d=0;d<u.length;d++){var f=u[d],m=n[f];s(m)&&!Be[f]?t.style[f]=m+"px":t.style[f]=m}for(var v=Object.keys(e),p=0;p<v.length;p++){var h=v[p];o(n[h])&&(t.style[h]="")}}}function ye(e,n,t,r,l){for(var i=r||Object.keys(n),a=0;a<i.length;a++){var s=i[a],c=e[s],u=n[s];c!==u&&(l[s]=u)}for(var d=t||Object.keys(e),f=0;f<d.length;f++){var m=d[f];o(n[m])&&(l[m]=null)}}function we(e,n,t,r){if("dangerouslySetInnerHTML"===e){var l=n&&n.__html,i=t&&t.__html;if(o(i))throw new Error("Inferno Error: dangerouslySetInnerHTML requires an object with a __html propety containing the innerHTML content");l!==i&&(r.innerHTML=i)}else if(Fe[e])r[e]=null===t?"":t;else if(Re[e])r[e]=!!t;else{var a=qe[e];t===!1||o(t)?void 0!==a?r.removeAttributeNS(a,e):r.removeAttribute(e):void 0!==a?r.setAttributeNS(a,e,t===!0?e:t):r.setAttribute(e,t===!0?e:t)}}function ke(n,r,i,a,s,c,u,d,f,m,v,p,h){if(d=e(m,d),t(i)){var g=c.props,y=c.state,k=c.state,x=c.getChildContext();o(x)||(h=Object.assign({},h,x)),c.context=h;var b=c._updateComponent(y,k,g,d);b===Ge?b=c._lastNode:o(b)&&(b=w()),he(c._lastNode,b,v,p,h,c,null,!1),r.dom=b.dom,c._lastNode=b,on.set(c,b.dom)}else{var N=!0,C=n&&s.hasHooks===!0||!o(f);if(C&&!o(f.componentShouldUpdate)&&(N=f.componentShouldUpdate(r.dom,u,d)),N!==!1){C&&!o(f.componentWillUpdate)&&f.componentWillUpdate(r.dom,u,d);var _=i(d,h);l(_)&&(_=w()),_.dom=r.dom,he(c,_,v,p,h,null,null,!1),r.instance=_,C&&!o(f.componentDidUpdate)&&f.componentDidUpdate(r.dom,u,d)}}}function xe(e,n,t,r,o,l,i){var a=e.items,s=n.items,c=e.pointer;n.dom=e.dom,n.pointer=c,!a!==s&&(te(a,s)?_e(a,s,t,r,o,l,i,n):be(a,s,t,r,o,l,i,n))}function be(e,n,t,r,o,i,a,s){for(var c=e.length,u=n.length,d=c>u?u:c,f=0;f<d;f++){var m=e[f],v=P(n,f);m!==v&&(I(v)?I(m)?xe(m,v,t,r,o,i,a):(q(t,b(v,null),m.dom),B(m)):I(m)?X(t,m,x(v,null,r,o,i,a)):G(v)?G(m)?Ne(m,v):(q(t,C(v,null),m.dom),B(m)):G(m)?q(t,x(v,null,r,o,i,a),m.dom):V(v)?V(m)?Ce(m,v):(q(t,N(v,null),m.dom),B(m)):V(m)?q(t,x(v,null,r,o,i,a),m.dom):he(m,v,t,r,o,i,!1,a))}if(c<u)for(f=d;f<u;f++){var p,h=P(n,f);p=V(h)?N(h,null):x(h,null,r,o,i,a),l(p)||Y(t,p,s&&s.pointer)}else if(c>u)for(f=d;f<c;f++){var g=e[f];Q(t,g.dom),B(g)}}function Ne(e,n){n.dom=e.dom}function Ce(e,n){var t=n.text,r=e.dom;n.dom=r,e.text!==t&&(r.nodeValue=t)}function _e(e,n,t,r,o,l,i,a){for(var s,c,u,d,f,m=e.length,v=n.length,p=m-1,h=v-1,g=0,y=0,w=null,k=null,b=null,N=null,C=0;g<=p&&y<=h&&(k=n[y],w=e[g],k.key===w.key);)he(w,k,t,r,o,l,!0,i),y++,g++;for(;g<=p&&y<=h&&(b=n[h],N=e[p],b.key===N.key);)he(N,b,t,r,o,l,!0,i),h--,p--;for(;g<=p&&y<=h&&(b=n[h],w=e[g],b.key===w.key);)u=h+1<v?n[h+1].dom:null,he(w,b,t,r,o,l,!0,i),Y(t,b.dom,u),h--,g++;for(;g<=p&&y<=h&&(k=n[y],N=e[p],k.key===N.key);)u=e[g].dom,he(N,k,t,r,o,l,!0,i),Y(t,k.dom,u),y++,p--;if(g>p){if(y<=h)for(u=h+1<v?n[h+1].dom:a&&a.pointer;y<=h;y++)Y(t,x(n[y],null,r,o,l,i),u)}else if(y>h)for(;g<=p;)J(e[g++],t);else{var _=p-g+1,O=h-y+1,S=new Array(O);for(s=0;s<O;s++)S[s]=-1;var M=!1,D=0;if(_*O<=16)for(s=g;s<=p;s++){var T=!0;for(N=e[s],c=y;c<=h;c++)if(b=n[c],N.key===b.key){S[c-y]=s,C>c?M=!0:C=c,he(N,b,t,r,o,l,!0,i),T=!1;break}T&&(J(N,t),D++)}else{var j=new Map;for(s=y;s<=h;s++)f=n[s],j.set(f.key,s);for(s=p;s>=g;s--)N=e[s],c=j.get(N.key),void 0===c?(J(N,t),D++):(b=n[c],S[c-y]=s,C>c?M=!0:C=c,he(N,b,t,r,o,l,!0,i))}if(M){var U=Oe(S);for(c=U.length-1,s=O-1;s>=0;s--)S[s]===-1?(d=s+y,u=d+1<v?n[d+1].dom:a&&a.pointer,Y(t,x(n[d],null,r,o,l,i),u)):c<0||s!==U[c]?(d=s+y,u=d+1<v?n[d+1].dom:a&&a.pointer,Y(t,n[d].dom,u)):c--}else if(_-D!==O)for(s=O-1;s>=0;s--)S[s]===-1&&(d=s+y,u=d+1<v?n[d+1].dom:a&&a.pointer,Y(t,x(n[d],null,r,o,l,i),u))}}function Oe(e){var n=e.slice(0),t=[];t.push(0);var r,o,l,i,a;for(r=0;r<e.length;r++)if(e[r]!==-1)if(o=t[t.length-1],e[o]<e[r])n[r]=o,t.push(r);else{for(l=0,i=t.length-1;l<i;)a=(l+i)/2|0,e[t[a]]<e[r]?l=a+1:i=a;e[r]<e[t[l]]&&(l>0&&(n[r]=t[l-1]),t[l]=r)}for(l=t.length,i=t[l-1];l-- >0;)t[l]=i,i=n[i];return t}function Se(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=Je,this.screenWidth=Pe}function Me(e,n,t){n.addListener(function(){var r=t.getBoundingClientRect();null===n.scrollY&&n.refresh(),e.clipData={top:r.top+n.scrollY,left:r.left+n.scrollX,bottom:r.bottom+n.scrollY,right:r.right+n.scrollX,pending:!1}})}function De(e){pe(e.lastNode,e.nextNode,e.parentDom,e.lifecycle,null,null,!1,!0),e.clipData.pending=!1}function Te(){nn=!0,setTimeout(je,100)}function je(){en.forEach(De),en.clear(),nn=!1}function Ue(e,n,t,r,o,l){if(performance.now()>$e+2e3){var i=en.get(n);return void 0===i?en.set(n,{lastNode:t,nextNode:r,parentDom:o,clipData:e,lifecycle:l}):i.nextNode=r,e.pending=!0,nn===!1&&Te(),!0}return je(),!1}function Ee(e,n,t,r,o,l,i){var a=n[t.i];if(V(e)){var s=e.text;if(e.dom=a,3===a.nodeType&&""!==s)a.nodeValue=s;else{var c=N(s);q(r,c,a),n.splice(n.indexOf(a),1,c),e.dom=c}}else if(G(e))e.dom=a;else if(I(e)){var u=e.items;e.dom=document.createDocumentFragment();for(var d=0;d<u.length;d++){var f=Ee(P(u,d),n,t,r,o,l,i);if(f)return!0}var m=n[t.i++];if(!m||3!==m.nodeType)return!0;e.pointer=m}else{var v=Ke(e,a,r,o,l,i,!1);if(v)return!0}t.i++}function We(e){for(var n=[],t=e.childNodes,r=t.length,o=0;o<r;){var l=t[o];if(8===l.nodeType)if("!"===l.data){var i=document.createTextNode("");e.replaceChild(i,l),n.push(i),o++}else e.removeChild(l),r--;else n.push(l),o++}return n}function Ae(n,r,i,a,s,c,u,d,f,m,v){if(i=e(s,i),!t(r)){var p=n.instance=r(i);return o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||d.addListener(function(){a.componentDidMount(c,i)})),Ke(p,c,u,d,f,p,v)}var h=n.instance=new r(i);h._patch=he,!o(m)&&i.ref&&E(m,i.ref,h);var g=h.getChildContext();o(g)||(f=Object.assign({},f,g)),h.context=f,h._unmounted=!1,h._parentNode=n,m&&(h._parentComponent=m),h._pendingSetState=!0,h.componentWillMount();var y=h.render();h._pendingSetState=!1,l(y)&&(y=w()),Ke(y,c,u,d,f,h,v),h._lastNode=y,h.componentDidMount()}function Ke(e,t,l,a,s,c,u){var d=e.bp,f=e.tag||d.tag;if(i(f))e.dom=t,Ae(e,f,e.attrs||{},e.hooks,e.children,t,l,a,s,c,u);else if(1!==t.nodeType||f!==t.tagName.toLowerCase());else{e.dom=t;var m=e.hooks;(d&&d.hasHooks===!0||!o(m))&&le(m,a,t);var v=e.children;if(!o(v))if(r(v))t.textContent!==v&&(t.textContent=v);else{var p=We(t),h={i:0},g=!1;if(n(v))for(var y=0;y<v.length&&!(g=Ee(P(v,y),p,h,t,a,s,c));y++);else g=1!==p.length||Ee(v,p,h,t,a,s,c)}var w=e.className,k=e.style;if(o(w)||(t.className=w),o(k)||ge(null,k,t),d&&d.hasAttrs===!0)O(e,d,t,c);else{var x=e.attrs;o(x)||(_(e),K(e,x,Object.keys(x),t,c))}if(d&&d.hasEvents===!0)S(e,d,t);else{var b=e.events;o(b)||W(b,Object.keys(b),t)}}}function He(e,n,t){if(n&&1===n.nodeType){var r=n.querySelector("[data-infernoroot]");if(r&&r.parentNode===n)return Ke(e,r,n,t,{},!0),!0}return n!==tn?n.textContent="":console.warn('Inferno Warning: rendering to the "document.body" is dangerous! Use a dedicated container element instead.'),!1}function Le(e){return on.get(e)||null}function Ve(e,n){var t=rn.get(n),r=new Se;if(u(t))l(e)||(He(e,n,r)||x(e,n,r,{},null,!1),r.trigger(),rn.set(n,{input:e}));else{var o=$();he(t.input,e,n,r,{},null,null,!1),r.trigger(),c(e)&&rn.delete(n),t.input=e,ne(o)}}var Ge="NO_RENDER",Ie="undefined"!=typeof window&&window.document,Ye=!0,Xe="http://www.w3.org/1999/xlink",ze="http://www.w3.org/XML/1998/namespace",Fe={},Re={},qe={},Be={};L("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",qe,Xe),L("xml:base,xml:lang,xml:space",qe,ze),L("volume,value",Fe,!0),L("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",Re,!0),L("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",Be,!0);var Pe=Ie&&window.screen.width,Je=Ie&&window.screen.height,Qe=0,Ze=0,$e=0;Ie&&(window.onscroll=function(){Qe=window.scrollX,Ze=window.scrollY,$e=performance.now()},window.resize=function(){Qe=window.scrollX,Ze=window.scrollY,Pe=window.screen.width,Je=window.screen.height,$e=performance.now()}),Se.prototype={refresh:function(){this.scrollX=Ie&&window.scrollX,this.scrollY=Ie&&window.scrollY},addListener:function(e){this._listeners.push(e)},trigger:function(){for(var e=this,n=0;n<this._listeners.length;n++)e._listeners[n]()}};var en=new Map,nn=!1,tn=document.body,rn=new Map,on=new Map,ln={render:Ve,findDOMNode:Le};return ln});
/*!
* inferno-router v0.7.13
* inferno-router v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
var NO_RENDER = 'NO_RENDER';

@@ -80,3 +23,3 @@

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}

@@ -88,2 +31,6 @@

function isUndefined(obj) {
return obj === undefined;
}
function VNode(blueprint) {

@@ -143,7 +90,14 @@ this.bp = blueprint;

function VPlaceholder() {
this.placeholder = true;
this.dom = null;
}
function createVPlaceholder() {
return new VPlaceholder();
}
function constructDefaults(string, object, value) {
/* eslint no-return-assign: 0 */
string.split(',').forEach(function (i) {
return object[i] = value;
});
string.split(',').forEach(function (i) { return object[i] = value; });
}

@@ -164,9 +118,2 @@

function createNullNode() {
return {
null: true,
dom: document.createTextNode('')
};
}
var screenWidth = isBrowser && window.screen.width;

@@ -179,3 +126,3 @@ var screenHeight = isBrowser && window.screen.height;

if (isBrowser) {
window.onscroll = function (e) {
window.onscroll = function () {
scrollX = window.scrollX;

@@ -186,3 +133,3 @@ scrollY = window.scrollY;

window.resize = function (e) {
window.resize = function () {
scrollX = window.scrollX;

@@ -213,4 +160,6 @@ scrollY = window.scrollY;

trigger: function trigger() {
var this$1 = this;
for (var i = 0; i < this._listeners.length; i++) {
this._listeners[i]();
this$1._listeners[i]();
}

@@ -263,11 +212,12 @@ }

} else if (isNullOrUndefined(nextNode)) {
nextNode = createNullNode();
nextNode = createVPlaceholder();
}
var lastNode = component._lastNode;
var parentDom = lastNode.dom.parentNode;
var activeNode = getActiveNode();
var subLifecycle = new Lifecycle();
component._patch(lastNode, nextNode, parentDom, subLifecycle, component.context, component, null);
component._lastNode = nextNode;
component._componentToDOMNodeMap.set(component, nextNode.dom);
component._parentNode.dom = nextNode.dom;

@@ -283,110 +233,100 @@

var Component = function () {
function Component(props) {
babelHelpers.classCallCheck(this, Component);
var Component = function Component(props) {
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.props = props || {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.state = {};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
this._componentToDOMNodeMap = null;
};
/** @type {object} */
this.refs = {};
this._blockSetState = false;
this._deferSetState = false;
this._pendingSetState = false;
this._pendingState = {};
this._parentNode = null;
this._lastNode = null;
this._unmounted = true;
this.context = {};
this._patch = null;
this._parentComponent = null;
Component.prototype.render = function render () {
};
Component.prototype.forceUpdate = function forceUpdate (callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
};
babelHelpers.createClass(Component, [{
key: 'render',
value: function render() {}
}, {
key: 'forceUpdate',
value: function forceUpdate(callback) {
if (this._unmounted) {
throw Error(noOp);
}
applyState(this, true, callback);
Component.prototype.setState = function setState (newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
};
Component.prototype.componentDidMount = function componentDidMount () {
};
Component.prototype.componentWillMount = function componentWillMount () {
};
Component.prototype.componentWillUnmount = function componentWillUnmount () {
};
Component.prototype.componentDidUpdate = function componentDidUpdate () {
};
Component.prototype.shouldComponentUpdate = function shouldComponentUpdate () {
return true;
};
Component.prototype.componentWillReceiveProps = function componentWillReceiveProps () {
};
Component.prototype.componentWillUpdate = function componentWillUpdate () {
};
Component.prototype.getChildContext = function getChildContext () {
};
Component.prototype._updateComponent = function _updateComponent (prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
}, {
key: 'setState',
value: function setState(newState, callback) {
if (this._unmounted) {
throw Error(noOp);
}
if (this._blockSetState === false) {
queueStateChanges(this, newState, callback);
} else {
throw Error('Inferno Warning: Cannot update state via setState() in componentWillUpdate()');
}
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {}
}, {
key: 'componentWillMount',
value: function componentWillMount() {}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {}
}, {
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate() {
return true;
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps() {}
}, {
key: 'componentWillUpdate',
value: function componentWillUpdate() {}
}, {
key: 'getChildContext',
value: function getChildContext() {}
}, {
key: '_updateComponent',
value: function _updateComponent(prevState, nextState, prevProps, nextProps, force) {
if (this._unmounted === true) {
this._unmounted = false;
return false;
}
if (!isNullOrUndefined(nextProps) && isNullOrUndefined(nextProps.children)) {
nextProps.children = prevProps.children;
}
if (prevProps !== nextProps || prevState !== nextState || force) {
if (prevProps !== nextProps) {
this._blockSetState = true;
this.componentWillReceiveProps(nextProps);
this._blockSetState = false;
}
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
var shouldUpdate = this.shouldComponentUpdate(nextProps, nextState);
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
if (shouldUpdate !== false) {
this._blockSetState = true;
this.componentWillUpdate(nextProps, nextState);
this._blockSetState = false;
this.props = nextProps;
this.state = nextState;
var node = this.render();
this.componentDidUpdate(prevProps, prevState);
return node;
}
}
return NO_RENDER;
this.componentDidUpdate(prevProps, prevState);
return node;
}
}]);
return Component;
}();
}
return NO_RENDER;
};

@@ -399,70 +339,61 @@ var ASYNC_STATUS = {

var Route = function (_Component) {
babelHelpers.inherits(Route, _Component);
var Route = (function (Component) {
function Route(props) {
babelHelpers.classCallCheck(this, Route);
var _this = babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(Route).call(this, props));
_this.state = {
Component.call(this, props);
this.state = {
async: null
};
return _this;
}
babelHelpers.createClass(Route, [{
key: 'async',
value: function async() {
var _this2 = this;
if ( Component ) Route.__proto__ = Component;
Route.prototype = Object.create( Component && Component.prototype );
Route.prototype.constructor = Route;
var async = this.props.async;
Route.prototype.async = function async () {
var this$1 = this;
if (async) {
this.setState({
async: { status: ASYNC_STATUS.pending }
});
async(this.props.params).then(function (value) {
_this2.setState({
async: {
status: ASYNC_STATUS.fulfilled,
value: value
}
});
}, this.reject).catch(this.reject);
}
}
}, {
key: 'reject',
value: function reject(value) {
var async = this.props.async;
if (async) {
this.setState({
async: {
status: ASYNC_STATUS.rejected,
value: value
}
async: { status: ASYNC_STATUS.pending }
});
async(this.props.params).then(function (value) {
this$1.setState({
async: {
status: ASYNC_STATUS.fulfilled,
value: value
}
});
}, this.reject).catch(this.reject);
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps() {
this.async();
}
}, {
key: 'componentWillMount',
value: function componentWillMount() {
this.async();
}
}, {
key: 'render',
value: function render() {
var _props = this.props;
var component = _props.component;
var params = _props.params;
};
Route.prototype.reject = function reject (value) {
this.setState({
async: {
status: ASYNC_STATUS.rejected,
value: value
}
});
};
return createVNode().setTag(component).setAttrs({ params: params, async: this.state.async });
}
}]);
Route.prototype.componentWillReceiveProps = function componentWillReceiveProps () {
this.async();
};
Route.prototype.componentWillMount = function componentWillMount () {
this.async();
};
Route.prototype.render = function render () {
var ref = this.props;
var component = ref.component;
var params = ref.params;
return createVNode().setTag(component).setAttrs({ params: params, async: this.state.async });
};
return Route;
}(Component);
}(Component));

@@ -491,9 +422,9 @@ var EMPTY$1 = {};

// Thanks goes to Preact for this function: https://github.com/developit/preact-router/blob/master/src/util.js#L4
function exec(url, route) {
var opts = arguments.length <= 2 || arguments[2] === void 0 ? EMPTY$1 : arguments[2];
function exec(url, route, opts) {
if ( opts === void 0 ) opts = EMPTY$1;
var reg = /(?:\?([^#]*))?(#.*)?$/,
c = url.match(reg),
matches = {},
ret = void 0;
c = url.match(reg),
matches = {},
ret;
if (c && c[1]) {

@@ -509,9 +440,11 @@ var p = c[1].split('&');

var max = Math.max(url.length, route.length);
for (var _i = 0; _i < max; _i++) {
if (route[_i] && route[_i].charAt(0) === ':') {
var param = route[_i].replace(/(^\:|[+*?]+$)/g, ''),
flags = (route[_i].match(/[+*?]+$/) || EMPTY$1)[0] || '',
plus = ~flags.indexOf('+'),
star = ~flags.indexOf('*'),
val = url[_i] || '';
var hasWildcard = false;
for (var i$1 = 0; i$1 < max; i$1++) {
if (route[i$1] && route[i$1].charAt(0) === ':') {
var param = route[i$1].replace(/(^\:|[+*?]+$)/g, ''),
flags = (route[i$1].match(/[+*?]+$/) || EMPTY$1)[0] || '',
plus = ~flags.indexOf('+'),
star = ~flags.indexOf('*'),
val = url[i$1] || '';
if (!val && !star && (flags.indexOf('?') < 0 || plus)) {

@@ -523,9 +456,14 @@ ret = false;

if (plus || star) {
matches[param] = url.slice(_i).map(decodeURIComponent).join('/');
matches[param] = url.slice(i$1).map(decodeURIComponent).join('/');
break;
}
} else if (route[_i] !== url[_i]) {
ret = false;
break;
}
else if (route[i$1] !== url[i$1] && !hasWildcard) {
if (route[i$1] === '*' && route.length === i$1 + 1) {
hasWildcard = true;
} else {
ret = false;
break;
}
}
}

@@ -540,5 +478,5 @@ if (opts.default !== true && ret === false) {

var aAttr = a.attrs || EMPTY$1,
bAttr = b.attrs || EMPTY$1;
var diff = rank(aAttr.path) - rank(bAttr.path);
return diff || aAttr.path.length - bAttr.path.length;
bAttr = b.attrs || EMPTY$1;
var diff = rank(bAttr.path) - rank(aAttr.path);
return diff || (bAttr.path.length - aAttr.path.length);
}

@@ -550,85 +488,94 @@

var Router = function (_Component) {
babelHelpers.inherits(Router, _Component);
var Router = (function (Component) {
function Router(props) {
babelHelpers.classCallCheck(this, Router);
var _this = babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(Router).call(this, props));
Component.call(this, props);
if (!props.history) {
throw new Error('Inferno Error: "inferno-router" Router components require a "history" prop passed.');
}
_this._didRoute = false;
_this.state = {
this._didRoute = false;
this.state = {
url: props.url || props.history.getCurrentUrl()
};
return _this;
}
babelHelpers.createClass(Router, [{
key: 'getChildContext',
value: function getChildContext() {
return {
history: this.props.history,
hashbang: this.props.hashbang
};
}
}, {
key: 'componentWillMount',
value: function componentWillMount() {
this.props.history.addRouter(this);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.props.history.removeRouter(this);
}
}, {
key: 'routeTo',
value: function routeTo(url) {
this._didRoute = false;
this.setState({ url: url });
return this._didRoute;
}
}, {
key: 'render',
value: function render() {
var children = isArray(this.props.children) ? this.props.children : [this.props.children];
var url = this.props.url || this.state.url;
var wrapperComponent = this.props.component;
var hashbang = this.props.hashbang;
if ( Component ) Router.__proto__ = Component;
Router.prototype = Object.create( Component && Component.prototype );
Router.prototype.constructor = Router;
children.sort(pathRankSort);
Router.prototype.getChildContext = function getChildContext () {
return {
history: this.props.history,
hashbang: this.props.hashbang
};
};
for (var i = 0; i < children.length; i++) {
var child = children[i];
var path = child.attrs.path;
Router.prototype.componentWillMount = function componentWillMount () {
this.props.history.addRouter(this);
};
var params = exec(hashbang ? convertToHashbang(url) : url, path);
Router.prototype.componentWillUnmount = function componentWillUnmount () {
this.props.history.removeRouter(this);
};
if (params) {
if (wrapperComponent) {
return createVNode().setTag(wrapperComponent).setChildren(child).setAttrs({
params: params
});
}
return child.setAttrs(Object.assign({}, { params: params }, child.attrs));
}
Router.prototype.routeTo = function routeTo (url) {
this._didRoute = false;
this.setState({ url: url });
return this._didRoute;
};
Router.prototype.render = function render () {
var children = toArray(this.props.children);
var url = this.props.url || this.state.url;
var wrapperComponent = this.props.component;
var hashbang = this.props.hashbang;
return handleRoutes(children, url, hashbang, wrapperComponent, '');
};
return Router;
}(Component));
function toArray(children) {
return isArray(children) ? children : (children ? [children] : children);
}
function handleRoutes(routes, url, hashbang, wrapperComponent, lastPath) {
routes.sort(pathRankSort);
for (var i = 0; i < routes.length; i++) {
var route = routes[i];
var ref = route.attrs;
var path = ref.path;
var fullPath = lastPath + path;
var params = exec(hashbang ? convertToHashbang(url) : url, fullPath);
var children = toArray(route.children);
if (children) {
var subRoute = handleRoutes(children, url, hashbang, wrapperComponent, fullPath);
if (!isNull(subRoute)) {
return subRoute;
}
return wrapperComponent ? createVNode().setTag(wrapperComponent) : null;
}
}]);
return Router;
}(Component);
if (params) {
if (wrapperComponent) {
return createVNode().setTag(wrapperComponent).setChildren(route).setAttrs({
params: params
});
}
return route.setAttrs(Object.assign({}, { params: params }, route.attrs));
}
}
return !lastPath && wrapperComponent ? createVNode().setTag(wrapperComponent) : null;
}
function Link(_ref, _ref2) {
var to = _ref.to;
var children = _ref.children;
var hashbang = _ref2.hashbang;
var history = _ref2.history;
function Link(ref, ref$1) {
var to = ref.to;
var children = ref.children;
var hashbang = ref$1.hashbang;
var history = ref$1.history;
return createVNode().setAttrs({
return (createVNode().setAttrs({
href: hashbang ? history.getHashbangRoot() + convertToHashbang('#!' + to) : to
}).setTag('a').setChildren(children);
}).setTag('a').setChildren(children));
}

@@ -641,3 +588,3 @@

return '' + (url.pathname || '') + (url.search || '') + (url.hash || '');
return ("" + (url.pathname || '') + (url.search || '') + (url.hash || ''));
}

@@ -648,3 +595,3 @@

return '' + (url.protocol + '//' || '') + (url.host || '') + (url.pathname || '') + (url.search || '') + '#!';
return ("" + (url.protocol + '//' || '') + (url.host || '') + (url.pathname || '') + (url.search || '') + "#!");
}

@@ -662,5 +609,5 @@

window.addEventListener('popstate', function () {
return routeTo(getCurrentUrl());
});
if (isBrowser) {
window.addEventListener('popstate', function () { return routeTo(getCurrentUrl()); });
}

@@ -672,5 +619,4 @@ var browserHistory = {

removeRouter: function removeRouter(router) {
roouters.splice(routers.indexOf(router), 1);
routers.splice(routers.indexOf(router), 1);
},
getCurrentUrl: getCurrentUrl,

@@ -677,0 +623,0 @@ getHashbangRoot: getHashbangRoot

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoRouter=e()}(this,function(){"use strict";function t(t){return t instanceof Array}function e(t){return void 0===t||n(t)}function n(t){return null===t}function o(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function r(t){return new o(t)}function i(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function s(){return{"null":!0,dom:document.createTextNode("")}}function a(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=N,this.screenWidth=W}function l(){return document.activeElement}function u(t){t!==document.body&&document.activeElement!==t&&t.focus()}function c(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var r=t._pendingState,i=t.state;t.state=Object.assign({},i,r),t._pendingState={}}else t._pendingSetState=!0,h(t,!1,n)}function h(t,n,o){if(!t._deferSetState||n){t._pendingSetState=!1;var r=t._pendingState,i=t.state,c=Object.assign({},i,r);t._pendingState={};var h=t._updateComponent(i,c,t.props,t.props,n);h===_?h=t._lastNode:e(h)&&(h=s());var p=t._lastNode,f=p.dom.parentNode,d=l(),m=new a;t._patch(p,h,f,m,t.context,t,null),t._lastNode=h,t._parentNode.dom=h.dom,m.trigger(),e(o)||o(),u(d)}}function p(t){return f(t).split("/")}function f(t){return t.replace(/(^\/+|\/+$)/g,"")}function d(t){if(-1===t.indexOf("#"))t="/";else{var e=t.split("#!");e.shift(),t=e.join("")}return t}function m(t,e){var n=arguments.length<=2||void 0===arguments[2]?H:arguments[2],o=/(?:\?([^#]*))?(#.*)?$/,r=t.match(o),i={},s=void 0;if(r&&r[1])for(var a=r[1].split("&"),l=0;l<a.length;l++){var u=a[l].split("=");i[decodeURIComponent(u[0])]=decodeURIComponent(u.slice(1).join("="))}t=p(t.replace(o,"")),e=p(e||"");for(var c=Math.max(t.length,e.length),h=0;c>h;h++)if(e[h]&&":"===e[h].charAt(0)){var f=e[h].replace(/(^\:|[+*?]+$)/g,""),d=(e[h].match(/[+*?]+$/)||H)[0]||"",m=~d.indexOf("+"),y=~d.indexOf("*"),v=t[h]||"";if(!v&&!y&&(d.indexOf("?")<0||m)){s=!1;break}if(i[f]=decodeURIComponent(v),m||y){i[f]=t.slice(h).map(decodeURIComponent).join("/");break}}else if(e[h]!==t[h]){s=!1;break}return n.default!==!0&&s===!1?!1:i}function y(t,e){var n=t.attrs||H,o=e.attrs||H,r=v(n.path)-v(o.path);return r||n.path.length-o.path.length}function v(t){return(f(t).match(/\/+/g)||"").length}function g(t,e){var n=t.to,o=t.children,i=e.hashbang,s=e.history;return r().setAttrs({href:i?s.getHashbangRoot()+d("#!"+n):n}).setTag("a").setChildren(o)}function w(){var t="undefined"!=typeof location?location:EMPTY;return""+(t.pathname||"")+(t.search||"")+(t.hash||"")}function b(){var t="undefined"!=typeof location?location:EMPTY;return""+(t.protocol+"//"||"")+(t.host||"")+(t.pathname||"")+(t.search||"")+"#!"}function k(t){for(var e=!1,n=0;n<z.length;n++)z[n].routeTo(t)===!0&&(e=!0);return e}var S={};S.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},S.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},S.createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),S.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},S.possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};var _="NO_RENDER",C="undefined"!=typeof window&&window.document;o.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}};var x="http://www.w3.org/1999/xlink",R="http://www.w3.org/XML/1998/namespace",O={},j={},E={},U={};i("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",E,x),i("xml:base,xml:lang,xml:space",E,R),i("volume,value",O,!0),i("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",j,!0),i("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",U,!0);var W=C&&window.screen.width,N=C&&window.screen.height,T=0,I=0,P=0;C&&(window.onscroll=function(t){T=window.scrollX,I=window.scrollY,P=performance.now()},window.resize=function(t){T=window.scrollX,I=window.scrollY,W=window.screen.width,N=window.screen.height,P=performance.now()}),a.prototype={refresh:function(){this.scrollX=C&&window.scrollX,this.scrollY=C&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=0;t<this._listeners.length;t++)this._listeners[t]()}};var M="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",A=function(){function t(e){S.classCallCheck(this,t),this.props=e||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null}return S.createClass(t,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(t){if(this._unmounted)throw Error(M);h(this,!0,t)}},{key:"setState",value:function(t,e){if(this._unmounted)throw Error(M);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");c(this,t,e)}},{key:"componentDidMount",value:function(){}},{key:"componentWillMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillReceiveProps",value:function(){}},{key:"componentWillUpdate",value:function(){}},{key:"getChildContext",value:function(){}},{key:"_updateComponent",value:function(t,n,o,r,i){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!e(r)&&e(r.children)&&(r.children=o.children),o!==r||t!==n||i){o!==r&&(this._blockSetState=!0,this.componentWillReceiveProps(r),this._blockSetState=!1);var s=this.shouldComponentUpdate(r,n);if(s!==!1){this._blockSetState=!0,this.componentWillUpdate(r,n),this._blockSetState=!1,this.props=r,this.state=n;var a=this.render();return this.componentDidUpdate(o,t),a}}return _}}]),t}(),D={pending:"pending",fulfilled:"fulfilled",rejected:"rejected"},Y=function(t){function e(t){S.classCallCheck(this,e);var n=S.possibleConstructorReturn(this,Object.getPrototypeOf(e).call(this,t));return n.state={async:null},n}return S.inherits(e,t),S.createClass(e,[{key:"async",value:function t(){var e=this,t=this.props.async;t&&(this.setState({async:{status:D.pending}}),t(this.props.params).then(function(t){e.setState({async:{status:D.fulfilled,value:t}})},this.reject).catch(this.reject))}},{key:"reject",value:function(t){this.setState({async:{status:D.rejected,value:t}})}},{key:"componentWillReceiveProps",value:function(){this.async()}},{key:"componentWillMount",value:function(){this.async()}},{key:"render",value:function(){var t=this.props,e=t.component,n=t.params;return r().setTag(e).setAttrs({params:n,async:this.state.async})}}]),e}(A),H={},X=function(e){function n(t){S.classCallCheck(this,n);var e=S.possibleConstructorReturn(this,Object.getPrototypeOf(n).call(this,t));if(!t.history)throw new Error('Inferno Error: "inferno-router" Router components require a "history" prop passed.');return e._didRoute=!1,e.state={url:t.url||t.history.getCurrentUrl()},e}return S.inherits(n,e),S.createClass(n,[{key:"getChildContext",value:function(){return{history:this.props.history,hashbang:this.props.hashbang}}},{key:"componentWillMount",value:function(){this.props.history.addRouter(this)}},{key:"componentWillUnmount",value:function(){this.props.history.removeRouter(this)}},{key:"routeTo",value:function(t){return this._didRoute=!1,this.setState({url:t}),this._didRoute}},{key:"render",value:function(){var e=t(this.props.children)?this.props.children:[this.props.children],n=this.props.url||this.state.url,o=this.props.component,i=this.props.hashbang;e.sort(y);for(var s=0;s<e.length;s++){var a=e[s],l=a.attrs.path,u=m(i?d(n):n,l);if(u)return o?r().setTag(o).setChildren(a).setAttrs({params:u}):a.setAttrs(Object.assign({},{params:u},a.attrs))}return o?r().setTag(o):null}}]),n}(A),z=[];window.addEventListener("popstate",function(){return k(w())});var L={addRouter:function(t){z.push(t)},removeRouter:function(t){roouters.splice(z.indexOf(t),1)},getCurrentUrl:w,getHashbangRoot:b},$={Route:Y,Router:X,Link:g,browserHistory:L};return $});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoRouter=e()}(this,function(){"use strict";function t(t){return t instanceof Array}function e(t){return o(t)||n(t)}function n(t){return null===t}function o(t){return void 0===t}function r(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function i(t){return new r(t)}function s(){this.placeholder=!0,this.dom=null}function a(){return new s}function l(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function u(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=T,this.screenWidth=M}function c(){return document.activeElement}function p(t){t!==document.body&&document.activeElement!==t&&t.focus()}function h(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var r=t._pendingState,i=t.state;t.state=Object.assign({},i,r),t._pendingState={}}else t._pendingSetState=!0,d(t,!1,n)}function d(t,n,o){if(!t._deferSetState||n){t._pendingSetState=!1;var r=t._pendingState,i=t.state,s=Object.assign({},i,r);t._pendingState={};var l=t._updateComponent(i,s,t.props,t.props,n);l===R?l=t._lastNode:e(l)&&(l=a());var h=t._lastNode,d=h.dom.parentNode,f=c(),m=new u;t._patch(h,l,d,m,t.context,t,null),t._lastNode=l,t._componentToDOMNodeMap.set(t,l.dom),t._parentNode.dom=l.dom,m.trigger(),e(o)||o(),p(f)}}function f(t){return m(t).split("/")}function m(t){return t.replace(/(^\/+|\/+$)/g,"")}function y(t){if(t.indexOf("#")===-1)t="/";else{var e=t.split("#!");e.shift(),t=e.join("")}return t}function g(t,e,n){void 0===n&&(n=L);var o,r=/(?:\?([^#]*))?(#.*)?$/,i=t.match(r),s={};if(i&&i[1])for(var a=i[1].split("&"),l=0;l<a.length;l++){var u=a[l].split("=");s[decodeURIComponent(u[0])]=decodeURIComponent(u.slice(1).join("="))}t=f(t.replace(r,"")),e=f(e||"");for(var c=Math.max(t.length,e.length),p=!1,h=0;h<c;h++)if(e[h]&&":"===e[h].charAt(0)){var d=e[h].replace(/(^\:|[+*?]+$)/g,""),m=(e[h].match(/[+*?]+$/)||L)[0]||"",y=~m.indexOf("+"),g=~m.indexOf("*"),w=t[h]||"";if(!w&&!g&&(m.indexOf("?")<0||y)){o=!1;break}if(s[d]=decodeURIComponent(w),y||g){s[d]=t.slice(h).map(decodeURIComponent).join("/");break}}else if(e[h]!==t[h]&&!p){if("*"!==e[h]||e.length!==h+1){o=!1;break}p=!0}return(n.default===!0||o!==!1)&&s}function w(t,e){var n=t.attrs||L,o=e.attrs||L,r=v(o.path)-v(n.path);return r||o.path.length-n.path.length}function v(t){return(m(t).match(/\/+/g)||"").length}function _(e){return t(e)?e:e?[e]:e}function S(t,e,o,r,s){t.sort(w);for(var a=0;a<t.length;a++){var l=t[a],u=l.attrs,c=u.path,p=s+c,h=g(o?y(e):e,p),d=_(l.children);if(d){var f=S(d,e,o,r,p);if(!n(f))return f}if(h)return r?i().setTag(r).setChildren(l).setAttrs({params:h}):l.setAttrs(Object.assign({},{params:h},l.attrs))}return!s&&r?i().setTag(r):null}function x(t,e){var n=t.to,o=t.children,r=e.hashbang,s=e.history;return i().setAttrs({href:r?s.getHashbangRoot()+y("#!"+n):n}).setTag("a").setChildren(o)}function b(){var t="undefined"!=typeof location?location:EMPTY;return""+(t.pathname||"")+(t.search||"")+(t.hash||"")}function k(){var t="undefined"!=typeof location?location:EMPTY;return""+(t.protocol+"//"||"")+(t.host||"")+(t.pathname||"")+(t.search||"")+"#!"}function C(t){for(var e=!1,n=0;n<G.length;n++)G[n].routeTo(t)===!0&&(e=!0);return e}var R="NO_RENDER",O="undefined"!=typeof window&&window.document;r.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}};var U="http://www.w3.org/1999/xlink",W="http://www.w3.org/XML/1998/namespace",j={},E={},N={},I={};l("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",N,U),l("xml:base,xml:lang,xml:space",N,W),l("volume,value",j,!0),l("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",E,!0),l("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",I,!0);var M=O&&window.screen.width,T=O&&window.screen.height,D=0,A=0,Y=0;O&&(window.onscroll=function(){D=window.scrollX,A=window.scrollY,Y=performance.now()},window.resize=function(){D=window.scrollX,A=window.scrollY,M=window.screen.width,T=window.screen.height,Y=performance.now()}),u.prototype={refresh:function(){this.scrollX=O&&window.scrollX,this.scrollY=O&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=this,e=0;e<this._listeners.length;e++)t._listeners[e]()}};var H="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",P=function(t){this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null,this._componentToDOMNodeMap=null};P.prototype.render=function(){},P.prototype.forceUpdate=function(t){if(this._unmounted)throw Error(H);d(this,!0,t)},P.prototype.setState=function(t,e){if(this._unmounted)throw Error(H);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");h(this,t,e)},P.prototype.componentDidMount=function(){},P.prototype.componentWillMount=function(){},P.prototype.componentWillUnmount=function(){},P.prototype.componentDidUpdate=function(){},P.prototype.shouldComponentUpdate=function(){return!0},P.prototype.componentWillReceiveProps=function(){},P.prototype.componentWillUpdate=function(){},P.prototype.getChildContext=function(){},P.prototype._updateComponent=function(t,n,o,r,i){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!e(r)&&e(r.children)&&(r.children=o.children),o!==r||t!==n||i){o!==r&&(this._blockSetState=!0,this.componentWillReceiveProps(r),this._blockSetState=!1);var s=this.shouldComponentUpdate(r,n);if(s!==!1){this._blockSetState=!0,this.componentWillUpdate(r,n),this._blockSetState=!1,this.props=r,this.state=n;var a=this.render();return this.componentDidUpdate(o,t),a}}return R};var X={pending:"pending",fulfilled:"fulfilled",rejected:"rejected"},z=function(t){function e(e){t.call(this,e),this.state={async:null}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.async=function t(){var e=this,t=this.props.async;t&&(this.setState({async:{status:X.pending}}),t(this.props.params).then(function(t){e.setState({async:{status:X.fulfilled,value:t}})},this.reject).catch(this.reject))},e.prototype.reject=function(t){this.setState({async:{status:X.rejected,value:t}})},e.prototype.componentWillReceiveProps=function(){this.async()},e.prototype.componentWillMount=function(){this.async()},e.prototype.render=function(){var t=this.props,e=t.component,n=t.params;return i().setTag(e).setAttrs({params:n,async:this.state.async})},e}(P),L={},$=function(t){function e(e){if(t.call(this,e),!e.history)throw new Error('Inferno Error: "inferno-router" Router components require a "history" prop passed.');this._didRoute=!1,this.state={url:e.url||e.history.getCurrentUrl()}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getChildContext=function(){return{history:this.props.history,hashbang:this.props.hashbang}},e.prototype.componentWillMount=function(){this.props.history.addRouter(this)},e.prototype.componentWillUnmount=function(){this.props.history.removeRouter(this)},e.prototype.routeTo=function(t){return this._didRoute=!1,this.setState({url:t}),this._didRoute},e.prototype.render=function(){var t=_(this.props.children),e=this.props.url||this.state.url,n=this.props.component,o=this.props.hashbang;return S(t,e,o,n,"")},e}(P),G=[];O&&window.addEventListener("popstate",function(){return C(b())});var q={addRouter:function(t){G.push(t)},removeRouter:function(t){G.splice(G.indexOf(t),1)},getCurrentUrl:b,getHashbangRoot:k},F={Route:z,Router:$,Link:x,browserHistory:q};return F});
/*!
* inferno-server v0.7.13
* inferno-server v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
function addChildrenToProps(children, props) {

@@ -94,3 +37,3 @@ if (!isNullOrUndefined(children)) {

function isStatefulComponent(obj) {
return obj.prototype.render !== void 0;
return obj.prototype.render !== undefined;
}

@@ -103,7 +46,7 @@

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}
function isInvalidNode(obj) {
return isNull(obj) || obj === false || obj === true || obj === void 0;
return isNull(obj) || obj === false || obj === true || isUndefined(obj);
}

@@ -127,2 +70,6 @@

function isUndefined(obj) {
return obj === undefined;
}
var screenWidth = isBrowser && window.screen.width;

@@ -135,3 +82,3 @@ var screenHeight = isBrowser && window.screen.height;

if (isBrowser) {
window.onscroll = function (e) {
window.onscroll = function () {
scrollX = window.scrollX;

@@ -142,3 +89,3 @@ scrollY = window.scrollY;

window.resize = function (e) {
window.resize = function () {
scrollX = window.scrollX;

@@ -154,5 +101,3 @@ scrollY = window.scrollY;

/* eslint no-return-assign: 0 */
string.split(',').forEach(function (i) {
return object[i] = value;
});
string.split(',').forEach(function (i) { return object[i] = value; });
}

@@ -204,8 +149,17 @@

if (isStringOrNumber(child)) {
if (isStringOrNumber(child) || isInvalidNode(child)) {
if (insertComment === true) {
childrenResult.push('<!-- -->');
if (isInvalidNode(child)) {
childrenResult.push('<!--!-->');
} else {
childrenResult.push('<!---->');
}
}
childrenResult.push(child);
insertComment = true;
} else if (isArray(child)) {
childrenResult.push('<!---->');
childrenResult.push(renderChildren(child));
childrenResult.push('<!--!-->');
insertComment = true;
} else {

@@ -244,3 +198,3 @@ insertComment = false;

if (!isNullOrUndefined(value)) {
styles.push(toHyphenCase(styleName) + ':' + value + px + ';');
styles.push(((toHyphenCase(styleName)) + ":" + value + px + ";"));
}

@@ -254,41 +208,33 @@ }

if (!isInvalidNode(node)) {
var _ret = function () {
var bp = node.bp;
var tag = node.tag || bp && bp.tag;
var outputAttrs = [];
var className = node.className;
var style = node.style;
var bp = node.bp;
var tag = node.tag || (bp && bp.tag);
var outputAttrs = [];
var className = node.className;
var style = node.style;
if (isFunction(tag)) {
return {
v: renderComponent(tag, node.attrs, node.children, context, isRoot)
};
}
if (!isNullOrUndefined(className)) {
outputAttrs.push('class="' + className + '"');
}
if (!isNullOrUndefined(style)) {
outputAttrs.push('style="' + renderStyleToString(style) + '"');
}
var attrs = node.attrs;
var attrKeys = attrs && Object.keys(attrs) || [];
if (isFunction(tag)) {
return renderComponent(tag, node.attrs, node.children, context, isRoot);
}
if (!isNullOrUndefined(className)) {
outputAttrs.push('class="' + className + '"');
}
if (!isNullOrUndefined(style)) {
outputAttrs.push('style="' + renderStyleToString(style) + '"');
}
var attrs = node.attrs;
var attrKeys = (attrs && Object.keys(attrs)) || [];
if (bp && bp.hasAttrs === true) {
attrKeys = bp.attrKeys = bp.attrKeys ? bp.attrKeys.concat(attrKeys) : attrKeys;
}
attrKeys.forEach(function (attrsKey, i) {
var attr = attrKeys[i];
if (bp && bp.hasAttrs === true) {
attrKeys = bp.attrKeys = bp.attrKeys ? bp.attrKeys.concat(attrKeys) : attrKeys;
}
attrKeys.forEach(function (attrsKey, i) {
var attr = attrKeys[i];
outputAttrs.push(attr + '="' + attrs[attr] + '"');
});
outputAttrs.push(attr + '="' + attrs[attr] + '"');
});
if (isRoot) {
outputAttrs.push('data-infernoroot');
}
return {
v: '<' + tag + (outputAttrs.length > 0 ? ' ' + outputAttrs.join(' ') : '') + '>' + renderChildren(node.children, context) + '</' + tag + '>'
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : babelHelpers.typeof(_ret)) === "object") return _ret.v;
if (isRoot) {
outputAttrs.push('data-infernoroot');
}
return ("<" + tag + (outputAttrs.length > 0 ? ' ' + outputAttrs.join(' ') : '') + ">" + (renderChildren(node.children, context)) + "</" + tag + ">");
}

@@ -295,0 +241,0 @@ }

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.InfernoServer=t()}(this,function(){"use strict";function e(e,n){if(!o(e)){var r=t(e);(r&&e.length>0||!r)&&(n=n?Object.assign({},n,{children:e}):{children:e})}return n}function t(e){return e instanceof Array}function n(e){return void 0!==e.prototype.render}function r(e){return l(e)||c(e)}function o(e){return void 0===e||a(e)}function i(e){return a(e)||e===!1||e===!0||void 0===e}function u(e){return"function"==typeof e}function l(e){return"string"==typeof e}function c(e){return"number"==typeof e}function a(e){return null===e}function f(e,t,n){e.split(",").forEach(function(e){return t[e]=n})}function s(t,r,i,u,l){if(r=e(i,r),n(t)){var c=new t(r),a=c.getChildContext();o(a)||(u=Object.assign({},u,a)),c.context=u,c._pendingSetState=!0,c.componentWillMount();var f=c.render();return c._pendingSetState=!1,w(f,u,l)}return w(t(r),u,l)}function p(e,n){if(e&&t(e)){for(var o=[],u=!1,l=0;l<e.length;l++){var c=e[l];r(c)?(u===!0&&o.push("<!-- -->"),o.push(c),u=!0):(u=!1,o.push(w(c,n,!1)))}return o.join("")}return i(e)?"":r(e)?e:w(e,n,!1)||""}function d(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function y(e){if(r(e))return e;for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var u=n[i],l=e[u],a=c(l)&&!z[u]?"px":"";o(l)||t.push(d(u)+":"+l+a+";")}return t.join()}function w(e,t,n){if(!i(e)){var r=function(){var r=e.bp,i=e.tag||r&&r.tag,l=[],c=e.className,a=e.style;if(u(i))return{v:s(i,e.attrs,e.children,t,n)};o(c)||l.push('class="'+c+'"'),o(a)||l.push('style="'+y(a)+'"');var f=e.attrs,d=f&&Object.keys(f)||[];return r&&r.hasAttrs===!0&&(d=r.attrKeys=r.attrKeys?r.attrKeys.concat(d):d),d.forEach(function(e,t){var n=d[t];l.push(n+'="'+f[n]+'"')}),n&&l.push("data-infernoroot"),{v:"<"+i+(l.length>0?" "+l.join(" "):"")+">"+p(e.children,t)+"</"+i+">"}}();if("object"===("undefined"==typeof r?"undefined":b.typeof(r)))return r.v}}function h(e,t){return w(e,null,!t)}var b={};b.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},b.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var m="undefined"!=typeof window&&window.document,v=m&&window.screen.width,g=m&&window.screen.height,x=0,k=0,O=0;m&&(window.onscroll=function(e){x=window.scrollX,k=window.scrollY,O=performance.now()},window.resize=function(e){x=window.scrollX,k=window.scrollY,v=window.screen.width,g=window.screen.height,O=performance.now()});var j="http://www.w3.org/1999/xlink",S="http://www.w3.org/XML/1998/namespace",C={},I={},_={},z={};f("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",_,j),f("xml:base,xml:lang,xml:space",_,S),f("volume,value",C,!0),f("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",I,!0),f("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",z,!0);var E={renderToString:h};return E});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoServer=n()}(this,function(){"use strict";function e(e,t){if(!o(e)){var r=n(e);(r&&e.length>0||!r)&&(t=t?Object.assign({},t,{children:e}):{children:e})}return t}function n(e){return e instanceof Array}function t(e){return void 0!==e.prototype.render}function r(e){return l(e)||a(e)}function o(e){return s(e)||c(e)}function i(e){return c(e)||e===!1||e===!0||s(e)}function u(e){return"function"==typeof e}function l(e){return"string"==typeof e}function a(e){return"number"==typeof e}function c(e){return null===e}function s(e){return void 0===e}function f(e,n,t){e.split(",").forEach(function(e){return n[e]=t})}function d(n,r,i,u,l){if(r=e(i,r),t(n)){var a=new n(r),c=a.getChildContext();o(c)||(u=Object.assign({},u,c)),a.context=u,a._pendingSetState=!0,a.componentWillMount();var s=a.render();return a._pendingSetState=!1,g(s,u,l)}return g(n(r),u,l)}function p(e,t){if(e&&n(e)){for(var o=[],u=!1,l=0;l<e.length;l++){var a=e[l];r(a)||i(a)?(u===!0&&(i(a)?o.push("<!--!-->"):o.push("<!---->")),o.push(a),u=!0):n(a)?(o.push("<!---->"),o.push(p(a)),o.push("<!--!-->"),u=!0):(u=!1,o.push(g(a,t,!1)))}return o.join("")}return i(e)?"":r(e)?e:g(e,t,!1)||""}function h(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function w(e){if(r(e))return e;for(var n=[],t=Object.keys(e),i=0;i<t.length;i++){var u=t[i],l=e[u],c=a(l)&&!A[u]?"px":"";o(l)||n.push(h(u)+":"+l+c+";")}return n.join()}function g(e,n,t){if(!i(e)){var r=e.bp,l=e.tag||r&&r.tag,a=[],c=e.className,s=e.style;if(u(l))return d(l,e.attrs,e.children,n,t);o(c)||a.push('class="'+c+'"'),o(s)||a.push('style="'+w(s)+'"');var f=e.attrs,h=f&&Object.keys(f)||[];return r&&r.hasAttrs===!0&&(h=r.attrKeys=r.attrKeys?r.attrKeys.concat(h):h),h.forEach(function(e,n){var t=h[n];a.push(t+'="'+f[t]+'"')}),t&&a.push("data-infernoroot"),"<"+l+(a.length>0?" "+a.join(" "):"")+">"+p(e.children,n)+"</"+l+">"}}function x(e,n){return g(e,null,!n)}var m="undefined"!=typeof window&&window.document,y=m&&window.screen.width,v=m&&window.screen.height,b=0,k=0,O=0;m&&(window.onscroll=function(){b=window.scrollX,k=window.scrollY,O=performance.now()},window.resize=function(){b=window.scrollX,k=window.scrollY,y=window.screen.width,v=window.screen.height,O=performance.now()});var S="http://www.w3.org/1999/xlink",j="http://www.w3.org/XML/1998/namespace",C={},I={},z={},A={};f("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",z,S),f("xml:base,xml:lang,xml:space",z,j),f("volume,value",C,!0),f("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",I,!0),f("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",A,!0);var W={renderToString:x};return W});
/*!
* inferno-test-utils v0.7.13
* inferno-test-utils v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,65 +12,14 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
function shallowRender() {
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
}
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function deepRender() {
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
}
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
function renderIntoDocument() {
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
}
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
function shallowRender() {}
function deepRender() {}
function renderIntoDocument() {}
var index = {

@@ -77,0 +26,0 @@ shallowRender: shallowRender,

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.InfernoTestUtils=t()}(this,function(){"use strict";function e(){}function t(){}function n(){}var o={};o.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},o.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var r={shallowRender:e,deepRender:t,renderIntoDocument:n};return r});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoTestUtils=n()}(this,function(){"use strict";function e(){}function n(){}function t(){}var o={shallowRender:e,deepRender:n,renderIntoDocument:t};return o});
/*!
* inferno v0.7.13
* inferno v0.7.14
* (c) 2016 Dominic Gannaway

@@ -12,59 +12,2 @@ * Released under the MIT License.

var babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
babelHelpers.possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
babelHelpers;
// Runs only once in applications lifetime

@@ -74,6 +17,6 @@ var isBrowser = typeof window !== 'undefined' && window.document;

function isNullOrUndefined(obj) {
return obj === void 0 || isNull(obj);
return isUndefined(obj) || isNull(obj);
}
function isAttrAnEvent(attr) {
function isAttrAnEvent$1(attr) {
return attr[0] === 'o' && attr[1] === 'n' && attr.length > 3;

@@ -86,2 +29,6 @@ }

function isUndefined(obj) {
return obj === undefined;
}
function VNode(blueprint) {

@@ -141,27 +88,52 @@ this.bp = blueprint;

function isAttrAnEvent(attr) {
return attr[0] === 'o' && attr[1] === 'n' && attr.length > 3;
}
function isAttrAHook(hook) {
return hook === 'onCreated'
|| hook === 'onAttached'
|| hook === 'onWillDetach'
|| hook === 'onWillUpdate'
|| hook === 'onDidUpdate';
}
function isAttrAComponentHook(hook) {
return hook === 'onComponentWillMount'
|| hook === 'onComponentDidMount'
|| hook === 'onComponentWillUnmount'
|| hook === 'onComponentShouldUpdate'
|| hook === 'onComponentWillUpdate'
|| hook === 'onComponentDidUpdate';
}
function createBlueprint(shape, childrenType) {
var tag = shape.tag || null;
var tagIsDynamic = tag && tag.arg !== void 0 ? true : false;
var tagIsDynamic = tag && tag.arg !== undefined ? true : false;
var children = isNullOrUndefined(shape.children) ? null : shape.children;
var childrenIsDynamic = children && children.arg !== void 0 ? true : false;
var childrenIsDynamic = children && children.arg !== undefined ? true : false;
var attrs = shape.attrs || null;
var attrsIsDynamic = attrs && attrs.arg !== void 0 ? true : false;
var attrsIsDynamic = attrs && attrs.arg !== undefined ? true : false;
var hooks = shape.hooks || null;
var hooksIsDynamic = hooks && hooks.arg !== void 0 ? true : false;
var hooksIsDynamic = hooks && hooks.arg !== undefined ? true : false;
var events = shape.events || null;
var eventsIsDynamic = events && events.arg !== void 0 ? true : false;
var eventsIsDynamic = events && events.arg !== undefined ? true : false;
var key = shape.key === void 0 ? null : shape.key;
var key = shape.key === undefined ? null : shape.key;
var keyIsDynamic = !isNullOrUndefined(key) && !isNullOrUndefined(key.arg);
var style = shape.style || null;
var styleIsDynamic = style && style.arg !== void 0 ? true : false;
var styleIsDynamic = style && style.arg !== undefined ? true : false;
var className = shape.className === void 0 ? null : shape.className;
var classNameIsDynamic = className && className.arg !== void 0 ? true : false;
var className = shape.className === undefined ? null : shape.className;
var classNameIsDynamic = className && className.arg !== undefined ? true : false;
var spread = shape.spread === undefined ? null : shape.spread;
var hasSpread = shape.spread !== undefined;
var blueprint = {

@@ -183,3 +155,3 @@ lazy: shape.lazy || false,

hasClassName: classNameIsDynamic || (className !== '' && className ? true : false),
childrenType: childrenType === void 0 ? children ? 5 : 0 : childrenType,
childrenType: childrenType === undefined ? (children ? 5 : 0) : childrenType,
attrKeys: null,

@@ -199,27 +171,85 @@ eventKeys: null,

}
if (attrsIsDynamic === true) {
vNode.attrs = arguments[attrs.arg];
if (hasSpread) {
var _spread = arguments[spread.arg];
var attrs$1;
var events$1;
var hooks$1;
var attrKeys = [];
var eventKeys = [];
for (var prop in _spread) {
var value = _spread[prop];
if (prop === 'className' || (prop === 'class' && !blueprint.isSVG)) {
vNode.className = value;
blueprint.hasClassName = true;
} else if (prop === 'style') {
vNode.style = value;
blueprint.hasStyle = true;
} else if (prop === 'key') {
vNode.key = value;
} else if (isAttrAHook(prop) || isAttrAComponentHook(prop)) {
if (!hooks$1) {
hooks$1 = {};
}
hooks$1[prop[2].toLowerCase() + prop.substring(3)] = value;
} else if (isAttrAnEvent(prop)) {
if (!events$1) {
events$1 = {};
}
eventKeys.push(prop);
events$1[prop.toLowerCase()] = value;
} else if (prop === 'children') {
vNode.children = value;
blueprint.childrenType = blueprint.childrenType || 5;
} else {
if (!attrs$1) {
attrs$1 = {};
}
attrKeys.push(prop);
attrs$1[prop] = value;
}
}
if (attrs$1) {
vNode.attrs = attrs$1;
blueprint.attrKeys = attrKeys;
blueprint.hasAttrs = true;
}
if (events$1) {
vNode.events = events$1;
blueprint.eventKeys = eventKeys;
blueprint.hasEvents = true;
}
if (hooks$1) {
vNode.hooks = hooks$1;
blueprint.hasHooks = true;
}
} else {
vNode.attrs = attrs;
if (attrsIsDynamic === true) {
vNode.attrs = arguments[attrs.arg];
} else {
vNode.attrs = attrs;
}
if (hooksIsDynamic === true) {
vNode.hooks = arguments[hooks.arg];
}
if (eventsIsDynamic === true) {
vNode.events = arguments[events.arg];
}
if (keyIsDynamic === true) {
vNode.key = arguments[key.arg];
} else {
vNode.key = key;
}
if (styleIsDynamic === true) {
vNode.style = arguments[style.arg];
} else {
vNode.style = blueprint.style;
}
if (classNameIsDynamic === true) {
vNode.className = arguments[className.arg];
} else {
vNode.className = blueprint.className;
}
}
if (hooksIsDynamic === true) {
vNode.hooks = arguments[hooks.arg];
}
if (eventsIsDynamic === true) {
vNode.events = arguments[events.arg];
}
if (keyIsDynamic === true) {
vNode.key = arguments[key.arg];
}
if (styleIsDynamic === true) {
vNode.style = arguments[style.arg];
} else {
vNode.style = blueprint.style;
}
if (classNameIsDynamic === true) {
vNode.className = arguments[className.arg];
} else {
vNode.className = blueprint.className;
}
return vNode;

@@ -229,5 +259,14 @@ };

function VText(text) {
this.text = text;
this.dom = null;
}
function createVText(text) {
return new VText(text);
}
// Copy of the util from dom/util, otherwise it makes massive bundles
function documentCreateElement(tag, isSVG) {
var dom = void 0;
var dom;

@@ -265,3 +304,3 @@ if (isSVG === true) {

dom.setAttribute(attr, attr);
} else if (!isNullOrUndefined(value) && value !== false && !isAttrAnEvent(attr)) {
} else if (!isNullOrUndefined(value) && value !== false && !isAttrAnEvent$1(attr)) {
dom.setAttribute(attr, value);

@@ -276,2 +315,3 @@ }

createVNode: createVNode,
createVText: createVText,
universal: {

@@ -278,0 +318,0 @@ createElement: createUniversalElement

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Inferno=e()}(this,function(){"use strict";function t(t){return void 0===t||n(t)}function e(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function n(t){return null===t}function r(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function o(t){return new r(t)}function s(e,n){var o=e.tag||null,s=!(!o||void 0===o.arg),l=t(e.children)?null:e.children,i=!(!l||void 0===l.arg),u=e.attrs||null,a=!(!u||void 0===u.arg),c=e.hooks||null,f=!(!c||void 0===c.arg),h=e.events||null,y=!(!h||void 0===h.arg),d=void 0===e.key?null:e.key,p=!t(d)&&!t(d.arg),m=e.style||null,v=!(!m||void 0===m.arg),g=void 0===e.className?null:e.className,b=!(!g||void 0===g.arg),w={lazy:e.lazy||!1,dom:null,pools:{keyed:{},nonKeyed:[]},tag:s?null:o,className:""!==g&&g?g:null,style:""!==m&&m?m:null,isComponent:s,hasAttrs:a||!!u,hasHooks:f,hasEvents:y,hasStyle:v||!(""===m||!m),hasClassName:b||!(""===g||!g),childrenType:void 0===n?l?5:0:n,attrKeys:null,eventKeys:null,isSVG:e.isSVG||!1};return function(){var t=new r(w);return s===!0&&(t.tag=arguments[o.arg]),i===!0&&(t.children=arguments[l.arg]),a===!0?t.attrs=arguments[u.arg]:t.attrs=u,f===!0&&(t.hooks=arguments[c.arg]),y===!0&&(t.events=arguments[h.arg]),p===!0&&(t.key=arguments[d.arg]),v===!0?t.style=arguments[m.arg]:t.style=w.style,b===!0?t.className=arguments[g.arg]:t.className=w.className,t}}function l(t,e){var n=void 0;return n=e===!0?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t)}function i(t,e,n){if(c){var r=l(t,n);return e&&u(e,r),r}return null}function u(n,r){for(var o=Object.keys(n),s=0;s<o.length;s++){var l=o[s],i=n[l];"className"===l?r.className=i:i===!0?r.setAttribute(l,l):t(i)||i===!1||e(l)||r.setAttribute(l,i)}}var a={};a.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a.createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},a.possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};var c="undefined"!=typeof window&&window.document;r.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}};var f={createBlueprint:s,createVNode:o,universal:{createElement:i}};return f});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Inferno=e()}(this,function(){"use strict";function t(t){return s(t)||n(t)}function e(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function n(t){return null===t}function s(t){return void 0===t}function l(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function r(t){return new l(t)}function o(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function i(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function a(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function u(e,n){var s=e.tag||null,r=!(!s||void 0===s.arg),u=t(e.children)?null:e.children,c=!(!u||void 0===u.arg),h=e.attrs||null,d=!(!h||void 0===h.arg),f=e.hooks||null,y=!(!f||void 0===f.arg),v=e.events||null,m=!(!v||void 0===v.arg),p=void 0===e.key?null:e.key,g=!t(p)&&!t(p.arg),k=e.style||null,N=!(!k||void 0===k.arg),C=void 0===e.className?null:e.className,w=!(!C||void 0===C.arg),S=void 0===e.spread?null:e.spread,b=void 0!==e.spread,A={lazy:e.lazy||!1,dom:null,pools:{keyed:{},nonKeyed:[]},tag:r?null:s,className:""!==C&&C?C:null,style:""!==k&&k?k:null,isComponent:r,hasAttrs:d||!!h,hasHooks:y,hasEvents:m,hasStyle:N||!(""===k||!k),hasClassName:w||!(""===C||!C),childrenType:void 0===n?u?5:0:n,attrKeys:null,eventKeys:null,isSVG:e.isSVG||!1};return function(){var t=new l(A);if(r===!0&&(t.tag=arguments[s.arg]),c===!0&&(t.children=arguments[u.arg]),b){var e,n,E,K=arguments[S.arg],U=[],D=[];for(var T in K){var V=K[T];"className"===T||"class"===T&&!A.isSVG?(t.className=V,A.hasClassName=!0):"style"===T?(t.style=V,A.hasStyle=!0):"key"===T?t.key=V:i(T)||a(T)?(E||(E={}),E[T[2].toLowerCase()+T.substring(3)]=V):o(T)?(n||(n={}),D.push(T),n[T.toLowerCase()]=V):"children"===T?(t.children=V,A.childrenType=A.childrenType||5):(e||(e={}),U.push(T),e[T]=V)}e&&(t.attrs=e,A.attrKeys=U,A.hasAttrs=!0),n&&(t.events=n,A.eventKeys=D,A.hasEvents=!0),E&&(t.hooks=E,A.hasHooks=!0)}else d===!0?t.attrs=arguments[h.arg]:t.attrs=h,y===!0&&(t.hooks=arguments[f.arg]),m===!0&&(t.events=arguments[v.arg]),g===!0?t.key=arguments[p.arg]:t.key=p,N===!0?t.style=arguments[k.arg]:t.style=A.style,w===!0?t.className=arguments[C.arg]:t.className=A.className;return t}}function c(t){this.text=t,this.dom=null}function h(t){return new c(t)}function d(t,e){var n;return n=e===!0?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t)}function f(t,e,n){if(v){var s=d(t,n);return e&&y(e,s),s}return null}function y(n,s){for(var l=Object.keys(n),r=0;r<l.length;r++){var o=l[r],i=n[o];"className"===o?s.className=i:i===!0?s.setAttribute(o,o):t(i)||i===!1||e(o)||s.setAttribute(o,i)}}var v="undefined"!=typeof window&&window.document;l.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}};var m={createBlueprint:u,createVNode:r,createVText:h,universal:{createElement:f}};return m});
{
"name": "inferno",
"version": "0.7.13",
"version": "0.7.14",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "An extremely fast, isomorphic JavaScript library for building modern user interfaces",

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

import { createBlueprint, createVNode }from '../../../src/core/createBlueprint';
import { createBlueprint, createVNode, createVText }from '../../../src/core/shapes';
import { createUniversalElement } from '../../../src/core/universal';

@@ -7,2 +7,3 @@

createVNode,
createVText,
universal: {

@@ -9,0 +10,0 @@ createElement: createUniversalElement

Sorry, the diff of this file is too big to display

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