PageSourceSearch

https://lablab.ai/_next/static/chunks/14770-326ec6db06bb3e19.js

js lablab.ai collected 2026-10-01 11:26:26 UTC 90,127 bytes, 3 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="4e3493d8-cd65-53d8-9d8f-8ec30d742fcd")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14770],{14770:(e,t,r)=>{r.d(t,{Rk:()=>ni,ID:()=>nO});var n,o,i,a,u={};r.r(u),r.d(u,{FILE:()=>eD,HTML:()=>eI,TEXT:()=>ew,URL:()=>eT});var s=r(65321),c=r(97109);function l(e,t){for(var r,n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(!e){if(void 0===t)r=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(r=Error(t.replace(/%s/g,function(){return o[a++]}))).name="Invariant Violation"}throw r.framesToPop=1,r}}var f="dnd-core/INIT_COORDS",d="dnd-core/BEGIN_DRAG",g="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",p="dnd-core/DROP",v="dnd-core/END_DRAG";function y(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return"object"===b(e)}var O={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function S(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=function(){var e;function t(e,r){var n=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.isSetUp=!1,this.handleRefCountChange=function(){var e=n.store.getState().refCount>0;n.backend&&(e&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!e&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return e=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e,t,r,n,o,i=this,a=this.store.dispatch,u={beginDrag:(e=this,function(){var t,r,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=i.publishSource,u=i.clientOffset,s=i.getSourceClientOffset,c=e.getMonitor(),f=e.getRegistry();e.dispatch(y(u)),t=o,r=c,n=f,l(!r.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(e){l(n.getSource(e),"Expected sourceIds to be registered.")});var g=function(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(o,c);if(null===g)return void e.dispatch(O);var h=null;if(u){if(!s)throw Error("getSourceClientOffset must be defined");l("function"==typeof s,"When clientOffset is provided, getSourceClientOffset must be a function."),h=s(g)}e.dispatch(y(u,h));var p=f.getSource(g).beginDrag(c,g);if(null!=p)return l(m(p),"Item must be an object."),f.pinSource(g),{type:d,payload:{itemType:f.getSourceType(g),item:p,sourceId:g,clientOffset:u||null,sourceClientOffset:h||null,isSourcePublic:!!(void 0===a||a)}}}),publishDragSource:(t=this,function(){if(t.getMonitor().isDragging())return{type:g}}),hover:(r=this,function(e){var t,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.clientOffset;l(Array.isArray(e),"Expected targetIds to be an array.");var u=e.slice(0),s=r.getMonitor(),c=r.getRegistry();return function(e,t,r){l(t.isDragging(),"Cannot call hover while not dragging."),l(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];l(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array."),l(r.getTarget(o),"Expected targetIds to be registered.")}}(u,s,c),function(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];S(t.getTargetType(o),r)||e.splice(n,1)}}(u,c,s.getItemType()),t=u,n=s,o=c,t.forEach(function(e){o.getTarget(e).hover(n,e)}),{type:h,payload:{targetIds:u,clientOffset:a||null}}}),drop:(n=this,function(){var e,t,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.getMonitor(),a=n.getRegistry();l((e=i).isDragging(),"Cannot call drop while not dragging."),l(!e.didDrop(),"Cannot call drop twice during one drag operation."),((r=(t=i).getTargetIds().filter(t.canDropOnTarget,t)).reverse(),r).forEach(function(e,t){var r,u,s,c,f,d,g,h=(r=e,u=t,s=a,c=i,l(void 0===(g=d=(f=s.getTarget(r))?f.drop(c,r):void 0)||m(g),"Drop result must either be an object or undefined."),void 0===d&&(d=0===u?{}:c.getDropResult()),d),v={type:p,payload:{dropResult:T(T({},o),h)}};n.dispatch(v)})}),endDrag:(o=this,function(){var e=o.getMonitor(),t=o.getRegistry();l(e.isDragging(),"Cannot call endDrag while not dragging.");var r=e.getSourceId();return null!=r&&(t.getSource(r,!0).endDrag(e,r),t.unpinSource()),{type:v}})};return Object.keys(u).reduce(function(e,t){var r=u[t];return e[t]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.apply(i,t);void 0!==o&&a(o)},e},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function I(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var E="function"==typeof Symbol&&Symbol.observable||"@@observable",j=function(){return Math.random().toString(36).substring(7).split("").join(".")},k={INIT:"@@redux/INIT"+j(),REPLACE:"@@redux/REPLACE"+j(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+j()}},C=function(e,t){return e===t};function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?_(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null},A="dnd-core/ADD_SOURCE",N="dnd-core/ADD_TARGET",R="dnd-core/REMOVE_SOURCE",M="dnd-core/REMOVE_TARGET";function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var U={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null},F=[],B=[];function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e,t,r,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h:break;case A:case N:case M:case R:return F;default:return B}var o=n.payload,i=o.targetIds,a=void 0===i?[]:i,u=o.prevTargetIds,s=void 0===u?[]:u,c=(e=new Map,t=function(t){e.set(t,e.has(t)?e.get(t)+1:1)},a.forEach(t),s.forEach(t),r=[],e.forEach(function(e,t){1===e&&r.push(t)}),r);if(!(c.length>0||!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(a,s)))return F;var l=s[s.length-1],f=a[a.length-1];return l!==f&&(l&&c.push(l),f&&c.push(f)),c}(t.dirtyHandlerIds,{type:r.type,payload:$($({},r.payload),{},{prevTargetIds:(e=[],"dragOperation.targetIds".split(".").reduce(function(t,r){return t&&t[r]?t[r]:e||null},t))})}),dragOffset:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case f:case d:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case h:if(e=r.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y)return r;return P(P({},r),{},{clientOffset:o.clientOffset});case v:case p:return x;default:return r}}(t.dragOffset,r),refCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case A:case N:return e+1;case R:case M:return e-1;default:return e}}(t.refCount,r),dragOperation:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case d:return H(H({},r),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case g:return H(H({},r),{},{isSourcePublic:!0});case h:return H(H({},r),{},{targetIds:o.targetIds});case M:if(-1===r.targetIds.indexOf(o.targetId))return r;return H(H({},r),{},{targetIds:(e=r.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case p:return H(H({},r),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case v:return H(H({},r),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return r}}(t.dragOperation,r),stateId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}(t.stateId)}}function W(e,t){return{x:e.x-t.x,y:e.y-t.y}}F.__IS_NONE__=!0,B.__IS_ALL__=!0;var q=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.store=e,this.registry=r}return e=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;l("function"==typeof e,"listener must be a function."),l(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of str
2ings.");var o=this.store.getState().stateId;return this.store.subscribe(function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!function(e,t){return e!==F&&(e===B||void 0===t||t.filter(function(t){return e.indexOf(t)>-1}).length>0)}(r.dirtyHandlerIds,n)||e()}finally{o=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;l("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe(function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return l(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return l(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&S(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return l(t,"Expected to find a valid source. sourceId=".concat(e)),!!this.isDragging()&&!!this.isSourcePublic()&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!S(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return t&&r&&n?W({x:t.x+n.x,y:t.y+n.y},r):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){var e,t,r;return t=(e=this.store.getState().dragOffset).clientOffset,r=e.initialClientOffset,t&&r?W(t,r):null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),K=0;function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){if(t&&Array.isArray(e))return void e.forEach(function(e){return X(e,!1)});l("string"==typeof e||"symbol"===V(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(i||(i={}));let Y="undefined"!=typeof global?global:self,Q=Y.MutationObserver||Y.WebKitMutationObserver;function J(e){return function(){let t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}let Z="function"==typeof Q?function(e){let t=1,r=new Q(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}
2),function(){n.data=t=-t}}:J;class ee{enqueueTask(e){let{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Z(this.flush),this.requestErrorThrow=J(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class et{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class er{create(e){let t=this.freeTasks,r=t.length?t.pop():new et(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}let en=new ee,eo=new er(en.registerPendingError);function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ea(e){switch(e[0]){case"S":return i.SOURCE;case"T":return i.TARGET;default:l(!1,"Cannot parse handler ID: ".concat(e))}}function eu(e,t){var r=e.entries(),n=!1;do{var o,i=r.next(),a=i.done;if((o=i.value,function(e){if(Array.isArray(e))return e}(o)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(o,2)||function(e,t){if(e){if("string"==typeof e)return ei(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ei(e,t)}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1]===t)return!0;n=!!a}while(!n);return!1}var es=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}return e=[{key:"addSource",value:function(e,t){X(e),l("function"==typeof t.canDrag,"Expected canDrag to be a function."),l("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),l("function"==typeof t.endDrag,"Expected endDrag to be a function.");var r=this.addHandler(i.SOURCE,e,t);return this.store.dispatch({type:A,payload:{sourceId:r}}),r}},{key:"addTarget",value:function(e,t){X(e,!0),l("function"==typeof t.canDrop,"Expected canDrop to be a function."),l("function"==typeof t.hover,"Expected hover to be a function."),l("function"==typeof t.drop,"Expected beginDrag to be a function.");var r=this.addHandler(i.TARGET,e,t);return this.store.dispatch({type:N,payload:{targetId:r}}),r}},{key:"containsHandler",value:function(e){return eu(this.dragSources,e)||eu(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return l(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return l(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return l(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ea(e)===i.SOURCE}},{key:"isTargetId",value:function(e){return ea(e)===i.TARGET}},{key:"removeSource",value:function(e){var t=this;l(this.getSource(e),"Expected an existing source."),this.store.dispatch({type:R,payload:{sourceId:e}}),en.enqueueTask(eo.create(function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){l(this.getTarget(e),"Expected an existing target."),this.store.dispatch({type:M,payload:{targetId:e}}),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);l(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){l(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=function(e){var t=(K++).toString();switch(e){case i.SOURCE:return"S".concat(t);case i.TARGET:return"T".concat(t);default:throw Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(n,t),e===i.SOURCE?this.dragSources.set(n,r):e===i.TARGET&&this.dropTargets.set(n,r),n}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),ec=(0,c.createContext)({dragDropManager:void 0});function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ef=0,ed=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),eg=(0,c.memo)(function(e){var t,r,n=e.children,o=function(e){if(Array.isArray(e))return e}(r="manager"in(t=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children"]))?[{dragDropManager:t.manager},!1]:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eh(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;
2return t[ed]||(t[ed]={dragDropManager:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=(t=i,r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,function e(t,r,n){if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(I(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(I(1));return n(e)(t,r)}if("function"!=typeof t)throw Error(I(2));var o,i=t,a=r,u=[],s=u,c=!1;function l(){s===u&&(s=u.slice())}function f(){if(c)throw Error(I(3));return a}function d(e){if("function"!=typeof e)throw Error(I(4));if(c)throw Error(I(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(I(6));t=!1,l();var r=s.indexOf(e);s.splice(r,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(I(7));if(void 0===e.type)throw Error(I(8));if(c)throw Error(I(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=u=s,r=0;r<t.length;r++)(0,t[r])();return e}return g({type:k.INIT}),(o={dispatch:g,subscribe:d,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(I(10));i=e,g({type:k.REPLACE})}})[E]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(I(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:d(t)}}})[E]=function(){return this},e},o}(G,t&&r&&r({name:"dnd-core",instanceId:"dnd-core"}))),u=new q(a,new es(a)),s=new w(a,u),c=e(s,n,o);return s.receiveBackend(c),s}(e,t,r,n)}),t[ed]}(t.backend,t.context,t.options,t.debugMode),!t.context])||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(r,2)||function(e,t){if(e){if("string"==typeof e)return el(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return el(e,t)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return(0,c.useEffect)(function(){if(a){var e=eh();return++ef,function(){0==--ef&&(e[ed]=null)}}},[]),(0,s.jsx)(ec.Provider,Object.assign({value:i},{children:n}),void 0)});function eh(){return void 0!==r.g?r.g:window}function ep(e){var t=null;return function(){return null==t&&(t=e()),t}}var ev=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.entered=[],this.isNodeInDocument=e}return e=[{key:"enter",value:function(e){var t,r,n,o,i,a=this,u=this.entered.length;return this.entered=(t=this.entered.filter(function(t){return a.isNodeInDocument(t)&&(!t.contains||t.contains(e))}),r=[e],n=new Set,o=function(e){return n.add(e)},t.forEach(o),r.forEach(o),i=[],n.forEach(function(e){return i.push(e)}),i),0===u&&this.entered.length>0}},{key:"leave",value:function(e){var t,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),t.filter(function(t){return t!==e})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),ey=ep(function(){return/firefox/i.test(navigator.userAgent)}),eb=ep(function(){return!!window.safari}),em=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var n,o,i,a=e.length,u=[],s=0;s<a;s++)u.push(s);u.sort(function(t,r){return e[t]<e[r]?-1:1});for(var c=[],l=[],f=[],d=0;d<a-1;d++)n=e[d+1]-e[d],o=r[d+1]-r[d],l.push(n),c.push(o),f.push(o/n);for(var g=[f[0]],h=0;h<l.length-1;h++){var p=f[h],v=f[h+1];if(p*v<=0)g.push(0);else{n=l[h];var y=l[h+1],b=n+y;g.push(3*b/((b+y)/p+(b+n)/v))}}g.push(f[f.length-1]);for(var m=[],O=[],S=0;S<g.length-1;S++){i=f[S];var D=g[S],T=1/l[S],w=D+g[S+1]-i-i;m.push((i-D-w)*T),O.push(w*T*T)}this.xs=e,this.ys=r,this.c1s=g,this.c2s=m,this.c3s=O}return e=[{key:"interpolate",value:function(e){var t,r=this.xs,n=this.ys,o=this.c1s,i=this.c2s,a=this.c3s,u=r.length-1;if(e===r[u])return n[u];for(var s=0,c=a.length-1;s<=c;
2){var l=r[t=Math.floor(.5*(s+c))];if(l<e)s=t+1;else{if(!(l>e))return n[t];c=t-1}}var f=e-r[u=Math.max(0,c)],d=f*f;return n[u]+o[u]*f+i[u]*d+a[u]*f*d}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function eO(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function eS(e){return{x:e.clientX,y:e.clientY}}var eD="__NATIVE_FILE__",eT="__NATIVE_URL__",ew="__NATIVE_TEXT__",eI="__NATIVE_HTML__";function eE(e,t,r){var n=t.reduce(function(t,r){return t||e.getData(r)},"");return null!=n?n:r}function ej(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ek=(ej(a={},eD,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),ej(a,eI,{exposeProperties:{html:function(e,t){return eE(e,t,"")}},matchesTypes:["Html","text/html"]}),ej(a,eT,{exposeProperties:{urls:function(e,t){return eE(e,t,"").split("\n")}}
2,matchesTypes:["Url","text/uri-list"]}),ej(a,ew,{exposeProperties:{text:function(e,t){return eE(e,t,"")}},matchesTypes:["Text","text/plain"]}),a),eC=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.config=e,this.item={},this.initializeExposedProperties()}return e=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach(function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function e_(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(ek).filter(function(e){return ek[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}var eP=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.ownerDocument=null,this.globalContext=e,this.optionsArgs=r}return e=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!=(e=this.globalContext)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null==(e=this.optionsArgs)?void 0:e.rootElement)||this.window}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eN=function(){var e;function t(e,r,n){var o=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&eO(t)||null},this.endDragNativeItem=function(){o.isDraggingNativeItem()&&(o.actions.endDrag(),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)},this.isNodeInDocument=function(e){return!!(e&&o.document&&o.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=o.currentDragSourceNode;!(null==e||o.isNodeInDocument(e))&&o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()},this.handleTopDragStartCapture=function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var r=eS(e);
2o.monitor.isDragging()&&o.actions.endDrag(),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:r});var n=e.dataTransfer,i=e_(n);if(o.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){var a=o.monitor.getSourceId(),u=o.sourceNodes.get(a),s=o.sourcePreviewNodes.get(a)||u;if(s){var c,l,f,d,g,h,p,v,y,b,m,O,S,D,T,w,I,E,j=o.getCurrentSourcePreviewNodeOptions(),k=j.anchorX,C=j.anchorY,_=j.offsetX,P=j.offsetY,x=(c={anchorX:k,anchorY:C},l={offsetX:_,offsetY:P},g=eO((d="IMG"===s.nodeName&&(ey()||!(null!=(f=document.documentElement)&&f.contains(s))))?u:s),h={x:r.x-g.x,y:r.y-g.y},p=u.offsetWidth,v=u.offsetHeight,y=c.anchorX,b=c.anchorY,D=(m=d?s.width:p,O=d?s.height:v,eb()&&d&&(O/=window.devicePixelRatio,m/=window.devicePixelRatio),S={dragPreviewWidth:m,dragPreviewHeight:O}).dragPreviewWidth,T=S.dragPreviewHeight,w=l.offsetX,I=l.offsetY,{x:0===w||w?w:new em([0,.5,1],[h.x,h.x/p*D,h.x+D-p]).interpolate(y),y:0===I||I?I:(E=new em([0,.5,1],[h.y,h.y/v*T,h.y+T-v]).interpolate(b),eb()&&d&&(E+=(window.devicePixelRatio-1)*T),E)});n.setDragImage(s,x.x,x.y)}}try{null==n||n.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout(function(){return o.actions.publishDragSource()},0)}else if(i)o.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(o.dragEnterTargetIds=[],!(!o.enterLeaveCounter.enter(e.target)||o.monitor.isDragging())){var t=e.dataTransfer,r=e_(t);r&&o.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=o.dragEnterTargetIds;o.dragEnterTargetIds=[],o.monitor.isDragging()&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:eS(e)}),t.some(function(e){return o.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){o.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none");return}o.altKeyPressed=e.altKey,o.actions.hover(t||[],{clientOffset:eS(e)}),(t||[]).some(function(e){return o.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout(function(){return o.endDragNativeItem()},0)},this.handleTopDropCapture=function(e){if(o.dropTargetIds=[],o.isDraggingNativeItem()){var t;e.preventDefault(),null==(t=o.currentNativeSource)||t.loadDataTransfer(e.dataTransfer)}o.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:eS(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new eP(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new ev(this.isNodeInDocument)}return e=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null==(e=this.dragStartSourceIds)?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null==(t=this.dragOverTargetIds)?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null==(e=this.window)||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return eA({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();
2return eA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(u).some(function(t){return u[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){var r;this.clearCurrentDragSourceNode(),this.currentNativeSource=((r=new eC(ek[e])).loadDataTransfer(t),r),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null==(e=t.rootElement)?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;null==(e=this.window)||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),eR=function(e,t,r){return new eN(e,t,r)},eM="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;function eL(e){return(eL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var eH=function(){var e;function t(e,r,n){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.spec=e,this.monitor=r,this.connector=n}return e=[{key:"beginDrag",value:function(){var e,t=this.spec,r=this.monitor;return null!=(e="object"===eL(t.item)?t.item:"function"==typeof t.item?t.item(r):{})?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var r=this.spec,n=this.monitor,o=r.isDragging;return o?o(n):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,r=this.connector,n=e.end;n&&n(t.getItem(),t),r.reconnect()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function eU(){var e=(0,c.useContext)(ec).dragDropManager;return l(null!=e,"Expected drag drop context"),e}function eF(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ez(e,t){var r,n=function(e){if(Array.isArray(e))return eB(e)}(r=t||[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return eB(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eB(e,t)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return null==t&&"function"!=typeof e&&n.push(e),(0,c.useMemo)(function(){return"function"==typeof e?e():e},n)}var e$=!1,eG=!1,eW=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sourceId=null,this.internalMonitor=e.getMonitor()}return e=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){l(!e$,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return e$=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{e$=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;l(!eG,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return eG=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{eG=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function eq(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=function(){var e,t,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,c.isValidElement)(o))return n(o,i),o;if("string"!=typeof o.type){var a=o.type.displayName||o.type.name||"the component";throw Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(a," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}return e=o,t=i?function(e){return n(e,i)}:n,(l("string"!=typeof(r=e.ref),"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r)?(0,c.cloneElement)(e,{ref:function(e){eK(r,e),eK(t,e)}}):(0,c.cloneElement)(e,{ref:t})};t[r]=function(){return o}}}),t}function eK(e,t){"function"==typeof e?e(t):e.current=t}function eV(e){return(eV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eX(e){return null!==e&&"object"===eV(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function eY(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;
2if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!u(c))return!1;var l=e[c],f=t[c];if(!1===(o=r?r.call(n,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}var eQ=function(){var e;function t(e){var r=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.hooks=eq({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,eX(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,eX(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}return e=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(t&&this.disconnectDragSource(),this.handlerId){if(!e){this.lastConnectedDragSource=e;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(t&&this.disconnectDragPreview(),this.handlerId){if(!e){this.lastConnectedDragPreview=e;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!eY(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!eY(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),eJ=r(56689),eZ=r.n(eJ);function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function e1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function e2(e,t,r){var n,o,i,a,u,s,l,f,d,g,h;return g=(d=function(e){if(Array.isArray(e))return e}((n=e||function(){return{}},o=function(){return r.reconnect()},u=(a=function(e){if(Array.isArray(e))return e}(i=(0,c.useState)(function(){return n(t)}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(i,2)||function(e,t){if(e){if("string"==typeof e)return e0(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e0(e,t)}}
2(i,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=a[1],eM(l=(0,c.useCallback)(function(){var e=n(t);!eZ()(u,e)&&(s(e),o&&o())},[u,t,o])),f=[u,l]))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(f,2)||function(e,t){if(e){if("string"==typeof e)return e1(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e1(e,t)}}(f,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],eM(function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(h,{handlerIds:[e]})},[t,h=d[1]]),g}var e3=function(){var e;function t(e,r){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.spec=e,this.monitor=r}return e=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function e4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e8=!1,e5=function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.targetId=null,this.internalMonitor=e.getMonitor()}return e=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;l(!e8,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return e8=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{e8=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),e6=function(){var e;function t(e){var r=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.hooks=eq({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,eX(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}return e=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!eY(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}(),e7=Object.create,e9=Object.defineProperty,te=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyNames,tr=Object.getPrototypeOf,tn=Object.prototype.hasOwnProperty,to=(e,t,r)=>(r=null!=e?e7(tr(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of tt(t))tn.call(e,o)||o===r||e9(e,o,{get:()=>t[o],enumerable:!(n=te(t,o))||n.enumerable});return e}
2)(!t&&e&&e.__esModule?r:e9(r,"default",{value:e,enumerable:!0}),e)),ti=((e,t)=>function(){return t||(0,e[tt(e)[0]])((t={exports:{}}).exports,t),t.exports})({"node_modules/classnames/index.js"(e,t){var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var u in o)r.call(o,u)&&o[u]&&e.push(u)}}}return e.join(" ")}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}}),ta=to(ti(),1),tu="object"==typeof global&&global&&global.Object===Object&&global,ts="object"==typeof self&&self&&self.Object===Object&&self,tc=tu||ts||Function("return this")(),tl=tc.Symbol,tf=Object.prototype,td=tf.hasOwnProperty,tg=tf.toString,th=tl?tl.toStringTag:void 0,tp=function(e){var t=td.call(e,th),r=e[th];try{e[th]=void 0;var n=!0}catch(e){}var o=tg.call(e);return n&&(t?e[th]=r:delete e[th]),o},tv=Object.prototype.toString,ty=tl?tl.toStringTag:void 0,tb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ty&&ty in Object(e)?tp(e):tv.call(e)},tm=function(e){return null!=e&&"object"==typeof e},tO=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},tS=Array.isArray,tD=1/0,tT=tl?tl.prototype:void 0,tw=tT?tT.toString:void 0,tI=function e(t){if("string"==typeof t)return t;if(tS(t))return tO(t,e)+"";if("symbol"==typeof t||tm(t)&&"[object Symbol]"==tb(t))return tw?tw.call(t):"";var r=t+"";return"0"==r&&1/t==-tD?"-0":r},tE=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},tj=function(e){if(!tE(e))return!1;var t=tb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},tk=tc["__core-js_shared__"],tC=function(){var e=/[^.]+$/.exec(tk&&tk.keys&&tk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),t_=Function.prototype.toString,tP=function(e){if(null!=e){try{return t_.call(e)}catch(e){}try{return e+""}catch(e){}}return""},tx=/^\[object .+?Constructor\]$/,tA=Object.prototype,tN=Function.prototype.toString,tR=tA.hasOwnProperty,tM=RegExp("^"+tN.call(tR).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tL=function(e){return!!tE(e)&&(!tC||!(tC in e))&&(tj(e)?tM:tx).test(tP(e))},tH=function(e,t){var r=null==e?void 0:e[t];return tL(r)?r:void 0},tU=tH(tc,"WeakMap"),tF=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return -1},tB=function(e){return e!=e},tz=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return -1},t$=function(e,t){return!!(null==e?0:e.length)&&(t==t?tz(e,t,0):tF(e,tB,0))>-1},tG=/^(?:0|[1-9]\d*)$/,tW=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&tG.test(e))&&e>-1&&e%1==0&&e<t},tq=function(e,t){return e===t||e!=e&&t!=t},tK=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},tV=Object.prototype,tX=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tV)},tY=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},tQ=function(e){return tm(e)&&"[object Arguments]"==tb(e)},tJ=Object.prototype,tZ=tJ.hasOwnProperty,t0=tJ.propertyIsEnumerable,t1=tQ(function(){return arguments}())?tQ:function(e){return tm(e)&&tZ.call(e,"callee")&&!t0.call(e,"callee")},t2="object"==typeof exports&&exports&&!exports.nodeType&&exports,t3=t2&&"object"==typeof module&&module&&!module.nodeType&&module,t4=t3&&t3.exports===t2?tc.Buffer:void 0,t8=(t4?t4.isBuffer:void 0)||function(){return!1},t5={};t5["[object Float32Array]"]=t5["[object Float64Array]"]=t5["[object Int8Array]"]=t5["[object Int16Array]"]=t5["[object Int32Array]"]=t5["[object Uint8Array]"]=t5["[object Uint8ClampedArray]"]=t5["[object Uint16Array]"]=t5["[object Uint32Array]"]=!0,t5["[object Arguments]"]=t5["[object Array]"]=t5["[object ArrayBuffer]"]=t5["[object Boolean]"]=t5["[object DataView]"]=t5["[object Date]"]=t5["[object Error]"]=t5["[object Function]"]=t5["[object Map]"]=t5["[object Number]"]=t5["[object Object]"]=t5["[object RegExp]"]=t5["[object Set]"]=t5["[object String]"]=t5["[object WeakMap]"]=!1;var t6="object"==typeof exports&&exports&&!exports.nodeType&&exports,t7=t6&&"object"==typeof module&&module&&!module.nodeType&&module,t9=t7&&t7.exports===t6&&tu.process,re=function(){try{var e=t7&&t7.require&&t7.require("util").t
2ypes;if(e)return e;return t9&&t9.binding&&t9.binding("util")}catch(e){}}(),rt=re&&re.isTypedArray,rr=rt?function(e){return rt(e)}:function(e){return tm(e)&&tK(e.length)&&!!t5[tb(e)]},rn=Object.prototype.hasOwnProperty,ro=function(e,t){var r=tS(e),n=!r&&t1(e),o=!r&&!n&&t8(e),i=!r&&!n&&!o&&rr(e),a=r||n||o||i,u=a?tY(e.length,String):[],s=u.length;for(var c in e)(t||rn.call(e,c))&&!(a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||tW(c,s)))&&u.push(c);return u},ri=(n=Object.keys,o=Object,function(e){return n(o(e))}),ra=Object.prototype.hasOwnProperty,ru=function(e){if(!tX(e))return ri(e);var t=[];for(var r in Object(e))ra.call(e,r)&&"constructor"!=r&&t.push(r);return t},rs=function(e){return null!=e&&tK(e.length)&&!tj(e)?ro(e):ru(e)},rc=tH(Object,"create"),rl=Object.prototype.hasOwnProperty,rf=Object.prototype.hasOwnProperty;function rd(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rd.prototype.clear=function(){this.__data__=rc?rc(null):{},this.size=0},rd.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},rd.prototype.get=function(e){var t=this.__data__;if(rc){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return rl.call(t,e)?t[e]:void 0},rd.prototype.has=function(e){var t=this.__data__;return rc?void 0!==t[e]:rf.call(t,e)},rd.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=rc&&void 0===t?"__lodash_hash_undefined__":t,this};var rg=function(e,t){for(var r=e.length;r--;)if(tq(e[r][0],t))return r;return -1},rh=Array.prototype.splice;function rp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rp.prototype.clear=function(){this.__data__=[],this.size=0},rp.prototype.delete=function(e){var t=this.__data__,r=rg(t,e);return!(r<0)&&(r==t.length-1?t.pop():rh.call(t,r,1),--this.size,!0)},rp.prototype.get=function(e){var t=this.__data__,r=rg(t,e);return r<0?void 0:t[r][1]},rp.prototype.has=function(e){return rg(this.__data__,e)>-1},rp.prototype.set=function(e,t){var r=this.__data__,n=rg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var rv=tH(tc,"Map"),ry=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},rb=function(e,t){var r=e.__data__;return ry(t)?r["string"==typeof t?"string":"hash"]:r.map};function rm(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rm.prototype.clear=function(){this.size=0,this.__data__={hash:new rd,map:new(rv||rp),string:new rd}},rm.prototype.delete=function(e){var t=rb(this,e).delete(e);return this.size-=!!t,t},rm.prototype.get=function(e){return rb(this,e).get(e)},rm.prototype.has=function(e){return rb(this,e).has(e)},rm.prototype.set=function(e,t){var r=rb(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this};var rO=function(e){return null==e?"":tI(e)},rS=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};function rD(e){var t=this.__data__=new rp(e);this.size=t.size}rD.prototype.clear=function(){this.__data__=new rp,this.size=0},rD.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rD.prototype.get=function(e){return this.__data__.get(e)},rD.prototype.has=function(e){return this.__data__.has(e)},rD.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rp){var n=r.__data__;if(!rv||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rm(n)}return r.set(e,t),this.size=r.size,this};var rT=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i},rw=Object.prototype.propertyIsEnumerable,rI=Object.getOwnPropertySymbols,rE=rI?function(e){return null==e?[]:rT(rI(e=Object(e)),function(t){return rw.call(e,t)})}:function(){return[]},rj=function(e,t,r){var n=t(e);return tS(e)?n:rS(n,r(e))},rk=function(e){return rj(e,rs,rE)},rC=tH(tc,"DataView"),r_=tH(tc,"Promise"),rP=tH(tc,"Set"),rx="[object Map]",rA="[object Promise]",rN="[object Set]",rR="[object WeakMap]",rM="[object DataView]",rL=tP(rC),rH=tP(rv),rU=tP(r_),rF=tP(rP),rB=tP(tU),rz=tb;(rC&&rz(new rC(new ArrayBuffer(1)))!=rM||rv&&rz(new rv)!=rx||r_&&rz(r_.resolve())!=rA||rP&&rz(new rP)!=rN||tU&&rz(new tU)!=rR)&&(rz=function(e){var t=tb(e),r="[object Object]"==t?e.constructor:void 0,n=r?tP(r):"";if(n)switch(n){case rL:return rM;case rH:return rx;case rU:return rA;case rF:return rN;case rB:return rR}return t});var r$=rz,rG=tc.Uint8Array;function rW(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rm;++t<r;)this.add(e[t])}rW.prototype.add=rW.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rW.prototype.has=function(e){return this.__data__.has(e)};var rq=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},rK=function(e,t){return e.has(t)},rV=function(e,t,r,n,o,i){var a=1&r,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,g=2&r?new rW:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],p=t[f];if(n)var v=a?n(p,h,f,t,e,i):n(h,p,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(g){if(!rq(t,function(e,t){if(!rK(g,t)&&(h===e||o(h,e,r,n,i)))return g.push(t)})){d=!1;break}}else if(!(h===p||o(h,p,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d},rX=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},rY=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}
vendor: 1,816 bytes, line 2
2,rQ=tl?tl.prototype:void 0,rJ=rQ?rQ.valueOf:void 0,rZ=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!i(new rG(e),new rG(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return tq(+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 u=rX;case"[object Set]":var s=1&n;if(u||(u=rY),e.size!=t.size&&!s)break;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var l=rV(u(e),u(t),n,o,i,a);return a.delete(e),l;case"[object Symbol]":if(rJ)return rJ.call(e)==rJ.call(t)}return!1},r0=Object.prototype.hasOwnProperty,r1=function(e,t,r,n,o,i){var a=1&r,u=rk(e),s=u.length;if(s!=rk(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:r0.call(t,l)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var g=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var p=e[l=u[c]],v=t[l];if(n)var y=a?n(v,p,l,t,e,i):n(p,v,l,e,t,i);if(!(void 0===y?p===v||o(p,v,r,n,i):y)){g=!1;break}h||(h="constructor"==l)}if(g&&!h){var b=e.constructor,m=t.constructor;b!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(g=!1)}return i.delete(e),i.delete(t),g},r2="[object Arguments]",r3="[object Array]",r4="[object Object]",r8=Object.prototype.hasOwnProperty,r5=function(e,t,r,n,o,i){var a=tS(e),u=tS(t),s=a?r3:r$(e),c=u?r3:r$(t);s=s==r2?r4:s,c=c==r2?r4:c;var l=s==r4,f=c==r4,d=s==c;if(d&&t8(e)){if(!t8(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new rD),a||rr(e)?rV(e,t,r,n,o,i):rZ(e,t,s,r,n,o,i);if(!(1&r)){var g=l&&r8.call(e,"__wrapped__"),h=f&&r8.call(t,"__wrapped__");
2if(g||h){var p=g?e.value():e,v=h?t.value():t;return i||(i=new rD),o(p,v,r,n,i)}}return!!d&&(i||(i=new rD),r1(e,t,r,n,o,i))},r6=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1},r7=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),r9=/[&<>"']/g,ne=RegExp(r9.source),nt=/[\\^$.*+?()[\]{}|]/g,nr=RegExp(nt.source),nn=rP&&1/rY(new rP([,-0]))[1]==1/0?function(e){return new rP(e)}:function(){},no=function(e,t,r){var n=-1,o=t$,i=e.length,a=!0,u=[],s=u;if(r)a=!1,o=r6;else if(i>=200){var c=t?null:nn(e);if(c)return rY(c);a=!1,o=rK,s=new rW}else s=t?[]:u;e:for(;++n<i;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),u.push(l)}else o(s,f,r)||(s!==u&&s.push(f),u.push(l))}return u},ni={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},na={ENTER:"Enter",TAB:"Tab",COMMA:",",SPACE:" ",SEMICOLON:";"},nu={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},ns={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},nc={TAG_LIMIT:"Tag limit reached!"};function nl(e){let{moveTag:t,readOnly:r,allowDragDrop:n}=e;return void 0!==t&&!r&&n}var nf=e=>{let{readOnly:t,removeComponent:r,onRemove:n,className:o,tag:i,index:a}=e,u=e=>{if(ni.ENTER.includes(e.keyCode)||e.keyCode===ni.SPACE){e.preventDefault(),e.stopPropagation();return}e.keyCode===ni.BACKSPACE&&n(e)};if(t)return(0,s.jsx)("span",{});let c=`Tag at index ${a} with value ${i.id} focussed. Press backspace to remove`;return r?(0,s.jsx)(r,{"data-testid":"remove",onRemove:n,onKeyDown:u,className:o,"aria-label":c,tag:i,index:a}):(0,s.jsx)("button",{"data-testid":"remove",onClick:n,onKeyDown:u,className:o,type:"button","aria-label":c,children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"12",width:"12",fill:"#fff",children:(0,s.jsx)("path",{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"})})})},nd={TAG:"tag"},ng=e=>{let t=(0,c.useRef)(null),{readOnly:r=!1,tag:n,classNames:o,index:i,moveTag:a,allowDragDrop:u=!0,labelField:f="text",tags:d}=e,[{isDragging:g},h]=function(e,t){var r,n,o,i,a,u,s,f,d,g=ez(e,t);l(!g.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var h=(r=eU(),(0,c.useMemo)(function(){return new eW(r)},[r])),p=(n=g.options,o=g.previewOptions,i=eU(),eM(function(){a.dragSourceOptions=n||null,a.reconnect()},[a=(0,c.useMemo)(function(){return new eQ(i.getBackend())},[i]),n]),eM(function(){a.dragPreviewOptions=o||null,a.reconnect()},[a,o]),a);return u=eU(),s=(0,c.useMemo)(function(){return new eH(g,h,p)},[h,p]),(0,c.useEffect)(function(){s.spec=g},[g]),eM(function(){if(null!=d){var e,t,r,n,o=function(e){if(Array.isArray(e))return e}((e=d,n=[r=(t=u.getRegistry()).addSource(e,f),function(){return t.removeSource(r)}]))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(n,2)||function(e,t){if(e){if("string"==typeof e)return eF(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eF(e,t)}}
2(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return h.receiveHandlerId(i),p.receiveHandlerId(i),a}},[u,h,p,f=s,d=(0,c.useMemo)(function(){var e=g.type;return l(null!=e,"spec.type must be defined"),e},[g])]),[e2(g.collect,h,p),(0,c.useMemo)(function(){return p.hooks.dragSource()},[p]),(0,c.useMemo)(function(){return p.hooks.dragPreview()},[p])]}(()=>({type:nd.TAG,collect:e=>({isDragging:!!e.isDragging()}),item:e,canDrag:()=>nl({moveTag:a,readOnly:r,allowDragDrop:u})}),[d]),[,p]=function(e,t){var r,n,o,i,a,u,s,f,d,g=ez(e,t),h=(r=eU(),(0,c.useMemo)(function(){return new e5(r)},[r])),p=(n=g.options,o=eU(),i=(0,c.useMemo)(function(){return new e6(o.getBackend())},[o]),eM(function(){i.dropTargetOptions=n||null,i.reconnect()},[n]),i);return a=eU(),u=(0,c.useMemo)(function(){return new e3(g,h)},[h]),(0,c.useEffect)(function(){u.spec=g},[g]),eM(function(){var e,t,r,n,o=function(e){if(Array.isArray(e))return e}((e=d,n=[r=(t=a.getRegistry()).addTarget(e,s),function(){return t.removeTarget(r)}]))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(n,2)||function(e,t){if(e){if("string"==typeof e)return e4(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e4(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],u=o[1];return h.receiveHandlerId(i),p.receiveHandlerId(i),u},[a,h,s=u,p,(f=g.accept,d=(0,c.useMemo)(function(){return l(null!=g.accept,"accept must be defined"),Array.isArray(f)?f:[f]},[f])).map(function(e){return e.toString()}).join("|")]),[e2(g.collect,h,p),(0,c.useMemo)(function(){return p.hooks.dropTarget()},[p])]}(()=>({accept:nd.TAG,drop:t=>{let r=t.index;r!==i&&e?.moveTag?.(r,i)},canDrop:e=>(function(e){let{readOnly:t,allowDragDrop:r}=e;return!t&&r})(e)}),[d]);h(p(t));let v=e.tag[f],{className:y=""}=n;return(0,s.jsxs)("span",{ref:t,className:(0,ta.default)("tag-wrapper",o.tag,y),style:{opacity:+!g,cursor:nl({moveTag:a,readOnly:r,allowDragDrop:u})?"move":"auto"},"data-testid":"tag",onClick:e.onTagClicked,onTouchStart:e.onTagClicked,children:[v,(0,s.jsx)(nf,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:r,index:i})]})},nh=e=>(0,s.jsx)("button",{"aria-label":e["aria-label"],className:e.classNames.clearAll,onClick:e.onClick,children:"Clear all"}),np=(e,t,r,n)=>"function"==typeof n?n(e):e.length>=t&&r,nv=(0,c.memo)(e=>{let t=(0,c.createRef)(),{labelField:r,minQueryLength:n,isFocused:o,classNames:i,selectedIndex:a,query:u}=e;(0,c.useEffect)(()=>{if(!t.current)return;let e=t.current.querySelector(`.${i.activeSuggestion}`);e&&((e,t)=>{let r=t.offsetHeight,n=e.offsetHeight,o=e.offsetTop-t.scrollTop;o+n>=r?t.scrollTop+=o-r+n:o<0&&(t.scrollTop+=o)})(e,t.current)},[a]);let l=e.suggestions.map((t,n)=>(0,s.jsx)("li",{onMouseDown:e.handleClick.bind(null,n),onTouchStart:e.handleClick.bind(null,n),onMouseOver:e.handleHover.bind(null,n),className:n===e.selectedIndex?e.classNames.activeSuggestion:"",children:((t,n)=>"function"==typeof e.renderSuggestion?e.renderSuggestion(t,n):(0,s.jsx)("span",{dangerouslySetInnerHTML:((e,t)=>{let n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),{[r]:o}=e;return{__html:o.replace(RegExp(n,"gi"),e=>`<mark>${function(e){return(e=rO(e))&&ne.test(e)?e.replace(r9,r7):e}(e)}</mark>`)}})(t,n)}))(t,e.query)},n));return 0!==l.length&&np(u,n||2,o,e.shouldRenderSuggestions)?(0,s.jsx)("div",{ref:t,className:i.suggestions,"data-testid":"suggestions",children:(0,s.jsxs)("ul",{children:[" ",l," "]})}):null},(e,t)=>
2{let{query:r,minQueryLength:n=2,isFocused:o,suggestions:i}=t;return!!(e.isFocused===o&&function e(t,r,n,o,i){return t===r||(null!=t&&null!=r&&(tm(t)||tm(r))?r5(t,r,n,o,e,i):t!=t&&r!=r)}(e.suggestions,i))&&np(r,n,o,t.shouldRenderSuggestions)===np(e.query,e.minQueryLength??2,e.isFocused,e.shouldRenderSuggestions)&&e.selectedIndex===t.selectedIndex}),ny=to(ti(),1),nb=e=>{let{autofocus:t,autoFocus:r,readOnly:n,labelField:o,allowDeleteFromEmptyInput:i,allowAdditionFromPaste:a,allowDragDrop:u,minQueryLength:l,shouldRenderSuggestions:f,removeComponent:d,autocomplete:g,inline:h,maxTags:p,allowUnique:v,editable:y,placeholder:b,delimiters:m,separators:O,tags:S,inputFieldPosition:D,inputProps:T,classNames:w,maxLength:I,inputValue:E,clearAll:j,ariaAttrs:k}=e,[C,_]=(0,c.useState)(e.suggestions),[P,x]=(0,c.useState)(""),[A,N]=(0,c.useState)(!1),[R,M]=(0,c.useState)(-1),[L,H]=(0,c.useState)(!1),[U,F]=(0,c.useState)(""),[B,z]=(0,c.useState)(-1),[$,G]=(0,c.useState)(""),W=(0,c.createRef)(),q=(0,c.useRef)(null),K=(0,c.useRef)(null);(0,c.useEffect)(()=>{m.length&&console.warn("[Deprecation] The delimiters prop is deprecated and will be removed in v7.x.x, please use separators instead. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/960")},[]),(0,c.useEffect)(()=>{void 0!==h&&console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.")},[h]),(0,c.useEffect)(()=>{void 0!==t&&console.warn("[Deprecated] autofocus prop will be removed in 7.x so please migrate to autoFocus prop."),(t||r&&!1!==t)&&!n&&Y()},[r,r,n]),(0,c.useEffect)(()=>{ee()},[P,e.suggestions]);let V=t=>{let r=e.suggestions.slice();if(v){let e=S.map(e=>e.id.trim().toLowerCase());r=r.filter(t=>!e.includes(t.id.toLowerCase()))}if(e.handleFilterSuggestions)return e.handleFilterSuggestions(t,r);let n=r.filter(e=>0===X(t,e)),o=r.filter(e=>X(t,e)>0);return n.concat(o)},X=(e,t)=>t[o].toLowerCase().indexOf(e.toLowerCase()),Y=()=>{x(""),q.current&&(q.current.value="",q.current.focus())},Q=(t,r)=>{r.preventDefault(),r.stopPropagation();let n=S.slice();0!==n.length&&(G(""),e?.handleDelete?.(t,r),J(t,n))},J=(e,t)=>{if(!W?.current)return;let r=W.current.querySelectorAll(".ReactTags__remove"),n="";0===e&&t.length>1?(n=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index 0 with value ${t[1].id} focussed. Press backspace to remove`,r[0].focus()):e>0?(n=`Tag at index ${e} with value ${t[e].id} deleted. Tag at index ${e-1} with value ${t[e-1].id} focussed. Press backspace to remove`,r[e-1].focus()):(n=`Tag at index ${e} with value ${t[e].id} deleted. Input focussed. Press enter to add a new tag`,q.current?.focus()),F(n)},Z=t=>{e.handleInputChange&&e.handleInputChange(t.target.value,t),x(t.target.value.trim())},ee=()=>{let e=V(P);_(e),M(R>=e.length?e.length-1:R)},et=t=>{let r=t.target.value;e.handleInputFocus&&e.handleInputFocus(r,t),N(!0)},er=t=>{let r=t.target.value;e.handleInputBlur&&(e.handleInputBlur(r,t),q.current&&(q.current.value="")),N(!1),z(-1)},en=e=>{if(!e.nativeEvent.isComposing){if("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M(-1),H(!1),_([]),z(-1)),(-1!==O.indexOf(e.key)||-1!==m.indexOf(e.keyCode))&&!e.shiftKey){(e.keyCode!==ni.TAB||""!==P)&&e.preventDefault();let t=L&&-1!==R?C[R]:{id:P.trim(),[o]:P.trim(),className:""};Object.keys(t)&&ea(t)}"Backspace"===e.key&&""===P&&(i||D===ns.INLINE)&&Q(S.length-1,e),e.keyCode===ni.UP_ARROW&&(e.preventDefault(),M(R<=0?C.length-1:R-1),H(!0)),e.keyCode===ni.DOWN_ARROW&&(e.preventDefault(),H(!0),0===C.length?M(-1):M((R+1)%C.length))}},eo=()=>p&&S.length>=p,ei=t=>{if(!a)return;if(eo()){G(nc.TAG_LIMIT),Y();return}G(""),t.preventDefault();let r=t.clipboardData||window.clipboardData,n=r.getData("text"),{maxLength:i=n.length}=e,u=Math.min(i,n.length),s=r.getData("text").substr(0,u),c=m;O.length&&(c=[],O.forEach(e=>{let t=function(e){switch(e){case na.ENTER:return[10,13];case na.TAB:return 9;case na.COMMA:return 188;case na.SPACE:return 32;case na.SEMICOLON:return 186;default:return 0}}(e);Array.isArray(t)?c=[...c,...t]:c.push(t)}));let l=function(e){var t;let r=(t=rO(t=e.map(e=>{let t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}
2).join("")))&&nr.test(t)?t.replace(nt,"\\$&"):t;return RegExp(`[${r}]+`)}(c);(function(e){return e&&e.length?no(e):[]})(s.split(l).map(e=>e.trim())).forEach(e=>ea({id:e.trim(),[o]:e.trim(),className:""}))},ea=t=>{if(!t.id||!t[o])return;if(-1===B){if(eo()){G(nc.TAG_LIMIT),Y();return}G("")}let r=S.map(e=>e.id.toLowerCase());if(!(v&&r.indexOf(t.id.trim().toLowerCase())>=0)){if(g){let e=V(t[o]);console.warn("[Deprecation] The autocomplete prop will be removed in 7.x to simplify the integration and make it more intutive. If you have any concerns regarding this, please share your thoughts in https://github.com/react-tags/react-tags/issues/949"),(1===g&&1===e.length||!0===g&&e.length)&&(t=e[0])}-1!==B&&e.onTagUpdate?e.onTagUpdate(B,t):e?.handleAddition?.(t),x(""),H(!1),M(-1),z(-1),Y()}},eu=(t,r)=>{let n=S[t];e?.handleDrag?.(n,t,r)},es=(()=>{let t={...nu,...e.classNames};return S.map((r,i)=>(0,s.jsx)(c.Fragment,{children:B===i?(0,s.jsx)("div",{className:t.editTagInput,children:(0,s.jsx)("input",{ref:e=>{K.current=e},onFocus:et,value:P,onChange:Z,onKeyDown:en,onBlur:er,className:t.editTagInputField,onPaste:ei,"data-testid":"tag-edit"})}):(0,s.jsx)(ng,{index:i,tag:r,tags:S,labelField:o,onDelete:e=>Q(i,e),moveTag:u?eu:void 0,removeComponent:d,onTagClicked:t=>((t,r,i)=>{n||(y&&(z(t),x(r[o]),K.current?.focus()),e.handleTagClick?.(t,i))})(i,r,t),readOnly:n,classNames:t,allowDragDrop:u})},i))})(),ec={...nu,...w},{name:el,id:ef}=e,ed=!1===h?ns.BOTTOM:D,eg=n?null:(0,s.jsxs)("div",{className:ec.tagInput,children:[(0,s.jsx)("input",{...T,ref:e=>{q.current=e},className:ec.tagInputField,type:"text",placeholder:b,"aria-label":b,onFocus:et,onBlur:er,onChange:Z,onKeyDown:en,onPaste:ei,name:el,id:ef,maxLength:I,value:E,"data-automation":"input","data-testid":"input"}),(0,s.jsx)(nv,{query:P.trim(),suggestions:C,labelField:o,selectedIndex:R,handleClick:e=>{ea(C[e])},handleHover:e=>{M(e),H(!0)},minQueryLength:l,shouldRenderSuggestions:f,isFocused:A,classNames:ec,renderSuggestion:e.renderSuggestion}),j&&S.length>0&&(0,s.jsx)(nh,{"aria-label":k?.clearAllLabel,classNames:ec,onClick:()=>{e.onClearAll&&e.onClearAll(),G(""),Y()}}),$&&(0,s.jsxs)("div",{"data-testid":"error",className:"ReactTags__error",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",fill:"#e03131",children:(0,s.jsx)("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})}),$]})]});return(0,s.jsxs)("div",{className:(0,ny.default)(ec.tags,"react-tags-wrapper"),ref:W,children:[(0,s.jsx)("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},children:U}),ed===ns.TOP&&eg,(0,s.jsxs)("div",{className:ec.selected,children:[es,ed===ns.INLINE&&eg]}),ed===ns.BOTTOM&&eg]})},nm=e=>{let{placeholder:t="Press enter to add new tag",labelField:r="text",suggestions:n=[],delimiters:o=[],separators:i=e.delimiters?.length?[]:[na.ENTER,na.TAB],autofocus:a,autoFocus:u=!0,inline:c,inputFieldPosition:l="inline",allowDeleteFromEmptyInput:f=!1,allowAdditionFromPaste:d=!0,autocomplete:g=!1,readOnly:h=!1,allowUnique:p=!0,allowDragDrop:v=!0,tags:y=[],inputProps:b={},editable:m=!1,clearAll:O=!1,ariaAttrs:S={clearAllLabel:"clear all tags"},handleDelete:D,handleAddition:T,onTagUpdate:w,handleDrag:I,handleFilterSuggestions:E,handleTagClick:j,handleInputChange:k,handleInputFocus:C,handleInputBlur:_,minQueryLength:P,shouldRenderSuggestions:x,removeComponent:A,onClearAll:N,classNames:R,name:M,id:L,maxLength:H,inputValue:U,maxTags:F,renderSuggestion:B}=e;return(0,s.jsx)(nb,{placeholder:t,labelField:r,suggestions:n,delimiters:o,separators:i,autofocus:a,autoFocus:u,inline:c,inputFieldPosition:l,allowDeleteFromEmptyInput:f,allowAdditionFromPaste:d,autocomplete:g,readOnly:h,allowUnique:p,allowDragDrop:v,tags:y,inputProps:b,editable:m,clearAll:O,ariaAttrs:S,handleDelete:D,handleAddition:T,onTagUpdate:w,handleDrag:I,handleFilterSuggestions:E,handleTag
2Click:j,handleInputChange:k,handleInputFocus:C,handleInputBlur:_,minQueryLength:P,shouldRenderSuggestions:x,removeComponent:A,onClearAll:N,classNames:R,name:M,id:L,maxLength:H,inputValue:U,maxTags:F,renderSuggestion:B})},nO=({...e})=>(0,s.jsx)(eg,{backend:eR,children:(0,s.jsx)(nm,{...e})})},56689:e=>{e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var n,o,i,a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}}}]);
3//# chunkId=4e3493d8-cd65-53d8-9d8f-8ec30d742fcd

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.