UNPKG

react-faux-dom

Version:

DOM like data structure to be mutated by D3 et al, then rendered to React elements

22 lines 52.3 kB
!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)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,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=4)}([function(t,e,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(p===clearTimeout)return clearTimeout(t);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){y&&h&&(y=!1,h.length?m=h.concat(m):v=-1,m.length&&s())}function s(){if(!y){var t=i(u);y=!0;for(var e=m.length;e;){for(h=m,m=[];++v<e;)h&&h[v].run();v=-1,e=m.length}h=null,y=!1,a(t)}}function c(t,e){this.fun=t,this.array=e}function f(){}var l,p,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(t){p=o}}();var h,m=[],y=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new c(t,e)),1!==m.length||y||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.prependListener=f,d.prependOnceListener=f,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e,n){return 0!==n?e.toUpperCase():e}function o(t){var e=t.replace(i,r);return i.lastIndex=0,e}var i=/-+([a-z])/gi;t.exports=o},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=n(5);t.exports=r()},function(t,e,n){"use strict";function r(){var t=o(),e=i(),n={Element:t,defaultView:e,withFauxDOM:a(t),createElement:function(e){return new t(e)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};return t.prototype.ownerDocument=n,n}var o=n(6),i=n(16),a=n(17);t.exports=r},function(t,e,n){"use strict";function r(){function t(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}return t.ELEMENT_NODE=1,t.DOCUMENT_POSITION_DISCONNECTED=1,t.DOCUMENT_POSITION_PRECEDING=2,t.DOCUMENT_POSITION_FOLLOWING=4,t.DOCUMENT_POSITION_CONTAINS=8,t.DOCUMENT_POSITION_CONTAINED_BY=16,t.prototype.nodeType=1,t.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"},t.prototype.skipNameTransformationExpressions=[/^data-/,/^aria-/],t.prototype.attributeNameMappings={class:"className"},t.prototype.attributeToPropName=function(t){return this.skipNameTransformationExpressions.map(function(e){return e.test(t)}).some(Boolean)?t:this.attributeNameMappings[t]||u(t)},t.prototype.setAttribute=function(t,e){if("style"===t&&s(e)){var n=i.parse(e);for(var r in n)this.style.setProperty(r,n[r])}else this.props[this.attributeToPropName(t)]=e},t.prototype.getAttribute=function(t){return this.props[this.attributeToPropName(t)]},t.prototype.getAttributeNode=function(t){var e=this.getAttribute(t);if(!c(e))return{value:e,specified:!0}},t.prototype.removeAttribute=function(t){delete this.props[this.attributeToPropName(t)]},t.prototype.eventToPropName=function(t){return this.eventNameMappings[t]||t},t.prototype.addEventListener=function(t,e){var n=this.eventToPropName(t);this.eventListeners[n]=this.eventListeners[n]||[],this.eventListeners[n].push(e)},t.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)}},t.prototype.appendChild=function(e){return e instanceof t&&(e.parentNode=this),this.childNodes.push(e),e},t.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},t.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);this.childNodes.splice(e,1)},t.prototype.querySelector=function(){return this.querySelectorAll.apply(this,arguments)[0]||null},t.prototype.querySelectorAll=function(t){if(!t)throw new Error("Not enough arguments");return a(t,this)},t.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)},t.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)},t.prototype.getBoundingClientRect=function(){if(this.component)return this.component.getBoundingClientRect()},t.prototype.cloneNode=function(e){void 0===e&&(e=!0);var n=new t(this.nodeName,this.parentNode);this.nodeType&&(n.nodeType=this.nodeType);var r;for(r in this.props)this.props.hasOwnProperty(r)&&"ref"!==r&&"style"!==r&&(n.props[r]=this.props[r]);for(r in this.style)this.style.hasOwnProperty(r)&&-1===["setProperty","getProperty","getPropertyValue","removeProperty"].indexOf(r)&&(n.style[r]=this.style[r]);return e&&(n.childNodes=this.childNodes.map(function(e){return e.nodeType?(e=e.cloneNode(!0),e instanceof t&&(e.parentNode=n),e):o.cloneElement(e)})),n},t.prototype.toReact=function(e){e=e||0;var n=f({},this.props);n.style=f({},n.style);var r=this;return c(n.key)&&(n.key=function(){return"faux-dom-"+e}()),delete n.style.setProperty,delete n.style.getProperty,delete n.style.getPropertyValue,delete n.style.removeProperty,f(n,l(this.eventListeners,function(t){return function(e){var n;e&&(n=e.nativeEvent,n.syntheticEvent=e),l(t,function(t){t.call(r,n)})}})),o.createElement(this.nodeName,n,this.text||this.children.map(function(e,n){return e instanceof t?e.toReact(n):e}))},t.prototype.compareDocumentPosition=function(e){function n(t,e,r){return t.reduce(function(t,o){return!1!==t?t:o===e?e:o===r?r:!!o.childNodes&&n(o.childNodes,e,r)},!1)}function r(t,e){for(;e.parentNode;)if((e=e.parentNode)===t)return!0;return!1}function o(t){for(;t.parentNode;)t=t.parentNode;return t}if(this===e)return 0;var i=o(this);if(i!==o(e))return t.DOCUMENT_POSITION_DISCONNECTED;var a=function(e,n){return r(e,n)?t.DOCUMENT_POSITION_CONTAINED_BY+t.DOCUMENT_POSITION_FOLLOWING:!!r(n,e)&&t.DOCUMENT_POSITION_CONTAINS+t.DOCUMENT_POSITION_PRECEDING}(this,e);if(a)return a;var u=n([i],this,e);return u===this?t.DOCUMENT_POSITION_FOLLOWING:u===e?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_DISCONNECTED},Object.defineProperties(t.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(e){var n=t.prototype[e];t.prototype[e+"NS"]=function(){return n.apply(this,Array.prototype.slice.call(arguments,1))}}),t}var o=n(1),i=n(7),a=n(8),u=n(2),s=n(12),c=n(13),f=n(14),l=n(3),p=n(15);t.exports=r},function(t,e,n){"use strict";function r(t,e){e=e||{};var n=e.preserveNumbers,r=function(t){return t.trim()},a={};return i(t).map(r).filter(Boolean).forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),i=t.substr(e+1).trim();n&&o(i)&&(i=Number(i)),a[r]=i}),a}function o(t){return!isNaN(parseFloat(t))&&isFinite(t)}function i(t){for(var e,n=[],r=0,o=/url\([^\)]+$/,i="";r<t.length;)e=t.indexOf(";",r),-1===e&&(e=t.length),i+=t.substring(r,e),o.test(i)?(i+=";",r=e+1):(n.push(i),i="",r=e+1);return n}function a(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function u(t,e){return a(r(t,e))}t.exports.parse=r,t.exports.stringify=a,t.exports.normalize=u},function(t,e,n){"use strict";t.exports=n(9)},function(t,e,n){"use strict";function r(t){return t.replace(I,C)}function o(){D={}}function i(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(w))&&(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 y(t,null,e)}function f(t,e){if(!e)return!0;if(!t)return!1;if(9===t.nodeType)return!1;var n,r,o=1,i=e.suffix;if("tag"===e.t&&(o&=g.tag(t,e.value)),o&&i)for(n=i.length,r=0;o&&r<n;r++){var a=i[r],u=a.t;g[u]&&(o&=g[u](t,a.value))}return o}function l(t,e){var n,r=1,o=t,a=e;do{if(!(r&=f(t,e)))return n=F[e.nextCombinator],n.immediate?{el:i(o,F[a.nextCombinator].dir),match:a}:{el:t&&i(t,n.dir),match:e};if(!(e=e&&e.prev))return!0;if(n=F[e.nextCombinator],t=i(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:i(o,F[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=F[r.nextCombinator],t=i(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function d(t){var e;return v?(e=t.getAttribute(b))||t.setAttribute(b,e=+new Date+"_"+ ++O):(e=t[b])||(e=t[b]=+new Date+"_"+ ++O),e}function h(t,e){var n,r=d(t);return(n=r+"_"+(e.order||0))in D?D[n]:(D[n]=m(t,e),D[n])}function m(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=i(t,F[e.nextCombinator].dir)}return!1}function y(t,e,n){E[t]||(E[t]=N.parse(t));var r,i,a=E[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,v=s(e);u<c;u++){o(),i=a[u];var l,d,m,y,g=i.suffix,b=n,O=null;if(!b){if(g&&!v)for(l=0,d=g.length;l<d;l++){var D=g[l];if("id"===D.t){O=D.value;break}}if(O){var _=!e.getElementById,S=x.contains(r,e),w=_?S?r.getElementById(O):null:e.getElementById(O);if(!w&&_||w&&T(w,"id")!==O){for(var I=x.getElementsByTagName("*",e),C=I.length,M=0;M<C;M++)if(w=I[M],T(w,"id")===O){b=[w];break}M===C&&(b=[])}else S&&w&&e!==r&&(w=x.contains(e,w)?w:null),b=w?[w]:[]}else b=x.getElementsByTagName(i.value||"*",e)}if(m=0,y=b.length)for(;m<y;m++){var A=b[m],P=p(A,i);!0===P?f.push(A):P&&h(P.el,P.match)&&f.push(A)}}return c>1&&(f=x.unique(f)),f}var v,g,x=n(10),N=n(11),b="_ks_data_selector_id_",E={},O=0,D={},T=function(t,e){return v?x.getSimpleAttr(t,e):x.attr(t,e)},_=x.hasSingleClass,S=x.isTag,w=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,C=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,o=n.b;if(0===r&&0===o)return 0;var i=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&&(i++,void 0!==(f=u(i,r,o,c===t))))return f;return 0},"nth-last-child":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=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&&(i++,void 0!==(f=u(i,r,o,c===t))))return f;return 0},"nth-of-type":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=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&&(i++,void 0!==(f=u(i,r,o,c===t))))return f;return 0},"nth-last-of-type":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=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&&(i++,void 0!==(f=u(i,r,o,c===t))))return f;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do{if(n=v?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)}},A={empty:function(t){for(var e,n,r=t.childNodes,o=0,i=r.length-1;o<i;o++)if(e=r[o],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 A["first-child"](t)&&A["last-child"](t)},"only-of-type":function(t){return A["first-of-type"](t)&&A["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)===T(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&&x.startsWith(t,e)},"$=":function(t,e){return e&&x.endsWith(t,e)},"*=":function(t,e){return e&&-1!==t.indexOf(e)},"=":function(t,e){return t===e}},F={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};g={tag:S,cls:_,id:function(t,e){return T(t,"id")===e},attrib:function(t,e){var n=e.ident;v||(n=n.toLowerCase());var r=T(t,n),o=e.match;if(!o&&void 0!==r)return 1;if(o){if(void 0===r)return 0;var i=P[o];if(i)return i(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,o;if(r=e.fn){if(!(n=M[r]))throw new SyntaxError("Syntax error: not support pseudo: "+r);return n(t,e.param)}if(o=e.ident){if(!A[o])throw new SyntaxError("Syntax error: not support pseudo: "+o);return A[o](t)}return 0}},N.lexer.yy={trim:x.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=y,y.parse=function(t){return N.parse(t)},y.matches=c,y.util=x,y.version="@VERSION@"},function(t,e,n){"use strict";function r(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0==e++?".":""}))}function o(t,e){for(var n in e)t[n]=e[n]}var i,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[i[e]||e]?e.toLowerCase():void 0}},d={};l.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 h="undefined"!=typeof navigator?navigator.userAgent:"",m="undefined"!=typeof document?document:{},y=function(){var t,e;if((t=h.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return m.documentMode||r(e)}();if(y&&y<8&&(l.style.set=function(t,e){t.style.cssText=e},o(d,{get:function(t,e){var n=t.getAttributeNode(e);return n&&(n.specified||n.nodeValue)?n.nodeValue:void 0}}),o(f,i),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)}}),y){(l.href=l.href||{}).set=function(t,e,n){var r,o=t.childNodes,i=o.length,a=i>0;for(i-=1;i>=0;i--)3!==o[i].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 v,g=/^[\s\xa0]+|[\s\xa0]+$/g,x=String.prototype.trim;if(v=function(t,e){return e.getElementsByTagName(t)},m.createElement){var N=m.createElement("div");N.appendChild(document.createComment("")),N.getElementsByTagName("*").length&&(v=function(t,e){var n=e.getElementsByTagName(t),r="*"===t;if(r||"number"!=typeof n.length){for(var o,i=[],a=0;o=n[a++];)r&&1!==o.nodeType||i.push(o);return i}return n})}var b="sourceIndex"in(m&&m.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},E=t.exports={ie:y,unique:function(){function t(t,n){return t===n?(e=!0,0):b(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 o=1,i=r.length;o<i;)r[o]===r[o-1]?(r.splice(o,1),--i):o++;return r}}(),getElementsByTagName:v,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:y?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&&E.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(g,"")},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 o=t.getAttributeNode(e);if(!o||!o.specified)return}return null===r?void 0:r}}}},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 o,i,a,u=0;if(r=r||null,n(t))for(a=t.length,i=t[0];u<a&&!1!==e.call(r,i,u,t);i=t[++u]);else for(o in t)if(!1===e.call(r,t[o],o,t))break}}function o(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}var i={},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?o(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,o=t.input;n=n.slice(0,n.length-r.length);var i=(n.length>e?"...":"")+n.slice(0-e).replace(/\n/," "),a=r+o;return a=a.slice(0,e)+(a.length>e?"...":""),i+a+"\n"+new Array(i.length+1).join("-")+"^"},mapSymbol:function(t){return this.symbolMap[t]},mapReverseSymbol:function(t){var e,n=this,r=n.symbolMap,o=n.reverseSymbolMap;if(!o&&r){o=n.reverseSymbolMap={};for(e in r)o[r[e]]=e}return o?o[t]:t},lex:function(){var t,n,r,o,i,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)){i=r[0].match(/\n.*/g),i&&(a.lineNumber+=i.length),e(a,{firstLine:a.lastLine,lastLine:a.lineNumber+1,firstColumn:a.lastColumn,lastColumn:i?i[i.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,o=p&&p.call(a),o=void 0===o?l:a.mapSymbol(o),s=s.slice(d.length),a.input=s,o||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 i.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"},i.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}}]],i.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]}}},i.parse=function(t,e){var n,r,o,i=this,u=i.lexer,s=i.table,c=s.gotos,f=s.action,l=i.productions,p=[null],d=e?"in file: "+e+" ":"",h=[0];for(u.resetInput(t);;){if(n=h[h.length-1],r||(r=u.lex()),!(o=r?f[n]&&f[n][r]:null)){var m,y=[];if(f[n])for(var v in f[n])y.push(i.lexer.mapReverseSymbol(v));throw m=d+"syntax error at line "+u.lineNumber+":\n"+u.showDebugInfo()+"\nexpect "+y.join(", "),new Error(m)}switch(o[a.TYPE_INDEX]){case a.SHIFT_TYPE:h.push(r),p.push(u.text),h.push(o[a.TO_INDEX]),r=null;break;case a.REDUCE_TYPE:var g,x=l[o[a.PRODUCTION_INDEX]],N=x.symbol||x[0],b=x.action||x[2],E=x.rhs||x[1],O=E.length,D=0,T=p[p.length-O];for(g=void 0,i.$$=T;D<O;D++)i["$"+(O-D)]=p[p.length-1-D];b&&(g=b.call(i)),T=void 0!==g?g:i.$$,h=h.slice(0,-1*O*2),p=p.slice(0,-1*O),h.push(N),p.push(T);var _=c[h[h.length-2]][h[h.length-1]];h.push(_);break;case a.ACCEPT_TYPE:return T}}},i}();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){for(var e,n=arguments,r=1;r<n.length;r++){e=n[r];for(var o in e)t[o]=e[o]}return t}t.exports=r},function(t,e,n){"use strict";function r(t){var e=o(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 o=n(2);t.exports=r},function(t,e,n){"use strict";function r(){return{getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}}}t.exports=r},function(t,e,n){"use strict";function r(t){function e(e){var n=a({displayName:"WithFauxDOM",componentWillMount:function(){this.connectedFauxDOM={},this.animateFauxDOMUntil=0},componentWillUnmount:function(){this.stopAnimatingFauxDOM(),this.stopDrawFauxDOM()},connectFauxDOM:function(e,n,r){return this.connectedFauxDOM[n]&&!r||(this.connectedFauxDOM[n]="string"!=typeof e?e:new t(e),this.drawFauxDOMTimeout=setTimeout(this.drawFauxDOM)),this.connectedFauxDOM[n]},drawFauxDOM:function(){var t=u(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)},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},stopDrawFauxDOM:function(){this.drawFauxDOMTimeout=clearTimeout(this.drawFauxDOMTimeout)},isAnimatingFauxDOM:function(){return!!this.fauxDOMAnimationInterval},render:function(){var t=Object.assign({},this.props,this.state,{connectFauxDOM:this.connectFauxDOM,drawFauxDOM:this.drawFauxDOM,animateFauxDOM:this.animateFauxDOM,stopAnimatingFauxDOM:this.stopAnimatingFauxDOM,isAnimatingFauxDOM:this.isAnimatingFauxDOM});return i.createElement(e,t)}});return n.displayName="WithFauxDOM("+o(e)+")",s(n,e),n}return e}function o(t){return t.displayName||t.name||"Component"}var i=n(1),a=n(18),u=n(3),s=n(25);t.exports=r},function(t,e,n){"use strict";var r=n(1),o=n(19);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;t.exports=o(r.Component,r.isValidElement,i)},function(t,e,n){"use strict";(function(e){function r(t){return t}function o(t,n,o){function p(t,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==e.env.NODE_ENV&&c("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",f[r],o)}function d(t,e){var n=O.hasOwnProperty(e)?O[e]:null;w.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function h(t,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=t.prototype,a=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&T.mixins(t,r.mixins);for(var u in r)if(r.hasOwnProperty(u)&&u!==l){var f=r[u],p=o.hasOwnProperty(u);if(d(p,u),T.hasOwnProperty(u))T[u](t,f);else{var h=O.hasOwnProperty(u),m="function"==typeof f,y=m&&!h&&!p&&!1!==r.autobind;if(y)a.push(u,f),o[u]=f;else if(p){var x=O[u];s(h&&("DEFINE_MANY_MERGED"===x||"DEFINE_MANY"===x),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",x,u),"DEFINE_MANY_MERGED"===x?o[u]=v(o[u],f):"DEFINE_MANY"===x&&(o[u]=g(o[u],f))}else o[u]=f,"production"!==e.env.NODE_ENV&&"function"==typeof f&&r.displayName&&(o[u].displayName=r.displayName+"_"+u)}}}else if("production"!==e.env.NODE_ENV){var N=void 0===r?"undefined":i(r),b="object"===N&&null!==r;"production"!==e.env.NODE_ENV&&c(b,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===r?null:N)}}function m(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in T;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;if(i){var a=D.hasOwnProperty(n)?D[n]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(t[n]=v(t[n],r))}t[n]=r}}}function y(t,e){s(t&&e&&"object"===(void 0===t?"undefined":i(t))&&"object"===(void 0===e?"undefined":i(e)),"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function v(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return y(o,n),y(o,r),o}}function g(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function x(t,n){var r=n.bind(t);if("production"!==e.env.NODE_ENV){r.__reactBoundContext=t,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=t.constructor.displayName,i=r.bind;r.bind=function(a){for(var u=arguments.length,s=Array(u>1?u-1:0),f=1;f<u;f++)s[f-1]=arguments[f];if(a!==t&&null!==a)"production"!==e.env.NODE_ENV&&c(!1,"bind(): React component methods may only be bound to the component instance. See %s",o);else if(!s.length)return"production"!==e.env.NODE_ENV&&c(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o),r;var l=i.apply(r,arguments);return l.__reactBoundContext=t,l.__reactBoundMethod=n,l.__reactBoundArguments=s,l}}return r}function N(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=x(t,o)}}function b(t){var n=r(function(t,r,a){"production"!==e.env.NODE_ENV&&c(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&N(this),this.props=t,this.context=r,this.refs=u,this.updater=a||o,this.state=null;var f=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&void 0===f&&this.getInitialState._isMockFunction&&(f=null),s("object"===(void 0===f?"undefined":i(f))&&!Array.isArray(f),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=f});n.prototype=new I,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],E.forEach(h.bind(null,n)),h(n,_),h(n,t),h(n,S),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),s(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==e.env.NODE_ENV&&(c(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),c(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"),c(!n.prototype.UNSAFE_componentWillRecieveProps,"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",t.displayName||"A component"));for(var a in O)n.prototype[a]||(n.prototype[a]=null);return n}var E=[],O={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},D={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},T={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)h(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"childContext"),t.childContextTypes=a({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"context"),t.contextTypes=a({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=v(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"prop"),t.propTypes=a({},t.propTypes,n)},statics:function(t,e){m(t,e)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0}},S={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return"production"!==e.env.NODE_ENV&&(c(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},I=function(){};return a(I.prototype,t.prototype,w),b}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(20),u=n(21),s=n(22);if("production"!==e.env.NODE_ENV)var c=n(23);var f,l="mixins";f="production"!==e.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* object-assign (c) Sindre Sorhus @license MIT */ var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var f in n)i.call(n,f)&&(s[f]=n[f]);if(o){u=o(n);for(var l=0;l<u.length;l++)a.call(n,u[l])&&(s[u[l]]=n[u[l]])}}return s}},function(t,e,n){"use strict";(function(e){var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function n(t,e,n,o,i,a,u,s){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,i,a,u,s],l=0;c=new Error(e.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};"production"!==e.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r=n(24),o=r;if("production"!==e.env.NODE_ENV){var i=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};o=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[e].concat(r))}}}t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";function r(t){return i.isMemo(t)?c:f[t.$$typeof]||a}function o(t,e,n){if("string"!=typeof e){if(y){var i=m(e);i&&i!==y&&o(t,i,n)}var a=p(e);d&&(a=a.concat(d(e)));for(var s=r(t),c=r(e),f=0;f<a.length;++f){var v=a[f];if(!(u[v]||n&&n[v]||c&&c[v]||s&&s[v])){var g=h(e,v);try{l(t,v,g)}catch(t){}}}return t}return t}var i=n(26),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=s;var l=Object.defineProperty,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;t.exports=o},function(t,e,n){"use strict";(function(e){"production"===e.env.NODE_ENV?t.exports=n(27):t.exports=n(28)}).call(e,n(0))},function(t,e,n){"use strict";function r(t){if("object"===(void 0===t?"undefined":i(t))&&null!==t){var e=t.$$typeof;switch(e){case u:switch(t=t.type){case h:case m:case c:case l:case f:case v:return t;default:switch(t=t&&t.$$typeof){case d:case y:case p:return t;default:return e}}case x:case g:case s:return e}}}function o(t){return r(t)===m}/** @license React v16.8.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};Object.defineProperty(e,"__esModule",{value:!0});var a="function"==typeof Symbol&&Symbol.for,u=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,c=a?Symbol.for("react.fragment"):60107,f=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,h=a?Symbol.for("react.async_mode"):60111,m=a?Symbol.for("react.concurrent_mode"):60111,y=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.memo"):60115,x=a?Symbol.for("react.lazy"):60116;e.typeOf=r,e.AsyncMode=h,e.ConcurrentMode=m,e.ContextConsumer=d,e.ContextProvider=p,e.Element=u,e.ForwardRef=y,e.Fragment=c,e.Lazy=x,e.Memo=g,e.Portal=s,e.Profiler=l,e.StrictMode=f,e.Suspense=v,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===c||t===m||t===l||t===f||t===v||"object"===(void 0===t?"undefined":i(t))&&null!==t&&(t.$$typeof===x||t.$$typeof===g||t.$$typeof===p||t.$$typeof===d||t.$$typeof===y)},e.isAsyncMode=function(t){return o(t)||r(t)===h},e.isConcurrentMode=o,e.isContextConsumer=function(t){return r(t)===d},e.isContextProvider=function(t){return r(t)===p},e.isElement=function(t){return"object"===(void 0===t?"undefined":i(t))&&null!==t&&t.$$typeof===u},e.isForwardRef=function(t){return r(t)===y},e.isFragment=function(t){return r(t)===c},e.isLazy=function(t){return r(t)===x},e.isMemo=function(t){return r(t)===g},e.isPortal=function(t){return r(t)===s},e.isProfiler=function(t){return r(t)===l},e.isStrictMode=function(t){return r(t)===f},e.isSuspense=function(t){return r(t)===v}},function(t,e,n){"use strict";(function(t){/** @license React v16.8.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"production"!==t.env.NODE_ENV&&function(){function t(t){return"string"==typeof t||"function"==typeof t||t===N||t===_||t===E||t===b||t===w||"object"===(void 0===t?"undefined":n(t))&&null!==t&&(t.$$typeof===C||t.$$typeof===I||t.$$typeof===O||t.$$typeof===D||t.$$typeof===S)}function r(t){if("object"===(void 0===t?"undefined":n(t))&&null!==t){var e=t.$$typeof;switch(e){case g:var r=t.type;switch(r){case T:case _:case N:case E:case b:case w:return r;default:var o=r&&r.$$typeof;switch(o){case D:case S:case O:return o;default:return e}}case C:cas