UNPKG

react-typeahead-tokenizer

Version:

React-based typeahead and typeahead-tokenizer

1 lines 43.3 kB
!function(e,t){for(var n in t)e[n]=t[n]}(exports,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=40)}([function(e,t,n){"use strict";function r(e,t,n,r,s,a,u,i){if(o(t),!e){var l;if(void 0===t)l=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,s,a,u,i],p=0;l=new Error(t.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var s=n(7),a=n(13),u=(n(6),n(16),Object.prototype.hasOwnProperty),i=n(14),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(e,t,n,r,o,s,a){var u={$$typeof:i,type:e,key:t,ref:n,props:a,_owner:s};return u};c.createElement=function(e,t,n){var s,i={},p=null,f=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(p=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(s in t)u.call(t,s)&&!l.hasOwnProperty(s)&&(i[s]=t[s])}var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];i.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(s in m)void 0===i[s]&&(i[s]=m[s])}return c(e,p,f,0,0,a.current,i)},c.createFactory=function(e){var t=c.createElement.bind(null,e);return t.type=e,t},c.cloneAndReplaceKey=function(e,t){return c(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},c.cloneElement=function(e,t,n){var i,p=s({},e.props),f=e.key,d=e.ref,h=(e._self,e._source,e._owner);if(null!=t){r(t)&&(d=t.ref,h=a.current),o(t)&&(f=""+t.key);var y;e.type&&e.type.defaultProps&&(y=e.type.defaultProps);for(i in t)u.call(t,i)&&!l.hasOwnProperty(i)&&(void 0===t[i]&&void 0!==y?p[i]=y[i]:p[i]=t[i])}var m=arguments.length-2;if(1===m)p.children=n;else if(m>1){for(var v=Array(m),b=0;b<m;b++)v[b]=arguments[b+2];p.children=v}return c(e.type,f,d,0,0,h,p)},c.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},e.exports=c},function(e,t,n){function r(){for(var e,t="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+r.apply(null,e);else if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&e[o]&&(t+=" "+o);return t.substr(1)}var o,s;void 0!==e&&e.exports&&(e.exports=r),o=[],void 0!==(s=function(){return r}.apply(t,o))&&(e.exports=s)},function(e,t,n){e.exports=n(26)()},function(e,t,n){"use strict";e.exports=n(30)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(5),o=r;e.exports=o},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,i=r(e),l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var c in n)s.call(n,c)&&(i[c]=n[c]);if(o){u=o(n);for(var p=0;p<u.length;p++)a.call(n,u[p])&&(i[u[p]]=n[u[p]])}}return i}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!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},l=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=n(4),p=r(c),f=n(3),d=r(f),h=n(2),y=r(h),m=n(21),v=r(m),b=n(23),g=r(b),_=function(e){function t(e,n){s(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._onOptionSelected=function(e,t){var n=r.entry;return n.focus(),r.setState({searchResults:r.getOptionsForValue(e,r.props.options),selection:e,entryValue:e,showResults:!1}),n.blur(),r.props.onOptionSelected(e,t)},r._onTextEntryUpdated=function(){var e=r.entry.value;r.setState({searchResults:r.getOptionsForValue(e,r.props.options),selection:"",entryValue:e})},r._onEnter=function(e){var t=r.getSelection();return t?r._onOptionSelected(t,e):r.props.onKeyDown(e)},r._onEscape=function(){r.setState({selectionIndex:null})},r._onTab=function(e){var t=r.getSelection(),n=t||(r.state.searchResults.length>0?r.state.searchResults[0]:null);if(null===n&&r._hasCustomValue()&&(n=r._getCustomValue()),null!==n)return r._onOptionSelected(n,e)},r.navDown=function(){r._nav(1)},r.navUp=function(){r._nav(-1)},r._onChange=function(e){r.props.onChange&&r.props.onChange(e),r._onTextEntryUpdated()},r._onKeyDown=function(e){if(!r._hasHint()||e.shiftKey)return r.props.onKeyDown(e);var t=r.eventMap()[e.keyCode];if(!t)return r.props.onKeyDown(e);t(e),e.preventDefault()},r._onFocus=function(e){if(r.setState({isFocused:!0,showResults:!0},function(){return r._onTextEntryUpdated()}),r.props.onFocus)return r.props.onFocus(e)},r._onBlur=function(e){if(r.setState({isFocused:!1},function(){return r._onTextEntryUpdated()}),r.props.onBlur)return r.props.onBlur(e)},r.state={searchResults:r.getOptionsForValue(e.initialValue,e.options),entryValue:e.value||e.initialValue,selection:e.value,selectionIndex:null,isFocused:!1,showResults:!1},r}return u(t,e),l(t,[{key:"_shouldSkipSearch",value:function(e){var t=!e||0==e.trim().length,n=this.state&&this.state.isFocused;return!(this.props.showOptionsWhenEmpty&&n)&&t}},{key:"getOptionsForValue",value:function(e,t){return this._shouldSkipSearch(e)?[]:this._generateSearchFunction()(e,t)}},{key:"setEntryText",value:function(e){this.entry.value=e,this._onTextEntryUpdated()}},{key:"focus",value:function(){this.entry.focus()}},{key:"_hasCustomValue",value:function(){return this.props.allowCustomValues>0&&this.state.entryValue.length>=this.props.allowCustomValues&&this.state.searchResults.indexOf(this.state.entryValue)<0}},{key:"_getCustomValue",value:function(){return this._hasCustomValue()?this.state.entryValue:null}},{key:"_renderIncrementalSearchResults",value:function(){var e=this;return this._shouldSkipSearch(this.state.entryValue)?"":this.state.selection?"":p.default.createElement(v.default,{ref:function(t){return e.sel=t},options:this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible):this.state.searchResults,areResultsTruncated:this.props.maxVisible&&this.state.searchResults.length>this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._onOptionSelected,allowCustomValues:this.props.allowCustomValues,customValue:this._getCustomValue(),customClasses:this.props.customClasses,selectionIndex:this.state.selectionIndex,defaultClassNames:this.props.defaultClassNames})}},{key:"getSelection",value:function(){var e=this.state.selectionIndex;if(this._hasCustomValue()){if(0===e)return this.state.entryValue;e--}return this.state.searchResults[e]}},{key:"eventMap",value:function(){return{38:this.navUp,40:this.navDown,13:this._onEnter,27:this._onEscape,9:this._onTab}}},{key:"_nav",value:function(e){if(this._hasHint()){var t=null===this.state.selectionIndex?1==e?0:e:this.state.selectionIndex+e,n=this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible).length:this.state.searchResults.length;this._hasCustomValue()&&(n+=1),t<0?t+=n:t>=n&&(t-=n),this.setState({selectionIndex:t})}}},{key:"componentWillReceiveProps",value:function(e){this.setState({searchResults:this.getOptionsForValue(this.state.entryValue,e.options)})}},{key:"_renderHiddenInput",value:function(){return this.props.name?p.default.createElement("input",{type:"hidden",name:this.props.name,value:this.state.selection}):null}},{key:"_generateSearchFunction",value:function(){var e=this.props.searchOptions;return"function"==typeof e?e:function(e,t){return g.default.filter(e,t,{extract:function(e){return e}}).map(function(e){return t[e.index]})}}},{key:"_hasHint",value:function(){return this.state.searchResults.length>0||this._hasCustomValue()}},{key:"render",value:function(){var e=this,t=(0,y.default)(o({},this.props.customClasses.input,!!this.props.customClasses.input)),n=(0,y.default)(o({typeahead:this.props.defaultClassNames},this.props.className,!!this.props.className));return p.default.createElement("div",{className:n},this._renderHiddenInput(),p.default.createElement("input",i({ref:function(t){return e.entry=t},type:"text",disabled:this.props.disabled},this.props.inputProps,{placeholder:this.props.placeholder,className:t,value:this.state.entryValue,onChange:this._onChange,onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this._onFocus,onBlur:this._onBlur})),this.state.showResults&&this._renderIncrementalSearchResults())}}]),t}(c.Component);_.defaultProps={options:[],customClasses:{},allowCustomValues:0,initialValue:"",value:"",placeholder:"",disabled:!1,inputProps:{},onOptionSelected:function(e){},onChange:function(e){},onKeyDown:function(e){},onKeyPress:function(e){},onKeyUp:function(e){},onFocus:function(e){},onBlur:function(e){},defaultClassNames:!0,showOptionsWhenEmpty:!1,resultsTruncatedMessage:null},_.propTypes={name:d.default.string,customClasses:d.default.object,maxVisible:d.default.number,resultsTruncatedMessage:d.default.string,options:d.default.array,allowCustomValues:d.default.number,initialValue:d.default.string,value:d.default.string,placeholder:d.default.string,disabled:d.default.bool,inputProps:d.default.object,onOptionSelected:d.default.func,onChange:d.default.func,onKeyDown:d.default.func,onKeyPress:d.default.func,onKeyUp:d.default.func,onFocus:d.default.func,onBlur:d.default.func,defaultClassNames:d.default.bool,showOptionsWhenEmpty:d.default.bool},t.default=_},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||i}function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||i}function s(){}var a=n(8),u=n(7),i=n(15),l=(n(16),n(10));n(0),n(37);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};s.prototype=r.prototype,o.prototype=new s,o.prototype.constructor=o,u(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";var r={current:null};e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";var r=(n(6),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});e.exports=r},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Tokenizer=t.Typeahead=void 0;var o=n(9),s=r(o),a=n(18),u=r(a);t.Typeahead=s.default,t.Tokenizer=u.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),l=n(4),c=r(l),p=n(3),f=r(p),d=n(19),h=r(d),y=n(9),m=r(y),v=n(2),b=r(v),g=function(e,t){if(e.length!=t.length)return!0;for(var n=t.length-1;n>=0;n--)if(t[n]!==e[n])return!0},_=function(e){function t(e,n){s(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._onKeyDown=function(e){if(8===e.keyCode)return r._handleBackspace(e);r.props.onKeyDown(e)},r._handleBackspace=function(e){if(r.state.selected.length){var t=r.typeahead.entry;t.selectionStart==t.selectionEnd&&0==t.selectionStart&&(r._removeTokenForValue(r.state.selected[r.state.selected.length-1]),e.preventDefault())}},r._removeTokenForValue=function(e){var t=r.state.selected.indexOf(e);-1!=t&&(r.state.selected.splice(t,1),r.setState({selected:r.state.selected}),r.props.onTokenRemove(e))},r._addTokenForValue=function(e){-1==r.state.selected.indexOf(e)&&(r.state.selected.push(e),r.setState({selected:r.state.selected}),r.typeahead.setEntryText(""),r.typeahead.entry.blur(),r.typeahead.entry.focus(),r.props.onTokenAdd(e))},r.state={selected:e.defaultSelected.slice(0)},r}return u(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){g(this.props.defaultSelected,e.defaultSelected)&&this.setState({selected:e.defaultSelected.slice(0)})}},{key:"focus",value:function(){this.typeahead.focus()}},{key:"getSelectedTokens",value:function(){return this.state.selected}},{key:"_renderTokens",value:function(){var e=this,t=(0,b.default)(o({},this.props.customClasses.token,!!this.props.customClasses.token));return this.state.selected.map(function(n,r){return c.default.createElement(h.default,{key:r,className:t,onRemove:e._removeTokenForValue,object:n,value:n,name:e.props.name},n)})}},{key:"_getOptionsForTypeahead",value:function(){return this.props.options}},{key:"render",value:function(){var e=this,t=(0,b.default)(o({},this.props.customClasses.typeahead,!!this.props.customClasses.typeahead)),n=[this.props.defaultClassNames&&"typeahead-tokenizer"];n[this.props.className]=!!this.props.className;var r=(0,b.default)(n);return c.default.createElement("div",{className:r},this._renderTokens(),c.default.createElement(m.default,{ref:function(t){return e.typeahead=t},className:t,placeholder:this.props.placeholder,disabled:this.props.disabled,inputProps:this.props.inputProps,allowCustomValues:this.props.allowCustomValues,customClasses:this.props.customClasses,options:this._getOptionsForTypeahead(),initialValue:this.props.initialValue,maxVisible:this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._addTokenForValue,onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this.props.onFocus,onBlur:this.props.onBlur,defaultClassNames:this.props.defaultClassNames}))}}]),t}(l.Component);_.defaultProps={options:[],defaultSelected:[],customClasses:{},allowCustomValues:0,initialValue:"",placeholder:"",disabled:!1,inputProps:{},defaultClassNames:!0,onKeyDown:function(e){},onKeyPress:function(e){},onKeyUp:function(e){},onFocus:function(e){},onBlur:function(e){},onTokenAdd:function(){},onTokenRemove:function(){}},_.propTypes={name:f.default.string,options:f.default.array,customClasses:f.default.object,allowCustomValues:f.default.number,defaultSelected:f.default.array,initialValue:f.default.string,placeholder:f.default.string,disabled:f.default.bool,inputProps:f.default.object,onTokenRemove:f.default.func,onKeyDown:f.default.func,onKeyPress:f.default.func,onKeyUp:f.default.func,onTokenAdd:f.default.func,onFocus:f.default.func,onBlur:f.default.func,maxVisible:f.default.number,resultsTruncatedMessage:f.default.string,defaultClassNames:f.default.bool},t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}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)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),i=n(4),l=r(i),c=n(3),p=(r(c),n(2)),f=r(p),d=function(e){function t(e){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),u(t,[{key:"_renderHiddenInput",value:function(){return this.props.name?l.default.createElement("input",{type:"hidden",name:this.props.name+"[]",value:this.props.value||this.props.object}):null}},{key:"_renderCloseButton",value:function(){var e=this;return this.props.onRemove?l.default.createElement("a",{className:"typeahead-token-close",href:"#",onClick:function(t){e.props.onRemove(e.props.object),t.preventDefault()}},"×"):""}},{key:"render",value:function(){var e=(0,f.default)(["typeahead-token",this.props.className]);return l.default.createElement("div",{className:e},this._renderHiddenInput(),this.props.children,this._renderCloseButton())}}]),t}(i.Component);d.propTypes={className:l.default.PropTypes.string,name:l.default.PropTypes.string,children:l.default.PropTypes.string,object:l.default.PropTypes.oneOfType([l.default.PropTypes.string,l.default.PropTypes.object]),onRemove:l.default.PropTypes.func,value:l.default.PropTypes.string},t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),l=n(4),c=r(l),p=n(3),f=r(p),d=n(2),h=r(d),y=function(e){function t(e){s(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=function(e){return e.preventDefault(),n.props.onClick(e)},n}return u(t,e),i(t,[{key:"_getClasses",value:function(){var e=o({"typeahead-option":!0},this.props.customClasses.listAnchor,!!this.props.customClasses.listAnchor);return(0,h.default)(e)}},{key:"render",value:function(){var e,t=this,n=(e={},o(e,this.props.customClasses.hover||"hover",!!this.props.hover),o(e,this.props.customClasses.listItem,!!this.props.customClasses.listItem),e);this.props.customValue&&(n[this.props.customClasses.customAdd]=!!this.props.customClasses.customAdd);var r=(0,h.default)(n);return c.default.createElement("li",{className:r,onClick:this._onClick},c.default.createElement("a",{href:"javascript: void 0;",className:this._getClasses(),ref:function(e){return t.anchor=e}},this.props.children))}}]),t}(l.Component);y.propTypes={customClasses:f.default.object,customValue:f.default.string,onClick:f.default.func,children:f.default.string,hover:f.default.bool},t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(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)}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),l=n(4),c=r(l),p=n(3),f=r(p),d=n(2),h=r(d),y=n(20),m=r(y),v=function(e){function t(e){s(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=function(e,t){return n.props.onOptionSelected(e,t)},n}return u(t,e),i(t,[{key:"render",value:function(){var e=this;if(!this.props.options.length&&this.props.allowCustomValues<=0)return!1;var t=(0,h.default)(o({"typeahead-selector":this.props.defaultClassNames},this.props.customClasses.results,this.props.customClasses.results)),n=null,r=0;null!==this.props.customValue&&(r++,n=c.default.createElement(m.default,{ref:function(t){return e[e.props.customValue]=t},key:this.props.customValue,hover:0===this.props.selectionIndex,customClasses:this.props.customClasses,customValue:this.props.customValue,onClick:this._onClick.bind(this,this.props.customValue)},this.props.customValue));var s=this.props.options.map(function(t,n){var o=t+"_"+n;return c.default.createElement(m.default,{ref:function(t){return e[o]=t},key:o,hover:e.props.selectionIndex===n+r,customClasses:e.props.customClasses,onClick:e._onClick.bind(e,t)},t)});if(this.props.areResultsTruncated&&null!==this.props.resultsTruncatedMessage){var a=(0,h.default)(o({"results-truncated":this.props.defaultClassNames},this.props.customClasses.resultsTruncated,this.props.customClasses.resultsTruncated));s.push(c.default.createElement("li",{key:"results-truncated",className:a},this.props.resultsTruncatedMessage))}return c.default.createElement("ul",{className:t},n,s)}}]),t}(l.Component);v.propTypes={options:f.default.array,allowCustomValues:f.default.number,customClasses:f.default.object,customValue:f.default.string,selectionIndex:f.default.number,onOptionSelected:f.default.func,defaultClassNames:f.default.bool,areResultsTruncated:f.default.bool,resultsTruncatedMessage:f.default.string},t.default=v},function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function l(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,s=r.__reactAutoBindPairs;n.hasOwnProperty(i)&&g.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==i){var l=n[a],c=r.hasOwnProperty(a);if(o(c,a),g.hasOwnProperty(a))g[a](e,l);else{var p=b.hasOwnProperty(a),h="function"==typeof l,y=h&&!p&&!c&&!1!==n.autobind;if(y)s.push(a,l),r[a]=l;else if(c){var m=b[a];u(p&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=f(r[a],l):"DEFINE_MANY"===m&&(r[a]=d(r[a],l))}else r[a]=l}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in g;u(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var s=n in e;u(!s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function p(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(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 p(o,n),p(o,r),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=h(e,o)}}function m(e){var t=r(function(e,r,o){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=r,this.refs=a,this.updater=o||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;u("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s});t.prototype=new E,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],v.forEach(l.bind(null,t)),l(t,_),l(t,e),l(t,P),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),u(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in b)t.prototype[o]||(t.prototype[o]=null);return t}var v=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)l(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=s({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=s({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=s({},e.propTypes,t)},statics:function(e,t){c(e,t)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0}},P={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},E=function(){};return s(E.prototype,e.prototype,w),m}var s=n(7),a=n(10),u=n(0),i="mixins";e.exports=o},function(e,t,n){!function(){var t={};e.exports=t,t.simpleFilter=function(e,n){return n.filter(function(n){return t.test(e,n)})},t.test=function(e,n){return null!==t.match(e,n)},t.match=function(e,t,n){n=n||{};var r,o=0,s=[],a=t.length,u=0,i=0,l=n.pre||"",c=n.post||"",p=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)r=t[f],p[f]===e[o]?(r=l+r+c,o+=1,i+=1+i):i=0,u+=i,s[s.length]=r;return o===e.length?(u=p===e?1/0:u,{rendered:s.join(""),score:u}):null},t.filter=function(e,n,r){return n&&0!==n.length?"string"!=typeof e?n:(r=r||{},n.reduce(function(n,o,s,a){var u=o;r.extract&&(u=r.extract(o));var i=t.match(e,u,r);return null!=i&&(n[n.length]={string:i.rendered,score:i.score,index:s,original:o}),n},[]).sort(function(e,t){var n=t.score-e.score;return n||e.index-t.index})):[]}}()},function(e,t,n){"use strict";function r(e,t,n,r,o){}e.exports=r},function(e,t,n){"use strict";var r=n(27);e.exports=function(e){return r(e,!1)}},function(e,t,n){"use strict";var r=n(5),o=n(0),s=n(11);e.exports=function(){function e(e,t,n,r,a,u){u!==s&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";var r=n(5),o=n(0),s=n(6),a=n(11),u=n(24);e.exports=function(e,t){function n(e){var t=e&&(x&&e[x]||e[C]);if("function"==typeof t)return t}function i(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function c(e){function n(n,r,s,u,i,c,p){if(u=u||O,c=c||s,p!==a)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[s]?n?new l(null===r[s]?"The "+i+" `"+c+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+i+" `"+c+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(r,s,u,i,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function p(e){function t(t,n,r,o,s,a){var u=t[n];if(_(u)!==e)return new l("Invalid "+o+" `"+s+"` of type `"+P(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return c(t)}function f(e){function t(t,n,r,o,s){if("function"!=typeof e)return new l("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){return new l("Invalid "+o+" `"+s+"` of type `"+_(u)+"` supplied to `"+r+"`, expected an array.")}for(var i=0;i<u.length;i++){var c=e(u,i,r,o,s+"["+i+"]",a);if(c instanceof Error)return c}return null}return c(t)}function d(e){function t(t,n,r,o,s){if(!(t[n]instanceof e)){var a=e.name||O;return new l("Invalid "+o+" `"+s+"` of type `"+E(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return c(t)}function h(e){function t(t,n,r,o,s){for(var a=t[n],u=0;u<e.length;u++)if(i(a,e[u]))return null;return new l("Invalid "+o+" `"+s+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?c(t):r.thatReturnsNull}function y(e){function t(t,n,r,o,s){if("function"!=typeof e)return new l("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],i=_(u);if("object"!==i)return new l("Invalid "+o+" `"+s+"` of type `"+i+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(u.hasOwnProperty(c)){var p=e(u,c,r,o,s+"."+c,a);if(p instanceof Error)return p}return null}return c(t)}function m(e){function t(t,n,r,o,s){for(var u=0;u<e.length;u++){if(null==(0,e[u])(t,n,r,o,s,a))return null}return new l("Invalid "+o+" `"+s+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return s(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return c(t)}function v(e){function t(t,n,r,o,s){var u=t[n],i=_(u);if("object"!==i)return new l("Invalid "+o+" `"+s+"` of type `"+i+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var p=e[c];if(p){var f=p(u,c,r,o,s+"."+c,a);if(f)return f}}return null}return c(t)}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||e(t))return!0;var r=n(t);if(!r)return!1;var o,s=r.call(t);if(r!==t.entries){for(;!(o=s.next()).done;)if(!b(o.value))return!1}else for(;!(o=s.next()).done;){var a=o.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function g(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function _(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":g(t,e)?"symbol":t}function P(e){if(void 0===e||null===e)return""+e;var t=_(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=P(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function E(e){return e.constructor&&e.constructor.name?e.constructor.name:O}var x="function"==typeof Symbol&&Symbol.iterator,C="@@iterator",O="<<anonymous>>",k={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return c(r.thatReturnsNull)}(),arrayOf:f,element:function(){function t(t,n,r,o,s){var a=t[n];if(!e(a)){return new l("Invalid "+o+" `"+s+"` of type `"+_(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return c(t)}(),instanceOf:d,node:function(){function e(e,t,n,r,o){return b(e[t])?null:new l("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return c(e)}(),objectOf:y,oneOf:h,oneOfType:m,shape:v};return l.prototype=Error.prototype,k.checkPropTypes=u,k.PropTypes=k,k}},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var s={escape:r,unescape:o};e.exports=s},function(e,t,n){"use strict";var r=n(8),o=(n(0),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),s=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)},a=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)},u=function(e,t,n,r){var o=this;if(o.instancePool.length){var s=o.instancePool.pop();return o.call(s,e,t,n,r),s}return new o(e,t,n,r)},i=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=o,c=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=10),n.release=i,n},p={addPoolingTo:c,oneArgumentPooler:o,twoArgumentPooler:s,threeArgumentPooler:a,fourArgumentPooler:u};e.exports=p},function(e,t,n){"use strict";var r=n(7),o=n(12),s=n(31),a=n(32),u=n(1),i=n(33),l=n(34),c=n(35),p=n(38),f=u.createElement,d=u.createFactory,h=u.cloneElement,y=r,m=function(e){return e},v={Children:{map:s.map,forEach:s.forEach,count:s.count,toArray:s.toArray,only:p},Component:o.Component,PureComponent:o.PureComponent,createElement:f,cloneElement:h,isValidElement:u.isValidElement,PropTypes:i,createClass:c,createFactory:d,createMixin:m,DOM:a,version:l,__spread:y};e.exports=v},function(e,t,n){"use strict";function r(e){return(""+e).replace(_,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function s(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,s,r),o.release(r)}function u(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function i(e,t,n){var o=e.result,s=e.keyPrefix,a=e.func,u=e.context,i=a.call(u,t,e.count++);Array.isArray(i)?l(i,o,n,m.thatReturnsArgument):null!=i&&(y.isValidElement(i)&&(i=y.cloneAndReplaceKey(i,s+(!i.key||t&&t.key===i.key?"":r(i.key)+"/")+n)),o.push(i))}function l(e,t,n,o,s){var a="";null!=n&&(a=r(n)+"/");var l=u.getPooled(t,a,o,s);v(e,i,l),u.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function p(e,t,n){return null}function f(e,t){return v(e,p,null)}function d(e){var t=[];return l(e,t,null,m.thatReturnsArgument),t}var h=n(29),y=n(1),m=n(5),v=n(39),b=h.twoArgumentPooler,g=h.fourArgumentPooler,_=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,b),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,g);var P={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:f,toArray:d};e.exports=P},function(e,t,n){"use strict";var r=n(1),o=r.createFactory,s={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=s},function(e,t,n){"use strict";var r=n(1),o=r.isValidElement,s=n(25);e.exports=s(o)},function(e,t,n){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";var r=n(12),o=r.Component,s=n(1),a=s.isValidElement,u=n(15),i=n(22);e.exports=i(o,a,u)},function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[s]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return s.isValidElement(e)||o("143"),e}var o=n(8),s=n(1);n(0);e.exports=r},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,s){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===u)return n(s,e,""===t?c+r(e,0):t),1;var d,h,y=0,m=""===t?c:t+p;if(Array.isArray(e))for(var v=0;v<e.length;v++)d=e[v],h=m+r(d,v),y+=o(d,h,n,s);else{var b=i(e);if(b){var g,_=b.call(e);if(b!==e.entries)for(var P=0;!(g=_.next()).done;)d=g.value,h=m+r(d,P++),y+=o(d,h,n,s);else for(;!(g=_.next()).done;){var w=g.value;w&&(d=w[1],h=m+l.escape(w[0])+p+r(d,0),y+=o(d,h,n,s))}}else if("object"===f){var E="",x=String(e);a("31","[object Object]"===x?"object with keys {"+Object.keys(e).join(", ")+"}":x,E)}}return y}function s(e,t,n){return null==e?0:o(e,"",t,n)}var a=n(8),u=(n(13),n(14)),i=n(36),l=(n(0),n(28)),c=(n(6),"."),p=":";e.exports=s},function(e,t,n){e.exports=n(17)}]));