Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inferno

Package Overview
Dependencies
Maintainers
4
Versions
334
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno - npm Package Compare versions

Comparing version 8.0.2 to 8.0.3

2

dist/core/component.d.ts

@@ -6,3 +6,3 @@ import type { Inferno } from './types';

export declare class Component<P = {}, S = {}> implements IComponent<P, S> {
state: S | null;
state: Readonly<S | null>;
props: Readonly<{

@@ -9,0 +9,0 @@ children?: Inferno.InfernoNode | undefined;

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Array.isArray;function n(e){var n=typeof e;return"string"===n||"number"===n}function t(e){return void 0===e||null===e}function r(e){return null===e||!1===e||!0===e||void 0===e}function o(e){return"function"===typeof e}function i(e){return"string"===typeof e}function l(e){return"number"===typeof e}function a(e){return null===e}function u(e){return void 0===e}function c(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function s(e,n){if(o(n))return{data:e,event:n};return null}function f(e){return!a(e)&&"object"===typeof e}var p={},d="$F",v=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function h(e){return e.substring(2).toLowerCase()}function m(e,n){e.appendChild(n)}function g(e,n,t){a(t)?m(e,n):e.insertBefore(n,t)}function $(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function y(e,n,t){e.replaceChild(n,t)}function k(e,n){e.removeChild(n)}function x(e){for(var n=0;n<e.length;n++)e[n]()}function b(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function C(e,n){for(var t;e;){if(1521&(t=e.flags))return e.dom;e=b(e,n,t)}return null}function w(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&o(n)&&n()}))}function F(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];g(r.parent,r.dom,r.next)}e.splice(0,e.length)}function P(e,n,t){do{var r=e.flags;if(1521&r)return void(t&&e.dom.parentNode!==n||k(n,e.dom));var o=e.children;if(4&r&&(e=o.$LI),8&r&&(e=o),8192&r){if(2!==e.childFlags){for(var i=0,l=o.length;i<l;++i)P(o[i],n,!1);return}e=o}}while(e)}function N(e,n){return function(){P(e,n,!0)}}function D(e,n,t){t.componentWillDisappear.length>0?w(t.componentWillDisappear,N(e,n)):P(e,n,!1)}function V(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function M(e,n,r,i,l){var a,u,c=n.flags;do{var s=n.flags;if(1521&s)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?g(r,n.dom,i):V(l,e,a,n.dom,r,i,c,u));var f=n.children;if(4&s)a=n.children,u=n.props,n=f.$LI;else if(8&s)a=n.ref,u=n.props,n=f;else if(8192&s){if(2!==n.childFlags){for(var p=0,d=f.length;p<d;++p)M(e,f[p],r,i,l);return}n=f}}while(n)}function S(e,n,t){if(e.constructor.getDerivedStateFromProps)return c(t,e.constructor.getDerivedStateFromProps(n,t));return t}var U={v:!1},W={componentComparator:null,createVNode:null,renderComplete:null};function L(e,n){e.textContent=n}function A(e,n){return f(e)&&e.event===n.event&&e.data===n.data}function I(e,n){for(var t in n)u(e[t])&&(e[t]=n[t]);return e}function B(e,n){return!!o(e)&&(e(n),!0)}var _="$";function E(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function T(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new E(u,r,t,e,l,i,a,n);return W.createVNode&&W.createVNode(c),0===u&&ee(c,c.children),c}function R(e,n,r){if(4&e)return r;var o=(32768&e?n.render:n).defaultHooks;if(t(o))return r;if(t(r))return o;return I(r,o)}function O(e,n,r){var o=(32768&e?n.render:n).defaultProps;if(t(o))return r;if(t(r))return c(o,null);return I(r,o)}function j(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}function H(e,n,t,r,o){var i=new E(1,null,null,e=j(e,n),r,O(e,n,t),R(e,n,o),n);return W.createVNode&&W.createVNode(i),i}function Q(e,n){return new E(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function X(e,n,t){var r=T(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=z(),r.childFlags=2;break;case 16:r.children=[Q(e)],r.childFlags=4}return r}function G(e){var n=e.props;if(n){var r=e.flags;481&r&&(void 0!==n.children&&t(e.children)&&ee(e,n.children),void 0!==n.className&&(t(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&r?c(e.ref,n.ref):n.ref,n.ref=void 0)}return e}function K(e){var n=e.children,t=e.childFlags;return X(2===t?q(n):n.map(q),t,e.key)}function q(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new E(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return K(e)}function z(){return Q("",null)}function J(e,n){var t=ne(e);return T(1024,1024,null,t,0,null,t.key,n)}function Y(t,o,l,u){for(var c=t.length;l<c;l++){var s=t[l];if(!r(s)){var f=u+_+l;if(e(s))Y(s,o,0,f);else{if(n(s))s=Q(s,f);else{var p=s.key,d=i(p)&&p[0]===_;(81920&s.flags||d)&&(s=q(s)),s.flags|=65536,d?p.substring(0,u.length)!==u&&(s.key=u+p):a(p)?s.key=f:s.key=u+p}o.push(s)}}}}function Z(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case d:return 8192;default:return 1}}function ee(t,o){var l,u=1;if(r(o))l=o;else if(n(o))u=16,l=o;else if(e(o)){for(var c=o.length,s=0;s<c;++s){var f=o[s];if(r(f)||e(f)){l=l||o.slice(0,s),Y(o,l,s,"");break}if(n(f))(l=l||o.slice(0,s)).push(Q(f,_+s));else{var p=f.key,d=(81920&f.flags)>0,v=a(p),h=i(p)&&p[0]===_;d||v||h?(l=l||o.slice(0,s),(d||h)&&(f=q(f)),(v||h)&&(f.key=_+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||o).length?1:8}else(l=o).flags|=65536,81920&o.flags&&(l=q(o)),u=2;return t.children=l,t.childFlags=u,t}function ne(t){if(r(t)||n(t))return Q(t,null);if(e(t))return X(t,0,null);return 16384&t.flags?q(t):t}var te="http://www.w3.org/1999/xlink",re="http://www.w3.org/XML/1998/namespace",oe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":re,"xml:lang":re,"xml:space":re};function ie(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var le=ie(0),ae=ie(null),ue=ie(!0);function ce(e,n){var t=n.$EV;return t||(t=n.$EV=ie(null)),t[e]||1===++le[e]&&(ae[e]=ke(e)),t}function se(e,n){var t=n.$EV;t&&t[e]&&(0===--le[e]&&(document.removeEventListener(h(e),ae[e]),ae[e]=null),t[e]=null)}function fe(e,n,t,r){if(o(t))ce(e,r)[e]=t;else if(f(t)){if(A(n,t))return;ce(e,r)[e]=t}else se(e,r)}function pe(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function de(e,n,t,r){var o=pe(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!a(o))}function ve(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function he(){return this.defaultPrevented}function me(){return this.cancelBubble}function ge(e){var n={dom:document};return e.isDefaultPrevented=he,e.isPropagationStopped=me,e.stopPropagation=ve,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function $e(e){return function(n){if(0!==n.button)return void n.stopPropagation();de(n,!0,e,ge(n))}}function ye(e){return function(n){de(n,!1,e,ge(n))}}function ke(e){var n="onClick"===e||"onDblClick"===e?$e(e):ye(e);return document.addEventListener(h(e),n),n}function xe(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function be(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function Ce(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||p,a=r.dom;if(i(e))be(l,e,t);else for(var u=0;u<e.length;++u)be(l,e[u],t);if(o(n)){var c=this.$V,s=c.props||p;n(s,a,!1,c)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function we(e,n,t){var r="$"+n,i=e[r];if(i){if(i[1].wrapped)return;e.removeEventListener(i[0],i[1]),e[r]=null}o(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function Fe(e){return"checkbox"===e||"radio"===e}var Pe=Ce("onInput",Me),Ne=Ce(["onClick","onChange"],Me);function De(e){e.stopPropagation()}function Ve(e,n){Fe(n.type)?(we(e,"change",Ne),we(e,"click",De)):we(e,"input",Pe)}function Me(e,n){var r=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!t(o);r&&r!==n.type&&n.setAttribute("type",r),t(l)||l===n.multiple||(n.multiple=l),t(a)||u||(n.defaultValue=a+""),Fe(r)?(u&&(n.value=o),t(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):t(i)||(n.checked=i)}function Se(e,n){if("option"===e.type)Ue(e,n);else{var t=e.children,r=e.flags;if(4&r)Se(t.$LI,n);else if(8&r)Se(t,n);else if(2===e.childFlags)Se(t,n);else if(12&e.childFlags)for(var o=0,i=t.length;o<i;++o)Se(t[o],n)}}function Ue(n,r){var o=n.props||p,i=n.dom;i.value=o.value,o.value===r||e(r)&&-1!==r.indexOf(o.value)?i.selected=!0:t(r)&&t(o.selected)||(i.selected=o.selected||!1)}De.wrapped=!0;var We=Ce("onChange",Ae);function Le(e){we(e,"change",We)}function Ae(e,n,r,o){var i=Boolean(e.multiple);t(e.multiple)||i===n.multiple||(n.multiple=i);var a=e.selectedIndex;if(-1===a&&(n.selectedIndex=-1),1!==o.childFlags){var u=e.value;l(a)&&a>-1&&n.options[a]&&(u=n.options[a].value),r&&t(u)&&(u=e.defaultValue),Se(o,u)}}var Ie,Be,_e=Ce("onInput",Re),Ee=Ce("onChange");function Te(e,n){we(e,"input",_e),n.onChange&&we(e,"change",Ee)}function Re(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Oe(e,n,t,r,o,i){64&e?Me(r,t):256&e?Ae(r,t,o,n):128&e&&Re(r,t,o),i&&(t.$V=n)}function je(e,n,t){64&e?Ve(n,t):256&e?Le(n):128&e&&Te(n,t)}function He(e){return e.type&&Fe(e.type)?!t(e.checked):!t(e.value)}function Qe(){return{current:null}}function Xe(e){return{render:e}}function Ge(e){e&&!B(e,null)&&e.current&&(e.current=null)}function Ke(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){B(e,n)||void 0===e.current||(e.current=n)}))}function qe(e,n,t){ze(e,t),D(e,n,t)}function ze(e,n){var r,i=e.flags,l=e.children;if(481&i){r=e.ref;var u=e.props;Ge(r);var c=e.childFlags;if(!a(u))for(var s=Object.keys(u),f=0,d=s.length;f<d;f++){var h=s[f];ue[h]&&se(h,e.dom)}12&c?Je(l,n):2===c&&ze(l,n)}else if(l)if(4&i){o(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;o(l.componentWillDisappear)&&(m=new v,nn(n,l,l.$LI.dom,i,void 0)),Ge(e.ref),l.$UN=!0,ze(l.$LI,m)}else if(8&i){var g=n;if(!t(r=e.ref)){var $=null;o(r.onComponentWillUnmount)&&($=C(e,!0),r.onComponentWillUnmount($,e.props||p)),o(r.onComponentWillDisappear)&&(g=new v,nn(n,r,$=$||C(e,!0),i,e.props))}ze(l,g)}else 1024&i?qe(l,e.ref,n):8192&i&&12&e.childFlags&&Je(l,n)}function Je(e,n){for(var t=0,r=e.length;t<r;++t)ze(e[t],n)}function Ye(e,n){return function(){if(n)for(var t=0;t<e.length;t++)P(e[t],n,!1)}}function Ze(e,n,t){t.componentWillDisappear.length>0?w(t.componentWillDisappear,Ye(n,e)):e.textContent=""}function en(e,n,t,r){Je(t,r),8192&n.flags?D(n,e,r):Ze(e,t,r)}function nn(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function tn(e){var n=e.event;return function(t){n(e.data,t)}}function rn(e,n,t,r){if(f(t)){if(A(n,t))return;t=tn(t)}we(r,h(e),t)}function on(e,n,r){if(t(n))return void r.removeAttribute("style");var o,l,a=r.style;if(i(n))return void(a.cssText=n);if(t(e)||i(e))for(o in n)l=n[o],a.setProperty(o,l);else{for(o in n)(l=n[o])!==e[o]&&a.setProperty(o,l);for(o in e)t(n[o])&&a.removeProperty(o)}}function ln(e,n,r,o,i){var l=e&&e.__html||"",u=n&&n.__html||"";l!==u&&(t(u)||xe(o,u)||(a(r)||(12&r.childFlags?Je(r.children,i):2===r.childFlags&&ze(r.children,i),r.children=null,r.childFlags=1),o.innerHTML=u))}function an(e,n,r,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":on(n,r,o);break;case"dangerouslySetInnerHTML":ln(n,r,a,o,u);break;default:ue[e]?fe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?rn(e,n,r,o):t(r)?o.removeAttribute(e):i&&oe[e]?o.setAttributeNS(oe[e],e,r):o.setAttribute(e,r)}}function un(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=He(t))&&je(n,r,t),t)an(u,null,t[u],r,o,l,null,i);a&&Oe(n,e,r,t,!0,l)}function cn(e,n,t){var r=ne(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=c(t,e.getChildContext())),e.$CX=i,r}function sn(e,n,t,r,i,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=i,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===p&&(u.props=t),c)u.state=S(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var f=u.state;if(a(f))u.state=s;else for(var d in s)f[d]=s[d];u.$PS=null}u.$BR=!1}return u.$LI=cn(u,t,r),u}function fn(e,n){var t=e.props||p;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function pn(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?mn(e,n,t,r,o,i,l):4&a?$n(e,n,t,r,o,i,l):8&a?yn(e,n,t,r,o,i,l):16&a?hn(e,n,o):8192&a?vn(e,t,n,r,o,i,l):1024&a&&dn(e,t,n,o,i,l)}function dn(e,n,t,r,o,i){pn(e.children,e.ref,n,!1,null,o,i);var l=z();hn(l,t,r),e.dom=l.dom}function vn(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=z()),2===u?pn(a,t,n,r,o,i,l):gn(a,t,n,r,o,i,l)}function hn(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||g(n,r,t)}function mn(e,n,r,o,i,l,u){var c=e.flags,s=e.props,f=e.className,p=e.childFlags,d=e.dom=$(e.type,o=o||(32&c)>0),v=e.children;if(t(f)||""===f||(o?d.setAttribute("class",f):d.className=f),16===p)L(d,v);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&v.flags&&(e.children=v=q(v)),pn(v,d,r,h,null,l,u)):8!==p&&4!==p||gn(v,d,r,h,null,l,u)}a(n)||g(n,d,i),a(s)||un(e,c,s,d,o,u),Ke(e.ref,d,l)}function gn(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=q(u)),pn(u,n,t,r,o,i,l)}}function $n(e,n,t,r,i,l,a){var u=sn(e,e.type,e.props||p,t,r,l),c=a;o(u.componentDidAppear)&&(c=new v),pn(u.$LI,n,u.$CX,r,i,l,c),bn(e.ref,u,l,a)}function yn(e,n,r,i,l,a,u){var c=e.ref,s=u;!t(c)&&o(c.onComponentDidAppear)&&(s=new v),pn(e.children=ne(fn(e,r)),n,r,i,l,a,s),wn(e,a,u)}function kn(e){return function(){e.componentDidMount()}}function xn(e,n,t,r,o){e.componentDidAppear.push((function(){4&r?n.componentDidAppear(t):8&r&&n.onComponentDidAppear(t,o)}))}function bn(e,n,t,r){Ke(e,n,t),o(n.componentDidMount)&&t.push(kn(n)),o(n.componentDidAppear)&&xn(r,n,n.$LI.dom,4,void 0)}function Cn(e,n){return function(){e.onComponentDidMount(C(n,!0),n.props||p)}}function wn(e,n,r){var i=e.ref;t(i)||(B(i.onComponentWillMount,e.props||p),o(i.onComponentDidMount)&&n.push(Cn(i,e)),o(i.onComponentDidAppear)&&xn(r,i,C(e,!0),8,e.props))}function Fn(e,n,t,r,o,i,l){ze(e,l),0!==(n.flags&e.flags&1521)?(pn(n,null,r,o,null,i,l),y(t,n.dom,e.dom)):(pn(n,t,r,o,C(e,!0),i,l),D(e,t,l))}function Pn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?Fn(e,n,t,r,o,l,a):pn(n,t,r,o,i,l,a):481&u?Sn(e,n,r,o,u,l,a):4&u?In(e,n,t,r,o,i,l,a):8&u?Bn(e,n,t,r,o,i,l,a):16&u?_n(e,n):8192&u?Vn(e,n,t,r,o,l,a):Mn(e,n,r,l,a)}function Nn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:L(t,n))}function Dn(e,n){e.textContent!==n&&(e.textContent=n)}function Vn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,s=n.childFlags,f=null;12&s&&0===u.length&&(s=n.childFlags=2,u=n.children=z());var p=0!==(2&s);if(12&c){var d=a.length;(8&c&&8&s||p||!p&&u.length>d)&&(f=C(a[d-1],!1).nextSibling)}Wn(c,s,a,u,t,r,o,f,e,i,l)}function Mn(e,n,t,o,i){var l=e.ref,a=n.ref,u=n.children;if(Wn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,o,i),n.dom=e.dom,l!==a&&!r(u)){var c=u.dom;k(l,c),m(a,c)}}function Sn(e,n,r,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,f=n.props,d=!1,v=!1;if(o=o||(32&i)>0,s!==f){var h=s||p;if((u=f||p)!==p)for(var m in(d=(448&i)>0)&&(v=He(u)),u){var g=h[m],$=u[m];g!==$&&an(m,g,$,c,o,v,e,a)}if(h!==p)for(var y in h)t(u[y])&&!t(h[y])&&an(y,h[y],null,c,o,v,e,a)}var k=n.children,x=n.className;e.className!==x&&(t(x)?c.removeAttribute("class"):o?c.setAttribute("class",x):c.className=x),4096&i?Dn(c,k):Wn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,l,a),d&&Oe(i,n,c,u,!1,v);var b=n.ref,C=e.ref;C!==b&&(Ge(C),Ke(b,c,l))}function Un(e,n,t,r,o,i,l){ze(e,l),gn(n,t,r,o,C(e,!0),i,l),D(e,t,l)}function Wn(e,n,t,r,o,i,l,a,u,c,s){switch(e){case 2:switch(n){case 2:Pn(t,r,o,i,l,a,c,s);break;case 1:qe(t,o,s);break;case 16:ze(t,s),L(o,r);break;default:Un(t,r,o,i,l,c,s)}break;case 1:switch(n){case 2:pn(r,o,i,l,a,c,s);break;case 1:break;case 16:L(o,r);break;default:gn(r,o,i,l,a,c,s)}break;case 16:switch(n){case 16:Nn(t,r,o);break;case 2:Ze(o,t,s),pn(r,o,i,l,a,c,s);break;case 1:Ze(o,t,s);break;default:Ze(o,t,s),gn(r,o,i,l,a,c,s)}break;default:switch(n){case 16:Je(t,s),L(o,r);break;case 2:en(o,u,t,s),pn(r,o,i,l,a,c,s);break;case 1:en(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&gn(r,o,i,l,a,c,s):0===p?en(o,u,t,s):8===n&&8===e?Tn(t,r,o,i,l,f,p,a,u,c,s):En(t,r,o,i,l,f,p,a,c,s)}}}function Ln(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function An(e,n,t,r,i,l,a,u,s,f){var p=e.state,d=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=S(e,t,n!==p?c(p,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,i)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var m=null,g=cn(e,t,i);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(d,p)),Pn(e.$LI,g,r,e.$CX,l,u,s,f),e.$LI=g,o(e.componentDidUpdate)&&Ln(e,d,p,m,s)}else e.props=t,e.state=n,e.context=i}function In(e,n,t,r,i,l,u,s){var f=n.children=e.children;if(a(f))return;f.$L=u;var d=n.props||p,v=n.ref,h=e.ref,m=f.state;if(!f.$N){if(o(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(m=c(m,f.$PS),f.$PS=null)}An(f,m,d,t,r,i,!1,l,u,s),h!==v&&(Ge(h),Ke(v,f,u))}function Bn(e,n,r,i,l,a,u,c){var s=!0,f=n.props||p,d=n.ref,v=e.props,h=!t(d),m=e.children;if(h&&o(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(v,f)),!1!==s){h&&o(d.onComponentWillUpdate)&&d.onComponentWillUpdate(v,f);var g=ne(fn(n,i));Pn(m,g,r,i,l,a,u,c),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(v,f)}else n.children=m}function _n(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function En(e,n,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;d<p;++d)s=n[d],f=e[d],16384&s.flags&&(s=n[d]=q(s)),Pn(f,s,t,r,o,a,u,c),e[d]=s;if(i<l)for(d=p;d<l;++d)16384&(s=n[d]).flags&&(s=n[d]=q(s)),pn(s,t,r,o,a,u,c);else if(i>l)for(d=p;d<i;++d)qe(e[d],t,c)}function Tn(e,n,t,r,o,i,l,a,u,c,s){var f,p,d=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=q(g)),Pn(m,g,t,r,o,a,c,s),e[h]=g,++h>d||h>v)break e;m=e[h],g=n[h]}for(m=e[d],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=q(g)),Pn(m,g,t,r,o,a,c,s),e[d]=g,v--,h>--d||h>v)break e;m=e[d],g=n[v]}}if(h>d){if(h<=v)for(p=(f=v+1)<l?C(n[f],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=q(g)),++h,pn(g,t,r,o,p,c,s)}else if(h>v)for(;h<=d;)qe(e[h++],t,s);else Rn(e,n,r,i,l,d,v,h,t,o,a,u,c,s)}function Rn(e,n,t,r,o,i,l,a,u,c,s,f,p,d){var v,h,m=0,g=0,$=a,y=a,k=i-a+1,x=l-a+1,b=new Int32Array(x+1),w=k===r,P=!1,N=0,D=0;if(o<4||(k|x)<32)for(g=$;g<=i;++g)if(v=e[g],D<x){for(a=y;a<=l;a++)if(h=n[a],v.key===h.key){if(b[a-y]=g+1,w)for(w=!1;$<g;)qe(e[$++],u,d);N>a?P=!0:N=a,16384&h.flags&&(n[a]=h=q(h)),Pn(v,h,u,t,c,s,p,d),++D;break}!w&&a>l&&qe(v,u,d)}else w||qe(v,u,d);else{var V={};for(g=y;g<=l;++g)V[n[g].key]=g;for(g=$;g<=i;++g)if(v=e[g],D<x)if(void 0!==(a=V[v.key])){if(w)for(w=!1;g>$;)qe(e[$++],u,d);b[a-y]=g+1,N>a?P=!0:N=a,16384&(h=n[a]).flags&&(n[a]=h=q(h)),Pn(v,h,u,t,c,s,p,d),++D}else w||qe(v,u,d);else w||qe(v,u,d)}if(w)en(u,f,e,d),gn(n,u,t,c,s,p,d);else if(P){var S=jn(b);for(a=S.length-1,g=x-1;g>=0;g--)0===b[g]?(16384&(h=n[N=g+y]).flags&&(n[N]=h=q(h)),pn(h,u,t,c,(m=N+1)<o?C(n[m],!0):s,p,d)):a<0||g!==S[a]?M(f,h=n[N=g+y],u,(m=N+1)<o?C(n[m],!0):s,d):a--;d.componentWillMove.length>0&&F(d.componentWillMove)}else if(D!==x)for(g=x-1;g>=0;g--)0===b[g]&&(16384&(h=n[N=g+y]).flags&&(n[N]=h=q(h)),pn(h,u,t,c,(m=N+1)<o?C(n[m],!0):s,p,d))}var On=0;function jn(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>On&&(On=u,Ie=new Int32Array(u),Be=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Ie[o]]<n){Be[t]=r,Ie[++o]=t;continue}for(i=0,l=o;i<l;)e[Ie[a=i+l>>1]]<n?i=a+1:l=a;n<e[Ie[i]]&&(i>0&&(Be[t]=Ie[i-1]),Ie[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Ie[i-1];i-- >0;)c[i]=l,l=Be[l],Ie[i]=0;return c}var Hn="undefined"!==typeof document;function Qn(e,n,r,i){var l=[],a=new v,u=n.$V;U.v=!0,t(u)?t(e)||(16384&e.flags&&(e=q(e)),pn(e,n,i,!1,null,l,a),n.$V=e,u=e):t(e)?(qe(u,n,a),n.$V=null):(16384&e.flags&&(e=q(e)),Pn(u,e,n,i,!1,null,l,a),u=n.$V=e),x(l),w(a.componentDidAppear),U.v=!1,o(r)&&r(),o(W.renderComplete)&&W.renderComplete(u,n)}function Xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Qn(e,n,t,r)}function Gn(e){return function(n,t,r,o){e||(e=n),Xn(t,e,r,o)}}Hn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Kn=[],qn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},zn=!1;function Jn(e,n,r,i){var l=e.$PS;if(o(n)&&(n=n(l?c(e.state,l):e.state,e.props,e.context)),t(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)o(r)&&e.$L.push(r.bind(e));else{if(!U.v&&0===Kn.length)return et(e,i),void(o(r)&&r.call(e));if(-1===Kn.indexOf(e)&&Kn.push(e),i&&(e.$F=!0),zn||(zn=!0,qn(Zn)),o(r)){var u=e.$QU;u||(u=e.$QU=[]),u.push(r)}}}function Yn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function Zn(){var e;for(zn=!1;e=Kn.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,et(e,n),e.$QU&&Yn(e)}}function et(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new v;U.v=!0,An(e,c(e.state,t),e.props,C(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),x(r),w(o.componentDidAppear),U.v=!1}else e.state=e.$PS,e.$PS=null}var nt=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||p,this.context=n||p};nt.prototype.forceUpdate=function(e){if(this.$UN)return;Jn(this,{},e,!0)},nt.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Jn(this,e,n,!1)},nt.prototype.render=function(e,n,t){return null};var tt="8.0.2";exports.AnimationQueues=v,exports.Component=nt,exports.EMPTY_OBJ=p,exports.Fragment=d,exports._CI=sn,exports._HI=ne,exports._M=pn,exports._MCCC=bn,exports._ME=mn,exports._MFCC=wn,exports._MP=un,exports._MR=Ke,exports._RFC=fn,exports.__render=Qn,exports.createComponentVNode=H,exports.createFragment=X,exports.createPortal=J,exports.createRef=Qe,exports.createRenderer=Gn,exports.createTextVNode=Q,exports.createVNode=T,exports.directClone=q,exports.findDOMFromVNode=C,exports.forwardRef=Xe,exports.getFlagsForElementVnode=Z,exports.linkEvent=s,exports.normalizeProps=G,exports.options=W,exports.render=Xn,exports.rerender=Zn,exports.version=tt;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Array.isArray;function n(e){var n=typeof e;return"string"===n||"number"===n}function t(e){return void 0===e||null===e}function r(e){return null===e||!1===e||!0===e||void 0===e}function o(e){return"function"===typeof e}function i(e){return"string"===typeof e}function l(e){return"number"===typeof e}function a(e){return null===e}function u(e){return void 0===e}function c(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function s(e,n){if(o(n))return{data:e,event:n};return null}function f(e){return!a(e)&&"object"===typeof e}var p={},d="$F",v=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function h(e){return e.substring(2).toLowerCase()}function m(e,n){e.appendChild(n)}function g(e,n,t){a(t)?m(e,n):e.insertBefore(n,t)}function $(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function y(e,n,t){e.replaceChild(n,t)}function k(e,n){e.removeChild(n)}function x(e){for(var n=0;n<e.length;n++)e[n]()}function b(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function C(e,n){for(var t;e;){if(1521&(t=e.flags))return e.dom;e=b(e,n,t)}return null}function w(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&o(n)&&n()}))}function F(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];g(r.parent,r.dom,r.next)}e.splice(0,e.length)}function P(e,n,t){do{var r=e.flags;if(1521&r)return void(t&&e.dom.parentNode!==n||k(n,e.dom));var o=e.children;if(4&r&&(e=o.$LI),8&r&&(e=o),8192&r){if(2!==e.childFlags){for(var i=0,l=o.length;i<l;++i)P(o[i],n,!1);return}e=o}}while(e)}function N(e,n){return function(){P(e,n,!0)}}function D(e,n,t){t.componentWillDisappear.length>0?w(t.componentWillDisappear,N(e,n)):P(e,n,!1)}function V(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function M(e,n,r,i,l){var a,u,c=n.flags;do{var s=n.flags;if(1521&s)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?g(r,n.dom,i):V(l,e,a,n.dom,r,i,c,u));var f=n.children;if(4&s)a=n.children,u=n.props,n=f.$LI;else if(8&s)a=n.ref,u=n.props,n=f;else if(8192&s){if(2!==n.childFlags){for(var p=0,d=f.length;p<d;++p)M(e,f[p],r,i,l);return}n=f}}while(n)}function S(e,n,t){if(e.constructor.getDerivedStateFromProps)return c(t,e.constructor.getDerivedStateFromProps(n,t));return t}var U={v:!1},W={componentComparator:null,createVNode:null,renderComplete:null};function L(e,n){e.textContent=n}function A(e,n){return f(e)&&e.event===n.event&&e.data===n.data}function I(e,n){for(var t in n)u(e[t])&&(e[t]=n[t]);return e}function B(e,n){return!!o(e)&&(e(n),!0)}var _="$";function E(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function T(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new E(u,r,t,e,l,i,a,n);return W.createVNode&&W.createVNode(c),0===u&&ee(c,c.children),c}function R(e,n,r){if(4&e)return r;var o=(32768&e?n.render:n).defaultHooks;if(t(o))return r;if(t(r))return o;return I(r,o)}function O(e,n,r){var o=(32768&e?n.render:n).defaultProps;if(t(o))return r;if(t(r))return c(o,null);return I(r,o)}function j(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}function H(e,n,t,r,o){var i=new E(1,null,null,e=j(e,n),r,O(e,n,t),R(e,n,o),n);return W.createVNode&&W.createVNode(i),i}function Q(e,n){return new E(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function X(e,n,t){var r=T(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=z(),r.childFlags=2;break;case 16:r.children=[Q(e)],r.childFlags=4}return r}function G(e){var n=e.props;if(n){var r=e.flags;481&r&&(void 0!==n.children&&t(e.children)&&ee(e,n.children),void 0!==n.className&&(t(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&r?c(e.ref,n.ref):n.ref,n.ref=void 0)}return e}function K(e){var n=e.children,t=e.childFlags;return X(2===t?q(n):n.map(q),t,e.key)}function q(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new E(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return K(e)}function z(){return Q("",null)}function J(e,n){var t=ne(e);return T(1024,1024,null,t,0,null,t.key,n)}function Y(t,o,l,u){for(var c=t.length;l<c;l++){var s=t[l];if(!r(s)){var f=u+_+l;if(e(s))Y(s,o,0,f);else{if(n(s))s=Q(s,f);else{var p=s.key,d=i(p)&&p[0]===_;(81920&s.flags||d)&&(s=q(s)),s.flags|=65536,d?p.substring(0,u.length)!==u&&(s.key=u+p):a(p)?s.key=f:s.key=u+p}o.push(s)}}}}function Z(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case d:return 8192;default:return 1}}function ee(t,o){var l,u=1;if(r(o))l=o;else if(n(o))u=16,l=o;else if(e(o)){for(var c=o.length,s=0;s<c;++s){var f=o[s];if(r(f)||e(f)){l=l||o.slice(0,s),Y(o,l,s,"");break}if(n(f))(l=l||o.slice(0,s)).push(Q(f,_+s));else{var p=f.key,d=(81920&f.flags)>0,v=a(p),h=i(p)&&p[0]===_;d||v||h?(l=l||o.slice(0,s),(d||h)&&(f=q(f)),(v||h)&&(f.key=_+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||o).length?1:8}else(l=o).flags|=65536,81920&o.flags&&(l=q(o)),u=2;return t.children=l,t.childFlags=u,t}function ne(t){if(r(t)||n(t))return Q(t,null);if(e(t))return X(t,0,null);return 16384&t.flags?q(t):t}var te="http://www.w3.org/1999/xlink",re="http://www.w3.org/XML/1998/namespace",oe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":re,"xml:lang":re,"xml:space":re};function ie(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var le=ie(0),ae=ie(null),ue=ie(!0);function ce(e,n){var t=n.$EV;return t||(t=n.$EV=ie(null)),t[e]||1===++le[e]&&(ae[e]=ke(e)),t}function se(e,n){var t=n.$EV;t&&t[e]&&(0===--le[e]&&(document.removeEventListener(h(e),ae[e]),ae[e]=null),t[e]=null)}function fe(e,n,t,r){if(o(t))ce(e,r)[e]=t;else if(f(t)){if(A(n,t))return;ce(e,r)[e]=t}else se(e,r)}function pe(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function de(e,n,t,r){var o=pe(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!a(o))}function ve(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function he(){return this.defaultPrevented}function me(){return this.cancelBubble}function ge(e){var n={dom:document};return e.isDefaultPrevented=he,e.isPropagationStopped=me,e.stopPropagation=ve,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function $e(e){return function(n){if(0!==n.button)return void n.stopPropagation();de(n,!0,e,ge(n))}}function ye(e){return function(n){de(n,!1,e,ge(n))}}function ke(e){var n="onClick"===e||"onDblClick"===e?$e(e):ye(e);return document.addEventListener(h(e),n),n}function xe(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function be(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function Ce(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||p,a=r.dom;if(i(e))be(l,e,t);else for(var u=0;u<e.length;++u)be(l,e[u],t);if(o(n)){var c=this.$V,s=c.props||p;n(s,a,!1,c)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function we(e,n,t){var r="$"+n,i=e[r];if(i){if(i[1].wrapped)return;e.removeEventListener(i[0],i[1]),e[r]=null}o(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function Fe(e){return"checkbox"===e||"radio"===e}var Pe=Ce("onInput",Me),Ne=Ce(["onClick","onChange"],Me);function De(e){e.stopPropagation()}function Ve(e,n){Fe(n.type)?(we(e,"change",Ne),we(e,"click",De)):we(e,"input",Pe)}function Me(e,n){var r=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!t(o);r&&r!==n.type&&n.setAttribute("type",r),t(l)||l===n.multiple||(n.multiple=l),t(a)||u||(n.defaultValue=a+""),Fe(r)?(u&&(n.value=o),t(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):t(i)||(n.checked=i)}function Se(e,n){if("option"===e.type)Ue(e,n);else{var t=e.children,r=e.flags;if(4&r)Se(t.$LI,n);else if(8&r)Se(t,n);else if(2===e.childFlags)Se(t,n);else if(12&e.childFlags)for(var o=0,i=t.length;o<i;++o)Se(t[o],n)}}function Ue(n,r){var o=n.props||p,i=n.dom;i.value=o.value,o.value===r||e(r)&&-1!==r.indexOf(o.value)?i.selected=!0:t(r)&&t(o.selected)||(i.selected=o.selected||!1)}De.wrapped=!0;var We=Ce("onChange",Ae);function Le(e){we(e,"change",We)}function Ae(e,n,r,o){var i=Boolean(e.multiple);t(e.multiple)||i===n.multiple||(n.multiple=i);var a=e.selectedIndex;if(-1===a&&(n.selectedIndex=-1),1!==o.childFlags){var u=e.value;l(a)&&a>-1&&n.options[a]&&(u=n.options[a].value),r&&t(u)&&(u=e.defaultValue),Se(o,u)}}var Ie,Be,_e=Ce("onInput",Re),Ee=Ce("onChange");function Te(e,n){we(e,"input",_e),n.onChange&&we(e,"change",Ee)}function Re(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Oe(e,n,t,r,o,i){64&e?Me(r,t):256&e?Ae(r,t,o,n):128&e&&Re(r,t,o),i&&(t.$V=n)}function je(e,n,t){64&e?Ve(n,t):256&e?Le(n):128&e&&Te(n,t)}function He(e){return e.type&&Fe(e.type)?!t(e.checked):!t(e.value)}function Qe(){return{current:null}}function Xe(e){return{render:e}}function Ge(e){e&&!B(e,null)&&e.current&&(e.current=null)}function Ke(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){B(e,n)||void 0===e.current||(e.current=n)}))}function qe(e,n,t){ze(e,t),D(e,n,t)}function ze(e,n){var r,i=e.flags,l=e.children;if(481&i){r=e.ref;var u=e.props;Ge(r);var c=e.childFlags;if(!a(u))for(var s=Object.keys(u),f=0,d=s.length;f<d;f++){var h=s[f];ue[h]&&se(h,e.dom)}12&c?Je(l,n):2===c&&ze(l,n)}else if(l)if(4&i){o(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;o(l.componentWillDisappear)&&(m=new v,nn(n,l,l.$LI.dom,i,void 0)),Ge(e.ref),l.$UN=!0,ze(l.$LI,m)}else if(8&i){var g=n;if(!t(r=e.ref)){var $=null;o(r.onComponentWillUnmount)&&($=C(e,!0),r.onComponentWillUnmount($,e.props||p)),o(r.onComponentWillDisappear)&&(g=new v,nn(n,r,$=$||C(e,!0),i,e.props))}ze(l,g)}else 1024&i?qe(l,e.ref,n):8192&i&&12&e.childFlags&&Je(l,n)}function Je(e,n){for(var t=0,r=e.length;t<r;++t)ze(e[t],n)}function Ye(e,n){return function(){if(n)for(var t=0;t<e.length;t++)P(e[t],n,!1)}}function Ze(e,n,t){t.componentWillDisappear.length>0?w(t.componentWillDisappear,Ye(n,e)):e.textContent=""}function en(e,n,t,r){Je(t,r),8192&n.flags?D(n,e,r):Ze(e,t,r)}function nn(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function tn(e){var n=e.event;return function(t){n(e.data,t)}}function rn(e,n,t,r){if(f(t)){if(A(n,t))return;t=tn(t)}we(r,h(e),t)}function on(e,n,r){if(t(n))return void r.removeAttribute("style");var o,l,a=r.style;if(i(n))return void(a.cssText=n);if(t(e)||i(e))for(o in n)l=n[o],a.setProperty(o,l);else{for(o in n)(l=n[o])!==e[o]&&a.setProperty(o,l);for(o in e)t(n[o])&&a.removeProperty(o)}}function ln(e,n,r,o,i){var l=e&&e.__html||"",u=n&&n.__html||"";l!==u&&(t(u)||xe(o,u)||(a(r)||(12&r.childFlags?Je(r.children,i):2===r.childFlags&&ze(r.children,i),r.children=null,r.childFlags=1),o.innerHTML=u))}function an(e,n,r,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":on(n,r,o);break;case"dangerouslySetInnerHTML":ln(n,r,a,o,u);break;default:ue[e]?fe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?rn(e,n,r,o):t(r)?o.removeAttribute(e):i&&oe[e]?o.setAttributeNS(oe[e],e,r):o.setAttribute(e,r)}}function un(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=He(t))&&je(n,r,t),t)an(u,null,t[u],r,o,l,null,i);a&&Oe(n,e,r,t,!0,l)}function cn(e,n,t){var r=ne(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=c(t,e.getChildContext())),e.$CX=i,r}function sn(e,n,t,r,i,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=i,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===p&&(u.props=t),c)u.state=S(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var f=u.state;if(a(f))u.state=s;else for(var d in s)f[d]=s[d];u.$PS=null}u.$BR=!1}return u.$LI=cn(u,t,r),u}function fn(e,n){var t=e.props||p;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function pn(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?mn(e,n,t,r,o,i,l):4&a?$n(e,n,t,r,o,i,l):8&a?yn(e,n,t,r,o,i,l):16&a?hn(e,n,o):8192&a?vn(e,t,n,r,o,i,l):1024&a&&dn(e,t,n,o,i,l)}function dn(e,n,t,r,o,i){pn(e.children,e.ref,n,!1,null,o,i);var l=z();hn(l,t,r),e.dom=l.dom}function vn(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=z()),2===u?pn(a,t,n,r,o,i,l):gn(a,t,n,r,o,i,l)}function hn(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||g(n,r,t)}function mn(e,n,r,o,i,l,u){var c=e.flags,s=e.props,f=e.className,p=e.childFlags,d=e.dom=$(e.type,o=o||(32&c)>0),v=e.children;if(t(f)||""===f||(o?d.setAttribute("class",f):d.className=f),16===p)L(d,v);else if(1!==p){var h=o&&"foreignObject"!==e.type;2===p?(16384&v.flags&&(e.children=v=q(v)),pn(v,d,r,h,null,l,u)):8!==p&&4!==p||gn(v,d,r,h,null,l,u)}a(n)||g(n,d,i),a(s)||un(e,c,s,d,o,u),Ke(e.ref,d,l)}function gn(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=q(u)),pn(u,n,t,r,o,i,l)}}function $n(e,n,t,r,i,l,a){var u=sn(e,e.type,e.props||p,t,r,l),c=a;o(u.componentDidAppear)&&(c=new v),pn(u.$LI,n,u.$CX,r,i,l,c),bn(e.ref,u,l,a)}function yn(e,n,r,i,l,a,u){var c=e.ref,s=u;!t(c)&&o(c.onComponentDidAppear)&&(s=new v),pn(e.children=ne(fn(e,r)),n,r,i,l,a,s),wn(e,a,u)}function kn(e){return function(){e.componentDidMount()}}function xn(e,n,t,r,o){e.componentDidAppear.push((function(){4&r?n.componentDidAppear(t):8&r&&n.onComponentDidAppear(t,o)}))}function bn(e,n,t,r){Ke(e,n,t),o(n.componentDidMount)&&t.push(kn(n)),o(n.componentDidAppear)&&xn(r,n,n.$LI.dom,4,void 0)}function Cn(e,n){return function(){e.onComponentDidMount(C(n,!0),n.props||p)}}function wn(e,n,r){var i=e.ref;t(i)||(B(i.onComponentWillMount,e.props||p),o(i.onComponentDidMount)&&n.push(Cn(i,e)),o(i.onComponentDidAppear)&&xn(r,i,C(e,!0),8,e.props))}function Fn(e,n,t,r,o,i,l){ze(e,l),0!==(n.flags&e.flags&1521)?(pn(n,null,r,o,null,i,l),y(t,n.dom,e.dom)):(pn(n,t,r,o,C(e,!0),i,l),D(e,t,l))}function Pn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?Fn(e,n,t,r,o,l,a):pn(n,t,r,o,i,l,a):481&u?Sn(e,n,r,o,u,l,a):4&u?In(e,n,t,r,o,i,l,a):8&u?Bn(e,n,t,r,o,i,l,a):16&u?_n(e,n):8192&u?Vn(e,n,t,r,o,l,a):Mn(e,n,r,l,a)}function Nn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:L(t,n))}function Dn(e,n){e.textContent!==n&&(e.textContent=n)}function Vn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,s=n.childFlags,f=null;12&s&&0===u.length&&(s=n.childFlags=2,u=n.children=z());var p=0!==(2&s);if(12&c){var d=a.length;(8&c&&8&s||p||!p&&u.length>d)&&(f=C(a[d-1],!1).nextSibling)}Wn(c,s,a,u,t,r,o,f,e,i,l)}function Mn(e,n,t,o,i){var l=e.ref,a=n.ref,u=n.children;if(Wn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,o,i),n.dom=e.dom,l!==a&&!r(u)){var c=u.dom;k(l,c),m(a,c)}}function Sn(e,n,r,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,f=n.props,d=!1,v=!1;if(o=o||(32&i)>0,s!==f){var h=s||p;if((u=f||p)!==p)for(var m in(d=(448&i)>0)&&(v=He(u)),u){var g=h[m],$=u[m];g!==$&&an(m,g,$,c,o,v,e,a)}if(h!==p)for(var y in h)t(u[y])&&!t(h[y])&&an(y,h[y],null,c,o,v,e,a)}var k=n.children,x=n.className;e.className!==x&&(t(x)?c.removeAttribute("class"):o?c.setAttribute("class",x):c.className=x),4096&i?Dn(c,k):Wn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,l,a),d&&Oe(i,n,c,u,!1,v);var b=n.ref,C=e.ref;C!==b&&(Ge(C),Ke(b,c,l))}function Un(e,n,t,r,o,i,l){ze(e,l),gn(n,t,r,o,C(e,!0),i,l),D(e,t,l)}function Wn(e,n,t,r,o,i,l,a,u,c,s){switch(e){case 2:switch(n){case 2:Pn(t,r,o,i,l,a,c,s);break;case 1:qe(t,o,s);break;case 16:ze(t,s),L(o,r);break;default:Un(t,r,o,i,l,c,s)}break;case 1:switch(n){case 2:pn(r,o,i,l,a,c,s);break;case 1:break;case 16:L(o,r);break;default:gn(r,o,i,l,a,c,s)}break;case 16:switch(n){case 16:Nn(t,r,o);break;case 2:Ze(o,t,s),pn(r,o,i,l,a,c,s);break;case 1:Ze(o,t,s);break;default:Ze(o,t,s),gn(r,o,i,l,a,c,s)}break;default:switch(n){case 16:Je(t,s),L(o,r);break;case 2:en(o,u,t,s),pn(r,o,i,l,a,c,s);break;case 1:en(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&gn(r,o,i,l,a,c,s):0===p?en(o,u,t,s):8===n&&8===e?Tn(t,r,o,i,l,f,p,a,u,c,s):En(t,r,o,i,l,f,p,a,c,s)}}}function Ln(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function An(e,n,t,r,i,l,a,u,s,f){var p=e.state,d=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=S(e,t,n!==p?c(p,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,i)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var m=null,g=cn(e,t,i);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(d,p)),Pn(e.$LI,g,r,e.$CX,l,u,s,f),e.$LI=g,o(e.componentDidUpdate)&&Ln(e,d,p,m,s)}else e.props=t,e.state=n,e.context=i}function In(e,n,t,r,i,l,u,s){var f=n.children=e.children;if(a(f))return;f.$L=u;var d=n.props||p,v=n.ref,h=e.ref,m=f.state;if(!f.$N){if(o(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(m=c(m,f.$PS),f.$PS=null)}An(f,m,d,t,r,i,!1,l,u,s),h!==v&&(Ge(h),Ke(v,f,u))}function Bn(e,n,r,i,l,a,u,c){var s=!0,f=n.props||p,d=n.ref,v=e.props,h=!t(d),m=e.children;if(h&&o(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(v,f)),!1!==s){h&&o(d.onComponentWillUpdate)&&d.onComponentWillUpdate(v,f);var g=ne(fn(n,i));Pn(m,g,r,i,l,a,u,c),n.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(v,f)}else n.children=m}function _n(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function En(e,n,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;d<p;++d)s=n[d],f=e[d],16384&s.flags&&(s=n[d]=q(s)),Pn(f,s,t,r,o,a,u,c),e[d]=s;if(i<l)for(d=p;d<l;++d)16384&(s=n[d]).flags&&(s=n[d]=q(s)),pn(s,t,r,o,a,u,c);else if(i>l)for(d=p;d<i;++d)qe(e[d],t,c)}function Tn(e,n,t,r,o,i,l,a,u,c,s){var f,p,d=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=q(g)),Pn(m,g,t,r,o,a,c,s),e[h]=g,++h>d||h>v)break e;m=e[h],g=n[h]}for(m=e[d],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=q(g)),Pn(m,g,t,r,o,a,c,s),e[d]=g,v--,h>--d||h>v)break e;m=e[d],g=n[v]}}if(h>d){if(h<=v)for(p=(f=v+1)<l?C(n[f],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=q(g)),++h,pn(g,t,r,o,p,c,s)}else if(h>v)for(;h<=d;)qe(e[h++],t,s);else Rn(e,n,r,i,l,d,v,h,t,o,a,u,c,s)}function Rn(e,n,t,r,o,i,l,a,u,c,s,f,p,d){var v,h,m=0,g=0,$=a,y=a,k=i-a+1,x=l-a+1,b=new Int32Array(x+1),w=k===r,P=!1,N=0,D=0;if(o<4||(k|x)<32)for(g=$;g<=i;++g)if(v=e[g],D<x){for(a=y;a<=l;a++)if(h=n[a],v.key===h.key){if(b[a-y]=g+1,w)for(w=!1;$<g;)qe(e[$++],u,d);N>a?P=!0:N=a,16384&h.flags&&(n[a]=h=q(h)),Pn(v,h,u,t,c,s,p,d),++D;break}!w&&a>l&&qe(v,u,d)}else w||qe(v,u,d);else{var V={};for(g=y;g<=l;++g)V[n[g].key]=g;for(g=$;g<=i;++g)if(v=e[g],D<x)if(void 0!==(a=V[v.key])){if(w)for(w=!1;g>$;)qe(e[$++],u,d);b[a-y]=g+1,N>a?P=!0:N=a,16384&(h=n[a]).flags&&(n[a]=h=q(h)),Pn(v,h,u,t,c,s,p,d),++D}else w||qe(v,u,d);else w||qe(v,u,d)}if(w)en(u,f,e,d),gn(n,u,t,c,s,p,d);else if(P){var S=jn(b);for(a=S.length-1,g=x-1;g>=0;g--)0===b[g]?(16384&(h=n[N=g+y]).flags&&(n[N]=h=q(h)),pn(h,u,t,c,(m=N+1)<o?C(n[m],!0):s,p,d)):a<0||g!==S[a]?M(f,h=n[N=g+y],u,(m=N+1)<o?C(n[m],!0):s,d):a--;d.componentWillMove.length>0&&F(d.componentWillMove)}else if(D!==x)for(g=x-1;g>=0;g--)0===b[g]&&(16384&(h=n[N=g+y]).flags&&(n[N]=h=q(h)),pn(h,u,t,c,(m=N+1)<o?C(n[m],!0):s,p,d))}var On=0;function jn(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>On&&(On=u,Ie=new Int32Array(u),Be=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Ie[o]]<n){Be[t]=r,Ie[++o]=t;continue}for(i=0,l=o;i<l;)e[Ie[a=i+l>>1]]<n?i=a+1:l=a;n<e[Ie[i]]&&(i>0&&(Be[t]=Ie[i-1]),Ie[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Ie[i-1];i-- >0;)c[i]=l,l=Be[l],Ie[i]=0;return c}var Hn="undefined"!==typeof document;function Qn(e,n,r,i){var l=[],a=new v,u=n.$V;U.v=!0,t(u)?t(e)||(16384&e.flags&&(e=q(e)),pn(e,n,i,!1,null,l,a),n.$V=e,u=e):t(e)?(qe(u,n,a),n.$V=null):(16384&e.flags&&(e=q(e)),Pn(u,e,n,i,!1,null,l,a),u=n.$V=e),x(l),w(a.componentDidAppear),U.v=!1,o(r)&&r(),o(W.renderComplete)&&W.renderComplete(u,n)}function Xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Qn(e,n,t,r)}function Gn(e){return function(n,t,r,o){e||(e=n),Xn(t,e,r,o)}}Hn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Kn=[],qn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},zn=!1;function Jn(e,n,r,i){var l=e.$PS;if(o(n)&&(n=n(l?c(e.state,l):e.state,e.props,e.context)),t(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)o(r)&&e.$L.push(r.bind(e));else{if(!U.v&&0===Kn.length)return et(e,i),void(o(r)&&r.call(e));if(-1===Kn.indexOf(e)&&Kn.push(e),i&&(e.$F=!0),zn||(zn=!0,qn(Zn)),o(r)){var u=e.$QU;u||(u=e.$QU=[]),u.push(r)}}}function Yn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function Zn(){var e;for(zn=!1;e=Kn.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,et(e,n),e.$QU&&Yn(e)}}function et(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new v;U.v=!0,An(e,c(e.state,t),e.props,C(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),x(r),w(o.componentDidAppear),U.v=!1}else e.state=e.$PS,e.$PS=null}var nt=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||p,this.context=n||p};nt.prototype.forceUpdate=function(e){if(this.$UN)return;Jn(this,{},e,!0)},nt.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Jn(this,e,n,!1)},nt.prototype.render=function(e,n,t){return null};var tt="8.0.3";exports.AnimationQueues=v,exports.Component=nt,exports.EMPTY_OBJ=p,exports.Fragment=d,exports._CI=sn,exports._HI=ne,exports._M=pn,exports._MCCC=bn,exports._ME=mn,exports._MFCC=wn,exports._MP=un,exports._MR=Ke,exports._RFC=fn,exports.__render=Qn,exports.createComponentVNode=H,exports.createFragment=X,exports.createPortal=J,exports.createRef=Qe,exports.createRenderer=Gn,exports.createTextVNode=Q,exports.createVNode=T,exports.directClone=q,exports.findDOMFromVNode=C,exports.forwardRef=Xe,exports.getFlagsForElementVnode=Z,exports.linkEvent=s,exports.normalizeProps=G,exports.options=W,exports.render=Xn,exports.rerender=Zn,exports.version=tt;

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

