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

react-tag-input

Package Overview
Dependencies
Maintainers
3
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tag-input - npm Package Compare versions

Comparing version 6.4.6 to 6.5.0

5

dist-modules/components/constants.js

@@ -12,6 +12,7 @@ 'use strict';

DOWN_ARROW: 40,
ESCAPE: 27
ESCAPE: 27,
SPACE: 32
};
var DEFAULT_PLACEHOLDER = exports.DEFAULT_PLACEHOLDER = 'Add new tag';
var DEFAULT_PLACEHOLDER = exports.DEFAULT_PLACEHOLDER = 'Press enter to add new tag';

@@ -18,0 +19,0 @@ var DEFAULT_LABEL_FIELD = exports.DEFAULT_LABEL_FIELD = 'text';

62

dist-modules/components/ReactTags.js

@@ -85,4 +85,6 @@ 'use strict';

selectedIndex: -1,
selectionMode: false
selectionMode: false,
ariaLiveStatus: ''
};
_this.reactTagsRef = (0, _react.createRef)();
_this.handleFocus = _this.handleFocus.bind(_this);

@@ -138,4 +140,30 @@ _this.handleBlur = _this.handleBlur.bind(_this);

value: function handleDelete(index, event) {
event.preventDefault();
event.stopPropagation();
var currentTags = this.props.tags.slice();
var ariaLiveStatus = 'Tag at index ' + index + ' with value ' + currentTags[index].id + ' deleted';
this.props.handleDelete(index, event);
event.stopPropagation();
var allTags = this.reactTagsRef.current.querySelectorAll('.ReactTags__remove');
var nextElementToFocus = void 0,
nextIndex = void 0;
if (index === 0 && currentTags.length > 1) {
nextElementToFocus = allTags[0];
nextIndex = 1;
} else {
nextElementToFocus = allTags[index - 1];
nextIndex = index - 1;
}
if (!nextElementToFocus) {
nextIndex = -1;
nextElementToFocus = this.textInput;
}
if (nextIndex >= 0) {
ariaLiveStatus += 'Tag at index ' + nextIndex + ' with value ' + currentTags[nextIndex].id + ' focussed. Press backspace to remove';
} else {
ariaLiveStatus += 'Input focussed. Press enter to add a new tag';
}
nextElementToFocus.focus();
this.setState({
ariaLiveStatus: ariaLiveStatus
});
}

