reactjs-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * React v0.3.0
3
+ *
4
+ * Copyright 2013 Facebook, Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ !function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():global.React=e()}(function(){return function(e,t,n){function o(n,i){if(!t[n]){if(!e[n]){var a="function"==typeof require&&require;if(!i&&a)return a(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var s=t[n]={exports:{}};e[n][0].call(s.exports,function(t){var r=e[n][1][t];return o(r?r:t)},s,s.exports)}return t[n].exports}for(var r="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t){"use strict";var n=e("./ReactCompositeComponent"),o=e("./ReactComponent"),r=e("./ReactDOM"),i=e("./ReactMount"),a=e("./ReactDefaultInjection");a.inject();var s={DOM:r,initializeTouchEvents:function(e){i.useTouchEvents=e},autoBind:n.autoBind,createClass:n.createClass,createComponentRenderer:i.createComponentRenderer,constructAndRenderComponent:i.constructAndRenderComponent,constructAndRenderComponentByID:i.constructAndRenderComponentByID,renderComponent:i.renderComponent,unmountAndReleaseReactRootNode:i.unmountAndReleaseReactRootNode,isValidComponent:o.isValidComponent};t.exports=s},{"./ReactCompositeComponent":2,"./ReactComponent":3,"./ReactDOM":4,"./ReactMount":5,"./ReactDefaultInjection":6}],2:[function(e,t){!function(){"use strict";function n(e,t){var n=e.prototype;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a=h[r];v.hasOwnProperty(r)&&u(a===d.OVERRIDE_BASE,"ReactCompositeComponentInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",r),null!=a&&u(!i||!i.__reactAutoBind,"ReactCompositeComponentInterface: You are attempting to use `React.autoBind` on `%s`, a method that is internal to React.Internal methods are called with the component as the context.",r),n.hasOwnProperty(r)&&u(a===d.DEFINE_MANY,"ReactCompositeComponentInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r),f.hasOwnProperty(r)?f[r](e,i):i&&i.__reactAutoBind?(n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[r]=i.__reactAutoBind):n[r]=n.hasOwnProperty(r)?o(n[r],i):i}}function o(e,t){return function(n,o,r,i,a,s){u("undefined"==typeof s,"Chained function can only take a maximum of 5 arguments."),e.call(this,n,o,r,i,a),t.call(this,n,o,r,i,a)}}var r=e("./ReactComponent"),i=e("./ReactCurrentOwner"),a=e("./ReactOwner"),s=e("./ReactPropTransferer"),u=e("./invariant"),c=e("./keyMirror"),l=e("./merge"),p=e("./mixInto"),d=c({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null}),h={mixins:d.DEFINE_MANY,props:d.DEFINE_ONCE,getInitialState:d.DEFINE_ONCE,render:d.DEFINE_ONCE,componentWillMount:d.DEFINE_MANY,componentDidMount:d.DEFINE_MANY,componentWillReceiveProps:d.DEFINE_MANY,shouldComponentUpdate:d.DEFINE_ONCE,componentWillUpdate:d.DEFINE_MANY,componentDidUpdate:d.DEFINE_MANY,componentWillUnmount:d.DEFINE_MANY,updateComponent:d.OVERRIDE_BASE},f={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var o=0;o<t.length;o++)n(e,t[o])},props:function(e,t){e.propDeclarations=t}},m=c({MOUNTING:null,UNMOUNTING:null,RECEIVING_PROPS:null,RECEIVING_STATE:null}),v={construct:function(e,t){r.Mixin.construct.call(this,e,t),this.state=null,this._pendingState=null,this._compositeLifeCycleState=null},mountComponent:function(e,t){return r.Mixin.mountComponent.call(this,e,t),this._lifeCycleState=r.LifeCycle.UNMOUNTED,this._compositeLifeCycleState=m.MOUNTING,this.constructor.propDeclarations&&this._assertValidProps(this.props),this.__reactAutoBindMap&&this._bindAutoBindMethods(),this.state=this.getInitialState?this.getInitialState():null,this._pendingState=null,this.componentWillMount&&(this.componentWillMount(),this._pendingState&&(this.state=this._pendingState,this._pendingState=null)),this.componentDidMount&&t.getReactOnDOMReady().enqueue(this,this.componentDidMount),this._renderedComponent=this._renderValidatedComponent(),this._compositeLifeCycleState=null,this._lifeCycleState=r.LifeCycle.MOUNTED,this._renderedComponent.mountComponent(e,t)},unmountComponent:function(){this._compositeLifeCycleState=m.UNMOUNTING,this.componentWillUnmount&&this.componentWillUnmount(),this._compositeLifeCycleState=null,r.Mixin.unmountComponent.call(this),this._renderedComponent.unmountComponent(),this._renderedComponent=null,this.refs&&(this.refs=null)},receiveProps:function(e,t){this.constructor.propDeclarations&&this._assertValidProps(e),r.Mixin.receiveProps.call(this,e,t),this._compositeLifeCycleState=m.RECEIVING_PROPS,this.componentWillReceiveProps&&this.componentWillReceiveProps(e,t),this._compositeLifeCycleState=m.RECEIVING_STATE;var n=this._pendingState||this.state;this._pendingState=null,this._receivePropsAndState(e,n,t),this._compositeLifeCycleState=null},setState:function(e){this.replaceState(l(this._pendingState||this.state,e))},replaceState:function(e){var t=this._compositeLifeCycleState;if(u(this._lifeCycleState===r.LifeCycle.MOUNTED||t===m.MOUNTING,"replaceState(...): Can only update a mounted (or mounting) component."),u(t!==m.RECEIVING_STATE&&t!==m.UNMOUNTING,"replaceState(...): Cannot update while unmounting component or during an existing state transition (such as within `render`)."),this._pendingState=e,t!==m.MOUNTING&&t!==m.RECEIVING_PROPS){this._compositeLifeCycleState=m.RECEIVING_STATE;var n=this._pendingState;this._pendingState=null;var o=r.ReactReconcileTransaction.getPooled();o.perform(this._receivePropsAndState,this,this.props,n,o),r.ReactReconcileTransaction.release(o),this._compositeLifeCycleState=null}},_receivePropsAndState:function(e,t,n){!this.shouldComponentUpdate||this.shouldComponentUpdate(e,t)?this._performComponentUpdate(e,t,n):(this.props=e,this.state=t)},_performComponentUpdate:function(e,t,n){var o=this.props,r=this.state;this.componentWillUpdate&&this.componentWillUpdate(e,t,n),this.props=e,this.state=t,this.updateComponent(n),this.componentDidUpdate&&n.getReactOnDOMReady().enqueue(this,this.componentDidUpdate.bind(this,o,r))},updateComponent:function(e){var t=this._renderedComponent,n=this._renderValidatedComponent();if(t.constructor===n.constructor)n.props.isStatic||t.receiveProps(n.props,e);else{var o=this._rootNodeID,i=t._rootNodeID;t.unmountComponent();var a=n.mountComponent(o,e);r.DOMIDOperations.dangerouslyReplaceNodeWithMarkupByID(i,a),this._renderedComponent=n}},forceUpdate:function(){var e=r.ReactReconcileTransaction.getPooled();e.perform(this._performComponentUpdate,this,this.props,this.state,e),r.ReactReconcileTransaction.release(e)},_renderValidatedComponent:function(){i.current=this;var e=this.render();return i.current=null,u(r.isValidComponent(e),"%s.render(): A valid ReactComponent must be returned.",this.constructor.displayName||"ReactCompositeComponent"),e},_assertValidProps:function(e){var t=this.constructor.propDeclarations,n=this.constructor.displayName;for(var o in t){var r=t[o];r&&r(e,o,n)}},_bindAutoBindMethods:function(){for(var e in this.__reactAutoBindMap)if(this.__reactAutoBindMap.hasOwnProperty(e)){var t=this.__reactAutoBindMap[e];this[e]=this._bindAutoBindMethod(t)}},_bindAutoBindMethod:function(e){function t(t,i,a,s,c,l){return u("undefined"==typeof l,"React.autoBind(...): Methods can only take a maximum of 5 arguments."),n._lifeCycleState===r.LifeCycle.MOUNTED?e.call(n,t,i,a,s,c):(o||(o=!0),void 0)}var n=this,o=!1;return t}},g=function(){};p(g,r.Mixin),p(g,a.Mixin),p(g,s.Mixin),p(g,v);var y={LifeCycle:m,Base:g,createClass:function(e){var t=function(e,t){this.construct(e,t)};t.prototype=new g,t.prototype.constructor=t,n(t,e),u(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");var o=function(e,n){return new t(e,n)};return o.componentConstructor=t,o.originalSpec=e,o},autoBind:function(e){function t(){u(!1,"React.autoBind(...): Attempted to invoke an auto-bound method that was not correctly defined on the class specification.")}return t.__reactAutoBind=e,t}};t.exports=y}()},{"./ReactComponent":3,"./ReactCurrentOwner":7,"./ReactOwner":8,"./ReactPropTransferer":9,"./invariant":10,"./keyMirror":11,"./merge":12,"./mixInto":13}],3:[function(e,t){"use strict";function n(e){console&&console.warn&&console.warn(e)}var o=e("./ExecutionEnvironment"),r=e("./ReactCurrentOwner"),i=e("./ReactDOMIDOperations"),a=e("./ReactMount"),s=e("./ReactOwner"),u=e("./ReactReconcileTransaction"),c=e("./invariant"),l=e("./keyMirror"),p=e("./merge"),d="{owner}",h=l({MOUNTED:null,UNMOUNTED:null}),f={isValidComponent:function(e){return!(!e||"function"!=typeof e.mountComponentIntoNode||"function"!=typeof e.receiveProps)},LifeCycle:h,DOMIDOperations:i,ReactReconcileTransaction:u,setDOMOperations:function(e){f.DOMIDOperations=e},setReactReconcileTransaction:function(e){f.ReactReconcileTransaction=e},Mixin:{getDOMNode:function(){c(o.canUseDOM,"getDOMNode(): The DOM is not supported in the current environment."),c(this._lifeCycleState===h.MOUNTED,"getDOMNode(): A component must be mounted to have a DOM node.");var e=this._rootNode;return e||(e=document.getElementById(this._rootNodeID),e||(e=a.findReactRenderedDOMNodeSlow(this._rootNodeID)),this._rootNode=e),e},setProps:function(e){this.replaceProps(p(this.props,e))},replaceProps:function(e){c(!this.props[d],"replaceProps(...): You called `setProps` or `replaceProps` on a component with an owner. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created.");var t=f.ReactReconcileTransaction.getPooled();t.perform(this.receiveProps,this,e,t),f.ReactReconcileTransaction.release(t)},construct:function(e,t){this.props=e||{},"undefined"!=typeof t&&(this.props.children=t),this.props[d]=r.current,this._lifeCycleState=h.UNMOUNTED},mountComponent:function(e){c(this._lifeCycleState===h.UNMOUNTED,"mountComponent(%s, ...): Can only mount an unmounted component.",e);var t=this.props;null!=t.ref&&s.addComponentAsRefTo(this,t.ref,t[d]),this._rootNodeID=e,this._lifeCycleState=h.MOUNTED},unmountComponent:function(){c(this._lifeCycleState===h.MOUNTED,"unmountComponent(): Can only unmount a mounted component.");var e=this.props;null!=e.ref&&s.removeComponentAsRefFrom(this,e.ref,e[d]),this._rootNode=null,this._rootNodeID=null,this._lifeCycleState=h.UNMOUNTED},receiveProps:function(e){c(this._lifeCycleState===h.MOUNTED,"receiveProps(...): Can only update a mounted component.");var t=this.props;(e[d]!==t[d]||e.ref!==t.ref)&&(null!=t.ref&&s.removeComponentAsRefFrom(this,t.ref,t[d]),null!=e.ref&&s.addComponentAsRefTo(this,e.ref,e[d]))},mountComponentIntoNode:function(e,t){var n=f.ReactReconcileTransaction.getPooled();n.perform(this._mountComponentIntoNode,this,e,t,n),f.ReactReconcileTransaction.release(n)},_mountComponentIntoNode:function(e,t,n){var o=Date.now(),r=this.mountComponent(e,n);a.totalInstantiationTime+=Date.now()-o;var i=Date.now(),s=t.parentNode;if(s){var u=t.nextSibling;s.removeChild(t),t.innerHTML=r,u?s.insertBefore(t,u):s.appendChild(t)}else t.innerHTML=r;a.totalInjectionTime+=Date.now()-i},unmountComponentFromNode:function(e){for(this.unmountComponent();e.lastChild;)e.removeChild(e.lastChild)},isOwnedBy:function(e){return this.props[d]===e}}};f.Mixin.update=function(e){n("this.update() is deprecated. Use this.setProps()"),this.setProps(e)},f.Mixin.updateAll=function(e){n("this.updateAll() is deprecated. Use this.replaceProps()"),this.replaceProps(e)},t.exports=f},{"./ExecutionEnvironment":14,"./ReactCurrentOwner":7,"./ReactDOMIDOperations":15,"./ReactMount":5,"./ReactOwner":8,"./ReactReconcileTransaction":16,"./invariant":10,"./keyMirror":11,"./merge":12}],4:[function(e,t){"use strict";function n(e,t){var n=function(e,t){this.construct(e,t)};return n.prototype=new o(e,t),n.prototype.constructor=n,function(e,t){return new n(e,t)}}var o=e("./ReactNativeComponent"),r=e("./mergeInto"),i=e("./objMapKeyVal"),a=i({a:!1,abbr:!1,address:!1,audio:!1,b:!1,body:!1,br:!0,button:!1,code:!1,col:!0,colgroup:!1,dd:!1,div:!1,section:!1,dl:!1,dt:!1,em:!1,embed:!0,fieldset:!1,footer:!1,form:!1,h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1,header:!1,hr:!0,i:!1,iframe:!1,img:!0,input:!0,label:!1,legend:!1,li:!1,line:!1,nav:!1,object:!1,ol:!1,optgroup:!1,option:!1,p:!1,param:!0,pre:!1,select:!1,small:!1,source:!1,span:!1,sub:!1,sup:!1,strong:!1,table:!1,tbody:!1,td:!1,textarea:!1,tfoot:!1,th:!1,thead:!1,time:!1,title:!1,tr:!1,u:!1,ul:!1,video:!1,wbr:!1,circle:!1,g:!1,path:!1,polyline:!1,rect:!1,svg:!1,text:!1},n),s={injectComponentClasses:function(e){r(a,e)}};a.injection=s,t.exports=a},{"./ReactNativeComponent":17,"./mergeInto":18,"./objMapKeyVal":19}],5:[function(e,t){!function(){"use strict";function n(e){return e.firstChild&&e.firstChild.id}var o=e("./ReactEvent"),r=e("./ReactInstanceHandles"),i=e("./ReactEventTopLevelCallback"),a=e("./$"),s=0,u={},c={},l={totalInstantiationTime:0,totalInjectionTime:0,useTouchEvents:!1,scrollMonitor:function(e,t){t()},prepareTopLevelEvents:function(e){o.ensureListening(l.useTouchEvents,e)},renderComponent:function(e,t){var o=u[n(t)];if(o){var r=e.props;return l.scrollMonitor(t,function(){o.replaceProps(r)}),o}l.prepareTopLevelEvents(i);var a=l.registerContainer(t);return u[a]=e,e.mountComponentIntoNode(a,t),e},createComponentRenderer:function(e){return function(t){return l.renderComponent(e,t)}},constructAndRenderComponent:function(e,t,n){return l.renderComponent(e(t),n)},constructAndRenderComponentByID:function(e,t,n){return l.constructAndRenderComponent(e,t,a(n))},registerContainer:function(e){var t=n(e);return t&&(t=r.getReactRootIDFromNodeID(t)),t||(t=r.getReactRootID(s++)),c[t]=e,t},unmountAndReleaseReactRootNode:function(e){var t=n(e),o=u[t];o.unmountComponentFromNode(e),delete u[t],delete c[t]},findReactContainerForID:function(e){var t=r.getReactRootIDFromNodeID(e);return c[t]},findReactRenderedDOMNodeSlow:function(e){var t=l.findReactContainerForID(e);return r.findComponentRoot(t,e)}};t.exports=l}()},{"./ReactEvent":20,"./ReactInstanceHandles":21,"./ReactEventTopLevelCallback":22,"./$":23}],6:[function(e,t){"use strict";function n(){s.injection.injectEventPluginOrder(i),s.injection.injectInstanceHandle(u),s.injection.injectEventPluginsByName({SimpleEventPlugin:c,EnterLeaveEventPlugin:a}),o.injection.injectComponentClasses({form:r})}var o=e("./ReactDOM"),r=e("./ReactDOMForm"),i=e("./DefaultEventPluginOrder"),a=e("./EnterLeaveEventPlugin"),s=e("./EventPluginHub"),u=e("./ReactInstanceHandles"),c=e("./SimpleEventPlugin");t.exports={inject:n}},{"./ReactDOM":4,"./ReactDOMForm":24,"./DefaultEventPluginOrder":25,"./EnterLeaveEventPlugin":26,"./EventPluginHub":27,"./ReactInstanceHandles":21,"./SimpleEventPlugin":28}],7:[function(e,t){"use strict";var n={current:null};t.exports=n},{}],10:[function(e,t){function n(e){if(!e)throw new Error("Invariant Violation")}t.exports=n},{}],13:[function(e,t){"use strict";var n=function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e.prototype[n]=t[n])};t.exports=n},{}],14:[function(e,t){!function(){"use strict";var e="undefined"!=typeof window,n={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,isInWorker:!e,global:new Function("return this;")()};t.exports=n}()},{}],19:[function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o=0,r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.call(n,i,e[i],o++));return r}t.exports=n},{}],8:[function(e,t){"use strict";var n=e("./invariant"),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,r){n(o.isValidOwner(r),"addComponentAsRefTo(...): Only a ReactOwner can have refs."),r.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,r){n(o.isValidOwner(r),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs."),r.refs[t]===e&&r.detachRef(t)},Mixin:{attachRef:function(e,t){n(t.isOwnedBy(this),"attachRef(%s, ...): Only a component's owner can store a ref to it.",e);var o=this.refs||(this.refs={});o[e]=t},detachRef:function(e){delete this.refs[e]}}};t.exports=o},{"./invariant":10}],9:[function(e,t){"use strict";function n(e){return function(t,n,o){t[n]=t.hasOwnProperty(n)?e(t[n],o):o}}var o=e("./emptyFunction"),r=e("./joinClasses"),i=e("./merge"),a={ref:o,className:n(r),style:n(i)},s={TransferStrategies:a,Mixin:{transferPropsTo:function(e){var t={};for(var n in e.props)e.props.hasOwnProperty(n)&&(t[n]=e.props[n]);for(var o in this.props)if(this.props.hasOwnProperty(o)){var r=a[o];r?r(t,o,this.props[o]):t.hasOwnProperty(o)||(t[o]=this.props[o])}return e.props=t,e}}};t.exports=s},{"./emptyFunction":29,"./joinClasses":30,"./merge":12}],11:[function(e,t){"use strict";var n=e("./throwIf"),o="NOT_OBJECT_ERROR",r=function(e){var t,r={};n(!(e instanceof Object)||Array.isArray(e),o);for(t in e)e.hasOwnProperty(t)&&(r[t]=t);return r};t.exports=r},{"./throwIf":31}],12:[function(e,t){"use strict";var n=e("./mergeInto"),o=function(e,t){var o={};return n(o,e),n(o,t),o};t.exports=o},{"./mergeInto":18}],15:[function(e,t){!function(){"use strict";var n=e("./CSSPropertyOperations"),o=e("./DOMChildrenOperations"),r=e("./DOMPropertyOperations"),i=e("./ReactDOMNodeCache"),a=e("./getTextContentAccessor"),s=e("./invariant"),u={content:"`content` must be set using `updateTextContentByID()`.",dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c=a()||"NA",l={updatePropertyByID:function(e,t,n){var o=i.getCachedNodeByID(e);s(!u.hasOwnProperty(t),"updatePropertyByID(...): %s",u[t]),r.setValueForProperty(o,t,n)},updatePropertiesByID:function(e,t){for(var n in t)t.hasOwnProperty(n)&&l.updatePropertiesByID(e,n,t[n])},updateStylesByID:function(e,t){var o=i.getCachedNodeByID(e);n.setValueForStyles(o,t)},updateInnerHTMLByID:function(e,t){var n=i.getCachedNodeByID(e);n.innerHTML=(t&&t.__html||"").replace(/^ /g,"&nbsp;")},updateTextContentByID:function(e,t){var n=i.getCachedNodeByID(e);n[c]=t},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getCachedNodeByID(e);o.dangerouslyReplaceNodeWithMarkup(n,t),i.purgeEntireCache()},manageChildrenByParentID:function(e,t){var n=i.getCachedNodeByID(e);o.manageChildren(n,t),i.purgeEntireCache()},setTextNodeValueAtIndexByParentID:function(e,t,n){var r=i.getCachedNodeByID(e);o.setTextNodeValueAtIndex(r,t,n)}};t.exports=l}()},{"./CSSPropertyOperations":32,"./DOMChildrenOperations":33,"./DOMPropertyOperations":34,"./ReactDOMNodeCache":35,"./getTextContentAccessor":36,"./invariant":10}],16:[function(e,t){"use strict";function n(){this.reinitializeTransaction(),this.reactOnDOMReady=s.getPooled(null)}var o=e("./ExecutionEnvironment"),r=e("./PooledClass"),i=e("./ReactEvent"),a=e("./ReactInputSelection"),s=e("./ReactOnDOMReady"),u=e("./Transaction"),c=e("./mixInto"),l={initialize:a.getSelectionInformation,close:a.restoreSelection},p={initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},d={initialize:function(){this.reactOnDOMReady.reset()},close:function(){this.reactOnDOMReady.notifyAll()}},h=[l,p,d],f={getTransactionWrappers:function(){return o.canUseDOM?h:[]},getReactOnDOMReady:function(){return this.reactOnDOMReady},destructor:function(){s.release(this.reactOnDOMReady),this.reactOnDOMReady=null}};c(n,u.Mixin),c(n,f),r.addPoolingTo(n),t.exports=n},{"./ExecutionEnvironment":14,"./PooledClass":37,"./ReactEvent":20,"./ReactInputSelection":38,"./ReactOnDOMReady":39,"./Transaction":40,"./mixInto":13}],17:[function(e,t){"use strict";function n(e){if(e){var t=null!=e.children?1:0,n=null!=e.content?1:0,o=null!=e.dangerouslySetInnerHTML?1:0;p(1>=t+n+o,"Can only set one of `children`, `props.content`, or `props.dangerouslySetInnerHTML`."),p(null==e.style||"object"==typeof e.style,"The `style` prop expects a mapping from style properties to values, not a string.")}}function o(e,t){this._tagOpen="<"+e+" ",this._tagClose=t?"":"</"+e+">",this.tagName=e.toUpperCase()}var r=e("./CSSPropertyOperations"),i=e("./DOMPropertyOperations"),a=e("./ReactComponent"),s=e("./ReactEvent"),u=e("./ReactMultiChild"),c=e("./escapeTextForBrowser"),l=e("./flattenChildren"),p=e("./invariant"),d=e("./keyOf"),h=e("./merge"),f=e("./mixInto"),m=s.putListener,v=s.registrationNames,g={string:!0,number:!0},y=d({content:null}),E=d({dangerouslySetInnerHTML:null}),C=d({style:null});o.Mixin={mountComponent:function(e,t){return a.Mixin.mountComponent.call(this,e,t),n(this.props),this._createOpenTagMarkup()+this._createContentMarkup(t)+this._tagClose},_createOpenTagMarkup:function(){var e=this.props,t=this._tagOpen;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(null!=o)if(v[n])m(this._rootNodeID,n,o);else{n===C&&(o&&(o=e.style=h(e.style)),o=r.createMarkupForStyles(o));var a=i.createMarkupForProperty(n,o);a&&(t+=" "+a)}}return t+' id="'+this._rootNodeID+'">'},_createContentMarkup:function(e){var t=this.props.dangerouslySetInnerHTML;if(null!=t){if(null!=t.__html)return t.__html}else{var n=null!=this.props.content?this.props.content:g[typeof this.props.children]?this.props.children:null,o=null!=n?null:this.props.children;if(null!=n)return c(n);if(null!=o)return this.mountMultiChild(l(o),e)}return""},receiveProps:function(e,t){p(this._rootNodeID,"Trying to control a native dom element without a backing id"),n(e),a.Mixin.receiveProps.call(this,e,t),this._updateDOMProperties(e),this._updateDOMChildren(e,t),this.props=e},_updateDOMProperties:function(e){var t=this.props;for(var n in e){var o=e[n],r=t[n];if(e.hasOwnProperty(n)&&o!==r)if(n===C){o&&(o=e.style=h(o));var i;for(var s in o)o.hasOwnProperty(s)&&(r&&r[s]===o[s]||(i||(i={}),i[s]=o[s]));i&&a.DOMIDOperations.updateStylesByID(this._rootNodeID,i)}else if(n===E){var u=r&&r.__html,c=o&&o.__html;u!==c&&a.DOMIDOperations.updateInnerHTMLByID(this._rootNodeID,o)}else n===y?a.DOMIDOperations.updateTextContentByID(this._rootNodeID,""+o):v[n]?m(this._rootNodeID,n,o):a.DOMIDOperations.updatePropertyByID(this._rootNodeID,n,o)}},_updateDOMChildren:function(e,t){var n=typeof this.props.content,o=null==this.props.content||"boolean"===n,r=typeof e.content,i=null==e.content||"boolean"===r,s=o?g[typeof this.props.children]?this.props.children:null:this.props.content,u=i?g[typeof e.children]?e.children:null:e.content,c=null!=s?null:this.props.children,p=null!=u?null:e.children;if(null!=u){var d=null!=c&&null==p;d&&this.updateMultiChild(null,t),s!==u&&a.DOMIDOperations.updateTextContentByID(this._rootNodeID,""+u)}else{var h=null!=s&&null==u;h&&a.DOMIDOperations.updateTextContentByID(this._rootNodeID,""),this.updateMultiChild(l(e.children),t)}},unmountComponent:function(){a.Mixin.unmountComponent.call(this),this.unmountMultiChild(),s.deleteAllListeners(this._rootNodeID)}},f(o,a.Mixin),f(o,o.Mixin),f(o,u.Mixin),t.exports=o},{"./CSSPropertyOperations":32,"./DOMPropertyOperations":34,"./ReactComponent":3,"./ReactEvent":20,"./ReactMultiChild":41,"./escapeTextForBrowser":42,"./flattenChildren":43,"./invariant":10,"./keyOf":44,"./merge":12,"./mixInto":13}],18:[function(e,t){"use strict";function n(e,t){if(r(e),null!=t){r(t);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}var o=e("./mergeHelpers"),r=o.checkMergeObjectArg;t.exports=n},{"./mergeHelpers":45}],20:[function(e,t){"use strict";function n(e,t,n){C(n,t,R.TopLevelCallbackCreator.createTopLevelCallback(e))}function o(e,t,n){D(n,t,R.TopLevelCallbackCreator.createTopLevelCallback(e))}function r(){C(window,"scroll",function(e){e.target===window&&p.refreshAuthoritativeScrollValues()})}function i(){C(window,"resize",function(e){e.target===window&&p.refreshAuthoritativeScrollValues()})}function a(e){v(!M,"listenAtTopLevel(...): Cannot setup top-level listener more than once.");var t=document;r(),i(),n(E.topMouseOver,"mouseover",t),n(E.topMouseDown,"mousedown",t),n(E.topMouseUp,"mouseup",t),n(E.topMouseMove,"mousemove",t),n(E.topMouseOut,"mouseout",t),n(E.topClick,"click",t),n(E.topDoubleClick,"dblclick",t),n(E.topMouseWheel,"mousewheel",t),e&&(n(E.topTouchStart,"touchstart",t),n(E.topTouchEnd,"touchend",t),n(E.topTouchMove,"touchmove",t),n(E.topTouchCancel,"touchcancel",t)),n(E.topKeyUp,"keyup",t),n(E.topKeyPress,"keypress",t),n(E.topKeyDown,"keydown",t),n(E.topChange,"change",t),n(E.topDOMCharacterDataModified,"DOMCharacterDataModified",t),n(E.topMouseWheel,"DOMMouseScroll",t),g("scroll",!0)?o(E.topScroll,"scroll",t):n(E.topScroll,"scroll",window),g("focus",!0)?(o(E.topFocus,"focus",t),o(E.topBlur,"blur",t)):g("focusin")&&(n(E.topFocus,"focusin",t),n(E.topBlur,"focusout",t))}function s(e,t,n,o){var r=h.extractAbstractEvents(e,t,n,o);h.enqueueAbstractEvents(r),h.processAbstractEventQueue()}function u(e){v(f.canUseDOM,"setEnabled(...): Cannot toggle event listening in a Worker thread. This is likely a bug in the framework. Please report immediately."),R.TopLevelCallbackCreator.setEnabled(e)}function c(){return R.TopLevelCallbackCreator.isEnabled()}function l(e,t){v(f.canUseDOM,"ensureListening(...): Cannot toggle event listening in a Worker thread. This is likely a bug in the framework. Please report immediately."),M||(R.TopLevelCallbackCreator=t,a(e),M=!0)}var p=e("./BrowserEnv"),d=e("./EventConstants"),h=e("./EventPluginHub"),f=e("./ExecutionEnvironment"),m=e("./NormalizedEventListener"),v=e("./invariant"),g=e("./isEventSupported"),y=h.registrationNames,E=d.topLevelTypes,C=m.listen,D=m.capture,M=!1,R={TopLevelCallbackCreator:null,handleTopLevel:s,setEnabled:u,isEnabled:c,ensureListening:l,registrationNames:y,putListener:h.putListener,getListener:h.getListener,deleteAllListeners:h.deleteAllListeners,trapBubbledEvent:n,trapCapturedEvent:o};t.exports=R},{"./BrowserEnv":46,"./EventConstants":47,"./EventPluginHub":27,"./ExecutionEnvironment":14,"./NormalizedEventListener":48,"./invariant":10,"./isEventSupported":49}],21:[function(e,t){"use strict";function n(e,t){return e.charAt(t)===c||t===e.length}function o(e){return""===e||e.charAt(0)===c&&e.charAt(e.length-1)!==c}function r(e){var t=s(e);return t&&t.charAt(0)===c}function i(e){return e?e.substr(0,e.lastIndexOf(c)):""}function a(e,t,n,o,r,a){e=e||"",t=t||"",u(e!==t,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e);var s=d.getFirstCommonAncestorID(e,t),c=s===t;u(c||s===e,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,t);for(var l=0,h=c?i:d.nextDescendantID,f=e;r&&f===e||a&&f===t||n(f,c,o),f!==t;f=h(f,t))u(l++<p,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,t)}var s=e("./getDOMNodeID"),u=e("./invariant"),c=".",l=c.length,p=100,d={separator:c,getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(r(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){for(var n=e.firstChild;n;){if(t===n.id)return n;if(0===t.indexOf(n.id))return d.findComponentRoot(n,t);n=n.nextSibling}},getFirstCommonAncestorID:function(e,t){var r=Math.min(e.length,t.length);if(0===r)return"";for(var i=0,a=0;r>=a;a++)if(n(e,a)&&n(t,a))i=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,i);return u(o(s),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,t,s),s},getReactRootID:function(e){return".reactRoot["+e+"]"},getReactRootIDFromNodeID:function(e){var t=/\.reactRoot\[[^\]]+\]/.exec(e);return t&&t[0]},traverseEnterLeave:function(e,t,n,o,r){var i=d.getFirstCommonAncestorID(e,t);i!==e&&a(e,i,n,o,!1,!0),i!==t&&a(i,t,n,r,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(a("",e,t,n,!0,!1),a(e,"",t,n,!1,!0))},nextDescendantID:function(e,t){u(o(e)&&o(t),"nextDescendantID(%s, %s): Received an invalid React DOM ID.",e,t);var r=d.getFirstCommonAncestorID(e,t);if(u(r===e,"nextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,t),e===t)return e;for(var i=e.length+l,a=i;a<t.length&&!n(t,a);a++);return t.substr(0,a)}};t.exports=d},{"./getDOMNodeID":50,"./invariant":10}],22:[function(e,t){!function(){"use strict";var n=e("./ExecutionEnvironment"),o=e("./ReactEvent"),r=e("./ReactInstanceHandles"),i=e("./getDOMNodeID"),a=!0,s={setEnabled:function(e){a=!!e},isEnabled:function(){return a},createTopLevelCallback:function(e){return function(t){if(a){var s=r.getFirstReactDOM(t.target)||n.global,u=i(s),c=t,l=s;o.handleTopLevel(e,c,u,l)}}}};t.exports=s}()},{"./ExecutionEnvironment":14,"./ReactEvent":20,"./ReactInstanceHandles":21,"./getDOMNodeID":50}],23:[function(e,t){function n(e){var t=o(e);if(!t)throw"undefined"==typeof e?e="undefined":null===e&&(e="null"),new Error('Tried to get element "'+e.toString()+'" but it is not present '+"on the page.");return t}var o=e("./ge");t.exports=n},{"./ge":51}],24:[function(e,t){"use strict";var n=e("./ReactCompositeComponent"),o=e("./ReactDOM"),r=e("./ReactEvent"),i=e("./EventConstants"),a=o.form,s=n.createClass({render:function(){return this.transferPropsTo(a(null,this.props.children))},componentDidMount:function(e){r.trapBubbledEvent(i.topLevelTypes.topSubmit,"submit",e)}});t.exports=s},{"./ReactCompositeComponent":2,"./ReactDOM":4,"./ReactEvent":20,"./EventConstants":47}],25:[function(e,t){"use strict";var n=e("./keyOf"),o=[n({ResponderEventPlugin:null}),n({SimpleEventPlugin:null}),n({TapEventPlugin:null}),n({EnterLeaveEventPlugin:null}),n({AnalyticsEventPlugin:null})];t.exports=o},{"./keyOf":44}],26:[function(e,t){!function(){"use strict";var n=e("./EventPropagators"),o=e("./ExecutionEnvironment"),r=e("./AbstractEvent"),i=e("./EventConstants"),a=e("./ReactInstanceHandles"),s=e("./getDOMNodeID"),u=e("./keyOf"),c=i.topLevelTypes,l=a.getFirstReactDOM,p={mouseEnter:{registrationName:u({onMouseEnter:null})},mouseLeave:{registrationName:u({onMouseLeave:null})}},d=function(e,t,i,a){if(e!==c.topMouseOver||!t.relatedTarget&&!t.fromElement){if(e!==c.topMouseOut&&e!==c.topMouseOver)return null;var u,d;if(e===c.topMouseOut?(u=l(t.relatedTarget||t.toElement)||o.global,d=a):(u=a,d=o.global),d!==u){var h=d?s(d):"",f=u?s(u):"",m=r.getPooled(p.mouseLeave,h,e,t),v=r.getPooled(p.mouseEnter,f,e,t);return n.accumulateEnterLeaveDispatches(m,v,h,f),[m,v]}}},h={abstractEventTypes:p,extractAbstractEvents:d};t.exports=h}()},{"./EventPropagators":52,"./ExecutionEnvironment":14,"./AbstractEvent":53,"./EventConstants":47,"./ReactInstanceHandles":21,"./getDOMNodeID":50,"./keyOf":44}],27:[function(e,t){!function(){"use strict";function n(e,t){var n,o=e.phasedRegistrationNames;if(o)for(n in o)o.hasOwnProperty(n)&&(g[o[n]]=t,y.push(o[n]));else e.registrationName&&(g[e.registrationName]=t,y.push(e.registrationName))}function o(e){if(e.type.registrationName)return g[e.type.registrationName];for(var t in e.type.phasedRegistrationNames)if(e.type.phasedRegistrationNames.hasOwnProperty(t)){var n=g[e.type.phasedRegistrationNames[t]];if(n)return n}return null}var r=e("./AbstractEvent"),i=e("./CallbackRegistry"),a=e("./EventPluginUtils"),s=e("./EventPropagators"),u=e("./ExecutionEnvironment"),c=e("./accumulate"),l=e("./forEachAccumulated"),p=e("./keyMirror"),d=e("./merge"),h=e("./throwIf"),f=i.deleteListener,m=p({DOUBLE_REGISTER:null,DOUBLE_ENQUEUE:null,DEPENDENCY_ERROR:null}),v={injectInstanceHandle:function(e){s.injection.injectInstanceHandle(e)},EventPluginOrder:null,injectEventPluginOrder:function(e){v.EventPluginOrder=e,v._recomputePluginsList()},plugins:[],injectEventPluginsByName:function(e){v.pluginsByName=d(v.pluginsByName,e),v._recomputePluginsList()},pluginsByName:{},_recomputePluginsList:function(){var e=function(e,t){var o=v.EventPluginOrder.indexOf(e);if(h(-1===o,m.DEPENDENCY_ERROR+e),!v.plugins[o]){v.plugins[o]=t;for(var r in t.abstractEventTypes){var i=t.abstractEventTypes[r];n(i,t)}}};if(v.EventPluginOrder){var t=v.pluginsByName;for(var o in t)e(o,t[o])}}},g={},y=[],E=[],C=function(e){var t;for(t=0;t<y.length;t++)f(e,y[t])},D=function(e,t,n,o){for(var r,i=v.plugins,a=i.length,s=0;a>s;s++){var u=i[s],l=u&&u.extractAbstractEvents(e,t,n,o);
19
+ l&&(r=c(r,l))}return r},M=function(e){e&&(E=c(E,e))},R=function(e){if(e){var t=o(e),n=t&&t.executeDispatch;a.executeDispatchesInOrder(e,n||a.executeDispatch),r.release(e)}},I=function(){var e=E;E=null,l(e,R)},O={registrationNames:g,registrationNamesArr:y,putListener:i.putListener,getListener:i.getListener,deleteAllListeners:C,extractAbstractEvents:D,enqueueAbstractEvents:M,processAbstractEventQueue:I,injection:v};u.canUseDOM&&(window.EventPluginHub=O),t.exports=O}()},{"./AbstractEvent":53,"./CallbackRegistry":54,"./EventPluginUtils":55,"./EventPropagators":52,"./ExecutionEnvironment":14,"./accumulate":56,"./forEachAccumulated":57,"./keyMirror":11,"./merge":12,"./throwIf":31}],28:[function(e,t){"use strict";var n=e("./AbstractEvent"),o=e("./EventConstants"),r=e("./EventPropagators"),i=e("./keyOf"),a=o.topLevelTypes,s={abstractEventTypes:{mouseDown:{phasedRegistrationNames:{bubbled:i({onMouseDown:!0}),captured:i({onMouseDownCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:i({onMouseUp:!0}),captured:i({onMouseUpCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:i({onMouseMove:!0}),captured:i({onMouseMoveCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:i({onDoubleClick:!0}),captured:i({onDoubleClickCapture:!0})}},click:{phasedRegistrationNames:{bubbled:i({onClick:!0}),captured:i({onClickCapture:!0})}},mouseWheel:{phasedRegistrationNames:{bubbled:i({onMouseWheel:!0}),captured:i({onMouseWheelCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:i({onTouchStart:!0}),captured:i({onTouchStartCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:i({onTouchEnd:!0}),captured:i({onTouchEndCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:i({onTouchCancel:!0}),captured:i({onTouchCancelCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:i({onTouchMove:!0}),captured:i({onTouchMoveCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:i({onKeyUp:!0}),captured:i({onKeyUpCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:i({onKeyPress:!0}),captured:i({onKeyPressCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:i({onKeyDown:!0}),captured:i({onKeyDownCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:i({onFocus:!0}),captured:i({onFocusCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:i({onBlur:!0}),captured:i({onBlurCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:i({onScroll:!0}),captured:i({onScrollCapture:!0})}},change:{phasedRegistrationNames:{bubbled:i({onChange:!0}),captured:i({onChangeCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:i({onSubmit:!0}),captured:i({onSubmitCapture:!0})}},DOMCharacterDataModified:{phasedRegistrationNames:{bubbled:i({onDOMCharacterDataModified:!0}),captured:i({onDOMCharacterDataModifiedCapture:!0})}}},executeDispatch:function(e,t,n){var o=t(e,n);o===!1&&(e.stopPropagation(),e.preventDefault())},extractAbstractEvents:function(e,t,o,i){var u,c=s.topLevelTypesToAbstract[e];if(!c)return null;switch(e){case a.topMouseWheel:u=n.normalizeMouseWheelData(t);break;case a.topScroll:u=n.normalizeScrollDataFromTarget(i);break;case a.topClick:case a.topDoubleClick:case a.topChange:case a.topDOMCharacterDataModified:case a.topMouseDown:case a.topMouseUp:case a.topMouseMove:case a.topTouchMove:case a.topTouchStart:case a.topTouchEnd:u=n.normalizePointerData(t);break;default:u=null}var l=n.getPooled(c,o,e,t,u);return r.accumulateTwoPhaseDispatches(l),l}};s.topLevelTypesToAbstract={topMouseDown:s.abstractEventTypes.mouseDown,topMouseUp:s.abstractEventTypes.mouseUp,topMouseMove:s.abstractEventTypes.mouseMove,topClick:s.abstractEventTypes.click,topDoubleClick:s.abstractEventTypes.doubleClick,topMouseWheel:s.abstractEventTypes.mouseWheel,topTouchStart:s.abstractEventTypes.touchStart,topTouchEnd:s.abstractEventTypes.touchEnd,topTouchMove:s.abstractEventTypes.touchMove,topTouchCancel:s.abstractEventTypes.touchCancel,topKeyUp:s.abstractEventTypes.keyUp,topKeyPress:s.abstractEventTypes.keyPress,topKeyDown:s.abstractEventTypes.keyDown,topFocus:s.abstractEventTypes.focus,topBlur:s.abstractEventTypes.blur,topScroll:s.abstractEventTypes.scroll,topChange:s.abstractEventTypes.change,topSubmit:s.abstractEventTypes.submit,topDOMCharacterDataModified:s.abstractEventTypes.DOMCharacterDataModified},t.exports=s},{"./AbstractEvent":53,"./EventConstants":47,"./EventPropagators":52,"./keyOf":44}],30:[function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var o=1;n>o;o++)t=arguments[o],t&&(e+=" "+t);return e}t.exports=n},{}],31:[function(e,t){"use strict";var n=function(e,t){if(e)throw new Error(t)};t.exports=n},{}],37:[function(e,t){"use strict";var n=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},o=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},r=function(e,t,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,o,r),a}return new i(e,t,n,o,r)},i=function(e){var t=this;e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},a=10,s=n,u=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||s,n.poolSize||(n.poolSize=a),n.release=i,n},c={addPoolingTo:u,oneArgumentPooler:n,twoArgumentPooler:o,fiveArgumentPooler:r};t.exports=c},{}],38:[function(e,t){"use strict";function n(){try{return document.activeElement}catch(e){}}var o={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=n();return{focusedElem:e,selectionRange:o.hasSelectionCapabilities(e)?o.getSelection(e):null}},restoreSelection:function(e){var t=n(),r=e.focusedElem,i=e.selectionRange;t!==r&&document.getElementById(r.id)&&(o.hasSelectionCapabilities(r)&&o.setSelection(r,i),r.focus())},getSelection:function(e){var t;if("true"===e.contentEditable&&window.getSelection){t=window.getSelection().getRangeAt(0);var n=t.commonAncestorContainer;return n&&3===n.nodeType&&(n=n.parentNode),n!==e?{start:0,end:0}:{start:t.startOffset,end:t.endOffset}}if(!document.selection)return{start:e.selectionStart,end:e.selectionEnd};if(t=document.selection.createRange(),t.parentElement()!==e)return{start:0,end:0};var o=e.value.length;if("INPUT"===e.nodeName)return{start:-t.moveStart("character",-o),end:-t.moveEnd("character",-o)};var r=t.duplicate();r.moveToElementText(e),r.setEndPoint("StartToEnd",t);var i=o-r.text.length;return r.setEndPoint("StartToStart",t),{start:o-r.text.length,end:i}},setSelection:function(e,t){var n,o=t.start,r=t.end;if("undefined"==typeof r&&(r=o),document.selection){if("TEXTAREA"===e.tagName){var i=(e.value.slice(0,o).match(/\r/g)||[]).length,a=(e.value.slice(o,r).match(/\r/g)||[]).length;o-=i,r-=i+a}n=e.createTextRange(),n.collapse(!0),n.moveStart("character",o),n.moveEnd("character",r-o),n.select()}else if("true"===e.contentEditable){if(1===e.childNodes.length){n=document.createRange(),n.setStart(e.childNodes[0],o),n.setEnd(e.childNodes[0],r);var s=window.getSelection();s.removeAllRanges(),s.addRange(n)}}else e.selectionStart=o,e.selectionEnd=Math.min(r,e.value.length),e.focus()}};t.exports=o},{}],44:[function(e,t){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=n},{}],46:[function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,browserInfo:null,refreshAuthoritativeScrollValues:function(){n.currentScrollLeft=document.body.scrollLeft+document.documentElement.scrollLeft,n.currentScrollTop=document.body.scrollTop+document.documentElement.scrollTop}};t.exports=n},{}],50:[function(e,t){"use strict";function n(e){if(e.getAttributeNode){var t=e.getAttributeNode("id");return t&&t.value||""}return e.id||""}t.exports=n},{}],51:[function(e,t){function n(e,t,n){return"string"!=typeof e?e:t?o(e,t,n):document.getElementById(e)}function o(e,t,n){var i,a,s;if(r(t)==e)return t;if(t.getElementsByTagName){for(a=t.getElementsByTagName(n||"*"),s=0;s<a.length;s++)if(r(a[s])==e)return a[s]}else for(a=t.childNodes,s=0;s<a.length;s++)if(i=o(e,a[s]))return i;return null}function r(e){var t=e.getAttributeNode&&e.getAttributeNode("id");return t?t.value:null}t.exports=n},{}],54:[function(e,t){"use strict";var n={},o={putListener:function(e,t,o){var r=n[t]||(n[t]={});r[e]=o},getListener:function(e,t){var o=n[t];return o&&o[e]},deleteListener:function(e,t){var o=n[t];o&&delete o[e]},__purge:function(){n={}}};t.exports=o},{}],57:[function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=n},{}],29:[function(e,t){function n(e){return function(){return e}}function o(){}var r=e("./copyProperties");r(o,{thatReturns:n,thatReturnsFalse:n(!1),thatReturnsTrue:n(!0),thatReturnsNull:n(null),thatReturnsThis:function(){return this},thatReturnsArgument:function(e){return e},mustImplement:function(){return function(){}}}),t.exports=o},{"./copyProperties":58}],32:[function(e,t){"use strict";var n=e("./dangerousStyleValue"),o=e("./escapeTextForBrowser"),r=e("./hyphenate"),i=e("./memoizeStringOnly"),a=i(function(e){return o(r(e))}),s={createMarkupForStyles:function(e){var t="";for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];"undefined"!=typeof r&&(t+=a(o)+":",t+=n(o,r)+";")}return t},setValueForStyles:function(e,t){var o=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];o[r]=n(r,i)}}};t.exports=s},{"./dangerousStyleValue":59,"./escapeTextForBrowser":42,"./hyphenate":60,"./memoizeStringOnly":61}],33:[function(e,t){!function(){"use strict";var n=e("./Danger"),o=e("./insertNodeAt"),r=e("./keyOf");e("./throwIf");var i=r({moveFrom:null}),a=r({insertMarkup:null}),s=r({removeAt:null}),u=function(e,t){for(var n,o,r,a=0;a<t.length;a++)o=t[a],i in o?(n=n||[],r=o.moveFrom,n[r]=e.childNodes[r]):s in o&&(n=n||[],r=o.removeAt,n[r]=e.childNodes[r]);return n},c=function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o&&e.removeChild(t[n])}},l=function(e,t,r){for(var u,c,l,p=0;p<t.length;p++)if(l=t[p],i in l)u=r[l.moveFrom],c=l.finalIndex,o(e,u,c);else if(s in l);else if(a in l){c=l.finalIndex;var d=l.insertMarkup;n.dangerouslyInsertMarkupAt(e,d,c)}},p=function(e,t){var n=u(e,t);n&&c(e,n),l(e,t,n)},d=function(e,t,n){e.childNodes[t].nodeValue=n},h={dangerouslyReplaceNodeWithMarkup:n.dangerouslyReplaceNodeWithMarkup,manageChildren:p,setTextNodeValueAtIndex:d};t.exports=h}()},{"./Danger":62,"./insertNodeAt":63,"./keyOf":44,"./throwIf":31}],34:[function(e,t){"use strict";var n=e("./DOMProperty"),o=e("./escapeTextForBrowser"),r=e("./memoizeStringOnly"),i=r(function(e){return o(e)+'="'}),a={createMarkupForProperty:function(e,t){if(n.isStandardName[e]){if(null==t||n.hasBooleanValue[e]&&!t)return"";var r=n.getAttributeName[e];return i(r)+o(t)+'"'}return n.isCustomAttribute(e)?null==t?"":i(e)+o(t)+'"':null},setValueForProperty:function(e,t,o){if(n.isStandardName[t]){var r=n.getMutationMethod[t];if(r)r(e,o);else if(n.mustUseAttribute[t])n.hasBooleanValue[t]&&!o?e.removeAttribute(n.getAttributeName[t]):e.setAttribute(n.getAttributeName[t],o);else{var i=n.getPropertyName[t];n.hasSideEffects[t]&&e[i]===o||(e[i]=o)}}else n.isCustomAttribute(t)&&e.setAttribute(t,o)}};t.exports=a},{"./escapeTextForBrowser":42,"./DOMProperty":64,"./memoizeStringOnly":61}],35:[function(e,t){"use strict";var n=e("./ReactMount"),o={},r={purgeEntireCache:function(){return o={}},getCachedNodeByID:function(e){return o[e]||(o[e]=document.getElementById(e)||n.findReactRenderedDOMNodeSlow(e))}};t.exports=r},{"./ReactMount":5}],36:[function(e,t){"use strict";function n(){return!r&&o.canUseDOM&&(r="innerText"in document.createElement("div")?"innerText":"textContent"),r}var o=e("./ExecutionEnvironment"),r=null;t.exports=n},{"./ExecutionEnvironment":14}],39:[function(e,t){"use strict";function n(e){this._queue=e||null}var o=e("./PooledClass"),r=e("./mixInto");r(n,{enqueue:function(e,t){this._queue=this._queue||[],this._queue.push({component:e,callback:t})},notifyAll:function(){var e=this._queue;if(e){this._queue=null;for(var t=0,n=e.length;n>t;t++){var o=e[t].component,r=e[t].callback;r.call(o,o.getDOMNode())}e.length=0}},reset:function(){this._queue=null},destructor:function(){this.reset()}}),o.addPoolingTo(n),t.exports=n},{"./PooledClass":37,"./mixInto":13}],40:[function(e,t){!function(){"use strict";var n=e("./throwIf"),o="DUAL_TRANSACTION",r="MISSING_TRANSACTION",i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this.timingMetrics||(this.timingMetrics={}),this.timingMetrics.methodInvocationTime=0,this.timingMetrics.wrapperInitTimes?this.timingMetrics.wrapperInitTimes.length=0:this.timingMetrics.wrapperInitTimes=[],this.timingMetrics.wrapperCloseTimes?this.timingMetrics.wrapperCloseTimes.length=0:this.timingMetrics.wrapperCloseTimes=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,r,i,a,s,u,c){n(this.isInTransaction(),o);var l,p=Date.now(),d=null;try{this.initializeAll(),l=e.call(t,r,i,a,s,u,c)}catch(h){d=h}finally{var f=Date.now();this.methodInvocationTime+=f-p;try{this.closeAll()}catch(m){d=d||m}}if(d)throw d;return l},initializeAll:function(){this._isInTransaction=!0;for(var e=this.transactionWrappers,t=this.timingMetrics.wrapperInitTimes,n=null,o=0;o<e.length;o++){var r=Date.now(),i=e[o];try{this.wrapperInitData[o]=i.initialize?i.initialize.call(this):null}catch(s){n=n||s,this.wrapperInitData[o]=a.OBSERVED_ERROR}finally{var u=t[o],c=Date.now();t[o]=(u||0)+(c-r)}}if(n)throw n},closeAll:function(){n(!this.isInTransaction(),r);for(var e=this.transactionWrappers,t=this.timingMetrics.wrapperCloseTimes,o=null,i=0;i<e.length;i++){var s=e[i],u=Date.now(),c=this.wrapperInitData[i];try{c!==a.OBSERVED_ERROR&&s.close&&s.close.call(this,c)}catch(l){o=o||l}finally{var p=Date.now(),d=t[i];t[i]=(d||0)+(p-u)}}if(this.wrapperInitData.length=0,this._isInTransaction=!1,o)throw o}},a={Mixin:i,OBSERVED_ERROR:{}};t.exports=a}()},{"./throwIf":31}],41:[function(e,t){!function(){"use strict";function n(e,t){return e&&t&&e.constructor===t.constructor}var o=e("./ReactComponent"),r={enqueueMarkupAt:function(e,t){this.domOperations=this.domOperations||[],this.domOperations.push({insertMarkup:e,finalIndex:t})},enqueueMove:function(e,t){this.domOperations=this.domOperations||[],this.domOperations.push({moveFrom:e,finalIndex:t})},enqueueUnmountChildByName:function(e,t){o.isValidComponent(t)&&(this.domOperations=this.domOperations||[],this.domOperations.push({removeAt:t._domIndex}),t.unmountComponent&&t.unmountComponent(),delete this._renderedChildren[e])},processChildDOMOperationsQueue:function(){this.domOperations&&(o.DOMIDOperations.manageChildrenByParentID(this._rootNodeID,this.domOperations),this.domOperations=null)},unmountMultiChild:function(){var e=this._renderedChildren;for(var t in e)if(e.hasOwnProperty(t)&&e[t]){var n=e[t];n.unmountComponent&&n.unmountComponent()}this._renderedChildren=null},mountMultiChild:function(e,t){var n="",o=0;for(var r in e){var i=e[r];e.hasOwnProperty(r)&&i&&(n+=i.mountComponent(this._rootNodeID+"."+r,t),i._domIndex=o,o++)}return this._renderedChildren=e,this.domOperations=null,n},updateMultiChild:function(e,t){if(e||this._renderedChildren){e&&!this._renderedChildren?this._renderedChildren={}:!e&&this._renderedChildren&&(e={});var o=this._rootNodeID+".",r=null,i=0,a=0,s=0;for(var u in e)if(e.hasOwnProperty(u)){var c=this._renderedChildren[u],l=e[u];if(n(c,l))r&&(this.enqueueMarkupAt(r,a-i),r=null),i=0,c._domIndex<s&&this.enqueueMove(c._domIndex,a),s=Math.max(c._domIndex,s),!l.props.isStatic&&c.receiveProps(l.props,t),c._domIndex=a;else if(c&&(this.enqueueUnmountChildByName(u,c),s=Math.max(c._domIndex,s)),l){this._renderedChildren[u]=l;var p=l.mountComponent(o+u,t);r=r?r+p:p,i++,l._domIndex=a}a=l?a+1:a}r&&this.enqueueMarkupAt(r,a-i);for(var d in this._renderedChildren)if(this._renderedChildren.hasOwnProperty(d)){var h=this._renderedChildren[d];h&&!e[d]&&this.enqueueUnmountChildByName(d,h)}this.processChildDOMOperationsQueue()}}},i={Mixin:r};t.exports=i}()},{"./ReactComponent":3}],42:[function(e,t){"use strict";function n(e){return o[e]}e("./throwIf");var o={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;","/":"&#x2f;"},r=function(e){var t=typeof e,o="object"===t;return""===e||o?"":"string"===t?e.replace(/[&><"'\/]/g,n):(""+e).replace(/[&><"'\/]/g,n)};t.exports=r},{"./throwIf":31}],43:[function(e,t){"use strict";function n(e){if(null===e||void 0===e)return e;var t={};return u(t,e,""),t}var o=e("./ReactTextComponent"),r=e("./escapeTextForBrowser"),i=e("./throwIf"),a="INVALID_CHILD",s="0",u=function(e,t,n){if(Array.isArray(t))for(var c=0;c<t.length;c++)u(e,t[c],n+"["+c+"]");else{var l=typeof t,p=""===n,d=p?s:n;if(null===t||void 0===t||"boolean"===l)e[d]=null;else if(t.mountComponentIntoNode)e[d]=t;else if("object"===l){i(t&&1===t.nodeType,a);for(var h in t)t.hasOwnProperty(h)&&u(e,t[h],n+"{"+r(h)+"}")}else"string"===l?e[d]=new o(t):"number"===l&&(e[d]=new o(""+t))}};t.exports=n},{"./ReactTextComponent":65,"./escapeTextForBrowser":42,"./throwIf":31}],45:[function(e,t){"use strict";var n=e("./keyMirror"),o=e("./throwIf"),r=36,i=n({MERGE_ARRAY_FAIL:null,MERGE_CORE_FAILURE:null,MERGE_TYPE_USAGE_FAILURE:null,MERGE_DEEP_MAX_LEVELS:null,MERGE_DEEP_NO_ARR_STRATEGY:null}),a=function(e){return"object"!=typeof e||null===e},s={MAX_MERGE_DEPTH:r,isTerminal:a,normalizeMergeArg:function(e){return void 0===e||null===e?{}:e},checkMergeArrayArgs:function(e,t){o(!Array.isArray(e)||!Array.isArray(t),i.MERGE_CORE_FAILURE)},checkMergeObjectArgs:function(e,t){s.checkMergeObjectArg(e),s.checkMergeObjectArg(t)},checkMergeObjectArg:function(e){o(a(e)||Array.isArray(e),i.MERGE_CORE_FAILURE)},checkMergeLevel:function(e){o(e>=r,i.MERGE_DEEP_MAX_LEVELS)},checkArrayStrategy:function(e){o(void 0!==e&&!(e in s.ArrayStrategies),i.MERGE_DEEP_NO_ARR_STRATEGY)},ArrayStrategies:n({Clobber:!0,IndexByIndex:!0}),ERRORS:i};t.exports=s},{"./keyMirror":11,"./throwIf":31}],47:[function(e,t){"use strict";var n=e("./keyMirror"),o=n({bubbled:null,captured:null}),r=n({topBlur:null,topChange:null,topClick:null,topDOMCharacterDataModified:null,topDoubleClick:null,topFocus:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topMouseWheel:null,topScroll:null,topSubmit:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null}),i={topLevelTypes:r,PropagationPhases:o};t.exports=i},{"./keyMirror":11}],48:[function(e,t){"use strict";function n(e){var t=e||window.event,n="target"in t,o=t.target||t.srcElement||window,r=3===o.nodeType?o.parentNode:o;return n&&t.target===r||(t=Object.create(t),t.target=r),t}function o(e){return function(t){e(n(t))}}var r=e("./EventListener"),i={listen:function(e,t,n){r.listen(e,t,o(n))},capture:function(e,t,n){r.capture(e,t,o(n))}};t.exports=i},{"./EventListener":66}],49:[function(e,t){"use strict";function n(e,t){if(!o||t&&!o.addEventListener)return!1;var n=document.createElement("div"),r="on"+e,i=r in n;return i||(n.setAttribute(r,""),i="function"==typeof n[r],"undefined"!=typeof n[r]&&(n[r]=void 0),n.removeAttribute(r)),n=null,i}var o,r=e("./ExecutionEnvironment");r.canUseDOM&&(o=document.createElement("div")),t.exports=n},{"./ExecutionEnvironment":14}],52:[function(e,t){"use strict";function n(e,t,n){var o=t.type.phasedRegistrationNames[n];return f(e,o)}function o(e,t,o){var r=t?m.bubbled:m.captured,i=n(e,o,r);i&&(o._dispatchListeners=d(o._dispatchListeners,i),o._dispatchIDs=d(o._dispatchIDs,e))}function r(e){e&&e.type.phasedRegistrationNames&&v.InstanceHandle.traverseTwoPhase(e.abstractTargetID,o,e)}function i(e,t,n){if(n&&n.type.registrationName){var o=f(e,n.type.registrationName);o&&(n._dispatchListeners=d(n._dispatchListeners,o),n._dispatchIDs=d(n._dispatchIDs,e))}}function a(e){e&&e.type.registrationName&&i(e.abstractTargetID,null,e)}function s(e){h(e,r)}function u(e,t,n,o){v.InstanceHandle.traverseEnterLeave(n,o,i,e,t)}function c(e){h(e,a)}var l=e("./CallbackRegistry"),p=e("./EventConstants"),d=e("./accumulate"),h=e("./forEachAccumulated"),f=l.getListener,m=p.PropagationPhases,v={InstanceHandle:null,injectInstanceHandle:function(e){v.InstanceHandle=e},validate:function(){var e=!v.InstanceHandle||!v.InstanceHandle.traverseTwoPhase||!v.InstanceHandle.traverseEnterLeave;if(e)throw new Error("InstanceHandle not injected before use!")}},g={accumulateTwoPhaseDispatches:s,accumulateDirectDispatches:c,accumulateEnterLeaveDispatches:u,injection:v};t.exports=g},{"./CallbackRegistry":54,"./EventConstants":47,"./accumulate":56,"./forEachAccumulated":57}],53:[function(e,t){"use strict";function n(e,t,n,o,r){this.type=e,this.abstractTargetID=t||"",this.originatingTopLevelEventType=n,this.nativeEvent=o,this.data=r,this.target=o&&o.target,this._dispatchListeners=null,this._dispatchIDs=null,this.isPropagationStopped=!1}var o=e("./BrowserEnv"),r=e("./PooledClass"),i=e("./TouchEventUtils");e("./throwIf");var a=20;n.poolSize=a,n.prototype.destructor=function(){this.target=null,this._dispatchListeners=null,this._dispatchIDs=null},r.addPoolingTo(n,r.fiveArgumentPooler),n.prototype.stopPropagation=function(){this.isPropagationStopped=!0,this.nativeEvent.stopPropagation&&this.nativeEvent.stopPropagation(),this.nativeEvent.cancelBubble=!0},n.prototype.preventDefault=function(){n.preventDefaultOnNativeEvent(this.nativeEvent)},n.preventDefaultOnNativeEvent=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},n.normalizeScrollDataFromTarget=function(e){return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth}},n.normalizeMouseWheelData=function(e){var t=0,n=0,o=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),o=t,void 0!==e.axis&&e.axis===e.HORIZONTAL_AXIS&&(o=0,n=-t),void 0!==e.wheelDeltaY&&(o=e.wheelDeltaY/120),void 0!==e.wheelDeltaX&&(n=-e.wheelDeltaX/120),{delta:t,deltaX:n,deltaY:o}},n.isNativeClickEventRightClick=function(e){return e.which?3===e.which:e.button?2===e.button:!1},n.normalizePointerData=function(e){return{globalX:n.eventPageX(e),globalY:n.eventPageY(e),rightMouseButton:n.isNativeClickEventRightClick(e)}},n.normalizeDragEventData=function(e,t,n,o,r){return{globalX:t,globalY:n,startX:o,startY:r}},n.eventPageY=function(e){var t=i.extractSingleTouch(e);return t?t.pageY:"undefined"!=typeof e.pageY?e.pageY:e.clientY+o.currentPageScrollTop},n.eventPageX=function(e){var t=i.extractSingleTouch(e);return t?t.pageX:"undefined"!=typeof e.pageX?e.pageX:e.clientX+o.currentPageScrollLeft},n.persistentCloneOf=function(e){return new n(e.type,e.abstractTargetID,e.originatingTopLevelEventType,e.nativeEvent,e.data,e.target)},t.exports=n},{"./BrowserEnv":46,"./PooledClass":37,"./TouchEventUtils":67,"./throwIf":31}],55:[function(e,t){"use strict";function n(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function o(e){return e===v.topMouseMove||e===v.topTouchMove}function r(e){return e===v.topMouseDown||e===v.topTouchStart}function i(e,t){var n=f.eventPageX(t),o=f.eventPageY(t);e.pageX=n,e.pageY=o}function a(e,t){var n=f.eventPageX(t),o=f.eventPageY(t);return Math.pow(Math.pow(n-e.pageX,2)+Math.pow(o-e.pageY,2),.5)}function s(e,t){var n=e._dispatchListeners,o=e._dispatchIDs;if(Array.isArray(n)){var r;for(r=0;r<n.length&&!e.isPropagationStopped;r++)t(e,n[r],o[r])}else n&&t(e,n,o)}function u(e,t,n){t(e,n)}function c(e,t){s(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){var o;for(o=0;o<t.length&&!e.isPropagationStopped;o++)if(t[o](e,n[o]))return n[o]}else if(t&&t(e,n))return n;return null}function p(e){var t=e._dispatchListeners,n=e._dispatchIDs;m(!Array.isArray(t),"executeDirectDispatch(...): Invalid `abstractEvent`.");var o=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,o}function d(e){return!!e._dispatchListeners}var h=e("./EventConstants"),f=e("./AbstractEvent"),m=e("./invariant"),v=h.topLevelTypes,g={isEndish:n,isMoveish:o,isStartish:r,storePageCoordsIn:i,eventDistance:a,executeDispatchesInOrder:c,executeDispatchesInOrderStopAtTrue:l,executeDirectDispatch:p,hasDispatches:d,executeDispatch:u};t.exports=g},{"./EventConstants":47,"./AbstractEvent":53,"./invariant":10}],56:[function(e,t){"use strict";function n(e,t){var n=null==e,o=null===t;if(o)return e;if(n)return t;var r=Array.isArray(e),i=Array.isArray(t);return r?e.concat(t):i?[e].concat(t):[e,t]}e("./throwIf"),t.exports=n},{"./throwIf":31}],58:[function(e,t){function n(e,t,n,o,r,i){e=e||{};for(var a,s=[t,n,o,r,i],u=0;s[u];){a=s[u++];for(var c in a)e[c]=a[c];a.hasOwnProperty&&a.hasOwnProperty("toString")&&"undefined"!=typeof a.toString&&e.toString!==a.toString&&(e.toString=a.toString)}return e}t.exports=n},{}],60:[function(e,t){function n(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=n},{}],61:[function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)?t[n]:t[n]=e.call(this,n)}}t.exports=n},{}],63:[function(e,t){"use strict";function n(e,t,n){var o=e.childNodes,r=e.childNodes[n];return r===t?t:(t.parentNode&&t.parentNode.removeChild(t),n>=o.length?e.appendChild(t):e.insertBefore(t,o[n]),t)}t.exports=n},{}],66:[function(e,t){var n={listen:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),void 0):(console.error("You are attempting to use addEventlistener in a browser that does not support it support it.This likely means that you will not receive events that your application relies on (such as scroll)."),void 0)}};t.exports=n},{}],67:[function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,o=t&&t.length>0,r=n&&n.length>0;return!o&&r?n[0]:o?t[0]:e}};t.exports=n},{}],59:[function(e,t){"use strict";function n(e,t){return null===t||t===!1||t===!0||""===t?"":isNaN(t)?t?""+t:"":o.isNumber[e]?""+t:t+"px"}var o=e("./CSSProperty");t.exports=n},{"./CSSProperty":68}],62:[function(e,t){"use strict";function n(e){var t=e.tagName;return s[t]||(s[t]=document.createElement(t))}function o(e,t,n){return n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild)}function r(e,t,n){for(var r,i=t.length,a=0;i>a;a++)r=o(e,t[0],r||n)}function i(e,t,o){var i=n(e);i.innerHTML=t;var a=i.childNodes,s=o?e.childNodes[o-1]:null;r(e,a,s)}function a(e,t){var o=e.parentNode,r=n(o);r.innerHTML=t;var i=r.childNodes;o.replaceChild(i[0],e)}e("./ExecutionEnvironment"),e("./throwIf");var s={},u={dangerouslyInsertMarkupAt:i,dangerouslyReplaceNodeWithMarkup:a};t.exports=u},{"./ExecutionEnvironment":14,"./throwIf":31}],64:[function(e,t){"use strict";var n=e("./invariant"),o={isStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasBooleanValue:{},hasSideEffects:{},isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/)},r=1,i=2,a=4,s=8,u={accept:null,action:null,ajaxify:r,allowFullScreen:r|a,alt:null,autoComplete:null,autoplay:a,cellPadding:null,cellSpacing:null,checked:i|a,className:i,colSpan:null,contentEditable:null,controls:i|a,data:null,dir:null,disabled:i|a,enctype:null,height:null,href:null,htmlFor:null,method:null,multiple:i|a,name:null,poster:null,preload:null,placeholder:null,rel:null,required:a,role:r,scrollLeft:i,scrollTop:i,selected:i|a,spellCheck:null,src:null,style:null,tabIndex:null,target:null,title:null,type:null,value:i|s,width:null,wmode:r,cx:i,cy:i,d:i,fill:i,fx:i,fy:i,points:i,r:i,stroke:i,strokeLinecap:i,strokeWidth:i,transform:i,x:i,x1:i,x2:i,version:i,viewBox:i,y:i,y1:i,y2:i,spreadMethod:i,offset:i,stopColor:i,stopOpacity:i,gradientUnits:i,gradientTransform:i},c={className:"class",htmlFor:"for",strokeLinecap:"stroke-linecap",strokeWidth:"stroke-width",stopColor:"stop-color",stopOpacity:"stop-opacity"},l={autoComplete:"autocomplete",spellCheck:"spellcheck"},p={className:function(e,t){e.className=t||""}};for(var d in u){o.isStandardName[d]=!0,o.getAttributeName[d]=c[d]||d.toLowerCase(),o.getPropertyName[d]=l[d]||d;var h=p[d];h&&(o.getMutationMethod[d]=h);var f=u[d];o.mustUseAttribute[d]=f&r,o.mustUseProperty[d]=f&i,o.hasBooleanValue[d]=f&a,o.hasSideEffects[d]=f&s,n(!o.mustUseAttribute[d]||!o.mustUseProperty[d],"DOMProperty: Cannot use require using both attribute and property: %s",d),n(o.mustUseProperty[d]||!o.hasSideEffects[d],"DOMProperty: Properties that have side effects must use property: %s",d)}t.exports=o},{"./invariant":10}],65:[function(e,t){"use strict";var n=e("./ReactComponent"),o=e("./escapeTextForBrowser"),r=e("./mixInto"),i=function(e){this.construct({text:e})};r(i,n.Mixin),r(i,{mountComponent:function(e){return n.Mixin.mountComponent.call(this,e),'<span id="'+e+'">'+o(this.props.text)+"</span>"},receiveProps:function(e){e.text!==this.props.text&&(this.props.text=e.text,n.DOMIDOperations.updateTextContentByID(this._rootNodeID,e.text))}}),t.exports=i},{"./ReactComponent":3,"./escapeTextForBrowser":42,"./mixInto":13}],68:[function(e,t){"use strict";var n={fillOpacity:!0,fontWeight:!0,opacity:!0,orphans:!0,textDecoration:!0,zIndex:!0,zoom:!0},o={isNumber:n};t.exports=o},{}]},{},[1])(1)});
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reactjs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Maksim Berjoza
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email:
15
+ - maksim.berjoza@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/reactjs-rails/engine.rb
21
+ - lib/reactjs-rails/version.rb
22
+ - lib/reactjs-rails.rb
23
+ - vendor/assets/javascripts/jsxtransformer.js
24
+ - vendor/assets/javascripts/react.js
25
+ - vendor/assets/javascripts/react.min.js
26
+ - README.md
27
+ homepage: https://github.com/torbjon/reactjs-rails
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.0.3
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: React a JavaScript library for building user interfaces with Rails asset
51
+ pipeline
52
+ test_files: []