Gaëtan Renaudeau 24e5ef6198 bundle
2015-10-01 17:19:29 +02:00

10 lines
262 KiB
JavaScript

!function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){var n=t[i][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}},s=e("react"),u=e("gl-react"),c=e("react-motion"),l=c.Spring,p=u.Shaders.create({demo:{frag:"\nprecision mediump float;\nvarying vec2 uv;\n\nuniform vec2 mouse;\n\nvoid main () {\n float dist = pow(1.0 - distance(mouse, uv), 8.0);\n float edgeDistX = pow(1.0 - distance(mouse.x, uv.x), 32.0);\n float edgeDistY = pow(1.0 - distance(mouse.y, uv.y), 32.0);\n gl_FragColor = vec4(\n 0.8 * dist + edgeDistX,\n 0.7 * dist + edgeDistY,\n 0.6 * dist,\n 1.0) * smoothstep(1.0, 0.2, distance(mouse, uv));\n}\n "}}),f=function(e){function t(e){r(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={width:window.innerWidth,height:window.innerHeight,mouse:{x:window.innerWidth/2,y:window.innerHeight/2}},this.onMouseMove=this.onMouseMove.bind(this)}return o(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",function(){e.setState({width:window.innerWidth,height:window.innerHeight})})}},{key:"onMouseMove",value:function(e){this.setState({mouse:{x:e.clientX,y:e.clientY}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.width,r=t.height,o=t.mouse;return s.createElement(l,{defaultValue:{val:o},endValue:{val:o,config:[140,12]}},function(t){var o=t.val,a=o.x,i=o.y;return s.createElement(u.View,{onMouseMove:e.onMouseMove,shader:p.demo,width:n,height:r,uniforms:{mouse:[a/n,1-i/r]}})})}}]),t}(s.Component);s.render(s.createElement(f,null),document.getElementById("container"))},{"gl-react":54,react:231,"react-motion":65}],2:[function(e,t,n){(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e){return this instanceof o?(this.length=0,this.parent=void 0,"number"==typeof e?a(this,e):"string"==typeof e?i(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new o(e,arguments[1]):new o(e)}function a(e,t){if(e=d(e,0>t?0:0|v(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;n++)e[n]=0;return e}function i(e,t,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|m(t,n);return e=d(e,r),e.write(t,n),e}function s(e,t){if(o.isBuffer(t))return u(e,t);if(z(t))return c(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(t.buffer instanceof ArrayBuffer)return l(e,t);if(t instanceof ArrayBuffer)return p(e,t)}return t.length?f(e,t):h(e,t)}function u(e,t){var n=0|v(t.length);return e=d(e,n),t.copy(e,0,0,n),e}function c(e,t){var n=0|v(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function l(e,t){var n=0|v(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t){return o.TYPED_ARRAY_SUPPORT?(t.byteLength,e=o._augment(new Uint8Array(t))):e=l(e,new Uint8Array(t)),e}function f(e,t){var n=0|v(t.length);e=d(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function h(e,t){var n,r=0;"Buffer"===t.type&&z(t.data)&&(n=t.data,r=0|v(n.length)),e=d(e,r);for(var o=0;r>o;o+=1)e[o]=255&n[o];return e}function d(e,t){o.TYPED_ARRAY_SUPPORT?(e=o._augment(new Uint8Array(t)),e.__proto__=o.prototype):(e.length=t,e._isBuffer=!0);var n=0!==t&&t<=o.poolSize>>>1;return n&&(e.parent=Q),e}function v(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function g(e,t){if(!(this instanceof g))return new g(e,t);var n=new o(e,t);return delete n.parent,n}function m(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),0>t&&(t=0),n>this.length&&(n=this.length),t>=n)return"";for(;;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return M(this,t,n);case"binary":return I(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var a=t.length;if(a%2!==0)throw new Error("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;r>i;i++){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))throw new Error("Invalid hex string");e[n+i]=s}return i}function b(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function _(e,t,n,r){return G(q(t),e,n,r)}function R(e,t,n,r){return _(e,t,n,r)}function w(e,t,n,r){return G(Y(t),e,n,r)}function C(e,t,n,r){return G(W(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?K.fromByteArray(e):K.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;n>o;){var a=e[o],i=null,s=a>239?4:a>223?3:a>191?2:1;if(n>=o+s){var u,c,l,p;switch(s){case 1:128>a&&(i=a);break;case 2:u=e[o+1],128===(192&u)&&(p=(31&a)<<6|63&u,p>127&&(i=p));break;case 3:u=e[o+1],c=e[o+2],128===(192&u)&&128===(192&c)&&(p=(15&a)<<12|(63&u)<<6|63&c,p>2047&&(55296>p||p>57343)&&(i=p));break;case 4:u=e[o+1],c=e[o+2],l=e[o+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(p=(15&a)<<18|(63&u)<<12|(63&c)<<6|63&l,p>65535&&1114112>p&&(i=p))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return O(r)}function O(e){var t=e.length;if($>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(127&e[o]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;n>o;o++)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var o="",a=t;n>a;a++)o+=V(e[a]);return o}function P(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function D(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,a,i){if(!o.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>a||i>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range")}function N(e,t,n,r){0>t&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);a>o;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function U(e,t,n,r){0>t&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);a>o;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,a){if(t>o||a>t)throw new RangeError("value is out of bounds");if(n+r>e.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function k(e,t,n,r,o){return o||L(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return o||L(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function F(e){if(e=B(e).replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return 16>e?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;r>i;i++){if(n=e.charCodeAt(i),n>55295&&57344>n){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(56320>n){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=o-55296<<10|n-56320|65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,128>n){if((t-=1)<0)break;a.push(n)}else if(2048>n){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function q(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function W(e,t){for(var n,r,o,a=[],i=0;i<e.length&&!((t-=2)<0);i++)n=e.charCodeAt(i),r=n>>8,o=n%256,a.push(o),a.push(r);return a}function Y(e){return K.toByteArray(F(e))}function G(e,t,n,r){for(var o=0;r>o&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}var K=e("base64-js"),X=e("ieee754"),z=e("is-array");n.Buffer=o,n.SlowBuffer=g,n.INSPECT_MAX_BYTES=50,o.poolSize=8192;var Q={};o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}(),o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array),o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);i>a&&e[a]===t[a];)++a;return a!==i&&(n=e[a],r=t[a]),r>n?-1:n>r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!z(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new o(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new o(t),a=0;for(n=0;n<e.length;n++){var i=e[n];i.copy(r,a),a+=i.length}return r},o.byteLength=m,o.prototype.length=void 0,o.prototype.parent=void 0,o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):y.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:o.compare(this,e)},o.prototype.indexOf=function(e,t){function n(e,t,n){for(var r=-1,o=0;n+o<e.length;o++)if(e[n+o]===t[-1===r?0:o-r]){if(-1===r&&(r=o),o-r+1===t.length)return n+r}else r=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(o.isBuffer(e))return n(this,e,t);if("number"==typeof e)return o.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):n(this,[e],t);throw new TypeError("val must be string, number or Buffer")},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=t,t=0|n,n=o}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"binary":return R(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(o.TYPED_ARRAY_SUPPORT)r=o._augment(this.subarray(e,t));else{var a=t-e;r=new o(a,void 0);for(var i=0;a>i;i++)r[i]=this[i+e]}return r.length&&(r.parent=this.parent||this),r},o.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},o.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},o.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||D(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),X.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),X.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),X.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),X.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||S(this,e,t,n,Math.pow(2,8*n),0);var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){e=+e,t=0|t,n=0|n,r||S(this,e,t,n,Math.pow(2,8*n),0);var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):N(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):U(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):U(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);S(this,e,t,n,o-1,-o)}var a=0,i=1,s=0>e?1:0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=(e/i>>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var o=Math.pow(2,8*n-1);S(this,e,t,n,o-1,-o)}var a=n-1,i=1,s=0>e?1:0;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=(e/i>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):N(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||S(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):U(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,i=r-n;if(this===e&&t>n&&r>t)for(a=i-1;a>=0;a--)e[a+t]=this[a+n];else if(1e3>i||!o.TYPED_ARRAY_SUPPORT)for(a=0;i>a;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t);return i},o.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),t>n)throw new RangeError("end < start");if(n!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof e)for(r=t;n>r;r++)this[r]=e;else{var o=H(e.toString()),a=o.length;for(r=t;n>r;r++)this[r]=o[r%a]}return this}},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o.TYPED_ARRAY_SUPPORT)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Z=o.prototype;o._augment=function(e){return e.constructor=o,e._isBuffer=!0,e._set=e.set,e.get=Z.get,e.set=Z.set,e.write=Z.write,e.toString=Z.toString,e.toLocaleString=Z.toString,e.toJSON=Z.toJSON,e.equals=Z.equals,e.compare=Z.compare,e.indexOf=Z.indexOf,e.copy=Z.copy,e.slice=Z.slice,e.readUIntLE=Z.readUIntLE,e.readUIntBE=Z.readUIntBE,e.readUInt8=Z.readUInt8,e.readUInt16LE=Z.readUInt16LE,e.readUInt16BE=Z.readUInt16BE,e.readUInt32LE=Z.readUInt32LE,e.readUInt32BE=Z.readUInt32BE,e.readIntLE=Z.readIntLE,e.readIntBE=Z.readIntBE,e.readInt8=Z.readInt8,e.readInt16LE=Z.readInt16LE,e.readInt16BE=Z.readInt16BE,e.readInt32LE=Z.readInt32LE,e.readInt32BE=Z.readInt32BE,e.readFloatLE=Z.readFloatLE,e.readFloatBE=Z.readFloatBE,e.readDoubleLE=Z.readDoubleLE,e.readDoubleBE=Z.readDoubleBE,e.writeUInt8=Z.writeUInt8,e.writeUIntLE=Z.writeUIntLE,e.writeUIntBE=Z.writeUIntBE,e.writeUInt16LE=Z.writeUInt16LE,e.writeUInt16BE=Z.writeUInt16BE,e.writeUInt32LE=Z.writeUInt32LE,e.writeUInt32BE=Z.writeUInt32BE,e.writeIntLE=Z.writeIntLE,e.writeIntBE=Z.writeIntBE,e.writeInt8=Z.writeInt8,e.writeInt16LE=Z.writeInt16LE,e.writeInt16BE=Z.writeInt16BE,e.writeInt32LE=Z.writeInt32LE,e.writeInt32BE=Z.writeInt32BE,e.writeFloatLE=Z.writeFloatLE,e.writeFloatBE=Z.writeFloatBE,e.writeDoubleLE=Z.writeDoubleLE,e.writeDoubleBE=Z.writeDoubleBE,e.fill=Z.fill,e.inspect=Z.inspect,e.toArrayBuffer=Z.toArrayBuffer,e};var J=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":3,ieee754:4,"is-array":5}],3:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===i||t===p?62:t===s||t===f?63:u>t?-1:u+10>t?t-u+26+26:l+26>t?t-l:c+26>t?t-c+26:void 0}function n(e){function n(e){c[p++]=e}var r,o,i,s,u,c;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;u="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,c=new a(3*e.length/4-u),i=u>0?e.length-4:e.length;var p=0;for(r=0,o=0;i>r;r+=4,o+=3)s=t(e.charAt(r))<<18|t(e.charAt(r+1))<<12|t(e.charAt(r+2))<<6|t(e.charAt(r+3)),n((16711680&s)>>16),n((65280&s)>>8),n(255&s);return 2===u?(s=t(e.charAt(r))<<2|t(e.charAt(r+1))>>4,n(255&s)):1===u&&(s=t(e.charAt(r))<<10|t(e.charAt(r+1))<<4|t(e.charAt(r+2))>>2,n(s>>8&255),n(255&s)),c}function o(e){function t(e){return r.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var o,a,i,s=e.length%3,u="";for(o=0,i=e.length-s;i>o;o+=3)a=(e[o]<<16)+(e[o+1]<<8)+e[o+2],u+=n(a);switch(s){case 1:a=e[e.length-1],u+=t(a>>2),u+=t(a<<4&63),u+="==";break;case 2:a=(e[e.length-2]<<8)+e[e.length-1],u+=t(a>>10),u+=t(a>>4&63),u+=t(a<<2&63),u+="="}return u}var a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),c="a".charCodeAt(0),l="A".charCodeAt(0),p="-".charCodeAt(0),f="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],4:[function(e,t,n){n.read=function(e,t,n,r,o){var a,i,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,p=n?o-1:0,f=n?-1:1,h=e[t+p];for(p+=f,a=h&(1<<-l)-1,h>>=-l,l+=s;l>0;a=256*a+e[t+p],p+=f,l-=8);for(i=a&(1<<-l)-1,a>>=-l,l+=r;l>0;i=256*i+e[t+p],p+=f,l-=8);if(0===a)a=1-c;else{if(a===u)return i?NaN:(h?-1:1)*(1/0);i+=Math.pow(2,r),a-=c}return(h?-1:1)*i*Math.pow(2,a-r)},n.write=function(e,t,n,r,o,a){var i,s,u,c=8*a-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,d=r?1:-1,v=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),t+=i+p>=1?f/u:f*Math.pow(2,1-p),t*u>=2&&(i++,u/=2),i+p>=l?(s=0,i=l):i+p>=1?(s=(t*u-1)*Math.pow(2,o),i+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(i=i<<o|s,c+=o;c>0;e[n+h]=255&i,h+=d,i/=256,c-=8);e[n+h-d]|=128*v}},{}],5:[function(e,t,n){var r=Array.isArray,o=Object.prototype.toString;t.exports=r||function(e){return!!e&&"[object Array]"==o.call(e)}},{}],6:[function(e,t,n){function r(){l=!1,s.length?c=s.concat(c):p=-1,c.length&&o()}function o(){if(!l){var e=setTimeout(r);l=!0;for(var t=c.length;t;){for(s=c,c=[];++p<t;)s&&s[p].run();p=-1,t=c.length}s=null,l=!1,clearTimeout(e)}}function a(e,t){this.fun=e,this.array=t}function i(){}var s,u=t.exports={},c=[],l=!1,p=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new a(e,t)),1!==c.length||l||setTimeout(o,0)},a.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=i,u.addListener=i,u.once=i,u.off=i,u.removeListener=i,u.removeAllListeners=i,u.emit=i,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],7:[function(e,t,n){"use strict";function r(e){var t=e.getParameter(e.FRAMEBUFFER_BINDING),n=e.getParameter(e.RENDERBUFFER_BINDING),r=e.getParameter(e.TEXTURE_BINDING_2D);return[t,n,r]}function o(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function a(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);y=new Array(n+1);for(var r=0;n>=r;++r){for(var o=new Array(n),a=0;r>a;++a)o[a]=e.COLOR_ATTACHMENT0+a;for(var a=r;n>a;++a)o[a]=e.NONE;y[r]=o}}function i(e){switch(e){case d:throw new Error("gl-fbo: Framebuffer unsupported");case v:throw new Error("gl-fbo: Framebuffer incomplete attachment");case g:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case m:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function s(e,t,n,r,o,a){if(!r)return null;var i=h(e,t,n,o,r);return i.magFilter=e.NEAREST,i.minFilter=e.NEAREST,i.mipSamples=1,i.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,a,e.TEXTURE_2D,i.handle,0),i}function u(e,t,n,r,o){var a=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,a),e.renderbufferStorage(e.RENDERBUFFER,r,t,n),e.framebufferRenderbuffer(e.FRAMEBUFFER,o,e.RENDERBUFFER,a),a}function c(e){var t=r(e.gl),n=e.gl,a=e.handle=n.createFramebuffer(),c=e._shape[0],l=e._shape[1],p=e.color.length,f=e._ext,h=e._useStencil,d=e._useDepth,v=e._colorType;n.bindFramebuffer(n.FRAMEBUFFER,a);for(var g=0;p>g;++g)e.color[g]=s(n,c,l,v,n.RGBA,n.COLOR_ATTACHMENT0+g);0===p?(e._color_rb=u(n,c,l,n.RGBA4,n.COLOR_ATTACHMENT0),f&&f.drawBuffersWEBGL(y[0])):p>1&&f.drawBuffersWEBGL(y[p]);var m=n.getExtension("WEBGL_depth_texture");m?h?e.depth=s(n,c,l,m.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d&&(e.depth=s(n,c,l,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):d&&h?e._depth_rb=u(n,c,l,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):d?e._depth_rb=u(n,c,l,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):h&&(e._depth_rb=u(n,c,l,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var E=n.checkFramebufferStatus(n.FRAMEBUFFER);if(E!==n.FRAMEBUFFER_COMPLETE){e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null);for(var g=0;g<e.color.length;++g)e.color[g].dispose(),e.color[g]=null;e._color_rb&&(n.deleteRenderbuffer(e._color_rb),e._color_rb=null),o(n,t),i(E)}o(n,t)}function l(e,t,n,r,o,a,i,s){this.gl=e,this._shape=[0|t,0|n],this._destroyed=!1,this._ext=s,this.color=new Array(o);for(var u=0;o>u;++u)this.color[u]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=r,this._useDepth=a,this._useStencil=i;var l=this,p=[0|t,0|n];Object.defineProperties(p,{0:{get:function(){return l._shape[0]},set:function(e){return l.width=e}},1:{get:function(){return l._shape[1]},set:function(e){return l.height=e}}}),this._shapeVector=p,c(this)}function p(e,t,n){if(e._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(e._shape[0]!==t||e._shape[1]!==n){var a=e.gl,s=a.getParameter(a.MAX_RENDERBUFFER_SIZE);if(0>t||t>s||0>n||n>s)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var u=r(a),c=0;c<e.color.length;++c)e.color[c].shape=e._shape;e._color_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,e._color_rb),a.renderbufferStorage(a.RENDERBUFFER,a.RGBA4,e._shape[0],e._shape[1])),e.depth&&(e.depth.shape=e._shape),e._depth_rb&&(a.bindRenderbuffer(a.RENDERBUFFER,e._depth_rb),e._useDepth&&e._useStencil?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,e._shape[0],e._shape[1]):e._useDepth?a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_COMPONENT16,e._shape[0],e._shape[1]):e._useStencil&&a.renderbufferStorage(a.RENDERBUFFER,a.STENCIL_INDEX,e._shape[0],e._shape[1])),a.bindFramebuffer(a.FRAMEBUFFER,e.handle);var l=a.checkFramebufferStatus(a.FRAMEBUFFER);l!==a.FRAMEBUFFER_COMPLETE&&(e.dispose(),o(a,u),i(l)),o(a,u)}}function f(e,t,n,r){d||(d=e.FRAMEBUFFER_UNSUPPORTED,v=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,g=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,m=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var o=e.getExtension("WEBGL_draw_buffers");if(!y&&o&&a(e,o),Array.isArray(t)&&(r=n,n=0|t[1],t=0|t[0]),"number"!=typeof t)throw new Error("gl-fbo: Missing shape parameter");var i=e.getParameter(e.MAX_RENDERBUFFER_SIZE);if(0>t||t>i||0>n||n>i)throw new Error("gl-fbo: Parameters are too large for FBO");r=r||{};var s=1;if("color"in r){if(s=Math.max(0|r.color,0),0>s)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(s>1){if(!o)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(s>e.getParameter(o.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+s+" draw buffers")}}var u=e.UNSIGNED_BYTE,c=e.getExtension("OES_texture_float");if(r["float"]&&s>0){if(!c)throw new Error("gl-fbo: Context does not support floating point textures");u=e.FLOAT}else r.preferFloat&&s>0&&c&&(u=e.FLOAT);var p=!0;"depth"in r&&(p=!!r.depth);var f=!1;return"stencil"in r&&(f=!!r.stencil),new l(e,t,n,u,s,p,f,o)}var h=e("gl-texture2d");t.exports=f;var d,v,g,m,y=null,E=l.prototype;Object.defineProperties(E,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return p(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return e=0|e,p(this,e,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e=0|e,p(this,this._shape[0],e),e},enumerable:!1}}),E.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},E.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t<this.color.length;++t)this.color[t].dispose(),this.color[t]=null;this._color_rb&&(e.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{"gl-texture2d":43}],8:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);
if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}};t.exports=function(e){var t=function(e){function t(){r(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),t}(e.Component);return t}},{}],9:[function(e,t,n){"use strict";var r=e("invariant");t.exports=function(e){var t=1,n={},o={create:function(o){r("object"==typeof o,"config must be an object");var a={};for(var i in o){var s=o[i];r("object"==typeof s&&"string"==typeof s.frag,"invalid shader given to Shaders.create(). A valid shader is a { frag: String }");var u=t++;s.name||(s.name=i),n[u]=s.name,e(u,s),a[i]=u}return a},getName:function(e){return n[e]},list:function(){return Object.keys(n)},exists:function(e){return"number"==typeof e&&e>=1&&t>e}};return o}},{invariant:44}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}},s=e("invariant");t.exports=function(e){var t=e.Component,n=e.PropTypes,u=function(e){function t(){r(this,t),i(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),a(t,[{key:"render",value:function(){s(!1,"GL.Uniform elements are for GL.View configuration only and should not be rendered")}}]),t}(t);return u.displayName="GL.Uniform",u.propTypes={children:n.any.isRequired,name:n.string.isRequired},u}},{invariant:44}],11:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){"undefined"!=typeof console&&console.debug&&console.debug("GL.View rendered with",e,t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}},l=e("invariant"),p=e("./data"),f=p.fill,h=p.resolve,d=p.createBuild;t.exports=function(e,t,n,p,v,g,m){var y=e.Component,E=e.PropTypes,b=void 0,_=function(e){function t(e,n){o(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this._renderId=1}return a(t,e),u(t,[{key:"captureFrame",value:function(e){var t=this.refs.canvas;return l(t&&t.captureFrame,"captureFrame() should be implemented by GLCanvas"),l("function"==typeof e,"captureFrame(cb) should have a callback function in first parameter"),t.captureFrame.call(t,e)}},{key:"render",value:function(){var e=this._renderId++,t=this.props,n=t.style,o=t.width,a=t.height,u=t.children,c=t.shader,p=t.uniforms,d=t.debug,y=t.preload,E=t.opaque,_=t.visibleContent,R=t.eventsThrough,w=r(t,["style","width","height","children","shader","uniforms","debug","preload","opaque","visibleContent","eventsThrough"]);l(o&&a&&o>0&&a>0,"width and height are required for the root GLView");var C=h(f(b(c,p,o,a,u,y||!1))),x=C.data,T=C.contentsVDOM,O=C.imagesToPreload;return d&&i(x,T),v({width:o,height:a,style:n,visibleContent:_,eventsThrough:R},T.map(function(e,t){return g(x.width,x.height,t,e,{visibleContent:_})}),m(s({},w,{width:o,height:a,data:x,nbContentTextures:T.length,imagesToPreload:O,renderId:e,opaque:E,visibleContent:_,eventsThrough:R})))}}]),t}(y);return _.displayName="GL.View",_.propTypes={shader:E.number.isRequired,width:E.number,height:E.number,uniforms:E.object,opaque:E.bool,preload:E.bool,autoRedraw:E.bool,eventsThrough:E.bool,visibleContent:E.bool},_.defaultProps={opaque:!0},b=d(e,t,n,p,_),_}},{"./data":18,invariant:44}],12:[function(e,t,n){"use strict";function r(e){return{type:"content",id:e}}function o(e){return{type:"ndarray",ndarray:e}}function a(e){return u({type:"uri"},e)}function i(e){return{type:"fbo",id:e}}function s(e,t){return u({},e,{opts:t})}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.exports={Content:r,NDArray:o,URI:a,Framebuffer:i,withOpts:s}},{}],13:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=e("invariant"),i=e("./TextureObjects"),s=e("./isNonSamplerUniformValue");t.exports=function(e,t,n,u,c){function l(t){return 1===e.Children.count(t)?t instanceof Array?t[0]:t:null}function p(e){var t=new e.type;if(t instanceof u)return t.props=e.props,l(t.render())}function f(e){for(var t=e;t&&"function"==typeof t.type;t=p(t))if(t.type===c)return t}return function h(u,c,l,p,d,v){a(t.exists(u),"Shader #%s does not exists",u);var g=t.getName(u),m=o({},c),y=[],E=[];return e.Children.forEach(d,function(e){a(e.type===n,"(Shader '%s') GL.View can only contains children of type GL.Uniform. Got '%s'",g,e.type&&e.type.displayName||e);var t=e.props,o=t.name,i=t.children,s=r(t,["name","children"]);a("string"==typeof o&&o,"(Shader '%s') GL.Uniform must define an name String",g),a(!(c&&o in c),"(Shader '%s') The uniform '%s' set by GL.Uniform must not be in {uniforms} props",g),a(!(o in m),"(Shader '%s') The uniform '%s' set by GL.Uniform must not be defined in another GL.Uniform",g),m[o]=!i||i.value?i:{value:i,opts:s}}),Object.keys(m).forEach(function(t){var n=m[t];if(!s(n)){var r=void 0,o=typeof n;if(n&&"object"===o&&!n.prototype&&"value"in n&&("object"==typeof n.opts&&(r=n.opts),n=n.value,o=typeof n),n)if("string"===o)m[t]=i.withOpts(i.URI({uri:n}),r);else if("object"===o&&"string"==typeof n.uri)m[t]=i.withOpts(i.URI(n),r);else if("object"===o&&n.data&&n.shape&&n.stride)m[t]=i.withOpts(i.NDArray(n),r);else if("object"===o&&(n instanceof Array?e.isValidElement(n[0]):e.isValidElement(n))){var c=f(n);if(c){var d=c.props;y.push({vdom:n,uniform:t,data:h(d.shader,d.uniforms,d.width||l,d.height||p,d.children,"preload"in d?d.preload:v)})}else E.push({vdom:n,uniform:t,opts:r})}else delete m[t],"undefined"!=typeof console&&console.error&&console.error("invalid uniform '"+t+"' value:",n),a(!1,"Shader #%s: Unrecognized format for uniform '%s'",u,t);else m[t]=n}}),{shader:u,uniforms:m,width:l,height:p,children:y,contents:E,preload:v}}}},{"./TextureObjects":12,"./isNonSamplerUniformValue":19,invariant:44}],14:[function(e,t,n){"use strict";function r(e){var t=[];for(var n in e){var r=e[n];r&&"object"==typeof r&&"image"===r.type&&r.value&&"string"==typeof r.value.uri&&t.push(r.value)}return t}t.exports=r},{}],15:[function(e,t,n){"use strict";function r(e){function t(e){var n=[],r=[],a=e.data.children.map(function(e){var o=t(e);return-1===n.indexOf(o.vdom)&&(n.push(o.vdom),r.push(o.data)),o.descendantsVDOM.forEach(function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(o.descendantsVDOMData[t]))}),o});return o({},e,{data:o({},e.data,{children:a}),descendantsVDOM:n,descendantsVDOMData:r})}return t({data:e}).data}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.exports=r},{}],16:[function(e,t,n){"use strict";function r(e,t){var n=[],r=[];return e.children.map(function(e){n=n.concat(e.descendantsVDOM),r=r.concat(e.descendantsVDOMData)}),n.map(function(n,o){if(-1===t.indexOf(n))for(var a=0,i=0;i<e.children.length;i++)if(-1!==e.children[i].descendantsVDOM.indexOf(n)&&(a++,a>1))return{data:r[o],vdom:n}}).filter(function(e){return e})}t.exports=r},{}],17:[function(e,t,n){"use strict";function r(e){function t(e){e.contents.forEach(function(e){-1===n.indexOf(e.vdom)&&(n.push(e.vdom),r.push(e))}),e.children.forEach(function(e){t(e.data)})}var n=[],r=[];return t(e),r}t.exports=r},{}],18:[function(e,t,n){"use strict";t.exports={createBuild:e("./build"),fill:e("./fill"),resolve:e("./resolve")}},{"./build":13,"./fill":15,"./resolve":20}],19:[function(e,t,n){"use strict";function r(e){var t=typeof e;return"number"===t||"boolean"===t?!0:null!==e&&"object"===t&&e instanceof Array?(t=typeof e[0],"number"===t||"boolean"===t):!1}t.exports=r},{}],20:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){function t(e,o,s,p){var h=e.uniforms,d=e.children,v=e.contents,g=e.preload,m=r(e,["uniforms","children","contents","preload"]),y=a({},h),E=s.map(function(e){var t=e.vdom;return t}),b=function(e){return function(){for(e++;e===o||-1!==p.indexOf(e);)e++;return e}}(-1),_=u(e,E),R=_.map(function(e){var t=e.vdom,n=b();return{vdom:t,fboId:n}}),w=s.concat(R),C=w.map(function(e){var t=e.vdom;return t}),x=w.map(function(e){var t=e.fboId;return t}),T=[],O=[],M=d.concat(_).map(function(e){var t=e.uniform,n=e.vdom,r=e.data,o=C.indexOf(n),a=void 0,i=void 0;return-1===o?(a=b(),i=O):(a=w[o].fboId,o>=s.length&&(i=T)),t&&(y[t]=c.Framebuffer(a)),{data:r,fboId:a,addToCollection:i}}),I=M.map(function(e){var t=e.fboId;return t}),A=p.concat(x).concat(I),P=[];return M.forEach(function(e){var n=e.data,r=e.fboId,o=e.addToCollection;-1===P.indexOf(r)&&(P.push(r),o&&o.push(t(n,r,w,A)))}),v.forEach(function(e){var t=e.uniform,n=e.vdom,r=e.opts,o=f.indexOf(n);i(-1!==o,"contents was discovered by findContentsMeta"),y[t]=c.withOpts(c.Content(o),r)}),g&&(n=n.concat(l(h))),a({},m,{uniforms:y,contextChildren:T,children:O,fboId:o})}var n=[],o=s(e),f=o.map(function(e){var t=e.vdom;return t});return{data:t(e,-1,[],[]),contentsVDOM:f,imagesToPreload:p(n)}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("invariant"),s=e("./findContentsUniq"),u=e("./findChildrenDuplicates"),c=e("./TextureObjects"),l=e("./extractImages"),p=e("./uniqImages");t.exports=o},{"./TextureObjects":12,"./extractImages":14,"./findChildrenDuplicates":16,"./findContentsUniq":17,"./uniqImages":21,invariant:44}],21:[function(e,t,n){"use strict";function r(e){var t=[],n=[];return e.forEach(function(e){-1===t.indexOf(e.uri)&&(t.push(e.uri),n.push(e))}),n}t.exports=r},{}],22:[function(e,t,n){"use strict";var r=e("./createComponent"),o=e("./createShaders"),a=e("./createUniform"),i=e("./createView");t.exports={createComponent:r,createShaders:o,createUniform:a,createView:i}},{"./createComponent":8,"./createShaders":9,"./createUniform":10,"./createView":11}],23:[function(e,t,n){"use strict";function r(e){this.gl=e,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}function o(e,t){return e.name<t.name?-1:1}function a(e,t,n,o,a){var i=new r(e);return i.update(t,n,o,a),i}var i=e("./lib/create-uniforms"),s=e("./lib/create-attributes"),u=e("./lib/reflect"),c=e("./lib/shader-cache"),l=e("./lib/runtime-reflect"),p=r.prototype;p.bind=function(){this.program||this._relink(),this.gl.useProgram(this.program)},p.dispose=function(){this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},p.update=function(e,t,n,r){function a(){f.program=c.program(h,f._vref,f._fref,E,b);for(var e=0;e<n.length;++e)O[e]=h.getUniformLocation(f.program,n[e].name)}if(!t||1===arguments.length){var p=e;e=p.vertex,t=p.fragment,n=p.uniforms,r=p.attributes}var f=this,h=f.gl,d=f._vref;f._vref=c.shader(h,h.VERTEX_SHADER,e),d&&d.dispose(),f.vertShader=f._vref.shader;var v=this._fref;if(f._fref=c.shader(h,h.FRAGMENT_SHADER,t),v&&v.dispose(),f.fragShader=f._fref.shader,!n||!r){var g=h.createProgram();if(h.attachShader(g,f.fragShader),h.attachShader(g,f.vertShader),h.linkProgram(g),!h.getProgramParameter(g,h.LINK_STATUS)){var m=h.getProgramInfoLog(g);throw console.error("gl-shader: Error linking program:",m),new Error("gl-shader: Error linking program:"+m)}n=n||l.uniforms(h,g),r=r||l.attributes(h,g),h.deleteProgram(g)}r=r.slice(),r.sort(o);for(var y=[],E=[],b=[],_=0;_<r.length;++_){var R=r[_];if(R.type.indexOf("mat")>=0){for(var w=0|R.type.charAt(R.type.length-1),C=new Array(w),x=0;w>x;++x)C[x]=b.length,E.push(R.name+"["+x+"]"),"number"==typeof R.location?b.push(R.location+x):Array.isArray(R.location)&&R.location.length===w&&"number"==typeof R.location[x]?b.push(0|R.location[x]):b.push(-1);y.push({name:R.name,type:R.type,locations:C})}else y.push({name:R.name,type:R.type,locations:[b.length]}),E.push(R.name),"number"==typeof R.location?b.push(0|R.location):b.push(-1)}for(var T=0,_=0;_<b.length;++_)if(b[_]<0){for(;b.indexOf(T)>=0;)T+=1;b[_]=T}var O=new Array(n.length);a(),f._relink=a,f.types={uniforms:u(n),attributes:u(r)},f.attributes=s(h,f,y,b),Object.defineProperty(f,"uniforms",i(h,f,n,O))},t.exports=a},{"./lib/create-attributes":24,"./lib/create-uniforms":25,"./lib/reflect":26,"./lib/runtime-reflect":27,"./lib/shader-cache":28}],24:[function(e,t,n){"use strict";function r(e,t,n,r,o,a){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=o,this._constFunc=a}function o(e,t,n,o,a,i,s){for(var u=["gl","v"],c=[],l=0;a>l;++l)u.push("x"+l),c.push("x"+l);u.push("if(x0.length===void 0){return gl.vertexAttrib"+a+"f(v,"+c.join()+")}else{return gl.vertexAttrib"+a+"fv(v,x0)}");var p=Function.apply(null,u),f=new r(e,t,n,o,a,p);Object.defineProperty(i,s,{set:function(t){return e.disableVertexAttribArray(o[n]),p(e,o[n],t),t},get:function(){return f},enumerable:!0})}function a(e,t,n,r,a,i,s){for(var u=new Array(a),c=new Array(a),l=0;a>l;++l)o(e,t,n[l],r,a,u,l),c[l]=u[l];Object.defineProperty(u,"location",{set:function(e){if(Array.isArray)for(var t=0;a>t;++t)c[t].location=e[t];else for(var t=0;a>t;++t)result[t]=c[t].location=e+t;return e},get:function(){for(var e=new Array(a),t=0;a>t;++t)e[t]=r[n[t]];return e},enumerable:!0}),u.pointer=function(t,o,i,s){t=t||e.FLOAT,o=!!o,i=i||a*a,s=s||0;for(var u=0;a>u;++u){var c=r[n[u]];e.vertexAttribPointer(c,a,t,o,i,s+u*a),e.enableVertexAttribArray(c)}};var p=new Array(a),f=e["vertexAttrib"+a+"fv"];Object.defineProperty(i,s,{set:function(t){for(var o=0;a>o;++o){var i=r[n[o]];if(e.disableVertexAttribArray(i),Array.isArray(t[0]))f.call(e,i,t[o]);else{for(var s=0;a>s;++s)p[s]=t[a*o+s];f.call(e,i,p)}}return t},get:function(){return u},enumerable:!0})}function i(e,t,n,r){for(var i={},s=0,u=n.length;u>s;++s){var c=n[s],l=c.name,p=c.type,f=c.locations;switch(p){case"bool":case"int":case"float":o(e,t,f[0],r,1,i,l);break;default:if(p.indexOf("vec")>=0){var h=p.charCodeAt(p.length-1)-48;if(2>h||h>4)throw new Error("gl-shader: Invalid data type for attribute "+l+": "+p);o(e,t,f[0],r,h,i,l)}else{if(!(p.indexOf("mat")>=0))throw new Error("gl-shader: Unknown data type for attribute "+l+": "+p);var h=p.charCodeAt(p.length-1)-48;if(2>h||h>4)throw new Error("gl-shader: Invalid data type for attribute "+l+": "+p);a(e,t,f,r,h,i,l)}}}return i}t.exports=i;var s=r.prototype;s.pointer=function(e,t,n,r){var o=this,a=o._gl,i=o._locations[o._index];a.vertexAttribPointer(i,o._dimension,e||a.FLOAT,!!t,n||0,r||0),a.enableVertexAttribArray(i)},s.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}})},{}],25:[function(e,t,n){"use strict";function r(e){var t=new Function("y","return function(){return y}");return t(e)}function o(e,t){for(var n=new Array(e),r=0;e>r;++r)n[r]=t;return n}function a(e,t,n,a){function s(n){var r=new Function("gl","wrapper","locations","return function(){return gl.getUniform(wrapper.program,locations["+n+"])}");return r(e,t,a)}function u(e,t,n){switch(n){case"bool":case"int":case"sampler2D":case"samplerCube":return"gl.uniform1i(locations["+t+"],obj"+e+")";case"float":return"gl.uniform1f(locations["+t+"],obj"+e+")";default:var r=n.indexOf("vec");if(!(r>=0&&1>=r&&n.length===4+r)){if(0===n.indexOf("mat")&&4===n.length){var o=n.charCodeAt(n.length-1)-48;if(2>o||o>4)throw new Error("gl-shader: Invalid uniform dimension type for matrix "+name+": "+n);return"gl.uniformMatrix"+o+"fv(locations["+t+"],false,obj"+e+")"}throw new Error("gl-shader: Unknown uniform data type for "+name+": "+n)}var o=n.charCodeAt(n.length-1)-48;if(2>o||o>4)throw new Error("gl-shader: Invalid data type");switch(n.charAt(0)){case"b":case"i":return"gl.uniform"+o+"iv(locations["+t+"],obj"+e+")";case"v":return"gl.uniform"+o+"fv(locations["+t+"],obj"+e+")";default:throw new Error("gl-shader: Unrecognized data type for vector "+name+": "+n)}}}function c(e,t){if("object"!=typeof t)return[[e,t]];var n=[];for(var r in t){var o=t[r],a=e;a+=parseInt(r)+""===r?"["+r+"]":"."+r,"object"==typeof o?n.push.apply(n,c(a,o)):n.push([a,o])}return n}function l(t){for(var r=["return function updateProperty(obj){"],o=c("",t),i=0;i<o.length;++i){var s=o[i],l=s[0],p=s[1];a[p]&&r.push(u(l,p,n[p].type))}r.push("return obj}");var f=new Function("gl","locations",r.join("\n"));return f(e,a)}function p(e){switch(e){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var t=e.indexOf("vec");if(t>=0&&1>=t&&e.length===4+t){var n=e.charCodeAt(e.length-1)-48;if(2>n||n>4)throw new Error("gl-shader: Invalid data type");return"b"===e.charAt(0)?o(n,!1):o(n,0)}if(0===e.indexOf("mat")&&4===e.length){var n=e.charCodeAt(e.length-1)-48;if(2>n||n>4)throw new Error("gl-shader: Invalid uniform dimension type for matrix "+name+": "+e);return o(n*n,0)}throw new Error("gl-shader: Unknown uniform data type for "+name+": "+e)}}function f(e,t,o){if("object"==typeof o){var i=h(o);Object.defineProperty(e,t,{get:r(i),set:l(o),enumerable:!0,configurable:!1})}else a[o]?Object.defineProperty(e,t,{get:s(o),set:l(o),enumerable:!0,configurable:!1}):e[t]=p(n[o].type)}function h(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n<e.length;++n)f(t,n,e[n])}else{t={};for(var r in e)f(t,r,e[r])}return t}var d=i(n,!0);return{get:r(h(d)),set:l(d),enumerable:!0,configurable:!0}}var i=e("./reflect");t.exports=a},{"./reflect":26}],26:[function(e,t,n){"use strict";function r(e,t){for(var n={},r=0;r<e.length;++r)for(var o=e[r].name,a=o.split("."),i=n,s=0;s<a.length;++s){var u=a[s].split("[");if(u.length>1){u[0]in i||(i[u[0]]=[]),i=i[u[0]];for(var c=1;c<u.length;++c){var l=parseInt(u[c]);c<u.length-1||s<a.length-1?(l in i||(c<u.length-1?i[l]=[]:i[l]={}),i=i[l]):t?i[l]=r:i[l]=e[r].type}}else s<a.length-1?(u[0]in i||(i[u[0]]={}),i=i[u[0]]):t?i[u[0]]=r:i[u[0]]=e[r].type}return n}t.exports=r},{}],27:[function(e,t,n){"use strict";function r(e,t){if(!s){var n=Object.keys(i);s={};for(var r=0;r<n.length;++r){var o=n[r];s[e[o]]=i[o]}}return s[t]}function o(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),o=[],a=0;n>a;++a){var i=e.getActiveUniform(t,a);if(i){var s=r(e,i.type);if(i.size>1)for(var u=0;u<i.size;++u)o.push({name:i.name.replace("[0]","["+u+"]"),type:s});else o.push({name:i.name,type:s})}}return o}function a(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),o=[],a=0;n>a;++a){var i=e.getActiveAttrib(t,a);i&&o.push({name:i.name,type:r(e,i.type)})}return o}n.uniforms=o,n.attributes=a;var i={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},s=null},{}],28:[function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){this.id=e,this.src=t,this.type=n,this.shader=r,this.count=a,this.programs=[],this.cache=i}function o(e){this.gl=e,this.shaders=[{},{}],this.programs={}}function a(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(r);throw console.error("gl-shader: Error compiling shader:",o),new Error("gl-shader: Error compiling shader:"+o)}return r}function i(e,t,n,r,o){var a=e.createProgram();e.attachShader(a,t),e.attachShader(a,n);for(var i=0;i<r.length;++i)e.bindAttribLocation(a,o[i],r[i]);if(e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS)){var s=e.getProgramInfoLog(a);throw console.error("gl-shader: Error linking program:",s),new Error("gl-shader: Error linking program:"+s)}return a}function s(e){var t=p.get(e);return t||(t=new o(e),p.set(e,t)),t}function u(e,t,n){return s(e).getShaderReference(t,n)}function c(e,t,n,r,o){return s(e).getProgram(t,n,r,o)}n.shader=u,n.program=c;var l="undefined"==typeof WeakMap?e("weakmap-shim"):WeakMap,p=new l,f=0;r.prototype.dispose=function(){if(0===--this.count){for(var e=this.cache,t=e.gl,n=this.programs,r=0,o=n.length;o>r;++r){var a=e.programs[n[r]];a&&(delete e.programs[r],t.deleteProgram(a))}t.deleteShader(this.shader),delete e.shaders[this.type===t.FRAGMENT_SHADER|0][this.src]}};var h=o.prototype;h.getShaderReference=function(e,t){var n=this.gl,o=this.shaders[e===n.FRAGMENT_SHADER|0],i=o[t];if(i&&n.isShader(i.shader))i.count+=1;else{var s=a(n,e,t);i=o[t]=new r(f++,t,e,s,[],1,this)}return i},h.getProgram=function(e,t,n,r){var o=[e.id,t.id,n.join(":"),r.join(":")].join("@"),a=this.programs[o];return a&&this.gl.isProgram(a)||(this.programs[o]=a=i(this.gl,e.shader,t.shader,n,r),e.programs.push(o),t.programs.push(o)),a}},{"weakmap-shim":31}],29:[function(e,t,n){function r(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:o(t,e)}}var o=e("./hidden-store.js");t.exports=r},{"./hidden-store.js":30}],30:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],31:[function(e,t,n){function r(){var e=o();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){e(t).value=n},has:function(t){return"value"in e(t)},"delete":function(t){return delete e(t).value}}}var o=e("./create-store.js");t.exports=r},{"./create-store.js":29}],32:[function(e,t,n){"use strict";function r(e){if(!e)return s;for(var t=0;t<e.args.length;++t){var n=e.args[t];0===t?e.args[t]={name:n,lvalue:!0,rvalue:!!e.rvalue,count:e.count||1}:e.args[t]={name:n,lvalue:!1,rvalue:!0,count:1}}return e.thisVars||(e.thisVars=[]),e.localVars||(e.localVars=[]),e}function o(e){return i({args:e.args,pre:r(e.pre),body:r(e.body),post:r(e.proc),funcName:e.funcName})}function a(e){for(var t=[],n=0;n<e.args.length;++n)t.push("a"+n);var r=new Function("P",["return function ",e.funcName,"_ndarrayops(",t.join(","),") {P(",t.join(","),");return a0}"].join(""));return r(o(e))}var i=e("cwise-compiler"),s={body:"",args:[],thisVars:[],localVars:[]},u={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};!function(){for(var e in u){var t=u[e];n[e]=a({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"eq"]=a({args:["array","array"],body:{args:["a","b"],body:"a"+t+"=b"},rvalue:!0,funcName:e+"eq"}),n[e+"s"]=a({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"seq"]=a({args:["array","scalar"],body:{args:["a","s"],body:"a"+t+"=s"},rvalue:!0,funcName:e+"seq"})}}();var c={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in c){var t=c[e];n[e]=a({args:["array","array"],body:{args:["a","b"],body:"a="+t+"b"},funcName:e}),n[e+"eq"]=a({args:["array"],body:{args:["a"],body:"a="+t+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var l={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in l){var t=l[e];n[e]=a({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"s"]=a({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"eq"]=a({args:["array","array"],body:{args:["a","b"],body:"a=a"+t+"b"},rvalue:!0,count:2,funcName:e+"eq"}),n[e+"seq"]=a({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+t+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var p=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;e<p.length;++e){var t=p[e];n[t]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:t}),n[t+"eq"]=a({args:["array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"})}}();var f=["max","min","atan2","pow"];!function(){for(var e=0;e<f.length;++e){var t=f[e];n[t]=a({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t}),n[t+"s"]=a({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t+"s"}),n[t+"eq"]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"}),n[t+"seq"]=a({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"seq"})}}();var h=["atan2","pow"];!function(){for(var e=0;e<h.length;++e){var t=h[e];n[t+"op"]=a({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"op"}),n[t+"ops"]=a({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"ops"}),n[t+"opeq"]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opeq"}),n[t+"opseq"]=a({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opseq"})}}(),n.any=i({args:["array"],pre:s,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),n.all=i({args:["array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),n.sum=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),n.prod=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),n.norm2squared=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),n.norm2=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),n.norminf=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),n.norm1=i({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),n.sup=i({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.inf=i({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.argmin=i({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.argmax=i({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0
},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.random=a({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),n.assign=a({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),n.assigns=a({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),n.equals=i({args:["array","array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},{"cwise-compiler":33}],33:[function(e,t,n){"use strict";function r(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}function o(e){var t=new r;t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var o=0;o<n.length;++o){var i=n[o];if("array"===i||"object"==typeof i&&i.blockIndices){if(t.argTypes[o]="array",t.arrayArgs.push(o),t.arrayBlockIndices.push(i.blockIndices?i.blockIndices:0),t.shimArgs.push("array"+o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array args");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===i)t.scalarArgs.push(o),t.shimArgs.push("scalar"+o);else if("index"===i){if(t.indexArgs.push(o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array index");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array index");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===i){if(t.shapeArgs.push(o),o<t.pre.args.length&&t.pre.args[o].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array shape");if(o<t.post.args.length&&t.post.args[o].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!=typeof i||!i.offset)throw new Error("cwise: Unknown argument type "+n[o]);t.argTypes[o]="offset",t.offsetArgs.push({array:i.array,offset:i.offset}),t.offsetArgIndex.push(o)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>n.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,a(t)}var a=e("./lib/thunk.js");t.exports=o},{"./lib/thunk.js":35}],34:[function(e,t,n){"use strict";function r(e,t,n){var r,o,a=e.length,i=t.arrayArgs.length,s=t.indexArgs.length>0,u=[],c=[],l=0,p=0;for(r=0;a>r;++r)c.push(["i",r,"=0"].join(""));for(o=0;i>o;++o)for(r=0;a>r;++r)p=l,l=e[r],0===r?c.push(["d",o,"s",r,"=t",o,"p",l].join("")):c.push(["d",o,"s",r,"=(t",o,"p",l,"-s",p,"*t",o,"p",p,")"].join(""));for(u.push("var "+c.join(",")),r=a-1;r>=0;--r)l=e[r],u.push(["for(i",r,"=0;i",r,"<s",l,";++i",r,"){"].join(""));for(u.push(n),r=0;a>r;++r){for(p=l,l=e[r],o=0;i>o;++o)u.push(["p",o,"+=d",o,"s",r].join(""));s&&(r>0&&u.push(["index[",p,"]-=s",p].join("")),u.push(["++index[",l,"]"].join(""))),u.push("}")}return u.join("\n")}function o(e,t,n,o){for(var a=t.length,i=n.arrayArgs.length,s=n.blockSize,u=n.indexArgs.length>0,c=[],l=0;i>l;++l)c.push(["var offset",l,"=p",l].join(""));for(var l=e;a>l;++l)c.push(["for(var j"+l+"=SS[",t[l],"]|0;j",l,">0;){"].join("")),c.push(["if(j",l,"<",s,"){"].join("")),c.push(["s",t[l],"=j",l].join("")),c.push(["j",l,"=0"].join("")),c.push(["}else{s",t[l],"=",s].join("")),c.push(["j",l,"-=",s,"}"].join("")),u&&c.push(["index[",t[l],"]=j",l].join(""));for(var l=0;i>l;++l){for(var p=["offset"+l],f=e;a>f;++f)p.push(["j",f,"*t",l,"p",t[f]].join(""));c.push(["p",l,"=(",p.join("+"),")"].join(""))}c.push(r(t,n,o));for(var l=e;a>l;++l)c.push("}");return c.join("\n")}function a(e){for(var t=0,n=e[0].length;n>t;){for(var r=1;r<e.length;++r)if(e[r][t]!==e[0][t])return t;++t}return t}function i(e,t,n){for(var r=e.body,o=[],a=[],i=0;i<e.args.length;++i){var s=e.args[i];if(!(s.count<=0)){var u=new RegExp(s.name,"g"),c="",l=t.arrayArgs.indexOf(i);switch(t.argTypes[i]){case"offset":var p=t.offsetArgIndex.indexOf(i),f=t.offsetArgs[p];l=f.array,c="+q"+p;case"array":c="p"+l+c;var h="l"+i,d="a"+l;if(0===t.arrayBlockIndices[l])1===s.count?"generic"===n[l]?s.lvalue?(o.push(["var ",h,"=",d,".get(",c,")"].join("")),r=r.replace(u,h),a.push([d,".set(",c,",",h,")"].join(""))):r=r.replace(u,[d,".get(",c,")"].join("")):r=r.replace(u,[d,"[",c,"]"].join("")):"generic"===n[l]?(o.push(["var ",h,"=",d,".get(",c,")"].join("")),r=r.replace(u,h),s.lvalue&&a.push([d,".set(",c,",",h,")"].join(""))):(o.push(["var ",h,"=",d,"[",c,"]"].join("")),r=r.replace(u,h),s.lvalue&&a.push([d,"[",c,"]=",h].join("")));else{for(var v=[s.name],g=[c],m=0;m<Math.abs(t.arrayBlockIndices[l]);m++)v.push("\\s*\\[([^\\]]+)\\]"),g.push("$"+(m+1)+"*t"+l+"b"+m);if(u=new RegExp(v.join(""),"g"),c=g.join("+"),"generic"===n[l])throw new Error("cwise: Generic arrays not supported in combination with blocks!");r=r.replace(u,[d,"[",c,"]"].join(""))}break;case"scalar":r=r.replace(u,"Y"+t.scalarArgs.indexOf(i));break;case"index":r=r.replace(u,"index");break;case"shape":r=r.replace(u,"shape")}}}return[o.join("\n"),r,a.join("\n")].join("\n").trim()}function s(e){for(var t=new Array(e.length),n=!0,r=0;r<e.length;++r){var o=e[r],a=o.match(/\d+/);a=a?a[0]:"",0===o.charAt(0)?t[r]="u"+o.charAt(1)+a:t[r]=o.charAt(0)+a,r>0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}function u(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,u=new Array(e.arrayArgs.length),l=new Array(e.arrayArgs.length),p=0;p<e.arrayArgs.length;++p)l[p]=t[2*p],u[p]=t[2*p+1];for(var f=[],h=[],d=[],v=[],g=[],p=0;p<e.arrayArgs.length;++p){e.arrayBlockIndices[p]<0?(d.push(0),v.push(n),f.push(n),h.push(n+e.arrayBlockIndices[p])):(d.push(e.arrayBlockIndices[p]),v.push(e.arrayBlockIndices[p]+n),f.push(0),h.push(e.arrayBlockIndices[p]));for(var m=[],y=0;y<u[p].length;y++)d[p]<=u[p][y]&&u[p][y]<v[p]&&m.push(u[p][y]-d[p]);g.push(m)}for(var E=["SS"],b=["'use strict'"],_=[],y=0;n>y;++y)_.push(["s",y,"=SS[",y,"]"].join(""));for(var p=0;p<e.arrayArgs.length;++p){E.push("a"+p),E.push("t"+p),E.push("p"+p);for(var y=0;n>y;++y)_.push(["t",p,"p",y,"=t",p,"[",d[p]+y,"]"].join(""));for(var y=0;y<Math.abs(e.arrayBlockIndices[p]);++y)_.push(["t",p,"b",y,"=t",p,"[",f[p]+y,"]"].join(""))}for(var p=0;p<e.scalarArgs.length;++p)E.push("Y"+p);if(e.shapeArgs.length>0&&_.push("shape=SS.slice(0)"),e.indexArgs.length>0){for(var R=new Array(n),p=0;n>p;++p)R[p]="0";_.push(["index=[",R.join(","),"]"].join(""))}for(var p=0;p<e.offsetArgs.length;++p){for(var w=e.offsetArgs[p],C=[],y=0;y<w.offset.length;++y)0!==w.offset[y]&&(1===w.offset[y]?C.push(["t",w.array,"p",y].join("")):C.push([w.offset[y],"*t",w.array,"p",y].join("")));0===C.length?_.push("q"+p+"=0"):_.push(["q",p,"=",C.join("+")].join(""))}var x=c([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));_=_.concat(x),b.push("var "+_.join(","));for(var p=0;p<e.arrayArgs.length;++p)b.push("p"+p+"|=0");e.pre.body.length>3&&b.push(i(e.pre,e,l));var T=i(e.body,e,l),O=a(g);n>O?b.push(o(O,g[0],e,T)):b.push(r(g[0],e,T)),e.post.body.length>3&&b.push(i(e.post,e,l)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+b.join("\n")+"\n----------");var M=[e.funcName||"unnamed","_cwise_loop_",u[0].join("s"),"m",O,s(l)].join(""),I=new Function(["function ",M,"(",E.join(","),"){",b.join("\n"),"} return ",M].join(""));return I()}var c=e("uniq");t.exports=u},{uniq:36}],35:[function(e,t,n){"use strict";function r(e){var t=["'use strict'","var CACHED={}"],n=[],r=e.funcName+"_cwise_thunk";t.push(["return function ",r,"(",e.shimArgs.join(","),"){"].join(""));for(var a=[],i=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],u=[],c=[],l=0;l<e.arrayArgs.length;++l){var p=e.arrayArgs[l];n.push(["t",p,"=array",p,".dtype,","r",p,"=array",p,".order"].join("")),a.push("t"+p),a.push("r"+p),i.push("t"+p),i.push("r"+p+".join()"),s.push("array"+p+".data"),s.push("array"+p+".stride"),s.push("array"+p+".offset|0"),l>0&&(u.push("array"+e.arrayArgs[0]+".shape.length===array"+p+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[l]))),c.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+p+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[l])+"]"))}e.arrayArgs.length>1&&(t.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex-->0;) {"),t.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}"));for(var l=0;l<e.scalarArgs.length;++l)s.push("scalar"+e.scalarArgs[l]);n.push(["type=[",i.join(","),"].join()"].join("")),n.push("proc=CACHED[type]"),t.push("var "+n.join(",")),t.push(["if(!proc){","CACHED[type]=proc=compile([",a.join(","),"])}","return proc(",s.join(","),")}"].join("")),e.debug&&console.log("-----Generated thunk:\n"+t.join("\n")+"\n----------");var f=new Function("compile",t.join("\n"));return f(o.bind(void 0,e))}var o=e("./compile.js");t.exports=r},{"./compile.js":34}],36:[function(e,t,n){"use strict";function r(e,t){for(var n=1,r=e.length,o=e[0],a=e[0],i=1;r>i;++i)if(a=o,o=e[i],t(o,a)){if(i===n){n++;continue}e[n++]=o}return e.length=n,e}function o(e){for(var t=1,n=e.length,r=e[0],o=e[0],a=1;n>a;++a,o=r)if(o=r,r=e[a],r!==o){if(a===t){t++;continue}e[t++]=r}return e.length=t,e}function a(e,t,n){return 0===e.length?e:t?(n||e.sort(t),r(e,t)):(n||e.sort(),o(e))}t.exports=a},{}],37:[function(e,t,n){function r(e,t){return e[0]-t[0]}function o(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(r);var o=new Array(n.length);for(e=0;e<o.length;++e)o[e]=n[e][1];return o}function a(e,t){var n=["View",t,"d",e].join("");0>t&&(n="View_Nil"+e);var r="generic"===e;if(-1===t){var a="function "+n+"(a){this.data=a;};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+n+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+n+"(a){return new "+n+"(a);}",i=new Function(a);return i()}if(0===t){var a="function "+n+"(a,d) {this.data = a;this.offset = d};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+n+"_copy() {return new "+n+"(this.data,this.offset)};proto.pick=function "+n+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+n+"_get(){return "+(r?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+n+"_set(v){return "+(r?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+n+"(a,b,c,d){return new "+n+"(a,d)}",i=new Function("TrivialArray",a);return i(p[e][0])}var a=["'use strict'"],s=u(t),c=s.map(function(e){return"i"+e}),l="this.offset+"+s.map(function(e){return"this.stride["+e+"]*i"+e}).join("+"),f=s.map(function(e){return"b"+e}).join(","),h=s.map(function(e){return"c"+e}).join(",");a.push("function "+n+"(a,"+f+","+h+",d){this.data=a","this.shape=["+f+"]","this.stride=["+h+"]","this.offset=d|0}","var proto="+n+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),a.push("Object.defineProperty(proto,'size',{get:function "+n+"_size(){return "+s.map(function(e){return"this.shape["+e+"]"}).join("*"),"}})"),1===t?a.push("proto.order=[0]"):(a.push("Object.defineProperty(proto,'order',{get:"),4>t?(a.push("function "+n+"_order(){"),2===t?a.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&a.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):a.push("ORDER})")),a.push("proto.set=function "+n+"_set("+c.join(",")+",v){"),r?a.push("return this.data.set("+l+",v)}"):a.push("return this.data["+l+"]=v}"),a.push("proto.get=function "+n+"_get("+c.join(",")+"){"),r?a.push("return this.data.get("+l+")}"):a.push("return this.data["+l+"]}"),a.push("proto.index=function "+n+"_index(",c.join(),"){return "+l+"}"),a.push("proto.hi=function "+n+"_hi("+c.join(",")+"){return new "+n+"(this.data,"+s.map(function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")}).join(",")+","+s.map(function(e){return"this.stride["+e+"]"}).join(",")+",this.offset)}");var d=s.map(function(e){return"a"+e+"=this.shape["+e+"]"}),v=s.map(function(e){return"c"+e+"=this.stride["+e+"]"});a.push("proto.lo=function "+n+"_lo("+c.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+v.join(","));for(var g=0;t>g;++g)a.push("if(typeof i"+g+"==='number'&&i"+g+">=0){d=i"+g+"|0;b+=c"+g+"*d;a"+g+"-=d}");a.push("return new "+n+"(this.data,"+s.map(function(e){return"a"+e}).join(",")+","+s.map(function(e){return"c"+e}).join(",")+",b)}"),a.push("proto.step=function "+n+"_step("+c.join(",")+"){var "+s.map(function(e){return"a"+e+"=this.shape["+e+"]"}).join(",")+","+s.map(function(e){return"b"+e+"=this.stride["+e+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(var g=0;t>g;++g)a.push("if(typeof i"+g+"==='number'){d=i"+g+"|0;if(d<0){c+=b"+g+"*(a"+g+"-1);a"+g+"=ceil(-a"+g+"/d)}else{a"+g+"=ceil(a"+g+"/d)}b"+g+"*=d}");a.push("return new "+n+"(this.data,"+s.map(function(e){return"a"+e}).join(",")+","+s.map(function(e){return"b"+e}).join(",")+",c)}");for(var m=new Array(t),y=new Array(t),g=0;t>g;++g)m[g]="a[i"+g+"]",y[g]="b[i"+g+"]";a.push("proto.transpose=function "+n+"_transpose("+c+"){"+c.map(function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"}).join(";"),"var a=this.shape,b=this.stride;return new "+n+"(this.data,"+m.join(",")+","+y.join(",")+",this.offset)}"),a.push("proto.pick=function "+n+"_pick("+c+"){var a=[],b=[],c=this.offset");for(var g=0;t>g;++g)a.push("if(typeof i"+g+"==='number'&&i"+g+">=0){c=(c+this.stride["+g+"]*i"+g+")|0}else{a.push(this.shape["+g+"]);b.push(this.stride["+g+"])}");a.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),a.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+s.map(function(e){return"shape["+e+"]"}).join(",")+","+s.map(function(e){return"stride["+e+"]"}).join(",")+",offset)}");var i=new Function("CTOR_LIST","ORDER",a.join("\n"));return i(p[e],o)}function i(e){if(c(e))return"buffer";if(l)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(e)?"array":"generic"}function s(e,t,n,r){if(void 0===e){var o=p.array[0];return o([])}"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var s=t.length;if(void 0===n){n=new Array(s);for(var u=s-1,c=1;u>=0;--u)n[u]=c,c*=t[u]}if(void 0===r){r=0;for(var u=0;s>u;++u)n[u]<0&&(r-=(t[u]-1)*n[u])}for(var l=i(e),f=p[l];f.length<=s+1;)f.push(a(l,f.length-1));var o=f[s+1];return o(e,t,n,r)}var u=e("iota-array"),c=e("is-buffer"),l="undefined"!=typeof Float64Array,p={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};t.exports=s},{"iota-array":38,"is-buffer":39}],38:[function(e,t,n){"use strict";function r(e){for(var t=new Array(e),n=0;e>n;++n)t[n]=n;return t}t.exports=r},{}],39:[function(e,t,n){t.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},{}],40:[function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return e&=-e,e&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}var o=32;n.INT_BITS=o,n.INT_MAX=2147483647,n.INT_MIN=-1<<o-1,n.sign=function(e){return(e>0)-(0>e)},n.abs=function(e){var t=e>>o-1;return(e^t)-t},n.min=function(e,t){return t^(e^t)&-(t>e)},n.max=function(e,t){return e^(e^t)&-(t>e)},n.isPow2=function(e){return!(e&e-1||!e)},n.log2=function(e){var t,n;return t=(e>65535)<<4,e>>>=t,n=(e>255)<<3,e>>>=n,t|=n,n=(e>15)<<2,e>>>=n,t|=n,n=(e>3)<<1,e>>>=n,t|=n,t|e>>1},n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},n.popCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24},n.countTrailingZeros=r,n.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1},n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)},n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var a=new Array(256);!function(e){for(var t=0;256>t;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<<o&255}}(a),n.reverse=function(e){return a[255&e]<<24|a[e>>>8&255]<<16|a[e>>>16&255]<<8|a[e>>>24&255]},n.interleave2=function(e,t){return e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1},n.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=858993459&(e|e>>>1),e=252645135&(e|e>>>2),e=16711935&(e|e>>>4),e=65535&(e|e>>>16),e<<16>>16},n.interleave3=function(e,t,n){return e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e|=t<<1,n&=1023,n=4278190335&(n|n<<16),n=251719695&(n|n<<8),n=3272356035&(n|n<<4),n=1227133513&(n|n<<2),e|n<<2},n.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=3272356035&(e|e>>>2),e=251719695&(e|e>>>4),e=4278190335&(e|e>>>8),e=1023&(e|e>>>16),e<<22>>22},n.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},{}],41:[function(e,t,n){"use strict";function r(e,t,n){var o=0|e[n];if(0>=o)return[];var a,i=new Array(o);if(n===e.length-1)for(a=0;o>a;++a)i[a]=t;else for(a=0;o>a;++a)i[a]=r(e,t,n+1);return i}function o(e,t){var n,r;for(n=new Array(e),r=0;e>r;++r)n[r]=t;return n}function a(e,t){switch("undefined"==typeof t&&(t=0),typeof e){case"number":if(e>0)return o(0|e,t);break;case"object":if("number"==typeof e.length)return r(e,t,0)}return[]}t.exports=a},{}],42:[function(e,t,n){(function(t,r){"use strict";function o(e){if(e){var t=e.length||e.byteLength,n=y.log2(t);R[n].push(e)}}function a(e){o(e.buffer)}function i(e){var e=y.nextPow2(e),t=y.log2(e),n=R[t];return n.length>0?n.pop():new ArrayBuffer(e)}function s(e){return new Uint8Array(i(e),0,e)}function u(e){return new Uint16Array(i(2*e),0,e)}function c(e){return new Uint32Array(i(4*e),0,e)}function l(e){return new Int8Array(i(e),0,e)}function p(e){return new Int16Array(i(2*e),0,e)}function f(e){return new Int32Array(i(4*e),0,e)}function h(e){return new Float32Array(i(4*e),0,e)}function d(e){return new Float64Array(i(8*e),0,e)}function v(e){return b?new Uint8ClampedArray(i(e),0,e):s(e)}function g(e){return new DataView(i(e),0,e)}function m(e){e=y.nextPow2(e);var t=y.log2(e),n=w[t];return n.length>0?n.pop():new r(e)}var y=e("bit-twiddle"),E=e("dup");t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:E([32,0]),UINT16:E([32,0]),UINT32:E([32,0]),INT8:E([32,0]),INT16:E([32,0]),INT32:E([32,0]),FLOAT:E([32,0]),DOUBLE:E([32,0]),DATA:E([32,0]),UINT8C:E([32,0]),BUFFER:E([32,0])});var b="undefined"!=typeof Uint8ClampedArray,_=t.__TYPEDARRAY_POOL;_.UINT8C||(_.UINT8C=E([32,0])),_.BUFFER||(_.BUFFER=E([32,0]));var R=_.DATA,w=_.BUFFER;n.free=function(e){if(r.isBuffer(e))w[y.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|y.log2(t);R[n].push(e)}},n.freeUint8=n.freeUint16=n.freeUint32=n.freeInt8=n.freeInt16=n.freeInt32=n.freeFloat32=n.freeFloat=n.freeFloat64=n.freeDouble=n.freeUint8Clamped=n.freeDataView=a,n.freeArrayBuffer=o,n.freeBuffer=function(e){w[y.log2(e.length)].push(e)},n.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return i(e);switch(t){case"uint8":return s(e);case"uint16":return u(e);case"uint32":return c(e);case"int8":return l(e);case"int16":return p(e);case"int32":return f(e);case"float":case"float32":return h(e);case"double":case"float64":return d(e);case"uint8_clamped":return v(e);case"buffer":return m(e);case"data":case"dataview":return g(e);default:return null}return null},n.mallocArrayBuffer=i,n.mallocUint8=s,n.mallocUint16=u,n.mallocUint32=c,n.mallocInt8=l,n.mallocInt16=p,n.mallocInt32=f,n.mallocFloat32=n.mallocFloat=h,n.mallocFloat64=n.mallocDouble=d,n.mallocUint8Clamped=v,n.mallocDataView=g,n.mallocBuffer=m,n.clearCache=function(){for(var e=0;32>e;++e)_.UINT8[e].length=0,_.UINT16[e].length=0,_.UINT32[e].length=0,_.INT8[e].length=0,_.INT16[e].length=0,_.INT32[e].length=0,_.FLOAT[e].length=0,_.DOUBLE[e].length=0,_.UINT8C[e].length=0,R[e].length=0,w[e].length=0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"bit-twiddle":40,buffer:2,dup:41}],43:[function(e,t,n){"use strict";function r(e){g=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],m=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],y=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}function o(e,t,n){var r=e.gl,o=r.getParameter(r.MAX_TEXTURE_SIZE);if(0>t||t>o||0>n||n>o)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function a(e,t,n,r,o,a){this.gl=e,this.handle=t,this.format=o,this.type=a,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var i=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return i._wrapS},set:function(e){return i.wrapS=e}},{get:function(){return i._wrapT},set:function(e){return i.wrapT=e}}]),this._wrapVector=s;var u=[this._shape[0],this._shape[1]];Object.defineProperties(u,[{get:function(){return i._shape[0]},set:function(e){return i.width=e}},{get:function(){return i._shape[1]},set:function(e){return i.height=e}}]),this._shapeVector=u}function i(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function s(e,t,n,r,o,a,s,u){var c=u.dtype,l=u.shape.slice();if(l.length<2||l.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var p=0,f=0,g=i(l,u.stride.slice());"float32"===c?p=e.FLOAT:"float64"===c?(p=e.FLOAT,g=!1,c="float32"):"uint8"===c?p=e.UNSIGNED_BYTE:(p=e.UNSIGNED_BYTE,g=!1,c="uint8");var m=1;if(2===l.length)f=e.LUMINANCE,l=[l[0],l[1],1],u=h(u.data,l,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==l.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===l[2])f=e.ALPHA;else if(2===l[2])f=e.LUMINANCE_ALPHA;else if(3===l[2])f=e.RGB;else{if(4!==l[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");f=e.RGBA}m=l[2]}if(f!==e.LUMINANCE&&f!==e.ALPHA||o!==e.LUMINANCE&&o!==e.ALPHA||(f=o),f!==o)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=u.size,b=s.indexOf(r)<0;if(b&&s.push(r),p===a&&g)0===u.offset&&u.data.length===y?b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,a,u.data):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,a,u.data):b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,a,u.data.subarray(u.offset,u.offset+y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,a,u.data.subarray(u.offset,u.offset+y));else{var _;_=a===e.FLOAT?v.mallocFloat32(y):v.mallocUint8(y);var R=h(_,l,[l[2],l[2]*l[0],1]);p===e.FLOAT&&a===e.UNSIGNED_BYTE?E(R,u):d.assign(R,u),b?e.texImage2D(e.TEXTURE_2D,r,o,l[0],l[1],0,o,a,_.subarray(0,y)):e.texSubImage2D(e.TEXTURE_2D,r,t,n,l[0],l[1],o,a,_.subarray(0,y)),a===e.FLOAT?v.freeFloat32(_):v.freeUint8(_)}}function u(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function c(e,t,n,r,o){var i=e.getParameter(e.MAX_TEXTURE_SIZE);if(0>t||t>i||0>n||n>i)throw new Error("gl-texture2d: Invalid texture shape");if(o===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var s=u(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,o,null),new a(e,s,t,n,r,o)}function l(e,t,n,r){var o=u(e);return e.texImage2D(e.TEXTURE_2D,0,n,n,r,t),new a(e,o,0|t.width,0|t.height,n,r)}function p(e,t){var n=t.dtype,r=t.shape.slice(),o=e.getParameter(e.MAX_TEXTURE_SIZE);if(r[0]<0||r[0]>o||r[1]<0||r[1]>o)throw new Error("gl-texture2d: Invalid texture size");var s=i(r,t.stride.slice()),c=0;"float32"===n?c=e.FLOAT:"float64"===n?(c=e.FLOAT,s=!1,n="float32"):"uint8"===n?c=e.UNSIGNED_BYTE:(c=e.UNSIGNED_BYTE,s=!1,n="uint8");var l=0;if(2===r.length)l=e.LUMINANCE,r=[r[0],r[1],1],t=h(t.data,r,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==r.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===r[2])l=e.ALPHA;else if(2===r[2])l=e.LUMINANCE_ALPHA;else if(3===r[2])l=e.RGB;else{if(4!==r[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");l=e.RGBA}}c!==e.FLOAT||e.getExtension("OES_texture_float")||(c=e.UNSIGNED_BYTE,s=!1);var p,f,g=t.size;if(s)p=0===t.offset&&t.data.length===g?t.data:t.data.subarray(t.offset,t.offset+g);else{var m=[r[2],r[2]*r[0],1];f=v.malloc(g,n);var y=h(f,r,m,0);"float32"!==n&&"float64"!==n||c!==e.UNSIGNED_BYTE?d.assign(y,t):E(y,t),p=f.subarray(0,g)}var b=u(e);return e.texImage2D(e.TEXTURE_2D,0,l,r[0],r[1],0,l,c,p),s||v.free(f),new a(e,b,r[0],r[1],l,c)}function f(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(g||r(e),"number"==typeof arguments[1])return c(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return c(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"==typeof arguments[1]){var t=arguments[1];if(t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof HTMLVideoElement||t instanceof ImageData)return l(e,t,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return p(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}var h=e("ndarray"),d=e("ndarray-ops"),v=e("typedarray-pool");t.exports=f;var g=null,m=null,y=null,E=function(e,t){d.muls(e,t,255)},b=a.prototype;Object.defineProperties(b,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&g.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),m.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&g.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),m.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),y.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;2>t;++t)if(y.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return o(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return e=0|e,o(this,e,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e=0|e,o(this,this._shape[0],e),e}}}),b.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},b.dispose=function(){this.gl.deleteTexture(this.handle)},b.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},b.setPixels=function(e,t,n,r){var o=this.gl;if(this.bind(),Array.isArray(t)?(r=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),r=r||0,e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLImageElement||e instanceof HTMLVideoElement){var a=this._mipLevels.indexOf(r)<0;a?(o.texImage2D(o.TEXTURE_2D,0,this.format,this.format,this.type,e),this._mipLevels.push(r)):o.texSubImage2D(o.TEXTURE_2D,r,t,n,this.format,this.type,e)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>r||n+e.shape[0]>this._shape[0]>>>r||0>t||0>n)throw new Error("gl-texture2d: Texture dimensions are out of bounds");
s(o,t,n,r,this.format,this.type,this._mipLevels,e)}}},{ndarray:37,"ndarray-ops":32,"typedarray-pool":42}],44:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=r},{}],45:[function(e,t,n){for(var r=e("performance-now"),o="undefined"==typeof window?{}:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],u=o["cancel"+i]||o["cancelRequest"+i],c=0;c<a.length&&!s;c++)s=o[a[c]+"Request"+i],u=o[a[c]+"Cancel"+i]||o[a[c]+"CancelRequest"+i];if(!s||!u){var l=0,p=0,f=[],h=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,h-(t-l));l=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}t.exports=function(e){return s.call(o,e)},t.exports.cancel=function(){u.apply(o,arguments)}},{"performance-now":46}],46:[function(e,t,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:6}],47:[function(e,t,n){"use strict";function r(e){return e in l?l[e]:l[e]=o(e)}function o(e){var t,n=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),r=u.length;if(void 0!==s[n])return n;for(n=a(e);r--;)if(t=u[r]+n,void 0!==s[t])return t;throw new Error("unable to prefix "+e)}function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){var t=r(e),n=/([A-Z])/g;return n.test(t)&&(t=(c.test(t)?"-":"")+t.replace(n,"-$1")),t.toLowerCase()}var s=document.createElement("p").style,u="O ms Moz webkit".split(" "),c=/^(o|ms|moz|webkit)/,l={};t.exports=r,t.exports.dash=i},{}],48:[function(e,t,n){"use strict";var r=e("react"),o=e("gl-react-core"),a=o.createComponent;t.exports=a(r)},{"gl-react-core":22,react:231}],49:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){for(var n in t)n in e||t[n].dispose()}function u(e,t){(e.shape[0]!==t[0]||e.shape[1]!==t[1])&&(e.shape=t)}function c(e){return e.uri}function l(e,t){for(var n=0,r=0;r<t.length;r++)-1!==e.indexOf(c(t[r]))&&n++;return n}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}},d=e("invariant"),v=e("react"),g=v.Component,m=v.PropTypes,y=e("raf"),E=e("gl-shader"),b=e("gl-texture2d"),_=e("gl-fbo"),R=e("./Shaders"),w=e("./GLImage"),C=e("./static.vert"),x=e("./pointerEventsProperty"),T=function(e){function t(e){a(this,t),h(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={scale:window.devicePixelRatio},this.handleDraw=this.handleDraw.bind(this),this.handleSyncData=this.handleSyncData.bind(this),this.onImageLoad=this.onImageLoad.bind(this),this.getFBO=this.getFBO.bind(this),this._images={},this._shaders={},this._fbos={},this._contentTextures=[],this._standaloneTextures=[],e.imagesToPreload.length>0?this._preloading=[]:(this._preloading=null,this.props.onLoad&&this.props.onLoad()),this._autoredraw=this.props.autoRedraw,this._captureListeners=[]}return i(t,e),f(t,[{key:"captureFrame",value:function(e){this._captureListeners.push(e),this.requestDraw()}},{key:"render",value:function(){var e,t=this.props,n=t.width,a=t.height,i=(t.data,t.nbContentTextures,t.imagesToPreload,t.renderId,t.opaque),s=(t.onLoad,t.onProgress,t.autoRedraw,t.eventsThrough),u=(t.visibleContent,r(t,["width","height","data","nbContentTextures","imagesToPreload","renderId","opaque","onLoad","onProgress","autoRedraw","eventsThrough","visibleContent"])),c=this.state.scale,l=(e={width:n+"px",height:a+"px"},o(e,x,s?"none":"auto"),o(e,"position","relative"),o(e,"background",i?"#000":"transparent"),e);return v.createElement("canvas",p({},u,{ref:"render",style:l,width:n*c,height:a*c}))}},{key:"componentDidMount",value:function(){var e=v.findDOMNode(this.refs.render);this.canvas=e;var t={},n=e.getContext("webgl",t)||e.getContext("webgl-experimental",t)||e.getContext("experimental-webgl",t);if(n){this.gl=n,n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0);var r=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,r),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),n.STATIC_DRAW),this._buffer=r,this.resizeUniformContentTextures(this.props.nbContentTextures),this.syncData(this.props.data),this.checkAutoRedraw()}}},{key:"componentWillUnmount",value:function(){this._contentTextures.forEach(function(e){return e.dispose()}),this._standaloneTextures.forEach(function(e){return e.dispose()}),[this._shaders,this._images,this._fbos].forEach(function(e){for(var t in e)e[t].dispose(),delete e[t]}),this.gl&&this.gl.deleteBuffer(this._buffer),this.shader=null,this.gl=null,this._raf&&y.cancel(this._raf)}},{key:"componentWillReceiveProps",value:function(e){var t=window.devicePixelRatio;this.state.devicePixelRatio!==t&&this.setState({devicePixelRatio:t}),e.nbContentTextures!==this.props.nbContentTextures&&this.resizeUniformContentTextures(e.nbContentTextures),this._autoredraw=e.autoRedraw,this.checkAutoRedraw()}},{key:"componentDidUpdate",value:function(){var e=this.props.data;this.syncData(e)}},{key:"checkAutoRedraw",value:function(){var e=this;if(this._autoredraw&&!this._raf){var t=function n(){return e._autoredraw?(e._raf=y(n),void e.draw()):void delete e._raf};this._raf=y(t)}}},{key:"getFBO",value:function(e){var t=this._fbos;if(d(e>=0,"fbo id must be a positive integer"),e in t)return t[e];var n=_(this.gl,[2,2]);return t[e]=n,n}},{key:"syncData",value:function(e){function t(e){var s=e.shader,c=e.uniforms,h=e.children,v=e.contextChildren,g=e.width,m=e.height,y=e.fboId,_=v.map(t),x=h.map(t),T=void 0;if(s in l)T=l[s];else if(s in i)T=l[s]=i[s];else{var O=R.get(s);d(O,"Shader #%s does not exists",s),T=E(n,C,O.frag),T.name=O.name,T.attributes._p.pointer(),l[s]=T}var M={},I={},A=0;for(var P in c){var D=c[P],S=T.types.uniforms[P];if(d(S,"Shader '%s': Uniform '%s' is not defined/used",T.name,P),"sampler2D"===S||"samplerCube"===S)if(M[P]=A++,D)switch(D.type){case"content":I[P]=o[D.id];break;case"fbo":var N=a(D.id);I[P]=N.color[0];break;case"uri":var U=D.uri;d(U&&"string"==typeof U,"Shader '%s': An image src is defined for uniform '%s'",T.name,P);var L=void 0;U in p?L=p[U]:U in u?L=p[U]=u[U]:(L=new w(n,r),p[U]=L),L.src=U,I[P]=L.getTexture();break;case"ndarray":var k=b(n,D.ndarray),j=D.opts||{};j.disableLinearInterpolation||(k.minFilter=k.magFilter=n.LINEAR),I[P]=k,f.push(k);break;default:d(!1,"Shader '%s': invalid uniform '%s' value of type '%s'",T.name,P,D.type)}else{var F=b(n,[2,2]);I[P]=F,f.push(F)}else M[P]=D}var B=Object.keys(T.uniforms).filter(function(e){return!(e in M)});return d(0===B.length,"Shader '%s': All defined uniforms must be provided. Missing: '"+B.join("', '")+"'",T.name),{shader:T,uniforms:M,textures:I,children:x,contextChildren:_,width:g,height:m,fboId:y}}var n=this.gl;if(n){var r=this.onImageLoad,o=this._contentTextures,a=this.getFBO,i=this._shaders,u=this._images,c=this._standaloneTextures,l={},p={},f=[];this._renderData=t(e),s(l,i),s(p,u),c.forEach(function(e){return e.dispose()}),this._shaders=l,this._images=p,this._standaloneTextures=f,this._needsSyncData=!1,this.requestDraw()}}},{key:"draw",value:function(){function e(t){var r=t.shader,s=t.uniforms,c=t.textures,l=t.children,p=t.contextChildren,f=t.width,h=t.height,d=t.fboId,v=f*o,g=h*o;if(p.forEach(e),l.forEach(e),-1===d)n.bindFramebuffer(n.FRAMEBUFFER,null),n.viewport(0,0,v,g);else{var m=a(d);u(m,[v,g]),m.bind()}r.bind(),n.bindBuffer(n.ARRAY_BUFFER,i);for(var y in c)c[y].bind(s[y]);for(var y in s)r.uniforms[y]=s[y];n.blendFunc(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLES,0,6)}var t=this;this._needsDraw=!1;var n=this.gl,r=this._renderData;if(n&&r){var o=this.state.scale,a=this.getFBO,i=this._buffer;this.syncUniformContentTextures(),n.enable(n.BLEND),e(r),n.disable(n.BLEND),this._captureListeners.length>0&&!function(){var e=t.canvas.toDataURL();t._captureListeners.forEach(function(t){return t(e)}),t._captureListeners=[]}()}}},{key:"onImageLoad",value:function(e){if(this._preloading){this._preloading.push(e);var t=this.props,n=t.imagesToPreload,r=t.onLoad,o=t.onProgress,a=l(this._preloading,n),i=n.length;o&&o({progress:a/i,loaded:a,total:i}),a==i&&(this._preloading=null,this.requestSyncData(),r&&r())}else this.requestSyncData()}},{key:"resizeUniformContentTextures",value:function(e){var t=this.gl,n=this._contentTextures,r=n.length;if(r!==e)if(r>e){for(var o=e;r>o;o++)n[o].dispose();n.length=e}else for(var o=n.length;e>o;o++){var a=b(t,[2,2]);a.minFilter=a.magFilter=t.LINEAR,n.push(a)}}},{key:"syncUniformContentTextures",value:function(){for(var e=this.getDrawingUniforms(),t=this._contentTextures,n=0;n<e.length;n++){var r=e[n];this.syncUniformTexture(t[n],r)}}},{key:"syncUniformTexture",value:function(e,t){var n=t.width||t.videoWidth,r=t.height||t.videoHeight;n&&r?(u(e,[n,r]),e.setPixels(t)):e.shape=[2,2]}},{key:"getDrawingUniforms",value:function(){var e=this.props.nbContentTextures;if(0===e)return[];for(var t=v.findDOMNode(this.refs.render).parentNode.children,n=[],r=0;e>r;r++)n[r]=t[r].firstChild;return n}},{key:"requestSyncData",value:function(){this._needsSyncData||(this._needsSyncData=!0,y(this.handleSyncData))}},{key:"handleSyncData",value:function(){this._needsSyncData&&this.syncData(this.props.data)}},{key:"requestDraw",value:function(){this._needsDraw||(this._needsDraw=!0,y(this.handleDraw))}},{key:"handleDraw",value:function(){this._needsDraw&&(this._needsDraw=!1,this._preloading||this.draw())}}]),t}(g);T.propTypes={width:m.number.isRequired,height:m.number.isRequired,data:m.object.isRequired,nbContentTextures:m.number.isRequired},t.exports=T},{"./GLImage":50,"./Shaders":51,"./pointerEventsProperty":55,"./static.vert":56,"gl-fbo":7,"gl-shader":23,"gl-texture2d":43,invariant:44,raf:45,react:231}],50:[function(e,t,n){"use strict";function r(e,t,n){var r=new window.Image;return r.crossOrigin=!0,r.onload=function(){t(r)},r.onabort=r.onerror=n,r.src=e,function(){r.onload=null,r.onerror=null,r.onabort=null,r.src="",r=null}}function o(e,t){this.gl=e,this.image=null,this._onload=t,this.texture=a(e,[2,2]),this.texture.minFilter=this.texture.magFilter=e.LINEAR,this._textureImg=null}var a=e("gl-texture2d");o.prototype={dispose:function(){this._loading&&this._loading(),this.texture.dispose(),this.texture=null},reloadImage:function(){var e=this,t=this._src;this._loading&&this._loading(),this._loading=null,t?this._loading=r(t,function(n){e.clearImage(),e._loading=null,e.image=n,e._onload&&e._onload(t)},function(){e._loading=null,e.clearImage()}):this.clearImage()},getTexture:function(){var e=this.image,t=this.texture;return e!==this._textureImg&&(this._textureImg=e,e?(t.shape=[e.width,e.height],t.setPixels(e)):t.shape=[2,2]),t},clearImage:function(){this.image=null}},Object.defineProperty(o.prototype,"src",{set:function(e){e!==this._src&&(this._src=e,this.reloadImage())},get:function(){return this._src}}),t.exports=o},{"gl-texture2d":43}],51:[function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=e("gl-react-core"),a=o.createShaders,i=function(){},s={},u=a(function(e,t){try{i(t)}catch(n){var r=new Error("Shader '"+t.name+"': "+n.message);throw r.stack=n.stack,r.name=n.name,r.original=n,r}s[e]=t});t.exports=r({},u,{get:function(e){return s[e]}})},{"./static.vert":56,"gl-react-core":22,"gl-shader":23}],52:[function(e,t,n){"use strict";var r=e("gl-react-core"),o=r.createUniform,a=e("react");t.exports=o(a)},{"gl-react-core":22,react:231}],53:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=e("react"),i=e("./Shaders"),s=e("./Uniform"),u=e("./Component"),c=e("./GLCanvas"),l=e("gl-react-core"),p=l.createView,f=e("./pointerEventsProperty"),h=function(e,t,n,r,o){var i=o.visibleContent,s=a.Children.only(r),u={position:"absolute",top:0,left:0,width:e+"px",height:t+"px",visibility:i?"visible":"hidden"};return a.createElement("div",{key:"content-"+n,style:u},s)},d=function(e){return a.createElement(c,o({ref:"canvas"},e))},v=function(e,t,n){var i=e.style,s=e.visibleContent,u=e.eventsThrough,c=e.width,l=e.height,p=o({position:"relative"},i,r({width:c+"px",height:l+"px",overflow:"hidden"},f,!s&&u?"none":"auto"));return a.createElement("div",{style:p},t,n)};t.exports=p(a,i,s,u,v,h,d)},{"./Component":48,"./GLCanvas":49,"./Shaders":51,"./Uniform":52,"./pointerEventsProperty":55,"gl-react-core":22,react:231}],54:[function(e,t,n){"use strict";var r=e("./Shaders"),o=e("./View"),a=e("./Uniform"),i=e("./Component");t.exports={Shaders:r,View:o,Uniform:a,Component:i}},{"./Component":48,"./Shaders":51,"./Uniform":52,"./View":53}],55:[function(e,t,n){"use strict";var r=e("vendor-prefix");t.exports=r("pointer-events")},{"vendor-prefix":47}],56:[function(e,t,n){"use strict";t.exports="\nattribute vec2 _p;\nvarying vec2 uv;\nvoid main() {\n gl_Position = vec4(_p,0.0,1.0);\n uv = vec2(0.5, 0.5) * (_p+vec2(1.0, 1.0));\n}\n"},{}],57:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=e("react"),a=r(o),i=e("./components"),s=r(i);t.exports=s["default"](a["default"])},{"./components":60,react:231}],58:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){var t=d(),n=t-m;m=t,y+=n*s,y>o*l&&(y=0);for(var r=Math.ceil(y/o),a=0;a<v.length;a++){var i=v[a],u=i.active,c=i.step,p=i.prevState,h=v[a].nextState;if(u)if(0>=y)v[a].nextState=c(o/1e3,p);else for(var E=0;r>E;E++){v[a].nextState=c(o/1e3,h);var b=[h,v[a].nextState];v[a].prevState=b[0],h=b[1]}}y-=r*o;for(var _=1+y/o,a=0;a<v.length;a++){var R=v[a],w=R.render,C=R.nextState,x=R.prevState;w(_,C,x)}for(var T=[],a=0;a<v.length;a++)v[a].active&&T.push(v[a]);v=T,0===v.length?g=!1:f(e)}function t(){g||(g=!0,m=d(),y=0,f(e))}var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=n.timeStep,o=void 0===r?1/60*1e3:r,a=n.timeScale,s=void 0===a?1:a,c=n.maxSteps,l=void 0===c?10:c,p=n.raf,f=void 0===p?u["default"]:p,h=n.now,d=void 0===h?i["default"]:h,v=[],g=!1,m=0,y=0;return function(e,n,r){for(var o=0;o<v.length;o++){var a=v[o];if(a.step===n)return a.active=!0,a.prevState=e,t(),a.stop}var i={step:n,render:r,prevState:e,nextState:e,active:!0};return i.stop=function(){return i.active=!1},v.push(i),t(),i.stop}}n.__esModule=!0,n["default"]=o;var a=e("performance-now"),i=r(a),s=e("raf"),u=r(s);t.exports=n["default"]},{"performance-now":75,raf:76}],59:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return Array.isArray(e)?e.every(function(e,n){return o(e,t[n])}):i["default"](e)?Object.keys(e).every(function(n){return"config"===n?!0:o(e[n],t[n])}):e===t}n.__esModule=!0,n["default"]=o;var a=e("lodash.isplainobject"),i=r(a);t.exports=n["default"]},{"lodash.isplainobject":70}],60:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r,o){var a=o.currValue,s=o.currVelocity,c=n(),p=c.willEnter,h=c.willLeave,v=c.endValue;"function"==typeof v&&(v=v(a));var g=v,m=!1;e&&(g=d["default"](a,v,function(e){var t=h(e,a[e],v,a,s);return null==t?null:l["default"](s[e])&&f["default"](a[e],t)?null:t}),Object.keys(g).filter(function(e){return!a.hasOwnProperty(e)}).forEach(function(e){var t,n;m=!0;var r=p(e,g[e],v,a,s);g[e]=r,a=i({},a,(t={},t[e]=r,t)),s=i({},s,(n={},n[e]=u["default"](y["default"],r),n))}));var b=E.updateCurrValue(r,a,s,g),_=E.updateCurrVelocity(r,a,s,g);return!m&&l["default"](s)&&l["default"](_)&&t(),{currValue:b,currVelocity:_}}function a(e){var t=e.PropTypes,n=e.createClass({displayName:"Spring",propTypes:{defaultValue:t.oneOfType([t.object,t.array,t.number]),endValue:t.oneOfType([t.func,t.object,t.array,t.number]).isRequired,children:t.func.isRequired},getInitialState:function(){var e=this.props,t=e.endValue,n=e.defaultValue,r=void 0;return r=null==n?"function"==typeof t?t():t:n,{currValue:r,currVelocity:u["default"](y["default"],r)}},componentDidMount:function(){var e=this;this.animationStep=o.bind(null,!1,function(){return e.stopAnimation()},function(){return e.props}),this.startAnimating()},componentWillReceiveProps:function(){this.startAnimating()},stopAnimation:null,hasUnmounted:!1,animationStep:null,componentWillUnmount:function(){this.stopAnimation(),this.hasUnmounted=!0},startAnimating:function(){this.stopAnimation=b(this.state,this.animationStep,this.animationRender)},animationRender:function(e,t,n){this.hasUnmounted||this.setState({currValue:E.interpolateValue(e,t.currValue,n.currValue),currVelocity:t.currVelocity})},render:function(){var t=this.props.children(this.state.currValue);return t&&e.Children.only(t)}}),r=e.createClass({displayName:"TransitionSpring",propTypes:{defaultValue:t.objectOf(t.any),endValue:t.oneOfType([t.func,t.objectOf(t.any.isRequired)]).isRequired,willLeave:t.oneOfType([t.func]),willEnter:t.oneOfType([t.func]),children:t.func.isRequired},getDefaultProps:function(){return{willEnter:function(e,t){return t},willLeave:function(){return null}}},getInitialState:function(){var e=this.props,t=e.endValue,n=e.defaultValue,r=void 0;return r=null==n?"function"==typeof t?t():t:n,{currValue:r,currVelocity:u["default"](y["default"],r)}},componentDidMount:function(){var e=this;this.animationStep=o.bind(null,!0,function(){return e.stopAnimation()},function(){return e.props}),this.startAnimating()},componentWillReceiveProps:function(){this.startAnimating()},stopAnimation:null,hasUnmounted:!1,animationStep:null,componentWillUnmount:function(){this.stopAnimation()},startAnimating:function(){this.stopAnimation=b(this.state,this.animationStep,this.animationRender)},animationRender:function(e,t,n){this.hasUnmounted||this.setState({currValue:E.interpolateValue(e,t.currValue,n.currValue),currVelocity:t.currVelocity})},render:function(){var t=this.props.children(this.state.currValue);return t&&e.Children.only(t)}});return{Spring:n,TransitionSpring:r}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n["default"]=a;var s=e("./mapTree"),u=r(s),c=e("./noVelocity"),l=r(c),p=e("./compareTrees"),f=r(p),h=e("./mergeDiff"),d=r(h),v=e("./animationLoop"),g=r(v),m=e("./zero"),y=r(m),E=e("./updateTree"),b=g["default"]();t.exports=n["default"]},{"./animationLoop":58,"./compareTrees":59,"./mapTree":61,"./mergeDiff":62,"./noVelocity":63,"./updateTree":68,"./zero":69}],61:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=n[0];return"number"==typeof r?t.apply(void 0,[e].concat(n)):Array.isArray(r)?r.map(function(r,a){return o([].concat(e,[a]),t,n.map(function(e){return e[a]}))}):s["default"](r)?Object.keys(r).reduce(function(r,a){return r[a]=o([].concat(e,[a]),t,n.map(function(e){return e[a]})),r},{}):n[n.length-1]}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return o([],e,n)}n.__esModule=!0,n["default"]=a;var i=e("lodash.isplainobject"),s=r(i);t.exports=n["default"]},{"lodash.isplainobject":70}],62:[function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){for(var s=!0;s;){var u=e,c=t,l=n,p=r,f=o,h=a,d=i;v=g=m=y=E=E=void 0,s=!1;var v=p===u.length,g=f===c.length,m=u[p],y=c[f];if(v&&g)return null;if(v)d[y]=l[y],e=u,t=c,n=l,r=p,o=f+1,a=h,i=d,s=!0;else if(g){var E=h(m);null!=E&&(d[m]=E),e=u,t=c,n=l,r=p+1,o=f,a=h,i=d,s=!0}else if(m!==y)if(l.hasOwnProperty(m))e=u,t=c,n=l,r=p+1,o=f,a=h,i=d,s=!0;else{var E=h(m);null!=E&&(d[m]=E),e=u,t=c,n=l,r=p+1,o=f,a=h,i=d,s=!0}else d[m]=l[m],e=u,t=c,n=l,r=p+1,o=f+1,a=h,i=d,s=!0}}function o(e,t,n){var o={};return r(Object.keys(e),Object.keys(t),t,0,0,n,o),o}n.__esModule=!0,n["default"]=o,t.exports=n["default"]},{}],63:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Array.isArray(e)?e.every(o):i["default"](e)?Object.keys(e).every(function(t){return"config"===t?!0:o(e[t])}):"number"==typeof e?0===e:!0}n.__esModule=!0,n["default"]=o;var a=e("lodash.isplainobject"),i=r(a);t.exports=n["default"]},{"lodash.isplainobject":70}],64:[function(e,t,n){"use strict";n.__esModule=!0,n["default"]={noWobble:[170,26],gentle:[120,14],wobbly:[180,12],stiff:[210,20]},t.exports=n["default"]},{}],65:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n.__esModule=!0;var o=e("./reorderKeys"),a=r(o),i=e("./Spring");n.Spring=i.Spring,n.TransitionSpring=i.TransitionSpring;var s=e("./presets"),u=r(s);n.presets=u["default"];var c={reorderKeys:a["default"]};n.utils=c},{"./Spring":57,"./presets":64,"./reorderKeys":66}],66:[function(e,t,n){"use strict";function r(e,t){for(var n=t(Object.keys(e)),r={},o=0;o<n.length;o++){var a=n[o];r[a]=e[a]}return r}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],67:[function(e,t,n){"use strict";function r(e,t,n,r,a,i){var s=-a*(t-r),u=-i*n,c=s+u,l=n+c*e,p=t+l*e;return Math.abs(l-n)<o&&Math.abs(p-t)<o?[r,0]:[p,l]}n.__esModule=!0,n["default"]=r;var o=1e-4;t.exports=n["default"]},{}],68:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(null==t)return null;if(null==n)return t;if("number"==typeof t)return t*e+n*(1-e);if(null!=t.val&&t.config&&0===t.config.length)return t;if(null!=t.val){var r={val:o(e,t.val,n.val)};return t.config&&(r.config=t.config),r}return Array.isArray(t)?t.map(function(r,a){return o(e,t[a],n[a])}):l["default"](t)?Object.keys(t).reduce(function(r,a){return r[a]=o(e,t[a],n[a]),r},{}):t}function a(e,t,n,r,o,i){if(null==r)return null;if("number"==typeof r)return null==o||null==i?r:d["default"](e,t,n,r,o,i)[0];if(null!=r.val&&r.config&&0===r.config.length)return r;if(null!=r.val){var s=r.config||y["default"].noWobble,u=s[0],c=s[1],p={val:a(e,t.val,n.val,r.val,u,c)};return r.config&&(p.config=r.config),p}return Array.isArray(r)?r.map(function(s,u){return a(e,t[u],n[u],r[u],o,i)}):l["default"](r)?Object.keys(r).reduce(function(s,u){return s[u]=a(e,t[u],n[u],r[u],o,i),s},{}):r}function i(e,t,n,r){if("number"==typeof r){var o=y["default"].noWobble,i=o[0],s=o[1];return d["default"](e,t,n,r,i,s)[0]}return a(e,t,n,r)}function s(e,t,n,r,o,a){if(null==r)return null;if("number"==typeof r)return null==o||null==a?f["default"](g["default"],n):d["default"](e,t,n,r,o,a)[1];if(null!=r.val&&r.config&&0===r.config.length)return f["default"](g["default"],n);if(null!=r.val){var i=r.config||y["default"].noWobble,u=i[0],c=i[1],p={val:s(e,t.val,n.val,r.val,u,c)};return r.config&&(p.config=r.config),p}return Array.isArray(r)?r.map(function(i,u){return s(e,t[u],n[u],r[u],o,a)}):l["default"](r)?Object.keys(r).reduce(function(i,u){return i[u]=s(e,t[u],n[u],r[u],o,a),i},{}):f["default"](g["default"],n)}function u(e,t,n,r){if("number"==typeof r){var o=y["default"].noWobble,a=o[0],i=o[1];return d["default"](e,t,n,r,a,i)[1]}return s(e,t,n,r)}n.__esModule=!0,n.interpolateValue=o,n.updateCurrValue=i,n.updateCurrVelocity=u;var c=e("lodash.isplainobject"),l=r(c),p=e("./mapTree"),f=r(p),h=e("./stepper"),d=r(h),v=e("./zero"),g=r(v),m=e("./presets"),y=r(m)},{"./mapTree":61,"./presets":64,"./stepper":67,"./zero":69,"lodash.isplainobject":70}],69:[function(e,t,n){"use strict";function r(){return 0}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],70:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){return i(e,t,u)}function a(e){var t;if(!r(e)||f.call(e)!=c||s(e)||!p.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return o(e,function(e,t){n=t}),void 0===n||p.call(e,n)}var i=e("lodash._basefor"),s=e("lodash.isarguments"),u=e("lodash.keysin"),c="[object Object]",l=Object.prototype,p=l.hasOwnProperty,f=l.toString;t.exports=a},{"lodash._basefor":71,"lodash.isarguments":72,"lodash.keysin":73}],71:[function(e,t,n){function r(e){return function(t,n,r){for(var a=o(t),i=r(t),s=i.length,u=e?s:-1;e?u--:++u<s;){var c=i[u];if(n(a[c],c,a)===!1)break}return t}}function o(e){return a(e)?e:Object(e)}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var i=r();t.exports=i},{}],72:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e){return function(t){return null==t?void 0:t[e]}}function a(e){return null!=e&&i(f(e))}function i(e){return"number"==typeof e&&e>-1&&e%1==0&&p>=e}function s(e){return r(e)&&a(e)&&c.call(e,"callee")&&!l.call(e,"callee")}var u=Object.prototype,c=u.hasOwnProperty,l=u.propertyIsEnumerable,p=9007199254740991,f=o("length");t.exports=s},{}],73:[function(e,t,n){function r(e,t){return e="number"==typeof e||c.test(e)?+e:-1,t=null==t?f:t,e>-1&&e%1==0&&t>e}function o(e){return"number"==typeof e&&e>-1&&e%1==0&&f>=e}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){if(null==e)return[];a(e)||(e=Object(e));var t=e.length;t=t&&o(t)&&(u(e)||s(e))&&t||0;for(var n=e.constructor,i=-1,c="function"==typeof n&&n.prototype===e,l=Array(t),f=t>0;++i<t;)l[i]=i+"";for(var h in e)f&&r(h,t)||"constructor"==h&&(c||!p.call(e,h))||l.push(h);return l}var s=e("lodash.isarguments"),u=e("lodash.isarray"),c=/^\d+$/,l=Object.prototype,p=l.hasOwnProperty,f=9007199254740991;t.exports=i},{"lodash.isarguments":72,"lodash.isarray":74}],74:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}function o(e,t){var n=null==e?void 0:e[t];return u(n)?n:void 0}function a(e){return"number"==typeof e&&e>-1&&e%1==0&&y>=e}function i(e){return s(e)&&v.call(e)==l}function s(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function u(e){return null==e?!1:i(e)?g.test(h.call(e)):r(e)&&p.test(e)}var c="[object Array]",l="[object Function]",p=/^\[object .+?Constructor\]$/,f=Object.prototype,h=Function.prototype.toString,d=f.hasOwnProperty,v=f.toString,g=RegExp("^"+h.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=o(Array,"isArray"),y=9007199254740991,E=m||function(e){return r(e)&&a(e.length)&&v.call(e)==c};t.exports=E},{}],75:[function(e,t,n){arguments[4][46][0].apply(n,arguments)},{_process:6,dup:46}],76:[function(e,t,n){arguments[4][45][0].apply(n,arguments)},{dup:45,"performance-now":75}],77:[function(e,t,n){"use strict";var r=e("./focusNode"),o={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};t.exports=o},{"./focusNode":195}],78:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case M.topCompositionStart:return I.compositionStart;case M.topCompositionEnd:return I.compositionEnd;case M.topCompositionUpdate:return I.compositionUpdate}}function i(e,t){return e===M.topKeyDown&&t.keyCode===_}function s(e,t){switch(e){case M.topKeyUp:return-1!==b.indexOf(t.keyCode);case M.topKeyDown:return t.keyCode!==_;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(R?o=a(e):P?s(e,r)&&(o=I.compositionEnd):i(e,r)&&(o=I.compositionStart),!o)return null;x&&(P||o!==I.compositionStart?o===I.compositionEnd&&P&&(c=P.getData()):P=g.getPooled(t));var l=m.getPooled(o,n,r);if(c)l.data=c;else{var p=u(r);null!==p&&(l.data=p)}return d.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case M.topCompositionEnd:return u(t);case M.topKeyPress:var n=t.which;return n!==T?null:(A=!0,O);case M.topTextInput:var r=t.data;return r===O&&A?null:r;default:return null}}function p(e,t){if(P){if(e===M.topCompositionEnd||s(e,t)){var n=P.getData();return g.release(P),P=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return x?null:t.data;default:return null}}function f(e,t,n,r){var o;if(o=C?l(e,r):p(e,r),!o)return null;var a=y.getPooled(I.beforeInput,n,r);return a.data=o,d.accumulateTwoPhaseDispatches(a),a}var h=e("./EventConstants"),d=e("./EventPropagators"),v=e("./ExecutionEnvironment"),g=e("./FallbackCompositionState"),m=e("./SyntheticCompositionEvent"),y=e("./SyntheticInputEvent"),E=e("./keyOf"),b=[9,13,27,32],_=229,R=v.canUseDOM&&"CompositionEvent"in window,w=null;v.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var C=v.canUseDOM&&"TextEvent"in window&&!w&&!r(),x=v.canUseDOM&&(!R||w&&w>8&&11>=w),T=32,O=String.fromCharCode(T),M=h.topLevelTypes,I={beforeInput:{phasedRegistrationNames:{bubbled:E({onBeforeInput:null}),captured:E({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:E({onCompositionEnd:null}),captured:E({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:E({onCompositionStart:null}),captured:E({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:E({onCompositionUpdate:null}),captured:E({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},A=!1,P=null,D={eventTypes:I,extractEvents:function(e,t,n,r){return[c(e,t,n,r),f(e,t,n,r)]}};t.exports=D},{"./EventConstants":90,"./EventPropagators":95,"./ExecutionEnvironment":96,"./FallbackCompositionState":97,"./SyntheticCompositionEvent":169,"./SyntheticInputEvent":173,"./keyOf":217}],79:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1);
}var o={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},a=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){a.forEach(function(t){o[r(t,e)]=o[e]})});var i={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:i};t.exports=s},{}],80:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("./ExecutionEnvironment"),a=(e("./camelizeStyleName"),e("./dangerousStyleValue")),i=e("./hyphenateStyleName"),s=e("./memoizeStringOnly"),u=(e("./warning"),s(function(e){return i(e)})),c="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(c="styleFloat");var l={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=u(n)+":",t+=a(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var i=a(o,t[o]);if("float"===o&&(o=c),i)n[o]=i;else{var s=r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};t.exports=l},{"./CSSProperty":79,"./ExecutionEnvironment":96,"./camelizeStyleName":184,"./dangerousStyleValue":189,"./hyphenateStyleName":209,"./memoizeStringOnly":219,"./warning":230}],81:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e("./PooledClass"),a=e("./Object.assign"),i=e("./invariant");a(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){i(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":102,"./PooledClass":103,"./invariant":211}],82:[function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=w.getPooled(M.change,A,e);b.accumulateTwoPhaseDispatches(t),R.batchedUpdates(a,t)}function a(e){E.enqueueEvents(e),E.processEventQueue()}function i(e,t){I=e,A=t,I.attachEvent("onchange",o)}function s(){I&&(I.detachEvent("onchange",o),I=null,A=null)}function u(e,t,n){return e===O.topChange?n:void 0}function c(e,t,n){e===O.topFocus?(s(),i(t,n)):e===O.topBlur&&s()}function l(e,t){I=e,A=t,P=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(I,"value",U),I.attachEvent("onpropertychange",f)}function p(){I&&(delete I.value,I.detachEvent("onpropertychange",f),I=null,A=null,P=null,D=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==P&&(P=t,o(e))}}function h(e,t,n){return e===O.topInput?n:void 0}function d(e,t,n){e===O.topFocus?(p(),l(t,n)):e===O.topBlur&&p()}function v(e,t,n){return e!==O.topSelectionChange&&e!==O.topKeyUp&&e!==O.topKeyDown||!I||I.value===P?void 0:(P=I.value,A)}function g(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function m(e,t,n){return e===O.topClick?n:void 0}var y=e("./EventConstants"),E=e("./EventPluginHub"),b=e("./EventPropagators"),_=e("./ExecutionEnvironment"),R=e("./ReactUpdates"),w=e("./SyntheticEvent"),C=e("./isEventSupported"),x=e("./isTextInputElement"),T=e("./keyOf"),O=y.topLevelTypes,M={change:{phasedRegistrationNames:{bubbled:T({onChange:null}),captured:T({onChangeCapture:null})},dependencies:[O.topBlur,O.topChange,O.topClick,O.topFocus,O.topInput,O.topKeyDown,O.topKeyUp,O.topSelectionChange]}},I=null,A=null,P=null,D=null,S=!1;_.canUseDOM&&(S=C("change")&&(!("documentMode"in document)||document.documentMode>8));var N=!1;_.canUseDOM&&(N=C("input")&&(!("documentMode"in document)||document.documentMode>9));var U={get:function(){return D.get.call(this)},set:function(e){P=""+e,D.set.call(this,e)}},L={eventTypes:M,extractEvents:function(e,t,n,o){var a,i;if(r(t)?S?a=u:i=c:x(t)?N?a=h:(a=v,i=d):g(t)&&(a=m),a){var s=a(e,t,n);if(s){var l=w.getPooled(M.change,s,o);return b.accumulateTwoPhaseDispatches(l),l}}i&&i(e,t,n)}};t.exports=L},{"./EventConstants":90,"./EventPluginHub":92,"./EventPropagators":95,"./ExecutionEnvironment":96,"./ReactUpdates":163,"./SyntheticEvent":171,"./isEventSupported":212,"./isTextInputElement":214,"./keyOf":217}],83:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],84:[function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=e("./Danger"),a=e("./ReactMultiChildUpdateTypes"),i=e("./setTextContent"),s=e("./invariant"),u={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,t){for(var n,u=null,c=null,l=0;l<e.length;l++)if(n=e[l],n.type===a.MOVE_EXISTING||n.type===a.REMOVE_NODE){var p=n.fromIndex,f=n.parentNode.childNodes[p],h=n.parentID;s(f),u=u||{},u[h]=u[h]||[],u[h][p]=f,c=c||[],c.push(f)}var d=o.dangerouslyRenderMarkup(t);if(c)for(var v=0;v<c.length;v++)c[v].parentNode.removeChild(c[v]);for(var g=0;g<e.length;g++)switch(n=e[g],n.type){case a.INSERT_MARKUP:r(n.parentNode,d[n.markupIndex],n.toIndex);break;case a.MOVE_EXISTING:r(n.parentNode,u[n.parentID][n.fromIndex],n.toIndex);break;case a.TEXT_CONTENT:i(n.parentNode,n.textContent);break;case a.REMOVE_NODE:}}};t.exports=u},{"./Danger":87,"./ReactMultiChildUpdateTypes":148,"./invariant":211,"./setTextContent":225}],85:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e("./invariant"),a={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=e.Properties||{},n=e.DOMAttributeNames||{},i=e.DOMPropertyNames||{},u=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var c in t){o(!s.isStandardName.hasOwnProperty(c)),s.isStandardName[c]=!0;var l=c.toLowerCase();if(s.getPossibleStandardName[l]=c,n.hasOwnProperty(c)){var p=n[c];s.getPossibleStandardName[p]=c,s.getAttributeName[c]=p}else s.getAttributeName[c]=l;s.getPropertyName[c]=i.hasOwnProperty(c)?i[c]:c,u.hasOwnProperty(c)?s.getMutationMethod[c]=u[c]:s.getMutationMethod[c]=null;var f=t[c];s.mustUseAttribute[c]=r(f,a.MUST_USE_ATTRIBUTE),s.mustUseProperty[c]=r(f,a.MUST_USE_PROPERTY),s.hasSideEffects[c]=r(f,a.HAS_SIDE_EFFECTS),s.hasBooleanValue[c]=r(f,a.HAS_BOOLEAN_VALUE),s.hasNumericValue[c]=r(f,a.HAS_NUMERIC_VALUE),s.hasPositiveNumericValue[c]=r(f,a.HAS_POSITIVE_NUMERIC_VALUE),s.hasOverloadedBooleanValue[c]=r(f,a.HAS_OVERLOADED_BOOLEAN_VALUE),o(!s.mustUseAttribute[c]||!s.mustUseProperty[c]),o(s.mustUseProperty[c]||!s.hasSideEffects[c]),o(!!s.hasBooleanValue[c]+!!s.hasNumericValue[c]+!!s.hasOverloadedBooleanValue[c]<=1)}}},i={},s={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=i[e];return r||(i[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:a};t.exports=s},{"./invariant":211}],86:[function(e,t,n){"use strict";function r(e,t){return null==t||o.hasBooleanValue[e]&&!t||o.hasNumericValue[e]&&isNaN(t)||o.hasPositiveNumericValue[e]&&1>t||o.hasOverloadedBooleanValue[e]&&t===!1}var o=e("./DOMProperty"),a=e("./quoteAttributeValueForBrowser"),i=(e("./warning"),{createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+a(e)},createMarkupForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,t))return"";var n=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&t===!0?n:n+"="+a(t)}return o.isCustomAttribute(e)?null==t?"":e+"="+a(t):null},setValueForProperty:function(e,t,n){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var a=o.getMutationMethod[t];if(a)a(e,n);else if(r(t,n))this.deleteValueForProperty(e,t);else if(o.mustUseAttribute[t])e.setAttribute(o.getAttributeName[t],""+n);else{var i=o.getPropertyName[t];o.hasSideEffects[t]&&""+e[i]==""+n||(e[i]=n)}}else o.isCustomAttribute(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var n=o.getMutationMethod[t];if(n)n(e,void 0);else if(o.mustUseAttribute[t])e.removeAttribute(o.getAttributeName[t]);else{var r=o.getPropertyName[t],a=o.getDefaultValueForProperty(e.nodeName,r);o.hasSideEffects[t]&&""+e[r]===a||(e[r]=a)}}else o.isCustomAttribute(t)&&e.removeAttribute(t)}});t.exports=i},{"./DOMProperty":85,"./quoteAttributeValueForBrowser":223,"./warning":230}],87:[function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=e("./ExecutionEnvironment"),a=e("./createNodesFromMarkup"),i=e("./emptyFunction"),s=e("./getMarkupWrap"),u=e("./invariant"),c=/^(<[^ \/>]+)/,l="data-danger-index",p={dangerouslyRenderMarkup:function(e){u(o.canUseDOM);for(var t,n={},p=0;p<e.length;p++)u(e[p]),t=r(e[p]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][p]=e[p];var f=[],h=0;for(t in n)if(n.hasOwnProperty(t)){var d,v=n[t];for(d in v)if(v.hasOwnProperty(d)){var g=v[d];v[d]=g.replace(c,"$1 "+l+'="'+d+'" ')}for(var m=a(v.join(""),i),y=0;y<m.length;++y){var E=m[y];E.hasAttribute&&E.hasAttribute(l)&&(d=+E.getAttribute(l),E.removeAttribute(l),u(!f.hasOwnProperty(d)),f[d]=E,h+=1)}}return u(h===f.length),u(f.length===e.length),f},dangerouslyReplaceNodeWithMarkup:function(e,t){u(o.canUseDOM),u(t),u("html"!==e.tagName.toLowerCase());var n=a(t,i)[0];e.parentNode.replaceChild(n,e)}};t.exports=p},{"./ExecutionEnvironment":96,"./createNodesFromMarkup":188,"./emptyFunction":190,"./getMarkupWrap":203,"./invariant":211}],88:[function(e,t,n){"use strict";var r=e("./keyOf"),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null}),r({AnalyticsEventPlugin:null}),r({MobileSafariClickEventPlugin:null})];t.exports=o},{"./keyOf":217}],89:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPropagators"),a=e("./SyntheticMouseEvent"),i=e("./ReactMount"),s=e("./keyOf"),u=r.topLevelTypes,c=i.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],f={eventTypes:l,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var s;if(t.window===t)s=t;else{var f=t.ownerDocument;s=f?f.defaultView||f.parentWindow:window}var h,d;if(e===u.topMouseOut?(h=t,d=c(r.relatedTarget||r.toElement)||s):(h=s,d=t),h===d)return null;var v=h?i.getID(h):"",g=d?i.getID(d):"",m=a.getPooled(l.mouseLeave,v,r);m.type="mouseleave",m.target=h,m.relatedTarget=d;var y=a.getPooled(l.mouseEnter,g,r);return y.type="mouseenter",y.target=d,y.relatedTarget=h,o.accumulateEnterLeaveDispatches(m,y,v,g),p[0]=m,p[1]=y,p}};t.exports=f},{"./EventConstants":90,"./EventPropagators":95,"./ReactMount":146,"./SyntheticMouseEvent":175,"./keyOf":217}],90:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({bubbled:null,captured:null}),a=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),i={topLevelTypes:a,PropagationPhases:o};t.exports=i},{"./keyMirror":216}],91:[function(e,t,n){var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":190}],92:[function(e,t,n){"use strict";var r=e("./EventPluginRegistry"),o=e("./EventPluginUtils"),a=e("./accumulateInto"),i=e("./forEachAccumulated"),s=e("./invariant"),u={},c=null,l=function(e){if(e){var t=o.executeDispatch,n=r.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},p=null,f={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){p=e},getInstanceHandle:function(){return p},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){s(!n||"function"==typeof n);var r=u[t]||(u[t]={});r[e]=n},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=u[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in u)delete u[t][e]},extractEvents:function(e,t,n,o){for(var i,s=r.plugins,u=0,c=s.length;c>u;u++){var l=s[u];if(l){var p=l.extractEvents(e,t,n,o);p&&(i=a(i,p))}}return i},enqueueEvents:function(e){e&&(c=a(c,e))},processEventQueue:function(){var e=c;c=null,i(e,l),s(!c)},__purge:function(){u={}},__getListenerBank:function(){return u}};t.exports=f},{"./EventPluginRegistry":93,"./EventPluginUtils":94,"./accumulateInto":181,"./forEachAccumulated":196,"./invariant":211}],93:[function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(i(n>-1),!c.plugins[n]){i(t.extractEvents),c.plugins[n]=t;var r=t.eventTypes;for(var a in r)i(o(r[a],t,a))}}}function o(e,t,n){i(!c.eventNameDispatchConfigs.hasOwnProperty(n)),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a(s,t,n)}return!0}return e.registrationName?(a(e.registrationName,t,n),!0):!1}function a(e,t,n){i(!c.registrationNameModules[e]),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=e("./invariant"),s=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){i(!s),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(i(!u[n]),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},{"./invariant":211}],94:[function(e,t,n){"use strict";function r(e){return e===g.topMouseUp||e===g.topTouchEnd||e===g.topTouchCancel}function o(e){return e===g.topMouseMove||e===g.topTouchMove}function a(e){return e===g.topMouseDown||e===g.topTouchStart}function i(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)t(e,n[o],r[o]);else n&&t(e,n,r)}function s(e,t,n){e.currentTarget=v.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function u(e,t){i(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function c(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function l(e){var t=c(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){var t=e._dispatchListeners,n=e._dispatchIDs;d(!Array.isArray(t));var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function f(e){return!!e._dispatchListeners}var h=e("./EventConstants"),d=e("./invariant"),v={Mount:null,injectMount:function(e){v.Mount=e}},g=h.topLevelTypes,m={isEndish:r,isMoveish:o,isStartish:a,executeDirectDispatch:p,executeDispatch:s,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:l,hasDispatches:f,injection:v,useTouchEvents:!1};t.exports=m},{"./EventConstants":90,"./invariant":211}],95:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return g(e,r)}function o(e,t,n){var o=t?v.bubbled:v.captured,a=r(e,n,o);a&&(n._dispatchListeners=h(n._dispatchListeners,a),n._dispatchIDs=h(n._dispatchIDs,e))}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&f.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function i(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=g(e,r);o&&(n._dispatchListeners=h(n._dispatchListeners,o),n._dispatchIDs=h(n._dispatchIDs,e))}}function s(e){e&&e.dispatchConfig.registrationName&&i(e.dispatchMarker,null,e)}function u(e){d(e,a)}function c(e,t,n,r){f.injection.getInstanceHandle().traverseEnterLeave(n,r,i,e,t)}function l(e){d(e,s)}var p=e("./EventConstants"),f=e("./EventPluginHub"),h=e("./accumulateInto"),d=e("./forEachAccumulated"),v=p.PropagationPhases,g=f.getListener,m={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:c};t.exports=m},{"./EventConstants":90,"./EventPluginHub":92,"./accumulateInto":181,"./forEachAccumulated":196}],96:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],97:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e("./PooledClass"),a=e("./Object.assign"),i=e("./getTextContentAccessor");a(r.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),a=o.length;for(e=0;r>e&&n[e]===o[e];e++);var i=r-e;for(t=1;i>=t&&n[r-t]===o[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":102,"./PooledClass":103,"./getTextContentAccessor":206}],98:[function(e,t,n){"use strict";var r,o=e("./DOMProperty"),a=e("./ExecutionEnvironment"),i=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,f=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var h=document.implementation;r=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|u,allowTransparency:i,alt:null,async:u,autoComplete:null,autoPlay:u,cellPadding:null,cellSpacing:null,charSet:i,checked:s|u,classID:i,className:r?i:s,cols:i|p,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:i,defer:u,dir:null,disabled:i|u,download:f,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:u,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:i,loop:s|u,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,multiple:s|u,muted:s|u,name:null,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,role:i,rows:i|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:i|u,selected:s|u,shape:null,size:i|p,sizes:i,span:p,spellCheck:null,src:null,srcDoc:s,srcSet:i,start:l,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:i,wmode:i,autoCapitalize:null,autoCorrect:null,itemProp:i,itemScope:i|u,itemType:i,itemID:i,itemRef:i,property:null,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=d},{"./DOMProperty":85,"./ExecutionEnvironment":96}],99:[function(e,t,n){"use strict";function r(e){c(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),c(null==e.props.value&&null==e.props.onChange)}function a(e){r(e),c(null==e.props.checked&&null==e.props.onChange)}function i(e){this.props.valueLink.requestChange(e.target.value)}function s(e){this.props.checkedLink.requestChange(e.target.checked)}var u=e("./ReactPropTypes"),c=e("./invariant"),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(a(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),i):e.props.checkedLink?(a(e),s):e.props.onChange}};t.exports=p},{"./ReactPropTypes":154,"./invariant":211}],100:[function(e,t,n){"use strict";function r(e){e.remove()}var o=e("./ReactBrowserEventEmitter"),a=e("./accumulateInto"),i=e("./forEachAccumulated"),s=e("./invariant"),u={trapBubbledEvent:function(e,t){s(this.isMounted());var n=this.getDOMNode();s(n);var r=o.trapBubbledEvent(e,t,n);this._localEventListeners=a(this._localEventListeners,r)},componentWillUnmount:function(){this._localEventListeners&&i(this._localEventListeners,r)}};t.exports=u},{"./ReactBrowserEventEmitter":106,"./accumulateInto":181,"./forEachAccumulated":196,"./invariant":211}],101:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./emptyFunction"),a=r.topLevelTypes,i={eventTypes:null,extractEvents:function(e,t,n,r){if(e===a.topTouchStart){var i=r.target;i&&!i.onclick&&(i.onclick=o)}}};t.exports=i},{"./EventConstants":90,"./emptyFunction":190}],102:[function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var a=arguments[o];if(null!=a){var i=Object(a);for(var s in i)r.call(i,s)&&(n[s]=i[s])}}return n}t.exports=r},{}],103:[function(e,t,n){"use strict";var r=e("./invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r,o){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r,o),i}return new a(e,t,n,r,o)},u=function(e){var t=this;r(e instanceof t),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,l=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:a,threeArgumentPooler:i,fiveArgumentPooler:s};t.exports=f},{"./invariant":211}],104:[function(e,t,n){"use strict";var r=e("./EventPluginUtils"),o=e("./ReactChildren"),a=e("./ReactComponent"),i=e("./ReactClass"),s=e("./ReactContext"),u=e("./ReactCurrentOwner"),c=e("./ReactElement"),l=(e("./ReactElementValidator"),e("./ReactDOM")),p=e("./ReactDOMTextComponent"),f=e("./ReactDefaultInjection"),h=e("./ReactInstanceHandles"),d=e("./ReactMount"),v=e("./ReactPerf"),g=e("./ReactPropTypes"),m=e("./ReactReconciler"),y=e("./ReactServerRendering"),E=e("./Object.assign"),b=e("./findDOMNode"),_=e("./onlyChild");f.inject();var R=c.createElement,w=c.createFactory,C=c.cloneElement,x=v.measure("React","render",d.render),T={Children:{map:o.map,forEach:o.forEach,count:o.count,only:_},Component:a,DOM:l,PropTypes:g,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:i.createClass,createElement:R,cloneElement:C,createFactory:w,createMixin:function(e){return e},constructAndRenderComponent:d.constructAndRenderComponent,constructAndRenderComponentByID:d.constructAndRenderComponentByID,findDOMNode:b,render:x,renderToString:y.renderToString,renderToStaticMarkup:y.renderToStaticMarkup,unmountComponentAtNode:d.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:s.withContext,__spread:E};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:h,Mount:d,Reconciler:m,TextComponent:p});T.version="0.13.3",t.exports=T},{"./EventPluginUtils":94,"./ExecutionEnvironment":96,"./Object.assign":102,"./ReactChildren":108,"./ReactClass":109,"./ReactComponent":110,"./ReactContext":114,"./ReactCurrentOwner":115,"./ReactDOM":116,"./ReactDOMTextComponent":127,"./ReactDefaultInjection":130,"./ReactElement":133,"./ReactElementValidator":134,"./ReactInstanceHandles":142,"./ReactMount":146,"./ReactPerf":151,"./ReactPropTypes":154,"./ReactReconciler":157,"./ReactServerRendering":160,"./findDOMNode":193,"./onlyChild":220}],105:[function(e,t,n){"use strict";var r=e("./findDOMNode"),o={getDOMNode:function(){return r(this)}};t.exports=o},{"./findDOMNode":193}],106:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=h++,p[e[v]]={}),p[e[v]]}var o=e("./EventConstants"),a=e("./EventPluginHub"),i=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),u=e("./ViewportMetrics"),c=e("./Object.assign"),l=e("./isEventSupported"),p={},f=!1,h=0,d={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),g=c({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),s=i.registrationNameDependencies[e],u=o.topLevelTypes,c=0,p=s.length;p>c;c++){var f=s[c];a.hasOwnProperty(f)&&a[f]||(f===u.topWheel?l("wheel")?g.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):l("mousewheel")?g.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):g.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):f===u.topScroll?l("scroll",!0)?g.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):g.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",g.ReactEventListener.WINDOW_HANDLE):f===u.topFocus||f===u.topBlur?(l("focus",!0)?(g.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),g.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):l("focusin")&&(g.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),g.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),a[u.topBlur]=!0,a[u.topFocus]=!0):d.hasOwnProperty(f)&&g.ReactEventListener.trapBubbledEvent(f,d[f],n),a[f]=!0)}},trapBubbledEvent:function(e,t,n){return g.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return g.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!f){var e=u.refreshScrollValues;g.ReactEventListener.monitorScrollValue(e),f=!0}},eventNameDispatchConfigs:a.eventNameDispatchConfigs,registrationNameModules:a.registrationNameModules,putListener:a.putListener,getListener:a.getListener,deleteListener:a.deleteListener,deleteAllListeners:a.deleteAllListeners});t.exports=g},{"./EventConstants":90,"./EventPluginHub":92,"./EventPluginRegistry":93,"./Object.assign":102,"./ReactEventEmitterMixin":137,"./ViewportMetrics":180,"./isEventSupported":212}],107:[function(e,t,n){"use strict";var r=e("./ReactReconciler"),o=e("./flattenChildren"),a=e("./instantiateReactComponent"),i=e("./shouldUpdateReactComponent"),s={instantiateChildren:function(e,t,n){var r=o(e);for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],u=a(s,null);r[i]=u}return r},updateChildren:function(e,t,n,s){var u=o(t);if(!u&&!e)return null;var c;for(c in u)if(u.hasOwnProperty(c)){var l=e&&e[c],p=l&&l._currentElement,f=u[c];
if(i(p,f))r.receiveComponent(l,f,n,s),u[c]=l;else{l&&r.unmountComponent(l,c);var h=a(f,null);u[c]=h}}for(c in e)!e.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||r.unmountComponent(e[c]);return u},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};t.exports=s},{"./ReactReconciler":157,"./flattenChildren":194,"./instantiateReactComponent":210,"./shouldUpdateReactComponent":227}],108:[function(e,t,n){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function a(e,t,n){if(null==e)return e;var a=r.getPooled(t,n);h(e,o,a),r.release(a)}function i(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,t,n,r){var o=e,a=o.mapResult,i=!a.hasOwnProperty(n);if(i){var s=o.mapFunction.call(o.mapContext,t,r);a[n]=s}}function u(e,t,n){if(null==e)return e;var r={},o=i.getPooled(r,t,n);return h(e,s,o),i.release(o),f.create(r)}function c(e,t,n,r){return null}function l(e,t){return h(e,c,null)}var p=e("./PooledClass"),f=e("./ReactFragment"),h=e("./traverseAllChildren"),d=(e("./warning"),p.twoArgumentPooler),v=p.threeArgumentPooler;p.addPoolingTo(r,d),p.addPoolingTo(i,v);var g={forEach:a,map:u,count:l};t.exports=g},{"./PooledClass":103,"./ReactFragment":139,"./traverseAllChildren":229,"./warning":230}],109:[function(e,t,n){"use strict";function r(e,t){var n=C.hasOwnProperty(t)?C[t]:null;T.hasOwnProperty(t)&&y(n===R.OVERRIDE_BASE),e.hasOwnProperty(t)&&y(n===R.DEFINE_MANY||n===R.DEFINE_MANY_MERGED)}function o(e,t){if(t){y("function"!=typeof t),y(!f.isValidElement(t));var n=e.prototype;t.hasOwnProperty(_)&&x.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==_){var a=t[o];if(r(n,o),x.hasOwnProperty(o))x[o](e,a);else{var i=C.hasOwnProperty(o),c=n.hasOwnProperty(o),l=a&&a.__reactDontBind,p="function"==typeof a,h=p&&!i&&!c&&!l;if(h)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=a,n[o]=a;else if(c){var d=C[o];y(i&&(d===R.DEFINE_MANY_MERGED||d===R.DEFINE_MANY)),d===R.DEFINE_MANY_MERGED?n[o]=s(n[o],a):d===R.DEFINE_MANY&&(n[o]=u(n[o],a))}else n[o]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in x;y(!o);var a=n in e;y(!a),e[n]=r}}}function i(e,t){y(e&&t&&"object"==typeof e&&"object"==typeof t);for(var n in t)t.hasOwnProperty(n)&&(y(void 0===e[n]),e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return i(o,n),i(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function l(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=c(e,h.guard(n,e.constructor.displayName+"."+t))}}var p=e("./ReactComponent"),f=(e("./ReactCurrentOwner"),e("./ReactElement")),h=e("./ReactErrorUtils"),d=e("./ReactInstanceMap"),v=e("./ReactLifeCycle"),g=(e("./ReactPropTypeLocations"),e("./ReactPropTypeLocationNames"),e("./ReactUpdateQueue")),m=e("./Object.assign"),y=e("./invariant"),E=e("./keyMirror"),b=e("./keyOf"),_=(e("./warning"),b({mixins:null})),R=E({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],C={mixins:R.DEFINE_MANY,statics:R.DEFINE_MANY,propTypes:R.DEFINE_MANY,contextTypes:R.DEFINE_MANY,childContextTypes:R.DEFINE_MANY,getDefaultProps:R.DEFINE_MANY_MERGED,getInitialState:R.DEFINE_MANY_MERGED,getChildContext:R.DEFINE_MANY_MERGED,render:R.DEFINE_ONCE,componentWillMount:R.DEFINE_MANY,componentDidMount:R.DEFINE_MANY,componentWillReceiveProps:R.DEFINE_MANY,shouldComponentUpdate:R.DEFINE_ONCE,componentWillUpdate:R.DEFINE_MANY,componentDidUpdate:R.DEFINE_MANY,componentWillUnmount:R.DEFINE_MANY,updateComponent:R.OVERRIDE_BASE},x={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=m({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=m({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=m({},e.propTypes,t)},statics:function(e,t){a(e,t)}},T={replaceState:function(e,t){g.enqueueReplaceState(this,e),t&&g.enqueueCallback(this,t)},isMounted:function(){var e=d.get(this);return e&&e!==v.currentlyMountingInstance},setProps:function(e,t){g.enqueueSetProps(this,e),t&&g.enqueueCallback(this,t)},replaceProps:function(e,t){g.enqueueReplaceProps(this,e),t&&g.enqueueCallback(this,t)}},O=function(){};m(O.prototype,p.prototype,T);var M={createClass:function(e){var t=function(e,t){this.__reactAutoBindMap&&l(this),this.props=e,this.context=t,this.state=null;var n=this.getInitialState?this.getInitialState():null;y("object"==typeof n&&!Array.isArray(n)),this.state=n};t.prototype=new O,t.prototype.constructor=t,w.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),y(t.prototype.render);for(var n in C)t.prototype[n]||(t.prototype[n]=null);return t.type=t,t},injection:{injectMixin:function(e){w.push(e)}}};t.exports=M},{"./Object.assign":102,"./ReactComponent":110,"./ReactCurrentOwner":115,"./ReactElement":133,"./ReactErrorUtils":136,"./ReactInstanceMap":143,"./ReactLifeCycle":144,"./ReactPropTypeLocationNames":152,"./ReactPropTypeLocations":153,"./ReactUpdateQueue":162,"./invariant":211,"./keyMirror":216,"./keyOf":217,"./warning":230}],110:[function(e,t,n){"use strict";function r(e,t){this.props=e,this.context=t}var o=e("./ReactUpdateQueue"),a=e("./invariant");e("./warning");r.prototype.setState=function(e,t){a("object"==typeof e||"function"==typeof e||null==e),o.enqueueSetState(this,e),t&&o.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){o.enqueueForceUpdate(this),e&&o.enqueueCallback(this,e)};t.exports=r},{"./ReactUpdateQueue":162,"./invariant":211,"./warning":230}],111:[function(e,t,n){"use strict";var r=e("./ReactDOMIDOperations"),o=e("./ReactMount"),a={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};t.exports=a},{"./ReactDOMIDOperations":120,"./ReactMount":146}],112:[function(e,t,n){"use strict";var r=e("./invariant"),o=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r(!o),a.unmountIDFromEnvironment=e.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=a},{"./invariant":211}],113:[function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var o=e("./ReactComponentEnvironment"),a=e("./ReactContext"),i=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=(e("./ReactElementValidator"),e("./ReactInstanceMap")),c=e("./ReactLifeCycle"),l=e("./ReactNativeComponent"),p=e("./ReactPerf"),f=e("./ReactPropTypeLocations"),h=(e("./ReactPropTypeLocationNames"),e("./ReactReconciler")),d=e("./ReactUpdates"),v=e("./Object.assign"),g=e("./emptyObject"),m=e("./invariant"),y=e("./shouldUpdateReactComponent"),E=(e("./warning"),1),b={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=E++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),a=l.getComponentClassForElement(this._currentElement),i=new a(r,o);i.props=r,i.context=o,i.refs=g,this._instance=i,u.set(i,this);var s=i.state;void 0===s&&(i.state=s=null),m("object"==typeof s&&!Array.isArray(s)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var p,f,d=c.currentlyMountingInstance;c.currentlyMountingInstance=this;try{i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),p=this._getValidatedChildContext(n),f=this._renderValidatedComponent(p)}finally{c.currentlyMountingInstance=d}this._renderedComponent=this._instantiateReactComponent(f,this._currentElement.type);var v=h.mountComponent(this._renderedComponent,e,t,this._mergeChildContext(n,p));return i.componentDidMount&&t.getReactMountReady().enqueue(i.componentDidMount,i),v},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=c.currentlyUnmountingInstance;c.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{c.currentlyUnmountingInstance=t}}h.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,u.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=s.cloneAndReplaceProps(n,v({},n.props,e)),d.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return g;var n=this._currentElement.type.contextTypes;if(!n)return g;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);return t},_getValidatedChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){m("object"==typeof t.constructor.childContextTypes);for(var r in n)m(r in t.constructor.childContextTypes);return n}return null},_mergeChildContext:function(e,t){return t?v({},e,t):e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{m("function"==typeof e[a]),i=e[a](t,a,o,n)}catch(s){i=s}if(i instanceof Error){r(this);n===f.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&h.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var n=Object.keys(t).sort(),r=(this.getName()||"ReactCompositeComponent",0);r<n.length;r++){n[r]}},updateComponent:function(e,t,n,r,o){var a=this._instance,i=a.context,s=a.props;t!==n&&(i=this._processContext(n._context),s=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(s,i));var u=this._processPendingState(s,i),c=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(s,u,i);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,i,e,o)):(this._currentElement=n,this._context=o,a.props=s,a.state=u,a.context=i)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var a=v({},o?r[0]:n.state),i=o?1:0;i<r.length;i++){var s=r[i];v(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,r,o,a){var i=this._instance,s=i.props,u=i.state,c=i.context;i.componentWillUpdate&&i.componentWillUpdate(t,n,r),this._currentElement=e,this._context=a,i.props=t,i.state=n,i.context=r,this._updateRenderedComponent(o,a),i.componentDidUpdate&&o.getReactMountReady().enqueue(i.componentDidUpdate.bind(i,s,u,c),i)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._getValidatedChildContext(),a=this._renderValidatedComponent(o);if(y(r,a))h.receiveComponent(n,a,e,this._mergeChildContext(t,o));else{var i=this._rootNodeID,s=n._rootNodeID;h.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(a,this._currentElement.type);var u=h.mountComponent(this._renderedComponent,i,e,this._mergeChildContext(t,o));this._replaceNodeWithMarkupByID(s,u)}},_replaceNodeWithMarkupByID:function(e,t){o.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(e){var t,n=a.current;a.current=this._mergeChildContext(this._currentElement._context,e),i.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{a.current=n,i.current=null}return m(null===t||t===!1||s.isValidElement(t)),t},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===g?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};p.measureMethods(b,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var _={Mixin:b};t.exports=_},{"./Object.assign":102,"./ReactComponentEnvironment":112,"./ReactContext":114,"./ReactCurrentOwner":115,"./ReactElement":133,"./ReactElementValidator":134,"./ReactInstanceMap":143,"./ReactLifeCycle":144,"./ReactNativeComponent":149,"./ReactPerf":151,"./ReactPropTypeLocationNames":152,"./ReactPropTypeLocations":153,"./ReactReconciler":157,"./ReactUpdates":163,"./emptyObject":191,"./invariant":211,"./shouldUpdateReactComponent":227,"./warning":230}],114:[function(e,t,n){"use strict";var r=e("./Object.assign"),o=e("./emptyObject"),a=(e("./warning"),{current:o,withContext:function(e,t){var n,o=a.current;a.current=r({},o,e);try{n=t()}finally{a.current=o}return n}});t.exports=a},{"./Object.assign":102,"./emptyObject":191,"./warning":230}],115:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],116:[function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=e("./ReactElement"),a=(e("./ReactElementValidator"),e("./mapObject")),i=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=i},{"./ReactElement":133,"./ReactElementValidator":134,"./mapObject":218}],117:[function(e,t,n){"use strict";var r=e("./AutoFocusMixin"),o=e("./ReactBrowserComponentMixin"),a=e("./ReactClass"),i=e("./ReactElement"),s=e("./keyMirror"),u=i.createFactory("button"),c=s({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),l=a.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[r,o],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&c[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});t.exports=l},{"./AutoFocusMixin":77,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133,"./keyMirror":216}],118:[function(e,t,n){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&(m(null==e.children),m("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),m(null==e.style||"object"==typeof e.style))}function o(e,t,n,r){var o=f.findReactContainerForID(e);if(o){var a=o.nodeType===C?o.ownerDocument:o;b(t,a)}r.getPutListenerQueue().enqueuePutListener(e,t,n)}function a(e){I.call(M,e)||(m(O.test(e)),M[e]=!0)}function i(e){a(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var s=e("./CSSPropertyOperations"),u=e("./DOMProperty"),c=e("./DOMPropertyOperations"),l=e("./ReactBrowserEventEmitter"),p=e("./ReactComponentBrowserEnvironment"),f=e("./ReactMount"),h=e("./ReactMultiChild"),d=e("./ReactPerf"),v=e("./Object.assign"),g=e("./escapeTextContentForBrowser"),m=e("./invariant"),y=(e("./isEventSupported"),e("./keyOf")),E=(e("./warning"),l.deleteListener),b=l.listenTo,_=l.registrationNameModules,R={string:!0,number:!0},w=y({style:null}),C=1,x=null,T={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},O=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,M={},I={}.hasOwnProperty;i.displayName="ReactDOMComponent",i.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var o=T[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)if(_.hasOwnProperty(r))o(this._rootNodeID,r,a,e);else{r===w&&(a&&(a=this._previousStyleCopy=v({},t.style)),a=s.createMarkupForStyles(a));var i=c.createMarkupForProperty(r,a);i&&(n+=" "+i)}}if(e.renderToStaticMarkup)return n+">";var u=c.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var a=R[typeof r.children]?r.children:null,i=null!=a?null:r.children;if(null!=a)return n+g(a);if(null!=i){var s=this.mountChildren(i,e,t);return n+s.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,a,i=this._currentElement.props;for(n in e)if(!i.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===w){var s=this._previousStyleCopy;for(r in s)s.hasOwnProperty(r)&&(a=a||{},a[r]="");this._previousStyleCopy=null}else _.hasOwnProperty(n)?E(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&x.deletePropertyByID(this._rootNodeID,n);for(n in i){var c=i[n],l=n===w?this._previousStyleCopy:e[n];if(i.hasOwnProperty(n)&&c!==l)if(n===w)if(c?c=this._previousStyleCopy=v({},c):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(a=a||{},a[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(a=a||{},a[r]=c[r])}else a=c;else _.hasOwnProperty(n)?o(this._rootNodeID,n,c,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&x.updatePropertyByID(this._rootNodeID,n,c)}a&&x.updateStylesByID(this._rootNodeID,a)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=R[typeof e.children]?e.children:null,a=R[typeof r.children]?r.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=a?null:r.children,l=null!=o||null!=i,p=null!=a||null!=s;null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=a?o!==a&&this.updateTextContent(""+a):null!=s?i!==s&&x.updateInnerHTMLByID(this._rootNodeID,s):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),l.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},d.measureMethods(i,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),v(i.prototype,i.Mixin,h.Mixin),i.injection={injectIDOperations:function(e){i.BackendIDOperations=x=e}},t.exports=i},{"./CSSPropertyOperations":80,"./DOMProperty":85,"./DOMPropertyOperations":86,"./Object.assign":102,"./ReactBrowserEventEmitter":106,"./ReactComponentBrowserEnvironment":111,"./ReactMount":146,"./ReactMultiChild":147,"./ReactPerf":151,"./escapeTextContentForBrowser":192,"./invariant":211,"./isEventSupported":212,"./keyOf":217,"./warning":230}],119:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),a=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("form"),c=i.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[a,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});t.exports=c},{"./EventConstants":90,"./LocalEventTrapMixin":100,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133}],120:[function(e,t,n){"use strict";var r=e("./CSSPropertyOperations"),o=e("./DOMChildrenOperations"),a=e("./DOMPropertyOperations"),i=e("./ReactMount"),s=e("./ReactPerf"),u=e("./invariant"),c=e("./setInnerHTML"),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:function(e,t,n){var r=i.getNode(e);u(!l.hasOwnProperty(t)),null!=n?a.setValueForProperty(r,t,n):a.deleteValueForProperty(r,t)},deletePropertyByID:function(e,t,n){var r=i.getNode(e);u(!l.hasOwnProperty(t)),a.deleteValueForProperty(r,t,n)},updateStylesByID:function(e,t){var n=i.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=i.getNode(e);c(n,t)},updateTextContentByID:function(e,t){var n=i.getNode(e);o.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=i.getNode(e[n].parentID);o.processUpdates(e,t)}};s.measureMethods(p,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=p},{"./CSSPropertyOperations":80,"./DOMChildrenOperations":84,"./DOMPropertyOperations":86,"./ReactMount":146,"./ReactPerf":151,"./invariant":211,"./setInnerHTML":224}],121:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),a=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("iframe"),c=i.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[a,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load")}});t.exports=c},{"./EventConstants":90,"./LocalEventTrapMixin":100,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133}],122:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./LocalEventTrapMixin"),a=e("./ReactBrowserComponentMixin"),i=e("./ReactClass"),s=e("./ReactElement"),u=s.createFactory("img"),c=i.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[a,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(r.topLevelTypes.topError,"error")}});t.exports=c},{"./EventConstants":90,"./LocalEventTrapMixin":100,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133}],123:[function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=e("./AutoFocusMixin"),a=e("./DOMPropertyOperations"),i=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),u=e("./ReactClass"),c=e("./ReactElement"),l=e("./ReactMount"),p=e("./ReactUpdates"),f=e("./Object.assign"),h=e("./invariant"),d=c.createFactory("input"),v={},g=u.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[o,i.Mixin,s],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=f({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=i.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=i.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,d(e,this.props.children)},componentDidMount:function(){var e=l.getID(this.getDOMNode());v[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=l.getID(e);delete v[t]},componentDidUpdate:function(e,t,n){var r=this.getDOMNode();null!=this.props.checked&&a.setValueForProperty(r,"checked",this.props.checked||!1);var o=i.getValue(this);null!=o&&a.setValueForProperty(r,"value",""+o)},_handleChange:function(e){var t,n=i.getOnChange(this);n&&(t=n.call(this,e)),p.asap(r,this);var o=this.props.name;if("radio"===this.props.type&&null!=o){for(var a=this.getDOMNode(),s=a;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),c=0,f=u.length;f>c;c++){var d=u[c];if(d!==a&&d.form===a.form){var g=l.getID(d);h(g);var m=v[g];h(m),p.asap(r,m)}}}return t}});t.exports=g},{"./AutoFocusMixin":77,"./DOMPropertyOperations":86,"./LinkedValueUtils":99,"./Object.assign":102,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133,"./ReactMount":146,"./ReactUpdates":163,"./invariant":211}],124:[function(e,t,n){"use strict";var r=e("./ReactBrowserComponentMixin"),o=e("./ReactClass"),a=e("./ReactElement"),i=(e("./warning"),a.createFactory("option")),s=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){},render:function(){return i(this.props,this.props.children)}});t.exports=s},{"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133,"./warning":230}],125:[function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=s.getValue(this);null!=e&&this.isMounted()&&a(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function a(e,t){var n,r,o,a=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=a.length;o>r;r++){var i=n.hasOwnProperty(a[r].value);a[r].selected!==i&&(a[r].selected=i)}}else{for(n=""+t,r=0,o=a.length;o>r;r++)if(a[r].value===n)return void(a[r].selected=!0);a.length&&(a[0].selected=!0)}}var i=e("./AutoFocusMixin"),s=e("./LinkedValueUtils"),u=e("./ReactBrowserComponentMixin"),c=e("./ReactClass"),l=e("./ReactElement"),p=e("./ReactUpdates"),f=e("./Object.assign"),h=l.createFactory("select"),d=c.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[i,s.Mixin,u],propTypes:{defaultValue:o,value:o},render:function(){var e=f({},this.props);return e.onChange=this._handleChange,e.value=null,h(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=s.getValue(this);null!=e?a(this,e):null!=this.props.defaultValue&&a(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=s.getValue(this);null!=t?(this._pendingUpdate=!1,a(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?a(this,this.props.defaultValue):a(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});t.exports=d},{"./AutoFocusMixin":77,"./LinkedValueUtils":99,"./Object.assign":102,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133,"./ReactUpdates":163}],126:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var a=o.text.length,i=a+r;return{start:a,end:i}}function a(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),f=p?0:l.toString().length,h=f+c,d=document.createRange();d.setStart(n,o),d.setEnd(a,i);var v=d.collapsed;return{start:v?h:f,end:v?f:h}}function i(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),a="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=c(e,o),u=c(e,a);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=e("./ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:a,setOffsets:p?i:s};t.exports=f},{"./ExecutionEnvironment":96,"./getNodeForCharacterOffset":204,"./getTextContentAccessor":206}],127:[function(e,t,n){"use strict";var r=e("./DOMPropertyOperations"),o=e("./ReactComponentBrowserEnvironment"),a=e("./ReactDOMComponent"),i=e("./Object.assign"),s=e("./escapeTextContentForBrowser"),u=function(e){};i(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var o=s(this._stringText);return t.renderToStaticMarkup?o:"<span "+r.createMarkupForID(e)+">"+o+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,a.BackendIDOperations.updateTextContentByID(this._rootNodeID,n));
}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=u},{"./DOMPropertyOperations":86,"./Object.assign":102,"./ReactComponentBrowserEnvironment":111,"./ReactDOMComponent":118,"./escapeTextContentForBrowser":192}],128:[function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=e("./AutoFocusMixin"),a=e("./DOMPropertyOperations"),i=e("./LinkedValueUtils"),s=e("./ReactBrowserComponentMixin"),u=e("./ReactClass"),c=e("./ReactElement"),l=e("./ReactUpdates"),p=e("./Object.assign"),f=e("./invariant"),h=(e("./warning"),c.createFactory("textarea")),d=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,i.Mixin,s],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(f(null==e),Array.isArray(t)&&(f(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=i.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=p({},this.props);return f(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,h(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=i.getValue(this);if(null!=r){var o=this.getDOMNode();a.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=i.getOnChange(this);return n&&(t=n.call(this,e)),l.asap(r,this),t}});t.exports=d},{"./AutoFocusMixin":77,"./DOMPropertyOperations":86,"./LinkedValueUtils":99,"./Object.assign":102,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactElement":133,"./ReactUpdates":163,"./invariant":211,"./warning":230}],129:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e("./ReactUpdates"),a=e("./Transaction"),i=e("./Object.assign"),s=e("./emptyFunction"),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},l=[c,u];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var a=f.isBatchingUpdates;f.isBatchingUpdates=!0,a?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};t.exports=f},{"./Object.assign":102,"./ReactUpdates":163,"./Transaction":179,"./emptyFunction":190}],130:[function(e,t,n){"use strict";function r(e){return d.createClass({tagName:e.toUpperCase(),render:function(){return new M(e,null,null,null,null,this.props)}})}function o(){A.EventEmitter.injectReactEventListener(I),A.EventPluginHub.injectEventPluginOrder(u),A.EventPluginHub.injectInstanceHandle(P),A.EventPluginHub.injectMount(D),A.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:L,EnterLeaveEventPlugin:c,ChangeEventPlugin:i,MobileSafariClickEventPlugin:f,SelectEventPlugin:N,BeforeInputEventPlugin:a}),A.NativeComponent.injectGenericComponentClass(m),A.NativeComponent.injectTextComponentClass(O),A.NativeComponent.injectAutoWrapper(r),A.Class.injectMixin(h),A.NativeComponent.injectComponentClasses({button:y,form:E,iframe:R,img:b,input:w,option:C,select:x,textarea:T,html:j("html"),head:j("head"),body:j("body")}),A.DOMProperty.injectDOMPropertyConfig(p),A.DOMProperty.injectDOMPropertyConfig(k),A.EmptyComponent.injectEmptyComponent("noscript"),A.Updates.injectReconcileTransaction(S),A.Updates.injectBatchingStrategy(g),A.RootIndex.injectCreateReactRootIndex(l.canUseDOM?s.createReactRootIndex:U.createReactRootIndex),A.Component.injectEnvironment(v),A.DOMComponent.injectIDOperations(_)}var a=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),s=e("./ClientReactRootIndex"),u=e("./DefaultEventPluginOrder"),c=e("./EnterLeaveEventPlugin"),l=e("./ExecutionEnvironment"),p=e("./HTMLDOMPropertyConfig"),f=e("./MobileSafariClickEventPlugin"),h=e("./ReactBrowserComponentMixin"),d=e("./ReactClass"),v=e("./ReactComponentBrowserEnvironment"),g=e("./ReactDefaultBatchingStrategy"),m=e("./ReactDOMComponent"),y=e("./ReactDOMButton"),E=e("./ReactDOMForm"),b=e("./ReactDOMImg"),_=e("./ReactDOMIDOperations"),R=e("./ReactDOMIframe"),w=e("./ReactDOMInput"),C=e("./ReactDOMOption"),x=e("./ReactDOMSelect"),T=e("./ReactDOMTextarea"),O=e("./ReactDOMTextComponent"),M=e("./ReactElement"),I=e("./ReactEventListener"),A=e("./ReactInjection"),P=e("./ReactInstanceHandles"),D=e("./ReactMount"),S=e("./ReactReconcileTransaction"),N=e("./SelectEventPlugin"),U=e("./ServerReactRootIndex"),L=e("./SimpleEventPlugin"),k=e("./SVGDOMPropertyConfig"),j=e("./createFullPageComponent");t.exports={inject:o}},{"./BeforeInputEventPlugin":78,"./ChangeEventPlugin":82,"./ClientReactRootIndex":83,"./DefaultEventPluginOrder":88,"./EnterLeaveEventPlugin":89,"./ExecutionEnvironment":96,"./HTMLDOMPropertyConfig":98,"./MobileSafariClickEventPlugin":101,"./ReactBrowserComponentMixin":105,"./ReactClass":109,"./ReactComponentBrowserEnvironment":111,"./ReactDOMButton":117,"./ReactDOMComponent":118,"./ReactDOMForm":119,"./ReactDOMIDOperations":120,"./ReactDOMIframe":121,"./ReactDOMImg":122,"./ReactDOMInput":123,"./ReactDOMOption":124,"./ReactDOMSelect":125,"./ReactDOMTextComponent":127,"./ReactDOMTextarea":128,"./ReactDefaultBatchingStrategy":129,"./ReactDefaultPerf":131,"./ReactElement":133,"./ReactEventListener":138,"./ReactInjection":140,"./ReactInstanceHandles":142,"./ReactMount":146,"./ReactReconcileTransaction":156,"./SVGDOMPropertyConfig":164,"./SelectEventPlugin":165,"./ServerReactRootIndex":166,"./SimpleEventPlugin":167,"./createFullPageComponent":187}],131:[function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var a=e("./DOMProperty"),i=e("./ReactDefaultPerfAnalysis"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("./performanceNow"),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=i.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=i.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=i.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=i.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[a.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",i.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=[],a=0,i=arguments.length;i>a;a++)r.push(arguments[a]);var u,p,f;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),f=c(),p=n.apply(this,r),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-f,p;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(f=c(),p=n.apply(this,r),u=c()-f,"_mountImageIntoNode"===t){var h=s.getID(r[1]);l._recordWrite(h,t,u,r[0])}else"dangerouslyProcessChildrenUpdates"===t?r[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=r[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)}):l._recordWrite(r[0],t,u,Array.prototype.slice.call(r,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,r);if("string"==typeof this._currentElement.type)return n.apply(this,r);var d="mountComponent"===t?r[0]:this._rootNodeID,v="_renderValidatedComponent"===t,g="mountComponent"===t,m=l._mountStack,y=l._allMeasurements[l._allMeasurements.length-1];if(v?o(y.counts,d,1):g&&m.push(0),f=c(),p=n.apply(this,r),u=c()-f,v)o(y.render,d,u);else if(g){var E=m.pop();m[m.length-1]+=u,o(y.exclusive,d,u-E),o(y.inclusive,d,u)}else o(y.inclusive,d,u);return y.displayNames[d]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},p}}};t.exports=l},{"./DOMProperty":85,"./ReactDefaultPerfAnalysis":132,"./ReactMount":146,"./ReactPerf":151,"./performanceNow":222}],132:[function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:l[e.type]||e.type,args:e.args})})}return t}function a(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],a=u({},o.exclusive,o.inclusive);for(var i in a)t=o.displayNames[i].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[i]&&(n[t].render+=o.render[i]),o.exclusive[i]&&(n[t].exclusive+=o.exclusive[i]),o.inclusive[i]&&(n[t].inclusive+=o.inclusive[i]),o.counts[i]&&(n[t].count+=o.counts[i])}var s=[];for(t in n)n[t].exclusive>=c&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function i(e,t){for(var n,r={},o=0;o<e.length;o++){var a,i=e[o],l=u({},i.exclusive,i.inclusive);t&&(a=s(i));for(var p in l)if(!t||a[p]){var f=i.displayNames[p];n=f.owner+" > "+f.current,r[n]=r[n]||{componentName:n,time:0,count:0},i.inclusive[p]&&(r[n].time+=i.inclusive[p]),i.counts[p]&&(r[n].count+=i.counts[p])}}var h=[];for(n in r)r[n].time>=c&&h.push(r[n]);return h.sort(function(e,t){return t.time-e.time}),h}function s(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var a=!1,i=0;i<n.length;i++)if(0===n[i].indexOf(o)){a=!0;break}!a&&e.counts[o]>0&&(t[o]=!0)}return t}var u=e("./Object.assign"),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},p={getExclusiveSummary:a,getInclusiveSummary:i,getDOMSummary:o,getTotalTime:r};t.exports=p},{"./Object.assign":102}],133:[function(e,t,n){"use strict";var r=e("./ReactContext"),o=e("./ReactCurrentOwner"),a=e("./Object.assign"),i=(e("./warning"),{key:!0,ref:!0}),s=function(e,t,n,r,o,a){this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=o,this.props=a};s.prototype={_isReactElement:!0},s.createElement=function(e,t,n){var a,u={},c=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,c=void 0===t.key?null:""+t.key;for(a in t)t.hasOwnProperty(a)&&!i.hasOwnProperty(a)&&(u[a]=t[a])}var p=arguments.length-2;if(1===p)u.children=n;else if(p>1){for(var f=Array(p),h=0;p>h;h++)f[h]=arguments[h+2];u.children=f}if(e&&e.defaultProps){var d=e.defaultProps;for(a in d)"undefined"==typeof u[a]&&(u[a]=d[a])}return new s(e,c,l,o.current,r.current,u)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceProps=function(e,t){var n=new s(e.type,e.key,e.ref,e._owner,e._context,t);return n},s.cloneElement=function(e,t,n){var r,u=a({},e.props),c=e.key,l=e.ref,p=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,p=o.current),void 0!==t.key&&(c=""+t.key);for(r in t)t.hasOwnProperty(r)&&!i.hasOwnProperty(r)&&(u[r]=t[r])}var f=arguments.length-2;if(1===f)u.children=n;else if(f>1){for(var h=Array(f),d=0;f>d;d++)h[d]=arguments[d+2];u.children=h}return new s(e.type,c,l,p,e._context,u)},s.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},t.exports=s},{"./Object.assign":102,"./ReactContext":114,"./ReactCurrentOwner":115,"./warning":230}],134:[function(e,t,n){"use strict";function r(){if(y.current){var e=y.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function a(){var e=y.current;return e&&o(e)||void 0}function i(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,u('Each child in an array or iterator should have a unique "key" prop.',e,t))}function s(e,t,n){C.test(e)&&u("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function u(e,t,n){var r=a(),i="string"==typeof n?n:n.displayName||n.name,s=r||i,u=R[e]||(R[e]={});if(!u.hasOwnProperty(s)){u[s]=!0;var c="";if(t&&t._owner&&t._owner!==y.current){var l=o(t._owner);c=" It was passed a child from "+l+"."}}}function c(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];v.isValidElement(r)&&i(r,t)}else if(v.isValidElement(e))e._store.validated=!0;else if(e){var o=b(e);if(o){if(o!==e.entries)for(var a,u=o.call(e);!(a=u.next()).done;)v.isValidElement(a.value)&&i(a.value,t)}else if("object"==typeof e){var c=g.extractIfFragment(e);for(var l in c)c.hasOwnProperty(l)&&s(l,c[l],t)}}}function l(e,t,n,o){for(var a in t)if(t.hasOwnProperty(a)){var i;try{_("function"==typeof t[a]),i=t[a](n,a,e,o)}catch(s){i=s}if(i instanceof Error&&!(i.message in w)){w[i.message]=!0;r(this)}}}function p(e,t){var n=t.type,r="string"==typeof n?n:n.displayName,o=t._owner?t._owner.getPublicInstance().constructor.displayName:null,a=e+"|"+r+"|"+o;if(!x.hasOwnProperty(a)){x[a]=!0;var i="";r&&(i=" <"+r+" />");var s="";o&&(s=" The element was created by "+o+".")}}function f(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function h(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&f(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function d(e){if(null!=e.type){var t=E.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&l(n,t.propTypes,e.props,m.prop),"function"==typeof t.getDefaultProps}}var v=e("./ReactElement"),g=e("./ReactFragment"),m=e("./ReactPropTypeLocations"),y=(e("./ReactPropTypeLocationNames"),e("./ReactCurrentOwner")),E=e("./ReactNativeComponent"),b=e("./getIteratorFn"),_=e("./invariant"),R=(e("./warning"),{}),w={},C=/^\d+$/,x={},T={checkAndWarnForMutatedProps:h,createElement:function(e,t,n){var r=v.createElement.apply(this,arguments);if(null==r)return r;for(var o=2;o<arguments.length;o++)c(arguments[o],e);return d(r),r},createFactory:function(e){var t=T.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=v.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)c(arguments[o],r.type);return d(r),r}};t.exports=T},{"./ReactCurrentOwner":115,"./ReactElement":133,"./ReactFragment":139,"./ReactNativeComponent":149,"./ReactPropTypeLocationNames":152,"./ReactPropTypeLocations":153,"./getIteratorFn":202,"./invariant":211,"./warning":230}],135:[function(e,t,n){"use strict";function r(e){l[e]=!0}function o(e){delete l[e]}function a(e){return!!l[e]}var i,s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./invariant"),l={},p={injectEmptyComponent:function(e){i=s.createFactory(e)}},f=function(){};f.prototype.componentDidMount=function(){var e=u.get(this);e&&r(e._rootNodeID)},f.prototype.componentWillUnmount=function(){var e=u.get(this);e&&o(e._rootNodeID)},f.prototype.render=function(){return c(i),i()};var h=s.createElement(f),d={emptyElement:h,injection:p,isNullComponentID:a};t.exports=d},{"./ReactElement":133,"./ReactInstanceMap":143,"./invariant":211}],136:[function(e,t,n){"use strict";var r={guard:function(e,t){return e}};t.exports=r},{}],137:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=e("./EventPluginHub"),a={handleTopLevel:function(e,t,n,a){var i=o.extractEvents(e,t,n,a);r(i)}};t.exports=a},{"./EventPluginHub":92}],138:[function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){for(var t=p.getFirstReactDOM(d(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,a=e.ancestors.length;a>o;o++){t=e.ancestors[o];var i=p.getID(t)||"";g._handleTopLevel(e.topLevelType,t,i,e.nativeEvent)}}function i(e){var t=v(window);e(t)}var s=e("./EventListener"),u=e("./ExecutionEnvironment"),c=e("./PooledClass"),l=e("./ReactInstanceHandles"),p=e("./ReactMount"),f=e("./ReactUpdates"),h=e("./Object.assign"),d=e("./getEventTarget"),v=e("./getUnboundedScrollPosition");h(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var g={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){g._handleTopLevel=e},setEnabled:function(e){g._enabled=!!e},isEnabled:function(){return g._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?s.listen(r,t,g.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?s.capture(r,t,g.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=i.bind(null,e);s.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(g._enabled){var n=o.getPooled(e,t);try{f.batchedUpdates(a,n)}finally{o.release(n)}}}};t.exports=g},{"./EventListener":91,"./ExecutionEnvironment":96,"./Object.assign":102,"./PooledClass":103,"./ReactInstanceHandles":142,"./ReactMount":146,"./ReactUpdates":163,"./getEventTarget":201,"./getUnboundedScrollPosition":207}],139:[function(e,t,n){"use strict";var r=(e("./ReactElement"),e("./warning"),{create:function(e){return e},extract:function(e){return e},extractIfFragment:function(e){return e}});t.exports=r},{"./ReactElement":133,"./warning":230}],140:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=e("./EventPluginHub"),a=e("./ReactComponentEnvironment"),i=e("./ReactClass"),s=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),c=e("./ReactNativeComponent"),l=e("./ReactDOMComponent"),p=e("./ReactPerf"),f=e("./ReactRootIndex"),h=e("./ReactUpdates"),d={Component:a.injection,Class:i.injection,DOMComponent:l.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,RootIndex:f.injection,Updates:h.injection};t.exports=d},{"./DOMProperty":85,"./EventPluginHub":92,"./ReactBrowserEventEmitter":106,"./ReactClass":109,"./ReactComponentEnvironment":112,"./ReactDOMComponent":118,"./ReactEmptyComponent":135,"./ReactNativeComponent":149,"./ReactPerf":151,"./ReactRootIndex":159,"./ReactUpdates":163}],141:[function(e,t,n){"use strict";function r(e){return a(document.documentElement,e)}var o=e("./ReactDOMSelection"),a=e("./containsNode"),i=e("./focusNode"),s=e("./getActiveElement"),u={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),i(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",r-n),a.select()}else o.setOffsets(e,t)}};t.exports=u},{"./ReactDOMSelection":126,"./containsNode":185,"./focusNode":195,"./getActiveElement":197}],142:[function(e,t,n){"use strict";function r(e){return h+e.toString(36)}function o(e,t){return e.charAt(t)===h||t===e.length}function a(e){return""===e||e.charAt(0)===h&&e.charAt(e.length-1)!==h}function i(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(h)):""}function u(e,t){if(f(a(e)&&a(t)),f(i(e,t)),e===t)return e;var n,r=e.length+d;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function c(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,i=0;n>=i;i++)if(o(e,i)&&o(t,i))r=i;else if(e.charAt(i)!==t.charAt(i))break;var s=e.substr(0,r);return f(a(s)),s}function l(e,t,n,r,o,a){e=e||"",t=t||"",f(e!==t);var c=i(t,e);f(c||i(e,t));for(var l=0,p=c?s:u,h=e;;h=p(h,t)){var d;if(o&&h===e||a&&h===t||(d=n(h,c,r)),d===!1||h===t)break;f(l++<v)}}var p=e("./ReactRootIndex"),f=e("./invariant"),h=".",d=h.length,v=100,g={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===h&&e.length>1){var t=e.indexOf(h,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var a=c(e,t);a!==e&&l(e,a,n,r,!1,!0),a!==t&&l(a,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:i,SEPARATOR:h};t.exports=g},{"./ReactRootIndex":159,"./invariant":211}],143:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],144:[function(e,t,n){"use strict";var r={currentlyMountingInstance:null,currentlyUnmountingInstance:null};t.exports=r},{}],145:[function(e,t,n){"use strict";var r=e("./adler32"),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var a=r(e);return a===n}};t.exports=o},{"./adler32":182}],146:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=I(e);return t&&q.getID(t)}function a(e){var t=i(e);if(t)if(L.hasOwnProperty(t)){var n=L[t];n!==e&&(P(!l(n,t)),L[t]=e)}else L[t]=e;return t}function i(e){return e&&e.getAttribute&&e.getAttribute(U)||""}function s(e,t){var n=i(e);n!==t&&delete L[n],e.setAttribute(U,t),L[t]=e}function u(e){return L.hasOwnProperty(e)&&l(L[e],e)||(L[e]=q.findReactNodeByID(e)),L[e]}function c(e){var t=_.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(L.hasOwnProperty(t)&&l(L[t],t)||(L[t]=q.findReactNodeByID(t)),L[t])}function l(e,t){if(e){P(i(e)===t);var n=q.findReactContainerForID(t);if(n&&M(n,e))return!0}return!1}function p(e){delete L[e]}function f(e){var t=L[e];return t&&l(t,e)?void(H=t):!1}function h(e){H=null,b.traverseAncestors(e,f);var t=H;return H=null,t}function d(e,t,n,r,o){var a=C.mountComponent(e,t,r,O);e._isTopLevel=!0,q._mountImageIntoNode(a,n,o)}function v(e,t,n,r){var o=T.ReactReconcileTransaction.getPooled();o.perform(d,null,e,t,n,o,r),T.ReactReconcileTransaction.release(o)}var g=e("./DOMProperty"),m=e("./ReactBrowserEventEmitter"),y=(e("./ReactCurrentOwner"),e("./ReactElement")),E=(e("./ReactElementValidator"),e("./ReactEmptyComponent")),b=e("./ReactInstanceHandles"),_=e("./ReactInstanceMap"),R=e("./ReactMarkupChecksum"),w=e("./ReactPerf"),C=e("./ReactReconciler"),x=e("./ReactUpdateQueue"),T=e("./ReactUpdates"),O=e("./emptyObject"),M=e("./containsNode"),I=e("./getReactRootElementInContainer"),A=e("./instantiateReactComponent"),P=e("./invariant"),D=e("./setInnerHTML"),S=e("./shouldUpdateReactComponent"),N=(e("./warning"),b.SEPARATOR),U=g.ID_ATTRIBUTE_NAME,L={},k=1,j=9,F={},B={},V=[],H=null,q={_instancesByReactRootID:F,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return q.scrollMonitor(n,function(){x.enqueueElementInternal(e,t),r&&x.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){P(t&&(t.nodeType===k||t.nodeType===j)),m.ensureScrollValueMonitoring();var n=q.registerContainer(t);return F[n]=e,n},_renderNewRootComponent:function(e,t,n){var r=A(e,null),o=q._registerComponent(r,t);return T.batchedUpdates(v,r,o,t,n),r},render:function(e,t,n){P(y.isValidElement(e));var r=F[o(t)];if(r){var a=r._currentElement;if(S(a,e))return q._updateRootComponent(r,e,t,n).getPublicInstance();q.unmountComponentAtNode(t)}var i=I(t),s=i&&q.isRenderedByReact(i),u=s&&!r,c=q._renderNewRootComponent(e,t,u).getPublicInstance();return n&&n.call(c),c},constructAndRenderComponent:function(e,t,n){var r=y.createElement(e,t);return q.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return P(r),q.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=o(e);return t&&(t=b.getReactRootIDFromNodeID(t)),t||(t=b.createReactRootID()),B[t]=e,t},unmountComponentAtNode:function(e){P(e&&(e.nodeType===k||e.nodeType===j));var t=o(e),n=F[t];return n?(q.unmountComponentFromNode(n,e),delete F[t],delete B[t],!0):!1},unmountComponentFromNode:function(e,t){for(C.unmountComponent(e),t.nodeType===j&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=b.getReactRootIDFromNodeID(e),n=B[t];return n},findReactNodeByID:function(e){var t=q.findReactContainerForID(e);return q.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=q.getID(e);return t?t.charAt(0)===N:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(q.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=V,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var a,i=n[r++];i;){var s=q.getID(i);s?t===s?a=i:b.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(i.firstChild)):n.push(i.firstChild),i=i.nextSibling}if(a)return n.length=0,a}n.length=0,P(!1)},_mountImageIntoNode:function(e,t,n){if(P(t&&(t.nodeType===k||t.nodeType===j)),n){var o=I(t);if(R.canReuseMarkup(e,o))return;var a=o.getAttribute(R.CHECKSUM_ATTR_NAME);o.removeAttribute(R.CHECKSUM_ATTR_NAME);var i=o.outerHTML;o.setAttribute(R.CHECKSUM_ATTR_NAME,a);var s=r(e,i);" (client) "+e.substring(s-20,s+20)+"\n (server) "+i.substring(s-20,s+20);P(t.nodeType!==j)}P(t.nodeType!==j),D(t,e)},getReactRootID:o,getID:a,setID:s,getNode:u,getNodeFromInstance:c,purgeID:p};w.measureMethods(q,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=q},{"./DOMProperty":85,"./ReactBrowserEventEmitter":106,"./ReactCurrentOwner":115,"./ReactElement":133,"./ReactElementValidator":134,"./ReactEmptyComponent":135,"./ReactInstanceHandles":142,"./ReactInstanceMap":143,"./ReactMarkupChecksum":145,"./ReactPerf":151,"./ReactReconciler":157,"./ReactUpdateQueue":162,"./ReactUpdates":163,"./containsNode":185,"./emptyObject":191,"./getReactRootElementInContainer":205,"./instantiateReactComponent":210,"./invariant":211,"./setInnerHTML":224,"./shouldUpdateReactComponent":227,"./warning":230}],147:[function(e,t,n){"use strict";function r(e,t,n){d.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:v.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function o(e,t,n){d.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function a(e,t){d.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function i(e,t){d.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function s(){d.length&&(c.processChildrenUpdates(d,v),u())}function u(){d.length=0,v.length=0}var c=e("./ReactComponentEnvironment"),l=e("./ReactMultiChildUpdateTypes"),p=e("./ReactReconciler"),f=e("./ReactChildReconciler"),h=0,d=[],v=[],g={Mixin:{mountChildren:function(e,t,n){var r=f.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],a=0;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],u=this._rootNodeID+i,c=p.mountComponent(s,u,t,n);s._mountIndex=a,o.push(c),a++}return o},updateTextContent:function(e){h++;var t=!0;try{var n=this._renderedChildren;f.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{h--,h||(t?u():s())}},updateChildren:function(e,t,n){h++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{h--,h||(r?u():s())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=f.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var a,i=0,s=0;for(a in o)if(o.hasOwnProperty(a)){var u=r&&r[a],c=o[a];u===c?(this.moveChild(u,s,i),i=Math.max(u._mountIndex,i),u._mountIndex=s):(u&&(i=Math.max(u._mountIndex,i),this._unmountChildByName(u,a)),this._mountChildByNameAtIndex(c,a,s,t,n)),s++}for(a in r)!r.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||this._unmountChildByName(r[a],a)}},unmountChildren:function(){var e=this._renderedChildren;f.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){a(this._rootNodeID,e._mountIndex)},setTextContent:function(e){i(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var a=this._rootNodeID+t,i=p.mountComponent(e,a,r,o);e._mountIndex=n,this.createChild(e,i)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};t.exports=g},{"./ReactChildReconciler":107,"./ReactComponentEnvironment":112,"./ReactMultiChildUpdateTypes":148,"./ReactReconciler":157}],148:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});t.exports=o},{"./keyMirror":216}],149:[function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=c(t)),n}function o(e){return u(l),new l(e.type,e.props)}function a(e){return new f(e)}function i(e){return e instanceof f}var s=e("./Object.assign"),u=e("./invariant"),c=null,l=null,p={},f=null,h={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){s(p,e)},injectAutoWrapper:function(e){c=e}},d={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:a,isTextComponent:i,injection:h};t.exports=d},{"./Object.assign":102,"./invariant":211}],150:[function(e,t,n){"use strict";var r=e("./invariant"),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){r(o.isValidOwner(n)),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(o.isValidOwner(n)),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};t.exports=o},{"./invariant":211}],151:[function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};t.exports=o},{}],152:[function(e,t,n){"use strict";var r={};
t.exports=r},{}],153:[function(e,t,n){"use strict";var r=e("./keyMirror"),o=r({prop:null,context:null,childContext:null});t.exports=o},{"./keyMirror":216}],154:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,a){if(o=o||_,null==n[r]){var i=E[a];return t?new Error("Required "+i+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o){var a=t[n],i=v(a);if(i!==e){var s=E[o],u=g(a);return new Error("Invalid "+s+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return r(t)}function a(){return r(b.thatReturns(null))}function i(e){function t(t,n,r,o){var a=t[n];if(!Array.isArray(a)){var i=E[o],s=v(a);return new Error("Invalid "+i+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<a.length;u++){var c=e(a,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function s(){function e(e,t,n,r){if(!m.isValidElement(e[t])){var o=E[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var a=E[o],i=e.name||_;return new Error("Invalid "+a+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+i+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o){for(var a=t[n],i=0;i<e.length;i++)if(a===e[i])return null;var s=E[o],u=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(t)}function l(e){function t(t,n,r,o){var a=t[n],i=v(a);if("object"!==i){var s=E[o];return new Error("Invalid "+s+" `"+n+"` of type "+("`"+i+"` supplied to `"+r+"`, expected an object."))}for(var u in a)if(a.hasOwnProperty(u)){var c=e(a,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function p(e){function t(t,n,r,o){for(var a=0;a<e.length;a++){var i=e[a];if(null==i(t,n,r,o))return null}var s=E[o];return new Error("Invalid "+s+" `"+n+"` supplied to "+("`"+r+"`."))}return r(t)}function f(){function e(e,t,n,r){if(!d(e[t])){var o=E[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function h(e){function t(t,n,r,o){var a=t[n],i=v(a);if("object"!==i){var s=E[o];return new Error("Invalid "+s+" `"+n+"` of type `"+i+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(a,u,r,o);if(l)return l}}return null}return r(t)}function d(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||m.isValidElement(e))return!0;e=y.extractIfFragment(e);for(var t in e)if(!d(e[t]))return!1;return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function g(e){var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var m=e("./ReactElement"),y=e("./ReactFragment"),E=e("./ReactPropTypeLocationNames"),b=e("./emptyFunction"),_="<<anonymous>>",R=s(),w=f(),C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:a(),arrayOf:i,element:R,instanceOf:u,node:w,objectOf:l,oneOf:c,oneOfType:p,shape:h};t.exports=C},{"./ReactElement":133,"./ReactFragment":139,"./ReactPropTypeLocationNames":152,"./emptyFunction":190}],155:[function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var o=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),i=e("./Object.assign");i(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];a.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":102,"./PooledClass":103,"./ReactBrowserEventEmitter":106}],156:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=u.getPooled()}var o=e("./CallbackQueue"),a=e("./PooledClass"),i=e("./ReactBrowserEventEmitter"),s=e("./ReactInputSelection"),u=e("./ReactPutListenerQueue"),c=e("./Transaction"),l=e("./Object.assign"),p={initialize:s.getSelectionInformation,close:s.restoreSelection},f={initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},v=[d,p,f,h],g={getTransactionWrappers:function(){return v},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};l(r.prototype,c.Mixin,g),a.addPoolingTo(r),t.exports=r},{"./CallbackQueue":81,"./Object.assign":102,"./PooledClass":103,"./ReactBrowserEventEmitter":106,"./ReactInputSelection":141,"./ReactPutListenerQueue":155,"./Transaction":179}],157:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e("./ReactRef"),a=(e("./ReactElementValidator"),{mountComponent:function(e,t,n,o){var a=e.mountComponent(t,n,o);return n.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||null==t._owner){var s=o.shouldUpdateRefs(i,t);s&&o.detachRefs(e,i),e.receiveComponent(t,n,a),s&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}});t.exports=a},{"./ReactElementValidator":134,"./ReactRef":158}],158:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var a=e("./ReactOwner"),i={};i.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},i.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},i.detachRefs=function(e,t){var n=t.ref;null!=n&&o(n,e,t._owner)},t.exports=i},{"./ReactOwner":150}],159:[function(e,t,n){"use strict";var r={injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}},o={createReactRootIndex:null,injection:r};t.exports=o},{}],160:[function(e,t,n){"use strict";function r(e){p(a.isValidElement(e));var t;try{var n=i.createReactRootID();return t=u.getPooled(!1),t.perform(function(){var r=l(e,null),o=r.mountComponent(n,t,c);return s.addChecksumToMarkup(o)},null)}finally{u.release(t)}}function o(e){p(a.isValidElement(e));var t;try{var n=i.createReactRootID();return t=u.getPooled(!0),t.perform(function(){var r=l(e,null);return r.mountComponent(n,t,c)},null)}finally{u.release(t)}}var a=e("./ReactElement"),i=e("./ReactInstanceHandles"),s=e("./ReactMarkupChecksum"),u=e("./ReactServerRenderingTransaction"),c=e("./emptyObject"),l=e("./instantiateReactComponent"),p=e("./invariant");t.exports={renderToString:r,renderToStaticMarkup:o}},{"./ReactElement":133,"./ReactInstanceHandles":142,"./ReactMarkupChecksum":145,"./ReactServerRenderingTransaction":161,"./emptyObject":191,"./instantiateReactComponent":210,"./invariant":211}],161:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=a.getPooled(null),this.putListenerQueue=i.getPooled()}var o=e("./PooledClass"),a=e("./CallbackQueue"),i=e("./ReactPutListenerQueue"),s=e("./Transaction"),u=e("./Object.assign"),c=e("./emptyFunction"),l={initialize:function(){this.reactMountReady.reset()},close:c},p={initialize:function(){this.putListenerQueue.reset()},close:c},f=[p,l],h={getTransactionWrappers:function(){return f},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null,i.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,s.Mixin,h),o.addPoolingTo(r),t.exports=r},{"./CallbackQueue":81,"./Object.assign":102,"./PooledClass":103,"./ReactPutListenerQueue":155,"./Transaction":179,"./emptyFunction":190}],162:[function(e,t,n){"use strict";function r(e){e!==a.currentlyMountingInstance&&c.enqueueUpdate(e)}function o(e,t){p(null==i.current);var n=u.get(e);return n?n===a.currentlyUnmountingInstance?null:n:null}var a=e("./ReactLifeCycle"),i=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./ReactUpdates"),l=e("./Object.assign"),p=e("./invariant"),f=(e("./warning"),{enqueueCallback:function(e,t){p("function"==typeof t);var n=o(e);return n&&n!==a.currentlyMountingInstance?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){p("function"==typeof t),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var a=n._pendingStateQueue||(n._pendingStateQueue=[]);a.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");if(n){p(n._isTopLevel);var a=n._pendingElement||n._currentElement,i=l({},a.props,t);n._pendingElement=s.cloneAndReplaceProps(a,i),r(n)}},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");if(n){p(n._isTopLevel);var a=n._pendingElement||n._currentElement;n._pendingElement=s.cloneAndReplaceProps(a,t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});t.exports=f},{"./Object.assign":102,"./ReactCurrentOwner":115,"./ReactElement":133,"./ReactInstanceMap":143,"./ReactLifeCycle":144,"./ReactUpdates":163,"./invariant":211,"./warning":230}],163:[function(e,t,n){"use strict";function r(){g(T.ReactReconcileTransaction&&b)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled()}function a(e,t,n,o,a){r(),b.batchedUpdates(e,t,n,o,a)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;g(t===m.length),m.sort(i);for(var n=0;t>n;n++){var r=m[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,h.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var a=0;a<o.length;a++)e.callbackQueue.enqueue(o[a],r.getPublicInstance())}}function u(e){return r(),b.isBatchingUpdates?void m.push(e):void b.batchedUpdates(u,e)}function c(e,t){g(b.isBatchingUpdates),y.enqueue(e,t),E=!0}var l=e("./CallbackQueue"),p=e("./PooledClass"),f=(e("./ReactCurrentOwner"),e("./ReactPerf")),h=e("./ReactReconciler"),d=e("./Transaction"),v=e("./Object.assign"),g=e("./invariant"),m=(e("./warning"),[]),y=l.getPooled(),E=!1,b=null,_={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),C()):m.length=0}},R={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[_,R];v(o.prototype,d.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,T.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var C=function(){for(;m.length||E;){if(m.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(E){E=!1;var t=y;y=l.getPooled(),t.notifyAll(),l.release(t)}}};C=f.measure("ReactUpdates","flushBatchedUpdates",C);var x={injectReconcileTransaction:function(e){g(e),T.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){g(e),g("function"==typeof e.batchedUpdates),g("boolean"==typeof e.isBatchingUpdates),b=e}},T={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:u,flushBatchedUpdates:C,injection:x,asap:c};t.exports=T},{"./CallbackQueue":81,"./Object.assign":102,"./PooledClass":103,"./ReactCurrentOwner":115,"./ReactPerf":151,"./ReactReconciler":157,"./Transaction":179,"./invariant":211,"./warning":230}],164:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_ATTRIBUTE,a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,y1:o,y2:o,y:o},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};t.exports=a},{"./DOMProperty":85}],165:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e){if(y||null==v||v!==c())return null;var t=r(v);if(!m||!f(m,t)){m=t;var n=u.getPooled(d.select,g,e);return n.type="select",n.target=v,i.accumulateTwoPhaseDispatches(n),n}}var a=e("./EventConstants"),i=e("./EventPropagators"),s=e("./ReactInputSelection"),u=e("./SyntheticEvent"),c=e("./getActiveElement"),l=e("./isTextInputElement"),p=e("./keyOf"),f=e("./shallowEqual"),h=a.topLevelTypes,d={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},v=null,g=null,m=null,y=!1,E={eventTypes:d,extractEvents:function(e,t,n,r){switch(e){case h.topFocus:(l(t)||"true"===t.contentEditable)&&(v=t,g=n,m=null);break;case h.topBlur:v=null,g=null,m=null;break;case h.topMouseDown:y=!0;break;case h.topContextMenu:case h.topMouseUp:return y=!1,o(r);case h.topSelectionChange:case h.topKeyDown:case h.topKeyUp:return o(r)}}};t.exports=E},{"./EventConstants":90,"./EventPropagators":95,"./ReactInputSelection":141,"./SyntheticEvent":171,"./getActiveElement":197,"./isTextInputElement":214,"./keyOf":217,"./shallowEqual":226}],166:[function(e,t,n){"use strict";var r=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*r)}};t.exports=o},{}],167:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPluginUtils"),a=e("./EventPropagators"),i=e("./SyntheticClipboardEvent"),s=e("./SyntheticEvent"),u=e("./SyntheticFocusEvent"),c=e("./SyntheticKeyboardEvent"),l=e("./SyntheticMouseEvent"),p=e("./SyntheticDragEvent"),f=e("./SyntheticTouchEvent"),h=e("./SyntheticUIEvent"),d=e("./SyntheticWheelEvent"),v=e("./getEventCharCode"),g=e("./invariant"),m=e("./keyOf"),y=(e("./warning"),r.topLevelTypes),E={blur:{phasedRegistrationNames:{bubbled:m({onBlur:!0}),captured:m({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:m({onClick:!0}),captured:m({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:m({onContextMenu:!0}),captured:m({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:m({onCopy:!0}),captured:m({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:m({onCut:!0}),captured:m({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:m({onDoubleClick:!0}),captured:m({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:m({onDrag:!0}),captured:m({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:m({onDragEnd:!0}),captured:m({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:m({onDragEnter:!0}),captured:m({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:m({onDragExit:!0}),captured:m({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:m({onDragLeave:!0}),captured:m({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:m({onDragOver:!0}),captured:m({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:m({onDragStart:!0}),captured:m({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:m({onDrop:!0}),captured:m({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:m({onFocus:!0}),captured:m({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:m({onInput:!0}),captured:m({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:m({onKeyDown:!0}),captured:m({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:m({onKeyPress:!0}),captured:m({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:m({onKeyUp:!0}),captured:m({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:m({onLoad:!0}),captured:m({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:m({onError:!0}),captured:m({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:m({onMouseDown:!0}),captured:m({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:m({onMouseMove:!0}),captured:m({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:m({onMouseOut:!0}),captured:m({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:m({onMouseOver:!0}),captured:m({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:m({onMouseUp:!0}),captured:m({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:m({onPaste:!0}),captured:m({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:m({onReset:!0}),captured:m({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:m({onScroll:!0}),captured:m({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:m({onSubmit:!0}),captured:m({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:m({onTouchCancel:!0}),captured:m({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:m({onTouchEnd:!0}),captured:m({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:m({onTouchMove:!0}),captured:m({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:m({onTouchStart:!0}),captured:m({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:m({onWheel:!0}),captured:m({onWheelCapture:!0})}}},b={topBlur:E.blur,topClick:E.click,topContextMenu:E.contextMenu,topCopy:E.copy,topCut:E.cut,topDoubleClick:E.doubleClick,topDrag:E.drag,topDragEnd:E.dragEnd,topDragEnter:E.dragEnter,topDragExit:E.dragExit,topDragLeave:E.dragLeave,topDragOver:E.dragOver,topDragStart:E.dragStart,topDrop:E.drop,topError:E.error,topFocus:E.focus,topInput:E.input,topKeyDown:E.keyDown,topKeyPress:E.keyPress,topKeyUp:E.keyUp,topLoad:E.load,topMouseDown:E.mouseDown,topMouseMove:E.mouseMove,topMouseOut:E.mouseOut,topMouseOver:E.mouseOver,topMouseUp:E.mouseUp,topPaste:E.paste,topReset:E.reset,topScroll:E.scroll,topSubmit:E.submit,topTouchCancel:E.touchCancel,topTouchEnd:E.touchEnd,topTouchMove:E.touchMove,topTouchStart:E.touchStart,topWheel:E.wheel};for(var _ in b)b[_].dependencies=[_];var R={eventTypes:E,executeDispatch:function(e,t,n){var r=o.executeDispatch(e,t,n);r===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,t,n,r){var o=b[e];if(!o)return null;var m;switch(e){case y.topInput:case y.topLoad:case y.topError:case y.topReset:case y.topSubmit:m=s;break;case y.topKeyPress:if(0===v(r))return null;case y.topKeyDown:case y.topKeyUp:m=c;break;case y.topBlur:case y.topFocus:m=u;break;case y.topClick:if(2===r.button)return null;case y.topContextMenu:case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:m=l;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:m=p;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:m=f;break;case y.topScroll:m=h;break;case y.topWheel:m=d;break;case y.topCopy:case y.topCut:case y.topPaste:m=i}g(m);var E=m.getPooled(o,n,r);return a.accumulateTwoPhaseDispatches(E),E}};t.exports=R},{"./EventConstants":90,"./EventPluginUtils":94,"./EventPropagators":95,"./SyntheticClipboardEvent":168,"./SyntheticDragEvent":170,"./SyntheticEvent":171,"./SyntheticFocusEvent":172,"./SyntheticKeyboardEvent":174,"./SyntheticMouseEvent":175,"./SyntheticTouchEvent":176,"./SyntheticUIEvent":177,"./SyntheticWheelEvent":178,"./getEventCharCode":198,"./invariant":211,"./keyOf":217,"./warning":230}],168:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":171}],169:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),a={data:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":171}],170:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticMouseEvent"),a={dataTransfer:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticMouseEvent":175}],171:[function(e,t,n){"use strict";function r(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];a?this[o]=a(n):this[o]=n[o]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;s?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var o=e("./PooledClass"),a=e("./Object.assign"),i=e("./emptyFunction"),s=e("./getEventTarget"),u={type:null,target:s,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.threeArgumentPooler)},o.addPoolingTo(r,o.threeArgumentPooler),t.exports=r},{"./Object.assign":102,"./PooledClass":103,"./emptyFunction":190,"./getEventTarget":201}],172:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),a={relatedTarget:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":177}],173:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),a={data:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":171}],174:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),a=e("./getEventCharCode"),i=e("./getEventKey"),s=e("./getEventModifierState"),u={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{"./SyntheticUIEvent":177,"./getEventCharCode":198,"./getEventKey":199,"./getEventModifierState":200}],175:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),a=e("./ViewportMetrics"),i=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":177,"./ViewportMetrics":180,"./getEventModifierState":200}],176:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticUIEvent"),a=e("./getEventModifierState"),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:a};o.augmentClass(r,i),t.exports=r},{"./SyntheticUIEvent":177,"./getEventModifierState":200}],177:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticEvent"),a=e("./getEventTarget"),i={view:function(e){if(e.view)return e.view;var t=a(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":171,"./getEventTarget":201}],178:[function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=e("./SyntheticMouseEvent"),a={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,a),t.exports=r},{"./SyntheticMouseEvent":175}],179:[function(e,t,n){"use strict";var r=e("./invariant"),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,a,i,s,u){r(!this.isInTransaction());var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,a,i,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){r(this.isInTransaction());for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,i=t[n],s=this.wrapperInitData[n];try{o=!0,s!==a.OBSERVED_ERROR&&i.close&&i.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(u){}}}this.wrapperInitData.length=0}},a={Mixin:o,OBSERVED_ERROR:{}};t.exports=a},{"./invariant":211}],180:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],181:[function(e,t,n){"use strict";function r(e,t){if(o(null!=t),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=e("./invariant");t.exports=r},{"./invariant":211}],182:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%o,n=(n+t)%o;return t|n<<16}var o=65521;t.exports=r},{}],183:[function(e,t,n){function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],184:[function(e,t,n){"use strict";function r(e){return o(e.replace(a,"ms-"))}var o=e("./camelize"),a=/^-ms-/;t.exports=r},{"./camelize":183}],185:[function(e,t,n){function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=e("./isTextNode");t.exports=r},{"./isTextNode":215}],186:[function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():a(e):[e]}var a=e("./toArray");t.exports=o},{"./toArray":228}],187:[function(e,t,n){"use strict";function r(e){var t=a.createFactory(e),n=o.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){i(!1)},render:function(){return t(this.props)}});return n}var o=e("./ReactClass"),a=e("./ReactElement"),i=e("./invariant");t.exports=r},{"./ReactClass":109,"./ReactElement":133,"./invariant":211}],188:[function(e,t,n){function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;u(!!c);var o=r(e),a=o&&s(o);if(a){n.innerHTML=a[1]+e+a[2];for(var l=a[0];l--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(u(t),i(p).forEach(t));for(var f=i(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var a=e("./ExecutionEnvironment"),i=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),u=e("./invariant"),c=a.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o},{"./ExecutionEnvironment":96,"./createArrayFromMixed":186,"./getMarkupWrap":203,"./invariant":211}],189:[function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||a.hasOwnProperty(e)&&a[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=e("./CSSProperty"),a=o.isUnitlessNumber;t.exports=r},{"./CSSProperty":79}],190:[function(e,t,n){function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],191:[function(e,t,n){"use strict";var r={};t.exports=r},{}],192:[function(e,t,n){"use strict";function r(e){return a[e]}function o(e){return(""+e).replace(i,r)}var a={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},i=/[&><"']/g;t.exports=o},{}],193:[function(e,t,n){"use strict";function r(e){return null==e?null:s(e)?e:o.has(e)?a.getNodeFromInstance(e):(i(null==e.render||"function"!=typeof e.render),void i(!1))}var o=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),a=e("./ReactMount"),i=e("./invariant"),s=e("./isNode");e("./warning");t.exports=r},{"./ReactCurrentOwner":115,"./ReactInstanceMap":143,"./ReactMount":146,"./invariant":211,"./isNode":213,"./warning":230}],194:[function(e,t,n){"use strict";
function r(e,t,n){var r=e,o=!r.hasOwnProperty(n);o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return a(e,r,t),t}var a=e("./traverseAllChildren");e("./warning");t.exports=o},{"./traverseAllChildren":229,"./warning":230}],195:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(t){}}t.exports=r},{}],196:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],197:[function(e,t,n){function r(){try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],198:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],199:[function(e,t,n){"use strict";function r(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":198}],200:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=a[e];return r?!!n[r]:!1}function o(e){return r}var a={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],201:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=r},{}],202:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[a]);return"function"==typeof t?t:void 0}var o="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";t.exports=r},{}],203:[function(e,t,n){function r(e){return a(!!i),f.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="<link />":i.innerHTML="<"+e+"></"+e+">",s[e]=!i.firstChild),s[e]?f[e]:null}var o=e("./ExecutionEnvironment"),a=e("./invariant"),i=o.canUseDOM?document.createElement("div"):null,s={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,"<svg>","</svg>"],f={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l,circle:p,clipPath:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};t.exports=r},{"./ExecutionEnvironment":96,"./invariant":211}],204:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function a(e,t){for(var n=r(e),a=0,i=0;n;){if(3===n.nodeType){if(i=a+n.textContent.length,t>=a&&i>=t)return{node:n,offset:t-a};a=i}n=r(o(n))}}t.exports=a},{}],205:[function(e,t,n){"use strict";function r(e){return e?e.nodeType===o?e.documentElement:e.firstChild:null}var o=9;t.exports=r},{}],206:[function(e,t,n){"use strict";function r(){return!a&&o.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var o=e("./ExecutionEnvironment"),a=null;t.exports=r},{"./ExecutionEnvironment":96}],207:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],208:[function(e,t,n){function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],209:[function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=e("./hyphenate"),a=/^ms-/;t.exports=r},{"./hyphenate":208}],210:[function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if((null===e||e===!1)&&(e=i.emptyElement),"object"==typeof e){var o=e;n=t===o.type&&"string"==typeof o.type?s.createInternalComponent(o):r(o.type)?new o.type(o):new l}else"string"==typeof e||"number"==typeof e?n=s.createInstanceForText(e):c(!1);return n.construct(e),n._mountIndex=0,n._mountImage=null,n}var a=e("./ReactCompositeComponent"),i=e("./ReactEmptyComponent"),s=e("./ReactNativeComponent"),u=e("./Object.assign"),c=e("./invariant"),l=(e("./warning"),function(){});u(l.prototype,a.Mixin,{_instantiateReactComponent:o}),t.exports=o},{"./Object.assign":102,"./ReactCompositeComponent":113,"./ReactEmptyComponent":135,"./ReactNativeComponent":149,"./invariant":211,"./warning":230}],211:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};t.exports=r},{}],212:[function(e,t,n){"use strict";function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=e("./ExecutionEnvironment");a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"./ExecutionEnvironment":96}],213:[function(e,t,n){function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],214:[function(e,t,n){"use strict";function r(e){return e&&("INPUT"===e.nodeName&&o[e.type]||"TEXTAREA"===e.nodeName)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],215:[function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":213}],216:[function(e,t,n){"use strict";var r=e("./invariant"),o=function(e){var t,n={};r(e instanceof Object&&!Array.isArray(e));for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=o},{"./invariant":211}],217:[function(e,t,n){var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],218:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var a in e)o.call(e,a)&&(r[a]=t.call(n,e[a],a,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],219:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],220:[function(e,t,n){"use strict";function r(e){return a(o.isValidElement(e)),e}var o=e("./ReactElement"),a=e("./invariant");t.exports=r},{"./ReactElement":133,"./invariant":211}],221:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":96}],222:[function(e,t,n){var r=e("./performance");r&&r.now||(r=Date);var o=r.now.bind(r);t.exports=o},{"./performance":221}],223:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":192}],224:[function(e,t,n){"use strict";var r=e("./ExecutionEnvironment"),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=i},{"./ExecutionEnvironment":96}],225:[function(e,t,n){"use strict";var r=e("./ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),a=e("./setInnerHTML"),i=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,o(t))})),t.exports=i},{"./ExecutionEnvironment":96,"./escapeTextContentForBrowser":192,"./setInnerHTML":224}],226:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}t.exports=r},{}],227:[function(e,t,n){"use strict";function r(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var o=e._owner===t._owner;return o}}return!1}e("./warning");t.exports=r},{"./warning":230}],228:[function(e,t,n){function r(e){var t=e.length;if(o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),o("number"==typeof t),o(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;t>a;a++)r[a]=e[a];return r}var o=e("./invariant");t.exports=r},{"./invariant":211}],229:[function(e,t,n){"use strict";function r(e){return g[e]}function o(e,t){return e&&null!=e.key?i(e.key):t.toString(36)}function a(e){return(""+e).replace(m,r)}function i(e){return"$"+a(e)}function s(e,t,n,r,a){var u=typeof e;if(("undefined"===u||"boolean"===u)&&(e=null),null===e||"string"===u||"number"===u||c.isValidElement(e))return r(a,e,""===t?d+o(e,0):t,n),1;var p,g,m,y=0;if(Array.isArray(e))for(var E=0;E<e.length;E++)p=e[E],g=(""!==t?t+v:d)+o(p,E),m=n+y,y+=s(p,g,m,r,a);else{var b=f(e);if(b){var _,R=b.call(e);if(b!==e.entries)for(var w=0;!(_=R.next()).done;)p=_.value,g=(""!==t?t+v:d)+o(p,w++),m=n+y,y+=s(p,g,m,r,a);else for(;!(_=R.next()).done;){var C=_.value;C&&(p=C[1],g=(""!==t?t+v:d)+i(C[0])+v+o(p,0),m=n+y,y+=s(p,g,m,r,a))}}else if("object"===u){h(1!==e.nodeType);var x=l.extract(e);for(var T in x)x.hasOwnProperty(T)&&(p=x[T],g=(""!==t?t+v:d)+i(T)+v+o(p,0),m=n+y,y+=s(p,g,m,r,a))}}return y}function u(e,t,n){return null==e?0:s(e,"",0,t,n)}var c=e("./ReactElement"),l=e("./ReactFragment"),p=e("./ReactInstanceHandles"),f=e("./getIteratorFn"),h=e("./invariant"),d=(e("./warning"),p.SEPARATOR),v=":",g={"=":"=0",".":"=1",":":"=2"},m=/[=.:]/g;t.exports=u},{"./ReactElement":133,"./ReactFragment":139,"./ReactInstanceHandles":142,"./getIteratorFn":202,"./invariant":211,"./warning":230}],230:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o=r;t.exports=o},{"./emptyFunction":190}],231:[function(e,t,n){t.exports=e("./lib/React")},{"./lib/React":104}]},{},[1]);