@@ -162,4 +190,4 @@ }, {

key: 'handleFocus',
value: function handleFocus(e) {
var value = e.target.value;
value: function handleFocus(event) {
var value = event.target.value;
if (this.props.handleInputFocus) {

@@ -172,4 +200,4 @@ this.props.handleInputFocus(value);

key: 'handleBlur',
value: function handleBlur(e) {
var value = e.target.value;
value: function handleBlur(event) {
var value = event.target.value;
if (this.props.handleInputBlur) {

@@ -359,3 +387,21 @@ this.props.handleInputBlur(value);

'div',
{ className: (0, _classnames2.default)(classNames.tags, 'react-tags-wrapper') },
{ className: (0, _classnames2.default)(classNames.tags, 'react-tags-wrapper'), ref: this.reactTagsRef },
_react2.default.createElement(
'p',
{
role: 'alert',
className: 'sr-only',
style: {
position: 'absolute',
overflow: 'hidden',
clip: 'rect(0 0 0 0)',
margin: '-1px',
padding: 0,
width: '1px',
height: '1px',
border: 0
}
},
this.state.ariaLiveStatus
),
position === _constants.INPUT_FIELD_POSITIONS.TOP && tagInput,

@@ -512,3 +558,3 @@ _react2.default.createElement(

return _react2.default.createElement(_Tag2.default, {
key: tag.key || tag.id,
key: index,
index: index,

@@ -515,0 +561,0 @@ tag: tag,

@@ -15,2 +15,4 @@ 'use strict';

var _constants = require('./constants');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -22,6 +24,19 @@

removeComponent = props.removeComponent,
onClick = props.onClick,
onRemove = props.onRemove,
className = props.className,
tag = props.tag;
tag = props.tag,
index = props.index;
var onKeydown = function onKeydown(event) {
if (event.keyCode === _constants.KEYS.ENTER || event.keyCode === _constants.KEYS.SPACE) {
event.preventDefault();
event.stopPropagation();
return;
}
if (event.keyCode === _constants.KEYS.BACKSPACE) {
onRemove(event);
}
};
if (readOnly) {

@@ -38,3 +53,7 @@ return _react2.default.createElement('span', null);

'button',
{ onClick: onClick, className: className, 'aria-label': 'remove ' + tag.text },
{
onClick: onRemove,
onKeyDown: onKeydown,
className: className,
'aria-label': 'Tag at index ' + index + ' with value ' + tag.id + ' focussed. Press backspace to remove' },
crossStr

@@ -46,3 +65,3 @@ );

className: _propTypes2.default.string,
onClick: _propTypes2.default.func.isRequired,
onRemove: _propTypes2.default.func.isRequired,
readOnly: _propTypes2.default.bool,

@@ -54,5 +73,6 @@ removeComponent: _propTypes2.default.func,

key: _propTypes2.default.string
})
}),
index: _propTypes2.default.number.isRequired
};
exports.default = RemoveComponent;

@@ -65,3 +65,4 @@ 'use strict';

tag = props.tag,
classNames = props.classNames;
classNames = props.classNames,
index = props.index;
var _tag$className = tag.className,

@@ -83,4 +84,6 @@ className = _tag$className === undefined ? '' : _tag$className;

removeComponent: props.removeComponent,
onClick: props.onDelete,
readOnly: readOnly
onRemove: props.onDelete,
readOnly: readOnly,
index: index,
onKeyDown: onkeydown
})

@@ -110,3 +113,4 @@ );

isDragging: _propTypes2.default.bool.isRequired,
connectDropTarget: _propTypes2.default.func.isRequired
connectDropTarget: _propTypes2.default.func.isRequired,
index: _propTypes2.default.number.isRequired
};

@@ -113,0 +117,0 @@

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDOM","ReactDnDHTML5Backend"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):e.ReactTags=t(e.React,e.ReactDnD,e.ReactDOM,e.ReactDnDHTML5Backend)}(window,function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=149)}([function(e,t,n){var r=n(38),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(134),o=n(128);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(e,t,n){var r=n(4),o=n(132),a=n(131),i="[object Null]",u="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:i:s&&s in Object(e)?o(e):a(e)}},function(e,t,n){e.exports=n(76)()},function(e,t,n){var r=n(119);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(2)(Object,"create");e.exports=r},function(e,t,n){var r=n(40);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(144),o=n(143),a=n(142),i=n(141),u=n(140);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=(0,r.default)(t);return new RegExp("["+n+"]+")},t.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},t.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(45))},function(e,t,n){var r=n(22),o=n(14),a=4294967295;function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(22),o=n(14);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=r(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(2)(n(0),"Map");e.exports=r},function(e,t,n){var r=n(52),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],a=o.call(r,t)?n.length:0;a--;){var i=n[a],u=i.func;if(null==u||u==e)return i.name}return t}},function(e,t,n){var r=n(53),o=n(16),a=r?function(e){return r.get(e)}:o;e.exports=a},function(e,t,n){var r=n(18),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r;
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDOM","ReactDnDHTML5Backend"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDnD"),require("ReactDOM"),require("ReactDnDHTML5Backend")):e.ReactTags=t(e.React,e.ReactDnD,e.ReactDOM,e.ReactDnDHTML5Backend)}(window,function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=149)}([function(e,t,n){var r=n(39),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(134),o=n(128);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(e,t,n){var r=n(4),o=n(132),a=n(131),i="[object Null]",u="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?u:i:s&&s in Object(e)?o(e):a(e)}},function(e,t,n){e.exports=n(76)()},function(e,t,n){var r=n(119);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(2)(Object,"create");e.exports=r},function(e,t,n){var r=n(41);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(144),o=n(143),a=n(142),i=n(141),u=n(140);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join(""),n=(0,r.default)(t);return new RegExp("["+n+"]+")},t.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},t.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(45))},function(e,t,n){var r=n(23),o=n(14),a=4294967295;function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(23),o=n(14);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=r(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(2)(n(0),"Map");e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32},t.DEFAULT_PLACEHOLDER="Press enter to add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,n){var r=n(52),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],a=o.call(r,t)?n.length:0;a--;){var i=n[a],u=i.func;if(null==u||u==e)return i.name}return t}},function(e,t,n){var r=n(53),o=n(16),a=r?function(e){return r.get(e)}:o;e.exports=a},function(e,t,n){var r=n(18),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r;
/*!

@@ -12,3 +12,3 @@ Copyright (c) 2017 Jed Watson.

*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(71);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(2)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(2)(n(0),"Set");e.exports=r},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(97),o=n(96),a=n(95),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){var r=n(0),o=n(99),a="object"==typeof t&&t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s}).call(this,n(29)(e))},function(e,t,n){var r=n(100),o=n(3),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(36),o=n(115),a=n(114);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t,n){var r=n(34),o=n(113),a=n(33),i=1,u=2;e.exports=function(e,t,n,s,c,l){var f=n&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var g=-1,v=!0,y=n&u?new r:void 0;for(l.set(e,t),l.set(t,e);++g<p;){var _=e[g],b=t[g];if(s)var x=f?s(b,_,g,t,e,l):s(_,b,g,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,function(e,t){if(!a(y,t)&&(_===e||c(_,e,n,s,l)))return y.push(t)})){v=!1;break}}else if(_!==b&&!c(_,b,n,s,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(127),o=n(120),a=n(118),i=n(117),u=n(116);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(133))},function(e,t,n){var r=n(5),o=n(18),a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==i||t==u||t==a||t==s}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(147);e.exports=function(e,t){return r(e,t)}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},t.DEFAULT_PLACEHOLDER="Add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(11)),o=a(n(6));function a(e){return e&&e.__esModule?e:{default:e}}var i=String.fromCharCode(215),u=function(e){var t=e.readOnly,n=e.removeComponent,o=e.onClick,a=e.className,u=e.tag;if(t)return r.default.createElement("span",null);if(n){var s=n;return r.default.createElement(s,e)}return r.default.createElement("button",{onClick:o,className:a,"aria-label":"remove "+u.text},i)};u.propTypes={className:o.default.string,onClick:o.default.func.isRequired,readOnly:o.default.bool,removeComponent:o.default.func,tag:o.default.shape({id:o.default.string.isRequired,className:o.default.string,key:o.default.string})},t.default=u},function(e,t,n){var r=n(24),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(46),o=n(12),a={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,o.canDrag)(e)}},i={hover:function(e,t,n){var o=t.getItem().index,a=e.index;if(o!==a){var i=(0,r.findDOMNode)(n).getBoundingClientRect(),u=(i.right-i.left)/2,s=t.getClientOffset().x-i.left;o<a&&s<u||o>a&&s>u||(e.moveTag(o,a),t.getItem().index=a)}},canDrop:function(e){return(0,o.canDrop)(e)}};t.tagSource=a,t.tagTarget=i,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(13),o=n(15),a=n(48);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(13),o=n(15),a=n(14),i=n(1),u=n(3),s=n(49),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=a.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(13),o=n(21),a=n(20),i=n(50);e.exports=function(e){var t=a(e),n=i[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var u=o(n);return!!u&&e===u[0]}},function(e,t){e.exports={}},function(e,t,n){var r=n(25),o=r&&new r;e.exports=o},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,a=0;return function(){var i=o(),u=r-(i-a);if(a=i,u>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(57),o=n(56),a=n(55),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t,n){var r=n(58),o=n(54)(r);e.exports=o},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(60),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),s=Array(u);++i<u;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(4),o=n(31),a=n(1),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(32),o=n(62);e.exports=function e(t,n,a,i,u){var s=-1,c=t.length;for(a||(a=o),u||(u=[]);++s<c;){var l=t[s];n>0&&a(l)?n>1?e(l,n-1,a,i,u):r(u,l):i||(u[u.length]=l)}return u}},function(e,t,n){var r=n(63);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(64),o=n(61),a=n(59);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(15),o=n(65),a=n(21),i=n(20),u=n(1),s=n(51),c="Expected a function",l=8,f=32,p=128,d=256;e.exports=function(e){return o(function(t){var n=t.length,o=n,h=r.prototype.thru;for(e&&t.reverse();o--;){var g=t[o];if("function"!=typeof g)throw new TypeError(c);if(h&&!v&&"wrapper"==i(g))var v=new r([],!0)}for(o=v?o:n;++o<n;){g=t[o];var y=i(g),_="wrapper"==y?a(g):void 0;v=_&&s(_[0])&&_[1]==(p|l|f|d)&&!_[4].length&&1==_[9]?v[i(_[0])].apply(v,_[3]):1==g.length&&s(g)?v[y]():v.thru(g)}return function(){var e=arguments,r=e[0];if(v&&1==e.length&&u(r))return v.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}})}},function(e,t,n){var r=n(66)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=d(o),i=n(42),u=d(n(6)),s=d(n(67)),c=d(n(23)),l=n(47),f=n(12),p=d(n(44));function d(e){return e&&e.__esModule?e:{default:e}}var h="tag",g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),r(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],n=e.connectDragSource,r=e.isDragging,o=e.connectDropTarget,i=e.readOnly,u=e.tag,s=e.classNames,l=u.className,d=void 0===l?"":l;return n(o(a.default.createElement("span",{className:(0,c.default)("tag-wrapper",s.tag,d),style:{opacity:r?0:1,cursor:(0,f.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},t,a.default.createElement(p.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onClick:e.onDelete,readOnly:i}))))}}]),t}();g.propTypes={labelField:u.default.string,onDelete:u.default.func.isRequired,tag:u.default.shape({id:u.default.string.isRequired,className:u.default.string,key:u.default.string}),moveTag:u.default.func,removeComponent:u.default.func,onTagClicked:u.default.func,classNames:u.default.object,readOnly:u.default.bool,connectDragSource:u.default.func.isRequired,isDragging:u.default.bool.isRequired,connectDropTarget:u.default.func.isRequired},g.defaultProps={labelField:"text",readOnly:!1},t.default=(0,s.default)((0,i.DragSource)(h,l.tagSource,l.dragSource),(0,i.DropTarget)(h,l.tagTarget,l.dropCollect))(g)},function(e,t,n){var r=n(5),o=n(3),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(4),o=n(70),a=n(1),i=n(69),u=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-u?"-0":n}},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(72)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t,n){var r=n(73),o=n(24),a=/[&<>"']/g,i=RegExp(a.source);e.exports=function(e){return(e=o(e))&&i.test(e)?e.replace(a,r):e}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(75);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("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");throw u.name="Invariant Violation",u}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=c(o),i=c(n(6)),u=c(n(41)),s=c(n(74));function c(e){return e&&e.__esModule?e:{default:e}}function l(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}var f=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),function(e){return"<mark>"+(0,s.default)(e)+"</mark>"})}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):a.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},l(r,n)}return function(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)}(t,o.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,u.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.selectedIndex,r=t.classNames;if(this.suggestionsContainer&&e.selectedIndex!==n){var o=this.suggestionsContainer.querySelector(r.activeSuggestion);o&&function(e,t){var n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)}(o,this.suggestionsContainer)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return a.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?a.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},a.default.createElement("ul",null," ",n," ")):null}}]),t}();f.propTypes={query:i.default.string.isRequired,selectedIndex:i.default.number.isRequired,suggestions:i.default.array.isRequired,handleClick:i.default.func.isRequired,handleHover:i.default.func.isRequired,minQueryLength:i.default.number,shouldRenderSuggestions:i.default.func,isFocused:i.default.bool.isRequired,classNames:i.default.object,labelField:i.default.string.isRequired,renderSuggestion:i.default.func},f.defaultProps={minQueryLength:2},t.default=f},function(e,t,n){var r=n(26),o=n(16),a=n(17),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(82),o=n(81),a=n(80);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t,n){var r=n(83);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(34),o=n(84),a=n(79),i=n(33),u=n(78),s=n(17),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,d=!0,h=[],g=h;if(n)d=!1,f=a;else if(p>=c){var v=t?null:u(e);if(v)return s(v);d=!1,f=i,g=new r}else g=t?[]:h;e:for(;++l<p;){var y=e[l],_=t?t(y):y;if(y=n||0!==y?y:0,d&&_==_){for(var b=g.length;b--;)if(g[b]===_)continue e;t&&g.push(_),h.push(y)}else f(g,_,n)||(g!==h&&g.push(_),h.push(y))}return h}},function(e,t,n){var r=n(85);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(2)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(2)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(88),o=n(19),a=n(87),i=n(26),u=n(25),s=n(5),c=n(37),l=c(r),f=c(o),p=c(a),d=c(i),h=c(u),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||a&&"[object Promise]"!=g(a.resolve())||i&&"[object Set]"!=g(new i)||u&&"[object WeakMap]"!=g(new u))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(39),o=n(27);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(91)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(93),o=n(92),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(38),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,n(29)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(5),o=n(27),a=n(3),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(5),o=n(3),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(101),o=n(31),a=n(1),i=n(30),u=n(98),s=n(28),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),f=!n&&!l&&i(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||h.push(v);return h}},function(e,t,n){var r=n(102),o=n(94),a=n(90);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(105),o=n(104),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=u},function(e,t,n){var r=n(32),o=n(1);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t,n){var r=n(107),o=n(106),a=n(103);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(108),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,u,s){var c=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var d=l[p];if(!(c?d in t:a.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var g=!0;s.set(e,t),s.set(t,e);for(var v=c;++p<f;){var y=e[d=l[p]],_=t[d];if(i)var b=c?i(_,y,d,t,e,s):i(y,_,d,e,t,s);if(!(void 0===b?y===_||u(y,_,n,i,s):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var x=e.constructor,m=t.constructor;x!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(g=!1)}return s.delete(e),s.delete(t),g}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(4),o=n(111),a=n(40),i=n(35),u=n(110),s=n(17),c=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,j=O?O.valueOf:void 0;e.exports=function(e,t,n,r,O,S,w){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case p:case g:return a(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case _:return e==t+"";case h:var T=u;case y:var D=r&c;if(T||(T=s),e.size!=t.size&&!D)return!1;var I=w.get(e);if(I)return I==t;r|=l,w.set(e,t);var E=i(T(e),T(t),r,O,S,w);return w.delete(e),E;case b:if(j)return j.call(e)==j.call(t)}return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(7);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(8),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(125),o=n(124),a=n(123),i=n(122),u=n(121);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(126),o=n(10),a=n(19);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r=n(129),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(4),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(39),o=n(130),a=n(18),i=n(37),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:u).test(i(e))}},function(e,t,n){var r=n(10),o=n(19),a=n(36),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.length<i-1)return u.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(u)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(10);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(9);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(9),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(10),o=n(139),a=n(138),i=n(137),u=n(136),s=n(135);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(145),o=n(35),a=n(112),i=n(109),u=n(89),s=n(1),c=n(30),l=n(28),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,_){var b=s(e),x=s(t),m=b?d:u(e),O=x?d:u(t),j=(m=m==p?h:m)==h,S=(O=O==p?h:O)==h,w=m==O;if(w&&c(e)){if(!c(t))return!1;b=!0,j=!1}if(w&&!j)return _||(_=new r),b||l(e)?o(e,t,n,v,y,_):a(e,t,m,n,v,y,_);if(!(n&f)){var T=j&&g.call(e,"__wrapped__"),D=S&&g.call(t,"__wrapped__");if(T||D){var I=T?e.value():e,E=D?t.value():t;return _||(_=new r),y(I,E,n,v,_)}}return!!w&&(_||(_=new r),i(e,t,n,v,y,_))}},function(e,t,n){var r=n(146),o=n(3);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=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}}(),a=n(11),i=_(a),u=n(42),s=_(n(148)),c=_(n(41)),l=_(n(16)),f=_(n(86)),p=_(n(77)),d=_(n(6)),h=_(n(23)),g=_(n(68)),v=n(12),y=n(43);function _(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));m.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1},n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return function(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)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,c.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"filteredSuggestions",value:function(e,t){var n=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var r=t.filter(function(t){return 0===n.getQueryIndex(e,t)}),o=t.filter(function(t){return n.getQueryIndex(e,t)>0});return r.concat(o)}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===y.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===y.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:b({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===y.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===y.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===y.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,a=void 0===o?r.length:o,i=Math.min(a,r.length),u=n.getData("text").substr(0,i),s=(0,v.buildRegExpFromDelimiters)(this.props.delimiters),c=u.split(s);(0,f.default)(c).forEach(function(e){return t.addTag(b({id:e},t.props.labelField,e))})}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=r({},y.DEFAULT_CLASSNAMES,this.props.classNames),o=this.state.query.trim(),a=this.state.selectedIndex,u=this.state.suggestions,s=this.props,c=s.placeholder,l=s.name,f=s.id,d=s.maxLength,g=s.inline,v=s.inputFieldPosition,_=g?v:y.INPUT_FIELD_POSITIONS.BOTTOM,b=this.props.readOnly?null:i.default.createElement("div",{className:n.tagInput},i.default.createElement("input",{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:c,"aria-label":c,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:l,id:f,maxLength:d,value:this.props.inputValue}),i.default.createElement(p.default,{query:o,suggestions:u,labelField:this.props.labelField,selectedIndex:a,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}));return i.default.createElement("div",{className:(0,h.default)(n.tags,"react-tags-wrapper")},_===y.INPUT_FIELD_POSITIONS.TOP&&b,i.default.createElement("div",{className:n.selected},t,_===y.INPUT_FIELD_POSITIONS.INLINE&&b),_===y.INPUT_FIELD_POSITIONS.BOTTOM&&b)}}]),t}();x.propTypes={placeholder:d.default.string,labelField:d.default.string,suggestions:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired})),delimiters:d.default.arrayOf(d.default.number),autofocus:d.default.bool,inline:d.default.bool,inputFieldPosition:d.default.oneOf([y.INPUT_FIELD_POSITIONS.INLINE,y.INPUT_FIELD_POSITIONS.TOP,y.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:d.default.func,handleAddition:d.default.func,handleDrag:d.default.func,handleFilterSuggestions:d.default.func,handleTagClick:d.default.func,allowDeleteFromEmptyInput:d.default.bool,allowAdditionFromPaste:d.default.bool,allowDragDrop:d.default.bool,handleInputChange:d.default.func,handleInputFocus:d.default.func,handleInputBlur:d.default.func,minQueryLength:d.default.number,shouldRenderSuggestions:d.default.func,removeComponent:d.default.func,autocomplete:d.default.oneOfType([d.default.bool,d.default.number]),readOnly:d.default.bool,classNames:d.default.object,name:d.default.string,id:d.default.string,maxLength:d.default.number,inputValue:d.default.string,tags:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired,className:d.default.string})),allowUnique:d.default.bool,renderSuggestion:d.default.func},x.defaultProps={placeholder:y.DEFAULT_PLACEHOLDER,labelField:y.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[y.KEYS.ENTER,y.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:y.INPUT_FIELD_POSITIONS.INLINE,handleDelete:l.default,handleAddition:l.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var m=function(){var e=this;this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.resetAndFocusInput=function(){e.setState({query:""}),e.textInput&&(e.textInput.value="",e.textInput.focus())},this.updateSuggestions=function(){var t=e.state,n=t.query,r=t.selectedIndex,o=e.filteredSuggestions(n,e.props.suggestions);e.setState({suggestions:o,selectedIndex:r>=o.length?o.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,a=n.allowUnique;if(t.id&&t[o]){var i=r.map(function(e){return e.id.toLowerCase()});if(!(a&&i.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var u=e.filteredSuggestions(t[o],e.props.suggestions);(1===e.props.autocomplete&&1===u.length||!0===e.props.autocomplete&&u.length)&&(t=u[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,n=t.classNames,o=t.tags,a=t.labelField,u=t.removeComponent,s=t.readOnly,c=t.allowDragDrop,l=c?e.moveTag:null;return o.map(function(t,o){return i.default.createElement(g.default,{key:t.key||t.id,index:o,tag:t,labelField:a,onDelete:e.handleDelete.bind(e,o),moveTag:l,removeComponent:u,onTagClicked:e.handleTagClick.bind(e,o),readOnly:s,classNames:r({},y.DEFAULT_CLASSNAMES,n),allowDragDrop:c})})}};e.exports={WithContext:(0,u.DragDropContext)(s.default)(x),WithOutContext:x,KEYS:y.KEYS}}])});
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){var r=n(71);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(2)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(2)(n(0),"Set");e.exports=r},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(97),o=n(96),a=n(95),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){var r=n(0),o=n(99),a="object"==typeof t&&t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s}).call(this,n(30)(e))},function(e,t,n){var r=n(100),o=n(3),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(37),o=n(115),a=n(114);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t,n){var r=n(35),o=n(113),a=n(34),i=1,u=2;e.exports=function(e,t,n,s,c,l){var f=n&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var g=-1,v=!0,y=n&u?new r:void 0;for(l.set(e,t),l.set(t,e);++g<p;){var _=e[g],b=t[g];if(s)var x=f?s(b,_,g,t,e,l):s(_,b,g,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,function(e,t){if(!a(y,t)&&(_===e||c(_,e,n,s,l)))return y.push(t)})){v=!1;break}}else if(_!==b&&!c(_,b,n,s,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(127),o=n(120),a=n(118),i=n(117),u=n(116);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(133))},function(e,t,n){var r=n(5),o=n(18),a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==i||t==u||t==a||t==s}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(147);e.exports=function(e,t){return r(e,t)}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(11)),o=i(n(6)),a=n(20);function i(e){return e&&e.__esModule?e:{default:e}}var u=String.fromCharCode(215),s=function(e){var t=e.readOnly,n=e.removeComponent,o=e.onRemove,i=e.className,s=e.tag,c=e.index;if(t)return r.default.createElement("span",null);if(n){var l=n;return r.default.createElement(l,e)}return r.default.createElement("button",{onClick:o,onKeyDown:function(e){if(e.keyCode===a.KEYS.ENTER||e.keyCode===a.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===a.KEYS.BACKSPACE&&o(e)},className:i,"aria-label":"Tag at index "+c+" with value "+s.id+" focussed. Press backspace to remove"},u)};s.propTypes={className:o.default.string,onRemove:o.default.func.isRequired,readOnly:o.default.bool,removeComponent:o.default.func,tag:o.default.shape({id:o.default.string.isRequired,className:o.default.string,key:o.default.string}),index:o.default.number.isRequired},t.default=s},function(e,t,n){var r=n(25),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(46),o=n(12),a={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,o.canDrag)(e)}},i={hover:function(e,t,n){var o=t.getItem().index,a=e.index;if(o!==a){var i=(0,r.findDOMNode)(n).getBoundingClientRect(),u=(i.right-i.left)/2,s=t.getClientOffset().x-i.left;o<a&&s<u||o>a&&s>u||(e.moveTag(o,a),t.getItem().index=a)}},canDrop:function(e){return(0,o.canDrop)(e)}};t.tagSource=a,t.tagTarget=i,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(13),o=n(15),a=n(48);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(13),o=n(15),a=n(14),i=n(1),u=n(3),s=n(49),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!i(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=a.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(13),o=n(22),a=n(21),i=n(50);e.exports=function(e){var t=a(e),n=i[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var u=o(n);return!!u&&e===u[0]}},function(e,t){e.exports={}},function(e,t,n){var r=n(26),o=r&&new r;e.exports=o},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,a=0;return function(){var i=o(),u=r-(i-a);if(a=i,u>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(57),o=n(56),a=n(55),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t,n){var r=n(58),o=n(54)(r);e.exports=o},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(60),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),s=Array(u);++i<u;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(4),o=n(32),a=n(1),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(33),o=n(62);e.exports=function e(t,n,a,i,u){var s=-1,c=t.length;for(a||(a=o),u||(u=[]);++s<c;){var l=t[s];n>0&&a(l)?n>1?e(l,n-1,a,i,u):r(u,l):i||(u[u.length]=l)}return u}},function(e,t,n){var r=n(63);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(64),o=n(61),a=n(59);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(15),o=n(65),a=n(22),i=n(21),u=n(1),s=n(51),c="Expected a function",l=8,f=32,p=128,d=256;e.exports=function(e){return o(function(t){var n=t.length,o=n,h=r.prototype.thru;for(e&&t.reverse();o--;){var g=t[o];if("function"!=typeof g)throw new TypeError(c);if(h&&!v&&"wrapper"==i(g))var v=new r([],!0)}for(o=v?o:n;++o<n;){g=t[o];var y=i(g),_="wrapper"==y?a(g):void 0;v=_&&s(_[0])&&_[1]==(p|l|f|d)&&!_[4].length&&1==_[9]?v[i(_[0])].apply(v,_[3]):1==g.length&&s(g)?v[y]():v.thru(g)}return function(){var e=arguments,r=e[0];if(v&&1==e.length&&u(r))return v.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}})}},function(e,t,n){var r=n(66)();e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=d(o),i=n(43),u=d(n(6)),s=d(n(67)),c=d(n(24)),l=n(47),f=n(12),p=d(n(44));function d(e){return e&&e.__esModule?e:{default:e}}var h="tag",g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),r(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],n=e.connectDragSource,r=e.isDragging,o=e.connectDropTarget,i=e.readOnly,u=e.tag,s=e.classNames,l=e.index,d=u.className,h=void 0===d?"":d;return n(o(a.default.createElement("span",{className:(0,c.default)("tag-wrapper",s.tag,h),style:{opacity:r?0:1,cursor:(0,f.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},t,a.default.createElement(p.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:i,index:l,onKeyDown:onkeydown}))))}}]),t}();g.propTypes={labelField:u.default.string,onDelete:u.default.func.isRequired,tag:u.default.shape({id:u.default.string.isRequired,className:u.default.string,key:u.default.string}),moveTag:u.default.func,removeComponent:u.default.func,onTagClicked:u.default.func,classNames:u.default.object,readOnly:u.default.bool,connectDragSource:u.default.func.isRequired,isDragging:u.default.bool.isRequired,connectDropTarget:u.default.func.isRequired,index:u.default.number.isRequired},g.defaultProps={labelField:"text",readOnly:!1},t.default=(0,s.default)((0,i.DragSource)(h,l.tagSource,l.dragSource),(0,i.DropTarget)(h,l.tagTarget,l.dropCollect))(g)},function(e,t,n){var r=n(5),o=n(3),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(4),o=n(70),a=n(1),i=n(69),u=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-u?"-0":n}},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(72)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=r},function(e,t,n){var r=n(73),o=n(25),a=/[&<>"']/g,i=RegExp(a.source);e.exports=function(e){return(e=o(e))&&i.test(e)?e.replace(a,r):e}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(75);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("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");throw u.name="Invariant Violation",u}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=n(11),a=c(o),i=c(n(6)),u=c(n(42)),s=c(n(74));function c(e){return e&&e.__esModule?e:{default:e}}function l(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}var f=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),function(e){return"<mark>"+(0,s.default)(e)+"</mark>"})}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):a.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},l(r,n)}return function(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)}(t,o.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,u.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.selectedIndex,r=t.classNames;if(this.suggestionsContainer&&e.selectedIndex!==n){var o=this.suggestionsContainer.querySelector(r.activeSuggestion);o&&function(e,t){var n=t.offsetHeight,r=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+r>=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)}(o,this.suggestionsContainer)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return a.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?a.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},a.default.createElement("ul",null," ",n," ")):null}}]),t}();f.propTypes={query:i.default.string.isRequired,selectedIndex:i.default.number.isRequired,suggestions:i.default.array.isRequired,handleClick:i.default.func.isRequired,handleHover:i.default.func.isRequired,minQueryLength:i.default.number,shouldRenderSuggestions:i.default.func,isFocused:i.default.bool.isRequired,classNames:i.default.object,labelField:i.default.string.isRequired,renderSuggestion:i.default.func},f.defaultProps={minQueryLength:2},t.default=f},function(e,t,n){var r=n(27),o=n(16),a=n(17),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(82),o=n(81),a=n(80);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},function(e,t,n){var r=n(83);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(35),o=n(84),a=n(79),i=n(34),u=n(78),s=n(17),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,d=!0,h=[],g=h;if(n)d=!1,f=a;else if(p>=c){var v=t?null:u(e);if(v)return s(v);d=!1,f=i,g=new r}else g=t?[]:h;e:for(;++l<p;){var y=e[l],_=t?t(y):y;if(y=n||0!==y?y:0,d&&_==_){for(var b=g.length;b--;)if(g[b]===_)continue e;t&&g.push(_),h.push(y)}else f(g,_,n)||(g!==h&&g.push(_),h.push(y))}return h}},function(e,t,n){var r=n(85);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(2)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(2)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(88),o=n(19),a=n(87),i=n(27),u=n(26),s=n(5),c=n(38),l=c(r),f=c(o),p=c(a),d=c(i),h=c(u),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||a&&"[object Promise]"!=g(a.resolve())||i&&"[object Set]"!=g(new i)||u&&"[object WeakMap]"!=g(new u))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(40),o=n(28);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(91)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(93),o=n(92),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(39),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,n(30)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(5),o=n(28),a=n(3),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(5),o=n(3),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(101),o=n(32),a=n(1),i=n(31),u=n(98),s=n(29),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),f=!n&&!l&&i(e),p=!n&&!l&&!f&&s(e),d=n||l||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||h.push(v);return h}},function(e,t,n){var r=n(102),o=n(94),a=n(90);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t,n){var r=n(105),o=n(104),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=u},function(e,t,n){var r=n(33),o=n(1);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t,n){var r=n(107),o=n(106),a=n(103);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(108),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,u,s){var c=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var d=l[p];if(!(c?d in t:a.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var g=!0;s.set(e,t),s.set(t,e);for(var v=c;++p<f;){var y=e[d=l[p]],_=t[d];if(i)var b=c?i(_,y,d,t,e,s):i(y,_,d,e,t,s);if(!(void 0===b?y===_||u(y,_,n,i,s):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var x=e.constructor,m=t.constructor;x!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(g=!1)}return s.delete(e),s.delete(t),g}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(4),o=n(111),a=n(41),i=n(36),u=n(110),s=n(17),c=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,S=O?O.valueOf:void 0;e.exports=function(e,t,n,r,O,j,w){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!j(new o(e),new o(t)));case f:case p:case g:return a(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case _:return e==t+"";case h:var T=u;case y:var D=r&c;if(T||(T=s),e.size!=t.size&&!D)return!1;var E=w.get(e);if(E)return E==t;r|=l,w.set(e,t);var I=i(T(e),T(t),r,O,j,w);return w.delete(e),I;case b:if(S)return S.call(e)==S.call(t)}return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(7);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(8),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(8),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(125),o=n(124),a=n(123),i=n(122),u=n(121);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(126),o=n(10),a=n(19);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r=n(129),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(4),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(40),o=n(130),a=n(18),i=n(38),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:u).test(i(e))}},function(e,t,n){var r=n(10),o=n(19),a=n(37),i=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!o||u.length<i-1)return u.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(u)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(10);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(9);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(9),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(10),o=n(139),a=n(138),i=n(137),u=n(136),s=n(135);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(145),o=n(36),a=n(112),i=n(109),u=n(89),s=n(1),c=n(31),l=n(29),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,_){var b=s(e),x=s(t),m=b?d:u(e),O=x?d:u(t),S=(m=m==p?h:m)==h,j=(O=O==p?h:O)==h,w=m==O;if(w&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(w&&!S)return _||(_=new r),b||l(e)?o(e,t,n,v,y,_):a(e,t,m,n,v,y,_);if(!(n&f)){var T=S&&g.call(e,"__wrapped__"),D=j&&g.call(t,"__wrapped__");if(T||D){var E=T?e.value():e,I=D?t.value():t;return _||(_=new r),y(E,I,n,v,_)}}return!!w&&(_||(_=new r),i(e,t,n,v,y,_))}},function(e,t,n){var r=n(146),o=n(3);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=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}}(),a=n(11),i=_(a),u=n(43),s=_(n(148)),c=_(n(42)),l=_(n(16)),f=_(n(86)),p=_(n(77)),d=_(n(6)),h=_(n(24)),g=_(n(68)),v=n(12),y=n(20);function _(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));m.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:""},n.reactTagsRef=(0,a.createRef)(),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return function(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)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,c.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"filteredSuggestions",value:function(e,t){var n=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var r=t.filter(function(t){return 0===n.getQueryIndex(e,t)}),o=t.filter(function(t){return n.getQueryIndex(e,t)>0});return r.concat(o)}},{key:"handleDelete",value:function(e,t){t.preventDefault(),t.stopPropagation();var n=this.props.tags.slice(),r="Tag at index "+e+" with value "+n[e].id+" deleted";this.props.handleDelete(e,t);var o=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),a=void 0,i=void 0;0===e&&n.length>1?(a=o[0],i=1):(a=o[e-1],i=e-1),a||(i=-1,a=this.textInput),r+=i>=0?"Tag at index "+i+" with value "+n[i].id+" focussed. Press backspace to remove":"Input focussed. Press enter to add a new tag",a.focus(),this.setState({ariaLiveStatus:r})}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===y.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===y.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:b({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===y.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===y.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===y.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,a=void 0===o?r.length:o,i=Math.min(a,r.length),u=n.getData("text").substr(0,i),s=(0,v.buildRegExpFromDelimiters)(this.props.delimiters),c=u.split(s);(0,f.default)(c).forEach(function(e){return t.addTag(b({id:e},t.props.labelField,e))})}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=r({},y.DEFAULT_CLASSNAMES,this.props.classNames),o=this.state.query.trim(),a=this.state.selectedIndex,u=this.state.suggestions,s=this.props,c=s.placeholder,l=s.name,f=s.id,d=s.maxLength,g=s.inline,v=s.inputFieldPosition,_=g?v:y.INPUT_FIELD_POSITIONS.BOTTOM,b=this.props.readOnly?null:i.default.createElement("div",{className:n.tagInput},i.default.createElement("input",{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:c,"aria-label":c,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:l,id:f,maxLength:d,value:this.props.inputValue}),i.default.createElement(p.default,{query:o,suggestions:u,labelField:this.props.labelField,selectedIndex:a,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}));return i.default.createElement("div",{className:(0,h.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},i.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),_===y.INPUT_FIELD_POSITIONS.TOP&&b,i.default.createElement("div",{className:n.selected},t,_===y.INPUT_FIELD_POSITIONS.INLINE&&b),_===y.INPUT_FIELD_POSITIONS.BOTTOM&&b)}}]),t}();x.propTypes={placeholder:d.default.string,labelField:d.default.string,suggestions:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired})),delimiters:d.default.arrayOf(d.default.number),autofocus:d.default.bool,inline:d.default.bool,inputFieldPosition:d.default.oneOf([y.INPUT_FIELD_POSITIONS.INLINE,y.INPUT_FIELD_POSITIONS.TOP,y.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:d.default.func,handleAddition:d.default.func,handleDrag:d.default.func,handleFilterSuggestions:d.default.func,handleTagClick:d.default.func,allowDeleteFromEmptyInput:d.default.bool,allowAdditionFromPaste:d.default.bool,allowDragDrop:d.default.bool,handleInputChange:d.default.func,handleInputFocus:d.default.func,handleInputBlur:d.default.func,minQueryLength:d.default.number,shouldRenderSuggestions:d.default.func,removeComponent:d.default.func,autocomplete:d.default.oneOfType([d.default.bool,d.default.number]),readOnly:d.default.bool,classNames:d.default.object,name:d.default.string,id:d.default.string,maxLength:d.default.number,inputValue:d.default.string,tags:d.default.arrayOf(d.default.shape({id:d.default.string.isRequired,className:d.default.string})),allowUnique:d.default.bool,renderSuggestion:d.default.func},x.defaultProps={placeholder:y.DEFAULT_PLACEHOLDER,labelField:y.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[y.KEYS.ENTER,y.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:y.INPUT_FIELD_POSITIONS.INLINE,handleDelete:l.default,handleAddition:l.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var m=function(){var e=this;this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.resetAndFocusInput=function(){e.setState({query:""}),e.textInput&&(e.textInput.value="",e.textInput.focus())},this.updateSuggestions=function(){var t=e.state,n=t.query,r=t.selectedIndex,o=e.filteredSuggestions(n,e.props.suggestions);e.setState({suggestions:o,selectedIndex:r>=o.length?o.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,a=n.allowUnique;if(t.id&&t[o]){var i=r.map(function(e){return e.id.toLowerCase()});if(!(a&&i.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var u=e.filteredSuggestions(t[o],e.props.suggestions);(1===e.props.autocomplete&&1===u.length||!0===e.props.autocomplete&&u.length)&&(t=u[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,n=t.classNames,o=t.tags,a=t.labelField,u=t.removeComponent,s=t.readOnly,c=t.allowDragDrop,l=c?e.moveTag:null;return o.map(function(t,o){return i.default.createElement(g.default,{key:o,index:o,tag:t,labelField:a,onDelete:e.handleDelete.bind(e,o),moveTag:l,removeComponent:u,onTagClicked:e.handleTagClick.bind(e,o),readOnly:s,classNames:r({},y.DEFAULT_CLASSNAMES,n),allowDragDrop:c})})}};e.exports={WithContext:(0,u.DragDropContext)(s.default)(x),WithOutContext:x,KEYS:y.KEYS}}])});
//# sourceMappingURL=ReactTags.min.js.map
{
"name": "react-tag-input",
"version": "6.4.6",
"version": "6.5.0",
"description": "React tags is a fantastically simple tagging component for your React projects",

@@ -5,0 +5,0 @@ "main": "dist-modules/components/ReactTags.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc