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

react-faux-dom

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-faux-dom - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

lib/withFauxDOM.js

8

CHANGES.md
# react-faux-dom changes
## v4.0.0
* Merge [#91](https://github.com/Olical/react-faux-dom/pull/91) - Replace mixins with higher order components.
* Merge [#88](https://github.com/Olical/react-faux-dom/pull/88) - Add CDNJS version to README.md.
* Merge [#89](https://github.com/Olical/react-faux-dom/pull/89) - Add option to discard the existing node in connectFauxDom.
* Merge [#95](https://github.com/Olical/react-faux-dom/pull/95) - Alias style.getPropertyValue to style.getProperty, D3 requires it now.
* Commit [1c3a9ee](https://github.com/Olical/react-faux-dom/commit/1c3a9ee872ccddca49efd8a24b4f419c24da199b) - Only set the parentNode on faux DOM nodes, not React nodes.
## v3.1.0

@@ -4,0 +12,0 @@

2

dist/ReactFauxDOM.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(t,e,n){function r(t,e){this.nodeName=t,this.parentNode=e,this.childNodes=[],this.eventListeners={},this.text="";var n=this,r=this.props={ref:function(t){n.component=t},style:{setProperty:function(t,e){r.style[d(t)]=e},getProperty:function(t){return r.style[d(t)]||""},removeProperty:function(t){delete r.style[d(t)]}}};this.style=r.style}var i=n(16),o=n(15),a=n(11),u=n(1),s=n(8),c=n(9),f=n(7),l=n(2),d=n(10);r.prototype.nodeType=1,r.prototype.eventNameMappings={blur:"onBlur",change:"onChange",click:"onClick",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",doubleclick:"onDoubleClick",drag:"onDrag",dragend:"onDragEnd",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",dragstart:"onDragStart",drop:"onDrop",error:"onError",focus:"onFocus",input:"onInput",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",load:"onLoad",mousedown:"onMouseDown",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",mouseup:"onMouseUp",paste:"onPaste",scroll:"onScroll",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",wheel:"onWheel"},r.prototype.skipNameTransformationExpressions=[/^data-/,/^aria-/],r.prototype.attributeNameMappings={class:"className"},r.prototype.attributeToPropName=function(t){return this.skipNameTransformationExpressions.map(function(e){return e.test(t)}).some(Boolean)?t:this.attributeNameMappings[t]||u(t)},r.prototype.setAttribute=function(t,e){if("style"===t&&s(e)){var n=o.parse(e);for(var r in n)this.style.setProperty(r,n[r])}else this.props[this.attributeToPropName(t)]=e},r.prototype.getAttribute=function(t){return this.props[this.attributeToPropName(t)]},r.prototype.getAttributeNode=function(t){var e=this.getAttribute(t);if(!c(e))return{value:e,specified:!0}},r.prototype.removeAttribute=function(t){delete this.props[this.attributeToPropName(t)]},r.prototype.eventToPropName=function(t){return this.eventNameMappings[t]||t},r.prototype.addEventListener=function(t,e){var n=this.eventToPropName(t);this.eventListeners[n]=this.eventListeners[n]||[],this.eventListeners[n].push(e)},r.prototype.removeEventListener=function(t,e){var n=this.eventListeners[this.eventToPropName(t)];if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}},r.prototype.appendChild=function(t){return t.parentNode=this,this.childNodes.push(t),t},r.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,-1!==n?this.childNodes.splice(n,0,t):this.childNodes.push(t),t},r.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);this.childNodes.splice(e,1)},r.prototype.querySelector=function(){return this.querySelectorAll.apply(this,arguments)[0]||null},r.prototype.querySelectorAll=function(t){if(!t)throw new Error("Not enough arguments");return a(t,this)},r.prototype.getElementsByTagName=function(t){var e=this.children;if(0===e.length)return[];var n;n="*"!==t?e.filter(function(e){return e.nodeName===t}):e;var r=e.map(function(e){return e.getElementsByTagName(t)});return n.concat.apply(n,r)},r.prototype.getElementById=function(t){var e=this.children;if(0===e.length)return null;var n=e.filter(function(e){return e.getAttribute("id")===t})[0];return n||(e.map(function(e){return e.getElementById(t)}).filter(function(t){return null!==t})[0]||null)},r.prototype.getBoundingClientRect=function(){if(this.component)return this.component.getBoundingClientRect()},r.prototype.toReact=function(t){t=t||0;var e=f({},this.props);e.style=f({},e.style);var n=this;return c(e.key)&&(e.key=function(){return"faux-dom-"+t}()),delete e.style.setProperty,delete e.style.getProperty,delete e.style.removeProperty,f(e,l(this.eventListeners,function(t){return function(e){var r;e&&(r=e.nativeEvent,r.syntheticEvent=e),l(t,function(t){t.call(n,r)})}})),i.createElement(this.nodeName,e,this.text||this.children.map(function(t,e){return t instanceof r?t.toReact(e):t}))},Object.defineProperties(r.prototype,{nextSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)+1]}},previousSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)-1]}},innerHTML:{get:function(){return this.text},set:function(t){this.text=t}},textContent:{get:function(){return this.text},set:function(t){this.text=t}},children:{get:function(){return this.childNodes.filter(function(t){return!t.nodeType||1===t.nodeType})}}}),["setAttribute","getAttribute","getAttributeNode","removeAttribute","getElementsByTagName","getElementById"].forEach(function(t){var e=r.prototype[t];r.prototype[t+"NS"]=function(){return e.apply(this,Array.prototype.slice.call(arguments,1))}}),t.exports=r},function(t,e){function n(t,e,n){return 0!==n?e.toUpperCase():e}function r(t){var e=t.replace(i,n);return i.lastIndex=0,e}var i=/\-+([a-z])/gi;t.exports=r},function(t,e){function n(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=n},function(t,e){var n={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=n},function(t,e){var n={animateFauxDOM:function(t){this.animateFauxDOMUntil=Math.max(Date.now()+t,this.animateFauxDOMUntil),this.fauxDOMAnimationInterval||(this.fauxDOMAnimationInterval=setInterval(function(){Date.now()<this.animateFauxDOMUntil?this.drawFauxDOM():this.stopAnimatingFauxDOM()}.bind(this),16))},stopAnimatingFauxDOM:function(){this.fauxDOMAnimationInterval=clearInterval(this.fauxDOMAnimationInterval),this.animateFauxDOMUntil=0},isAnimatingFauxDOM:function(){return!!this.fauxDOMAnimationInterval},componentWillUnmount:function(){this.stopAnimatingFauxDOM()}};t.exports=n},function(t,e,n){var r=n(0),i=n(2),o={componentWillMount:function(){this.connectedFauxDOM={},this.animateFauxDOMUntil=0},connectFauxDOM:function(t,e){return this.connectedFauxDOM[e]||(this.connectedFauxDOM[e]="string"!=typeof t?t:new r(t),setTimeout(this.drawFauxDOM)),this.connectedFauxDOM[e]},drawFauxDOM:function(){var t=i(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)}};t.exports=o},function(t,e,n){var r=n(0),i=n(3),o=n(5),a=n(4),u={Element:r,defaultView:i,mixins:{core:o,anim:a},createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=u,t.exports=u},function(t,e){function n(t){for(var e,n=arguments,r=1;r<n.length;r++){e=n[r];for(var i in e)t[i]=e[i]}return t}t.exports=n},function(t,e){function n(t){return"string"==typeof t}t.exports=n},function(t,e){function n(t){return void 0===t}t.exports=n},function(t,e,n){function r(t){var e=i(t);return e.charAt(0).toUpperCase()===t.charAt(0)?t.charAt(0)+e.slice(1):"-"===t.charAt(0)?0===e.indexOf("ms")?e:e.charAt(0).toUpperCase()+e.slice(1):e}var i=n(1);t.exports=r},function(t,e,n){t.exports=n(12)},function(t,e,n){function r(t){return t.replace(I,O)}function i(){C={}}function o(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function a(t){var e,n=0,r=0;return"number"==typeof t?r=t:"odd"===t?(n=2,r=1):"even"===t?(n=2,r=0):(e=t.replace(/\s/g,"").match(D))&&(e[1]?(n=parseInt(e[2],10),isNaN(n)&&(n="-"===e[2]?-1:1)):n=0,r=parseInt(e[3],10)||0),{a:n,b:r}}function u(t,e,n,r){if(0===e){if(t===n)return r}else if((t-n)/e>=0&&(t-n)%e==0&&r)return 1}function s(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"html"!==e.nodeName.toLowerCase()}function c(t,e){return m(t,null,e)}function f(t,e){if(!e)return!0;if(!t)return!1;if(9===t.nodeType)return!1;var n,r,i=1,o=e.suffix;if("tag"===e.t&&(i&=g.tag(t,e.value)),i&&o)for(n=o.length,r=0;i&&r<n;r++){var a=o[r],u=a.t;g[u]&&(i&=g[u](t,a.value))}return i}function l(t,e){var n,r=1,i=t,a=e;do{if(!(r&=f(t,e)))return n=L[e.nextCombinator],n.immediate?{el:o(i,L[a.nextCombinator].dir),match:a}:{el:t&&o(t,n.dir),match:e};if(!(e=e&&e.prev))return!0;if(n=L[e.nextCombinator],t=o(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:o(i,L[a.nextCombinator].dir),match:a}}function d(t,e){var n,r=e;do{if(!f(t,r))return null;if(!(r=r.prev))return!0;n=L[r.nextCombinator],t=o(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function p(t){var e;return x?(e=t.getAttribute(N))||t.setAttribute(N,e=+new Date+"_"+ ++E):(e=t[N])||(e=t[N]=+new Date+"_"+ ++E),e}function h(t,e){var n,r=p(t);return(n=r+"_"+(e.order||0))in C?C[n]:(C[n]=v(t,e),C[n])}function v(t,e){var n=l(t,e);if(!0===n)return!0;for(t=n.el,e=n.match;t;){if(h(t,e))return!0;t=o(t,L[e.nextCombinator].dir)}return!1}function m(t,e,n){T[t]||(T[t]=b.parse(t));var r,o,a=T[t],u=0,c=a.length,f=[];for(n&&(e=e||n[0].ownerDocument),r=e&&e.ownerDocument||"undefined"!=typeof document&&document,e&&9===e.nodeType&&!r&&(r=e),e=e||r,x=s(e);u<c;u++){i(),o=a[u];var l,p,v,m,g=o.suffix,N=n,E=null;if(!N){if(g&&!x)for(l=0,p=g.length;l<p;l++){var C=g[l];if("id"===C.t){E=C.value;break}}if(E){var w=!e.getElementById,A=y.contains(r,e),D=w?A?r.getElementById(E):null:e.getElementById(E);if(!D&&w||D&&S(D,"id")!==E){for(var I=y.getElementsByTagName("*",e),O=I.length,M=0;M<O;M++)if(D=I[M],S(D,"id")===E){N=[D];break}M===O&&(N=[])}else A&&D&&e!==r&&(D=y.contains(e,D)?D:null),N=D?[D]:[]}else N=y.getElementsByTagName(o.value||"*",e)}if(v=0,m=N.length)for(;v<m;v++){var $=N[v],_=d($,o);!0===_?f.push($):_&&h(_.el,_.match)&&f.push($)}}return c>1&&(f=y.unique(f)),f}var x,g,y=n(14),b=n(13),N="_ks_data_selector_id_",T={},E=0,C={},S=function(t,e){return x?y.getSimpleAttr(t,e):y.attr(t,e)},w=y.hasSingleClass,A=y.isTag,D=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,O=function(t,e){var n="0x"+e-65536;return isNaN(n)?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},M={"nth-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,d=0,p=l.length;d<p;d++)if(c=l[d],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-last-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,d=l.length,p=d-1;p>=0;p--)if(c=l[p],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,d=t.tagName,p=0,h=l.length;p<h;p++)if(c=l[p],c.tagName===d&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-last-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,d=l.length,p=t.tagName,h=d-1;h>=0;h--)if(c=l[h],c.tagName===p&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do{if(n=x?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1},not:function(t,e){return!g[e.t](t,e.value)}},$={empty:function(t){for(var e,n,r=t.childNodes,i=0,o=r.length-1;i<o;i++)if(e=r[i],1===(n=e.nodeType)||3===n||4===n||5===n)return 0;return 1},root:function(t){return 9===t.nodeType||t.ownerDocument&&t===t.ownerDocument.documentElement},"first-child":function(t){return M["nth-child"](t,1)},"last-child":function(t){return M["nth-last-child"](t,1)},"first-of-type":function(t){return M["nth-of-type"](t,1)},"last-of-type":function(t){return M["nth-last-of-type"](t,1)},"only-child":function(t){return $["first-child"](t)&&$["last-child"](t)},"only-of-type":function(t){return $["first-of-type"](t)&&$["last-of-type"](t)},focus:function(t){var e=t.ownerDocument;return e&&t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||t.tabIndex>=0)},target:function(t){var e=location.hash;return e&&e.slice(1)===S(t,"id")},enabled:function(t){return!t.disabled},disabled:function(t){return t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&t.checked||"option"===e&&t.selected}},_={"~=":function(t,e){return!e||e.indexOf(" ")>-1?0:-1!==(" "+t+" ").indexOf(" "+e+" ")},"|=":function(t,e){return-1!==(" "+t).indexOf(" "+e+"-")},"^=":function(t,e){return e&&y.startsWith(t,e)},"$=":function(t,e){return e&&y.endsWith(t,e)},"*=":function(t,e){return e&&-1!==t.indexOf(e)},"=":function(t,e){return t===e}},L={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};g={tag:A,cls:w,id:function(t,e){return S(t,"id")===e},attrib:function(t,e){var n=e.ident;x||(n=n.toLowerCase());var r=S(t,n),i=e.match;if(!i&&void 0!==r)return 1;if(i){if(void 0===r)return 0;var o=_[i];if(o)return o(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,i;if(r=e.fn){if(!(n=M[r]))throw new SyntaxError("Syntax error: not support pseudo: "+r);return n(t,e.param)}if(i=e.ident){if(!$[i])throw new SyntaxError("Syntax error: not support pseudo: "+i);return $[i](t)}return 0}},b.lexer.yy={trim:y.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=m,m.parse=function(t){return b.parse(t)},m.matches=c,m.util=y,m.version="@VERSION@"},function(t,e,n){var r=function(t){function e(t,e){for(var n in e)t[n]=e[n]}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t,e,r){if(t){var i,o,a,u=0;if(r=r||null,n(t))for(a=t.length,o=t[0];u<a&&!1!==e.call(r,o,u,t);o=t[++u]);else for(i in t)if(!1===e.call(r,t[i],i,t))break}}function i(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}var o={},a={SHIFT_TYPE:1,REDUCE_TYPE:2,ACCEPT_TYPE:0,TYPE_INDEX:0,PRODUCTION_INDEX:1,TO_INDEX:2},u=function(t){var n=this;n.rules=[],e(n,t),n.resetInput(n.input)};u.prototype={resetInput:function(t){e(this,{input:t,matched:"",stateStack:[u.STATIC.INITIAL],match:"",text:"",firstLine:1,lineNumber:1,lastLine:1,firstColumn:1,lastColumn:1})},getCurrentRules:function(){var t=this,e=t.stateStack[t.stateStack.length-1],n=[];return t.mapState&&(e=t.mapState(e)),r(t.rules,function(t){var r=t.state||t[3];r?i(e,r)&&n.push(t):e===u.STATIC.INITIAL&&n.push(t)}),n},pushState:function(t){this.stateStack.push(t)},popState:function(t){t=t||1;for(var e;t--;)e=this.stateStack.pop();return e},showDebugInfo:function(){var t=this,e=u.STATIC.DEBUG_CONTEXT_LIMIT,n=t.matched,r=t.match,i=t.input;n=n.slice(0,n.length-r.length);var o=(n.length>e?"...":"")+n.slice(0-e).replace(/\n/," "),a=r+i;return a=a.slice(0,e)+(a.length>e?"...":""),o+a+"\n"+new Array(o.length+1).join("-")+"^"},mapSymbol:function(t){return this.symbolMap[t]},mapReverseSymbol:function(t){var e,n=this,r=n.symbolMap,i=n.reverseSymbolMap;if(!i&&r){i=n.reverseSymbolMap={};for(e in r)i[r[e]]=e}return i?i[t]:t},lex:function(){var t,n,r,i,o,a=this,s=a.input,c=a.getCurrentRules();if(a.match=a.text="",!s)return a.mapSymbol(u.STATIC.END_TAG);for(t=0;t<c.length;t++){n=c[t];var f=n.regexp||n[1],l=n.token||n[0],d=n.action||n[2]||void 0;if(r=s.match(f)){o=r[0].match(/\n.*/g),o&&(a.lineNumber+=o.length),e(a,{firstLine:a.lastLine,lastLine:a.lineNumber+1,firstColumn:a.lastColumn,lastColumn:o?o[o.length-1].length-1:a.lastColumn+r[0].length});var p;return p=a.match=r[0],a.matches=r,a.text=p,a.matched+=p,i=d&&d.call(a),i=void 0===i?l:a.mapSymbol(i),s=s.slice(p.length),a.input=s,i||a.lex()}}}},u.STATIC={INITIAL:"I",DEBUG_CONTEXT_LIMIT:20,END_TAG:"$EOF"};var s=new u({rules:[["b",/^\[(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["c",/^(?:[\t\r\n\f\x20]*)\]/,function(){this.text=this.yy.trim(this.text)}],["d",/^(?:[\t\r\n\f\x20]*)~=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["e",/^(?:[\t\r\n\f\x20]*)\|=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["f",/^(?:[\t\r\n\f\x20]*)\^=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["g",/^(?:[\t\r\n\f\x20]*)\$=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["h",/^(?:[\t\r\n\f\x20]*)\*=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["i",/^(?:[\t\r\n\f\x20]*)\=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["j",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)\(/,function(){this.text=this.yy.trim(this.text).slice(0,-1),this.pushState("fn")}],["k",/^[^\)]*/,function(){this.popState()},["fn"]],["l",/^(?:[\t\r\n\f\x20]*)\)/,function(){this.text=this.yy.trim(this.text)}],["m",/^:not\((?:[\t\r\n\f\x20]*)/i,function(){this.text=this.yy.trim(this.text)}],["n",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text)}],["o",/^"(\\"|[^"])*"/,function(){this.text=this.yy.unEscapeStr(this.text)}],["o",/^'(\\'|[^'])*'/,function(){this.text=this.yy.unEscapeStr(this.text)}],["p",/^#(?:(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))+)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["q",/^\.(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["r",/^(?:[\t\r\n\f\x20]*),(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["s",/^::?/,0],["t",/^(?:[\t\r\n\f\x20]*)\+(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["u",/^(?:[\t\r\n\f\x20]*)>(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["v",/^(?:[\t\r\n\f\x20]*)~(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["w",/^\*/,0],["x",/^(?:[\t\r\n\f\x20]+)/,0],["y",/^./,0]]});return o.lexer=s,s.symbolMap={$EOF:"a",LEFT_BRACKET:"b",RIGHT_BRACKET:"c",INCLUDES:"d",DASH_MATCH:"e",PREFIX_MATCH:"f",SUFFIX_MATCH:"g",SUBSTRING_MATCH:"h",ALL_MATCH:"i",FUNCTION:"j",PARAMETER:"k",RIGHT_PARENTHESES:"l",NOT:"m",IDENT:"n",STRING:"o",HASH:"p",CLASS:"q",COMMA:"r",COLON:"s",PLUS:"t",GREATER:"u",TILDE:"v",UNIVERSAL:"w",S:"x",INVALID:"y",$START:"z",selectors_group:"aa",selector:"ab",simple_selector_sequence:"ac",combinator:"ad",type_selector:"ae",id_selector:"af",class_selector:"ag",attrib_match:"ah",attrib:"ai",attrib_val:"aj",pseudo:"ak",negation:"al",negation_arg:"am",suffix_selector:"an",suffix_selectors:"ao"},o.productions=[["z",["aa"]],["aa",["ab"],function(){return[this.$1]}],["aa",["aa","r","ab"],function(){this.$1.push(this.$3)}],["ab",["ac"]],["ab",["ab","ad","ac"],function(){this.$1.nextCombinator=this.$3.prevCombinator=this.$2;var t;return t=this.$1.order=this.$1.order||0,this.$3.order=t+1,this.$3.prev=this.$1,this.$1.next=this.$3,this.$3}],["ad",["t"]],["ad",["u"]],["ad",["v"]],["ad",["x"],function(){return" "}],["ae",["n"],function(){return{t:"tag",value:this.$1}}],["ae",["w"],function(){return{t:"tag",value:this.$1}}],["af",["p"],function(){return{t:"id",value:this.$1}}],["ag",["q"],function(){return{t:"cls",value:this.$1}}],["ah",["f"]],["ah",["g"]],["ah",["h"]],["ah",["i"]],["ah",["d"]],["ah",["e"]],["ai",["b","n","c"],function(){return{t:"attrib",value:{ident:this.$2}}}],["aj",["n"]],["aj",["o"]],["ai",["b","n","ah","aj","c"],function(){return{t:"attrib",value:{ident:this.$2,match:this.$3,value:this.$4}}}],["ak",["s","j","k","l"],function(){return{t:"pseudo",value:{fn:this.$2.toLowerCase(),param:this.$3}}}],["ak",["s","n"],function(){return{t:"pseudo",value:{ident:this.$2.toLowerCase()}}}],["al",["m","am","l"],function(){return{t:"pseudo",value:{fn:"not",param:this.$2}}}],["am",["ae"]],["am",["af"]],["am",["ag"]],["am",["ai"]],["am",["ak"]],["an",["af"]],["an",["ag"]],["an",["ai"]],["an",["ak"]],["an",["al"]],["ao",["an"],function(){return[this.$1]}],["ao",["ao","an"],function(){this.$1.push(this.$2)}],["ac",["ae"]],["ac",["ao"],function(){return{suffix:this.$1}}],["ac",["ae","ao"],function(){return{t:"tag",value:this.$1.value,suffix:this.$2}}]],o.table={gotos:{0:{aa:8,ab:9,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},2:{ae:20,af:21,ag:22,ai:23,ak:24,am:25},9:{ad:33},10:{af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:34},17:{af:11,ag:12,ai:13,ak:14,al:15,an:35},19:{ah:43},28:{ab:46,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},33:{ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:47},34:{af:11,ag:12,ai:13,ak:14,al:15,an:35},43:{aj:50},46:{ad:33}},action:{0:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},1:{n:[1,void 0,19]},2:{b:[1,void 0,1],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},3:{a:[2,9],r:[2,9],t:[2,9],u:[2,9],v:[2,9],x:[2,9],p:[2,9],q:[2,9],b:[2,9],s:[2,9],m:[2,9],l:[2,9]},4:{a:[2,11],r:[2,11],t:[2,11],u:[2,11],v:[2,11],x:[2,11],p:[2,11],q:[2,11],b:[2,11],s:[2,11],m:[2,11],l:[2,11]},5:{a:[2,12],r:[2,12],t:[2,12],u:[2,12],v:[2,12],x:[2,12],p:[2,12],q:[2,12],b:[2,12],s:[2,12],m:[2,12],l:[2,12]},6:{j:[1,void 0,26],n:[1,void 0,27]},7:{a:[2,10],r:[2,10],t:[2,10],u:[2,10],v:[2,10],x:[2,10],p:[2,10],q:[2,10],b:[2,10],s:[2,10],m:[2,10],l:[2,10]},8:{a:[0],r:[1,void 0,28]},9:{a:[2,1],r:[2,1],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},11:{a:[2,31],r:[2,31],t:[2,31],u:[2,31],v:[2,31],x:[2,31],p:[2,31],q:[2,31],b:[2,31],s:[2,31],m:[2,31]},12:{a:[2,32],r:[2,32],t:[2,32],u:[2,32],v:[2,32],x:[2,32],p:[2,32],q:[2,32],b:[2,32],s:[2,32],m:[2,32]},13:{a:[2,33],r:[2,33],t:[2,33],u:[2,33],v:[2,33],x:[2,33],p:[2,33],q:[2,33],b:[2,33],s:[2,33],m:[2,33]},14:{a:[2,34],r:[2,34],t:[2,34],u:[2,34],v:[2,34],x:[2,34],p:[2,34],q:[2,34],b:[2,34],s:[2,34],m:[2,34]},15:{a:[2,35],r:[2,35],t:[2,35],u:[2,35],v:[2,35],x:[2,35],p:[2,35],q:[2,35],b:[2,35],s:[2,35],m:[2,35]},16:{a:[2,36],r:[2,36],t:[2,36],u:[2,36],v:[2,36],x:[2,36],p:[2,36],q:[2,36],b:[2,36],s:[2,36],m:[2,36]},17:{a:[2,39],r:[2,39],t:[2,39],u:[2,39],v:[2,39],x:[2,39],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,void 0,36],d:[1,void 0,37],e:[1,void 0,38],f:[1,void 0,39],g:[1,void 0,40],h:[1,void 0,41],i:[1,void 0,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,void 0,44]},26:{k:[1,void 0,45]},27:{a:[2,24],r:[2,24],t:[2,24],u:[2,24],v:[2,24],x:[2,24],p:[2,24],q:[2,24],b:[2,24],s:[2,24],m:[2,24],l:[2,24]},28:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},29:{n:[2,5],w:[2,5],p:[2,5],q:[2,5],b:[2,5],s:[2,5],m:[2,5]},30:{n:[2,6],w:[2,6],p:[2,6],q:[2,6],b:[2,6],s:[2,6],m:[2,6]},31:{n:[2,7],w:[2,7],p:[2,7],q:[2,7],b:[2,7],s:[2,7],m:[2,7]},32:{n:[2,8],w:[2,8],p:[2,8],q:[2,8],b:[2,8],s:[2,8],m:[2,8]},33:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},35:{a:[2,37],r:[2,37],t:[2,37],u:[2,37],v:[2,37],x:[2,37],p:[2,37],q:[2,37],b:[2,37],s:[2,37],m:[2,37]},36:{a:[2,19],r:[2,19],t:[2,19],u:[2,19],v:[2,19],x:[2,19],p:[2,19],q:[2,19],b:[2,19],s:[2,19],m:[2,19],l:[2,19]},37:{n:[2,17],o:[2,17]},38:{n:[2,18],o:[2,18]},39:{n:[2,13],o:[2,13]},40:{n:[2,14],o:[2,14]},41:{n:[2,15],o:[2,15]},42:{n:[2,16],o:[2,16]},43:{n:[1,void 0,48],o:[1,void 0,49]},44:{a:[2,25],r:[2,25],t:[2,25],u:[2,25],v:[2,25],x:[2,25],p:[2,25],q:[2,25],b:[2,25],s:[2,25],m:[2,25]},45:{l:[1,void 0,51]},46:{a:[2,2],r:[2,2],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},47:{a:[2,4],r:[2,4],t:[2,4],u:[2,4],v:[2,4],x:[2,4]},48:{c:[2,20]},49:{c:[2,21]},50:{c:[1,void 0,52]},51:{a:[2,23],r:[2,23],t:[2,23],u:[2,23],v:[2,23],x:[2,23],p:[2,23],q:[2,23],b:[2,23],s:[2,23],m:[2,23],l:[2,23]},52:{a:[2,22],r:[2,22],t:[2,22],u:[2,22],v:[2,22],x:[2,22],p:[2,22],q:[2,22],b:[2,22],s:[2,22],m:[2,22],l:[2,22]}}},o.parse=function(t,e){var n,r,i,o=this,u=o.lexer,s=o.table,c=s.gotos,f=s.action,l=o.productions,d=[null],p=e?"in file: "+e+" ":"",h=[0];for(u.resetInput(t);;){if(n=h[h.length-1],r||(r=u.lex()),!(i=r?f[n]&&f[n][r]:null)){var v,m=[];if(f[n])for(var x in f[n])m.push(o.lexer.mapReverseSymbol(x));throw v=p+"syntax error at line "+u.lineNumber+":\n"+u.showDebugInfo()+"\nexpect "+m.join(", "),new Error(v)}switch(i[a.TYPE_INDEX]){case a.SHIFT_TYPE:h.push(r),d.push(u.text),h.push(i[a.TO_INDEX]),r=null;break;case a.REDUCE_TYPE:var g,y=l[i[a.PRODUCTION_INDEX]],b=y.symbol||y[0],N=y.action||y[2],T=y.rhs||y[1],E=T.length,C=0,S=d[d.length-E];for(g=void 0,o.$$=S;C<E;C++)o["$"+(E-C)]=d[d.length-1-C];N&&(g=N.call(o)),S=void 0!==g?g:o.$$,h=h.slice(0,-1*E*2),d=d.slice(0,-1*E),h.push(b),d.push(S);var w=c[h[h.length-2]][h[h.length-1]];h.push(w);break;case a.ACCEPT_TYPE:return S}}},o}();t.exports=r},function(t,e){function n(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0==e++?".":""}))}function r(t,e){for(var n in e)t[n]=e[n]}var i,o=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,a=/^(?:button|input|object|select|textarea)$/i,u=/^a(?:rea)?$/i,s=/:|^on/,c={},f={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):a.test(t.nodeName)||u.test(t.nodeName)&&t.href?0:void 0}}},l={get:function(t,e){return t[i[e]||e]?e.toLowerCase():void 0}},d={};f.style={get:function(t){return t.style.cssText}},i={hidefocus:"hideFocus",tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};var p="undefined"!=typeof navigator?navigator.userAgent:"",h="undefined"!=typeof document?document:{},v=function(){var t,e;if((t=p.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return h.documentMode||n(e)}();if(v&&v<8&&(f.style.set=function(t,e){t.style.cssText=e},r(d,{get:function(t,e){var n=t.getAttributeNode(e);return n&&(n.specified||n.nodeValue)?n.nodeValue:void 0}}),r(c,i),f.tabIndex=f.tabindex,function(t,e){for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);}(["href","src","width","height","colSpan","rowSpan"],function(t){f[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),f.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),v){(f.href=f.href||{}).set=function(t,e,n){var r,i=t.childNodes,o=i.length,a=o>0;for(o-=1;o>=0;o--)3!==i[o].nodeType&&(a=0);a&&(r=t.ownerDocument.createElement("b"),r.style.display="none",t.appendChild(r)),t.setAttribute(n,""+e),r&&t.removeChild(r)}}var m,x=String.prototype.trim;if(m=function(t,e){return e.getElementsByTagName(t)},h.createElement){var g=h.createElement("div");g.appendChild(document.createComment("")),g.getElementsByTagName("*").length&&(m=function(t,e){var n=e.getElementsByTagName(t),r="*"===t;if(r||"number"!=typeof n.length){for(var i,o=[],a=0;i=n[a++];)r&&1!==i.nodeType||o.push(i);return o}return n})}var y="sourceIndex"in(h&&h.documentElement||{})?function(t,e){return t.sourceIndex-e.sourceIndex}:function(t,e){return t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1},b=t.exports={ie:v,unique:function(){function t(t,n){return t===n?(e=!0,0):y(t,n)}var e,n=!0;return[0,0].sort(function(){return n=!1,0}),function(r){if(e=n,r.sort(t),e)for(var i=1,o=r.length;i<o;)r[i]===r[i-1]?(r.splice(i,1),--o):i++;return r}}(),getElementsByTagName:m,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:v?function(t,e){return 9===t.nodeType&&(t=t.documentElement),e=e.parentNode,t===e||!(!e||1!==e.nodeType)&&(t.contains&&t.contains(e))}:function(t,e){return!!(16&t.compareDocumentPosition(e))},isTag:function(t,e){return"*"===e||t.nodeName.toLowerCase()===e.toLowerCase()},hasSingleClass:function(t,e){var n=t&&b.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g," "))&&(" "+n+" ").indexOf(" "+e+" ")>-1},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n},trim:x?function(t){return null==t?"":x.call(t)}:function(t){return null==t?"":(t+"").replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=c[e]||e,n=o.test(e)?l:s.test(e)?d:f[e],t&&1===t.nodeType){if("form"===t.nodeName.toLowerCase()&&(n=d),n&&n.get)return n.get(t,e);if(""===(r=t.getAttribute(e))){var i=t.getAttributeNode(e);if(!i||!i.specified)return}return null===r?void 0:r}}}},function(t,e){function n(t){var e=function(t){return t.trim()},n={};return r(t).map(e).filter(Boolean).forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),i=t.substr(e+1).trim();n[r]=i}),n}function r(t){for(var e,n=[],r=0,i=/url\([^\)]+$/,o="";r<t.length;)e=t.indexOf(";",r),-1===e&&(e=t.length),o+=t.substring(r,e),i.test(o)?(o+=";",r=e+1):(n.push(o),o="",r=e+1);return n}function i(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function o(t){return i(n(t))}t.exports.parse=n,t.exports.stringify=i,t.exports.normalize=o},function(e,n){e.exports=t}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(t,e,n){"use strict";function r(t,e){this.nodeName=t,this.parentNode=e,this.childNodes=[],this.eventListeners={},this.text="";var n=this,r=this.props={ref:function(t){n.component=t},style:{setProperty:function(t,e){r.style[p(t)]=e},getProperty:function(t){return r.style[p(t)]||""},getPropertyValue:function(t){return r.style.getProperty(t)},removeProperty:function(t){delete r.style[p(t)]}}};this.style=r.style}var i=n(15),o=n(14),a=n(10),u=n(1),s=n(7),c=n(8),f=n(6),l=n(2),p=n(9);r.prototype.nodeType=1,r.prototype.eventNameMappings={blur:"onBlur",change:"onChange",click:"onClick",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",doubleclick:"onDoubleClick",drag:"onDrag",dragend:"onDragEnd",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",dragstart:"onDragStart",drop:"onDrop",error:"onError",focus:"onFocus",input:"onInput",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",load:"onLoad",mousedown:"onMouseDown",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",mouseup:"onMouseUp",paste:"onPaste",scroll:"onScroll",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",wheel:"onWheel"},r.prototype.skipNameTransformationExpressions=[/^data-/,/^aria-/],r.prototype.attributeNameMappings={class:"className"},r.prototype.attributeToPropName=function(t){return this.skipNameTransformationExpressions.map(function(e){return e.test(t)}).some(Boolean)?t:this.attributeNameMappings[t]||u(t)},r.prototype.setAttribute=function(t,e){if("style"===t&&s(e)){var n=o.parse(e);for(var r in n)this.style.setProperty(r,n[r])}else this.props[this.attributeToPropName(t)]=e},r.prototype.getAttribute=function(t){return this.props[this.attributeToPropName(t)]},r.prototype.getAttributeNode=function(t){var e=this.getAttribute(t);if(!c(e))return{value:e,specified:!0}},r.prototype.removeAttribute=function(t){delete this.props[this.attributeToPropName(t)]},r.prototype.eventToPropName=function(t){return this.eventNameMappings[t]||t},r.prototype.addEventListener=function(t,e){var n=this.eventToPropName(t);this.eventListeners[n]=this.eventListeners[n]||[],this.eventListeners[n].push(e)},r.prototype.removeEventListener=function(t,e){var n=this.eventListeners[this.eventToPropName(t)];if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}},r.prototype.appendChild=function(t){return t instanceof r&&(t.parentNode=this),this.childNodes.push(t),t},r.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,-1!==n?this.childNodes.splice(n,0,t):this.childNodes.push(t),t},r.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);this.childNodes.splice(e,1)},r.prototype.querySelector=function(){return this.querySelectorAll.apply(this,arguments)[0]||null},r.prototype.querySelectorAll=function(t){if(!t)throw new Error("Not enough arguments");return a(t,this)},r.prototype.getElementsByTagName=function(t){var e=this.children;if(0===e.length)return[];var n;n="*"!==t?e.filter(function(e){return e.nodeName===t}):e;var r=e.map(function(e){return e.getElementsByTagName(t)});return n.concat.apply(n,r)},r.prototype.getElementById=function(t){var e=this.children;if(0===e.length)return null;var n=e.filter(function(e){return e.getAttribute("id")===t})[0];return n||(e.map(function(e){return e.getElementById(t)}).filter(function(t){return null!==t})[0]||null)},r.prototype.getBoundingClientRect=function(){if(this.component)return this.component.getBoundingClientRect()},r.prototype.toReact=function(t){t=t||0;var e=f({},this.props);e.style=f({},e.style);var n=this;return c(e.key)&&(e.key=function(){return"faux-dom-"+t}()),delete e.style.setProperty,delete e.style.getProperty,delete e.style.getPropertyValue,delete e.style.removeProperty,f(e,l(this.eventListeners,function(t){return function(e){var r;e&&(r=e.nativeEvent,r.syntheticEvent=e),l(t,function(t){t.call(n,r)})}})),i.createElement(this.nodeName,e,this.text||this.children.map(function(t,e){return t instanceof r?t.toReact(e):t}))},Object.defineProperties(r.prototype,{nextSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)+1]}},previousSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)-1]}},innerHTML:{get:function(){return this.text},set:function(t){this.text=t}},textContent:{get:function(){return this.text},set:function(t){this.text=t}},children:{get:function(){return this.childNodes.filter(function(t){return!t.nodeType||1===t.nodeType})}}}),["setAttribute","getAttribute","getAttributeNode","removeAttribute","getElementsByTagName","getElementById"].forEach(function(t){var e=r.prototype[t];r.prototype[t+"NS"]=function(){return e.apply(this,Array.prototype.slice.call(arguments,1))}}),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){return 0!==n?e.toUpperCase():e}function i(t){var e=t.replace(o,r);return o.lastIndex=0,e}var o=/\-+([a-z])/gi;t.exports=i},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=r},function(t,e,n){"use strict";var r={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},s=n(0),c=n(2),f=function(t){var e=function(e){function n(t){r(this,n);var e=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.connectFauxDOM=e.connectFauxDOM.bind(e),e.drawFauxDOM=e.drawFauxDOM.bind(e),e.animateFauxDOM=e.animateFauxDOM.bind(e),e.stopAnimatingFauxDOM=e.stopAnimatingFauxDOM.bind(e),e.isAnimatingFauxDOM=e.isAnimatingFauxDOM.bind(e),e}return o(n,e),a(n,[{key:"componentWillMount",value:function(){t.componentWillMount&&u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillMount",this).call(this),this.connectedFauxDOM={},this.animateFauxDOMUntil=0}},{key:"componentWillUnmount",value:function(){t.componentWillUnmount&&u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this).call(this),this.stopAnimatingFauxDOM()}},{key:"connectFauxDOM",value:function(t,e,n){return this.connectedFauxDOM[e]&&!n||(this.connectedFauxDOM[e]="string"!=typeof t?t:new s(t),setTimeout(this.drawFauxDOM)),this.connectedFauxDOM[e]}},{key:"drawFauxDOM",value:function(){var t=c(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)}},{key:"animateFauxDOM",value:function(t){this.animateFauxDOMUntil=Math.max(Date.now()+t,this.animateFauxDOMUntil),this.fauxDOMAnimationInterval||(this.fauxDOMAnimationInterval=setInterval(function(){Date.now()<this.animateFauxDOMUntil?this.drawFauxDOM():this.stopAnimatingFauxDOM()}.bind(this),16))}},{key:"stopAnimatingFauxDOM",value:function(){this.fauxDOMAnimationInterval=clearInterval(this.fauxDOMAnimationInterval),this.animateFauxDOMUntil=0}},{key:"isAnimatingFauxDOM",value:function(){return!!this.fauxDOMAnimationInterval}},{key:"render",value:function(){return u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this)}}]),n}(t);return e.displayName="WithFauxDOM("+l(t)+")",e},l=function(t){return t.displayName||t.name||"Component"};t.exports=f},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(4),a={Element:r,defaultView:i,withFauxDOM:o,createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=a,t.exports=a},function(t,e,n){"use strict";function r(t){for(var e,n=arguments,r=1;r<n.length;r++){e=n[r];for(var i in e)t[i]=e[i]}return t}t.exports=r},function(t,e,n){"use strict";function r(t){return"string"==typeof t}t.exports=r},function(t,e,n){"use strict";function r(t){return void 0===t}t.exports=r},function(t,e,n){"use strict";function r(t){var e=i(t);return e.charAt(0).toUpperCase()===t.charAt(0)?t.charAt(0)+e.slice(1):"-"===t.charAt(0)?0===e.indexOf("ms")?e:e.charAt(0).toUpperCase()+e.slice(1):e}var i=n(1);t.exports=r},function(t,e,n){"use strict";t.exports=n(11)},function(t,e,n){"use strict";function r(t){return t.replace(S,M)}function i(){O={}}function o(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function a(t){var e,n=0,r=0;return"number"==typeof t?r=t:"odd"===t?(n=2,r=1):"even"===t?(n=2,r=0):(e=t.replace(/\s/g,"").match(A))&&(e[1]?(n=parseInt(e[2],10),isNaN(n)&&(n="-"===e[2]?-1:1)):n=0,r=parseInt(e[3],10)||0),{a:n,b:r}}function u(t,e,n,r){if(0===e){if(t===n)return r}else if((t-n)/e>=0&&(t-n)%e==0&&r)return 1}function s(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"html"!==e.nodeName.toLowerCase()}function c(t,e){return m(t,null,e)}function f(t,e){if(!e)return!0;if(!t)return!1;if(9===t.nodeType)return!1;var n,r,i=1,o=e.suffix;if("tag"===e.t&&(i&=y.tag(t,e.value)),i&&o)for(n=o.length,r=0;i&&r<n;r++){var a=o[r],u=a.t;y[u]&&(i&=y[u](t,a.value))}return i}function l(t,e){var n,r=1,i=t,a=e;do{if(!(r&=f(t,e)))return n=k[e.nextCombinator],n.immediate?{el:o(i,k[a.nextCombinator].dir),match:a}:{el:t&&o(t,n.dir),match:e};if(!(e=e&&e.prev))return!0;if(n=k[e.nextCombinator],t=o(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:o(i,k[a.nextCombinator].dir),match:a}}function p(t,e){var n,r=e;do{if(!f(t,r))return null;if(!(r=r.prev))return!0;n=k[r.nextCombinator],t=o(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function d(t){var e;return x?(e=t.getAttribute(N))||t.setAttribute(N,e=+new Date+"_"+ ++E):(e=t[N])||(e=t[N]=+new Date+"_"+ ++E),e}function h(t,e){var n,r=d(t);return(n=r+"_"+(e.order||0))in O?O[n]:(O[n]=v(t,e),O[n])}function v(t,e){var n=l(t,e);if(!0===n)return!0;for(t=n.el,e=n.match;t;){if(h(t,e))return!0;t=o(t,k[e.nextCombinator].dir)}return!1}function m(t,e,n){T[t]||(T[t]=b.parse(t));var r,o,a=T[t],u=0,c=a.length,f=[];for(n&&(e=e||n[0].ownerDocument),r=e&&e.ownerDocument||"undefined"!=typeof document&&document,e&&9===e.nodeType&&!r&&(r=e),e=e||r,x=s(e);u<c;u++){i(),o=a[u];var l,d,v,m,y=o.suffix,N=n,E=null;if(!N){if(y&&!x)for(l=0,d=y.length;l<d;l++){var O=y[l];if("id"===O.t){E=O.value;break}}if(E){var w=!e.getElementById,C=g.contains(r,e),A=w?C?r.getElementById(E):null:e.getElementById(E);if(!A&&w||A&&D(A,"id")!==E){for(var S=g.getElementsByTagName("*",e),M=S.length,I=0;I<M;I++)if(A=S[I],D(A,"id")===E){N=[A];break}I===M&&(N=[])}else C&&A&&e!==r&&(A=g.contains(e,A)?A:null),N=A?[A]:[]}else N=g.getElementsByTagName(o.value||"*",e)}if(v=0,m=N.length)for(;v<m;v++){var _=N[v],P=p(_,o);!0===P?f.push(_):P&&h(P.el,P.match)&&f.push(_)}}return c>1&&(f=g.unique(f)),f}var x,y,g=n(13),b=n(12),N="_ks_data_selector_id_",T={},E=0,O={},D=function(t,e){return x?g.getSimpleAttr(t,e):g.attr(t,e)},w=g.hasSingleClass,C=g.isTag,A=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,S=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,M=function(t,e){var n="0x"+e-65536;return isNaN(n)?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},I={"nth-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=0,d=l.length;p<d;p++)if(c=l[p],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-last-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,d=p-1;d>=0;d--)if(c=l[d],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=t.tagName,d=0,h=l.length;d<h;d++)if(c=l[d],c.tagName===p&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},"nth-last-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,d=t.tagName,h=p-1;h>=0;h--)if(c=l[h],c.tagName===d&&(o++,void 0!==(f=u(o,r,i,c===t))))return f;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do{if(n=x?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1},not:function(t,e){return!y[e.t](t,e.value)}},_={empty:function(t){for(var e,n,r=t.childNodes,i=0,o=r.length-1;i<o;i++)if(e=r[i],1===(n=e.nodeType)||3===n||4===n||5===n)return 0;return 1},root:function(t){return 9===t.nodeType||t.ownerDocument&&t===t.ownerDocument.documentElement},"first-child":function(t){return I["nth-child"](t,1)},"last-child":function(t){return I["nth-last-child"](t,1)},"first-of-type":function(t){return I["nth-of-type"](t,1)},"last-of-type":function(t){return I["nth-last-of-type"](t,1)},"only-child":function(t){return _["first-child"](t)&&_["last-child"](t)},"only-of-type":function(t){return _["first-of-type"](t)&&_["last-of-type"](t)},focus:function(t){var e=t.ownerDocument;return e&&t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||t.tabIndex>=0)},target:function(t){var e=location.hash;return e&&e.slice(1)===D(t,"id")},enabled:function(t){return!t.disabled},disabled:function(t){return t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&t.checked||"option"===e&&t.selected}},P={"~=":function(t,e){return!e||e.indexOf(" ")>-1?0:-1!==(" "+t+" ").indexOf(" "+e+" ")},"|=":function(t,e){return-1!==(" "+t).indexOf(" "+e+"-")},"^=":function(t,e){return e&&g.startsWith(t,e)},"$=":function(t,e){return e&&g.endsWith(t,e)},"*=":function(t,e){return e&&-1!==t.indexOf(e)},"=":function(t,e){return t===e}},k={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};y={tag:C,cls:w,id:function(t,e){return D(t,"id")===e},attrib:function(t,e){var n=e.ident;x||(n=n.toLowerCase());var r=D(t,n),i=e.match;if(!i&&void 0!==r)return 1;if(i){if(void 0===r)return 0;var o=P[i];if(o)return o(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,i;if(r=e.fn){if(!(n=I[r]))throw new SyntaxError("Syntax error: not support pseudo: "+r);return n(t,e.param)}if(i=e.ident){if(!_[i])throw new SyntaxError("Syntax error: not support pseudo: "+i);return _[i](t)}return 0}},b.lexer.yy={trim:g.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=m,m.parse=function(t){return b.parse(t)},m.matches=c,m.util=g,m.version="@VERSION@"},function(t,e,n){"use strict";var r=function(t){function e(t,e){for(var n in e)t[n]=e[n]}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t,e,r){if(t){var i,o,a,u=0;if(r=r||null,n(t))for(a=t.length,o=t[0];u<a&&!1!==e.call(r,o,u,t);o=t[++u]);else for(i in t)if(!1===e.call(r,t[i],i,t))break}}function i(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}var o={},a={SHIFT_TYPE:1,REDUCE_TYPE:2,ACCEPT_TYPE:0,TYPE_INDEX:0,PRODUCTION_INDEX:1,TO_INDEX:2},u=function(t){var n=this;n.rules=[],e(n,t),n.resetInput(n.input)};u.prototype={resetInput:function(t){e(this,{input:t,matched:"",stateStack:[u.STATIC.INITIAL],match:"",text:"",firstLine:1,lineNumber:1,lastLine:1,firstColumn:1,lastColumn:1})},getCurrentRules:function(){var t=this,e=t.stateStack[t.stateStack.length-1],n=[];return t.mapState&&(e=t.mapState(e)),r(t.rules,function(t){var r=t.state||t[3];r?i(e,r)&&n.push(t):e===u.STATIC.INITIAL&&n.push(t)}),n},pushState:function(t){this.stateStack.push(t)},popState:function(t){t=t||1;for(var e;t--;)e=this.stateStack.pop();return e},showDebugInfo:function(){var t=this,e=u.STATIC.DEBUG_CONTEXT_LIMIT,n=t.matched,r=t.match,i=t.input;n=n.slice(0,n.length-r.length);var o=(n.length>e?"...":"")+n.slice(0-e).replace(/\n/," "),a=r+i;return a=a.slice(0,e)+(a.length>e?"...":""),o+a+"\n"+new Array(o.length+1).join("-")+"^"},mapSymbol:function(t){return this.symbolMap[t]},mapReverseSymbol:function(t){var e,n=this,r=n.symbolMap,i=n.reverseSymbolMap;if(!i&&r){i=n.reverseSymbolMap={};for(e in r)i[r[e]]=e}return i?i[t]:t},lex:function(){var t,n,r,i,o,a=this,s=a.input,c=a.getCurrentRules();if(a.match=a.text="",!s)return a.mapSymbol(u.STATIC.END_TAG);for(t=0;t<c.length;t++){n=c[t];var f=n.regexp||n[1],l=n.token||n[0],p=n.action||n[2]||void 0;if(r=s.match(f)){o=r[0].match(/\n.*/g),o&&(a.lineNumber+=o.length),e(a,{firstLine:a.lastLine,lastLine:a.lineNumber+1,firstColumn:a.lastColumn,lastColumn:o?o[o.length-1].length-1:a.lastColumn+r[0].length});var d;return d=a.match=r[0],a.matches=r,a.text=d,a.matched+=d,i=p&&p.call(a),i=void 0===i?l:a.mapSymbol(i),s=s.slice(d.length),a.input=s,i||a.lex()}}}},u.STATIC={INITIAL:"I",DEBUG_CONTEXT_LIMIT:20,END_TAG:"$EOF"};var s=new u({rules:[["b",/^\[(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["c",/^(?:[\t\r\n\f\x20]*)\]/,function(){this.text=this.yy.trim(this.text)}],["d",/^(?:[\t\r\n\f\x20]*)~=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["e",/^(?:[\t\r\n\f\x20]*)\|=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["f",/^(?:[\t\r\n\f\x20]*)\^=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["g",/^(?:[\t\r\n\f\x20]*)\$=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["h",/^(?:[\t\r\n\f\x20]*)\*=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["i",/^(?:[\t\r\n\f\x20]*)\=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["j",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)\(/,function(){this.text=this.yy.trim(this.text).slice(0,-1),this.pushState("fn")}],["k",/^[^\)]*/,function(){this.popState()},["fn"]],["l",/^(?:[\t\r\n\f\x20]*)\)/,function(){this.text=this.yy.trim(this.text)}],["m",/^:not\((?:[\t\r\n\f\x20]*)/i,function(){this.text=this.yy.trim(this.text)}],["n",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text)}],["o",/^"(\\"|[^"])*"/,function(){this.text=this.yy.unEscapeStr(this.text)}],["o",/^'(\\'|[^'])*'/,function(){this.text=this.yy.unEscapeStr(this.text)}],["p",/^#(?:(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))+)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["q",/^\.(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["r",/^(?:[\t\r\n\f\x20]*),(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["s",/^::?/,0],["t",/^(?:[\t\r\n\f\x20]*)\+(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["u",/^(?:[\t\r\n\f\x20]*)>(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["v",/^(?:[\t\r\n\f\x20]*)~(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["w",/^\*/,0],["x",/^(?:[\t\r\n\f\x20]+)/,0],["y",/^./,0]]});return o.lexer=s,s.symbolMap={$EOF:"a",LEFT_BRACKET:"b",RIGHT_BRACKET:"c",INCLUDES:"d",DASH_MATCH:"e",PREFIX_MATCH:"f",SUFFIX_MATCH:"g",SUBSTRING_MATCH:"h",ALL_MATCH:"i",FUNCTION:"j",PARAMETER:"k",RIGHT_PARENTHESES:"l",NOT:"m",IDENT:"n",STRING:"o",HASH:"p",CLASS:"q",COMMA:"r",COLON:"s",PLUS:"t",GREATER:"u",TILDE:"v",UNIVERSAL:"w",S:"x",INVALID:"y",$START:"z",selectors_group:"aa",selector:"ab",simple_selector_sequence:"ac",combinator:"ad",type_selector:"ae",id_selector:"af",class_selector:"ag",attrib_match:"ah",attrib:"ai",attrib_val:"aj",pseudo:"ak",negation:"al",negation_arg:"am",suffix_selector:"an",suffix_selectors:"ao"},o.productions=[["z",["aa"]],["aa",["ab"],function(){return[this.$1]}],["aa",["aa","r","ab"],function(){this.$1.push(this.$3)}],["ab",["ac"]],["ab",["ab","ad","ac"],function(){this.$1.nextCombinator=this.$3.prevCombinator=this.$2;var t;return t=this.$1.order=this.$1.order||0,this.$3.order=t+1,this.$3.prev=this.$1,this.$1.next=this.$3,this.$3}],["ad",["t"]],["ad",["u"]],["ad",["v"]],["ad",["x"],function(){return" "}],["ae",["n"],function(){return{t:"tag",value:this.$1}}],["ae",["w"],function(){return{t:"tag",value:this.$1}}],["af",["p"],function(){return{t:"id",value:this.$1}}],["ag",["q"],function(){return{t:"cls",value:this.$1}}],["ah",["f"]],["ah",["g"]],["ah",["h"]],["ah",["i"]],["ah",["d"]],["ah",["e"]],["ai",["b","n","c"],function(){return{t:"attrib",value:{ident:this.$2}}}],["aj",["n"]],["aj",["o"]],["ai",["b","n","ah","aj","c"],function(){return{t:"attrib",value:{ident:this.$2,match:this.$3,value:this.$4}}}],["ak",["s","j","k","l"],function(){return{t:"pseudo",value:{fn:this.$2.toLowerCase(),param:this.$3}}}],["ak",["s","n"],function(){return{t:"pseudo",value:{ident:this.$2.toLowerCase()}}}],["al",["m","am","l"],function(){return{t:"pseudo",value:{fn:"not",param:this.$2}}}],["am",["ae"]],["am",["af"]],["am",["ag"]],["am",["ai"]],["am",["ak"]],["an",["af"]],["an",["ag"]],["an",["ai"]],["an",["ak"]],["an",["al"]],["ao",["an"],function(){return[this.$1]}],["ao",["ao","an"],function(){this.$1.push(this.$2)}],["ac",["ae"]],["ac",["ao"],function(){return{suffix:this.$1}}],["ac",["ae","ao"],function(){return{t:"tag",value:this.$1.value,suffix:this.$2}}]],o.table={gotos:{0:{aa:8,ab:9,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},2:{ae:20,af:21,ag:22,ai:23,ak:24,am:25},9:{ad:33},10:{af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:34},17:{af:11,ag:12,ai:13,ak:14,al:15,an:35},19:{ah:43},28:{ab:46,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},33:{ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:47},34:{af:11,ag:12,ai:13,ak:14,al:15,an:35},43:{aj:50},46:{ad:33}},action:{0:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},1:{n:[1,void 0,19]},2:{b:[1,void 0,1],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},3:{a:[2,9],r:[2,9],t:[2,9],u:[2,9],v:[2,9],x:[2,9],p:[2,9],q:[2,9],b:[2,9],s:[2,9],m:[2,9],l:[2,9]},4:{a:[2,11],r:[2,11],t:[2,11],u:[2,11],v:[2,11],x:[2,11],p:[2,11],q:[2,11],b:[2,11],s:[2,11],m:[2,11],l:[2,11]},5:{a:[2,12],r:[2,12],t:[2,12],u:[2,12],v:[2,12],x:[2,12],p:[2,12],q:[2,12],b:[2,12],s:[2,12],m:[2,12],l:[2,12]},6:{j:[1,void 0,26],n:[1,void 0,27]},7:{a:[2,10],r:[2,10],t:[2,10],u:[2,10],v:[2,10],x:[2,10],p:[2,10],q:[2,10],b:[2,10],s:[2,10],m:[2,10],l:[2,10]},8:{a:[0],r:[1,void 0,28]},9:{a:[2,1],r:[2,1],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},11:{a:[2,31],r:[2,31],t:[2,31],u:[2,31],v:[2,31],x:[2,31],p:[2,31],q:[2,31],b:[2,31],s:[2,31],m:[2,31]},12:{a:[2,32],r:[2,32],t:[2,32],u:[2,32],v:[2,32],x:[2,32],p:[2,32],q:[2,32],b:[2,32],s:[2,32],m:[2,32]},13:{a:[2,33],r:[2,33],t:[2,33],u:[2,33],v:[2,33],x:[2,33],p:[2,33],q:[2,33],b:[2,33],s:[2,33],m:[2,33]},14:{a:[2,34],r:[2,34],t:[2,34],u:[2,34],v:[2,34],x:[2,34],p:[2,34],q:[2,34],b:[2,34],s:[2,34],m:[2,34]},15:{a:[2,35],r:[2,35],t:[2,35],u:[2,35],v:[2,35],x:[2,35],p:[2,35],q:[2,35],b:[2,35],s:[2,35],m:[2,35]},16:{a:[2,36],r:[2,36],t:[2,36],u:[2,36],v:[2,36],x:[2,36],p:[2,36],q:[2,36],b:[2,36],s:[2,36],m:[2,36]},17:{a:[2,39],r:[2,39],t:[2,39],u:[2,39],v:[2,39],x:[2,39],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,void 0,36],d:[1,void 0,37],e:[1,void 0,38],f:[1,void 0,39],g:[1,void 0,40],h:[1,void 0,41],i:[1,void 0,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,void 0,44]},26:{k:[1,void 0,45]},27:{a:[2,24],r:[2,24],t:[2,24],u:[2,24],v:[2,24],x:[2,24],p:[2,24],q:[2,24],b:[2,24],s:[2,24],m:[2,24],l:[2,24]},28:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},29:{n:[2,5],w:[2,5],p:[2,5],q:[2,5],b:[2,5],s:[2,5],m:[2,5]},30:{n:[2,6],w:[2,6],p:[2,6],q:[2,6],b:[2,6],s:[2,6],m:[2,6]},31:{n:[2,7],w:[2,7],p:[2,7],q:[2,7],b:[2,7],s:[2,7],m:[2,7]},32:{n:[2,8],w:[2,8],p:[2,8],q:[2,8],b:[2,8],s:[2,8],m:[2,8]},33:{b:[1,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},35:{a:[2,37],r:[2,37],t:[2,37],u:[2,37],v:[2,37],x:[2,37],p:[2,37],q:[2,37],b:[2,37],s:[2,37],m:[2,37]},36:{a:[2,19],r:[2,19],t:[2,19],u:[2,19],v:[2,19],x:[2,19],p:[2,19],q:[2,19],b:[2,19],s:[2,19],m:[2,19],l:[2,19]},37:{n:[2,17],o:[2,17]},38:{n:[2,18],o:[2,18]},39:{n:[2,13],o:[2,13]},40:{n:[2,14],o:[2,14]},41:{n:[2,15],o:[2,15]},42:{n:[2,16],o:[2,16]},43:{n:[1,void 0,48],o:[1,void 0,49]},44:{a:[2,25],r:[2,25],t:[2,25],u:[2,25],v:[2,25],x:[2,25],p:[2,25],q:[2,25],b:[2,25],s:[2,25],m:[2,25]},45:{l:[1,void 0,51]},46:{a:[2,2],r:[2,2],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},47:{a:[2,4],r:[2,4],t:[2,4],u:[2,4],v:[2,4],x:[2,4]},48:{c:[2,20]},49:{c:[2,21]},50:{c:[1,void 0,52]},51:{a:[2,23],r:[2,23],t:[2,23],u:[2,23],v:[2,23],x:[2,23],p:[2,23],q:[2,23],b:[2,23],s:[2,23],m:[2,23],l:[2,23]},52:{a:[2,22],r:[2,22],t:[2,22],u:[2,22],v:[2,22],x:[2,22],p:[2,22],q:[2,22],b:[2,22],s:[2,22],m:[2,22],l:[2,22]}}},o.parse=function(t,e){var n,r,i,o=this,u=o.lexer,s=o.table,c=s.gotos,f=s.action,l=o.productions,p=[null],d=e?"in file: "+e+" ":"",h=[0];for(u.resetInput(t);;){if(n=h[h.length-1],r||(r=u.lex()),!(i=r?f[n]&&f[n][r]:null)){var v,m=[];if(f[n])for(var x in f[n])m.push(o.lexer.mapReverseSymbol(x));throw v=d+"syntax error at line "+u.lineNumber+":\n"+u.showDebugInfo()+"\nexpect "+m.join(", "),new Error(v)}switch(i[a.TYPE_INDEX]){case a.SHIFT_TYPE:h.push(r),p.push(u.text),h.push(i[a.TO_INDEX]),r=null;break;case a.REDUCE_TYPE:var y,g=l[i[a.PRODUCTION_INDEX]],b=g.symbol||g[0],N=g.action||g[2],T=g.rhs||g[1],E=T.length,O=0,D=p[p.length-E];for(y=void 0,o.$$=D;O<E;O++)o["$"+(E-O)]=p[p.length-1-O];N&&(y=N.call(o)),D=void 0!==y?y:o.$$,h=h.slice(0,-1*E*2),p=p.slice(0,-1*E),h.push(b),p.push(D);var w=c[h[h.length-2]][h[h.length-1]];h.push(w);break;case a.ACCEPT_TYPE:return D}}},o}();t.exports=r},function(t,e,n){"use strict";function r(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0==e++?".":""}))}function i(t,e){for(var n in e)t[n]=e[n]}var o,a=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,c=/:|^on/,f={},l={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):u.test(t.nodeName)||s.test(t.nodeName)&&t.href?0:void 0}}},p={get:function(t,e){return t[o[e]||e]?e.toLowerCase():void 0}},d={};l.style={get:function(t){return t.style.cssText}},o={hidefocus:"hideFocus",tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};var h="undefined"!=typeof navigator?navigator.userAgent:"",v="undefined"!=typeof document?document:{},m=function(){var t,e;if((t=h.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return v.documentMode||r(e)}();if(m&&m<8&&(l.style.set=function(t,e){t.style.cssText=e},i(d,{get:function(t,e){var n=t.getAttributeNode(e);return n&&(n.specified||n.nodeValue)?n.nodeValue:void 0}}),i(f,o),l.tabIndex=l.tabindex,function(t,e){for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);}(["href","src","width","height","colSpan","rowSpan"],function(t){l[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),l.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),m){(l.href=l.href||{}).set=function(t,e,n){var r,i=t.childNodes,o=i.length,a=o>0;for(o-=1;o>=0;o--)3!==i[o].nodeType&&(a=0);a&&(r=t.ownerDocument.createElement("b"),r.style.display="none",t.appendChild(r)),t.setAttribute(n,""+e),r&&t.removeChild(r)}}var x,y=/^[\s\xa0]+|[\s\xa0]+$/g,g=String.prototype.trim;if(x=function(t,e){return e.getElementsByTagName(t)},v.createElement){var b=v.createElement("div");b.appendChild(document.createComment("")),b.getElementsByTagName("*").length&&(x=function(t,e){var n=e.getElementsByTagName(t),r="*"===t;if(r||"number"!=typeof n.length){for(var i,o=[],a=0;i=n[a++];)r&&1!==i.nodeType||o.push(i);return o}return n})}var N="sourceIndex"in(v&&v.documentElement||{})?function(t,e){return t.sourceIndex-e.sourceIndex}:function(t,e){return t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1},T=t.exports={ie:m,unique:function(){function t(t,n){return t===n?(e=!0,0):N(t,n)}var e,n=!0;return[0,0].sort(function(){return n=!1,0}),function(r){if(e=n,r.sort(t),e)for(var i=1,o=r.length;i<o;)r[i]===r[i-1]?(r.splice(i,1),--o):i++;return r}}(),getElementsByTagName:x,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:m?function(t,e){return 9===t.nodeType&&(t=t.documentElement),e=e.parentNode,t===e||!(!e||1!==e.nodeType)&&(t.contains&&t.contains(e))}:function(t,e){return!!(16&t.compareDocumentPosition(e))},isTag:function(t,e){return"*"===e||t.nodeName.toLowerCase()===e.toLowerCase()},hasSingleClass:function(t,e){var n=t&&T.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g," "))&&(" "+n+" ").indexOf(" "+e+" ")>-1},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n},trim:g?function(t){return null==t?"":g.call(t)}:function(t){return null==t?"":(t+"").replace(y,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=f[e]||e,n=a.test(e)?p:c.test(e)?d:l[e],t&&1===t.nodeType){if("form"===t.nodeName.toLowerCase()&&(n=d),n&&n.get)return n.get(t,e);if(""===(r=t.getAttribute(e))){var i=t.getAttributeNode(e);if(!i||!i.specified)return}return null===r?void 0:r}}}},function(t,e,n){"use strict";function r(t){var e=function(t){return t.trim()},n={};return i(t).map(e).filter(Boolean).forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),i=t.substr(e+1).trim();n[r]=i}),n}function i(t){for(var e,n=[],r=0,i=/url\([^\)]+$/,o="";r<t.length;)e=t.indexOf(";",r),-1===e&&(e=t.length),o+=t.substring(r,e),i.test(o)?(o+=";",r=e+1):(n.push(o),o="",r=e+1);return n}function o(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function a(t){return o(r(t))}t.exports.parse=r,t.exports.stringify=o,t.exports.normalize=a},function(e,n){e.exports=t}])});

@@ -29,2 +29,5 @@ var React = require('react')

},
getPropertyValue: function (name) {
return props.style.getProperty(name)
},
removeProperty: function (name) {

@@ -158,3 +161,6 @@ delete props.style[styleCamelCase(name)]

Element.prototype.appendChild = function (el) {
el.parentNode = this
if (el instanceof Element) {
el.parentNode = this
}
this.childNodes.push(el)

@@ -267,2 +273,3 @@ return el

delete props.style.getProperty
delete props.style.getPropertyValue
delete props.style.removeProperty

@@ -269,0 +276,0 @@

var Element = require('./Element')
var Window = require('./Window')
var core = require('./mixins/core')
var anim = require('./mixins/anim')
var withFauxDOM = require('./withFauxDOM')

@@ -9,6 +8,3 @@ var ReactFauxDOM = {

defaultView: Window,
mixins: {
core: core,
anim: anim
},
withFauxDOM: withFauxDOM,
createElement: function (nodeName) {

@@ -15,0 +11,0 @@ return new Element(nodeName)

{
"name": "react-faux-dom",
"version": "3.1.0",
"version": "4.0.0",
"description": "DOM like data structure to be mutated by D3 et al, then rendered to React elements",
"main": "lib/ReactFauxDOM.js",
"scripts": {
"test": "standard && tape './test/**/*.js' | faucet",
"test": "standard && tape -r babel-register './test/**/*.js' | faucet",
"prepublish": "npm test && make build"

@@ -38,7 +38,13 @@ },

"babel-loader": "^6.3.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-register": "^6.24.1",
"d3": "^4.1.1",
"d3-selection-multi": "^0.4.1",
"enzyme": "^2.8.2",
"faucet": "0.0.1",
"nodemon": "^1.9.1",
"react": "^15.1.0",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"sinon": "^1.17.3",

@@ -45,0 +51,0 @@ "standard": "^7.1.2",

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

# react-faux-dom [![npm version](https://badge.fury.io/js/react-faux-dom.svg)](http://badge.fury.io/js/react-faux-dom) [![Build Status](https://travis-ci.org/Olical/react-faux-dom.svg?branch=master)](https://travis-ci.org/Olical/react-faux-dom) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
# react-faux-dom [![npm version](https://badge.fury.io/js/react-faux-dom.svg)](http://badge.fury.io/js/react-faux-dom) [![CDNJS](https://img.shields.io/cdnjs/v/react-faux-dom.svg)](https://cdnjs.com/libraries/react-faux-dom) [![Build Status](https://travis-ci.org/Olical/react-faux-dom.svg?branch=master)](https://travis-ci.org/Olical/react-faux-dom) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

@@ -26,3 +26,3 @@ [![Join the chat at https://gitter.im/Olical/react-faux-dom](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Olical/react-faux-dom?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

There are also mixins available for convenience, giving you a clean API and animation support:
There is also an higher-order component available for convenience, giving you a clean API and animation support:

@@ -58,18 +58,11 @@ ```javascript

import * as d3 from 'd3'
import Faux from 'react-faux-dom'
import {withFauxDOM} from 'react-faux-dom'
const MyReactClass = React.createClass({
mixins: [
Faux.mixins.core,
Faux.mixins.anim
],
class MyReactComponent extends React.Component {
state = {
chart: 'loading...'
}
getInitialState () {
return {
chart: 'loading...'
}
},
componentDidMount () {
const faux = this.connectFauxDOM('div.renderedD3', 'chart')
const faux = this.connectFauxDOM('div', 'chart')

@@ -81,3 +74,3 @@ d3.select(faux)

this.animateFauxDOM(800)
},
}

@@ -96,3 +89,3 @@ render () {

export default MyReactClass
export default withFauxDOM(MyReactComponent)
```

@@ -104,3 +97,4 @@

* [An example static chart ][lab-chart] ([source][lab-chart-source])
* [An example animated chart using the mixin][mixin-example]
* [An example animated chart using the HOC][hoc-animate-example]
* [An example chart with D3 updates using the HOC][hoc-update-example]
* [A simple example using state and events][lab-state] ([source][lab-state-source])

@@ -110,3 +104,10 @@ * [A d3 sankey diagram builder][sankey-app] ([source][sankey-app-source])

* [component-kit][], "UI-Kit for Rapidly Creating Dashboards"
* [A demo dashboard with multiple charts][rd3-demo] ([source][rd3-source])
### Related articles:
* [D3 within React the right way][Olical-post]
* [React + D3.js: Balancing Performance & Developer Experience][tibotiber-post]
* [A starting point on using D3 with React][AdilBaaj-post]
## Development

@@ -155,4 +156,10 @@

[sankey-app-source]: https://github.com/nickbalestra/sankey
[mixin-example]: ./examples/animate-d3-with-mixin
[hoc-animate-example]: ./examples/animate-d3-with-hoc
[hoc-update-example]: ./examples/update-d3-with-hoc
[component-kit]: https://github.com/kennetpostigo/component-kit
[unpkg]: https://unpkg.com/
[Olical-post]: http://oli.me.uk/2015/09/09/d3-within-react-the-right-way/
[tibotiber-post]: https://medium.com/@tibotiber/react-d3-js-balancing-performance-developer-experience-4da35f912484
[rd3-demo]: https://rd3.now.sh
[rd3-source]: https://github.com/tibotiber/rd3
[AdilBaaj-post]: https://blog.sicara.com/a-starting-point-on-using-d3-with-react-869fdf3dfaf
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