react-tag-input
Advanced tools
Comparing version 6.5.2 to 6.5.3
@@ -142,2 +142,7 @@ 'use strict'; | ||
var currentTags = this.props.tags.slice(); | ||
// Early exit from the function if the array | ||
// is already empty | ||
if (currentTags.length === 0) { | ||
return; | ||
} | ||
var ariaLiveStatus = 'Tag at index ' + index + ' with value ' + currentTags[index].id + ' deleted.'; | ||
@@ -144,0 +149,0 @@ this.props.handleDelete(index, event); |
@@ -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(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; | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDnD"),require("ReactDnDHTML5Backend"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDnDHTML5Backend","ReactDOM"],t):"object"==typeof exports?exports.ReactTags=t(require("React"),require("ReactDnD"),require("ReactDnDHTML5Backend"),require("ReactDOM")):e.ReactTags=t(e.React,e.ReactDnD,e.ReactDnDHTML5Backend,e.ReactDOM)}(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=44)}([function(e,t,n){var r=n(24),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){var r=n(59),o=n(65);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(5),o=n(61),a=n(62),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(t,n){t.exports=e},function(e,t,n){var r=n(49),o=n(50),a=n(51),i=n(52),u=n(53);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(22);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(1)(Object,"create");e.exports=r},function(e,t,n){var r=n(74);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){e.exports=n(117)()},function(e,t,n){var r=n(1)(n(0),"Map");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},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(){}},function(e,t,n){var r=n(40),o=n(17);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,n){var r=n(40),o=n(17);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=r(o.prototype),a.prototype.constructor=a,e.exports=a},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,a.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,o=n(148),a=(r=o)&&r.__esModule?r:{default:r}},function(e,n){e.exports=t},function(e,t,n){var r=n(46);e.exports=function(e,t){return r(e,t)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(4),o=n(13);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(60))},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){var r=n(66),o=n(73),a=n(75),i=n(76),u=n(77);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(28),o=n(80),a=n(29);e.exports=function(e,t,n,i,u,s){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var h=-1,g=!0,v=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<l;){var y=e[h],_=t[h];if(i)var b=c?i(_,y,h,t,e,s):i(y,_,h,e,t,s);if(void 0!==b){if(b)continue;g=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(y===e||u(y,e,n,i,s)))return v.push(t)}))){g=!1;break}}else if(y!==_&&!u(y,_,n,i,s)){g=!1;break}}return s.delete(e),s.delete(t),g}},function(e,t,n){var r=n(26),o=n(78),a=n(79);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){e.exports=function(e,t){return e.has(t)}},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,n){var r=n(93),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,n){(function(e){var r=n(0),o=n(94),a=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(33)(e))},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){var r=n(96),o=n(97),a=n(98),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(1)(n(0),"Set");e.exports=r},function(e,t,n){var r=n(1)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(122);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r; | ||
/*! | ||
@@ -6,9 +6,3 @@ Copyright (c) 2017 Jed Watson. | ||
http://jedwatson.github.io/classnames | ||
*/ | ||
/*! | ||
Copyright (c) 2017 Jed Watson. | ||
Licensed under the MIT License (MIT), see | ||
http://jedwatson.github.io/classnames | ||
*/ | ||
!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)({"&":"&","<":"<",">":">",'"':""","'":"'"});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,u=void 0;0===e&&n.length>1?(a=o[0],i=0,u=n[1]):(a=o[e-1],u=n[i=e-1]),a||(i=-1,a=this.textInput),r+=i>=0?" Tag at index "+i+" with value "+u.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}}])}); | ||
*/!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(" ")}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(13),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=n(140),o=n(15),a=r?function(e){return r.get(e)}:o;e.exports=a},function(e,t,n){var r=n(141),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){"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){"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(6),i=_(a),u=n(20),s=_(n(45)),c=_(n(21)),l=_(n(15)),f=_(n(107)),p=_(n(116)),d=_(n(11)),h=_(n(39)),g=_(n(125)),v=n(19),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,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,e),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();if(0!==n.length){var 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,u=void 0;0===e&&n.length>1?(a=o[0],i=0,u=n[1]):(a=o[e-1],u=n[i=e-1]),a||(i=-1,a=this.textInput),r+=i>=0?" Tag at index "+i+" with value "+u.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}(a.Component);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}},function(e,t){e.exports=n},function(e,t,n){var r=n(47),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,n){var r=n(48),o=n(27),a=n(81),i=n(84),u=n(104),s=n(2),c=n(32),l=n(34),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,g){var v=s(e),y=s(t),_=v?"[object Array]":u(e),b=y?"[object Array]":u(t),x=(_="[object Arguments]"==_?f:_)==f,m=(b="[object Arguments]"==b?f:b)==f,O=_==b;if(O&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(O&&!x)return g||(g=new r),v||l(e)?o(e,t,n,d,h,g):a(e,t,_,n,d,h,g);if(!(1&n)){var S=x&&p.call(e,"__wrapped__"),j=m&&p.call(t,"__wrapped__");if(S||j){var w=S?e.value():e,T=j?t.value():t;return g||(g=new r),h(w,T,n,d,g)}}return!!O&&(g||(g=new r),i(e,t,n,d,h,g))}},function(e,t,n){var r=n(7),o=n(54),a=n(55),i=n(56),u=n(57),s=n(58);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){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(8),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,n){var r=n(8);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(8);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(8);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(7);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(7),o=n(12),a=n(26);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(23),o=n(63),a=n(13),i=n(25),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){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(5),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=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(64),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(67),o=n(7),a=n(12);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(68),o=n(69),a=n(70),i=n(71),u=n(72);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(9);e.exports=function(){this.__data__=r?r(null):{},this.size=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(9),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(9),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(9);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},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(10);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(10);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){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},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,n){var r=n(5),o=n(82),a=n(22),i=n(27),u=n(83),s=n(14),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=u;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var v=i(d(e),d(t),r,c,f,p);return p.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},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(85),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var s=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in t:o.call(t,p)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var g=!0;u.set(e,t),u.set(t,e);for(var v=s;++f<l;){var y=e[p=c[f]],_=t[p];if(a)var b=s?a(_,y,p,t,e,u):a(y,_,p,e,t,u);if(!(void 0===b?y===_||i(y,_,n,a,u):b)){g=!1;break}v||(v="constructor"==p)}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 u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(86),o=n(87),a=n(90);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(30),o=n(2);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(88),o=n(89),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){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){e.exports=function(){return[]}},function(e,t,n){var r=n(91),o=n(99),a=n(103);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){var r=n(92),o=n(31),a=n(2),i=n(32),u=n(95),s=n(34),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){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(4),o=n(3);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(4),o=n(35),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){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(24),o=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(33)(e))},function(e,t,n){var r=n(100),o=n(101),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){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(102)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(23),o=n(35);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(105),o=n(12),a=n(106),i=n(36),u=n(37),s=n(4),c=n(25),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(1)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(1)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(108);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(28),o=n(109),a=n(114),i=n(29),u=n(115),s=n(14);e.exports=function(e,t,n){var c=-1,l=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,l=a;else if(f>=200){var g=t?null:u(e);if(g)return s(g);p=!1,l=i,h=new r}else h=t?[]:d;e:for(;++c<f;){var v=e[c],y=t?t(v):v;if(v=n||0!==v?v:0,p&&y==y){for(var _=h.length;_--;)if(h[_]===y)continue e;t&&h.push(y),d.push(v)}else l(h,y,n)||(h!==d&&h.push(y),d.push(v))}return d}},function(e,t,n){var r=n(110);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(111),o=n(112),a=n(113);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},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){e.exports=function(e){return e!=e}},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,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,n){var r=n(36),o=n(15),a=n(14),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},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(6),a=c(o),i=c(n(11)),u=c(n(21)),s=c(n(119));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p=function(e){function t(){var e,n,r;l(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return n=r=f(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)})},f(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,e),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,n,r,o,a,i=this.props,u=i.selectedIndex,s=i.classNames;if(this.suggestionsContainer&&e.selectedIndex!==u){var c=this.suggestionsContainer.querySelector(s.activeSuggestion);c&&(t=c,n=this.suggestionsContainer,r=n.offsetHeight,o=t.offsetHeight,(a=t.offsetTop-n.scrollTop)+o>=r?n.scrollTop+=a-r+o:a<0&&(n.scrollTop+=a))}}},{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}(o.Component);p.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},p.defaultProps={minQueryLength:2},t.default=p},function(e,t,n){"use strict";var r=n(118);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";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(120),o=n(38),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){var r=n(121)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(5),o=n(123),a=n(2),i=n(124),u=r?r.prototype:void 0,s=u?u.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 s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},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(3);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},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(6),a=d(o),i=n(20),u=d(n(11)),s=d(n(126)),c=d(n(39)),l=n(146),f=n(19),p=d(n(149));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 v="tag",y=function(e){function t(){return h(this,t),g(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,e),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}(o.Component);y.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},y.defaultProps={labelField:"text",readOnly:!1},t.default=(0,s.default)((0,i.DragSource)(v,l.tagSource,l.dragSource),(0,i.DropTarget)(v,l.tagTarget,l.dropCollect))(y)},function(e,t,n){var r=n(127)();e.exports=r},function(e,t,n){var r=n(16),o=n(128),a=n(41),i=n(42),u=n(2),s=n(142);e.exports=function(e){return o((function(t){var n=t.length,o=n,c=r.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!f&&"wrapper"==i(l))var f=new r([],!0)}for(o=f?o:n;++o<n;){l=t[o];var p=i(l),d="wrapper"==p?a(l):void 0;f=d&&s(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?f[i(d[0])].apply(f,d[3]):1==l.length&&s(l)?f[p]():f.thru(l)}return function(){var e=arguments,r=e[0];if(f&&1==e.length&&u(r))return f.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(129),o=n(132),a=n(134);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(130);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(30),o=n(131);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(5),o=n(31),a=n(2),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(133),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){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(135),o=n(139)(r);e.exports=o},function(e,t,n){var r=n(136),o=n(137),a=n(138),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){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(1),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(37),o=r&&new r;e.exports=o},function(e,t){e.exports={}},function(e,t,n){var r=n(18),o=n(41),a=n(42),i=n(143);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,n){var r=n(18),o=n(16),a=n(17),i=n(2),u=n(3),s=n(144),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(18),o=n(16),a=n(145);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){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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var r=n(147),o=n(19),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=r},function(e,t,n){var r=n(38),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(6)),o=i(n(11)),a=n(43);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}])})); | ||
//# sourceMappingURL=ReactTags.min.js.map |
{ | ||
"name": "react-tag-input", | ||
"version": "6.5.2", | ||
"version": "6.5.3", | ||
"description": "React tags is a fantastically simple tagging component for your React projects", | ||
@@ -41,46 +41,46 @@ "main": "dist-modules/components/ReactTags.js", | ||
"lodash": "~4.17.12", | ||
"prop-types": "~15.7.0" | ||
"prop-types": "^15.7.2" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.1.0", | ||
"babel-jest": "^23.0.0-alpha.0", | ||
"babel-loader": "^7.1.4", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^7.1.5", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"commitizen": "^4.0.4", | ||
"css-loader": "^3.2.1", | ||
"cz-conventional-changelog": "^3.0.0", | ||
"enzyme": "^3.9.0", | ||
"chai": "^4.3.4", | ||
"commitizen": "^4.2.4", | ||
"css-loader": "^3.6.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.9.1", | ||
"eslint": "^7.3.1", | ||
"eslint-plugin-jest": "^22.1.3", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-react": "^7.12.3", | ||
"eslint-plugin-jest": "^22.21.0", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.23.2", | ||
"greenkeeper-lockfile": "^1.15.1", | ||
"jest": "^22.1.4", | ||
"jsdom": "^11.6.2", | ||
"node-sass": "^4.9.4", | ||
"npm-run-all": "^4.1.4", | ||
"opn": "^5.2.0", | ||
"prettier": "^2.0.0", | ||
"jest": "^22.4.4", | ||
"jsdom": "^11.12.0", | ||
"node-sass": "^4.14.1", | ||
"npm-run-all": "^4.1.5", | ||
"opn": "^5.5.0", | ||
"prettier": "^2.3.0", | ||
"raf": "^3.4.1", | ||
"react": "^16.4.2", | ||
"react": "^16.14.0", | ||
"react-dnd": "^5.0.0", | ||
"react-dnd-html5-backend": "^3.0.2", | ||
"react-dnd-test-backend": "^3.0.2", | ||
"react-dom": "^16.4.2", | ||
"react-test-renderer": "^16.4.2", | ||
"sass-loader": "^7.1.0", | ||
"semantic-release": "^15.13.19", | ||
"sinon": "^7.2.7", | ||
"style-loader": "^1.0.1", | ||
"webpack": "^4.14.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
"webpack-cli": "^3.0.2", | ||
"webpack-dev-server": "^3.1.14" | ||
"react-dom": "^16.14.0", | ||
"react-test-renderer": "^16.14.0", | ||
"sass-loader": "^7.3.1", | ||
"semantic-release": "^17.2.3", | ||
"sinon": "^7.5.0", | ||
"style-loader": "^1.3.0", | ||
"webpack": "^4.46.0", | ||
"webpack-bundle-analyzer": "^3.9.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.2" | ||
}, | ||
@@ -87,0 +87,0 @@ "config": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2
304713
1077
+ Addedprop-types@15.8.1(transitive)
- Removedprop-types@15.7.2(transitive)
Updatedprop-types@^15.7.2