!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports):"function"===typeof define&&define.amd?define(["exports"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{})}(this,(function(e){"use strict";var n=Array.isArray;function t(e){var n=typeof e;return"string"===n||"number"===n}function r(e){return void 0===e||null===e}function o(e){return null===e||!1===e||!0===e||void 0===e}function i(e){return"function"===typeof e}function l(e){return"string"===typeof e}function a(e){return null===e}function u(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function c(e){return!a(e)&&"object"===typeof e}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){a(t)?p(e,n):e.insertBefore(n,t)}function h(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function y(e){for(var n=0;n<e.length;n++)e[n]()}function $(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function k(e,n){for(var t;e;){if(1521&(t=e.flags))return e.dom;e=$(e,n,t)}return null}function b(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&i(n)&&n()}))}function C(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];v(r.parent,r.dom,r.next)}e.splice(0,e.length)}function w(e,n,t){do{var r=e.flags;if(1521&r)return void(t&&e.dom.parentNode!==n||g(n,e.dom));var o=e.children;if(4&r&&(e=o.$LI),8&r&&(e=o),8192&r){if(2!==e.childFlags){for(var i=0,l=o.length;i<l;++i)w(o[i],n,!1);return}e=o}}while(e)}function F(e,n){return function(){w(e,n,!0)}}function P(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,F(e,n)):w(e,n,!1)}function N(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function x(e,n,t,o,l){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(r(a)||!i(a.componentWillMove)&&!i(a.onComponentWillMove)?v(t,n.dom,o):N(l,e,a,n.dom,t,o,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d<p;++d)x(e,s[d],t,o,l);return}n=s}}while(n)}function D(e,n,t){if(e.constructor.getDerivedStateFromProps)return u(t,e.constructor.getDerivedStateFromProps(n,t));return t}var V={v:!1},M={componentComparator:null,createVNode:null,renderComplete:null};function S(e,n){e.textContent=n}function U(e,n){return c(e)&&e.event===n.event&&e.data===n.data}function W(e,n){for(var t in n)void 0===e[t]&&(e[t]=n[t]);return e}function I(e,n){return!!i(e)&&(e(n),!0)}var L="$";function A(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function B(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new A(u,r,t,e,l,i,a,n);return M.createVNode&&M.createVNode(c),0===u&&G(c,c.children),c}function _(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return W(t,o)}function E(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return W(t,o)}function T(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}function R(e,n){return new A(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function O(e,n,t){var r=B(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=Q(),r.childFlags=2;break;case 16:r.children=[R(e)],r.childFlags=4}return r}function j(e){var n=e.children,t=e.childFlags;return O(2===t?H(n):n.map(H),t,e.key)}function H(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new A(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return j(e)}function Q(){return R("",null)}function X(e,r,i,u){for(var c=e.length;i<c;i++){var f=e[i];if(!o(f)){var s=u+L+i;if(n(f))X(f,r,0,s);else{if(t(f))f=R(f,s);else{var d=f.key,p=l(d)&&d[0]===L;(81920&f.flags||p)&&(f=H(f)),f.flags|=65536,p?d.substring(0,u.length)!==u&&(f.key=u+d):a(d)?f.key=s:f.key=u+d}r.push(f)}}}}function G(e,r){var i,u=1;if(o(r))i=r;else if(t(r))u=16,i=r;else if(n(r)){for(var c=r.length,f=0;f<c;++f){var s=r[f];if(o(s)||n(s)){i=i||r.slice(0,f),X(r,i,f,"");break}if(t(s))(i=i||r.slice(0,f)).push(R(s,L+f));else{var d=s.key,p=(81920&s.flags)>0,v=a(d),h=l(d)&&d[0]===L;p||v||h?(i=i||r.slice(0,f),(p||h)&&(s=H(s)),(v||h)&&(s.key=L+f),i.push(s)):i&&i.push(s),s.flags|=65536}}u=0===(i=i||r).length?1:8}else(i=r).flags|=65536,81920&r.flags&&(i=H(r)),u=2;return e.children=i,e.childFlags=u,e}function K(e){if(o(e)||t(e))return R(e,null);if(n(e))return O(e,0,null);return 16384&e.flags?H(e):e}var q="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",J={"xlink:actuate":q,"xlink:arcrole":q,"xlink:href":q,"xlink:role":q,"xlink:show":q,"xlink:title":q,"xlink:type":q,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(i(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function ie(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function le(e,n,t,r){var o=ie(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!a(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();le(n,!0,e,fe(n))}}function de(e){return function(n){le(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||f,a=r.dom;if(l(e))he(o,e,t);else for(var u=0;u<e.length;++u)he(o,e[u],t);if(i(n)){var c=this.$V,s=c.props||f;n(s,a,!1,c)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function ge(e,n,t){var r="$"+n,o=e[r];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[r]=null}i(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function ye(e){return"checkbox"===e||"radio"===e}var $e=me("onInput",we),ke=me(["onClick","onChange"],we);function be(e){e.stopPropagation()}function Ce(e,n){ye(n.type)?(ge(e,"change",ke),ge(e,"click",be)):ge(e,"input",$e)}function we(e,n){var t=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!r(o);t&&t!==n.type&&n.setAttribute("type",t),r(l)||l===n.multiple||(n.multiple=l),r(a)||u||(n.defaultValue=a+""),ye(t)?(u&&(n.value=o),r(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):r(i)||(n.checked=i)}function Fe(e,n){if("option"===e.type)Pe(e,n);else{var t=e.children,r=e.flags;if(4&r)Fe(t.$LI,n);else if(8&r)Fe(t,n);else if(2===e.childFlags)Fe(t,n);else if(12&e.childFlags)for(var o=0,i=t.length;o<i;++o)Fe(t[o],n)}}function Pe(e,t){var o=e.props||f,i=e.dom;i.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?i.selected=!0:r(t)&&r(o.selected)||(i.selected=o.selected||!1)}be.wrapped=!0;var Ne=me("onChange",De);function xe(e){ge(e,"change",Ne)}function De(e,n,t,o){var i=Boolean(e.multiple);r(e.multiple)||i===n.multiple||(n.multiple=i);var l=e.selectedIndex;if(-1===l&&(n.selectedIndex=-1),1!==o.childFlags){var a=e.value;"number"===typeof l&&l>-1&&n.options[l]&&(a=n.options[l].value),t&&r(a)&&(a=e.defaultValue),Fe(o,a)}}var Ve,Me,Se=me("onInput",Ie),Ue=me("onChange");function We(e,n){ge(e,"input",Se),n.onChange&&ge(e,"change",Ue)}function Ie(e,n,t){var o=e.value,i=n.value;if(r(o)){if(t){var l=e.defaultValue;r(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Le(e,n,t,r,o,i){64&e?we(r,t):256&e?De(r,t,o,n):128&e&&Ie(r,t,o),i&&(t.$V=n)}function Ae(e,n,t){64&e?Ce(n,t):256&e?xe(n):128&e&&We(n,t)}function Be(e){return e.type&&ye(e.type)?!r(e.checked):!r(e.value)}function _e(e){e&&!I(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push((function(){I(e,n)||void 0===e.current||(e.current=n)}))}function Te(e,n,t){Re(e,t),P(e,n,t)}function Re(e,n){var t,o=e.flags,l=e.children;if(481&o){t=e.ref;var u=e.props;_e(t);var c=e.childFlags;if(!a(u))for(var d=Object.keys(u),p=0,v=d.length;p<v;p++){var h=d[p];ne[h]&&re(h,e.dom)}12&c?Oe(l,n):2===c&&Re(l,n)}else if(l)if(4&o){i(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;i(l.componentWillDisappear)&&(m=new s,Xe(n,l,l.$LI.dom,o,void 0)),_e(e.ref),l.$UN=!0,Re(l.$LI,m)}else if(8&o){var g=n;if(!r(t=e.ref)){var y=null;i(t.onComponentWillUnmount)&&(y=k(e,!0),t.onComponentWillUnmount(y,e.props||f)),i(t.onComponentWillDisappear)&&(g=new s,Xe(n,t,y=y||k(e,!0),o,e.props))}Re(l,g)}else 1024&o?Te(l,e.ref,n):8192&o&&12&e.childFlags&&Oe(l,n)}function Oe(e,n){for(var t=0,r=e.length;t<r;++t)Re(e[t],n)}function je(e,n){return function(){if(n)for(var t=0;t<e.length;t++)w(e[t],n,!1)}}function He(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,je(n,e)):e.textContent=""}function Qe(e,n,t,r){Oe(t,r),8192&n.flags?P(n,e,r):He(e,t,r)}function Xe(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Ge(e){var n=e.event;return function(t){n(e.data,t)}}function Ke(e,n,t,r){if(c(t)){if(U(n,t))return;t=Ge(t)}ge(r,d(e),t)}function qe(e,n,t){if(r(n))return void t.removeAttribute("style");var o,i,a=t.style;if(l(n))return void(a.cssText=n);if(r(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)r(n[o])&&a.removeProperty(o)}}function ze(e,n,t,o,i){var l=e&&e.__html||"",u=n&&n.__html||"";l!==u&&(r(u)||ve(o,u)||(a(t)||(12&t.childFlags?Oe(t.children,i):2===t.childFlags&&Re(t.children,i),t.children=null,t.childFlags=1),o.innerHTML=u))}function Je(e,n,t,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=r(t)?"":t;o[e]!==c&&(o[e]=c);break;case"style":qe(n,t,o);break;case"dangerouslySetInnerHTML":ze(n,t,a,o,u);break;default:ne[e]?oe(e,n,t,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ke(e,n,t,o):r(t)?o.removeAttribute(e):i&&J[e]?o.setAttributeNS(J[e],e,t):o.setAttribute(e,t)}}function Ye(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=Be(t))&&Ae(n,r,t),t)Je(u,null,t[u],r,o,l,null,i);a&&Le(n,e,r,t,!0,l)}function Ze(e,n,t){var r=K(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=u(t,e.getChildContext())),e.$CX=o,r}function en(e,n,t,r,o,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=D(u,t,u.state);else if(i(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var d=u.state;if(a(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?an(e,n,t,r,o,i,l):4&a?cn(e,n,t,r,o,i,l):8&a?fn(e,n,t,r,o,i,l):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,i,l):1024&a&&rn(e,t,n,o,i,l)}function rn(e,n,t,r,o,i){tn(e.children,e.ref,n,!1,null,o,i);var l=Q();ln(l,t,r),e.dom=l.dom}function on(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=Q()),2===u?tn(a,t,n,r,o,i,l):un(a,t,n,r,o,i,l)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||v(n,r,t)}function an(e,n,t,o,i,l,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(r(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)S(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=H(m)),tn(m,p,t,g,null,l,u)):8!==d&&4!==d||un(m,p,t,g,null,l,u)}a(n)||v(n,p,i),a(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,l)}function un(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=H(u)),tn(u,n,t,r,o,i,l)}}function cn(e,n,t,r,o,l,a){var u=en(e,e.type,e.props||f,t,r,l),c=a;i(u.componentDidAppear)&&(c=new s),tn(u.$LI,n,u.$CX,r,o,l,c),pn(e.ref,u,l,a)}function fn(e,n,t,o,l,a,u){var c=e.ref,f=u;!r(c)&&i(c.onComponentDidAppear)&&(f=new s),tn(e.children=K(nn(e,t)),n,t,o,l,a,f),hn(e,a,u)}function sn(e){return function(){e.componentDidMount()}}function dn(e,n,t,r,o){e.componentDidAppear.push((function(){4&r?n.componentDidAppear(t):8&r&&n.onComponentDidAppear(t,o)}))}function pn(e,n,t,r){Ee(e,n,t),i(n.componentDidMount)&&t.push(sn(n)),i(n.componentDidAppear)&&dn(r,n,n.$LI.dom,4,void 0)}function vn(e,n){return function(){e.onComponentDidMount(k(n,!0),n.props||f)}}function hn(e,n,t){var o=e.ref;r(o)||(I(o.onComponentWillMount,e.props||f),i(o.onComponentDidMount)&&n.push(vn(o,e)),i(o.onComponentDidAppear)&&dn(t,o,k(e,!0),8,e.props))}function mn(e,n,t,r,o,i,l){Re(e,l),0!==(n.flags&e.flags&1521)?(tn(n,null,r,o,null,i,l),m(t,n.dom,e.dom)):(tn(n,t,r,o,k(e,!0),i,l),P(e,t,l))}function gn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?mn(e,n,t,r,o,l,a):tn(n,t,r,o,i,l,a):481&u?Cn(e,n,r,o,u,l,a):4&u?xn(e,n,t,r,o,i,l,a):8&u?Dn(e,n,t,r,o,i,l,a):16&u?Vn(e,n):8192&u?kn(e,n,t,r,o,l,a):bn(e,n,r,l,a)}function yn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:S(t,n))}function $n(e,n){e.textContent!==n&&(e.textContent=n)}function kn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,f=n.childFlags,s=null;12&f&&0===u.length&&(f=n.childFlags=2,u=n.children=Q());var d=0!==(2&f);if(12&c){var p=a.length;(8&c&&8&f||d||!d&&u.length>p)&&(s=k(a[p-1],!1).nextSibling)}Fn(c,f,a,u,t,r,o,s,e,i,l)}function bn(e,n,t,r,i){var l=e.ref,a=n.ref,u=n.children;if(Fn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,r,i),n.dom=e.dom,l!==a&&!o(u)){var c=u.dom;g(l,c),p(a,c)}}function Cn(e,n,t,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&i)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&i)>0)&&(v=Be(u)),u){var g=h[m],y=u[m];g!==y&&Je(m,g,y,c,o,v,e,a)}if(h!==f)for(var $ in h)r(u[$])&&!r(h[$])&&Je($,h[$],null,c,o,v,e,a)}var k=n.children,b=n.className;e.className!==b&&(r(b)?c.removeAttribute("class"):o?c.setAttribute("class",b):c.className=b),4096&i?$n(c,k):Fn(e.childFlags,n.childFlags,e.children,k,c,t,o&&"foreignObject"!==n.type,null,e,l,a),p&&Le(i,n,c,u,!1,v);var C=n.ref,w=e.ref;w!==C&&(_e(w),Ee(C,c,l))}function wn(e,n,t,r,o,i,l){Re(e,l),un(n,t,r,o,k(e,!0),i,l),P(e,t,l)}function Fn(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,i,l,a,c,f);break;case 1:Te(t,o,f);break;case 16:Re(t,f),S(o,r);break;default:wn(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:tn(r,o,i,l,a,c,f);break;case 1:break;case 16:S(o,r);break;default:un(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:He(o,t,f),tn(r,o,i,l,a,c,f);break;case 1:He(o,t,f);break;default:He(o,t,f),un(r,o,i,l,a,c,f)}break;default:switch(n){case 16:Oe(t,f),S(o,r);break;case 2:Qe(o,u,t,f),tn(r,o,i,l,a,c,f);break;case 1:Qe(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,i,l,a,c,f):0===d?Qe(o,u,t,f):8===n&&8===e?Sn(t,r,o,i,l,s,d,a,u,c,f):Mn(t,r,o,i,l,s,d,a,c,f)}}}function Pn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function Nn(e,n,t,r,o,l,a,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=i(e.shouldComponentUpdate);if(v&&(n=D(e,t,n!==d?u(d,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,o)){!v&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var m=null,g=Ze(e,t,o);v&&i(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,l,c,f,s),e.$LI=g,i(e.componentDidUpdate)&&Pn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=o}function xn(e,n,t,r,o,l,c,s){var d=n.children=e.children;if(a(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(i(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}a(d.$PS)||(m=u(m,d.$PS),d.$PS=null)}Nn(d,m,p,t,r,o,!1,l,c,s),h!==v&&(_e(h),Ee(v,d,c))}function Dn(e,n,t,o,l,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!r(p),m=e.children;if(h&&i(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&i(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=K(nn(n,o));gn(m,g,t,o,l,a,u,c),n.children=g,h&&i(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Vn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Mn(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;p<d;++p)f=n[p],s=e[p],16384&f.flags&&(f=n[p]=H(f)),gn(s,f,t,r,o,a,u,c),e[p]=f;if(i<l)for(p=d;p<l;++p)16384&(f=n[p]).flags&&(f=n[p]=H(f)),tn(f,t,r,o,a,u,c);else if(i>l)for(p=d;p<i;++p)Te(e[p],t,c)}function Sn(e,n,t,r,o,i,l,a,u,c,f){var s,d,p=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[h]=g,++h>p||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)<l?k(n[s],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=H(g)),++h,tn(g,t,r,o,d,c,f)}else if(h>v)for(;h<=p;)Te(e[h++],t,f);else Un(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function Un(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,$=a,b=i-a+1,w=l-a+1,F=new Int32Array(w+1),P=b===r,N=!1,D=0,V=0;if(o<4||(b|w)<32)for(g=y;g<=i;++g)if(v=e[g],V<w){for(a=$;a<=l;a++)if(h=n[a],v.key===h.key){if(F[a-$]=g+1,P)for(P=!1;y<g;)Te(e[y++],u,p);D>a?N=!0:D=a,16384&h.flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++V;break}!P&&a>l&&Te(v,u,p)}else P||Te(v,u,p);else{var M={};for(g=$;g<=l;++g)M[n[g].key]=g;for(g=y;g<=i;++g)if(v=e[g],V<w)if(void 0!==(a=M[v.key])){if(P)for(P=!1;g>y;)Te(e[y++],u,p);F[a-$]=g+1,D>a?N=!0:D=a,16384&(h=n[a]).flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++V}else P||Te(v,u,p);else P||Te(v,u,p)}if(P)Qe(u,s,e,p),un(n,u,t,c,f,d,p);else if(N){var S=In(F);for(a=S.length-1,g=w-1;g>=0;g--)0===F[g]?(16384&(h=n[D=g+$]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p)):a<0||g!==S[a]?x(s,h=n[D=g+$],u,(m=D+1)<o?k(n[m],!0):f,p):a--;p.componentWillMove.length>0&&C(p.componentWillMove)}else if(V!==w)for(g=w-1;g>=0;g--)0===F[g]&&(16384&(h=n[D=g+$]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p))}var Wn=0;function In(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Wn&&(Wn=u,Ve=new Int32Array(u),Me=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Ve[o]]<n){Me[t]=r,Ve[++o]=t;continue}for(i=0,l=o;i<l;)e[Ve[a=i+l>>1]]<n?i=a+1:l=a;n<e[Ve[i]]&&(i>0&&(Me[t]=Ve[i-1]),Ve[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Ve[i-1];i-- >0;)c[i]=l,l=Me[l],Ve[i]=0;return c}function Ln(e,n,t,o){var l=[],a=new s,u=n.$V;V.v=!0,r(u)?r(e)||(16384&e.flags&&(e=H(e)),tn(e,n,o,!1,null,l,a),n.$V=e,u=e):r(e)?(Te(u,n,a),n.$V=null):(16384&e.flags&&(e=H(e)),gn(u,e,n,o,!1,null,l,a),u=n.$V=e),y(l),b(a.componentDidAppear),V.v=!1,i(t)&&t(),i(M.renderComplete)&&M.renderComplete(u,n)}function An(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Ln(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Bn=[],_n="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},En=!1;function Tn(e,n,t,o){var l=e.$PS;if(i(n)&&(n=n(l?u(e.state,l):e.state,e.props,e.context)),r(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!V.v&&0===Bn.length)return jn(e,o),void(i(t)&&t.call(e));if(-1===Bn.indexOf(e)&&Bn.push(e),o&&(e.$F=!0),En||(En=!0,_n(On)),i(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Rn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function On(){var e;for(En=!1;e=Bn.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,jn(e,n),e.$QU&&Rn(e)}}function jn(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new s;V.v=!0,Nn(e,u(e.state,t),e.props,k(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),y(r),b(o.componentDidAppear),V.v=!1}else e.state=e.$PS,e.$PS=null}var Hn=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||f,this.context=n||f};Hn.prototype.forceUpdate=function(e){if(this.$UN)return;Tn(this,{},e,!0)},Hn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Tn(this,e,n,!1)},Hn.prototype.render=function(e,n,t){return null},e.AnimationQueues=s,e.Component=Hn,e.EMPTY_OBJ=f,e.Fragment="$F",e._CI=en,e._HI=K,e._M=tn,e._MCCC=pn,e._ME=an,e._MFCC=hn,e._MP=Ye,e._MR=Ee,e._RFC=nn,e.__render=Ln,e.createComponentVNode=function(e,n,t,r,o){var i=new A(1,null,null,e=T(e,n),r,E(e,n,t),_(e,n,o),n);return M.createVNode&&M.createVNode(i),i},e.createFragment=O,e.createPortal=function(e,n){var t=K(e);return B(1024,1024,null,t,0,null,t.key,n)},e.createRef=function(){return{current:null}},e.createRenderer=function(e){return function(n,t,r,o){e||(e=n),An(t,e,r,o)}},e.createTextVNode=R,e.createVNode=B,e.directClone=H,e.findDOMFromVNode=k,e.forwardRef=function(e){return{render:e}},e.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},e.linkEvent=function(e,n){if(i(n))return{data:e,event:n};return null},e.normalizeProps=function(e){var n=e.props;if(n){var t=e.flags;481&t&&(void 0!==n.children&&r(e.children)&&G(e,n.children),void 0!==n.className&&(r(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&t?u(e.ref,n.ref):n.ref,n.ref=void 0)}return e},e.options=M,e.render=An,e.rerender=On,e.version="8.0.2",Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports):"function"===typeof define&&define.amd?define(["exports"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{})}(this,(function(e){"use strict";var n=Array.isArray;function t(e){var n=typeof e;return"string"===n||"number"===n}function r(e){return void 0===e||null===e}function o(e){return null===e||!1===e||!0===e||void 0===e}function i(e){return"function"===typeof e}function l(e){return"string"===typeof e}function a(e){return null===e}function u(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function c(e){return!a(e)&&"object"===typeof e}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){a(t)?p(e,n):e.insertBefore(n,t)}function h(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function y(e){for(var n=0;n<e.length;n++)e[n]()}function $(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function k(e,n){for(var t;e;){if(1521&(t=e.flags))return e.dom;e=$(e,n,t)}return null}function b(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&i(n)&&n()}))}function C(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];v(r.parent,r.dom,r.next)}e.splice(0,e.length)}function w(e,n,t){do{var r=e.flags;if(1521&r)return void(t&&e.dom.parentNode!==n||g(n,e.dom));var o=e.children;if(4&r&&(e=o.$LI),8&r&&(e=o),8192&r){if(2!==e.childFlags){for(var i=0,l=o.length;i<l;++i)w(o[i],n,!1);return}e=o}}while(e)}function F(e,n){return function(){w(e,n,!0)}}function P(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,F(e,n)):w(e,n,!1)}function N(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function x(e,n,t,o,l){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(r(a)||!i(a.componentWillMove)&&!i(a.onComponentWillMove)?v(t,n.dom,o):N(l,e,a,n.dom,t,o,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d<p;++d)x(e,s[d],t,o,l);return}n=s}}while(n)}function D(e,n,t){if(e.constructor.getDerivedStateFromProps)return u(t,e.constructor.getDerivedStateFromProps(n,t));return t}var V={v:!1},M={componentComparator:null,createVNode:null,renderComplete:null};function S(e,n){e.textContent=n}function U(e,n){return c(e)&&e.event===n.event&&e.data===n.data}function W(e,n){for(var t in n)void 0===e[t]&&(e[t]=n[t]);return e}function I(e,n){return!!i(e)&&(e(n),!0)}var L="$";function A(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function B(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new A(u,r,t,e,l,i,a,n);return M.createVNode&&M.createVNode(c),0===u&&G(c,c.children),c}function _(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return W(t,o)}function E(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return W(t,o)}function T(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}function R(e,n){return new A(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function O(e,n,t){var r=B(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=Q(),r.childFlags=2;break;case 16:r.children=[R(e)],r.childFlags=4}return r}function j(e){var n=e.children,t=e.childFlags;return O(2===t?H(n):n.map(H),t,e.key)}function H(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new A(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return j(e)}function Q(){return R("",null)}function X(e,r,i,u){for(var c=e.length;i<c;i++){var f=e[i];if(!o(f)){var s=u+L+i;if(n(f))X(f,r,0,s);else{if(t(f))f=R(f,s);else{var d=f.key,p=l(d)&&d[0]===L;(81920&f.flags||p)&&(f=H(f)),f.flags|=65536,p?d.substring(0,u.length)!==u&&(f.key=u+d):a(d)?f.key=s:f.key=u+d}r.push(f)}}}}function G(e,r){var i,u=1;if(o(r))i=r;else if(t(r))u=16,i=r;else if(n(r)){for(var c=r.length,f=0;f<c;++f){var s=r[f];if(o(s)||n(s)){i=i||r.slice(0,f),X(r,i,f,"");break}if(t(s))(i=i||r.slice(0,f)).push(R(s,L+f));else{var d=s.key,p=(81920&s.flags)>0,v=a(d),h=l(d)&&d[0]===L;p||v||h?(i=i||r.slice(0,f),(p||h)&&(s=H(s)),(v||h)&&(s.key=L+f),i.push(s)):i&&i.push(s),s.flags|=65536}}u=0===(i=i||r).length?1:8}else(i=r).flags|=65536,81920&r.flags&&(i=H(r)),u=2;return e.children=i,e.childFlags=u,e}function K(e){if(o(e)||t(e))return R(e,null);if(n(e))return O(e,0,null);return 16384&e.flags?H(e):e}var q="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",J={"xlink:actuate":q,"xlink:arcrole":q,"xlink:href":q,"xlink:role":q,"xlink:show":q,"xlink:title":q,"xlink:type":q,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(i(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function ie(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function le(e,n,t,r){var o=ie(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!a(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();le(n,!0,e,fe(n))}}function de(e){return function(n){le(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||f,a=r.dom;if(l(e))he(o,e,t);else for(var u=0;u<e.length;++u)he(o,e[u],t);if(i(n)){var c=this.$V,s=c.props||f;n(s,a,!1,c)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function ge(e,n,t){var r="$"+n,o=e[r];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[r]=null}i(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function ye(e){return"checkbox"===e||"radio"===e}var $e=me("onInput",we),ke=me(["onClick","onChange"],we);function be(e){e.stopPropagation()}function Ce(e,n){ye(n.type)?(ge(e,"change",ke),ge(e,"click",be)):ge(e,"input",$e)}function we(e,n){var t=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!r(o);t&&t!==n.type&&n.setAttribute("type",t),r(l)||l===n.multiple||(n.multiple=l),r(a)||u||(n.defaultValue=a+""),ye(t)?(u&&(n.value=o),r(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):r(i)||(n.checked=i)}function Fe(e,n){if("option"===e.type)Pe(e,n);else{var t=e.children,r=e.flags;if(4&r)Fe(t.$LI,n);else if(8&r)Fe(t,n);else if(2===e.childFlags)Fe(t,n);else if(12&e.childFlags)for(var o=0,i=t.length;o<i;++o)Fe(t[o],n)}}function Pe(e,t){var o=e.props||f,i=e.dom;i.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?i.selected=!0:r(t)&&r(o.selected)||(i.selected=o.selected||!1)}be.wrapped=!0;var Ne=me("onChange",De);function xe(e){ge(e,"change",Ne)}function De(e,n,t,o){var i=Boolean(e.multiple);r(e.multiple)||i===n.multiple||(n.multiple=i);var l=e.selectedIndex;if(-1===l&&(n.selectedIndex=-1),1!==o.childFlags){var a=e.value;"number"===typeof l&&l>-1&&n.options[l]&&(a=n.options[l].value),t&&r(a)&&(a=e.defaultValue),Fe(o,a)}}var Ve,Me,Se=me("onInput",Ie),Ue=me("onChange");function We(e,n){ge(e,"input",Se),n.onChange&&ge(e,"change",Ue)}function Ie(e,n,t){var o=e.value,i=n.value;if(r(o)){if(t){var l=e.defaultValue;r(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Le(e,n,t,r,o,i){64&e?we(r,t):256&e?De(r,t,o,n):128&e&&Ie(r,t,o),i&&(t.$V=n)}function Ae(e,n,t){64&e?Ce(n,t):256&e?xe(n):128&e&&We(n,t)}function Be(e){return e.type&&ye(e.type)?!r(e.checked):!r(e.value)}function _e(e){e&&!I(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push((function(){I(e,n)||void 0===e.current||(e.current=n)}))}function Te(e,n,t){Re(e,t),P(e,n,t)}function Re(e,n){var t,o=e.flags,l=e.children;if(481&o){t=e.ref;var u=e.props;_e(t);var c=e.childFlags;if(!a(u))for(var d=Object.keys(u),p=0,v=d.length;p<v;p++){var h=d[p];ne[h]&&re(h,e.dom)}12&c?Oe(l,n):2===c&&Re(l,n)}else if(l)if(4&o){i(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;i(l.componentWillDisappear)&&(m=new s,Xe(n,l,l.$LI.dom,o,void 0)),_e(e.ref),l.$UN=!0,Re(l.$LI,m)}else if(8&o){var g=n;if(!r(t=e.ref)){var y=null;i(t.onComponentWillUnmount)&&(y=k(e,!0),t.onComponentWillUnmount(y,e.props||f)),i(t.onComponentWillDisappear)&&(g=new s,Xe(n,t,y=y||k(e,!0),o,e.props))}Re(l,g)}else 1024&o?Te(l,e.ref,n):8192&o&&12&e.childFlags&&Oe(l,n)}function Oe(e,n){for(var t=0,r=e.length;t<r;++t)Re(e[t],n)}function je(e,n){return function(){if(n)for(var t=0;t<e.length;t++)w(e[t],n,!1)}}function He(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,je(n,e)):e.textContent=""}function Qe(e,n,t,r){Oe(t,r),8192&n.flags?P(n,e,r):He(e,t,r)}function Xe(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Ge(e){var n=e.event;return function(t){n(e.data,t)}}function Ke(e,n,t,r){if(c(t)){if(U(n,t))return;t=Ge(t)}ge(r,d(e),t)}function qe(e,n,t){if(r(n))return void t.removeAttribute("style");var o,i,a=t.style;if(l(n))return void(a.cssText=n);if(r(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)r(n[o])&&a.removeProperty(o)}}function ze(e,n,t,o,i){var l=e&&e.__html||"",u=n&&n.__html||"";l!==u&&(r(u)||ve(o,u)||(a(t)||(12&t.childFlags?Oe(t.children,i):2===t.childFlags&&Re(t.children,i),t.children=null,t.childFlags=1),o.innerHTML=u))}function Je(e,n,t,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=r(t)?"":t;o[e]!==c&&(o[e]=c);break;case"style":qe(n,t,o);break;case"dangerouslySetInnerHTML":ze(n,t,a,o,u);break;default:ne[e]?oe(e,n,t,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ke(e,n,t,o):r(t)?o.removeAttribute(e):i&&J[e]?o.setAttributeNS(J[e],e,t):o.setAttribute(e,t)}}function Ye(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=Be(t))&&Ae(n,r,t),t)Je(u,null,t[u],r,o,l,null,i);a&&Le(n,e,r,t,!0,l)}function Ze(e,n,t){var r=K(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=u(t,e.getChildContext())),e.$CX=o,r}function en(e,n,t,r,o,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=D(u,t,u.state);else if(i(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var d=u.state;if(a(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?an(e,n,t,r,o,i,l):4&a?cn(e,n,t,r,o,i,l):8&a?fn(e,n,t,r,o,i,l):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,i,l):1024&a&&rn(e,t,n,o,i,l)}function rn(e,n,t,r,o,i){tn(e.children,e.ref,n,!1,null,o,i);var l=Q();ln(l,t,r),e.dom=l.dom}function on(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=Q()),2===u?tn(a,t,n,r,o,i,l):un(a,t,n,r,o,i,l)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||v(n,r,t)}function an(e,n,t,o,i,l,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(r(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)S(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=H(m)),tn(m,p,t,g,null,l,u)):8!==d&&4!==d||un(m,p,t,g,null,l,u)}a(n)||v(n,p,i),a(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,l)}function un(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=H(u)),tn(u,n,t,r,o,i,l)}}function cn(e,n,t,r,o,l,a){var u=en(e,e.type,e.props||f,t,r,l),c=a;i(u.componentDidAppear)&&(c=new s),tn(u.$LI,n,u.$CX,r,o,l,c),pn(e.ref,u,l,a)}function fn(e,n,t,o,l,a,u){var c=e.ref,f=u;!r(c)&&i(c.onComponentDidAppear)&&(f=new s),tn(e.children=K(nn(e,t)),n,t,o,l,a,f),hn(e,a,u)}function sn(e){return function(){e.componentDidMount()}}function dn(e,n,t,r,o){e.componentDidAppear.push((function(){4&r?n.componentDidAppear(t):8&r&&n.onComponentDidAppear(t,o)}))}function pn(e,n,t,r){Ee(e,n,t),i(n.componentDidMount)&&t.push(sn(n)),i(n.componentDidAppear)&&dn(r,n,n.$LI.dom,4,void 0)}function vn(e,n){return function(){e.onComponentDidMount(k(n,!0),n.props||f)}}function hn(e,n,t){var o=e.ref;r(o)||(I(o.onComponentWillMount,e.props||f),i(o.onComponentDidMount)&&n.push(vn(o,e)),i(o.onComponentDidAppear)&&dn(t,o,k(e,!0),8,e.props))}function mn(e,n,t,r,o,i,l){Re(e,l),0!==(n.flags&e.flags&1521)?(tn(n,null,r,o,null,i,l),m(t,n.dom,e.dom)):(tn(n,t,r,o,k(e,!0),i,l),P(e,t,l))}function gn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?mn(e,n,t,r,o,l,a):tn(n,t,r,o,i,l,a):481&u?Cn(e,n,r,o,u,l,a):4&u?xn(e,n,t,r,o,i,l,a):8&u?Dn(e,n,t,r,o,i,l,a):16&u?Vn(e,n):8192&u?kn(e,n,t,r,o,l,a):bn(e,n,r,l,a)}function yn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:S(t,n))}function $n(e,n){e.textContent!==n&&(e.textContent=n)}function kn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,f=n.childFlags,s=null;12&f&&0===u.length&&(f=n.childFlags=2,u=n.children=Q());var d=0!==(2&f);if(12&c){var p=a.length;(8&c&&8&f||d||!d&&u.length>p)&&(s=k(a[p-1],!1).nextSibling)}Fn(c,f,a,u,t,r,o,s,e,i,l)}function bn(e,n,t,r,i){var l=e.ref,a=n.ref,u=n.children;if(Fn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,r,i),n.dom=e.dom,l!==a&&!o(u)){var c=u.dom;g(l,c),p(a,c)}}function Cn(e,n,t,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&i)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&i)>0)&&(v=Be(u)),u){var g=h[m],y=u[m];g!==y&&Je(m,g,y,c,o,v,e,a)}if(h!==f)for(var $ in h)r(u[$])&&!r(h[$])&&Je($,h[$],null,c,o,v,e,a)}var k=n.children,b=n.className;e.className!==b&&(r(b)?c.removeAttribute("class"):o?c.setAttribute("class",b):c.className=b),4096&i?$n(c,k):Fn(e.childFlags,n.childFlags,e.children,k,c,t,o&&"foreignObject"!==n.type,null,e,l,a),p&&Le(i,n,c,u,!1,v);var C=n.ref,w=e.ref;w!==C&&(_e(w),Ee(C,c,l))}function wn(e,n,t,r,o,i,l){Re(e,l),un(n,t,r,o,k(e,!0),i,l),P(e,t,l)}function Fn(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,i,l,a,c,f);break;case 1:Te(t,o,f);break;case 16:Re(t,f),S(o,r);break;default:wn(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:tn(r,o,i,l,a,c,f);break;case 1:break;case 16:S(o,r);break;default:un(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:He(o,t,f),tn(r,o,i,l,a,c,f);break;case 1:He(o,t,f);break;default:He(o,t,f),un(r,o,i,l,a,c,f)}break;default:switch(n){case 16:Oe(t,f),S(o,r);break;case 2:Qe(o,u,t,f),tn(r,o,i,l,a,c,f);break;case 1:Qe(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,i,l,a,c,f):0===d?Qe(o,u,t,f):8===n&&8===e?Sn(t,r,o,i,l,s,d,a,u,c,f):Mn(t,r,o,i,l,s,d,a,c,f)}}}function Pn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function Nn(e,n,t,r,o,l,a,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=i(e.shouldComponentUpdate);if(v&&(n=D(e,t,n!==d?u(d,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,o)){!v&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var m=null,g=Ze(e,t,o);v&&i(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,l,c,f,s),e.$LI=g,i(e.componentDidUpdate)&&Pn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=o}function xn(e,n,t,r,o,l,c,s){var d=n.children=e.children;if(a(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(i(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}a(d.$PS)||(m=u(m,d.$PS),d.$PS=null)}Nn(d,m,p,t,r,o,!1,l,c,s),h!==v&&(_e(h),Ee(v,d,c))}function Dn(e,n,t,o,l,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!r(p),m=e.children;if(h&&i(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&i(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=K(nn(n,o));gn(m,g,t,o,l,a,u,c),n.children=g,h&&i(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Vn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Mn(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;p<d;++p)f=n[p],s=e[p],16384&f.flags&&(f=n[p]=H(f)),gn(s,f,t,r,o,a,u,c),e[p]=f;if(i<l)for(p=d;p<l;++p)16384&(f=n[p]).flags&&(f=n[p]=H(f)),tn(f,t,r,o,a,u,c);else if(i>l)for(p=d;p<i;++p)Te(e[p],t,c)}function Sn(e,n,t,r,o,i,l,a,u,c,f){var s,d,p=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[h]=g,++h>p||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)<l?k(n[s],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=H(g)),++h,tn(g,t,r,o,d,c,f)}else if(h>v)for(;h<=p;)Te(e[h++],t,f);else Un(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function Un(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,$=a,b=i-a+1,w=l-a+1,F=new Int32Array(w+1),P=b===r,N=!1,D=0,V=0;if(o<4||(b|w)<32)for(g=y;g<=i;++g)if(v=e[g],V<w){for(a=$;a<=l;a++)if(h=n[a],v.key===h.key){if(F[a-$]=g+1,P)for(P=!1;y<g;)Te(e[y++],u,p);D>a?N=!0:D=a,16384&h.flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++V;break}!P&&a>l&&Te(v,u,p)}else P||Te(v,u,p);else{var M={};for(g=$;g<=l;++g)M[n[g].key]=g;for(g=y;g<=i;++g)if(v=e[g],V<w)if(void 0!==(a=M[v.key])){if(P)for(P=!1;g>y;)Te(e[y++],u,p);F[a-$]=g+1,D>a?N=!0:D=a,16384&(h=n[a]).flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++V}else P||Te(v,u,p);else P||Te(v,u,p)}if(P)Qe(u,s,e,p),un(n,u,t,c,f,d,p);else if(N){var S=In(F);for(a=S.length-1,g=w-1;g>=0;g--)0===F[g]?(16384&(h=n[D=g+$]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p)):a<0||g!==S[a]?x(s,h=n[D=g+$],u,(m=D+1)<o?k(n[m],!0):f,p):a--;p.componentWillMove.length>0&&C(p.componentWillMove)}else if(V!==w)for(g=w-1;g>=0;g--)0===F[g]&&(16384&(h=n[D=g+$]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p))}var Wn=0;function In(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Wn&&(Wn=u,Ve=new Int32Array(u),Me=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Ve[o]]<n){Me[t]=r,Ve[++o]=t;continue}for(i=0,l=o;i<l;)e[Ve[a=i+l>>1]]<n?i=a+1:l=a;n<e[Ve[i]]&&(i>0&&(Me[t]=Ve[i-1]),Ve[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Ve[i-1];i-- >0;)c[i]=l,l=Me[l],Ve[i]=0;return c}function Ln(e,n,t,o){var l=[],a=new s,u=n.$V;V.v=!0,r(u)?r(e)||(16384&e.flags&&(e=H(e)),tn(e,n,o,!1,null,l,a),n.$V=e,u=e):r(e)?(Te(u,n,a),n.$V=null):(16384&e.flags&&(e=H(e)),gn(u,e,n,o,!1,null,l,a),u=n.$V=e),y(l),b(a.componentDidAppear),V.v=!1,i(t)&&t(),i(M.renderComplete)&&M.renderComplete(u,n)}function An(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Ln(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Bn=[],_n="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},En=!1;function Tn(e,n,t,o){var l=e.$PS;if(i(n)&&(n=n(l?u(e.state,l):e.state,e.props,e.context)),r(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!V.v&&0===Bn.length)return jn(e,o),void(i(t)&&t.call(e));if(-1===Bn.indexOf(e)&&Bn.push(e),o&&(e.$F=!0),En||(En=!0,_n(On)),i(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Rn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function On(){var e;for(En=!1;e=Bn.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,jn(e,n),e.$QU&&Rn(e)}}function jn(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new s;V.v=!0,Nn(e,u(e.state,t),e.props,k(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),y(r),b(o.componentDidAppear),V.v=!1}else e.state=e.$PS,e.$PS=null}var Hn=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||f,this.context=n||f};Hn.prototype.forceUpdate=function(e){if(this.$UN)return;Tn(this,{},e,!0)},Hn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Tn(this,e,n,!1)},Hn.prototype.render=function(e,n,t){return null},e.AnimationQueues=s,e.Component=Hn,e.EMPTY_OBJ=f,e.Fragment="$F",e._CI=en,e._HI=K,e._M=tn,e._MCCC=pn,e._ME=an,e._MFCC=hn,e._MP=Ye,e._MR=Ee,e._RFC=nn,e.__render=Ln,e.createComponentVNode=function(e,n,t,r,o){var i=new A(1,null,null,e=T(e,n),r,E(e,n,t),_(e,n,o),n);return M.createVNode&&M.createVNode(i),i},e.createFragment=O,e.createPortal=function(e,n){var t=K(e);return B(1024,1024,null,t,0,null,t.key,n)},e.createRef=function(){return{current:null}},e.createRenderer=function(e){return function(n,t,r,o){e||(e=n),An(t,e,r,o)}},e.createTextVNode=R,e.createVNode=B,e.directClone=H,e.findDOMFromVNode=k,e.forwardRef=function(e){return{render:e}},e.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},e.linkEvent=function(e,n){if(i(n))return{data:e,event:n};return null},e.normalizeProps=function(e){var n=e.props;if(n){var t=e.flags;481&t&&(void 0!==n.children&&r(e.children)&&G(e,n.children),void 0!==n.className&&(r(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&t?u(e.ref,n.ref):n.ref,n.ref=void 0)}return e},e.options=M,e.render=An,e.rerender=On,e.version="8.0.3",Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "inferno",
"version": "8.0.2",
"version": "8.0.3",
"license": "MIT",

@@ -13,2 +13,6 @@ "description": "An extremely fast, React-like JavaScript library for building modern user interfaces",

},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/inferno"
},
"homepage": "https://github.com/infernojs/inferno#readme",

@@ -61,10 +65,11 @@ "keywords": [

"devDependencies": {
"inferno-utils": "8.0.2"
"inferno-shared": "8.0.3",
"inferno-utils": "8.0.3"
},
"dependencies": {
"inferno-shared": "8.0.2",
"inferno-vnode-flags": "8.0.2",
"csstype": "^3.1.0",
"inferno-vnode-flags": "8.0.3",
"opencollective-postinstall": "^2.0.3"
},
"gitHead": "bd8e39f7837bc68c447779e00a5ef3c98bb0ee76"
"gitHead": "9734d7259ed85fe405530c9602696ba588a8cb86"
}

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

<p align="center"><a href="https://infernojs.org/" target="_blank"><img width="150" alt="Inferno" title="Inferno" src="https://user-images.githubusercontent.com/2021355/36063342-626d7ea8-0e84-11e8-84e1-f22bb3b8c4d5.png"></p>
<p align="center"><a href="https://infernojs.org/" target="_blank"><img width="150" alt="Inferno" title="Inferno" src="https://user-images.githubusercontent.com/2021355/36063342-626d7ea8-0e84-11e8-84e1-f22bb3b8c4d5.png"/></a></p>

@@ -144,5 +144,5 @@ [![Build Status](https://app.travis-ci.com/infernojs/inferno.svg?branch=master)](https://app.travis-ci.com/github/infernojs/inferno)

To tear down inferno application you need to render null on root element.
To tear down inferno application you need to render null on root element.
Rendering `null` will trigger unmount lifecycle hooks for whole vDOM tree and remove global event listeners.
It is important to unmount unused vNode trees to free browser memory.
It is important to unmount unused vNode trees to free browser memory.

@@ -175,4 +175,4 @@ ```jsx

- [**Simple JS Counter** (@github/scorsi)](https://github.com/scorsi/simple-counter-inferno-cerebral-fusebox): SSR Inferno (view) + Cerebral (state manager) + FuseBox (build system/bundler)
- [**Online interface to TMDb movie database** (@codesandbox.io)](https://codesandbox.io/s/9zjo5yx8po): Inferno + [Inferno hyperscript](https://github.com/infernojs/inferno) (view) + [Superagent](https://github.com/visionmedia/superagent) (network requests) + Web component ([custom elements v1](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)) + [state-transducer](https://github.com/brucou/state-transducer)
(state machine library)
- [**Online interface to TMDb movie database** (@codesandbox.io)](https://codesandbox.io/s/9zjo5yx8po): Inferno + [Inferno hyperscript](https://github.com/infernojs/inferno) (view) + [Superagent](https://github.com/visionmedia/superagent) (network requests) + Web component ([custom elements v1](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)) + [state-transducer](https://github.com/brucou/state-transducer)
(state machine library)
- [**Lemmy - a self-hostable reddit alternative** (front end in Inferno)](https://github.com/dessalines/lemmy)

@@ -307,3 +307,3 @@

return <div><input type="text" onClick={ linkEvent(props, handleClick) } /><div>;
}
}
```

@@ -324,4 +324,4 @@

return <div><input type="text" onClick={ linkEvent(this, handleClick) } /><div>;
}
}
}
}
```

@@ -408,3 +408,3 @@

render() {
...
return <div>My Component</div>
}

@@ -427,9 +427,9 @@ }

export function Static() {
return <div>1</div>;
return <div>1</div>;
}
Static.defaultHooks = {
onComponentShouldUpdate() {
return false;
}
onComponentShouldUpdate() {
return false;
}
};

@@ -440,3 +440,9 @@ ```

```jsx
export function MyFunctionalComponent({value}) {
return <div>{value}</div>;
}
MyFunctionalComponent.defaultProps = {
value: 10
};

@@ -625,3 +631,3 @@ ```

function Outsider(props) {
return <div>{`Hello ${props.name}!`}</div>;
return <div>{`Hello ${props.name}!`}</div>;
}

@@ -633,9 +639,9 @@

function App() {
return (
<div>
Main view
...
{createPortal(<Outsider name="Inferno" />, outsideDiv)}
</div>
);
return (
<div>
Main view
...
{createPortal(<Outsider name="Inferno" />, outsideDiv)}
</div>
);
}

@@ -651,9 +657,9 @@

<div id="root">
<div>Main view ...</div>
<div>Main view ...</div>
</div>
<div id="outside">
<div>Hello Inferno!</div>
<div>Hello Inferno!</div>
</div>
```
Cool huh? Updates (props/context) will flow into "Outsider" component from the App component the same way as any other Component.
Cool, huh? Updates (props/context) will flow into "Outsider" component from the App component the same way as any other Component.
For inspiration on how to use it click [here](https://hackernoon.com/using-a-react-16-portal-to-do-something-cool-2a2d627b0202)!

@@ -717,15 +723,15 @@

function Foobar() {
return (
<div $HasKeyedChildren>
{createFragment(
[<div>Ok</div>, <span>1</span>],
ChildFlags.HasNonKeyedChildren,
'key1'
)}
<Fragment key="key2">
<div>Ok</div>
<span>1</span>
</Fragment>
</div>
);
return (
<div $HasKeyedChildren>
{createFragment(
[<div>Ok</div>, <span>1</span>],
ChildFlags.HasNonKeyedChildren,
'key1'
)}
<Fragment key="key2">
<div>Ok</div>
<span>1</span>
</Fragment>
</div>
);
}

@@ -791,4 +797,4 @@

options.componentComparator = function (lastVNode, nextVNode) {
/* custom logic */
return true; // Replaces lastVNode with nextVNode
/* custom logic */
return true; // Replaces lastVNode with nextVNode
}

@@ -926,67 +932,113 @@ ```

### Building Inferno for use in a browser
## Application bundling
When running Inferno on the browser using Webpack or Rollup, a replacement will need to occur during your build.
When building your application bundle, ensure `process.env.NODE_ENV` is replaced with string`"development"` or `"production"` based on the workflow.
It is recommended to use [ts-plugin-inferno](https://github.com/infernojs/ts-plugin-inferno) for typescript TSX compilation and [babel-plugin-infeno](https://github.com/infernojs/babel-plugin-inferno) for javascript JSX compilation.
#### Webpack
When building for development, you may want to use `inferno.dev.esm.js`. That bundle file contains ES6 exports for better tree-shaking support, improved error messages and added validation to help fixing possible issues during development.
The file is found from `package.json` - `dev:module` entry point and the file is physically located in `node_modules/inferno/dist/index.dev.esm.js`.
Remember that it is not recommended to use that file in production due to slower performance. For production usage use `node_modules/inferno/dist/inferno.esm.js` file.
Use the following configuration in your Webpack build for production build:
Example of **Webpack** configuration:
```js
...
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
})
]
```
const path = require('path');
const infernoTsx = require('ts-plugin-inferno').default;
When you are building for development, you may want to use `inferno.dev.esm.js` ("dev:module": "dist/index.dev.esm.js",) file.
That build version has extra level of validation for development purposes. You can use it by adding following code to your webpack config.
... webpack config ...
```js
...
resolve: {
/* When doing development workflow we want to make sure webpack picks up development build of inferno */
alias: {
inferno: __dirname + "/node_modules/inferno/dist/index.dev.esm.js"
}
}
module: {
rules: [
{
test: /\.js$/, // Add "jsx" if your application uses `jsx` file extensions
exclude: /node_modules/,
use: [{
loader: 'babel-loader',
options: {
plugins: [
// Compile javascript JSX syntax using inferno's own plugin
['babel-plugin-inferno', {imports: true}]
]
}
}]
},
{
test: /\.ts+(|x)$/, // Compile ts and tsx extensions
exclude: /node_modules/,
use: [{
loader: 'ts-loader',
options: {
getCustomTransformers: () => ({
// inferno custom TSX plugin
before: [infernoTsx()]
}),
compilerOptions: {
/* typescript compiler options */
}
}
}]
}
]
},
resolve: {
extensions: ['.js', '.ts', '.tsx'],
alias: {
// This maps import "inferno" to es6 module entry based on workflow
inferno: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.esm.js' : 'index.esm.js')
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify(isProduction ? 'production' : 'development')
}
})
]
```
#### Rollup
Example of **Rollup** configuration:
Use the following configuration in your Rollup build:
```js
const replace = require('rollup-plugin-replace');
```
```js
...
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
})
]
```
When you are building for development, you may want to use `inferno.dev.esm.js` ("dev:module": "dist/index.dev.esm.js",) file.
That build version has extra level of validation for development purposes. You can use it by adding following code to your rollup config.
```js
const path = require('path');
const alias = require('@rollup/plugin-alias');
const {babel} = require('@rollup/plugin-babel');
const replace = require('@rollup/plugin-replace');
const typescript = require('rollup-plugin-typescript2');
const transformInferno = require('ts-plugin-inferno').default;
...
plugins: [
alias({
resolve: ['.js'],
entries: [
{find: 'inferno', replacement: __dirname + '/node_modules/inferno/dist/index.dev.esm.js'}
... Rollup config ...
{
input: /* entry file */,
plugins: [
alias({
resolve: ['.js'],
entries: [
// This maps import "inferno" to es6 module entry based on workflow
{find: 'inferno', replacement: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.esm.js' : 'index.esm.js')}
]
}),
typescript({
include: ['*.ts+(|x)', '**/*.ts+(|x)'],
transformers: [
() => ({
before: [transformInferno()],
after: []
})
],
tsconfig: 'tsconfig.json',
tsconfigOverride: {
/* typescript compiler options */
}
}),
babel({
babelrc: false,
sourceMaps: isDeploy,
plugins: [
// Compile javascript JSX syntax using inferno's own plugin
['babel-plugin-inferno', {imports: true}]
],
babelHelpers: 'bundled'
})
]
}),
]
}
```

@@ -993,0 +1045,0 @@

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

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

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

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

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

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