Socket
Socket
Sign inDemoInstall

nervjs

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nervjs - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/nerv.min.js

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

!function(e){"use strict";function t(e){for(var t={},n=t.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<r.length;i++){var o=r[i];t["[object "+o+"]"]=o.toLowerCase()}return null===e?e+"":"object"===(void 0===e?"undefined":Me(e))||"function"==typeof e?t[n.call(e)]||"object":void 0===e?"undefined":Me(e)}function n(e){return"boolean"===t(e)}function r(e){return"number"===t(e)}function i(e){return"string"===t(e)}function o(e){return"function"===t(e)}function a(e){return"array"===t(e)}function s(e){return"date"===t(e)}function l(e){return"regexp"===t(e)}function c(e){return"object"===t(e)}function u(e){return"error"===t(e)}function p(e){return o(e)&&/native code/.test(""+e)}function f(e,t){if(!t)return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function h(e){return f({},e)}function d(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor.prototype}function v(e,t){return function(){return e.apply(t||this,arguments)}}function m(e){if(!e)return!0;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function y(e,t,n){var r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=function l(){var c=+new Date-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(o,i),r||(o=null,i=null)))};return function(){o=this,i=arguments,a=+new Date;var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(o,i),o=null,i=null),s}}function g(e,t,n){t||(t=250);var r=void 0,i=void 0;return function(){var o=n||this,a=+new Date,s=arguments;r&&a<r+t?(clearTimeout(i),i=setTimeout(function(){r=a,e.apply(o,s)},t)):(r=a,e.apply(o,s))}}function k(){ze=!1;var e=We.slice(0);We=[],e.forEach(function(e){return e()})}function b(){return"Promise"in window&&o(Promise)&&p(Promise)}function x(e,t){var n=void 0;if(We.push(function(){if(e)try{e.call(t)}catch(e){console.error(e)}else n&&n(t)}),ze||(ze=!0,Ie()),!e&&b())return new Promise(function(e){n=e})}function w(e){return e&&"VirtualNode"===e.type}function E(e){return e&&"VirtualText"===e.type}function O(e){return e&&"Widget"===e.type}function S(e){return e&&"StateLess"===e.type}function T(e){return!!(e&&"function"==typeof e.hook&&!e.hasOwnProperty("hook")||e&&"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}function A(e,t){if(O(e)||S(e))return e.init();if(i(e)||r(e))return Fe.createTextNode(e);if(E(e))return Fe.createTextNode(e.text);if(w(e)){e.isSvg?t=!0:"svg"===e.tagName?t=!0:"foreignObject"===e.tagName&&(t=!1),t&&(e.namespace=Be);var n=null===e.namespace?Fe.createElement(e.tagName):Fe.createElementNS?Fe.createElementNS(e.namespace,e.tagName):Fe.createElement(e.tagName);C(n,e.props,t),t&&(e.isSvg=t);var o=e.children;return o.length&&o.forEach(function(r){if(void 0!==r&&null!==r&&!1!==r&&n.appendChild){O(r)&&(r.parentContext=e.parentContext||{});var i=A(r,t);i&&n.appendChild(i)}}),n}if(Array.isArray(e)){var a=Fe.createDocumentFragment();return e.forEach(function(e){if(void 0!==e&&null!==e&&!1!==e&&a.appendChild){var n=A(e,t);return n&&a.appendChild(n),a.appendChild(n)}}),a}return null}function C(e,t,n){for(var r in t)if("children"!==r){var a=t[r];if(T(a))a.hook&&a.hook(e,r);else{if("style"===r){if(i(a))e.setAttribute(r,a);else if(c(a))for(var s in a){var l=a[s];if(void 0!==l)try{e[r][s]=l}catch(e){}}continue}if(c(a)){if(r in e)try{e[r]=a}catch(e){}else e.setAttribute(r,a);continue}if("list"!==r&&"type"!==r&&!n&&r in e){try{e[r]=null==a?"":a}catch(e){}null!=a&&!1!==a||e.removeAttribute(r);continue}null==a||!1===a?e.removeAttribute(r):o(a)||e.setAttribute(r,a)}}}function N(e){return new qe(e)}function P(e,t){var n={old:e};return R(e,t,n,0),n}function R(e,t,n,r){if(e!==t){var i=n[r],o=!1;if(t)if(E(t))E(e)?e.text!==t.text&&(i=z(i,new Ye(Ye.VTEXT,e,t))):(o=!0,i=z(i,new Ye(Ye.VTEXT,e,t)));else if(w(t))if(w(e))if(e.tagName===t.tagName&&e.key===t.key){var a=_(e.props,t.props);a&&(i=z(i,new Ye(Ye.PROPS,e,a))),i=D(e,t,i,n,r)}else i=z(i,new Ye(Ye.VNODE,e,t)),o=!0;else i=z(i,new Ye(Ye.VNODE,e,t)),o=!0;else O(t)?(O(e)||(o=!0),i=z(i,new Ye(Ye.WIDGET,e,t))):Array.isArray(t)?(o=!0,t.forEach(function(e){R(null,e,n,r),r++})):S(t)&&(o=!0,i=z(i,new Ye(Ye.STATELESS,e,t)));else O(e)||(U(e,n,r),i=n[r]),i=z(i,new Ye(Ye.REMOVE,e,null));i&&(n[r]=i),o&&U(e,n,r)}}function _(e,t){var n=null;for(var r in e){t.hasOwnProperty(r)||(n=n||{},n[r]=void 0);var i=e[r],o=t[r];if(i!==o)if(c(i)&&c(o))if(d(i)!==d(o))n=n||{},n[r]=o;else if(T(o))n=n||{},n[r]=o;else{var a=_(i,o);a&&(n=n||{},n[r]=a)}else n=n||{},n[r]=o}for(var s in t)e.hasOwnProperty(s)||(n=n||{},n[s]=t[s]);return n}function D(e,t,n,r,i){for(var o=e.children,a=M(o,t.children,"key"),s=a.list,l=Math.max(o.length,s.length),c=0;c<l;c++){var u=o[c],p=s[c];i+=1,u?R(u,p,r,i):p&&(n=z(n,new Ye(Ye.INSERT,null,p))),w(u)&&u.count&&(i+=u.count)}return a.moves&&(n=z(n,new Ye(Ye.ORDER,e,a.moves))),n}function M(e,t,n){var r=V(t,n),i=r.keyMap,o=r.free;if(o.length===t.length)return{list:t,moves:null};var a=V(e,n),s=a.keyMap;if(a.free.length===e.length)return{list:t,moves:null};var l=[],c=0,u=0;l=e.map(function(e){var r=e[n];if(r)return i.hasOwnProperty(r)?t[i[r]]:(u++,null);var a=o[c++],s=t[a];return s||(u++,null)});var p=c>=o.length?t.length:o[c];t.forEach(function(e,t){var r=e[n];r?s.hasOwnProperty(r)||l.push(e):t>=p&&l.push(e)});for(var f=l.slice(0),h=0,d=[],v=[],m=void 0,y=0;y<t.length;){m=f[h];while(null===m&&f.length)d.push(j(f,h,null)),m=f[h];var g=t[y],k=g[n],b=m[n];m&&b===k?(h++,y++):g[n]?(m&&b&&i[b]!==y+1?(d.push(j(f,h,b)),m=f[h],m&&b===k?h++:v.push({key:k,to:y})):v.push({key:k,to:y}),y++):m&&b&&d.push(j(f,h,b))}while(h<f.length)m=f[h],d.push(j(f,h,m&&m.key));return d.length!==u||v.length?{list:l,moves:{removes:d,inserts:v}}:{list:l,moves:null}}function j(e,t,n){return e.splice(t,1),{from:t,key:n}}function U(e,t,n){H(e,t,n),L(e,t,n)}function H(e,t,n){if(w(e)){if(e.hooks&&(t[n]=z(t[n],new Ye(Ye.PROPS,e,W(e.hooks)))),e.descendantHooks)for(var r=e.children,i=r.length,o=0;o<i;o++){var a=r[o];n+=1,H(a,t,n),w(a)&&a.count&&(n+=a.count)}}else S(e)&&(n+=1,H(e._renderd,t,n))}function L(e,t,n){O(e)?o(e.destroy)&&(t[n]=z(t[n],new Ye(Ye.REMOVE,e,null))):w(e)&&e.hasWidgets?e.children.forEach(function(e){n+=1,L(e,t,n),w(e)&&e.count&&(n+=e.count)}):S(e)&&(n+=1,L(e._renderd,t,n))}function V(e,t){var n={},r=[];return e.forEach(function(e,i){e[t]?n[e[t]]=i:r.push(i)}),{keyMap:n,free:r}}function W(e){var t={};for(var n in e)t[n]=void 0;return t}function z(e,t){return e?(Array.isArray(e)?e.push(t):e=[e,t],e):[t]}function I(e,t){if(null===e||null===t)return!1;if(Object.is(e,t))return!0;var n=e?Object.keys(e):[];if(n.length!==(t?Object.keys(t):[]).length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!t.hasOwnProperty(i)||!Object.is(e[i],t[i]))return!1}return!0}function X(e,t,n,r){return n&&0!==n.length?(n.sort(function(e,t){return e-t}),B(e,t,n,r,0)):{}}function B(e,t,n,r,i){if(r=r||{},e){F(n,i,i)&&(r[i]=e);var o=t.children;if(o){var a=e.childNodes;o.forEach(function(e,t){i++,e=e||{};var o=i+(e.count||0);F(n,i,o)&&B(a[t],e,n,r,i),i=o})}}return r}function F(e,t,n){if(0===e.length)return!1;var r=0,i=e.length-1,o=void 0,a=void 0;while(r<=i){if(o=(i+r)/2>>0,a=e[o],r===i)return a>=t&&a<=n;if(a<t)r=o+1;else{if(!(a>n))return!0;i=o-1}}return!1}function q(e,t){var n=oe(t);if(0===n.length)return e;var r=t.old,i=X(e,r,n);return n.forEach(function(n){e=Y(e,i[n],t[n])}),e}function Y(e,t,n){if(!t)return e;var r=void 0;return Array.isArray(n)||(n=[n]),n.forEach(function(n){r=G(t,n),t===e&&(e=r)}),e}function G(e,t){var n=t.type,r=t.vnode,i=t.patch;switch(n){case Ye.VTEXT:return Z(e,i);case Ye.VNODE:return $(e,i);case Ye.INSERT:return J(e,i);case Ye.WIDGET:return K(e,r,i);case Ye.STATELESS:return Q(e,r,i);case Ye.PROPS:return te(e,i,r.props,r.isSvg);case Ye.ORDER:return ne(e,i);case Ye.REMOVE:return re(e,r);default:return e}}function Z(e,t){if(null===e)return A(t);if(3===e.nodeType)return e.textContent?e.textContent=t.text:e.nodeValue=t.text,e;var n=e.parentNode,r=A(t);return n&&n.replaceChild(r,e),r}function $(e,t){if(null===e)return A(t);var n=e.parentNode,r=A(t);return n&&r!==e&&n.replaceChild(r,e),r}function J(e,t){var n=A(t);return e&&n&&e.appendChild(n),e}function K(e,t,n){var r=ie(t,n),i=void 0;i=r?n.update(t,e)||e:A(n);var o=e.parentNode;return o&&e!==i&&o.replaceChild(i,e),!r&&t&&ee(e,t),i}function Q(e,t,n){if(I(t.props,n.props))return e;var r=A(n),i=e.parentNode;return i&&e!==r&&i.replaceChild(r,e),r}function ee(e,t){o(t.destroy)&&O(t)&&t.destroy(e)}function te(e,t,n,r){for(var a in t)if("children"!==a){var s=t[a],l=n[a];if(null==s||!1===s){if(T(l)&&l.unhook){l.unhook(e,a,s);continue}if("style"===a){if(i(l))for(var u in l)e.style[u]="";else e.removeAttribute(a);continue}a in e?(e[a]=i(l)?"":null,e.removeAttribute(a)):e.removeAttribute(a)}else{if(T(s)){T(l)&&l.unhook&&l.unhook(e,a,s),s&&s.hook&&s.hook(e,a,l);continue}if("style"===a){if(i(s))e.setAttribute(a,s);else for(var p in s){var f=s[p];if(null!=f&&!1!==f)try{e[a][p]=f}catch(e){}}continue}if(c(s)){if(l&&c(l)&&d(l)!==d(s))if(a in e)try{e[a]=s}catch(e){}else e.setAttribute(a,s);continue}if("list"!==a&&"type"!==a&&!r&&a in e){try{e[a]=s}catch(e){}continue}o(s)||e.setAttribute(a,s)}}return e}function ne(e,t){for(var n=t.removes,r=t.inserts,i=e.childNodes,o={},a=void 0,s=void 0,l=void 0,c=0;c<n.length;c++)s=n[c],a=i[s.from],s.key&&(o[s.key]=a),e.removeChild(a);for(var u=i.length,p=0;p<r.length;p++)l=r[p],a=o[l.key],e.insertBefore(a,l.to>=u++?null:i[l.to]);return e}function re(e,t){var n=e.parentNode;return n&&n.removeChild(e),O(t)&&ee(e,t),null}function ie(e,t){if(O(e)&&O(t)){var n=e.props.key,r=t.props.key;return"name"in e&&"name"in t?e.name===t.name&&n===r:e.init===t.init&&n===r}return!1}function oe(e){var t=[];if(e)for(var n in e)"old"!==n&&e.hasOwnProperty(n)&&t.push(+n);return t}function ae(e,t){return c(e)&&(e.parentContext=t),A(e)}function se(e){var t=e.parentContext,n=e.ComponentType.prototype;n&&o(n.render)&&(e.component=new e.ComponentType(e.props,e.context));var r=e.component;r.context=e.context||t,o(r.componentWillMount)&&(r.componentWillMount(),r.state=r.getState()),r._dirty=!1;var i=ue(r);r._rendered=i,o(r.componentDidMount)&&Ze.push(r),o(e.props.ref)&&Ze.push(function(){return e.props.ref(r)});var a=ae(i,ce(r,t));return r.dom=a,r._disable=!1,a}function le(e){var t=e.props.ref;delete e.props.ref,e._renderd=e.tagName(e.props,e.parentContext);var n=e._renderd;return w(n)&&o(t)&&(t=new Ge(t),n.props.ref=t),ae(n,e.parentContext)}function ce(e,t){return e.getChildContext?f(t,e.getChildContext()):t}function ue(e){Xe.current=e;var t=e.render();return(r(t)||i(t))&&(t=N(t)),Xe.current=null,t}function pe(){if(Ze.length){var e=Ze.slice(0);Ze.length=0,e.forEach(function(e){o(e)?e():e.componentDidMount&&e.componentDidMount()})}}function fe(e,t){var n=t.component=e.component,r=t.props,i=n.context;return n._disable=!0,o(n.componentWillReceiveProps)&&n.componentWillReceiveProps(r,i),n._disable=!1,n.prevProps=n.props,n.prevState=n.state,n.prevContext=n.context,n.props=r,n.context=i,o(t.props.ref)&&t.props.ref(n),he(n),n.dom}function he(e,t){var n=e.dom,r=e.props,i=e.getState(),a=e.context,s=e.prevProps||r,l=e.prevContext||a;e.props=s,e.context=l;var c=!1;if(!t&&o(e.shouldComponentUpdate)&&!1===e.shouldComponentUpdate(r,i,a)?c=!0:o(e.componentWillUpdate)&&e.componentWillUpdate(r,i,a),e.props=r,e.state=i,e.context=a,e._dirty=!1,!c){var u=e._rendered,p=ue(e),f=ce(e,a);e._rendered=p,e.dom=de(p,u,n,f),e.componentDidUpdate&&e.componentDidUpdate(r,i,a)}if(e.prevProps=e.props,e.prevState=e.state,e.prevContext=e.context,e._pendingCallbacks)while(e._pendingCallbacks.length)e._pendingCallbacks.pop().call(e);pe()}function de(e,t,n,r){c(e)&&(e.context=r);var i=void 0;if(n){i=q(n,P(t,e))}else i=A(e);return i}function ve(e){var t=e.component;o(t.componentWillUnmount)&&t.componentWillUnmount(),de(null,t._rendered,t.dom,t.context),t.dom=t._rendered=null,o(e.props.ref)&&e.props.ref(null)}function me(e){!e._dirty&&(e._dirty=!0)&&1===$e.push(e)&&x(ye)}function ye(){var e=void 0,t=$e.concat();$e.length=0;while(e=t.pop())e._dirty&&he(e)}function ge(e){return w(e)||i(e)||r(e)}function ke(e,t,n){if(!ge(e)&&!O(e)&&!S(e))return null;if(!t||1!==t.nodeType)throw Error(t+" should be a DOM Element");var r=ae(e,{});return r&&t.appendChild(r),pe(),n&&n(),e.component||r}function be(e,t,n){var r=void 0,i=void 0,o=void 0,a=[];return!n&&Ee(t)&&(n=t,t={}),t=t||{},t.hasOwnProperty("key")&&t.key&&(r=t.key,delete t.key),t.hasOwnProperty("namespace")&&t.namespace&&(i=t.namespace,delete t.namespace),t.hasOwnProperty("owner")&&(o=t.owner,delete t.owner),t.hasOwnProperty("children")&&t.children&&(n&&n.length||(n=t.children),delete t.children),n&&xe(a,n,e),new Qe(e,t,a,r,i,o)}function xe(e,t,n){i(t)||r(t)?(t+="",e.push(N(t))):we(t)?e.push(t):a(t)&&t.forEach(function(t){return xe(e,t,n)})}function we(e){return w(e)||E(e)||O(e)||S(e)}function Ee(e){return i(e)||a(e)||we(e)}function Oe(e){return"onDoubleClick"===e?e="ondblclick":"onTouchTap"===e&&(e="onclick"),e.toLowerCase()}function Se(e){return e.substr(2)}function Te(){this.cancelBubble=!0,this.stopImmediatePropagation()}function Ae(e,t,n,r,i){var o=n.get(t);if((!o||(r--,i.currentTarget=t,o(e),!e.cancelBubble))&&r>0){var a=t.parentNode;if(null===a||"click"===e.type&&1===a.nodeType&&a.disabled)return;Ae(e,a,n,r,i)}}function Ce(e,t,n){var r=function(e){var t=n.items.size();if(t>0){var r={currentTarget:e.target};Object.defineProperties(e,{currentTarget:{configurable:!0,get:function(){return r.currentTarget}},stopPropagation:{value:Te}}),Ae(e,e.target,n.items,t,r)}};return e.addEventListener(Se(t),r,!1),r}function Ne(e,t,n){var r=function(t){var r=n.get(e);if(r&&r.eventHandler){var i={currentTarget:e};Object.defineProperties(t,{currentTarget:{configurable:!0,get:function(){return i.currentTarget}}}),r.eventHandler(t)}};return e.addEventListener(Se(t),r,!1),r}function Pe(e,t){var o={},a=nt.DOMAttributeNamespaces;for(var s in t){var l=t[s],u=s;if(s=nt.DOMAttributeNames[s]||s,a.hasOwnProperty(u)&&(i(l)||r(l)||n(l))){var p=a[u];o[s]=l instanceof ut?l:new ut(p,l)}else if("id"!==s&&"className"!==s&&"namespace"!==s||void 0===l)if("ref"!==s)if("dangerouslySetInnerHTML"!==s)if("o"!==s.charAt(0)||"n"!==s.charAt(1))if("defaultValue"!==s){if("style"!==s)o[s]=l;else if(i(l))o[s]=l;else if(c(l))for(var f in l){var h=l[f];void 0===h||!i(h)&&isNaN(h)||(h=r(h)&&!1===pt.test(f)?h+"px":h,o[s]=o[s]||{},o[s][f]=h)}}else o.value=t.value||t.defaultValue;else o[s]=l instanceof ct?l:new ct(s,l);else o[s]=l instanceof ot?l:new ot(l);else o[s]=l instanceof Ge?l:new Ge(l);else o[s]=l}return o}function Re(e){var t={};for(var n in e){t[n]=e[n]}return t}function _e(e,t){for(var n=ft,r=2,a=arguments.length;r<a;r++){var s=arguments[r];Array.isArray(s)?s.forEach(function(e){n===ft?n=[e]:n.push(e)}):n===ft?n=[s]:n.push(s)}var l=void 0;return i(e)?(l=Pe(e,t),l.owner=Xe.current,be(e,l,n)):o(e)?(l=Re(t),l.children?Array.isArray(l.children)||(l.children=[l.children]):l.children=n,l.owner=Xe.current,e.prototype&&e.prototype.render?new rt(e,l):new it(e,l)):e}function De(e,t){var n=h(e.props);return n.attributes&&(n=f(n,n.attributes),delete n.attributes),n=f(n,t),e.key&&(n.key=e.key),e.namespace&&(n.namespace=e.namespace),_e(e.tagName,n,arguments.length>2?[].slice.call(arguments,2):e.props.children)}var Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ue=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},He=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Le=function(){function e(t){je(this,e),this.callbacks=void 0!==t&&t.callbacks?t.callbacks:{}}return e.prototype.on=function(t,n,r){var i=void 0,o=void 0,a=void 0,s=void 0,l=void 0;if(!n)return this;t=t.split(e.eventSplitter),i=this.callbacks;while(o=t.shift())l=i[o],a=l?l.tail:{},a.next=s={},a.context=r,a.callback=n,i[o]={tail:s,next:l?l.next:a};return this},e.prototype.off=function(t,n,r){var i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0;if(!(o=this.callbacks))return this;if(!(t||n||r))return delete this.callbacks,this;t=t?t.split(e.eventSplitter):Object.keys(o);while(i=t.shift())if(a=o[i],delete o[i],a&&(n||r)){s=a.tail;while((a=a.next)!==s)l=a.callback,c=a.context,(n&&l!==n||r&&c!==r)&&this.on(i,l,c)}return this},e.prototype.trigger=function(t){var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0;if(!(i=this.callbacks))return this;t=t.split(e.eventSplitter),a=[].slice.call(arguments,1);while(n=t.shift())if(r=i[n]){o=r.tail;while((r=r.next)!==o)r.callback.apply(r.context||this,a)}return this},e}();Le.eventSplitter=/\s+/;var Ve=Object.freeze({type:t,isBoolean:n,isNumber:r,isString:i,isFunction:o,isArray:a,isDate:s,isRegExp:l,isObject:c,isError:u,isNative:p,extend:f,clone:h,getPrototype:d,proxy:v,isEmptyObject:m,debounce:y,throttle:g}),We=[],ze=!1,Ie=void 0;b()?function(){var e=Promise.resolve(),t=function(e){return console.error(e)};Ie=function(){e.then(k).catch(t)}}():function(){return"MutationObserver"in window&&o(MutationObserver)&&(p(MutationObserver)||"[object MutationObserverConstructor]"==""+MutationObserver)}()?function(){var e=1,t=document.createTextNode(e);new MutationObserver(k).observe(t,{characterData:!0}),Ie=function(){e=(e+1)%2,t.data=e}}():function(){Ie=function(){setTimeout(k,0)}}();var Xe={current:null},Be="http://www.w3.org/2000/svg",Fe=document,qe=function e(t){je(this,e),this.type="VirtualText",this.text=t||""},Ye=function e(t,n,r){je(this,e),this.type=t,this.vnode=n,this.patch=r};Ye.NODE="NODE",Ye.VTEXT="VTEXT",Ye.VNODE="VNODE",Ye.WIDGET="WIDGET",Ye.STATELESS="STATELESS",Ye.PROPS="PROPS",Ye.ORDER="ORDER",Ye.INSERT="INSERT",Ye.REMOVE="REMOVE",Ye.prototype.type="VirtualPatch",Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t});var Ge=function(){function e(t){je(this,e),this.callback=t}return e.prototype.hook=function(e){this.callback(e)},e.prototype.unhook=function(){this.callback(null)},e}(),Ze=[],$e=[],Je=function(e){function t(n,r){je(this,t);var i=He(this,e.call(this));return i.state||(i.state={}),i.props=n||{},i.context=r||{},i._dirty=!0,i._disable=!0,i}return Ue(t,e),t.prototype.setState=function(e,t){e&&(this._pendingStates=this._pendingStates||[]).push(e),o(t)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(t),this._disable||me(this)},t.prototype.getState=function(){var e=this,t=this._pendingStates,n=void 0===t?[]:t,r=this.state,i=this.props;if(!n.length)return r;var a=h(r),s=n.concat();return this._pendingStates.length=0,s.forEach(function(t){o(t)&&(t=t.call(e,r,i)),f(a,t)}),a},t.prototype.forceUpdate=function(e){o(e)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(e),he(this,!0)},t}(Le),Ke=function(e){function t(){var n,r,i;je(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=He(this,e.call.apply(e,[this].concat(a))),r.isPureComponent=!0,i=n,He(r,i)}return Ue(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!I(this.props,e)||!I(this.state,t)},t}(Je),Qe=function e(t,n,r,a,s,l){je(this,e),this.type="VirtualNode",this.tagName=t||"DIV",this.props=n||{},this.children=r||[],this.key=a||null,this.namespace=i(s)?s:null,this._owner=l;var c=this.children.length||0,u=0,p=!1,f=!1,h=void 0;for(var d in n)if(n.hasOwnProperty(d)){var v=n[d];T(v)&&v.unhook&&(h||(h={}),h[d]=v)}c&&this.children.forEach(function(e){w(e)?(u+=e.count||0,!p&&e.hasWidgets&&(p=!0),f||!e.hooks&&!e.descendantHooks||(f=!0)):!p&&O(e)&&o(e.destroy)&&(p=!0)}),this.count=c+u,this.hasWidgets=p,this.hooks=h,this.descendantHooks=f},et={ev:"http://www.w3.org/2001/xml-events",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},tt={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,evEvent:"ev:event",exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlId:"xml:id",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},nt={Properties:{},DOMAttributeNamespaces:{evEvent:et.ev,xlinkActuate:et.xlink,xlinkArcrole:et.xlink,xlinkHref:et.xlink,xlinkRole:et.xlink,xlinkShow:et.xlink,xlinkTitle:et.xlink,xlinkType:et.xlink,xmlBase:et.xml,xmlId:et.xml,xmlLang:et.xml,xmlSpace:et.xml},DOMAttributeNames:{}};Object.keys(tt).forEach(function(e){nt.Properties[e]=0,tt[e]&&(nt.DOMAttributeNames[e]=tt[e])});var rt=function(){function e(t,n){je(this,e),this.type="Widget",this.ComponentType=t,this.name=t.name||(""+t).match(/^function\s*([^\s(]+)/)[1],t.displayName=this.name,this._owner=n.owner,delete n.owner,this.props=f(h(t.defaultProps||{}),n)}return e.prototype.init=function(){return se(this)},e.prototype.update=function(e){return fe(e,this)},e.prototype.destroy=function(){ve(this)},e}(),it=function(){function e(t,n){je(this,e),this.type="StateLess",this.tagName=t,this._owner=n.owner,delete n.owner,this.props=n}return e.prototype.init=function(){return le(this)},e}(),ot=function(){function e(t){je(this,e),this.type="HtmlHook",this.value=t}return e.prototype.hook=function(e,t,n){n&&"HtmlHook"===n.type&&n.value===this.value||(e.innerHTML=this.value.__html||"")},e.prototype.unhook=function(e){e.innerHTML=""},e}(),at=function(){function e(){je(this,e),this.cache=[]}return e.prototype.set=function(e,t){var n=this.cache.length;if(n){for(var r=0;r<n;r++){var i=this.cache[r];if(i.k===e)return void(i.v=t)}this.cache.push({k:e,v:t})}else this.cache.push({k:e,v:t})},e.prototype.get=function(e){var t=this.cache.length;if(t)for(var n=0;n<t;n++){var r=this.cache[n];if(r.k===e)return r.v}},e.prototype.has=function(e){var t=this.cache.length;if(t){for(var n=0;n<t;n++){if(this.cache[n].k===e)return!0}return!1}},e.prototype.remove=function(e){for(var t=this.cache.length,n=0;n<t;n++){if(this.cache[n].k===e)return this.cache.splice(n,1),!0}return!1},e.prototype.clear=function(){var e=this.cache.length;if(e)while(e)this.cache.pop(),e--},e.prototype.size=function(){return this.cache.length},e}(),st=new at,lt={onmousemove:1,ontouchmove:1,onmouseleave:1,onmouseenter:1,onload:1,onunload:1,onscroll:1,onfocus:1,onblur:1,onrowexit:1,onbeforeunload:1,onstop:1,ondragdrop:1,ondragenter:1,ondragexit:1,ondraggesture:1,ondragover:1,oncontextmenu:1,onerror:1,onabort:1,oncanplay:1,oncanplaythrough:1,ondurationchange:1,onemptied:1,onended:1,onloadeddata:1,onloadedmetadata:1,onloadstart:1,onencrypted:1,onpause:1,onplay:1,onplaying:1,onprogress:1,onratechange:1,onseeking:1,onseeked:1,onstalled:1,onsuspend:1,ontimeupdate:1,onvolumechange:1,onwaiting:1},ct=function(){function e(t,n){je(this,e),this.type="EventHook",this.eventName=Oe(t),this.handler=n}return e.prototype.hook=function(e,t,n){if(!n||"EventHook"!==n.type||n.handler!==this.handler||n.eventName!==this.eventName){var r=this.eventName,i=st.get(r);if(1===lt[r]){i||(i=new at);var a=Ne(e,r,i);st.set(r,i),o(this.handler)&&i.set(e,{eventHandler:this.handler,event:a})}else i||(i={items:new at},i.event=Ce(document,r,i),st.set(r,i)),o(this.handler)&&i.items.set(e,this.handler)}},e.prototype.unhook=function(e,t,n){if(!n||"EventHook"!==n.type||n.handler!==this.handler||n.eventName!==n.eventName){var r=this.eventName,i=st.get(r);if(1===lt[r]&&i){var o=i.get(e);e.removeEventListener(Se(r),o.event,!1),i.remove(e),0===i.size()&&st.remove(r)}else if(i&&i.items){var a=i.items;a.remove(e)&&0===a.size()&&(document.removeEventListener(Se(r),i.event,!1),st.remove(r))}}},e}(),ut=function(){function e(t,n){if(je(this,e),this.type="AttributeHook",!(this instanceof e))return new e(t,n);this.namespace=t,this.value=n}return e.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS&&e.setAttributeNS(this.namespace,t,this.value)},e.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),i=r>-1?t.substr(r+1):t;e.removeAttributeNS&&e.removeAttributeNS(this.namespace,i)}},e}(),pt=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,ft=[];e.Events=Le,e.Component=Je,e.PureComponent=Ke,e.createElement=_e,e.cloneElement=De,e.Util=Ve,e.render=ke,e.nextTick=x}(this.Nerv=this.Nerv||{});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.Nerv=e.Nerv||{})}(this,function(e){"use strict";function t(e){for(var t={},n=t.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),o=0;o<r.length;o++){var i=r[o];t["[object "+i+"]"]=i.toLowerCase()}return null===e?e+"":"object"===(void 0===e?"undefined":Me(e))||"function"==typeof e?t[n.call(e)]||"object":void 0===e?"undefined":Me(e)}function n(e){return"boolean"===t(e)}function r(e){return"number"===t(e)}function o(e){return"string"===t(e)}function i(e){return"function"===t(e)}function a(e){return"array"===t(e)}function s(e){return"date"===t(e)}function l(e){return"regexp"===t(e)}function c(e){return"object"===t(e)}function u(e){return"error"===t(e)}function p(e){return i(e)&&/native code/.test(""+e)}function f(e,t){if(!t)return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function h(e){return f({},e)}function d(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor.prototype}function v(e,t){return function(){return e.apply(t||this,arguments)}}function m(e){if(!e)return!0;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function y(e,t,n){var r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=function l(){var c=+new Date-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),r||(i=null,o=null)))};return function(){i=this,o=arguments,a=+new Date;var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=null,o=null),s}}function g(e,t,n){t||(t=250);var r=void 0,o=void 0;return function(){var i=n||this,a=+new Date,s=arguments;r&&a<r+t?(clearTimeout(o),o=setTimeout(function(){r=a,e.apply(i,s)},t)):(r=a,e.apply(i,s))}}function k(){ze=!1;var e=We.slice(0);We=[],e.forEach(function(e){return e()})}function b(){return"Promise"in window&&i(Promise)&&p(Promise)}function x(e,t){var n=void 0;if(We.push(function(){if(e)try{e.call(t)}catch(e){console.error(e)}else n&&n(t)}),ze||(ze=!0,Ie()),!e&&b())return new Promise(function(e){n=e})}function w(e){return e&&"VirtualNode"===e.type}function E(e){return e&&"VirtualText"===e.type}function O(e){return e&&"Widget"===e.type}function S(e){return e&&"StateLess"===e.type}function T(e){return!!(e&&"function"==typeof e.hook&&!e.hasOwnProperty("hook")||e&&"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}function A(e,t){if(O(e)||S(e))return e.init();if(o(e)||r(e))return Fe.createTextNode(e);if(E(e))return Fe.createTextNode(e.text);if(w(e)){e.isSvg?t=!0:"svg"===e.tagName?t=!0:"foreignObject"===e.tagName&&(t=!1),t&&(e.namespace=Be);var n=null===e.namespace?Fe.createElement(e.tagName):Fe.createElementNS?Fe.createElementNS(e.namespace,e.tagName):Fe.createElement(e.tagName);C(n,e.props,t),t&&(e.isSvg=t);var i=e.children;return i.length&&i.forEach(function(r){if(void 0!==r&&null!==r&&!1!==r&&n.appendChild){O(r)&&(r.parentContext=e.parentContext||{});var o=A(r,t);o&&n.appendChild(o)}}),n}if(Array.isArray(e)){var a=Fe.createDocumentFragment();return e.forEach(function(e){if(void 0!==e&&null!==e&&!1!==e&&a.appendChild){var n=A(e,t);return n&&a.appendChild(n),a.appendChild(n)}}),a}return null}function C(e,t,n){for(var r in t)if("children"!==r){var a=t[r];if(T(a))a.hook&&a.hook(e,r);else{if("style"===r){if(o(a))e.setAttribute(r,a);else if(c(a))for(var s in a){var l=a[s];if(void 0!==l)try{e[r][s]=l}catch(e){}}continue}if(c(a)){if(r in e)try{e[r]=a}catch(e){}else e.setAttribute(r,a);continue}if("list"!==r&&"type"!==r&&!n&&r in e){try{e[r]=null==a?"":a}catch(e){}null!=a&&!1!==a||e.removeAttribute(r);continue}null==a||!1===a?e.removeAttribute(r):i(a)||e.setAttribute(r,a)}}}function N(e){return new qe(e)}function P(e,t){var n={old:e};return R(e,t,n,0),n}function R(e,t,n,r){if(e!==t){var o=n[r],i=!1;if(t)if(E(t))E(e)?e.text!==t.text&&(o=z(o,new Ye(Ye.VTEXT,e,t))):(i=!0,o=z(o,new Ye(Ye.VTEXT,e,t)));else if(w(t))if(w(e))if(e.tagName===t.tagName&&e.key===t.key){var a=_(e.props,t.props);a&&(o=z(o,new Ye(Ye.PROPS,e,a))),o=D(e,t,o,n,r)}else o=z(o,new Ye(Ye.VNODE,e,t)),i=!0;else o=z(o,new Ye(Ye.VNODE,e,t)),i=!0;else O(t)?(O(e)||(i=!0),o=z(o,new Ye(Ye.WIDGET,e,t))):Array.isArray(t)?(i=!0,t.forEach(function(e){R(null,e,n,r),r++})):S(t)&&(i=!0,o=z(o,new Ye(Ye.STATELESS,e,t)));else O(e)||(U(e,n,r),o=n[r]),o=z(o,new Ye(Ye.REMOVE,e,null));o&&(n[r]=o),i&&U(e,n,r)}}function _(e,t){var n=null;for(var r in e){t.hasOwnProperty(r)||(n=n||{},n[r]=void 0);var o=e[r],i=t[r];if(o!==i)if(c(o)&&c(i))if(d(o)!==d(i))n=n||{},n[r]=i;else if(T(i))n=n||{},n[r]=i;else{var a=_(o,i);a&&(n=n||{},n[r]=a)}else n=n||{},n[r]=i}for(var s in t)e.hasOwnProperty(s)||(n=n||{},n[s]=t[s]);return n}function D(e,t,n,r,o){for(var i=e.children,a=M(i,t.children,"key"),s=a.list,l=Math.max(i.length,s.length),c=0;c<l;c++){var u=i[c],p=s[c];o+=1,u?R(u,p,r,o):p&&(n=z(n,new Ye(Ye.INSERT,null,p))),w(u)&&u.count&&(o+=u.count)}return a.moves&&(n=z(n,new Ye(Ye.ORDER,e,a.moves))),n}function M(e,t,n){var r=V(t,n),o=r.keyMap,i=r.free;if(i.length===t.length)return{list:t,moves:null};var a=V(e,n),s=a.keyMap;if(a.free.length===e.length)return{list:t,moves:null};var l=[],c=0,u=0;l=e.map(function(e){var r=e[n];if(r)return o.hasOwnProperty(r)?t[o[r]]:(u++,null);var a=i[c++],s=t[a];return s||(u++,null)});var p=c>=i.length?t.length:i[c];t.forEach(function(e,t){var r=e[n];r?s.hasOwnProperty(r)||l.push(e):t>=p&&l.push(e)});for(var f=l.slice(0),h=0,d=[],v=[],m=void 0,y=0;y<t.length;){m=f[h];while(null===m&&f.length)d.push(j(f,h,null)),m=f[h];var g=t[y],k=g[n],b=m[n];m&&b===k?(h++,y++):g[n]?(m&&b&&o[b]!==y+1?(d.push(j(f,h,b)),m=f[h],m&&b===k?h++:v.push({key:k,to:y})):v.push({key:k,to:y}),y++):m&&b&&d.push(j(f,h,b))}while(h<f.length)m=f[h],d.push(j(f,h,m&&m.key));return d.length!==u||v.length?{list:l,moves:{removes:d,inserts:v}}:{list:l,moves:null}}function j(e,t,n){return e.splice(t,1),{from:t,key:n}}function U(e,t,n){H(e,t,n),L(e,t,n)}function H(e,t,n){if(w(e)){if(e.hooks&&(t[n]=z(t[n],new Ye(Ye.PROPS,e,W(e.hooks)))),e.descendantHooks)for(var r=e.children,o=r.length,i=0;i<o;i++){var a=r[i];n+=1,H(a,t,n),w(a)&&a.count&&(n+=a.count)}}else S(e)&&(n+=1,H(e._renderd,t,n))}function L(e,t,n){O(e)?i(e.destroy)&&(t[n]=z(t[n],new Ye(Ye.REMOVE,e,null))):w(e)&&e.hasWidgets?e.children.forEach(function(e){n+=1,L(e,t,n),w(e)&&e.count&&(n+=e.count)}):S(e)&&(n+=1,L(e._renderd,t,n))}function V(e,t){var n={},r=[];return e.forEach(function(e,o){e[t]?n[e[t]]=o:r.push(o)}),{keyMap:n,free:r}}function W(e){var t={};for(var n in e)t[n]=void 0;return t}function z(e,t){return e?(Array.isArray(e)?e.push(t):e=[e,t],e):[t]}function I(e,t){if(null===e||null===t)return!1;if(Object.is(e,t))return!0;var n=e?Object.keys(e):[];if(n.length!==(t?Object.keys(t):[]).length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||!Object.is(e[o],t[o]))return!1}return!0}function X(e,t,n,r){return n&&0!==n.length?(n.sort(function(e,t){return e-t}),B(e,t,n,r,0)):{}}function B(e,t,n,r,o){if(r=r||{},e){F(n,o,o)&&(r[o]=e);var i=t.children;if(i){var a=e.childNodes;i.forEach(function(e,t){o++,e=e||{};var i=o+(e.count||0);F(n,o,i)&&B(a[t],e,n,r,o),o=i})}}return r}function F(e,t,n){if(0===e.length)return!1;var r=0,o=e.length-1,i=void 0,a=void 0;while(r<=o){if(i=(o+r)/2>>0,a=e[i],r===o)return a>=t&&a<=n;if(a<t)r=i+1;else{if(!(a>n))return!0;o=i-1}}return!1}function q(e,t){var n=ie(t);if(0===n.length)return e;var r=t.old,o=X(e,r,n);return n.forEach(function(n){e=Y(e,o[n],t[n])}),e}function Y(e,t,n){if(!t)return e;var r=void 0;return Array.isArray(n)||(n=[n]),n.forEach(function(n){r=G(t,n),t===e&&(e=r)}),e}function G(e,t){var n=t.type,r=t.vnode,o=t.patch;switch(n){case Ye.VTEXT:return Z(e,o);case Ye.VNODE:return $(e,o);case Ye.INSERT:return J(e,o);case Ye.WIDGET:return K(e,r,o);case Ye.STATELESS:return Q(e,r,o);case Ye.PROPS:return te(e,o,r.props,r.isSvg);case Ye.ORDER:return ne(e,o);case Ye.REMOVE:return re(e,r);default:return e}}function Z(e,t){if(null===e)return A(t);if(3===e.nodeType)return e.textContent?e.textContent=t.text:e.nodeValue=t.text,e;var n=e.parentNode,r=A(t);return n&&n.replaceChild(r,e),r}function $(e,t){if(null===e)return A(t);var n=e.parentNode,r=A(t);return n&&r!==e&&n.replaceChild(r,e),r}function J(e,t){var n=A(t);return e&&n&&e.appendChild(n),e}function K(e,t,n){var r=oe(t,n),o=void 0;o=r?n.update(t,e)||e:A(n);var i=e.parentNode;return i&&e!==o&&i.replaceChild(o,e),!r&&t&&ee(e,t),o}function Q(e,t,n){if(I(t.props,n.props))return e;var r=A(n),o=e.parentNode;return o&&e!==r&&o.replaceChild(r,e),r}function ee(e,t){i(t.destroy)&&O(t)&&t.destroy(e)}function te(e,t,n,r){for(var a in t)if("children"!==a){var s=t[a],l=n[a];if(null==s||!1===s){if(T(l)&&l.unhook){l.unhook(e,a,s);continue}if("style"===a){if(o(l))for(var u in l)e.style[u]="";else e.removeAttribute(a);continue}a in e?(e[a]=o(l)?"":null,e.removeAttribute(a)):e.removeAttribute(a)}else{if(T(s)){T(l)&&l.unhook&&l.unhook(e,a,s),s&&s.hook&&s.hook(e,a,l);continue}if("style"===a){if(o(s))e.setAttribute(a,s);else for(var p in s){var f=s[p];if(null!=f&&!1!==f)try{e[a][p]=f}catch(e){}}continue}if(c(s)){if(l&&c(l)&&d(l)!==d(s))if(a in e)try{e[a]=s}catch(e){}else e.setAttribute(a,s);continue}if("list"!==a&&"type"!==a&&!r&&a in e){try{e[a]=s}catch(e){}continue}i(s)||e.setAttribute(a,s)}}return e}function ne(e,t){for(var n=t.removes,r=t.inserts,o=e.childNodes,i={},a=void 0,s=void 0,l=void 0,c=0;c<n.length;c++)s=n[c],a=o[s.from],s.key&&(i[s.key]=a),e.removeChild(a);for(var u=o.length,p=0;p<r.length;p++)l=r[p],a=i[l.key],e.insertBefore(a,l.to>=u++?null:o[l.to]);return e}function re(e,t){var n=e.parentNode;return n&&n.removeChild(e),O(t)&&ee(e,t),null}function oe(e,t){if(O(e)&&O(t)){var n=e.props.key,r=t.props.key;return"name"in e&&"name"in t?e.name===t.name&&n===r:e.init===t.init&&n===r}return!1}function ie(e){var t=[];if(e)for(var n in e)"old"!==n&&e.hasOwnProperty(n)&&t.push(+n);return t}function ae(e,t){return c(e)&&(e.parentContext=t),A(e)}function se(e){var t=e.parentContext,n=e.ComponentType.prototype;n&&i(n.render)&&(e.component=new e.ComponentType(e.props,e.context));var r=e.component;r.context=e.context||t,i(r.componentWillMount)&&(r.componentWillMount(),r.state=r.getState()),r._dirty=!1;var o=ue(r);r._rendered=o,i(r.componentDidMount)&&Ze.push(r),i(e.props.ref)&&Ze.push(function(){return e.props.ref(r)});var a=ae(o,ce(r,t));return r.dom=a,r._disable=!1,a}function le(e){var t=e.props.ref;delete e.props.ref,e._renderd=e.tagName(e.props,e.parentContext);var n=e._renderd;return w(n)&&i(t)&&(t=new Ge(t),n.props.ref=t),ae(n,e.parentContext)}function ce(e,t){return e.getChildContext?f(t,e.getChildContext()):t}function ue(e){Xe.current=e;var t=e.render();return(r(t)||o(t))&&(t=N(t)),Xe.current=null,t}function pe(){if(Ze.length){var e=Ze.slice(0);Ze.length=0,e.forEach(function(e){i(e)?e():e.componentDidMount&&e.componentDidMount()})}}function fe(e,t){var n=t.component=e.component,r=t.props,o=n.context;return n._disable=!0,i(n.componentWillReceiveProps)&&n.componentWillReceiveProps(r,o),n._disable=!1,n.prevProps=n.props,n.prevState=n.state,n.prevContext=n.context,n.props=r,n.context=o,i(t.props.ref)&&t.props.ref(n),he(n),n.dom}function he(e,t){var n=e.dom,r=e.props,o=e.getState(),a=e.context,s=e.prevProps||r,l=e.prevContext||a;e.props=s,e.context=l;var c=!1;if(!t&&i(e.shouldComponentUpdate)&&!1===e.shouldComponentUpdate(r,o,a)?c=!0:i(e.componentWillUpdate)&&e.componentWillUpdate(r,o,a),e.props=r,e.state=o,e.context=a,e._dirty=!1,!c){var u=e._rendered,p=ue(e),f=ce(e,a);e._rendered=p,e.dom=de(p,u,n,f),e.componentDidUpdate&&e.componentDidUpdate(r,o,a)}if(e.prevProps=e.props,e.prevState=e.state,e.prevContext=e.context,e._pendingCallbacks)while(e._pendingCallbacks.length)e._pendingCallbacks.pop().call(e);pe()}function de(e,t,n,r){c(e)&&(e.context=r);var o=void 0;if(n){o=q(n,P(t,e))}else o=A(e);return o}function ve(e){var t=e.component;i(t.componentWillUnmount)&&t.componentWillUnmount(),de(null,t._rendered,t.dom,t.context),t.dom=t._rendered=null,i(e.props.ref)&&e.props.ref(null)}function me(e){!e._dirty&&(e._dirty=!0)&&1===$e.push(e)&&x(ye)}function ye(){var e=void 0,t=$e.concat();$e.length=0;while(e=t.pop())e._dirty&&he(e)}function ge(e){return w(e)||o(e)||r(e)}function ke(e,t,n){if(!ge(e)&&!O(e)&&!S(e))return null;if(!t||1!==t.nodeType)throw Error(t+" should be a DOM Element");var r=ae(e,{});return r&&t.appendChild(r),pe(),n&&n(),e.component||r}function be(e,t,n){var r=void 0,o=void 0,i=void 0,a=[];return!n&&Ee(t)&&(n=t,t={}),t=t||{},t.hasOwnProperty("key")&&t.key&&(r=t.key,delete t.key),t.hasOwnProperty("namespace")&&t.namespace&&(o=t.namespace,delete t.namespace),t.hasOwnProperty("owner")&&(i=t.owner,delete t.owner),t.hasOwnProperty("children")&&t.children&&(n&&n.length||(n=t.children),delete t.children),n&&xe(a,n,e),new Qe(e,t,a,r,o,i)}function xe(e,t,n){o(t)||r(t)?(t+="",e.push(N(t))):we(t)?e.push(t):a(t)&&t.forEach(function(t){return xe(e,t,n)})}function we(e){return w(e)||E(e)||O(e)||S(e)}function Ee(e){return o(e)||a(e)||we(e)}function Oe(e){return"onDoubleClick"===e?e="ondblclick":"onTouchTap"===e&&(e="onclick"),e.toLowerCase()}function Se(e){return e.substr(2)}function Te(){this.cancelBubble=!0,this.stopImmediatePropagation()}function Ae(e,t,n,r,o){var i=n.get(t);if((!i||(r--,o.currentTarget=t,i(e),!e.cancelBubble))&&r>0){var a=t.parentNode;if(null===a||"click"===e.type&&1===a.nodeType&&a.disabled)return;Ae(e,a,n,r,o)}}function Ce(e,t,n){var r=function(e){var t=n.items.size();if(t>0){var r={currentTarget:e.target};Object.defineProperties(e,{currentTarget:{configurable:!0,get:function(){return r.currentTarget}},stopPropagation:{value:Te}}),Ae(e,e.target,n.items,t,r)}};return e.addEventListener(Se(t),r,!1),r}function Ne(e,t,n){var r=function(t){var r=n.get(e);if(r&&r.eventHandler){var o={currentTarget:e};Object.defineProperties(t,{currentTarget:{configurable:!0,get:function(){return o.currentTarget}}}),r.eventHandler(t)}};return e.addEventListener(Se(t),r,!1),r}function Pe(e,t){var i={},a=nt.DOMAttributeNamespaces;for(var s in t){var l=t[s],u=s;if(s=nt.DOMAttributeNames[s]||s,a.hasOwnProperty(u)&&(o(l)||r(l)||n(l))){var p=a[u];i[s]=l instanceof ut?l:new ut(p,l)}else if("id"!==s&&"className"!==s&&"namespace"!==s||void 0===l)if("ref"!==s)if("dangerouslySetInnerHTML"!==s)if("o"!==s.charAt(0)||"n"!==s.charAt(1))if("defaultValue"!==s){if("style"!==s)i[s]=l;else if(o(l))i[s]=l;else if(c(l))for(var f in l){var h=l[f];void 0===h||!o(h)&&isNaN(h)||(h=r(h)&&!1===pt.test(f)?h+"px":h,i[s]=i[s]||{},i[s][f]=h)}}else i.value=t.value||t.defaultValue;else i[s]=l instanceof ct?l:new ct(s,l);else i[s]=l instanceof it?l:new it(l);else i[s]=l instanceof Ge?l:new Ge(l);else i[s]=l}return i}function Re(e){var t={};for(var n in e){t[n]=e[n]}return t}function _e(e,t){for(var n=ft,r=2,a=arguments.length;r<a;r++){var s=arguments[r];Array.isArray(s)?s.forEach(function(e){n===ft?n=[e]:n.push(e)}):n===ft?n=[s]:n.push(s)}var l=void 0;return o(e)?(l=Pe(e,t),l.owner=Xe.current,be(e,l,n)):i(e)?(l=Re(t),l.children?Array.isArray(l.children)||(l.children=[l.children]):l.children=n,l.owner=Xe.current,e.prototype&&e.prototype.render?new rt(e,l):new ot(e,l)):e}function De(e,t){var n=h(e.props);return n.attributes&&(n=f(n,n.attributes),delete n.attributes),n=f(n,t),e.key&&(n.key=e.key),e.namespace&&(n.namespace=e.namespace),_e(e.tagName,n,arguments.length>2?[].slice.call(arguments,2):e.props.children)}var Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ue=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},He=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Le=function(){function e(t){je(this,e),this.callbacks=void 0!==t&&t.callbacks?t.callbacks:{}}return e.prototype.on=function(t,n,r){var o=void 0,i=void 0,a=void 0,s=void 0,l=void 0;if(!n)return this;t=t.split(e.eventSplitter),o=this.callbacks;while(i=t.shift())l=o[i],a=l?l.tail:{},a.next=s={},a.context=r,a.callback=n,o[i]={tail:s,next:l?l.next:a};return this},e.prototype.off=function(t,n,r){var o=void 0,i=void 0,a=void 0,s=void 0,l=void 0,c=void 0;if(!(i=this.callbacks))return this;if(!(t||n||r))return delete this.callbacks,this;t=t?t.split(e.eventSplitter):Object.keys(i);while(o=t.shift())if(a=i[o],delete i[o],a&&(n||r)){s=a.tail;while((a=a.next)!==s)l=a.callback,c=a.context,(n&&l!==n||r&&c!==r)&&this.on(o,l,c)}return this},e.prototype.trigger=function(t){var n=void 0,r=void 0,o=void 0,i=void 0,a=void 0;if(!(o=this.callbacks))return this;t=t.split(e.eventSplitter),a=[].slice.call(arguments,1);while(n=t.shift())if(r=o[n]){i=r.tail;while((r=r.next)!==i)r.callback.apply(r.context||this,a)}return this},e}();Le.eventSplitter=/\s+/;var Ve=Object.freeze({type:t,isBoolean:n,isNumber:r,isString:o,isFunction:i,isArray:a,isDate:s,isRegExp:l,isObject:c,isError:u,isNative:p,extend:f,clone:h,getPrototype:d,proxy:v,isEmptyObject:m,debounce:y,throttle:g}),We=[],ze=!1,Ie=void 0;b()?function(){var e=Promise.resolve(),t=function(e){return console.error(e)};Ie=function(){e.then(k).catch(t)}}():function(){return"MutationObserver"in window&&i(MutationObserver)&&(p(MutationObserver)||"[object MutationObserverConstructor]"==""+MutationObserver)}()?function(){var e=1,t=document.createTextNode(e);new MutationObserver(k).observe(t,{characterData:!0}),Ie=function(){e=(e+1)%2,t.data=e}}():function(){Ie=function(){setTimeout(k,0)}}();var Xe={current:null},Be="http://www.w3.org/2000/svg",Fe=document,qe=function e(t){je(this,e),this.type="VirtualText",this.text=t||""},Ye=function e(t,n,r){je(this,e),this.type=t,this.vnode=n,this.patch=r};Ye.NODE="NODE",Ye.VTEXT="VTEXT",Ye.VNODE="VNODE",Ye.WIDGET="WIDGET",Ye.STATELESS="STATELESS",Ye.PROPS="PROPS",Ye.ORDER="ORDER",Ye.INSERT="INSERT",Ye.REMOVE="REMOVE",Ye.prototype.type="VirtualPatch",Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t});var Ge=function(){function e(t){je(this,e),this.callback=t}return e.prototype.hook=function(e){this.callback(e)},e.prototype.unhook=function(){this.callback(null)},e}(),Ze=[],$e=[],Je=function(e){function t(n,r){je(this,t);var o=He(this,e.call(this));return o.state||(o.state={}),o.props=n||{},o.context=r||{},o._dirty=!0,o._disable=!0,o}return Ue(t,e),t.prototype.setState=function(e,t){e&&(this._pendingStates=this._pendingStates||[]).push(e),i(t)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(t),this._disable||me(this)},t.prototype.getState=function(){var e=this,t=this._pendingStates,n=void 0===t?[]:t,r=this.state,o=this.props;if(!n.length)return r;var a=h(r),s=n.concat();return this._pendingStates.length=0,s.forEach(function(t){i(t)&&(t=t.call(e,r,o)),f(a,t)}),a},t.prototype.forceUpdate=function(e){i(e)&&(this._pendingCallbacks=this._pendingCallbacks||[]).push(e),he(this,!0)},t}(Le),Ke=function(e){function t(){var n,r,o;je(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=He(this,e.call.apply(e,[this].concat(a))),r.isPureComponent=!0,o=n,He(r,o)}return Ue(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!I(this.props,e)||!I(this.state,t)},t}(Je),Qe=function e(t,n,r,a,s,l){je(this,e),this.type="VirtualNode",this.tagName=t||"DIV",this.props=n||{},this.children=r||[],this.key=a||null,this.namespace=o(s)?s:null,this._owner=l;var c=this.children.length||0,u=0,p=!1,f=!1,h=void 0;for(var d in n)if(n.hasOwnProperty(d)){var v=n[d];T(v)&&v.unhook&&(h||(h={}),h[d]=v)}c&&this.children.forEach(function(e){w(e)?(u+=e.count||0,!p&&e.hasWidgets&&(p=!0),f||!e.hooks&&!e.descendantHooks||(f=!0)):!p&&O(e)&&i(e.destroy)&&(p=!0)}),this.count=c+u,this.hasWidgets=p,this.hooks=h,this.descendantHooks=f},et={ev:"http://www.w3.org/2001/xml-events",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},tt={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,evEvent:"ev:event",exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlId:"xml:id",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},nt={Properties:{},DOMAttributeNamespaces:{evEvent:et.ev,xlinkActuate:et.xlink,xlinkArcrole:et.xlink,xlinkHref:et.xlink,xlinkRole:et.xlink,xlinkShow:et.xlink,xlinkTitle:et.xlink,xlinkType:et.xlink,xmlBase:et.xml,xmlId:et.xml,xmlLang:et.xml,xmlSpace:et.xml},DOMAttributeNames:{}};Object.keys(tt).forEach(function(e){nt.Properties[e]=0,tt[e]&&(nt.DOMAttributeNames[e]=tt[e])});var rt=function(){function e(t,n){je(this,e),this.type="Widget",this.ComponentType=t,this.name=t.name||(""+t).match(/^function\s*([^\s(]+)/)[1],t.displayName=this.name,this._owner=n.owner,delete n.owner,this.props=f(h(t.defaultProps||{}),n)}return e.prototype.init=function(){return se(this)},e.prototype.update=function(e){return fe(e,this)},e.prototype.destroy=function(){ve(this)},e}(),ot=function(){function e(t,n){je(this,e),this.type="StateLess",this.tagName=t,this._owner=n.owner,delete n.owner,this.props=n}return e.prototype.init=function(){return le(this)},e}(),it=function(){function e(t){je(this,e),this.type="HtmlHook",this.value=t}return e.prototype.hook=function(e,t,n){n&&"HtmlHook"===n.type&&n.value===this.value||(e.innerHTML=this.value.__html||"")},e.prototype.unhook=function(e){e.innerHTML=""},e}(),at=function(){function e(){je(this,e),this.cache=[]}return e.prototype.set=function(e,t){var n=this.cache.length;if(n){for(var r=0;r<n;r++){var o=this.cache[r];if(o.k===e)return void(o.v=t)}this.cache.push({k:e,v:t})}else this.cache.push({k:e,v:t})},e.prototype.get=function(e){var t=this.cache.length;if(t)for(var n=0;n<t;n++){var r=this.cache[n];if(r.k===e)return r.v}},e.prototype.has=function(e){var t=this.cache.length;if(t){for(var n=0;n<t;n++){if(this.cache[n].k===e)return!0}return!1}},e.prototype.remove=function(e){for(var t=this.cache.length,n=0;n<t;n++){if(this.cache[n].k===e)return this.cache.splice(n,1),!0}return!1},e.prototype.clear=function(){var e=this.cache.length;if(e)while(e)this.cache.pop(),e--},e.prototype.size=function(){return this.cache.length},e}(),st=new at,lt={onmousemove:1,ontouchmove:1,onmouseleave:1,onmouseenter:1,onload:1,onunload:1,onscroll:1,onfocus:1,onblur:1,onrowexit:1,onbeforeunload:1,onstop:1,ondragdrop:1,ondragenter:1,ondragexit:1,ondraggesture:1,ondragover:1,oncontextmenu:1,onerror:1,onabort:1,oncanplay:1,oncanplaythrough:1,ondurationchange:1,onemptied:1,onended:1,onloadeddata:1,onloadedmetadata:1,onloadstart:1,onencrypted:1,onpause:1,onplay:1,onplaying:1,onprogress:1,onratechange:1,onseeking:1,onseeked:1,onstalled:1,onsuspend:1,ontimeupdate:1,onvolumechange:1,onwaiting:1},ct=function(){function e(t,n){je(this,e),this.type="EventHook",this.eventName=Oe(t),this.handler=n}return e.prototype.hook=function(e,t,n){if(!n||"EventHook"!==n.type||n.handler!==this.handler||n.eventName!==this.eventName){var r=this.eventName,o=st.get(r);if(1===lt[r]){o||(o=new at);var a=Ne(e,r,o);st.set(r,o),i(this.handler)&&o.set(e,{eventHandler:this.handler,event:a})}else o||(o={items:new at},o.event=Ce(document,r,o),st.set(r,o)),i(this.handler)&&o.items.set(e,this.handler)}},e.prototype.unhook=function(e,t,n){if(!n||"EventHook"!==n.type||n.handler!==this.handler||n.eventName!==n.eventName){var r=this.eventName,o=st.get(r);if(1===lt[r]&&o){var i=o.get(e);e.removeEventListener(Se(r),i.event,!1),o.remove(e),0===o.size()&&st.remove(r)}else if(o&&o.items){var a=o.items;a.remove(e)&&0===a.size()&&(document.removeEventListener(Se(r),o.event,!1),st.remove(r))}}},e}(),ut=function(){function e(t,n){if(je(this,e),this.type="AttributeHook",!(this instanceof e))return new e(t,n);this.namespace=t,this.value=n}return e.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS&&e.setAttributeNS(this.namespace,t,this.value)},e.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),o=r>-1?t.substr(r+1):t;e.removeAttributeNS&&e.removeAttributeNS(this.namespace,o)}},e}(),pt=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,ft=[];e.Events=Le,e.Component=Je,e.PureComponent=Ke,e.createElement=_e,e.cloneElement=De,e.Util=Ve,e.render=ke,e.nextTick=x});
//# sourceMappingURL=nerv.min.js.map
{
"name": "nervjs",
"version": "0.0.2",
"version": "0.0.3",
"description": "A react-like framework based on virtual-dom",

@@ -17,4 +17,3 @@ "main": "dist/nerv.js",

"minify": "uglifyjs dist/nerv.js -c collapse_vars,evaluate,screw_ie8,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code -m -o dist/nerv.min.js -p relative --in-source-map dist/nerv.js.map --source-map dist/nerv.min.js.map",
"release": "npm run smart-release",
"smart-release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
"release": "npm run build && npm test && release-it -n -p"
},

@@ -72,2 +71,3 @@ "keywords": [

"npm-run-all": "^4.0.2",
"release-it": "^2.8.2",
"rollup": "^0.41.6",

@@ -74,0 +74,0 @@ "rollup-plugin-babel": "^2.7.1",

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc