@producteca/producteca-ui-kit 1.48.3 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+
1
3
  type ChipVariant = 'primary' | 'success' | 'error' | 'secondary' | 'grey' | 'tab';
2
4
  type ChipSize = 'sm' | 'lg';
3
5
  export interface ChipProps {
4
6
  text?: string;
5
7
  title?: string;
8
+ content?: ReactNode;
6
9
  onRemove?: () => void;
7
10
  disabled?: boolean;
8
11
  variant?: ChipVariant;
9
12
  size?: ChipSize;
10
13
  isActive?: boolean;
11
14
  }
12
- export declare const Chip: ({ isActive, title, text, onRemove, disabled, variant, size }: ChipProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Chip: ({ isActive, title, text, content, onRemove, disabled, variant, size }: ChipProps) => import("react/jsx-runtime").JSX.Element;
13
16
  export default Chip;
@@ -581,7 +581,7 @@ fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{p
581
581
  key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
582
582
  isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
583
583
  isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
584
- isIndex$1(key,length2)))){result.push(key);}}return result;}var _arrayLikeKeys=arrayLikeKeys$2;var objectProto$9=Object.prototype;function isPrototype$4(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto$9;return value===proto;}var _isPrototype=isPrototype$4;function overArg$2(func,transform){return function(arg2){return func(transform(arg2));};}var _overArg=overArg$2;var overArg$1=_overArg;var nativeKeys$1=overArg$1(Object.keys,Object);var _nativeKeys=nativeKeys$1;var isPrototype$3=_isPrototype,nativeKeys=_nativeKeys;var objectProto$8=Object.prototype;var hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys$3(object){if(!isPrototype$3(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty$9.call(object,key)&&key!="constructor"){result.push(key);}}return result;}var _baseKeys=baseKeys$3;var isFunction$1=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(value){return value!=null&&isLength$1(value.length)&&!isFunction$1(value);}var isArrayLike_1=isArrayLike$8;var arrayLikeKeys$1=_arrayLikeKeys,baseKeys$2=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$7(object){return isArrayLike$7(object)?arrayLikeKeys$1(object):baseKeys$2(object);}var keys_1=keys$7;var baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$6=keys_1;function getAllKeys$2(object){return baseGetAllKeys$1(object,keys$6,getSymbols$2);}var _getAllKeys=getAllKeys$2;var getAllKeys$1=_getAllKeys;var COMPARE_PARTIAL_FLAG$3=1;var objectProto$7=Object.prototype;var hasOwnProperty$8=objectProto$7.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys$1(object),objLength=objProps.length,othProps=getAllKeys$1(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty$8.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===void 0?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result=false;}}stack["delete"](object);stack["delete"](other);return result;}var _equalObjects=equalObjects$1;var getNative$4=_getNative,root$3=_root;var DataView$1=getNative$4(root$3,"DataView");var _DataView=DataView$1;var getNative$3=_getNative,root$2=_root;var Promise$2=getNative$3(root$2,"Promise");var _Promise=Promise$2;var getNative$2=_getNative,root$1=_root;var Set$2=getNative$2(root$1,"Set");var _Set=Set$2;var getNative$1=_getNative,root=_root;var WeakMap$2=getNative$1(root,"WeakMap");var _WeakMap=WeakMap$2;var DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$3=_baseGetTag,toSource=_toSource;var mapTag$5="[object Map]",objectTag$3="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]";var dataViewTag$2="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1);var getTag$6=baseGetTag$3;if(DataView&&getTag$6(new DataView(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$6(new Map$1())!=mapTag$5||Promise$1&&getTag$6(Promise$1.resolve())!=promiseTag||Set$1&&getTag$6(new Set$1())!=setTag$5||WeakMap$1&&getTag$6(new WeakMap$1())!=weakMapTag$1){getTag$6=function getTag$6(value){var result=baseGetTag$3(value),Ctor=result==objectTag$3?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1;}}return result;};}var _getTag=getTag$6;var Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$5=_getTag,isArray$c=isArray_1,isBuffer$2=isBufferExports,isTypedArray$1=isTypedArray_1;var COMPARE_PARTIAL_FLAG$2=1;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",objectTag$2="[object Object]";var objectProto$6=Object.prototype;var hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseIsEqualDeep$1(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$c(object),othIsArr=isArray$c(other),objTag=objIsArr?arrayTag$1:getTag$5(object),othTag=othIsArr?arrayTag$1:getTag$5(other);objTag=objTag==argsTag$1?objectTag$2:objTag;othTag=othTag==argsTag$1?objectTag$2:othTag;var objIsObj=objTag==objectTag$2,othIsObj=othTag==objectTag$2,isSameTag=objTag==othTag;if(isSameTag&&isBuffer$2(object)){if(!isBuffer$2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack$2());return objIsArr||isTypedArray$1(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG$2)){var objIsWrapped=objIsObj&&hasOwnProperty$7.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty$7.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack$2());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack$2());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}var _baseIsEqualDeep=baseIsEqualDeep$1;var baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$5=isObjectLike_1;function baseIsEqual$2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike$5(value)&&!isObjectLike$5(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual$2,stack);}var _baseIsEqual=baseIsEqual$2;var Stack$1=_Stack,baseIsEqual$1=_baseIsEqual;var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===void 0&&!(key in object)){return false;}}else{var stack=new Stack$1();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===void 0?baseIsEqual$1(srcValue,objValue,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,customizer,stack):result)){return false;}}}return true;}var _baseIsMatch=baseIsMatch$1;var isObject$4=isObject_1;function isStrictComparable$2(value){return value===value&&!isObject$4(value);}var _isStrictComparable=isStrictComparable$2;var isStrictComparable$1=_isStrictComparable,keys$5=keys_1;function getMatchData$1(object){var result=keys$5(object),length2=result.length;while(length2--){var key=result[length2],value=object[key];result[length2]=[key,value,isStrictComparable$1(value)];}return result;}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==void 0||key in Object(object));};}var _matchesStrictComparable=matchesStrictComparable$2;var baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable$1(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}var _baseMatches=baseMatches$1;var baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1;var symbolTag$2="[object Symbol]";function isSymbol$4(value){return _typeof2(value)=="symbol"||isObjectLike$4(value)&&baseGetTag$2(value)==symbolTag$2;}var isSymbol_1=isSymbol$4;var isArray$b=isArray_1,isSymbol$3=isSymbol_1;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(value,object){if(isArray$b(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol$3(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}var _isKey=isKey$3;var MapCache=_MapCache;var FUNC_ERROR_TEXT="Expected a function";function memoize$2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);_memoized.cache=cache.set(key,result)||cache;return result;};_memoized.cache=new(memoize$2.Cache||MapCache)();return _memoized;}memoize$2.Cache=MapCache;var memoize_1=memoize$2;var memoize$1=memoize_1;var MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(func){var result=memoize$1(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result.cache;return result;}var _memoizeCapped=memoizeCapped$1;var memoizeCapped=_memoizeCapped;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath$1=memoizeCapped(function(string){var result=[];if(string.charCodeAt(0)===46){result.push("");}string.replace(rePropName,function(match2,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match2);});return result;});var _stringToPath=stringToPath$1;var Symbol$2=_Symbol,arrayMap$3=_arrayMap,isArray$a=isArray_1,isSymbol$2=isSymbol_1;var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$2(value){if(typeof value=="string"){return value;}if(isArray$a(value)){return arrayMap$3(value,baseToString$2)+"";}if(isSymbol$2(value)){return symbolToString?symbolToString.call(value):"";}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _baseToString=baseToString$2;var baseToString$1=_baseToString;function toString$3(value){return value==null?"":baseToString$1(value);}var toString_1=toString$3;var isArray$9=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$4(value,object){if(isArray$9(value)){return value;}return isKey$2(value,object)?[value]:stringToPath(toString$2(value));}var _castPath=castPath$4;var isSymbol$1=isSymbol_1;function toKey$5(value){if(typeof value=="string"||isSymbol$1(value)){return value;}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _toKey=toKey$5;var castPath$3=_castPath,toKey$4=_toKey;function baseGet$3(object,path){path=castPath$3(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey$4(path[index2++])];}return index2&&index2==length2?object:void 0;}var _baseGet=baseGet$3;var baseGet$2=_baseGet;function get$2(object,path,defaultValue2){var result=object==null?void 0:baseGet$2(object,path);return result===void 0?defaultValue2:result;}var get_1=get$2;var get$3=/* @__PURE__ */getDefaultExportFromCjs(get_1);function baseHasIn$1(object,key){return object!=null&&key in Object(object);}var _baseHasIn=baseHasIn$1;var castPath$2=_castPath,isArguments$1=isArguments_1,isArray$8=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$3=_toKey;function hasPath$1(object,path,hasFunc){path=castPath$2(path,object);var index2=-1,length2=path.length,result=false;while(++index2<length2){var key=toKey$3(path[index2]);if(!(result=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result||++index2!=length2){return result;}length2=object==null?0:object.length;return!!length2&&isLength(length2)&&isIndex(key,length2)&&(isArray$8(object)||isArguments$1(object));}var _hasPath=hasPath$1;var baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(object,path){return object!=null&&hasPath(object,path,baseHasIn);}var hasIn_1=hasIn$1;var baseIsEqual=_baseIsEqual,get$1=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$2=_toKey;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(path,srcValue){if(isKey$1(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey$2(path),srcValue);}return function(object){var objValue=get$1(object,path);return objValue===void 0&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}var _baseMatchesProperty=baseMatchesProperty$1;function identity$2(value){return value;}var identity_1=identity$2;var identity$3=/* @__PURE__ */getDefaultExportFromCjs(identity_1);function baseProperty$2(key){return function(object){return object==null?void 0:object[key];};}var _baseProperty=baseProperty$2;var baseGet$1=_baseGet;function basePropertyDeep$1(path){return function(object){return baseGet$1(object,path);};}var _basePropertyDeep=basePropertyDeep$1;var baseProperty$1=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey$1=_toKey;function property$1(path){return isKey(path)?baseProperty$1(toKey$1(path)):basePropertyDeep(path);}var property_1=property$1;var baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$1=identity_1,isArray$7=isArray_1,property=property_1;function baseIteratee$5(value){if(typeof value=="function"){return value;}if(value==null){return identity$1;}if(_typeof2(value)=="object"){return isArray$7(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}var _baseIteratee=baseIteratee$5;function createBaseFor$1(fromRight){return function(object,iteratee,keysFunc){var index2=-1,iterable=Object(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}var _createBaseFor=createBaseFor$1;var createBaseFor=_createBaseFor;var baseFor$1=createBaseFor();var _baseFor=baseFor$1;var baseFor=_baseFor,keys$4=keys_1;function baseForOwn$1(object,iteratee){return object&&baseFor(object,iteratee,keys$4);}var _baseForOwn=baseForOwn$1;var isArrayLike$6=isArrayLike_1;function createBaseEach$1(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection;}if(!isArrayLike$6(collection)){return eachFunc(collection,iteratee);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object(collection);while(fromRight?index2--:++index2<length2){if(iteratee(iterable[index2],index2,iterable)===false){break;}}return collection;};}var _createBaseEach=createBaseEach$1;var baseForOwn=_baseForOwn,createBaseEach=_createBaseEach;var baseEach$3=createBaseEach(baseForOwn);var _baseEach=baseEach$3;var baseEach$2=_baseEach,isArrayLike$5=isArrayLike_1;function baseMap$1(collection,iteratee){var index2=-1,result=isArrayLike$5(collection)?Array(collection.length):[];baseEach$2(collection,function(value,key,collection2){result[++index2]=iteratee(value,key,collection2);});return result;}var _baseMap=baseMap$1;var arrayMap$2=_arrayMap,baseIteratee$4=_baseIteratee,baseMap=_baseMap,isArray$6=isArray_1;function map$1(collection,iteratee){var func=isArray$6(collection)?arrayMap$2:baseMap;return func(collection,baseIteratee$4(iteratee));}var map_1=map$1;var map$2=/* @__PURE__ */getDefaultExportFromCjs(map_1);var baseFlatten$1=_baseFlatten,map=map_1;function flatMap(collection,iteratee){return baseFlatten$1(map(collection,iteratee),1);}var flatMap_1=flatMap;var flatMap$1=/* @__PURE__ */getDefaultExportFromCjs(flatMap_1);function baseFindIndex$2(array,predicate,fromIndex,fromRight){var length2=array.length,index2=fromIndex+(fromRight?1:-1);while(fromRight?index2--:++index2<length2){if(predicate(array[index2],index2,array)){return index2;}}return-1;}var _baseFindIndex=baseFindIndex$2;function baseIsNaN$1(value){return value!==value;}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(array,value,fromIndex){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(array[index2]===value){return index2;}}return-1;}var _strictIndexOf=strictIndexOf$1;var baseFindIndex$1=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$1(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex$1(array,baseIsNaN,fromIndex);}var _baseIndexOf=baseIndexOf$1;var baseGetTag$1=_baseGetTag,isArray$5=isArray_1,isObjectLike$3=isObjectLike_1;var stringTag$2="[object String]";function isString$3(value){return typeof value=="string"||!isArray$5(value)&&isObjectLike$3(value)&&baseGetTag$1(value)==stringTag$2;}var isString_1=isString$3;var isString$4=/* @__PURE__ */getDefaultExportFromCjs(isString_1);var reWhitespace=/\s/;function trimmedEndIndex$1(string){var index2=string.length;while(index2--&&reWhitespace.test(string.charAt(index2))){}return index2;}var _trimmedEndIndex=trimmedEndIndex$1;var trimmedEndIndex=_trimmedEndIndex;var reTrimStart=/^\s+/;function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string;}var _baseTrim=baseTrim$1;var baseTrim=_baseTrim,isObject$3=isObject_1,isSymbol=isSymbol_1;var NAN=0/0;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber$1(value){if(typeof value=="number"){return value;}if(isSymbol(value)){return NAN;}if(isObject$3(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject$3(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}var toNumber_1=toNumber$1;var toNumber=toNumber_1;var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}var toFinite_1=toFinite$1;var toFinite=toFinite_1;function toInteger$3(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}var toInteger_1=toInteger$3;var arrayMap$1=_arrayMap;function baseValues$1(object,props){return arrayMap$1(props,function(key){return object[key];});}var _baseValues=baseValues$1;var baseValues=_baseValues,keys$3=keys_1;function values$1(object){return object==null?[]:baseValues(object,keys$3(object));}var values_1=values$1;var baseIndexOf=_baseIndexOf,isArrayLike$4=isArrayLike_1,isString$2=isString_1,toInteger$2=toInteger_1,values=values_1;var nativeMax$2=Math.max;function includes(collection,value,fromIndex,guard){collection=isArrayLike$4(collection)?collection:values(collection);fromIndex=fromIndex&&!guard?toInteger$2(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax$2(length2+fromIndex,0);}return isString$2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var includes_1=includes;var includes$1=/* @__PURE__ */getDefaultExportFromCjs(includes_1);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=flatMap$1(Colors,function(shades,category){return compact$1(map$2(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=map$2(allColors,"title");var ColorValues=map$2(allColors,"color");var Shades=map$2(Colors["grey"],function(color2,shade){return shade;});var Categories=map$2(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return includes$1(ColorValues,color2);};var _excluded$14=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$b="chip-module_sm_lA7fZ";var lg$a="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$7="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$t={chip:chip,title:title$7,text:text,sm:sm$b,lg:lg$a,tab:tab$1,grey:grey,active:active$3,disabled:disabled$7,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip$1=function Chip(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$t.chip,styles$t[variant],styles$t[size2],_defineProperty$2(_defineProperty$2({},styles$t.disabled,disabled2),styles$t.active,isActive)),children:[/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$t.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$t.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$t.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$5=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$5:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$5;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$4=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$3=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor$1=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};var defaultColor=getColor("primary","500");var TrashIcon=function TrashIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:size2,viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M8.70852 5.79443C8.60924 5.79443 8.51403 5.83388 8.44383 5.90409C8.37362 5.9743 8.33417 6.06954 8.33417 6.16884V13.2504C8.33417 13.3498 8.37364 13.4451 8.44392 13.5154C8.51421 13.5857 8.60954 13.6252 8.70894 13.6252C8.80833 13.6252 8.90365 13.5857 8.97393 13.5154C9.04421 13.4451 9.08371 13.3498 9.08371 13.2504V6.16884C9.08371 6.1196 9.07399 6.07085 9.05512 6.02538C9.03626 5.9799 9.00861 5.93859 8.97376 5.90381C8.93891 5.86903 8.89755 5.84147 8.85204 5.82271C8.80653 5.80394 8.75775 5.79433 8.70852 5.79443Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M4.28727 5.79443C4.18798 5.79443 4.09276 5.83388 4.02255 5.90409C3.95234 5.9743 3.9129 6.06954 3.9129 6.16884V13.2504C3.9129 13.3498 3.95239 13.4451 4.02267 13.5154C4.09295 13.5857 4.18827 13.6252 4.28766 13.6252C4.38706 13.6252 4.48238 13.5857 4.55266 13.5154C4.62295 13.4451 4.66243 13.3498 4.66243 13.2504V6.16884C4.66243 6.1196 4.65272 6.07085 4.63386 6.02538C4.61499 5.9799 4.58735 5.93859 4.55251 5.90381C4.51766 5.86903 4.47629 5.84147 4.43078 5.82271C4.38526 5.80394 4.3365 5.79433 4.28727 5.79443Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M1.06596 4.76163V13.9928C1.06038 14.5208 1.25701 15.0308 1.61551 15.4184C1.7873 15.6013 1.99459 15.7472 2.2247 15.8472C2.45481 15.9472 2.7029 15.9992 2.95379 16H10.0419C10.2927 15.9995 10.5406 15.9479 10.7707 15.8483C11.0008 15.7487 11.2082 15.6032 11.3802 15.4208C11.7387 15.0332 11.9353 14.5232 11.9298 13.9952V4.76163C12.2655 4.67241 12.5574 4.46407 12.7509 4.1755C12.9443 3.88692 13.0262 3.5378 12.9813 3.19328C12.9364 2.84875 12.7676 2.53234 12.5066 2.30307C12.2455 2.0738 11.91 1.94733 11.5626 1.94724H9.64278V1.47844C9.64363 1.28406 9.60597 1.09144 9.53198 0.911687C9.45799 0.731937 9.34913 0.568623 9.21169 0.431173C9.07426 0.293722 8.91096 0.184856 8.73122 0.11086C8.55149 0.0368637 8.35888 -0.000797899 8.16451 4.90974e-05H4.83442C4.63945 -0.00154344 4.4461 0.035621 4.26561 0.109384C4.08513 0.183147 3.92109 0.292038 3.78304 0.429734C3.64498 0.567429 3.53566 0.731185 3.46141 0.911489C3.38717 1.09179 3.34949 1.28505 3.35055 1.48004V1.94804H1.43073C1.08331 1.94813 0.747789 2.0746 0.486749 2.30387C0.225709 2.53314 0.0569776 2.84955 0.0120306 3.19408C-0.0329164 3.5386 0.0489902 3.88772 0.242472 4.17629C0.435953 4.46487 0.727796 4.67321 1.06356 4.76243L1.06596 4.76163ZM10.0419 15.248H2.95379C2.79605 15.242 2.6411 15.2046 2.49801 15.1379C2.35493 15.0712 2.22658 14.9767 2.12049 14.8598C2.01441 14.7429 1.93272 14.606 1.88021 14.4571C1.8277 14.3083 1.80542 14.1504 1.81469 13.9928V4.79443H11.181V13.9944C11.1903 14.152 11.168 14.3099 11.1155 14.4587C11.063 14.6076 10.9813 14.7445 10.8752 14.8614C10.7692 14.9783 10.6408 15.0728 10.4977 15.1395C10.3546 15.2062 10.1997 15.2436 10.0419 15.2496V15.248ZM4.10008 1.47844C4.09867 1.3818 4.11673 1.28585 4.15318 1.19634C4.18963 1.10682 4.24374 1.02556 4.31226 0.957395C4.38079 0.889235 4.46234 0.835572 4.55205 0.799605C4.64176 0.763638 4.73779 0.746103 4.83442 0.748047H8.16451C8.26114 0.746103 8.35717 0.763638 8.44688 0.799605C8.53659 0.835572 8.61814 0.889235 8.68667 0.957395C8.7552 1.02556 8.8093 1.10682 8.84575 1.19634C8.88221 1.28585 8.90026 1.3818 8.89885 1.47844V1.94644H4.10008V1.47844ZM1.43313 2.69604H11.5634C11.7423 2.69604 11.9138 2.76709 12.0402 2.89357C12.1667 3.02004 12.2377 3.19158 12.2377 3.37044C12.2377 3.5493 12.1667 3.72084 12.0402 3.84731C11.9138 3.97378 11.7423 4.04484 11.5634 4.04484H1.43313C1.25428 4.04484 1.08276 3.97378 0.956296 3.84731C0.829833 3.72084 0.758787 3.5493 0.758787 3.37044C0.758787 3.19158 0.829833 3.02004 0.956296 2.89357C1.08276 2.76709 1.25428 2.69604 1.43313 2.69604Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M6.49748 5.79443C6.39819 5.79443 6.30296 5.83388 6.23275 5.90409C6.16255 5.9743 6.12311 6.06954 6.12311 6.16884V13.2504C6.12311 13.3498 6.16259 13.4451 6.23288 13.5154C6.30316 13.5857 6.39848 13.6252 6.49788 13.6252C6.59727 13.6252 6.6926 13.5857 6.76288 13.5154C6.83316 13.4451 6.87264 13.3498 6.87264 13.2504V6.16884C6.87264 6.1196 6.86293 6.07085 6.84406 6.02538C6.8252 5.9799 6.79756 5.93859 6.76271 5.90381C6.72786 5.86903 6.68649 5.84147 6.64098 5.82271C6.59547 5.80394 6.54671 5.79433 6.49748 5.79443Z",fill:resolvedColor})]});};var baseEach$1=_baseEach;function baseFilter$1(collection,predicate){var result=[];baseEach$1(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result.push(value);}});return result;}var _baseFilter=baseFilter$1;var arrayFilter=_arrayFilter,baseFilter=_baseFilter,baseIteratee$3=_baseIteratee,isArray$4=isArray_1;function filter(collection,predicate){var func=isArray$4(collection)?arrayFilter:baseFilter;return func(collection,baseIteratee$3(predicate));}var filter_1=filter;var filter$1=/* @__PURE__ */getDefaultExportFromCjs(filter_1);function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty$1(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$13=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue2=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$13);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue2),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$3=Math.min;var max$3=Math.max;var round$4=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$3(start2,min$3(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$2(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$2(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$2(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$2(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$2(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}function detectOverflow$2(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t=rectToClientRect$2;_t2=platform2;_context.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t3=_await$platform$isEle=_context.v;if(!(_t3!=null)){_context.n=2;break;}_t4=_await$platform$isEle;_context.n=3;break;case 2:_t4=true;case 3:if(!_t4){_context.n=4;break;}_t5=element;_context.n=7;break;case 4:_t6=element.contextElement;if(_t6){_context.n=6;break;}_context.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t6=_context.v;case 6:_t5=_t6;case 7:_t7=_t5;_t8=boundary;_t9=rootBoundary;_t0=strategy;_context.n=8;return _t2.getClippingRect.call(_t2,{element:_t7,boundary:_t8,rootBoundary:_t9,strategy:_t0});case 8:clippingClientRect=_t(_context.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context.v;_context.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context.v){_context.n=13;break;}_context.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t10=_context.v;if(_t10){_context.n=12;break;}_t10={x:1,y:1};case 12:_t1=_t10;_context.n=14;break;case 13:_t1={x:1,y:1};case 14:offsetScale=_t1;_t11=rectToClientRect$2;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context.n=16;break;}_context.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t12=_context.v;_context.n=17;break;case 16:_t12=rect;case 17:elementClientRect=_t11(_t12);return _context.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee);}));}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i8,_platform$detectOverf,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context2.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context2.v;_context2.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context2.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i8=0;case 3:if(!(_i8<validMiddleware.length)){_context2.n=11;break;}_validMiddleware$_i=validMiddleware[_i8],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context2.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:__spreadProps(__spreadValues({},platform2),{detectOverflow:(_platform$detectOverf=platform2.detectOverflow)!=null?_platform$detectOverf:detectOverflow$2}),elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context2.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context2.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context2.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context2.n=8;break;}if(!(reset.rects===true)){_context2.n=6;break;}_context2.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t13=_context2.v;_context2.n=7;break;case 6:_t13=reset.rects;case 7:rects=_t13;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i8=-1;case 10:_i8++;_context2.n=3;break;case 11:return _context2.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee2);}));};var arrow$6=function arrow$6(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref45,element,_ref45$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref45=evaluate(options,state)||{},element=_ref45.element,_ref45$padding=_ref45.padding,padding2=_ref45$padding===void 0?0:_ref45$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$3(paddingObject[minProp],largestPossiblePadding);maxPadding=min$3(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&&center!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$6=function flip$6(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$2(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return platform2.detectOverflow(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
584
+ isIndex$1(key,length2)))){result.push(key);}}return result;}var _arrayLikeKeys=arrayLikeKeys$2;var objectProto$9=Object.prototype;function isPrototype$4(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto$9;return value===proto;}var _isPrototype=isPrototype$4;function overArg$2(func,transform){return function(arg2){return func(transform(arg2));};}var _overArg=overArg$2;var overArg$1=_overArg;var nativeKeys$1=overArg$1(Object.keys,Object);var _nativeKeys=nativeKeys$1;var isPrototype$3=_isPrototype,nativeKeys=_nativeKeys;var objectProto$8=Object.prototype;var hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys$3(object){if(!isPrototype$3(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty$9.call(object,key)&&key!="constructor"){result.push(key);}}return result;}var _baseKeys=baseKeys$3;var isFunction$1=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(value){return value!=null&&isLength$1(value.length)&&!isFunction$1(value);}var isArrayLike_1=isArrayLike$8;var arrayLikeKeys$1=_arrayLikeKeys,baseKeys$2=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$7(object){return isArrayLike$7(object)?arrayLikeKeys$1(object):baseKeys$2(object);}var keys_1=keys$7;var baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$6=keys_1;function getAllKeys$2(object){return baseGetAllKeys$1(object,keys$6,getSymbols$2);}var _getAllKeys=getAllKeys$2;var getAllKeys$1=_getAllKeys;var COMPARE_PARTIAL_FLAG$3=1;var objectProto$7=Object.prototype;var hasOwnProperty$8=objectProto$7.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys$1(object),objLength=objProps.length,othProps=getAllKeys$1(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty$8.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===void 0?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result=false;}}stack["delete"](object);stack["delete"](other);return result;}var _equalObjects=equalObjects$1;var getNative$4=_getNative,root$3=_root;var DataView$1=getNative$4(root$3,"DataView");var _DataView=DataView$1;var getNative$3=_getNative,root$2=_root;var Promise$2=getNative$3(root$2,"Promise");var _Promise=Promise$2;var getNative$2=_getNative,root$1=_root;var Set$2=getNative$2(root$1,"Set");var _Set=Set$2;var getNative$1=_getNative,root=_root;var WeakMap$2=getNative$1(root,"WeakMap");var _WeakMap=WeakMap$2;var DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$3=_baseGetTag,toSource=_toSource;var mapTag$5="[object Map]",objectTag$3="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]";var dataViewTag$2="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1);var getTag$6=baseGetTag$3;if(DataView&&getTag$6(new DataView(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$6(new Map$1())!=mapTag$5||Promise$1&&getTag$6(Promise$1.resolve())!=promiseTag||Set$1&&getTag$6(new Set$1())!=setTag$5||WeakMap$1&&getTag$6(new WeakMap$1())!=weakMapTag$1){getTag$6=function getTag$6(value){var result=baseGetTag$3(value),Ctor=result==objectTag$3?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1;}}return result;};}var _getTag=getTag$6;var Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$5=_getTag,isArray$c=isArray_1,isBuffer$2=isBufferExports,isTypedArray$1=isTypedArray_1;var COMPARE_PARTIAL_FLAG$2=1;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",objectTag$2="[object Object]";var objectProto$6=Object.prototype;var hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseIsEqualDeep$1(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$c(object),othIsArr=isArray$c(other),objTag=objIsArr?arrayTag$1:getTag$5(object),othTag=othIsArr?arrayTag$1:getTag$5(other);objTag=objTag==argsTag$1?objectTag$2:objTag;othTag=othTag==argsTag$1?objectTag$2:othTag;var objIsObj=objTag==objectTag$2,othIsObj=othTag==objectTag$2,isSameTag=objTag==othTag;if(isSameTag&&isBuffer$2(object)){if(!isBuffer$2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack$2());return objIsArr||isTypedArray$1(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG$2)){var objIsWrapped=objIsObj&&hasOwnProperty$7.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty$7.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack$2());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack$2());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}var _baseIsEqualDeep=baseIsEqualDeep$1;var baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$5=isObjectLike_1;function baseIsEqual$2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike$5(value)&&!isObjectLike$5(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual$2,stack);}var _baseIsEqual=baseIsEqual$2;var Stack$1=_Stack,baseIsEqual$1=_baseIsEqual;var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===void 0&&!(key in object)){return false;}}else{var stack=new Stack$1();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===void 0?baseIsEqual$1(srcValue,objValue,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,customizer,stack):result)){return false;}}}return true;}var _baseIsMatch=baseIsMatch$1;var isObject$4=isObject_1;function isStrictComparable$2(value){return value===value&&!isObject$4(value);}var _isStrictComparable=isStrictComparable$2;var isStrictComparable$1=_isStrictComparable,keys$5=keys_1;function getMatchData$1(object){var result=keys$5(object),length2=result.length;while(length2--){var key=result[length2],value=object[key];result[length2]=[key,value,isStrictComparable$1(value)];}return result;}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==void 0||key in Object(object));};}var _matchesStrictComparable=matchesStrictComparable$2;var baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable$1(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}var _baseMatches=baseMatches$1;var baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1;var symbolTag$2="[object Symbol]";function isSymbol$4(value){return _typeof2(value)=="symbol"||isObjectLike$4(value)&&baseGetTag$2(value)==symbolTag$2;}var isSymbol_1=isSymbol$4;var isArray$b=isArray_1,isSymbol$3=isSymbol_1;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(value,object){if(isArray$b(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol$3(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}var _isKey=isKey$3;var MapCache=_MapCache;var FUNC_ERROR_TEXT="Expected a function";function memoize$2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);_memoized.cache=cache.set(key,result)||cache;return result;};_memoized.cache=new(memoize$2.Cache||MapCache)();return _memoized;}memoize$2.Cache=MapCache;var memoize_1=memoize$2;var memoize$1=memoize_1;var MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(func){var result=memoize$1(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result.cache;return result;}var _memoizeCapped=memoizeCapped$1;var memoizeCapped=_memoizeCapped;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath$1=memoizeCapped(function(string){var result=[];if(string.charCodeAt(0)===46){result.push("");}string.replace(rePropName,function(match2,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match2);});return result;});var _stringToPath=stringToPath$1;var Symbol$2=_Symbol,arrayMap$3=_arrayMap,isArray$a=isArray_1,isSymbol$2=isSymbol_1;var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$2(value){if(typeof value=="string"){return value;}if(isArray$a(value)){return arrayMap$3(value,baseToString$2)+"";}if(isSymbol$2(value)){return symbolToString?symbolToString.call(value):"";}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _baseToString=baseToString$2;var baseToString$1=_baseToString;function toString$3(value){return value==null?"":baseToString$1(value);}var toString_1=toString$3;var isArray$9=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$4(value,object){if(isArray$9(value)){return value;}return isKey$2(value,object)?[value]:stringToPath(toString$2(value));}var _castPath=castPath$4;var isSymbol$1=isSymbol_1;function toKey$5(value){if(typeof value=="string"||isSymbol$1(value)){return value;}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _toKey=toKey$5;var castPath$3=_castPath,toKey$4=_toKey;function baseGet$3(object,path){path=castPath$3(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey$4(path[index2++])];}return index2&&index2==length2?object:void 0;}var _baseGet=baseGet$3;var baseGet$2=_baseGet;function get$2(object,path,defaultValue2){var result=object==null?void 0:baseGet$2(object,path);return result===void 0?defaultValue2:result;}var get_1=get$2;var get$3=/* @__PURE__ */getDefaultExportFromCjs(get_1);function baseHasIn$1(object,key){return object!=null&&key in Object(object);}var _baseHasIn=baseHasIn$1;var castPath$2=_castPath,isArguments$1=isArguments_1,isArray$8=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$3=_toKey;function hasPath$1(object,path,hasFunc){path=castPath$2(path,object);var index2=-1,length2=path.length,result=false;while(++index2<length2){var key=toKey$3(path[index2]);if(!(result=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result||++index2!=length2){return result;}length2=object==null?0:object.length;return!!length2&&isLength(length2)&&isIndex(key,length2)&&(isArray$8(object)||isArguments$1(object));}var _hasPath=hasPath$1;var baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(object,path){return object!=null&&hasPath(object,path,baseHasIn);}var hasIn_1=hasIn$1;var baseIsEqual=_baseIsEqual,get$1=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$2=_toKey;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(path,srcValue){if(isKey$1(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey$2(path),srcValue);}return function(object){var objValue=get$1(object,path);return objValue===void 0&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}var _baseMatchesProperty=baseMatchesProperty$1;function identity$2(value){return value;}var identity_1=identity$2;var identity$3=/* @__PURE__ */getDefaultExportFromCjs(identity_1);function baseProperty$2(key){return function(object){return object==null?void 0:object[key];};}var _baseProperty=baseProperty$2;var baseGet$1=_baseGet;function basePropertyDeep$1(path){return function(object){return baseGet$1(object,path);};}var _basePropertyDeep=basePropertyDeep$1;var baseProperty$1=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey$1=_toKey;function property$1(path){return isKey(path)?baseProperty$1(toKey$1(path)):basePropertyDeep(path);}var property_1=property$1;var baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$1=identity_1,isArray$7=isArray_1,property=property_1;function baseIteratee$5(value){if(typeof value=="function"){return value;}if(value==null){return identity$1;}if(_typeof2(value)=="object"){return isArray$7(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}var _baseIteratee=baseIteratee$5;function createBaseFor$1(fromRight){return function(object,iteratee,keysFunc){var index2=-1,iterable=Object(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}var _createBaseFor=createBaseFor$1;var createBaseFor=_createBaseFor;var baseFor$1=createBaseFor();var _baseFor=baseFor$1;var baseFor=_baseFor,keys$4=keys_1;function baseForOwn$1(object,iteratee){return object&&baseFor(object,iteratee,keys$4);}var _baseForOwn=baseForOwn$1;var isArrayLike$6=isArrayLike_1;function createBaseEach$1(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection;}if(!isArrayLike$6(collection)){return eachFunc(collection,iteratee);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object(collection);while(fromRight?index2--:++index2<length2){if(iteratee(iterable[index2],index2,iterable)===false){break;}}return collection;};}var _createBaseEach=createBaseEach$1;var baseForOwn=_baseForOwn,createBaseEach=_createBaseEach;var baseEach$3=createBaseEach(baseForOwn);var _baseEach=baseEach$3;var baseEach$2=_baseEach,isArrayLike$5=isArrayLike_1;function baseMap$1(collection,iteratee){var index2=-1,result=isArrayLike$5(collection)?Array(collection.length):[];baseEach$2(collection,function(value,key,collection2){result[++index2]=iteratee(value,key,collection2);});return result;}var _baseMap=baseMap$1;var arrayMap$2=_arrayMap,baseIteratee$4=_baseIteratee,baseMap=_baseMap,isArray$6=isArray_1;function map$1(collection,iteratee){var func=isArray$6(collection)?arrayMap$2:baseMap;return func(collection,baseIteratee$4(iteratee));}var map_1=map$1;var map$2=/* @__PURE__ */getDefaultExportFromCjs(map_1);var baseFlatten$1=_baseFlatten,map=map_1;function flatMap(collection,iteratee){return baseFlatten$1(map(collection,iteratee),1);}var flatMap_1=flatMap;var flatMap$1=/* @__PURE__ */getDefaultExportFromCjs(flatMap_1);function baseFindIndex$2(array,predicate,fromIndex,fromRight){var length2=array.length,index2=fromIndex+(fromRight?1:-1);while(fromRight?index2--:++index2<length2){if(predicate(array[index2],index2,array)){return index2;}}return-1;}var _baseFindIndex=baseFindIndex$2;function baseIsNaN$1(value){return value!==value;}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(array,value,fromIndex){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(array[index2]===value){return index2;}}return-1;}var _strictIndexOf=strictIndexOf$1;var baseFindIndex$1=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$1(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex$1(array,baseIsNaN,fromIndex);}var _baseIndexOf=baseIndexOf$1;var baseGetTag$1=_baseGetTag,isArray$5=isArray_1,isObjectLike$3=isObjectLike_1;var stringTag$2="[object String]";function isString$3(value){return typeof value=="string"||!isArray$5(value)&&isObjectLike$3(value)&&baseGetTag$1(value)==stringTag$2;}var isString_1=isString$3;var isString$4=/* @__PURE__ */getDefaultExportFromCjs(isString_1);var reWhitespace=/\s/;function trimmedEndIndex$1(string){var index2=string.length;while(index2--&&reWhitespace.test(string.charAt(index2))){}return index2;}var _trimmedEndIndex=trimmedEndIndex$1;var trimmedEndIndex=_trimmedEndIndex;var reTrimStart=/^\s+/;function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string;}var _baseTrim=baseTrim$1;var baseTrim=_baseTrim,isObject$3=isObject_1,isSymbol=isSymbol_1;var NAN=0/0;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber$1(value){if(typeof value=="number"){return value;}if(isSymbol(value)){return NAN;}if(isObject$3(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject$3(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}var toNumber_1=toNumber$1;var toNumber=toNumber_1;var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}var toFinite_1=toFinite$1;var toFinite=toFinite_1;function toInteger$3(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}var toInteger_1=toInteger$3;var arrayMap$1=_arrayMap;function baseValues$1(object,props){return arrayMap$1(props,function(key){return object[key];});}var _baseValues=baseValues$1;var baseValues=_baseValues,keys$3=keys_1;function values$1(object){return object==null?[]:baseValues(object,keys$3(object));}var values_1=values$1;var baseIndexOf=_baseIndexOf,isArrayLike$4=isArrayLike_1,isString$2=isString_1,toInteger$2=toInteger_1,values=values_1;var nativeMax$2=Math.max;function includes(collection,value,fromIndex,guard){collection=isArrayLike$4(collection)?collection:values(collection);fromIndex=fromIndex&&!guard?toInteger$2(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax$2(length2+fromIndex,0);}return isString$2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var includes_1=includes;var includes$1=/* @__PURE__ */getDefaultExportFromCjs(includes_1);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=flatMap$1(Colors,function(shades,category){return compact$1(map$2(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=map$2(allColors,"title");var ColorValues=map$2(allColors,"color");var Shades=map$2(Colors["grey"],function(color2,shade){return shade;});var Categories=map$2(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return includes$1(ColorValues,color2);};var _excluded$14=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$b="chip-module_sm_lA7fZ";var lg$a="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$7="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$t={chip:chip,title:title$7,text:text,sm:sm$b,lg:lg$a,tab:tab$1,grey:grey,active:active$3,disabled:disabled$7,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip$1=function Chip(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,content2=_ref3.content,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2||!!content2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$t.chip,styles$t[variant],styles$t[size2],_defineProperty$2(_defineProperty$2({},styles$t.disabled,disabled2),styles$t.active,isActive)),children:[content2,/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$t.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$t.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$t.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$5=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$5:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$5;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$4=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$3=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor$1=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};var defaultColor=getColor("primary","500");var TrashIcon=function TrashIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:size2,viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M8.70852 5.79443C8.60924 5.79443 8.51403 5.83388 8.44383 5.90409C8.37362 5.9743 8.33417 6.06954 8.33417 6.16884V13.2504C8.33417 13.3498 8.37364 13.4451 8.44392 13.5154C8.51421 13.5857 8.60954 13.6252 8.70894 13.6252C8.80833 13.6252 8.90365 13.5857 8.97393 13.5154C9.04421 13.4451 9.08371 13.3498 9.08371 13.2504V6.16884C9.08371 6.1196 9.07399 6.07085 9.05512 6.02538C9.03626 5.9799 9.00861 5.93859 8.97376 5.90381C8.93891 5.86903 8.89755 5.84147 8.85204 5.82271C8.80653 5.80394 8.75775 5.79433 8.70852 5.79443Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M4.28727 5.79443C4.18798 5.79443 4.09276 5.83388 4.02255 5.90409C3.95234 5.9743 3.9129 6.06954 3.9129 6.16884V13.2504C3.9129 13.3498 3.95239 13.4451 4.02267 13.5154C4.09295 13.5857 4.18827 13.6252 4.28766 13.6252C4.38706 13.6252 4.48238 13.5857 4.55266 13.5154C4.62295 13.4451 4.66243 13.3498 4.66243 13.2504V6.16884C4.66243 6.1196 4.65272 6.07085 4.63386 6.02538C4.61499 5.9799 4.58735 5.93859 4.55251 5.90381C4.51766 5.86903 4.47629 5.84147 4.43078 5.82271C4.38526 5.80394 4.3365 5.79433 4.28727 5.79443Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M1.06596 4.76163V13.9928C1.06038 14.5208 1.25701 15.0308 1.61551 15.4184C1.7873 15.6013 1.99459 15.7472 2.2247 15.8472C2.45481 15.9472 2.7029 15.9992 2.95379 16H10.0419C10.2927 15.9995 10.5406 15.9479 10.7707 15.8483C11.0008 15.7487 11.2082 15.6032 11.3802 15.4208C11.7387 15.0332 11.9353 14.5232 11.9298 13.9952V4.76163C12.2655 4.67241 12.5574 4.46407 12.7509 4.1755C12.9443 3.88692 13.0262 3.5378 12.9813 3.19328C12.9364 2.84875 12.7676 2.53234 12.5066 2.30307C12.2455 2.0738 11.91 1.94733 11.5626 1.94724H9.64278V1.47844C9.64363 1.28406 9.60597 1.09144 9.53198 0.911687C9.45799 0.731937 9.34913 0.568623 9.21169 0.431173C9.07426 0.293722 8.91096 0.184856 8.73122 0.11086C8.55149 0.0368637 8.35888 -0.000797899 8.16451 4.90974e-05H4.83442C4.63945 -0.00154344 4.4461 0.035621 4.26561 0.109384C4.08513 0.183147 3.92109 0.292038 3.78304 0.429734C3.64498 0.567429 3.53566 0.731185 3.46141 0.911489C3.38717 1.09179 3.34949 1.28505 3.35055 1.48004V1.94804H1.43073C1.08331 1.94813 0.747789 2.0746 0.486749 2.30387C0.225709 2.53314 0.0569776 2.84955 0.0120306 3.19408C-0.0329164 3.5386 0.0489902 3.88772 0.242472 4.17629C0.435953 4.46487 0.727796 4.67321 1.06356 4.76243L1.06596 4.76163ZM10.0419 15.248H2.95379C2.79605 15.242 2.6411 15.2046 2.49801 15.1379C2.35493 15.0712 2.22658 14.9767 2.12049 14.8598C2.01441 14.7429 1.93272 14.606 1.88021 14.4571C1.8277 14.3083 1.80542 14.1504 1.81469 13.9928V4.79443H11.181V13.9944C11.1903 14.152 11.168 14.3099 11.1155 14.4587C11.063 14.6076 10.9813 14.7445 10.8752 14.8614C10.7692 14.9783 10.6408 15.0728 10.4977 15.1395C10.3546 15.2062 10.1997 15.2436 10.0419 15.2496V15.248ZM4.10008 1.47844C4.09867 1.3818 4.11673 1.28585 4.15318 1.19634C4.18963 1.10682 4.24374 1.02556 4.31226 0.957395C4.38079 0.889235 4.46234 0.835572 4.55205 0.799605C4.64176 0.763638 4.73779 0.746103 4.83442 0.748047H8.16451C8.26114 0.746103 8.35717 0.763638 8.44688 0.799605C8.53659 0.835572 8.61814 0.889235 8.68667 0.957395C8.7552 1.02556 8.8093 1.10682 8.84575 1.19634C8.88221 1.28585 8.90026 1.3818 8.89885 1.47844V1.94644H4.10008V1.47844ZM1.43313 2.69604H11.5634C11.7423 2.69604 11.9138 2.76709 12.0402 2.89357C12.1667 3.02004 12.2377 3.19158 12.2377 3.37044C12.2377 3.5493 12.1667 3.72084 12.0402 3.84731C11.9138 3.97378 11.7423 4.04484 11.5634 4.04484H1.43313C1.25428 4.04484 1.08276 3.97378 0.956296 3.84731C0.829833 3.72084 0.758787 3.5493 0.758787 3.37044C0.758787 3.19158 0.829833 3.02004 0.956296 2.89357C1.08276 2.76709 1.25428 2.69604 1.43313 2.69604Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("path",{d:"M6.49748 5.79443C6.39819 5.79443 6.30296 5.83388 6.23275 5.90409C6.16255 5.9743 6.12311 6.06954 6.12311 6.16884V13.2504C6.12311 13.3498 6.16259 13.4451 6.23288 13.5154C6.30316 13.5857 6.39848 13.6252 6.49788 13.6252C6.59727 13.6252 6.6926 13.5857 6.76288 13.5154C6.83316 13.4451 6.87264 13.3498 6.87264 13.2504V6.16884C6.87264 6.1196 6.86293 6.07085 6.84406 6.02538C6.8252 5.9799 6.79756 5.93859 6.76271 5.90381C6.72786 5.86903 6.68649 5.84147 6.64098 5.82271C6.59547 5.80394 6.54671 5.79433 6.49748 5.79443Z",fill:resolvedColor})]});};var baseEach$1=_baseEach;function baseFilter$1(collection,predicate){var result=[];baseEach$1(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result.push(value);}});return result;}var _baseFilter=baseFilter$1;var arrayFilter=_arrayFilter,baseFilter=_baseFilter,baseIteratee$3=_baseIteratee,isArray$4=isArray_1;function filter(collection,predicate){var func=isArray$4(collection)?arrayFilter:baseFilter;return func(collection,baseIteratee$3(predicate));}var filter_1=filter;var filter$1=/* @__PURE__ */getDefaultExportFromCjs(filter_1);function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty$1(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$13=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue2=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$13);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue2),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$3=Math.min;var max$3=Math.max;var round$4=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$3(start2,min$3(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$2(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$2(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$2(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$2(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$2(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}function detectOverflow$2(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t=rectToClientRect$2;_t2=platform2;_context.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t3=_await$platform$isEle=_context.v;if(!(_t3!=null)){_context.n=2;break;}_t4=_await$platform$isEle;_context.n=3;break;case 2:_t4=true;case 3:if(!_t4){_context.n=4;break;}_t5=element;_context.n=7;break;case 4:_t6=element.contextElement;if(_t6){_context.n=6;break;}_context.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t6=_context.v;case 6:_t5=_t6;case 7:_t7=_t5;_t8=boundary;_t9=rootBoundary;_t0=strategy;_context.n=8;return _t2.getClippingRect.call(_t2,{element:_t7,boundary:_t8,rootBoundary:_t9,strategy:_t0});case 8:clippingClientRect=_t(_context.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context.v;_context.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context.v){_context.n=13;break;}_context.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t10=_context.v;if(_t10){_context.n=12;break;}_t10={x:1,y:1};case 12:_t1=_t10;_context.n=14;break;case 13:_t1={x:1,y:1};case 14:offsetScale=_t1;_t11=rectToClientRect$2;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context.n=16;break;}_context.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t12=_context.v;_context.n=17;break;case 16:_t12=rect;case 17:elementClientRect=_t11(_t12);return _context.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee);}));}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i8,_platform$detectOverf,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context2.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context2.v;_context2.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context2.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i8=0;case 3:if(!(_i8<validMiddleware.length)){_context2.n=11;break;}_validMiddleware$_i=validMiddleware[_i8],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context2.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:__spreadProps(__spreadValues({},platform2),{detectOverflow:(_platform$detectOverf=platform2.detectOverflow)!=null?_platform$detectOverf:detectOverflow$2}),elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context2.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context2.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context2.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context2.n=8;break;}if(!(reset.rects===true)){_context2.n=6;break;}_context2.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t13=_context2.v;_context2.n=7;break;case 6:_t13=reset.rects;case 7:rects=_t13;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i8=-1;case 10:_i8++;_context2.n=3;break;case 11:return _context2.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee2);}));};var arrow$6=function arrow$6(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref45,element,_ref45$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref45=evaluate(options,state)||{},element=_ref45.element,_ref45$padding=_ref45.padding,padding2=_ref45$padding===void 0?0:_ref45$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$3(paddingObject[minProp],largestPossiblePadding);maxPadding=min$3(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&&center!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$6=function flip$6(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$2(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return platform2.detectOverflow(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
585
585
  // overflows the main axis.
586
586
  overflowsData.every(function(d){return getSideAxis(d.placement)===initialSideAxis?d.overflows[0]>0:true;}))){_context4.n=4;break;}return _context4.a(2,{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}});case 4:resetPlacement=(_overflowsData$filter=overflowsData.filter(function(d){return d.overflows[0]<=0;}).sort(function(a,b){return a.overflows[1]-b.overflows[1];})[0])==null?void 0:_overflowsData$filter.placement;if(resetPlacement){_context4.n=7;break;}_t15=fallbackStrategy;_context4.n=_t15==="bestFit"?5:_t15==="initialPlacement"?6:7;break;case 5:placement2=(_overflowsData$filter2=overflowsData.filter(function(d){if(hasFallbackAxisSideDirection){var currentSideAxis=getSideAxis(d.placement);return currentSideAxis===initialSideAxis||// Create a bias to the `y` side axis due to horizontal
587
587
  // reading directions favoring greater width.
@@ -48,4 +48,4 @@ var _templateObject,_templateObject2,_templateObject3,_templateObject4,_template
48
48
  Licensed under the MIT License (MIT), see
49
49
  http://jedwatson.github.io/classnames
50
50
  */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=_typeof(r);if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a);}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue;}for(var s in r)t.call(r,s)&&r[s]&&e.push(s);}}}return e.join(" ");}e.exports?(n.default=n,e.exports=n):window.classNames=n;}();}(UZ);var qZ,JZ,KZ,QZ,eU,tU,nU,oU,rU,iU,aU,sU,lU,cU,uU=UZ.exports,dU=n.createContext(void 0),pU="ps-sidebar-root",fU="ps-sidebar-container",mU="ps-sidebar-image",hU="ps-sidebar-backdrop",gU="ps-collapsed",bU="ps-toggled",vU="ps-rtl",yU="ps-broken",xU="ps-menu-root",wU="ps-menuitem-root",CU="ps-submenu-root",SU="ps-menu-button",OU="ps-menu-prefix",kU="ps-menu-suffix",IU="ps-menu-label",TU="ps-menu-icon",MU="ps-submenu-content",DU="ps-submenu-expand-icon",PU="ps-disabled",EU="ps-active",RU="ps-open",NU=ZZ.div(qZ||(qZ=wY(["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"],["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"]))),jU={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},AU=ZZ.aside(JZ||(JZ=wY(["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"],["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"])),function(e){var t=e.transitionDuration;return"width, left, right, ".concat(t,"ms");},function(e){return e.width;},function(e){return e.width;},gU,function(e){return e.collapsedWidth;},function(e){return e.collapsedWidth;},vU,yU,function(e){var t=e.rtl,n=e.width;return t?"":"left: -".concat(n,";");},gU,function(e){var t=e.rtl,n=e.collapsedWidth;return t?"":"left: -".concat(n,"; ");},bU,function(e){return e.rtl?"":"left: 0;";},vU,function(e){return e.width;},gU,function(e){return e.collapsedWidth;},bU,function(e){return e.rootStyles;}),VU=ZZ.div(KZ||(KZ=wY(["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"],["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"])),function(e){var t=e.backgroundColor;return t?"background-color:".concat(t,";"):"";}),LU=ZZ.img(QZ||(QZ=wY(["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"],["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"])),mU),FU=n.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),BU=n.forwardRef(function(e,t){var o,r=e.collapsed,i=e.toggled,a=e.onBackdropClick,s=e.onBreakPoint,l=e.width,c=void 0===l?"250px":l,u=e.collapsedWidth,d=void 0===u?"80px":u,p=e.defaultCollapsed,f=e.className,m=e.children,h=e.breakPoint,g=e.customBreakPoint,b=e.backgroundColor,v=void 0===b?"rgb(249, 249, 249, 0.7)":b,y=e.transitionDuration,x=void 0===y?300:y,w=e.image,C=e.rtl,S=e.rootStyles,O=xY(e,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),k=n.useRef();k.current=function(e){null==s||s(e);};var I=function(e){var t=n.useState(!!e&&"undefined"!=typeof window&&window.matchMedia(e).matches),o=t[0],r=t[1];return n.useEffect(function(){if(e){var t=window.matchMedia(e),n=function n(){t.matches!==o&&r(t.matches);};return n(),t.addEventListener("change",n),function(){return t.removeEventListener("change",n);};}},[o,e]),o;}(g?"(max-width: ".concat(g,")"):h?["xs","sm","md","lg","xl","xxl"].includes(h)?"(max-width: ".concat(jU[h],")"):"always"===h||"all"===h?("always"===h&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(h,")"):void 0),T=n.useState(!1),M=T[0],D=T[1],P=n.useContext(dU),E=null!=r?r:!(M||!p)||(null==P?void 0:P.collapsed),R=null!=i?i:null==P?void 0:P.toggled,N=function N(){null==a||a(),null==P||P.updateSidebarState({toggled:!1});};return n.useEffect(function(){var e;null===(e=k.current)||void 0===e||e.call(k,I);},[I]),n.useEffect(function(){null==P||P.updateSidebarState({broken:I,rtl:C,transitionDuration:x});},[I,null==P?void 0:P.updateSidebarState,C,x]),n.useEffect(function(){M||(null==P||P.updateSidebarState({collapsed:p}),D(!0));},[p,M,null==P?void 0:P.updateSidebarState]),n.createElement(FU.Provider,{value:{collapsed:E,toggled:R,rtl:C,transitionDuration:x}},n.createElement(AU,_yY({ref:t,"data-testid":"".concat(pU,"-test-id"),rtl:C,rootStyles:S,width:c,collapsedWidth:d,transitionDuration:x,className:uU(pU,(o={},o[gU]=E,o[bU]=R,o[yU]=I,o[vU]=C,o),f)},O),n.createElement(VU,{"data-testid":"".concat(fU,"-test-id"),className:fU,backgroundColor:v},m),w&&n.createElement(LU,{"data-testid":"".concat(mU,"-test-id"),src:w,alt:"sidebar background",className:mU}),I&&R&&n.createElement(NU,{"data-testid":"".concat(hU,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:N,onKeyPress:N,className:hU})));}),WU=ZZ.ul(eU||(eU=wY(["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"],["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"]))),_U=ZZ.nav(tU||(tU=wY(["\n &."," {\n ","\n }\n"],["\n &."," {\n ","\n }\n"])),xU,function(e){return e.rootStyles;}),zU=n.createContext(void 0),$U=n.createContext(0),GU=n.forwardRef(function(e,t){var o=e.children,r=e.className,i=e.transitionDuration,a=void 0===i?300:i,s=e.closeOnClick,l=void 0!==s&&s,c=e.rootStyles,u=e.menuItemStyles,d=e.renderExpandIcon,p=xY(e,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=n.useMemo(function(){return{transitionDuration:a,closeOnClick:l,menuItemStyles:u,renderExpandIcon:d};},[a,l,u,d]);return n.createElement(zU.Provider,{value:f},n.createElement($U.Provider,{value:0},n.createElement(_U,_yY({ref:t,className:uU(xU,r),rootStyles:c},p),n.createElement(WU,null,o))));}),HU=function HU(){var e=n.useContext(zU);if(void 0===e)throw new Error("Menu Component is required!");return e;},YU=ZZ.div(nU||(nU=wY(["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"],["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"])),function(e){return e.transitionDuration;},function(e){var t=e.firstLevel,n=e.collapsed;return t&&n&&"\n background-color: white;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n ";},function(e){return e.defaultOpen&&"height: auto;display: block;";},function(e){var t=e.collapsed,n=e.firstLevel,o=e.openWhenCollapsed;return t&&n?"\n position: fixed;\n padding-left: 0px;\n width: 200px;\n border-radius: 4px;\n height: auto!important;\n display: block!important; \n transition: none!important; \n visibility: ".concat(o?"visible":"hidden",";\n "):"\n position: static!important;\n transform: none!important;\n ";},function(e){return e.rootStyles;}),XU=n.forwardRef(function(e,t){var o=e.children,r=e.open,i=e.openWhenCollapsed,a=e.firstLevel,s=e.collapsed,l=e.defaultOpen,c=xY(e,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),u=HU().transitionDuration,d=n.useState(l)[0];return n.createElement(YU,_yY({"data-testid":"".concat(MU,"-test-id"),ref:t,firstLevel:a,collapsed:s,open:r,openWhenCollapsed:i,transitionDuration:u,defaultOpen:d},c),n.createElement(WU,null,o));}),ZU=ZZ.span(oU||(oU=wY(["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"],["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"])),function(e){return e.rootStyles;}),UU=ZZ.span(rU||(rU=wY(["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"],["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"])),function(e){return e.rtl?"margin-left: 10px;":"margin-right: 10px;";},function(e){return e.rootStyles;}),qU=ZZ.span(iU||(iU=wY(["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(e){return e.rtl?"margin-left: 5px;":"margin-right: 5px;";},function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1";},function(e){return e.transitionDuration;},function(e){return e.rootStyles;}),JU=ZZ.span(aU||(aU=wY(["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1";},function(e){return e.transitionDuration;},function(e){return e.rootStyles;}),KU=ZZ.span(sU||(sU=wY(["\n ","\n\n ",";\n"],["\n ","\n\n ",";\n"])),function(e){var t=e.collapsed,n=e.level,o=e.rtl;return t&&0===n&&"\n position: absolute;\n ".concat(o?"left: 10px;":"right: 10px;","\n top: 50%;\n transform: translateY(-50%);\n \n ");},function(e){return e.rootStyles;}),QU=ZZ.span(lU||(lU=wY(["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"],["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"])),function(e){return e.rtl?"\n border-left: 2px solid currentcolor;\n border-top: 2px solid currentcolor;\n ":" border-right: 2px solid currentcolor;\n border-bottom: 2px solid currentcolor;\n ";},function(e){var t=e.open,n=e.rtl;return t?n?"-135deg":"45deg":"-45deg";}),eq=ZZ.span(cU||(cU=wY(["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"],["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"]))),tq="top",nq="bottom",oq="right",rq="left",iq="auto",aq=[tq,nq,oq,rq],sq="start",lq="end",cq="viewport",uq="popper",dq=aq.reduce(function(e,t){return e.concat([t+"-"+sq,t+"-"+lq]);},[]),pq=[].concat(aq,[iq]).reduce(function(e,t){return e.concat([t,t+"-"+sq,t+"-"+lq]);},[]),fq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mq(e){return e?(e.nodeName||"").toLowerCase():null;}function hq(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window;}return e;}function gq(e){return e instanceof hq(e).Element||e instanceof Element;}function bq(e){return e instanceof hq(e).HTMLElement||e instanceof HTMLElement;}function vq(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hq(e).ShadowRoot||e instanceof ShadowRoot);}var yq={name:"applyStyles",enabled:!0,phase:"write",fn:function fn(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];bq(r)&&mq(r)&&(Object.assign(r.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t);}));});},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e;},{});bq(o)&&mq(o)&&(Object.assign(o.style,i),Object.keys(r).forEach(function(e){o.removeAttribute(e);}));});};},requires:["computeStyles"]};function xq(e){return e.split("-")[0];}var wq=Math.max,Cq=Math.min,Sq=Math.round;function Oq(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version;}).join(" "):navigator.userAgent;}function kq(){return!/^((?!chrome|android).)*safari/i.test(Oq());}function Iq(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&bq(e)&&(r=e.offsetWidth>0&&Sq(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Sq(o.height)/e.offsetHeight||1);var a=(gq(e)?hq(e):window).visualViewport,s=!kq()&&n,l=(o.left+(s&&a?a.offsetLeft:0))/r,c=(o.top+(s&&a?a.offsetTop:0))/i,u=o.width/r,d=o.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c};}function Tq(e){var t=Iq(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o};}function Mq(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vq(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host;}while(o);}return!1;}function Dq(e){return hq(e).getComputedStyle(e);}function Pq(e){return["table","td","th"].indexOf(mq(e))>=0;}function Eq(e){return((gq(e)?e.ownerDocument:e.document)||window.document).documentElement;}function Rq(e){return"html"===mq(e)?e:e.assignedSlot||e.parentNode||(vq(e)?e.host:null)||Eq(e);}function Nq(e){return bq(e)&&"fixed"!==Dq(e).position?e.offsetParent:null;}function jq(e){for(var t=hq(e),n=Nq(e);n&&Pq(n)&&"static"===Dq(n).position;)n=Nq(n);return n&&("html"===mq(n)||"body"===mq(n)&&"static"===Dq(n).position)?t:n||function(e){var t=/firefox/i.test(Oq());if(/Trident/i.test(Oq())&&bq(e)&&"fixed"===Dq(e).position)return null;var n=Rq(e);for(vq(n)&&(n=n.host);bq(n)&&["html","body"].indexOf(mq(n))<0;){var o=Dq(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode;}return null;}(e)||t;}function Aq(e){return["top","bottom"].indexOf(e)>=0?"x":"y";}function Vq(e,t,n){return wq(e,Cq(t,n));}function Lq(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e);}function Fq(e,t){return t.reduce(function(t,n){return t[n]=e,t;},{});}function Bq(e){return e.split("-")[1];}var Wq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _q(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=rq,x=tq,w=window;if(c){var C=jq(n),S="clientHeight",O="clientWidth";if(C===hq(n)&&"static"!==Dq(C=Eq(n)).position&&"absolute"===s&&(S="scrollHeight",O="scrollWidth"),r===tq||(r===rq||r===oq)&&i===lq)x=nq,h-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[S])-o.height,h*=l?1:-1;if(r===rq||(r===tq||r===nq)&&i===lq)y=oq,f-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[O])-o.width,f*=l?1:-1;}var k,I=Object.assign({position:s},c&&Wq),T=!0===u?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:Sq(t*o)/o||0,y:Sq(n*o)/o||0};}({x:f,y:h}):{x:f,y:h};return f=T.x,h=T.y,l?Object.assign({},I,((k={})[x]=v?"0":"",k[y]=b?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",k)):Object.assign({},I,((t={})[x]=v?h+"px":"",t[y]=b?f+"px":"",t.transform="",t));}var zq={passive:!0};var $q={left:"right",right:"left",bottom:"top",top:"bottom"};function Gq(e){return e.replace(/left|right|bottom|top/g,function(e){return $q[e];});}var Hq={start:"end",end:"start"};function Yq(e){return e.replace(/start|end/g,function(e){return Hq[e];});}function Xq(e){var t=hq(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset};}function Zq(e){return Iq(Eq(e)).left+Xq(e).scrollLeft;}function Uq(e){var t=Dq(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return /auto|scroll|overlay|hidden/.test(n+r+o);}function qq(e){return["html","body","#document"].indexOf(mq(e))>=0?e.ownerDocument.body:bq(e)&&Uq(e)?e:qq(Rq(e));}function Jq(e,t){var n;void 0===t&&(t=[]);var o=qq(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=hq(o),a=r?[i].concat(i.visualViewport||[],Uq(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(Jq(Rq(a)));}function Kq(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height});}function Qq(e,t,n){return t===cq?Kq(function(e,t){var n=hq(e),o=Eq(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;var c=kq();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop);}return{width:i,height:a,x:s+Zq(e),y:l};}(e,n)):gq(t)?function(e,t){var n=Iq(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n;}(t,n):Kq(function(e){var t,n=Eq(e),o=Xq(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=wq(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=wq(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Zq(e),l=-o.scrollTop;return"rtl"===Dq(r||n).direction&&(s+=wq(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l};}(Eq(e)));}function eJ(e,t,n,o){var r="clippingParents"===t?function(e){var t=Jq(Rq(e)),n=["absolute","fixed"].indexOf(Dq(e).position)>=0&&bq(e)?jq(e):e;return gq(n)?t.filter(function(e){return gq(e)&&Mq(e,n)&&"body"!==mq(e);}):[];}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],s=i.reduce(function(t,n){var r=Qq(e,n,o);return t.top=wq(r.top,t.top),t.right=Cq(r.right,t.right),t.bottom=Cq(r.bottom,t.bottom),t.left=wq(r.left,t.left),t;},Qq(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s;}function tJ(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?xq(r):null,a=r?Bq(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case tq:t={x:s,y:n.y-o.height};break;case nq:t={x:s,y:n.y+n.height};break;case oq:t={x:n.x+n.width,y:l};break;case rq:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y};}var c=i?Aq(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case sq:t[c]=t[c]-(n[u]/2-o[u]/2);break;case lq:t[c]=t[c]+(n[u]/2-o[u]/2);}}return t;}function nJ(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?cq:c,d=n.elementContext,p=void 0===d?uq:d,f=n.altBoundary,m=void 0!==f&&f,h=n.padding,g=void 0===h?0:h,b=Lq("number"!=typeof g?g:Fq(g,aq)),v=p===uq?"reference":uq,y=e.rects.popper,x=e.elements[m?v:p],w=eJ(gq(x)?x:x.contextElement||Eq(e.elements.popper),l,u,a),C=Iq(e.elements.reference),S=tJ({reference:C,element:y,placement:r}),O=Kq(Object.assign({},y,S)),k=p===uq?O:C,I={top:w.top-k.top+b.top,bottom:k.bottom-w.bottom+b.bottom,left:w.left-k.left+b.left,right:k.right-w.right+b.right},T=e.modifiersData.offset;if(p===uq&&T){var M=T[r];Object.keys(I).forEach(function(e){var t=[oq,nq].indexOf(e)>=0?1:-1,n=[tq,nq].indexOf(e)>=0?"y":"x";I[e]+=M[n]*t;});}return I;}function oJ(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x};}function rJ(e){return[tq,oq,nq,rq].some(function(t){return e[t]>=0;});}function iJ(e,t,n){void 0===n&&(n=!1);var o,r,i=bq(t),a=bq(t)&&function(e){var t=e.getBoundingClientRect(),n=Sq(t.width)/e.offsetWidth||1,o=Sq(t.height)/e.offsetHeight||1;return 1!==n||1!==o;}(t),s=Eq(t),l=Iq(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==mq(t)||Uq(s))&&(c=(o=t)!==hq(o)&&bq(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Xq(o)),bq(t)?((u=Iq(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Zq(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height};}function aJ(e){var t=new Map(),n=new Set(),o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&r(o);}}),o.push(e);}return e.forEach(function(e){t.set(e.name,e);}),e.forEach(function(e){n.has(e.name)||r(e);}),o;}function sJ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t);},e);}var lJ='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',cJ=["name","enabled","phase","fn","effect","requires","options"];var uJ="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",dJ={placement:"bottom",modifiers:[],strategy:"absolute"};function pJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect);});}function fJ(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?dJ:r;return function(e,t,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},dJ,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function setOptions(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:gq(e)?Jq(e):e.contextElement?Jq(e.contextElement):[],popper:Jq(t)};var a,c,p,f=function(e){var t=aJ(e);return fq.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n;}));},[]);}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e;},{});return Object.keys(t).map(function(e){return t[e];});}([].concat(o,s.options.modifiers)));if(s.orderedModifiers=f.filter(function(e){return e.enabled;}),"production"!==process.env.NODE_ENV){if(function(e){e.forEach(function(t){[].concat(Object.keys(t),cJ).filter(function(e,t,n){return n.indexOf(e)===t;}).forEach(function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(sJ(lJ,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(sJ(lJ,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":fq.indexOf(t.phase)<0&&console.error(sJ(lJ,t.name,'"phase"',"either "+fq.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(sJ(lJ,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(sJ(lJ,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(sJ(lJ,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(sJ(lJ,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+cJ.map(function(e){return'"'+e+'"';}).join(", ")+'; but "'+n+'" was provided.');}t.requires&&t.requires.forEach(function(n){null==e.find(function(e){return e.name===n;})&&console.error(sJ('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n));});});});}((a=[].concat(f,s.options.modifiers),c=function c(e){return e.name;},p=new Set(),a.filter(function(e){var t=c(e);if(!p.has(t))return p.add(t),!0;}))),xq(s.options.placement)===iq)s.orderedModifiers.find(function(e){return"flip"===e.name;})||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=Dq(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some(function(e){return parseFloat(e);})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "));}return s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:u,options:o}),a=function a(){};l.push(i||a);}}),u.update();},forceUpdate:function forceUpdate(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(pJ(t,n)){s.rects={reference:iJ(t,jq(n),"fixed"===s.options.strategy),popper:Tq(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data);});for(var o=0,r=0;r<s.orderedModifiers.length;r++){if("production"!==process.env.NODE_ENV&&(o+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break;}if(!0!==s.reset){var i=s.orderedModifiers[r],a=i.fn,l=i.options,d=void 0===l?{}:l,p=i.name;"function"==typeof a&&(s=a({state:s,options:d,name:p,instance:u})||s);}else s.reset=!1,r=-1;}}else"production"!==process.env.NODE_ENV&&console.error(uJ);}},update:(r=function r(){return new Promise(function(e){u.forceUpdate(),e(s);});},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r());});})),a;}),destroy:function destroy(){d(),c=!0;}};if(!pJ(e,t))return"production"!==process.env.NODE_ENV&&console.error(uJ),u;function d(){l.forEach(function(e){return e();}),l=[];}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e);}),u;};}var mJ,hJ=fJ({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function effect(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,l=hq(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,zq);}),s&&l.addEventListener("resize",n.update,zq),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,zq);}),s&&l.removeEventListener("resize",n.update,zq);};},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function fn(e){var t=e.state,n=e.name;t.modifiersData[n]=tJ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement});},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function fn(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=Dq(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some(function(e){return c.indexOf(e)>=0;})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));}var u={placement:xq(t.placement),variation:Bq(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_q(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_q(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});},data:{}},yq,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function fn(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=pq.reduce(function(e,n){return e[n]=function(e,t,n){var o=xq(e),r=[rq,tq].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[rq,oq].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s};}(n,t.rects,i),e;},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a;}},{name:"flip",enabled:!0,phase:"main",fn:function fn(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,g=t.options.placement,b=xq(g),v=l||(b===g||!m?[Gq(g)]:function(e){if(xq(e)===iq)return[];var t=Gq(e);return[Yq(e),t,Yq(t)];}(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(xq(n)===iq?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?pq:l,u=Bq(o),d=u?s?dq:dq.filter(function(e){return Bq(e)===u;}):aq,p=d.filter(function(e){return c.indexOf(e)>=0;});0===p.length&&(p=d,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var f=p.reduce(function(t,n){return t[n]=nJ(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[xq(n)],t;},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t];});}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n);},[]),x=t.rects.reference,w=t.rects.popper,C=new Map(),S=!0,O=y[0],k=0;k<y.length;k++){var I=y[k],T=xq(I),M=Bq(I)===sq,D=[tq,nq].indexOf(T)>=0,P=D?"width":"height",E=nJ(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=D?M?oq:rq:M?nq:tq;x[P]>w[P]&&(R=Gq(R));var N=Gq(R),j=[];if(i&&j.push(E[T]<=0),s&&j.push(E[R]<=0,E[N]<=0),j.every(function(e){return e;})){O=I,S=!1;break;}C.set(I,j);}if(S)for(var A=function A(e){var t=y.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e;});});if(t)return O=t,"break";},V=m?3:1;V>0;V--){if("break"===A(V))break;}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0);}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function fn(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,h=void 0===m?0:m,g=nJ(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=xq(t.placement),v=Bq(t.placement),y=!v,x=Aq(b),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,I="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var D,P="y"===x?tq:rq,E="y"===x?nq:oq,R="y"===x?"height":"width",N=C[x],j=N+g[P],A=N-g[E],V=f?-O[R]/2:0,L=v===sq?S[R]:O[R],F=v===sq?-O[R]:-S[R],B=t.elements.arrow,W=f&&B?Tq(B):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=_[P],$=_[E],G=Vq(0,S[R],W[R]),H=y?S[R]/2-V-G-z-I.mainAxis:L-G-z-I.mainAxis,Y=y?-S[R]/2+V+G+$+I.mainAxis:F+G+$+I.mainAxis,X=t.elements.arrow&&jq(t.elements.arrow),Z=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,U=null!=(D=null==T?void 0:T[x])?D:0,q=N+Y-U,J=Vq(f?Cq(j,N+H-U-Z):j,N,f?wq(A,q):A);C[x]=J,M[x]=J-N;}if(s){var K,Q="x"===x?tq:rq,ee="x"===x?nq:oq,te=C[w],ne="y"===w?"height":"width",oe=te+g[Q],re=te-g[ee],ie=-1!==[tq,rq].indexOf(b),ae=null!=(K=null==T?void 0:T[w])?K:0,se=ie?oe:te-S[ne]-O[ne]-ae+I.altAxis,le=ie?te+S[ne]+O[ne]-ae-I.altAxis:re,ce=f&&ie?(de=Vq(se,te,ue=le))>ue?ue:de:Vq(f?se:oe,te,f?le:re);C[w]=ce,M[w]=ce-te;}var ue,de;t.modifiersData[o]=M;}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function fn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xq(n.placement),l=Aq(s),c=[rq,oq].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Lq("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fq(e,aq));}(r.padding,n),d=Tq(i),p="y"===l?tq:rq,f="y"===l?nq:oq,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=jq(i),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[p],x=b-d[c]-u[f],w=b/2-d[c]/2+v,C=Vq(y,w,x),S=l;n.modifiersData[o]=((t={})[S]=C,t.centerOffset=C-w,t);}},effect:function effect(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&("production"!==process.env.NODE_ENV&&(bq(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Mq(t.elements.popper,o)?t.elements.arrow=o:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")));},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function fn(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=nJ(t,{elementContext:"reference"}),s=nJ(t,{altBoundary:!0}),l=oJ(a,o),c=oJ(s,r,i),u=rJ(l),d=rJ(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d});}}]}),gJ=function gJ(e){var t=e.rtl,n=e.level,o=e.collapsed,r=e.disabled,i=e.active;return"\n display: flex;\n align-items: center;\n height: 50px;\n text-decoration: none;\n color: inherit;\n box-sizing: border-box;\n cursor: pointer;\n\n ".concat(t?"padding-left: 20px;\n padding-right: ".concat(0===n?20:20*(o?n:n+1),"px;\n "):"padding-right: 20px;\n padding-left: ".concat(0===n?20:20*(o?n:n+1),"px;\n "),"\n\n &:hover {\n background-color: #f3f3f3;\n }\n\n ").concat(r&&" \n pointer-events: none;\n cursor: default;\n color:#adadad;\n ","\n\n ").concat(i&&"background-color: #e2eef9;","\n \n ");},bJ=n.forwardRef(function(e,t){var o=e.className,r=e.component,i=e.children,a=xY(e,["className","component","children"]);if(r){if("string"==typeof r)return n.createElement(r,_yY(_yY({className:uU(o)},a),{ref:t}),i);var s=r.props,l=s.className,c=xY(s,["className"]);return n.cloneElement(r,_yY(_yY(_yY({className:uU(o,l)},a),c),{ref:t}),i);}return n.createElement("a",_yY({ref:t,className:uU(o)},a),i);}),vJ=ZZ.li(mJ||(mJ=wY(["\n position: relative;\n width: 100%;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"],["\n position: relative;\n width: 100%;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"])),function(e){return e.menuItemStyles;},function(e){return e.rootStyles;},SU,function(e){var t=e.level,n=e.disabled,o=e.active,r=e.collapsed,i=e.rtl;return gJ({level:t,disabled:n,active:o,collapsed:r,rtl:i});},function(e){return e.buttonStyles;});n.forwardRef(function(e,t){var o,r=e.children,i=e.className,a=e.label,s=e.icon,l=e.title,c=e.prefix,u=e.suffix,d=e.open,p=e.defaultOpen,f=e.active,m=void 0!==f&&f,h=e.disabled,g=void 0!==h&&h,b=e.rootStyles,v=e.component,y=e.onOpenChange,x=e.onClick,w=e.onKeyUp,C=xY(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=n.useContext($U),O=n.useContext(FU),k=O.collapsed,I=O.rtl,T=O.transitionDuration,M=HU(),D=M.renderExpandIcon,P=M.closeOnClick,E=M.menuItemStyles,R=M.transitionDuration,N=n.useState(!!p),j=N[0],A=N[1],V=n.useState(!1),L=V[0],F=V[1],B=n.useState(!1),W=B[0],_=B[1],z=n.useRef(null),$=n.useRef(null),G=n.useRef(),H=function(e){var t=e.level,o=e.buttonRef,r=e.contentRef,i=n.useContext(FU),a=i.collapsed,s=i.toggled,l=i.transitionDuration,c=n.useRef();return n.useEffect(function(){return 0===t&&a&&r.current&&o.current&&(c.current=hJ(o.current,r.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var e;return null===(e=c.current)||void 0===e?void 0:e.destroy();};},[t,a,r,o]),n.useEffect(function(){if(r.current&&o.current){var e=new ResizeObserver(function(){var e;null===(e=c.current)||void 0===e||e.update();});e.observe(r.current),e.observe(o.current);}setTimeout(function(){var e;null===(e=c.current)||void 0===e||e.update();},l);},[l,s,r,o]),{popperInstance:c.current};}({level:S,buttonRef:z,contentRef:$}).popperInstance,Y=n.useCallback(function(){var e,t=$.current;if(t){var n=null===(e=null==t?void 0:t.querySelector(".".concat(MU," > ul")))||void 0===e?void 0:e.clientHeight;t.style.overflow="hidden",t.style.height="".concat(n,"px"),G.current=setTimeout(function(){t.style.overflow="auto",t.style.height="auto";},R);}},[R]),X=function X(){var e,t=$.current;if(t){var n=null===(e=null==t?void 0:t.querySelector(".".concat(MU," > ul")))||void 0===e?void 0:e.clientHeight;t.style.overflow="hidden",t.style.height="".concat(n,"px"),t.offsetHeight,t.style.height="0px";}},Z=function Z(){0===S&&k||(void 0===d?(clearTimeout(Number(G.current)),j?X():Y(),null==y||y(!j),A(!j)):null==y||y(!d));};n.useEffect(function(){0===S&&k||void 0===d||!W||(clearTimeout(Number(G.current)),d?Y():X());},[k,Y,a,S,y,d]);var U=function U(e){if(E){var t={level:S,disabled:g,active:m,isSubmenu:!0,open:null!=d?d:j},n=E.root,o=E.button,r=E.label,i=E.icon,a=E.prefix,s=E.suffix,l=E.subMenuContent,c=E.SubMenuExpandIcon;switch(e){case"root":return"function"==typeof n?n(t):n;case"button":return"function"==typeof o?o(t):o;case"label":return"function"==typeof r?r(t):r;case"icon":return"function"==typeof i?i(t):i;case"prefix":return"function"==typeof a?a(t):a;case"suffix":return"function"==typeof s?s(t):s;case"SubMenuExpandIcon":return"function"==typeof c?c(t):c;case"subMenuContent":return"function"==typeof l?l(t):l;default:return;}}};n.useEffect(function(){setTimeout(function(){return null==H?void 0:H.update();},T),k&&0===S&&F(!1);},[k,S,I,T,H]),n.useEffect(function(){var e=function e(_e125){var t,n,o;!L&&(null===(t=z.current)||void 0===t?void 0:t.contains(_e125))?F(!0):(P&&!(null===(n=_e125.closest(".".concat(wU)))||void 0===n?void 0:n.classList.contains(CU))||!(null===(o=$.current)||void 0===o?void 0:o.contains(_e125))&&L)&&F(!1);},t=function t(_t151){e(_t151.target);},n=function n(t){"Enter"===t.key?e(t.target):"Escape"===t.key&&F(!1);},o=function o(){document.removeEventListener("click",t),document.removeEventListener("keyup",n);};return o(),k&&0===S&&(document.addEventListener("click",t,!1),document.addEventListener("keyup",n,!1)),function(){o();};},[k,S,P,L]),n.useEffect(function(){_(!0);},[]);var q=((o={})[EU]=m,o[PU]=g,o[RU]=null!=d?d:j,o);return n.createElement(vJ,{ref:t,className:uU(wU,CU,q,i),menuItemStyles:U("root"),level:S,collapsed:k,rtl:I,disabled:g,active:m,buttonStyles:U("button"),rootStyles:b},n.createElement(bJ,_yY({"data-testid":"".concat(SU,"-test-id"),ref:z,title:l,className:uU(SU,q),onClick:function onClick(e){null==x||x(e),Z();},onKeyUp:function onKeyUp(e){null==w||w(e),"Enter"===e.key&&Z();},component:v,tabIndex:0},C),s&&n.createElement(UU,{rtl:I,className:uU(TU,q),rootStyles:U("icon")},s),c&&n.createElement(qU,{collapsed:k,transitionDuration:T,firstLevel:0===S,className:uU(OU,q),rtl:I,rootStyles:U("prefix")},c),n.createElement(ZU,{className:uU(IU,q),rootStyles:U("label")},a),u&&n.createElement(JU,{collapsed:k,transitionDuration:T,firstLevel:0===S,className:uU(kU,q),rootStyles:U("suffix")},u),n.createElement(KU,{rtl:I,className:uU(DU,q),collapsed:k,level:S,rootStyles:U("SubMenuExpandIcon")},D?D({level:S,disabled:g,active:m,open:null!=d?d:j}):k&&0===S?n.createElement(eq,null):n.createElement(QU,{rtl:I,open:null!=d?d:j}))),n.createElement(XU,{ref:$,openWhenCollapsed:L,open:null!=d?d:j,firstLevel:0===S,collapsed:k,defaultOpen:d&&!W||p,className:uU(MU,q),rootStyles:U("subMenuContent")},n.createElement($U.Provider,{value:S+1},r)));});var yJ,xJ=ZZ.li(yJ||(yJ=wY(["\n width: 100%;\n position: relative;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"],["\n width: 100%;\n position: relative;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"])),function(e){return e.menuItemStyles;},function(e){return e.rootStyles;},SU,function(e){var t=e.level,n=e.disabled,o=e.active,r=e.collapsed,i=e.rtl;return gJ({level:t,disabled:n,active:o,collapsed:r,rtl:i});},function(e){return e.buttonStyles;}),wJ=n.forwardRef(function(e,t){var o,r=e.children,i=e.icon,a=e.className,s=e.prefix,l=e.suffix,c=e.active,u=void 0!==c&&c,d=e.disabled,p=void 0!==d&&d,f=e.component,m=e.rootStyles,h=xY(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),g=n.useContext($U),b=n.useContext(FU),v=b.collapsed,y=b.rtl,x=b.transitionDuration,w=HU().menuItemStyles,C=function C(e){if(w){var t={level:g,disabled:p,active:u,isSubmenu:!1},n=w.root,o=w.button,r=w.label,i=w.icon,a=w.prefix,s=w.suffix;switch(e){case"root":return"function"==typeof n?n(t):n;case"button":return"function"==typeof o?o(t):o;case"label":return"function"==typeof r?r(t):r;case"icon":return"function"==typeof i?i(t):i;case"prefix":return"function"==typeof a?a(t):a;case"suffix":return"function"==typeof s?s(t):s;default:return;}}},S=((o={})[EU]=u,o[PU]=p,o);return n.createElement(xJ,{ref:t,className:uU(wU,S,a),menuItemStyles:C("root"),level:g,collapsed:v,rtl:y,disabled:p,active:u,buttonStyles:C("button"),rootStyles:m},n.createElement(bJ,_yY({className:uU(SU,S),"data-testid":"".concat(SU,"-test-id"),component:f,tabIndex:0},h),i&&n.createElement(UU,{rtl:y,className:uU(TU,S),rootStyles:C("icon")},i),s&&n.createElement(qU,{collapsed:v,transitionDuration:x,firstLevel:0===g,className:uU(OU,S),rtl:y,rootStyles:C("prefix")},s),n.createElement(ZU,{className:uU(IU,S),rootStyles:C("label")},r),l&&n.createElement(JU,{collapsed:v,transitionDuration:x,firstLevel:0===g,className:uU(kU,S),rootStyles:C("suffix")},l)));});var CJ=cs(t.jsx("path",{d:"M14.91 6.71a.996.996 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded"),SJ=cs(t.jsx("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded"),OJ="sidebar-module_wrapper_95E2r",kJ="sidebar-module_sidebar_ruXSQ",IJ="sidebar-module_collapsed_ao92g",TJ="sidebar-module_header_CtrBP",MJ="sidebar-module_header-collapsed_9W08L",DJ="sidebar-module_title_JDKYR",PJ="sidebar-module_toggleButton_uZtkz",EJ="sidebar-module_menuItem_KMpOd",RJ="sidebar-module_menu-item-collapsed_-Gz6l",NJ="sidebar-module_active_spFmu";var jJ=cs(t.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var AJ=Ja(cT,{shouldForwardProp:function shouldForwardProp(e){return"elevation"!==e;}})(function(e){return e.theme,{"& .MuiPaper-root":{borderRadius:4,marginTop:1,boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)",border:"1px solid #D7D7D7","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiTouchRipple-root":{display:"none"}}}};}),VJ=Ja(jO)(function(){return{"& .MuiTouchRipple-root":{display:"none"}};});var LJ={dropdown:"dropdown-module_dropdown_G8lk1",button:"dropdown-module_button_heFOx",lg:"dropdown-module_lg_BSjtT",sm:"dropdown-module_sm_4wstH","MuiButton-endIcon":"dropdown-module_MuiButton-endIcon_h9XM7"};var FJ={link:"link-module_link_Nwimt",sm:"link-module_sm_Roymo",md:"link-module_md_MM1DP",lg:"link-module_lg_Yh-xD",none:"link-module_none_S8BaL",underline:"link-module_underline_PqOji","weight-100":"link-module_weight-100_eDdnp","weight-200":"link-module_weight-200_8oRhr","weight-300":"link-module_weight-300_8vVYQ","weight-400":"link-module_weight-400_vjPHp","weight-500":"link-module_weight-500_SKGTU","weight-600":"link-module_weight-600_-KWak","weight-700":"link-module_weight-700_tQ2N-","weight-800":"link-module_weight-800_enJ5o","weight-900":"link-module_weight-900_Yxl7i"};var BJ=["size","decoration","weight","href","onClick","children"],WJ=n.memo(function(e){var n=e.size,o=void 0===n?"md":n,r=e.decoration,i=void 0===r?"none":r,a=e.weight,s=e.href,l=e.onClick,c=e.children,u=k(e,BJ);return t.jsx("a",O(O({href:s,onClick:function onClick(e){var t=e.ctrlKey||e.metaKey,n=1===e.button,o="_blank"===u.target;t||n||o||l&&(e.preventDefault(),l(e));},className:E(FJ.link,FJ[o],FJ[i],a&&FJ["weight-".concat(a)])},u),{},{children:c}));});WJ.displayName="Link";var _J="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function zJ(e){var t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t;}function $J(e){return"nodeType"in e;}function GJ(e){var t,n;return e?zJ(e)?e:$J(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window;}function HJ(e){var _GJ=GJ(e),t=_GJ.Document;return e instanceof t;}function YJ(e){return!zJ(e)&&e instanceof GJ(e).HTMLElement;}function XJ(e){return e instanceof GJ(e).SVGElement;}function ZJ(e){return e?zJ(e)?e.document:$J(e)?HJ(e)?e:YJ(e)||XJ(e)?e.ownerDocument:document:document:document;}var UJ=_J?n.useLayoutEffect:n.useEffect;function qJ(e){var t=n.useRef(e);return UJ(function(){t.current=e;}),n.useCallback(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current.apply(t,n);},[]);}function JJ(e,t){void 0===t&&(t=[e]);var o=n.useRef(e);return UJ(function(){o.current!==e&&(o.current=e);},t),o;}function KJ(e,t){var o=n.useRef();return n.useMemo(function(){var t=e(o.current);return o.current=t,t;},_toConsumableArray(t));}function QJ(e){var t=qJ(e),o=n.useRef(null),r=n.useCallback(function(e){e!==o.current&&(null==t||t(e,o.current)),o.current=e;},[]);return[o,r];}function eK(e){var t=n.useRef();return n.useEffect(function(){t.current=e;},[e]),t.current;}var tK={};function nK(e,t){return n.useMemo(function(){if(t)return t;var n=null==tK[e]?0:tK[e]+1;return tK[e]=n,e+"-"+n;},[e,t]);}function oK(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(function(t,n){var o=Object.entries(n);for(var _i25=0,_o52=o;_i25<_o52.length;_i25++){var _ref454=_o52[_i25];var _ref455=_slicedToArray(_ref454,2);var _r35=_ref455[0];var _i26=_ref455[1];{var _n80=t[_r35];null!=_n80&&(t[_r35]=_n80+e*_i26);}}return t;},p({},t));};}var rK=oK(1),iK=oK(-1);function aK(e){if(!e)return!1;var _GJ2=GJ(e.target),t=_GJ2.KeyboardEvent;return t&&e instanceof t;}function sK(e){if(function(e){if(!e)return!1;var _GJ3=GJ(e.target),t=_GJ3.TouchEvent;return t&&e instanceof t;}(e)){if(e.touches&&e.touches.length){var _e$touches$=e.touches[0],_t152=_e$touches$.clientX,_n81=_e$touches$.clientY;return{x:_t152,y:_n81};}if(e.changedTouches&&e.changedTouches.length){var _e$changedTouches$=e.changedTouches[0],_t153=_e$changedTouches$.clientX,_n82=_e$changedTouches$.clientY;return{x:_t153,y:_n82};}}return function(e){return"clientX"in e&&"clientY"in e;}(e)?{x:e.clientX,y:e.clientY}:null;}var lK=Object.freeze({Translate:{toString:function toString(e){if(!e)return;var t=e.x,n=e.y;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)";}},Scale:{toString:function toString(e){if(!e)return;var t=e.scaleX,n=e.scaleY;return"scaleX("+t+") scaleY("+n+")";}},Transform:{toString:function toString(e){if(e)return[lK.Translate.toString(e),lK.Scale.toString(e)].join(" ");}},Transition:{toString:function toString(e){var t=e.property,n=e.duration,o=e.easing;return t+" "+n+"ms "+o;}}}),cK="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function uK(e){return e.matches(cK)?e:e.querySelector(cK);}var dK={display:"none"};function pK(e){var t=e.id,o=e.value;return n.createElement("div",{id:t,style:dK},o);}function fK(e){var t=e.id,o=e.announcement,_e$ariaLiveType=e.ariaLiveType,r=_e$ariaLiveType===void 0?"assertive":_e$ariaLiveType;return n.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},o);}var mK=n.createContext(null);var hK={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},gK={onDragStart:function onDragStart(e){var t=e.active;return"Picked up draggable item "+t.id+".";},onDragOver:function onDragOver(e){var t=e.active,n=e.over;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area.";},onDragEnd:function onDragEnd(e){var t=e.active,n=e.over;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped.";},onDragCancel:function onDragCancel(e){var t=e.active;return"Dragging was cancelled. Draggable item "+t.id+" was dropped.";}};function bK(e){var _e$announcements=e.announcements,t=_e$announcements===void 0?gK:_e$announcements,r=e.container,i=e.hiddenTextDescribedById,_e$screenReaderInstru=e.screenReaderInstructions,a=_e$screenReaderInstru===void 0?hK:_e$screenReaderInstru;var _ref456=function(){var _n$useState9=n.useState(""),_n$useState0=_slicedToArray(_n$useState9,2),e=_n$useState0[0],t=_n$useState0[1];return{announce:n.useCallback(function(e){null!=e&&t(e);},[]),announcement:e};}(),s=_ref456.announce,l=_ref456.announcement,c=nK("DndLiveRegion"),_n$useState7=n.useState(!1),_n$useState8=_slicedToArray(_n$useState7,2),u=_n$useState8[0],d=_n$useState8[1];if(n.useEffect(function(){d(!0);},[]),function(e){var t=n.useContext(mK);n.useEffect(function(){if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e);},[e,t]);}(n.useMemo(function(){return{onDragStart:function onDragStart(e){var n=e.active;s(t.onDragStart({active:n}));},onDragMove:function onDragMove(e){var n=e.active,o=e.over;t.onDragMove&&s(t.onDragMove({active:n,over:o}));},onDragOver:function onDragOver(e){var n=e.active,o=e.over;s(t.onDragOver({active:n,over:o}));},onDragEnd:function onDragEnd(e){var n=e.active,o=e.over;s(t.onDragEnd({active:n,over:o}));},onDragCancel:function onDragCancel(e){var n=e.active,o=e.over;s(t.onDragCancel({active:n,over:o}));}};},[s,t])),!u)return null;var p=n.createElement(n.Fragment,null,n.createElement(pK,{id:i,value:a.draggable}),n.createElement(fK,{id:c,announcement:l}));return r?o.createPortal(p,r):p;}var vK,yK;function xK(){}(yK=vK||(vK={})).DragStart="dragStart",yK.DragMove="dragMove",yK.DragEnd="dragEnd",yK.DragCancel="dragCancel",yK.DragOver="dragOver",yK.RegisterDroppable="registerDroppable",yK.SetDroppableDisabled="setDroppableDisabled",yK.UnregisterDroppable="unregisterDroppable";var wK=Object.freeze({x:0,y:0});function CK(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));}function SK(e,t){var n=e.data.value,o=t.data.value;return n-o;}function OK(e,t){var n=e.data.value,o=t.data.value;return o-n;}function kK(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height};}var IK=function IK(e){var t=e.collisionRect,n=e.droppableRects,o=e.droppableContainers;var r=kK(t,t.left,t.top),i=[];var _iterator0=_createForOfIteratorHelper(o),_step0;try{for(_iterator0.s();!(_step0=_iterator0.n()).done;){var _a19=_step0.value;var _e126=_a19.id,_t154=n.get(_e126);if(_t154){var _n83=CK(kK(_t154),r);i.push({id:_e126,data:{droppableContainer:_a19,value:_n83}});}}}catch(err){_iterator0.e(err);}finally{_iterator0.f();}return i.sort(SK);};function TK(e,t){var n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=r-o,s=i-n;if(o<r&&n<i){var _n84=t.width*t.height,_o53=e.width*e.height,_r36=a*s;return Number((_r36/(_n84+_o53-_r36)).toFixed(4));}return 0;}var MK=function MK(e){var t=e.collisionRect,n=e.droppableRects,o=e.droppableContainers;var r=[];var _iterator1=_createForOfIteratorHelper(o),_step1;try{for(_iterator1.s();!(_step1=_iterator1.n()).done;){var _i27=_step1.value;var _e127=_i27.id,_o54=n.get(_e127);if(_o54){var _n85=TK(_o54,t);_n85>0&&r.push({id:_e127,data:{droppableContainer:_i27,value:_n85}});}}}catch(err){_iterator1.e(err);}finally{_iterator1.f();}return r.sort(OK);};function DK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:wK;}function PK(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(function(t,n){return f(p({},t),{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x});},p({},t));};}var EK=PK(1);var RK={ignoreTransform:!1};function NK(e,t){void 0===t&&(t=RK);var n=e.getBoundingClientRect();if(t.ignoreTransform){var _GJ$getComputedStyle=GJ(e).getComputedStyle(e),_t155=_GJ$getComputedStyle.transform,_o55=_GJ$getComputedStyle.transformOrigin;_t155&&(n=function(e,t,n){var o=function(e){if(e.startsWith("matrix3d(")){var _t156=e.slice(9,-1).split(/, /);return{x:+_t156[12],y:+_t156[13],scaleX:+_t156[0],scaleY:+_t156[5]};}if(e.startsWith("matrix(")){var _t157=e.slice(7,-1).split(/, /);return{x:+_t157[4],y:+_t157[5],scaleX:+_t157[0],scaleY:+_t157[3]};}return null;}(t);if(!o)return e;var r=o.scaleX,i=o.scaleY,a=o.x,s=o.y,l=e.left-a-(1-r)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l};}(n,_t155,_o55));}var _n86=n,o=_n86.top,r=_n86.left,i=_n86.width,a=_n86.height,s=_n86.bottom,l=_n86.right;return{top:o,left:r,width:i,height:a,bottom:s,right:l};}function jK(e){return NK(e,{ignoreTransform:!0});}function AK(e,t){var n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(HJ(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!YJ(r)||XJ(r))return n;if(n.includes(r))return n;var i=GJ(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=GJ(e).getComputedStyle(e));var n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(function(e){var o=t[e];return"string"==typeof o&&n.test(o);});}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=GJ(e).getComputedStyle(e)),"fixed"===t.position;}(r,i)?n:o(r.parentNode);}(e):n;}function VK(e){var _AK=AK(e,1),_AK2=_slicedToArray(_AK,1),t=_AK2[0];return null!=t?t:null;}function LK(e){return _J&&e?zJ(e)?e:$J(e)?HJ(e)||e===ZJ(e).scrollingElement?window:YJ(e)?e:null:null:null;}function FK(e){return zJ(e)?e.scrollX:e.scrollLeft;}function BK(e){return zJ(e)?e.scrollY:e.scrollTop;}function WK(e){return{x:FK(e),y:BK(e)};}var _K,zK;function $K(e){return!(!_J||!e)&&e===document.scrollingElement;}function GK(e){var t={x:0,y:0},n=$K(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t};}(zK=_K||(_K={}))[zK.Forward=1]="Forward",zK[zK.Backward=-1]="Backward";var HK={x:.2,y:.2};function YK(e,t,n,o,r){var i=n.top,a=n.left,s=n.right,l=n.bottom;void 0===o&&(o=10),void 0===r&&(r=HK);var _GK=GK(e),c=_GK.isTop,u=_GK.isBottom,d=_GK.isLeft,p=_GK.isRight,f={x:0,y:0},m={x:0,y:0},h=t.height*r.y,g=t.width*r.x;return!c&&i<=t.top+h?(f.y=_K.Backward,m.y=o*Math.abs((t.top+h-i)/h)):!u&&l>=t.bottom-h&&(f.y=_K.Forward,m.y=o*Math.abs((t.bottom-h-l)/h)),!p&&s>=t.right-g?(f.x=_K.Forward,m.x=o*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(f.x=_K.Backward,m.x=o*Math.abs((t.left+g-a)/g)),{direction:f,speed:m};}function XK(e){if(e===document.scrollingElement){var _window=window,_e128=_window.innerWidth,_t158=_window.innerHeight;return{top:0,left:0,right:_e128,bottom:_t158,width:_e128,height:_t158};}var _e$getBoundingClientR=e.getBoundingClientRect(),t=_e$getBoundingClientR.top,n=_e$getBoundingClientR.left,o=_e$getBoundingClientR.right,r=_e$getBoundingClientR.bottom;return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight};}function ZK(e){return e.reduce(function(e,t){return rK(e,WK(t));},wK);}var UK=[["x",["left","right"],function(e){return e.reduce(function(e,t){return e+FK(t);},0);}],["y",["top","bottom"],function(e){return e.reduce(function(e,t){return e+BK(t);},0);}]];var qK=/*#__PURE__*/_createClass(function qK(e,t){var _this36=this;_classCallCheck(this,qK);this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;var n=AK(t),o=ZK(n);this.rect=p({},e),this.width=e.width,this.height=e.height;var _loop4=function _loop4(){var _ref457=_UK[_i28];_ref458=_slicedToArray(_ref457,3);var r=_ref458[0];var i=_ref458[1];var a=_ref458[2];var _iterator10=_createForOfIteratorHelper(i),_step10;try{var _loop5=function _loop5(){var e=_step10.value;Object.defineProperty(_this36,e,{get:function get(){var t=a(n),i=o[r]-t;return _this36.rect[e]+i;},enumerable:!0});};for(_iterator10.s();!(_step10=_iterator10.n()).done;){_loop5();}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}},_ref458;for(var _i28=0,_UK=UK;_i28<_UK.length;_i28++){_loop4();}Object.defineProperty(this,"rect",{enumerable:!1});});var JK=/*#__PURE__*/function(){function JK(e){var _this37=this;_classCallCheck(this,JK);this.target=void 0,this.listeners=[],this.removeAll=function(){_this37.listeners.forEach(function(e){var _t159;var t;return null==(t=_this37.target)?void 0:(_t159=t).removeEventListener.apply(_t159,_toConsumableArray(e));});},this.target=e;}return _createClass(JK,[{key:"add",value:function add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n]);}}]);}();function KK(e,t){var n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(u(n,2)+u(o,2))>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y;}var QK,eQ,tQ,nQ;function oQ(e){e.preventDefault();}function rQ(e){e.stopPropagation();}(eQ=QK||(QK={})).Click="click",eQ.DragStart="dragstart",eQ.Keydown="keydown",eQ.ContextMenu="contextmenu",eQ.Resize="resize",eQ.SelectionChange="selectionchange",eQ.VisibilityChange="visibilitychange",(nQ=tQ||(tQ={})).Space="Space",nQ.Down="ArrowDown",nQ.Right="ArrowRight",nQ.Left="ArrowLeft",nQ.Up="ArrowUp",nQ.Esc="Escape",nQ.Enter="Enter",nQ.Tab="Tab";var iQ={start:[tQ.Space,tQ.Enter],cancel:[tQ.Esc],end:[tQ.Space,tQ.Enter,tQ.Tab]},aQ=function aQ(e,t){var n=t.currentCoordinates;switch(e.code){case tQ.Right:return f(p({},n),{x:n.x+25});case tQ.Left:return f(p({},n),{x:n.x-25});case tQ.Down:return f(p({},n),{y:n.y+25});case tQ.Up:return f(p({},n),{y:n.y-25});}};var sQ=/*#__PURE__*/function(){function sQ(e){_classCallCheck(this,sQ);this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;var t=e.event.target;this.props=e,this.listeners=new JK(ZJ(t)),this.windowListeners=new JK(GJ(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}return _createClass(sQ,[{key:"attach",value:function attach(){var _this38=this;this.handleStart(),this.windowListeners.add(QK.Resize,this.handleCancel),this.windowListeners.add(QK.VisibilityChange,this.handleCancel),setTimeout(function(){return _this38.listeners.add(QK.Keydown,_this38.handleKeyDown);});}},{key:"handleStart",value:function handleStart(){var _this$props=this.props,e=_this$props.activeNode,t=_this$props.onStart,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=NK),!e)return;var _t160=t(e),n=_t160.top,o=_t160.left,r=_t160.bottom,i=_t160.right;VK(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}(n),t(wK);}},{key:"handleKeyDown",value:function handleKeyDown(e){if(aK(e)){var _this$props2=this.props,_t161=_this$props2.active,_n87=_this$props2.context,_o56=_this$props2.options,_o$keyboardCodes=_o56.keyboardCodes,_r37=_o$keyboardCodes===void 0?iQ:_o$keyboardCodes,_o$coordinateGetter=_o56.coordinateGetter,_i29=_o$coordinateGetter===void 0?aQ:_o$coordinateGetter,_o$scrollBehavior=_o56.scrollBehavior,_a20=_o$scrollBehavior===void 0?"smooth":_o$scrollBehavior,_s11=e.code;if(_r37.end.includes(_s11))return void this.handleEnd(e);if(_r37.cancel.includes(_s11))return void this.handleCancel(e);var _l6=_n87.current.collisionRect,_c8=_l6?{x:_l6.left,y:_l6.top}:wK;this.referenceCoordinates||(this.referenceCoordinates=_c8);var _u4=_i29(e,{active:_t161,context:_n87.current,currentCoordinates:_c8});if(_u4){var _t162=iK(_u4,_c8),_o57={x:0,y:0},_r38=_n87.current.scrollableAncestors;var _iterator11=_createForOfIteratorHelper(_r38),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _n88=_step11.value;var _r39=e.code,_GK2=GK(_n88),_i30=_GK2.isTop,_s12=_GK2.isRight,_l7=_GK2.isLeft,_c9=_GK2.isBottom,_d4=_GK2.maxScroll,_p5=_GK2.minScroll,_f14=XK(_n88),_m4={x:Math.min(_r39===tQ.Right?_f14.right-_f14.width/2:_f14.right,Math.max(_r39===tQ.Right?_f14.left:_f14.left+_f14.width/2,_u4.x)),y:Math.min(_r39===tQ.Down?_f14.bottom-_f14.height/2:_f14.bottom,Math.max(_r39===tQ.Down?_f14.top:_f14.top+_f14.height/2,_u4.y))},_h3=_r39===tQ.Right&&!_s12||_r39===tQ.Left&&!_l7,_g3=_r39===tQ.Down&&!_c9||_r39===tQ.Up&&!_i30;if(_h3&&_m4.x!==_u4.x){var _e129=_n88.scrollLeft+_t162.x,_i31=_r39===tQ.Right&&_e129<=_d4.x||_r39===tQ.Left&&_e129>=_p5.x;if(_i31&&!_t162.y)return void _n88.scrollTo({left:_e129,behavior:_a20});_o57.x=_i31?_n88.scrollLeft-_e129:_r39===tQ.Right?_n88.scrollLeft-_d4.x:_n88.scrollLeft-_p5.x,_o57.x&&_n88.scrollBy({left:-_o57.x,behavior:_a20});break;}if(_g3&&_m4.y!==_u4.y){var _e130=_n88.scrollTop+_t162.y,_i32=_r39===tQ.Down&&_e130<=_d4.y||_r39===tQ.Up&&_e130>=_p5.y;if(_i32&&!_t162.x)return void _n88.scrollTo({top:_e130,behavior:_a20});_o57.y=_i32?_n88.scrollTop-_e130:_r39===tQ.Down?_n88.scrollTop-_d4.y:_n88.scrollTop-_p5.y,_o57.y&&_n88.scrollBy({top:-_o57.y,behavior:_a20});break;}}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}this.handleMove(e,rK(iK(_u4,this.referenceCoordinates),_o57));}}}},{key:"handleMove",value:function handleMove(e,t){var n=this.props.onMove;e.preventDefault(),n(t);}},{key:"handleEnd",value:function handleEnd(e){var t=this.props.onEnd;e.preventDefault(),this.detach(),t();}},{key:"handleCancel",value:function handleCancel(e){var t=this.props.onCancel;e.preventDefault(),this.detach(),t();}},{key:"detach",value:function detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}]);}();function lQ(e){return Boolean(e&&"distance"in e);}function cQ(e){return Boolean(e&&"delay"in e);}sQ.activators=[{eventName:"onKeyDown",handler:function handler(e,t,n){var _t$keyboardCodes=t.keyboardCodes,o=_t$keyboardCodes===void 0?iQ:_t$keyboardCodes,r=t.onActivation,i=n.active;var a=e.nativeEvent.code;if(o.start.includes(a)){var _t163=i.activatorNode.current;return(!_t163||e.target===_t163)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0);}return!1;}}];var uQ=/*#__PURE__*/function(){function uQ(e,t,n){_classCallCheck(this,uQ);var o;void 0===n&&(n=function(e){var _GJ4=GJ(e),t=_GJ4.EventTarget;return e instanceof t?e:ZJ(e);}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;var r=e.event,i=r.target;this.props=e,this.events=t,this.document=ZJ(i),this.documentListeners=new JK(this.document),this.listeners=new JK(n),this.windowListeners=new JK(GJ(i)),this.initialCoordinates=null!=(o=sK(r))?o:wK,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}return _createClass(uQ,[{key:"attach",value:function attach(){var e=this.events,_this$props$options=this.props.options,t=_this$props$options.activationConstraint,n=_this$props$options.bypassActivationConstraint;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(QK.Resize,this.handleCancel),this.windowListeners.add(QK.DragStart,oQ),this.windowListeners.add(QK.VisibilityChange,this.handleCancel),this.windowListeners.add(QK.ContextMenu,oQ),this.documentListeners.add(QK.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(cQ(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(lQ(t))return void this.handlePending(t);}this.handleStart();}},{key:"detach",value:function detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);}},{key:"handlePending",value:function handlePending(e,t){var _this$props3=this.props,n=_this$props3.active,o=_this$props3.onPending;o(n,e,this.initialCoordinates,t);}},{key:"handleStart",value:function handleStart(){var e=this.initialCoordinates,t=this.props.onStart;e&&(this.activated=!0,this.documentListeners.add(QK.Click,rQ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(QK.SelectionChange,this.removeTextSelection),t(e));}},{key:"handleMove",value:function handleMove(e){var t;var n=this.activated,o=this.initialCoordinates,r=this.props,i=r.onMove,a=r.options.activationConstraint;if(!o)return;var s=null!=(t=sK(e))?t:wK,l=iK(o,s);if(!n&&a){if(lQ(a)){if(null!=a.tolerance&&KK(l,a.tolerance))return this.handleCancel();if(KK(l,a.distance))return this.handleStart();}return cQ(a)&&KK(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l);}e.cancelable&&e.preventDefault(),i(s);}},{key:"handleEnd",value:function handleEnd(){var _this$props4=this.props,e=_this$props4.onAbort,t=_this$props4.onEnd;this.detach(),this.activated||e(this.props.active),t();}},{key:"handleCancel",value:function handleCancel(){var _this$props5=this.props,e=_this$props5.onAbort,t=_this$props5.onCancel;this.detach(),this.activated||e(this.props.active),t();}},{key:"handleKeydown",value:function handleKeydown(e){e.code===tQ.Esc&&this.handleCancel();}},{key:"removeTextSelection",value:function removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges();}}]);}();var dQ={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};var pQ=/*#__PURE__*/function(_uQ){function pQ(e){_classCallCheck(this,pQ);var t=e.event,n=ZJ(t.target);return _callSuper(this,pQ,[e,dQ,n]);}_inherits(pQ,_uQ);return _createClass(pQ);}(uQ);pQ.activators=[{eventName:"onPointerDown",handler:function handler(e,t){var n=e.nativeEvent,o=t.onActivation;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0);}}];var fQ={move:{name:"mousemove"},end:{name:"mouseup"}};var mQ,hQ;(hQ=mQ||(mQ={}))[hQ.RightClick=2]="RightClick";/*#__PURE__*/(function(_uQ2){function _class3(e){_classCallCheck(this,_class3);return _callSuper(this,_class3,[e,fQ,ZJ(e.event.target)]);}_inherits(_class3,_uQ2);return _createClass(_class3);})(uQ).activators=[{eventName:"onMouseDown",handler:function handler(e,t){var n=e.nativeEvent,o=t.onActivation;return n.button!==mQ.RightClick&&(null==o||o({event:n}),!0);}}];var gQ={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var bQ,vQ,yQ,xQ;function wQ(e){var t=e.acceleration,_e$activator=e.activator,o=_e$activator===void 0?bQ.Pointer:_e$activator,r=e.canScroll,i=e.draggingRect,a=e.enabled,_e$interval=e.interval,s=_e$interval===void 0?5:_e$interval,_e$order=e.order,l=_e$order===void 0?yQ.TreeOrder:_e$order,c=e.pointerCoordinates,u=e.scrollableAncestors,d=e.scrollableAncestorRects,p=e.delta,f=e.threshold;var m=function(e){var t=e.delta,n=e.disabled;var o=eK(t);return KJ(function(e){if(n||!o||!e)return CQ;var r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:_defineProperty(_defineProperty({},_K.Backward,e.x[_K.Backward]||-1===r.x),_K.Forward,e.x[_K.Forward]||1===r.x),y:_defineProperty(_defineProperty({},_K.Backward,e.y[_K.Backward]||-1===r.y),_K.Forward,e.y[_K.Forward]||1===r.y)};},[n,t,o]);}({delta:p,disabled:!a}),_ref459=function(){var e=n.useRef(null);return[n.useCallback(function(t,n){e.current=setInterval(t,n);},[]),n.useCallback(function(){null!==e.current&&(clearInterval(e.current),e.current=null);},[])];}(),_ref460=_slicedToArray(_ref459,2),h=_ref460[0],g=_ref460[1],b=n.useRef({x:0,y:0}),v=n.useRef({x:0,y:0}),y=n.useMemo(function(){switch(o){case bQ.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case bQ.DraggableRect:return i;}},[o,i,c]),x=n.useRef(null),w=n.useCallback(function(){var e=x.current;if(!e)return;var t=b.current.x*v.current.x,n=b.current.y*v.current.y;e.scrollBy(t,n);},[]),C=n.useMemo(function(){return l===yQ.TreeOrder?_toConsumableArray(u).reverse():u;},[l,u]);n.useEffect(function(){if(a&&u.length&&y){var _iterator12=_createForOfIteratorHelper(C),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e131=_step12.value;if(!1===(null==r?void 0:r(_e131)))continue;var _n89=u.indexOf(_e131),_o58=d[_n89];if(!_o58)continue;var _YK=YK(_e131,_o58,y,t,f),_i33=_YK.direction,_a21=_YK.speed;for(var _i34=0,_arr=["x","y"];_i34<_arr.length;_i34++){var _e132=_arr[_i34];m[_e132][_i33[_e132]]||(_a21[_e132]=0,_i33[_e132]=0);}if(_a21.x>0||_a21.y>0)return g(),x.current=_e131,h(w,s),b.current=_a21,void(v.current=_i33);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}b.current={x:0,y:0},v.current={x:0,y:0},g();}else g();},[t,w,r,g,a,s,JSON.stringify(y),JSON.stringify(m),h,u,C,d,JSON.stringify(f)]);}/*#__PURE__*/(function(_uQ3){function _class4(e){_classCallCheck(this,_class4);return _callSuper(this,_class4,[e,gQ]);}_inherits(_class4,_uQ3);return _createClass(_class4,null,[{key:"setup",value:function setup(){return window.addEventListener(gQ.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(gQ.move.name,e);};function e(){}}}]);})(uQ).activators=[{eventName:"onTouchStart",handler:function handler(e,t){var n=e.nativeEvent,o=t.onActivation;var r=n.touches;return!(r.length>1)&&(null==o||o({event:n}),!0);}}],(vQ=bQ||(bQ={}))[vQ.Pointer=0]="Pointer",vQ[vQ.DraggableRect=1]="DraggableRect",(xQ=yQ||(yQ={}))[xQ.TreeOrder=0]="TreeOrder",xQ[xQ.ReversedTreeOrder=1]="ReversedTreeOrder";var CQ={x:_defineProperty(_defineProperty({},_K.Backward,!1),_K.Forward,!1),y:_defineProperty(_defineProperty({},_K.Backward,!1),_K.Forward,!1)};var SQ,OQ,kQ;(OQ=SQ||(SQ={}))[OQ.Always=0]="Always",OQ[OQ.BeforeDragging=1]="BeforeDragging",OQ[OQ.WhileDragging=2]="WhileDragging",(kQ||(kQ={})).Optimized="optimized";var IQ=new Map();function TQ(e,t){return KJ(function(n){return e?n||("function"==typeof t?t(e):e):null;},[t,e]);}function MQ(e){var t=e.callback,o=e.disabled;var r=qJ(t),i=n.useMemo(function(){if(o||"undefined"==typeof window||void 0===window.ResizeObserver)return;var _window2=window,e=_window2.ResizeObserver;return new e(r);},[o]);return n.useEffect(function(){return function(){return null==i?void 0:i.disconnect();};},[i]),i;}function DQ(e){return new qK(NK(e),e);}function PQ(e,t,o){void 0===t&&(t=DQ);var _n$useState1=n.useState(null),_n$useState10=_slicedToArray(_n$useState1,2),r=_n$useState10[0],i=_n$useState10[1];function a(){i(function(n){if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=n?n:o)?r:null;var i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i;});}var s=function(e){var t=e.callback,o=e.disabled;var r=qJ(t),i=n.useMemo(function(){if(o||"undefined"==typeof window||void 0===window.MutationObserver)return;var _window3=window,e=_window3.MutationObserver;return new e(r);},[r,o]);return n.useEffect(function(){return function(){return null==i?void 0:i.disconnect();};},[i]),i;}({callback:function callback(t){if(e){var _iterator13=_createForOfIteratorHelper(t),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _n90=_step13.value;var _t164=_n90.type,_o59=_n90.target;if("childList"===_t164&&_o59 instanceof HTMLElement&&_o59.contains(e)){a();break;}}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}}}}),l=MQ({callback:a});return UJ(function(){a(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect());},[e]),r;}var EQ=[];function RQ(e,t){void 0===t&&(t=[]);var o=n.useRef(null);return n.useEffect(function(){o.current=null;},t),n.useEffect(function(){var t=e!==wK;t&&!o.current&&(o.current=e),!t&&o.current&&(o.current=null);},[e]),o.current?iK(e,o.current):wK;}function NQ(e){return n.useMemo(function(){return e?function(e){var t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n};}(e):null;},[e]);}var jQ=[];function AQ(e){var t=e.measure;var _n$useState11=n.useState(null),_n$useState12=_slicedToArray(_n$useState11,2),o=_n$useState12[0],r=_n$useState12[1],i=MQ({callback:n.useCallback(function(e){var _iterator14=_createForOfIteratorHelper(e),_step14;try{var _loop6=function _loop6(){var _ref461=_step14.value;var n=_ref461.target;if(YJ(n)){r(function(e){var o=t(n);return e?f(p({},e),{width:o.width,height:o.height}):o;});return 1;// break
51
- }};for(_iterator14.s();!(_step14=_iterator14.n()).done;){if(_loop6())break;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}},[t])}),a=n.useCallback(function(e){var n=function(e){if(!e)return null;if(e.children.length>1)return e;var t=e.children[0];return YJ(t)?t:e;}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null);},[t,i]),_QJ=QJ(a),_QJ2=_slicedToArray(_QJ,2),s=_QJ2[0],l=_QJ2[1];return n.useMemo(function(){return{nodeRef:s,rect:o,setRef:l};},[o,s,l]);}var VQ=[{sensor:pQ,options:{}},{sensor:sQ,options:{}}],LQ={current:{}},FQ={draggable:{measure:jK},droppable:{measure:jK,strategy:SQ.WhileDragging,frequency:kQ.Optimized},dragOverlay:{measure:NK}};var BQ=/*#__PURE__*/function(_Map){function BQ(){_classCallCheck(this,BQ);return _callSuper(this,BQ,arguments);}_inherits(BQ,_Map);return _createClass(BQ,[{key:"get",value:function get(e){var t;return null!=e&&null!=(t=_superPropGet(BQ,"get",this,3)([e]))?t:void 0;}},{key:"toArray",value:function toArray(){return Array.from(this.values());}},{key:"getEnabled",value:function getEnabled(){return this.toArray().filter(function(e){var t=e.disabled;return!t;});}},{key:"getNodeFor",value:function getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(Map));var WQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map(),droppableRects:new Map(),droppableContainers:new BQ(),over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:xK},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:FQ,measureDroppableContainers:xK,windowRect:null,measuringScheduled:!1},_Q={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:xK,draggableNodes:new Map(),over:null,measureDroppableContainers:xK},zQ=n.createContext(_Q),$Q=n.createContext(WQ);function GQ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map(),translate:{x:0,y:0}},droppable:{containers:new BQ()}};}function HQ(e,t){switch(t.type){case vK.DragStart:return f(p({},e),{draggable:f(p({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case vK.DragMove:return null==e.draggable.active?e:f(p({},e),{draggable:f(p({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case vK.DragEnd:case vK.DragCancel:return f(p({},e),{draggable:f(p({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case vK.RegisterDroppable:{var _n91=t.element,_o60=_n91.id,_r40=new BQ(e.droppable.containers);return _r40.set(_o60,_n91),f(p({},e),{droppable:f(p({},e.droppable),{containers:_r40})});}case vK.SetDroppableDisabled:{var _n92=t.id,_o61=t.key,_r41=t.disabled,_i35=e.droppable.containers.get(_n92);if(!_i35||_o61!==_i35.key)return e;var _a22=new BQ(e.droppable.containers);return _a22.set(_n92,f(p({},_i35),{disabled:_r41})),f(p({},e),{droppable:f(p({},e.droppable),{containers:_a22})});}case vK.UnregisterDroppable:{var _n93=t.id,_o62=t.key,_r42=e.droppable.containers.get(_n93);if(!_r42||_o62!==_r42.key)return e;var _i36=new BQ(e.droppable.containers);return _i36.delete(_n93),f(p({},e),{droppable:f(p({},e.droppable),{containers:_i36})});}default:return e;}}function YQ(e){var t=e.disabled;var _n$useContext=n.useContext(zQ),o=_n$useContext.active,r=_n$useContext.activatorEvent,i=_n$useContext.draggableNodes,a=eK(r),s=eK(null==o?void 0:o.id);return n.useEffect(function(){if(!t&&!r&&a&&null!=s){if(!aK(a))return;if(document.activeElement===a.target)return;var _e133=i.get(s);if(!_e133)return;var _t165=_e133.activatorNode,_n94=_e133.node;if(!_t165.current&&!_n94.current)return;requestAnimationFrame(function(){for(var _i37=0,_arr2=[_t165.current,_n94.current];_i37<_arr2.length;_i37++){var _e134=_arr2[_i37];if(!_e134)continue;var _t166=uK(_e134);if(_t166){_t166.focus();break;}}});}},[r,t,i,s,a]),null;}var XQ=n.createContext(f(p({},wK),{scaleX:1,scaleY:1}));var ZQ,UQ;(UQ=ZQ||(ZQ={}))[UQ.Uninitialized=0]="Uninitialized",UQ[UQ.Initializing=1]="Initializing",UQ[UQ.Initialized=2]="Initialized";var qQ=n.memo(function(e){var t,r,i,a;var s=e,l=s.id,c=s.accessibility,_s$autoScroll=s.autoScroll,u=_s$autoScroll===void 0?!0:_s$autoScroll,d=s.children,_s$sensors=s.sensors,m=_s$sensors===void 0?VQ:_s$sensors,_s$collisionDetection=s.collisionDetection,g=_s$collisionDetection===void 0?MK:_s$collisionDetection,v=s.measuring,y=s.modifiers,x=h(s,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);var w=n.useReducer(HQ,void 0,GQ),_w5=_slicedToArray(w,2),C=_w5[0],S=_w5[1],_ref462=function(){var _n$useState19=n.useState(function(){return new Set();}),_n$useState20=_slicedToArray(_n$useState19,1),e=_n$useState20[0],t=n.useCallback(function(t){return e.add(t),function(){return e.delete(t);};},[e]);return[n.useCallback(function(t){var n=t.type,o=t.event;e.forEach(function(e){var t;return null==(t=e[n])?void 0:t.call(e,o);});},[e]),t];}(),_ref463=_slicedToArray(_ref462,2),O=_ref463[0],k=_ref463[1],_n$useState13=n.useState(ZQ.Uninitialized),_n$useState14=_slicedToArray(_n$useState13,2),I=_n$useState14[0],T=_n$useState14[1],M=I===ZQ.Initialized,_C$draggable=C.draggable,D=_C$draggable.active,P=_C$draggable.nodes,E=_C$draggable.translate,R=C.droppable.containers,N=null!=D?P.get(D):null,j=n.useRef({initial:null,translated:null}),A=n.useMemo(function(){var e;return null!=D?{id:D,data:null!=(e=null==N?void 0:N.data)?e:LQ,rect:j}:null;},[D,N]),V=n.useRef(null),_n$useState15=n.useState(null),_n$useState16=_slicedToArray(_n$useState15,2),L=_n$useState16[0],F=_n$useState16[1],_n$useState17=n.useState(null),_n$useState18=_slicedToArray(_n$useState17,2),B=_n$useState18[0],W=_n$useState18[1],_=JJ(x,Object.values(x)),z=nK("DndDescribedBy",l),$=n.useMemo(function(){return R.getEnabled();},[R]),G=function(e){return n.useMemo(function(){return{draggable:p(p({},FQ.draggable),null==e?void 0:e.draggable),droppable:p(p({},FQ.droppable),null==e?void 0:e.droppable),dragOverlay:p(p({},FQ.dragOverlay),null==e?void 0:e.dragOverlay)};},[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay]);}(v),_ref464=function(e,t){var o=t.dragging,r=t.dependencies,i=t.config;var _n$useState21=n.useState(null),_n$useState22=_slicedToArray(_n$useState21,2),a=_n$useState22[0],s=_n$useState22[1],l=i.frequency,c=i.measure,u=i.strategy,d=n.useRef(e),p=function(){switch(u){case SQ.Always:return!1;case SQ.BeforeDragging:return o;default:return!o;}}(),f=JJ(p),m=n.useCallback(function(e){void 0===e&&(e=[]),f.current||s(function(t){return null===t?e:t.concat(e.filter(function(e){return!t.includes(e);}));});},[f]),h=n.useRef(null),g=KJ(function(t){if(p&&!o)return IQ;if(!t||t===IQ||d.current!==e||null!=a){var _t167=new Map();var _iterator15=_createForOfIteratorHelper(e),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _n95=_step15.value;if(!_n95)continue;if(a&&a.length>0&&!a.includes(_n95.id)&&_n95.rect.current){_t167.set(_n95.id,_n95.rect.current);continue;}var _e135=_n95.node.current,_o63=_e135?new qK(c(_e135),_e135):null;_n95.rect.current=_o63,_o63&&_t167.set(_n95.id,_o63);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return _t167;}return t;},[e,a,o,p,c]);return n.useEffect(function(){d.current=e;},[e]),n.useEffect(function(){p||m();},[o,p]),n.useEffect(function(){a&&a.length>0&&s(null);},[JSON.stringify(a)]),n.useEffect(function(){p||"number"!=typeof l||null!==h.current||(h.current=setTimeout(function(){m(),h.current=null;},l));},[l,p,m].concat(_toConsumableArray(r))),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:null!=a};}($,{dragging:M,dependencies:[E.x,E.y],config:G.droppable}),H=_ref464.droppableRects,Y=_ref464.measureDroppableContainers,X=_ref464.measuringScheduled,Z=function(e,t){var n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return KJ(function(e){var n;return null==t?null:null!=(n=null!=o?o:e)?n:null;},[o,t]);}(P,D),U=n.useMemo(function(){return B?sK(B):null;},[B]),q=function(){var e=!1===(null==L?void 0:L.autoScrollEnabled),t="object"==_typeof(u)?!1===u.enabled:!1===u,n=M&&!e&&!t;if("object"==_typeof(u))return f(p({},u),{enabled:n});return{enabled:n};}(),J=function(e,t){return TQ(e,t);}(Z,G.draggable.measure);!function(e){var t=e.activeNode,o=e.measure,r=e.initialRect,_e$config=e.config,i=_e$config===void 0?!0:_e$config;var a=n.useRef(!1),_ref465="boolean"==typeof i?{x:i,y:i}:i,s=_ref465.x,l=_ref465.y;UJ(function(){if(!s&&!l||!t)return void(a.current=!1);if(a.current||!r)return;var e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;var n=DK(o(e),r);if(s||(n.x=0),l||(n.y=0),a.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){var _t168=VK(e);_t168&&_t168.scrollBy({top:n.y,left:n.x});}},[t,s,l,r,o]);}({activeNode:null!=D?P.get(D):null,config:q.layoutShiftCompensation,initialRect:J,measure:G.draggable.measure});var K=PQ(Z,G.draggable.measure,J),Q=PQ(Z?Z.parentElement:null),ee=n.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),te=R.getNodeFor(null==(t=ee.current.over)?void 0:t.id),ne=AQ({measure:G.dragOverlay.measure}),oe=null!=(r=ne.nodeRef.current)?r:Z,re=M?null!=(i=ne.rect)?i:K:null,ie=Boolean(ne.nodeRef.current&&ne.rect),ae=DK(se=ie?null:K,TQ(se));var se;var le=NQ(oe?GJ(oe):null),ce=function(e){var t=n.useRef(e),o=KJ(function(n){return e?n&&n!==EQ&&e&&t.current&&e.parentNode===t.current.parentNode?n:AK(e):EQ;},[e]);return n.useEffect(function(){t.current=e;},[e]),o;}(M?null!=te?te:Z:null),ue=function(e,t){void 0===t&&(t=NK);var _e136=_slicedToArray(e,1),o=_e136[0],r=NQ(o?GJ(o):null),_n$useState25=n.useState(jQ),_n$useState26=_slicedToArray(_n$useState25,2),i=_n$useState26[0],a=_n$useState26[1];function s(){a(function(){return e.length?e.map(function(e){return $K(e)?r:new qK(t(e),e);}):jQ;});}var l=MQ({callback:s});return UJ(function(){null==l||l.disconnect(),s(),e.forEach(function(e){return null==l?void 0:l.observe(e);});},[e]),i;}(ce),de=function(e,t){var n=t,o=n.transform,r=h(n,["transform"]);return null!=e&&e.length?e.reduce(function(e,t){return t(p({transform:e},r));},o):o;}(y,{transform:{x:E.x-ae.x,y:E.y-ae.y,scaleX:1,scaleY:1},activatorEvent:B,active:A,activeNodeRect:K,containerNodeRect:Q,draggingNodeRect:re,over:ee.current.over,overlayNodeRect:ne.rect,scrollableAncestors:ce,scrollableAncestorRects:ue,windowRect:le}),pe=U?rK(U,E):null,fe=function(e){var _n$useState27=n.useState(null),_n$useState28=_slicedToArray(_n$useState27,2),t=_n$useState28[0],o=_n$useState28[1],r=n.useRef(e),i=n.useCallback(function(e){var t=LK(e.target);t&&o(function(e){return e?(e.set(t,WK(t)),new Map(e)):null;});},[]);return n.useEffect(function(){var t=r.current;if(e!==t){n(t);var _a23=e.map(function(e){var t=LK(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,WK(t)]):null;}).filter(function(e){return null!=e;});o(_a23.length?new Map(_a23):null),r.current=e;}return function(){n(e),n(t);};function n(e){e.forEach(function(e){var t=LK(e);null==t||t.removeEventListener("scroll",i);});}},[i,e]),n.useMemo(function(){return e.length?t?Array.from(t.values()).reduce(function(e,t){return rK(e,t);},wK):ZK(e):wK;},[e,t]);}(ce),me=RQ(fe),he=RQ(fe,[K]),ge=rK(de,me),be=re?EK(re,de):null,ve=A&&be?g({active:A,collisionRect:be,droppableRects:H,droppableContainers:$,pointerCoordinates:pe}):null,ye=function(e,t){if(!e||0===e.length)return null;var _e137=_slicedToArray(e,1),n=_e137[0];return n[t];}(ve,"id"),_n$useState23=n.useState(null),_n$useState24=_slicedToArray(_n$useState23,2),xe=_n$useState24[0],we=_n$useState24[1],Ce=function(e,t,n){return f(p({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1});}(ie?de:rK(de,he),null!=(a=null==xe?void 0:xe.rect)?a:null,K),Se=n.useRef(null),Oe=n.useCallback(function(e,t){var n=t.sensor,r=t.options;if(null==V.current)return;var i=P.get(V.current);if(!i)return;var a=e.nativeEvent,s=new n({active:V.current,activeNode:i,event:a,options:r,context:ee,onAbort:function onAbort(e){if(!P.get(e))return;var t=_.current.onDragAbort,n={id:e};null==t||t(n),O({type:"onDragAbort",event:n});},onPending:function onPending(e,t,n,o){if(!P.get(e))return;var r=_.current.onDragPending,i={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(i),O({type:"onDragPending",event:i});},onStart:function onStart(e){var t=V.current;if(null==t)return;var n=P.get(t);if(!n)return;var r=_.current.onDragStart,i={activatorEvent:a,active:{id:t,data:n.data,rect:j}};o.unstable_batchedUpdates(function(){null==r||r(i),T(ZQ.Initializing),S({type:vK.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:i}),F(Se.current),W(a);});},onMove:function onMove(e){S({type:vK.DragMove,coordinates:e});},onEnd:l(vK.DragEnd),onCancel:l(vK.DragCancel)});function l(e){return function(){return b(this,null,/*#__PURE__*/_regenerator().m(function _callee1(){var _ee$current,t,n,r,i,s,_o64,_t169;return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:_ee$current=ee.current,t=_ee$current.active,n=_ee$current.collisions,r=_ee$current.over,i=_ee$current.scrollAdjustedTranslate;s=null;if(!(t&&i)){_context1.n=2;break;}_o64=_.current.cancelDrop;if(!(s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===vK.DragEnd&&"function"==typeof _o64)){_context1.n=2;break;}_context1.n=1;return Promise.resolve(_o64(s));case 1:_t169=_context1.v;if(!_t169){_context1.n=2;break;}e=vK.DragCancel;case 2:V.current=null,o.unstable_batchedUpdates(function(){S({type:e}),T(ZQ.Uninitialized),we(null),F(null),W(null),Se.current=null;var t=e===vK.DragEnd?"onDragEnd":"onDragCancel";if(s){var _e138=_.current[t];null==_e138||_e138(s),O({type:t,event:s});}});case 3:return _context1.a(2);}},_callee1);}));};}Se.current=s;},[P]),ke=function(e,t){return n.useMemo(function(){return e.reduce(function(e,n){var o=n.sensor;return[].concat(_toConsumableArray(e),_toConsumableArray(o.activators.map(function(e){return{eventName:e.eventName,handler:t(e.handler,n)};})));},[]);},[e,t]);}(m,n.useCallback(function(e,t){return function(n,o){var r=n.nativeEvent,i=P.get(o);if(null!==V.current||!i||r.dndKit||r.defaultPrevented)return;var a={active:i};!0===e(n,t.options,a)&&(r.dndKit={capturedBy:t.sensor},V.current=o,Oe(n,t));};},[P,Oe]));!function(e){n.useEffect(function(){if(!_J)return;var t=e.map(function(e){var t=e.sensor;return null==t.setup?void 0:t.setup();});return function(){var _iterator16=_createForOfIteratorHelper(t),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _e139=_step16.value;null==_e139||_e139();}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}};},e.map(function(e){var t=e.sensor;return t;}));}(m),UJ(function(){K&&I===ZQ.Initializing&&T(ZQ.Initialized);},[K,I]),n.useEffect(function(){var e=_.current.onDragMove,_ee$current2=ee.current,t=_ee$current2.active,n=_ee$current2.activatorEvent,r=_ee$current2.collisions,i=_ee$current2.over;if(!t||!n)return;var a={active:t,activatorEvent:n,collisions:r,delta:{x:ge.x,y:ge.y},over:i};o.unstable_batchedUpdates(function(){null==e||e(a),O({type:"onDragMove",event:a});});},[ge.x,ge.y]),n.useEffect(function(){var _ee$current3=ee.current,e=_ee$current3.active,t=_ee$current3.activatorEvent,n=_ee$current3.collisions,r=_ee$current3.droppableContainers,i=_ee$current3.scrollAdjustedTranslate;if(!e||null==V.current||!t||!i)return;var a=_.current.onDragOver,s=r.get(ye),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};o.unstable_batchedUpdates(function(){we(l),null==a||a(c),O({type:"onDragOver",event:c});});},[ye]),UJ(function(){ee.current={activatorEvent:B,active:A,activeNode:Z,collisionRect:be,collisions:ve,droppableRects:H,draggableNodes:P,draggingNode:oe,draggingNodeRect:re,droppableContainers:R,over:xe,scrollableAncestors:ce,scrollAdjustedTranslate:ge},j.current={initial:re,translated:be};},[A,Z,ve,be,P,oe,re,H,R,xe,ce,ge]),wQ(f(p({},q),{delta:E,draggingRect:be,pointerCoordinates:pe,scrollableAncestors:ce,scrollableAncestorRects:ue}));var Ie=n.useMemo(function(){return{active:A,activeNode:Z,activeNodeRect:K,activatorEvent:B,collisions:ve,containerNodeRect:Q,dragOverlay:ne,draggableNodes:P,droppableContainers:R,droppableRects:H,over:xe,measureDroppableContainers:Y,scrollableAncestors:ce,scrollableAncestorRects:ue,measuringConfiguration:G,measuringScheduled:X,windowRect:le};},[A,Z,K,B,ve,Q,ne,P,R,H,xe,Y,ce,ue,G,X,le]),Te=n.useMemo(function(){return{activatorEvent:B,activators:ke,active:A,activeNodeRect:K,ariaDescribedById:{draggable:z},dispatch:S,draggableNodes:P,over:xe,measureDroppableContainers:Y};},[B,ke,A,K,S,z,P,xe,Y]);return n.createElement(mK.Provider,{value:k},n.createElement(zQ.Provider,{value:Te},n.createElement($Q.Provider,{value:Ie},n.createElement(XQ.Provider,{value:Ce},d)),n.createElement(YQ,{disabled:!1===(null==c?void 0:c.restoreFocus)})),n.createElement(bK,f(p({},c),{hiddenTextDescribedById:z})));}),JQ=n.createContext(null),KQ="button";function QQ(e){var t=e.id,o=e.data,_e$disabled=e.disabled,r=_e$disabled===void 0?!1:_e$disabled,i=e.attributes;var a=nK("Draggable"),_n$useContext2=n.useContext(zQ),s=_n$useContext2.activators,l=_n$useContext2.activatorEvent,c=_n$useContext2.active,u=_n$useContext2.activeNodeRect,d=_n$useContext2.ariaDescribedById,p=_n$useContext2.draggableNodes,f=_n$useContext2.over,_ref466=null!=i?i:{},_ref466$role=_ref466.role,m=_ref466$role===void 0?KQ:_ref466$role,_ref466$roleDescripti=_ref466.roleDescription,h=_ref466$roleDescripti===void 0?"draggable":_ref466$roleDescripti,_ref466$tabIndex=_ref466.tabIndex,g=_ref466$tabIndex===void 0?0:_ref466$tabIndex,b=(null==c?void 0:c.id)===t,v=n.useContext(b?XQ:JQ),_QJ3=QJ(),_QJ4=_slicedToArray(_QJ3,2),y=_QJ4[0],x=_QJ4[1],_QJ5=QJ(),_QJ6=_slicedToArray(_QJ5,2),w=_QJ6[0],C=_QJ6[1],S=function(e,t){return n.useMemo(function(){return e.reduce(function(e,n){var o=n.eventName,r=n.handler;return e[o]=function(e){r(e,t);},e;},{});},[e,t]);}(s,t),O=JJ(o);UJ(function(){return p.set(t,{id:t,key:a,node:y,activatorNode:w,data:O}),function(){var e=p.get(t);e&&e.key===a&&p.delete(t);};},[p,t]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:n.useMemo(function(){return{role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!b||m!==KQ)||void 0,"aria-roledescription":h,"aria-describedby":d.draggable};},[r,m,g,b,h,d.draggable]),isDragging:b,listeners:r?void 0:S,node:y,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:v};}var e0={timeout:25};function t0(e,t,n){var o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o;}function n0(e,t){return e.reduce(function(e,n,o){var r=t.get(n);return r&&(e[o]=r),e;},Array(e.length));}function o0(e){return null!==e&&e>=0;}var r0=function r0(e){var t=e.rects,n=e.activeIndex,o=e.overIndex,r=e.index;var i=t0(t,o,n),a=t[r],s=i[r];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null;},i0={scaleX:1,scaleY:1},a0=function a0(e){var t;var n=e.activeIndex,o=e.activeNodeRect,r=e.index,i=e.rects,a=e.overIndex;var s=null!=(t=i[n])?t:o;if(!s)return null;if(r===n){var _e140=i[a];return _e140?p({x:0,y:n<a?_e140.top+_e140.height-(s.top+s.height):_e140.top-s.top},i0):null;}var l=function(e,t,n){var o=e[t],r=e[t-1],i=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):i?i.top-(o.top+o.height):0;return i?i.top-(o.top+o.height):r?o.top-(r.top+r.height):0;}(i,r,n);return p(r>n&&r<=a?{x:0,y:-s.height-l}:r<n&&r>=a?{x:0,y:s.height+l}:{x:0,y:0},i0);};var s0="Sortable",l0=n.createContext({activeIndex:-1,containerId:s0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:r0,disabled:{draggable:!1,droppable:!1}});function c0(e){var t=e.children,o=e.id,r=e.items,_e$strategy=e.strategy,i=_e$strategy===void 0?r0:_e$strategy,_e$disabled2=e.disabled,a=_e$disabled2===void 0?!1:_e$disabled2;var _n$useContext3=n.useContext($Q),s=_n$useContext3.active,l=_n$useContext3.dragOverlay,c=_n$useContext3.droppableRects,u=_n$useContext3.over,d=_n$useContext3.measureDroppableContainers,p=nK(s0,o),f=Boolean(null!==l.rect),m=n.useMemo(function(){return r.map(function(e){return"object"==_typeof(e)&&"id"in e?e.id:e;});},[r]),h=null!=s,g=s?m.indexOf(s.id):-1,b=u?m.indexOf(u.id):-1,v=n.useRef(m),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var _n96=0;_n96<e.length;_n96++)if(e[_n96]!==t[_n96])return!1;return!0;}(m,v.current),x=-1!==b&&-1===g||y,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e;}(a);UJ(function(){y&&h&&d(m);},[y,m,h,d]),n.useEffect(function(){v.current=m;},[m]);var C=n.useMemo(function(){return{activeIndex:g,containerId:p,disabled:w,disableTransforms:x,items:m,overIndex:b,useDragOverlay:f,sortedRects:n0(m,c),strategy:i};},[g,p,w.draggable,w.droppable,x,m,b,c,f,i]);return n.createElement(l0.Provider,{value:C},t);}var u0=function u0(e){var t=e.id,n=e.items,o=e.activeIndex,r=e.overIndex;return t0(n,o,r).indexOf(t);},d0=function d0(e){var t=e.containerId,n=e.isSorting,o=e.wasDragging,r=e.index,i=e.items,a=e.newIndex,s=e.previousItems,l=e.previousContainerId,c=e.transition;return!(!c||!o)&&(s===i||r!==a)&&(!!n||a!==r&&t===l);},p0={duration:200,easing:"ease"},f0="transform",m0=lK.Transition.toString({property:f0,duration:0,easing:"linear"}),h0={roleDescription:"sortable"};function g0(e){var _e$animateLayoutChang=e.animateLayoutChanges,t=_e$animateLayoutChang===void 0?d0:_e$animateLayoutChang,o=e.attributes,r=e.disabled,i=e.data,_e$getNewIndex=e.getNewIndex,a=_e$getNewIndex===void 0?u0:_e$getNewIndex,s=e.id,l=e.strategy,c=e.resizeObserverConfig,_e$transition=e.transition,u=_e$transition===void 0?p0:_e$transition;var _n$useContext4=n.useContext(l0),d=_n$useContext4.items,m=_n$useContext4.containerId,h=_n$useContext4.activeIndex,g=_n$useContext4.disabled,b=_n$useContext4.disableTransforms,v=_n$useContext4.sortedRects,y=_n$useContext4.overIndex,x=_n$useContext4.useDragOverlay,w=_n$useContext4.strategy,C=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable};}(r,g),S=d.indexOf(s),O=n.useMemo(function(){return p({sortable:{containerId:m,index:S,items:d}},i);},[m,i,S,d]),k=n.useMemo(function(){return d.slice(d.indexOf(s));},[d,s]),_ref467=function(e){var t=e.data,_e$disabled3=e.disabled,o=_e$disabled3===void 0?!1:_e$disabled3,r=e.id,i=e.resizeObserverConfig;var a=nK("Droppable"),_n$useContext5=n.useContext(zQ),s=_n$useContext5.active,l=_n$useContext5.dispatch,c=_n$useContext5.over,u=_n$useContext5.measureDroppableContainers,d=n.useRef({disabled:o}),f=n.useRef(!1),m=n.useRef(null),h=n.useRef(null),_p6=p(p({},e0),i),g=_p6.disabled,b=_p6.updateMeasurementsFor,v=_p6.timeout,y=JJ(null!=b?b:r),x=MQ({callback:n.useCallback(function(){f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(function(){u(Array.isArray(y.current)?y.current:[y.current]),h.current=null;},v)):f.current=!0;},[v]),disabled:g||!s}),w=n.useCallback(function(e,t){x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e));},[x]),_QJ7=QJ(w),_QJ8=_slicedToArray(_QJ7,2),C=_QJ8[0],S=_QJ8[1],O=JJ(t);return n.useEffect(function(){x&&C.current&&(x.disconnect(),f.current=!1,x.observe(C.current));},[C,x]),n.useEffect(function(){return l({type:vK.RegisterDroppable,element:{id:r,key:a,disabled:o,node:C,rect:m,data:O}}),function(){return l({type:vK.UnregisterDroppable,key:a,id:r});};},[r]),n.useEffect(function(){o!==d.current.disabled&&(l({type:vK.SetDroppableDisabled,id:r,key:a,disabled:o}),d.current.disabled=o);},[r,a,o,l]),{active:s,rect:m,isOver:(null==c?void 0:c.id)===r,node:C,over:c,setNodeRef:S};}({id:s,data:O,disabled:C.droppable,resizeObserverConfig:p({updateMeasurementsFor:k},c)}),I=_ref467.rect,T=_ref467.node,M=_ref467.isOver,D=_ref467.setNodeRef,_QQ=QQ({id:s,data:O,attributes:p(p({},h0),o),disabled:C.draggable}),P=_QQ.active,E=_QQ.activatorEvent,R=_QQ.activeNodeRect,N=_QQ.attributes,j=_QQ.setNodeRef,A=_QQ.listeners,V=_QQ.isDragging,L=_QQ.over,F=_QQ.setActivatorNodeRef,B=_QQ.transform,W=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(function(){return function(e){t.forEach(function(t){return t(e);});};},t);}(D,j),_=Boolean(P),z=_&&!b&&o0(h)&&o0(y),$=!x&&V,G=$&&z?B:null,H=z?null!=G?G:(null!=l?l:w)({rects:v,activeNodeRect:R,activeIndex:h,overIndex:y,index:S}):null,Y=o0(h)&&o0(y)?a({id:s,items:d,activeIndex:h,overIndex:y}):S,X=null==P?void 0:P.id,Z=n.useRef({activeId:X,items:d,newIndex:Y,containerId:m}),U=d!==Z.current.items,q=t({active:P,containerId:m,isDragging:V,isSorting:_,id:s,index:S,items:d,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:u,wasDragging:null!=Z.current.activeId}),J=function(e){var t=e.disabled,o=e.index,r=e.node,i=e.rect;var _n$useState29=n.useState(null),_n$useState30=_slicedToArray(_n$useState29,2),a=_n$useState30[0],s=_n$useState30[1],l=n.useRef(o);return UJ(function(){if(!t&&o!==l.current&&r.current){var _e141=i.current;if(_e141){var _t170=NK(r.current,{ignoreTransform:!0}),_n97={x:_e141.left-_t170.left,y:_e141.top-_t170.top,scaleX:_e141.width/_t170.width,scaleY:_e141.height/_t170.height};(_n97.x||_n97.y)&&s(_n97);}}o!==l.current&&(l.current=o);},[t,o,r,i]),n.useEffect(function(){a&&s(null);},[a]),a;}({disabled:!q,index:S,node:T,rect:I});return n.useEffect(function(){_&&Z.current.newIndex!==Y&&(Z.current.newIndex=Y),m!==Z.current.containerId&&(Z.current.containerId=m),d!==Z.current.items&&(Z.current.items=d);},[_,Y,m,d]),n.useEffect(function(){if(X===Z.current.activeId)return;if(null!=X&&null==Z.current.activeId)return void(Z.current.activeId=X);var e=setTimeout(function(){Z.current.activeId=X;},50);return function(){return clearTimeout(e);};},[X]),{active:P,activeIndex:h,attributes:N,data:O,rect:I,index:S,newIndex:Y,items:d,isOver:M,isSorting:_,isDragging:V,listeners:A,node:T,overIndex:y,over:L,setNodeRef:W,setActivatorNodeRef:F,setDroppableNodeRef:D,setDraggableNodeRef:j,transform:null!=J?J:H,transition:function(){if(J||U&&Z.current.newIndex===S)return m0;if($&&!aK(E)||!u)return;if(_||q)return lK.Transition.toString(f(p({},u),{property:f0}));return;}()};}tQ.Down,tQ.Right,tQ.Up,tQ.Left;var b0="draggableList-module_draggable-list_NI1GQ",v0="draggableList-module_draggable-list--label_z7uQR",y0="draggableList-module_draggable-list--add-button_ouYIE",x0="draggableList-module_draggable-list--item_GfOt1",w0="draggableList-module_draggable-list--item--dragging_oUPMU",C0="draggableList-module_draggable-list--item--adding_hhlcL",S0="draggableList-module_draggable-list--item--removing_WsP1H",O0=cs(t.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var k0=n.memo(function(e){var o=e.item,r=e.isAdding,i=e.onRemove,a=e.canRemove,s=e.component,l=e.isRemoving,c=e.onSelectValue,u=e.componentProps,d=Boolean(null==u?void 0:u.disabled),p=!a||a(),f=g0({id:o.id,disabled:d}),m=f.attributes,h=f.listeners,g=f.setActivatorNodeRef,b=f.setNodeRef,v=f.transform,y=f.transition,x=f.isDragging,w=n.useCallback(function(){p&&i(o.id);},[p,o.id,i]),S=s;return t.jsxs(MC,{ref:b,className:E(x0,C(C(C({},w0,x),C0,r),S0,l)),elevation:0,style:{transform:lK.Transform.toString(v),transition:y},children:[t.jsx("span",O(O(O({ref:g},m),h),{},{children:t.jsx(mm,{size:"16",role:"button",children:t.jsx(O0,{})})})),S?t.jsx(S,O(O(O({},u),o),{},{item:o,disabled:d,onItemChange:function onItemChange(e){return c(o.id,e);}})):null,t.jsx(mm,{size:"8",role:"button",onClick:w,disabled:d||!p,color:am("primary","500"),children:t.jsx(Om,{})})]});});k0.displayName="DraggableRow";e.ActionBar=yG,e.Alert=function(e){var n=e.message,o=e.variant,r=void 0===o?"success":o,i=e.className,a=e.icon,s=e.fullWidth,l=void 0!==s&&s,c=e.link,u=k(e,JG),d={success:t.jsx(mm,{size:"12",color:am("success","500"),children:t.jsx(UG,{})}),error:t.jsx(mm,{size:"12",color:am("error","700"),children:t.jsx(XG,{})}),warning:t.jsx(mm,{size:"12",color:am("secondary","500"),children:t.jsx(Q$,{})}),info:t.jsx(mm,{size:"12",color:am("primary","500"),children:t.jsx(ZG,{})})};return t.jsxs("div",O(O({className:E(qG.alert,qG[r],C({},qG["full-width"],l),i)},u),{},{children:[t.jsx("div",{className:qG.icon,children:a||d[r]}),t.jsxs("div",{className:qG.message,children:[jf(n)?t.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):t.jsxs("span",{children:[" ",n]}),c&&t.jsxs(t.Fragment,{children:[" ",t.jsx("a",{href:null==c?void 0:c.href,className:qG.link,onClick:null==c?void 0:c.onClick,children:c.text})]})]})]}));},e.AsyncContent=hG,e.Breadcrumb=function(e){var n=e.items,o=e.className,r=k(e,TH);return t.jsx("nav",O(O({className:E(kH,o),"aria-label":"Breadcrumb"},r),{},{children:wf(n,function(e,o){return t.jsx(MH,{item:e,index:o,items:n},o);})}));},e.Button=j,e.Card=function(e){var n=e.icon,o=e.title,r=e.description,i=e.isActive,a=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,c=e.onClick,u=e.sx;return t.jsxs("div",{className:E(fY,C(C({},bY,l),vY,a)),onClick:c,style:u,children:[t.jsxs("div",{className:mY,children:[!!n&&n,!!o&&t.jsx("div",{className:hY,children:o})]}),!!r&&t.jsx("span",{className:gY,dangerouslySetInnerHTML:{__html:r}})]},o);},e.Categories=dm,e.Checkbox=D$,e.CheckboxGroup=T$,e.CheckboxInput=D$,e.CheckboxInputGroup=T$,e.Chip=function(e){var n=e.isActive,o=e.title,r=e.text,i=e.onRemove,a=void 0===i?void 0:i,s=e.disabled,l=void 0!==s&&s,c=e.variant,u=void 0===c?"primary":c,d=e.size,p=void 0===d?"lg":d,f=a&&!l;return t.jsx(os,{in:!!r||!!o,unmountOnExit:!0,children:t.jsxs("span",{className:E(gm.chip,gm[u],gm[p],C(C({},gm.disabled,l),gm.active,n)),children:[t.jsxs("span",{children:[!!o&&t.jsxs("span",{className:gm.title,children:[o," ",r&&": "]}),!!r&&t.jsx("span",{className:gm.text,children:r})]}),f&&t.jsx(mm,{className:gm.action,size:"8",onClick:f?a:void 0,color:am("grey","700"),children:t.jsx(ds,{})})]})});},e.ClearComponent=Ay,e.ColorOptions=lm,e.ColorValues=cm,e.Colors=im,e.CopyButton=function(e){var o=e.onClick,r=e.copyText,i=void 0===r?Cy("copyButton.copy"):r,a=e.copiedText,s=void 0===a?Cy("copyButton.copied"):a,l=e.textToCopy,c=e.resetTime,u=void 0===c?2e3:c,d=k(e,CG),p=I(n.useState(!1),2),f=p[0],m=p[1],h=I(n.useState(!1),2),g=h[0],b=h[1];n.useEffect(function(){if(f){b(!0);var e=setTimeout(function(){b(!1);},u/2);return function(){return clearTimeout(e);};}},[f]);return t.jsx("div",{onClick:function onClick(){return o?o():void(l&&(m(!0),navigator.clipboard.writeText(l).then(function(){setTimeout(function(){return m(!1);},u);}).catch(function(){m(!1);})));},children:t.jsx(j,O({className:"copy-btn ".concat(f?"copied":""," ").concat(g?"animating":""),outline:!0,label:f?s:i,leftAdornment:t.jsx(SG,{copied:f})},d))});},e.CustomIcon=mm,e.DatePicker=function(e){var n=e.label,o=e.rightAdornment,r=k(e,RV);return t.jsx(S$,O({type:"date",label:n,rightAdornment:o},r));},e.DatePickerInput=NV,e.DateRangePicker=function(e){var n=e.label,o=e.rightAdornment,r=e.value,i=k(e,x$);return t.jsx(S$,O({type:"dateRange",label:n,rightAdornment:o,value:r},i));},e.DateRangePickerInput=w$,e.DraggableList=function(e){var o=e.label,r=e.addLabel,i=e.onChange,a=e.canRemove,s=e.itemComponent,l=e.value,c=void 0===l?[]:l,u=e.componentProps,d=e.input;if(!s)return null;var p,f,m=n.useMemo(function(){var e,t;return null!==(e=null!==(t=null==d?void 0:d.value)&&void 0!==t?t:c)&&void 0!==e?e:[];},[c,null==d?void 0:d.value]),h=I(n.useState(m),2),g=h[0],b=h[1],v=I(n.useState(new Set()),2),y=v[0],x=v[1],w=I(n.useState(new Set()),2),C=w[0],S=w[1],k=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(function(){return[].concat(t).filter(function(e){return null!=e;});},[].concat(t));}((p=pQ,n.useMemo(function(){return{sensor:p,options:{}};},[p,f]))),M=n.useMemo(function(){return g.map(function(e){return e.id;});},[g]);n.useEffect(function(){b(m);},[m]);var D=Sy({input:d,onChange:function onChange(e){var t,n;if(i){var o=null!==(t=null!==(n=null==d?void 0:d.name)&&void 0!==n?n:null==u?void 0:u.name)&&void 0!==t?t:"draggableList";i({target:{name:o,value:e}});}},transformValue:function transformValue(e){return e;}}).handleChange,P=n.useCallback(function(e){b(function(t){var n="function"==typeof e?e(t):e;return D(n),n;});},[D]),R=n.useCallback(function(e){g.some(function(t){return t.id===e;})&&(S(function(t){return new Set(t).add(e);}),setTimeout(function(){P(function(t){return t.filter(function(t){return t.id!==e;});}),S(function(t){var n=new Set(t);return n.delete(e),n;});},300));},[P,g]),N=n.useCallback(function(e,t){P(function(n){return n.map(function(n){return n.id===e?O(O({},n),{},{value:t}):n;});});},[P]),j=n.useCallback(function(){var e,t=(e=g.length,{id:"".concat("draggable-item","-").concat(e,"-").concat(Date.now()),value:""});x(function(e){return new Set(e).add(t.id);}),P(function(e){return[].concat(T(e),[t]);}),setTimeout(function(){x(function(e){var n=new Set(e);return n.delete(t.id),n;});},300);},[P,g.length]),A=n.useCallback(function(e){var t=e.active,n=e.over;n&&t.id!==n.id&&P(function(e){var o=e.findIndex(function(e){return e.id===t.id;}),r=e.findIndex(function(e){return e.id===n.id;});return-1===o||-1===r?e:t0(e,o,r);});},[P]);return t.jsxs("div",{className:E(b0),children:[o&&t.jsx("div",{className:v0,children:o}),t.jsx(qQ,{sensors:k,collisionDetection:IK,onDragEnd:A,children:t.jsx(c0,{items:M,strategy:a0,children:g.map(function(e){return t.jsx(k0,{item:e,component:s,canRemove:a,onRemove:R,componentProps:u,onSelectValue:N,isAdding:y.has(e.id),isRemoving:C.has(e.id)},e.id);})})}),t.jsx("div",{className:E(y0),children:t.jsx(WJ,{href:"#",size:"sm",onClick:function onClick(e){e.preventDefault(),j();},children:r||Cy("addPlus")})})]});},e.Dropdown=function(e){var n=e.label,o=e.items,r=e.disabled,i=void 0!==r&&r,a=e.open,s=e.onToggle,l=e.onItemSelect,c=e.anchorOrigin,u=void 0===c?{vertical:"bottom",horizontal:"right"}:c,d=e.transformOrigin,p=void 0===d?{vertical:"top",horizontal:"right"}:d,f=e.className,m=e.size,h=void 0===m?"sm":m,g=I(y.useState(!1),2),b=g[0],v=g[1],x=I(y.useState(null),2),w=x[0],C=x[1],S=!rY(a),O=S?a:b,k=function k(){C(null),S?null==s||s(!1):v(!1);};return t.jsxs("div",{className:"".concat(LJ.dropdown," ").concat(f||""),children:[t.jsx(VJ,{id:"dropdown-button","aria-controls":O?"dropdown-menu":void 0,"aria-haspopup":"true","aria-expanded":O?"true":void 0,disabled:i,disableElevation:!0,onClick:function onClick(e){if(e.preventDefault(),!i){C(e.currentTarget);var t=!O;S?null==s||s(t):v(t);}},endIcon:t.jsx(jJ,{}),className:E(LJ.button,LJ[h]),children:n}),t.jsx(AJ,{id:"dropdown-menu",slotProps:{list:{"aria-labelledby":"dropdown-button"}},anchorEl:w,open:O,onClose:k,anchorOrigin:u,transformOrigin:p,disableScrollLock:!0,children:wf(o,function(e,n){var o;return t.jsxs(y.Fragment,{children:[e.divider&&n>0&&t.jsx(YP,{sx:{my:.5}}),t.jsx(VH,{label:e.label,icon:e.icon,disabled:e.disabled,onClick:function onClick(){return function(e){var t;e.disabled||(null===(t=e.onClick)||void 0===t||t.call(e),null==l||l(e),k());}(e);},onClose:k,size:null!==(o=e.size)&&void 0!==o?o:h})]},e.id);})})]});},e.EmptyState=oG,e.FileIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?xm:r,a=pm(i)?i:xm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M13 2V9H20",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});},e.FormField=S$,e.HeaderSection=function(e){var n=e.breadcrumb,o=e.image,r=e.dense,i=void 0!==r&&r,a=e.title,s=e.subtitle,l=e.link,c=e.menuAction;return t.jsxs("div",{className:E(OG,C({},kG,i)),children:[!!n&&n,t.jsxs("div",{className:IG,children:[!!o&&o,t.jsxs("div",{className:TG,children:[a&&t.jsx("h3",{className:MG,children:a}),!!s&&s,!!l&&l]}),!!c&&c]})]});},e.IconWithIdentifier=function(e){var n=e.text,o=e.icon,r=e.color,i=e.size,a=void 0===i?"md":i,s=e.showDivider,l=void 0===s||s;return t.jsxs("div",{className:E(RG["icon-with-identifier"],RG[a]),children:[!!o&&o,l&&t.jsx("div",{className:RG.divider}),!!n&&t.jsx("span",{className:RG.identifier,style:{color:r},children:n})]});},e.Image=function(e){var o=e.sx,r=e.src,i=e.alt,a=e.imageSx,s=e.errorIcon,l=e.showBorder,c=void 0===l||l,u=I(n.useState(!1),2),d=u[0],p=u[1];return t.jsx("div",{className:E(hH,C({},gH,c)),style:O({},o),children:d?s||t.jsx(mH,{className:vH}):t.jsx("img",{src:r,alt:i||r,className:bH,style:O({},a),onError:function onError(){p(!0);}})});},e.Link=WJ,e.LinkWithIcon=function(e){var n=e.text,o=e.icon,r=e.onClick,i=e.className,a=e.size,s=void 0===a?"md":a,l=e.otherProps,c=void 0===l?{}:l;return t.jsxs("div",{className:E(DG,i),onClick:r,children:[o&&t.jsx(mm,O(O({color:am("primary","500")},c),{},{size:EG(s),children:o})),t.jsx(j,O({variant:"link",label:n,size:s},c))]});},e.MailIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?ym:r,a=pm(i)?i:ym;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M22 6L12 13L2 6",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});},e.MenuAction=function(e){var o=e.items,r=e.id,i=void 0===r?"menu-action-button":r,a=e.maxItemsVisible,s=void 0===a?6:a,l=e.icon,c=e.size,u=void 0===c?"md":c,d=e.disableRipple,p=void 0!==d&&d,f=k(e,LH),m=I(n.useState(null),2),h=m[0],g=m[1],b=Boolean(h),v=function v(){g(null);};return t.jsxs("div",{children:[t.jsx(SC,{id:i,"aria-controls":b?"".concat(i,"-menu"):void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function onClick(e){g(e.currentTarget);},disableRipple:p,children:null!=l?l:t.jsx(mm,{color:am("grey","900"),children:t.jsx(DH,{})})}),t.jsx(cT,O(O({id:"".concat(i,"-menu"),anchorEl:h,open:b,onClose:v,disableScrollLock:!0,slotProps:{list:{"aria-labelledby":i},transition:os},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:PH(u,s)},f),{},{children:wf(o,function(e,n){var o;return t.jsx(VH,O(O({},e),{},{size:null!==(o=e.size)&&void 0!==o?o:u,onClose:v}),n);})}))]});},e.MenuItemComponent=VH,e.Option=Py,e.OverflowChecker=KG,e.PriceCloseIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?Cm:r,a=pm(i)?i:Cm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:a}),t.jsx("mask",{id:"path-2-inside-1_1_970",fill:"white",children:t.jsx("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),t.jsx("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:a,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),t.jsx("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:a})]});},e.PriceDownIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?wm:r,a=pm(i)?i:wm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:a}),t.jsx("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:t.jsx("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),t.jsx("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:a,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),t.jsx("path",{d:"M19.3793 14.424V23.1464",stroke:a,strokeWidth:"2"}),t.jsx("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:a})]});},e.Progressbar=function(e){var o=e.size,r=void 0===o?"lg":o,i=e.progress,a=void 0===i?0:i,s=e.variant,l=void 0===s?"determinate":s,c=I(n.useState(a),2),u=c[0],d=c[1];return n.useEffect(function(){if("buffer"===l){var e=setInterval(function(){d(function(e){var t=Math.min(100,e+.5*Math.sqrt(100-e));return Math.round(t);});},100);return function(){clearInterval(e);};}d(a);},[l,a]),t.jsx(HG,{variant:"buffer"==l?"determinate":l,value:u,className:E(YG.progressbar,YG[r]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u});},e.SearchComponent=Ny,e.SearchPublication=vm,e.Searcher=function(e){var o,r=e.name,i=e.label,a=e.placeholder,s=void 0===a?Cy("selectPlaceholder"):a,l=e.noOptionsMessage,c=void 0===l?Cy("noFoundOptions"):l,u=e.options,d=e.size,p=void 0===d?"md":d,f=e.isSearchable,m=void 0===f||f,h=e.isClearable,g=void 0===h||h,b=e.clearOnSelect,v=void 0!==b&&b;e.required;var y=e.disabled,x=e.rightModifier,w=e.isOptionDisabled,C=e.onChange,S=e.onInputChange,T=e.input,M=e.isLoading,D=void 0!==M&&M,P=e.formatOption,R=e.loadOptions,N=e.cacheOptions,j=void 0===N||N,A=e.defaultOptions,V=void 0===A||A,L=e.value,F=e.tooltipProps,B=k(e,H$),W=null!==(o=null==T?void 0:T.value)&&void 0!==o?o:L,_=I(n.useState(Y$(W)),2),z=_[0],$=_[1],G=I(n.useState(!1),2),H=G[0],Y=G[1],X=I(n.useState(0),2),Z=X[0],U=X[1];n.useEffect(function(){$(Y$(W));},[W]),n.useEffect(function(){H&&u&&!B$(u)&&U(function(e){return e+1;});},[u,H]);var q=n.useCallback(function(e){null==S||S({target:{name:r,value:e}}),Y(!0);},[r,S]),J=n.useCallback(function(e){var t={target:{name:r,value:null==e?void 0:e.value}};$(e),T?T.onChange(null==e?void 0:e.value):null==C||C(t),v&&e&&$(null),Y(!1);},[r,T,C,v]),K=n.useCallback(function(){T&&T.onBlur(),Y(!1);},[T]),Q=n.useCallback(function(){($(null),T)?T.onChange(null):null==C||C({target:{name:r,value:null}});},[T,r,C]),ee=n.useCallback(function(e){return t.jsx(Py,O(O({},e),{},{formatOption:P,tooltipProps:F}));},[P,F]),te=n.useCallback(function(e){return t.jsx(Ry,O({},e));},[]),ne=n.useCallback(function(){var e=O(O({},B),{},{key:Z,name:r,placeholder:s,classNamePrefix:"producteca-select-field",isDisabled:y,isClearable:g,isOptionDisabled:w,isSearchable:m,isLoading:D,loadingMessage:function loadingMessage(){return D?t.jsx($$,{size:"sm"}):c;},noOptionsMessage:function noOptionsMessage(){return D?t.jsx($$,{size:"sm"}):c;},onInputChange:q,onChange:J,onBlur:K,value:z,components:{Option:ee,SingleValue:te},menuPortalTarget:document.body,menuIsOpen:H,onMenuOpen:function onMenuOpen(){return Y(!0);},onMenuClose:function onMenuClose(){return Y(!1);}});return R?t.jsx(_$,O(O({},e),{},{loadOptions:R,cacheOptions:j,defaultOptions:V})):t.jsx(Cv,O(O({},e),{},{options:u}));},[B,Z,r,s,y,g,w,m,D,c,q,J,K,z,ee,te,H,R,j,V,u]);return t.jsxs("div",{className:Dy["producteca-select-field-container"],children:[i&&t.jsx("label",{htmlFor:r,children:i}),t.jsxs("div",{className:E(Dy[p],Dy["producteca-select-field-body"],Dy[m?"producteca-select-field--is-searchable":""],Dy[g?"producteca-select-field--is-clearable":""],Dy[x?"producteca-select-field--with-modifier":""]),children:[t.jsxs("div",{className:Dy["searcher-body"],children:[m&&t.jsx(Ny,{}),ne(),t.jsx(Ay,{optionSelected:z,isClearable:g,handleChange:Q})]}),!!x&&x]})]});},e.SelectField=function(e){var o,r=e.name,i=e.label,a=e.placeholder,s=void 0===a?Cy("selectPlaceholder"):a,l=e.noOptionsMessage,c=void 0===l?Cy("noFoundOptions"):l,u=e.options,d=e.size,p=void 0===d?"md":d,f=e.hideSelectedOptions,m=void 0===f||f,h=e.isMultiple,g=void 0!==h&&h,b=e.isSearchable,v=void 0===b||b,y=e.isClearable,x=void 0===y||y,w=e.required,S=e.disabled,k=e.rightModifier,T=e.isOptionDisabled,M=e.onChange,D=e.defaultValue,P=e.input,R=e.onBlur,N=e.meta,j=e.isValid,A=e.noErrors,V=void 0!==A&&A,L=e.formatOption,F=e.getOptionLabel,B=e.getOptionValue,W=e.tooltipProps,_=null!==(o=null==P?void 0:P.value)&&void 0!==o?o:e.value,z=Pm(u,function(e){return rm(_,Vy(e,B));}),$=I(n.useState(z||null),2),G=$[0],H=$[1],Y=I(n.useState(!1),2),X=Y[0],Z=Y[1],U={meta:N,value:_,isValid:j,required:w},q=Iy(U),J=Sy({input:P,onChange:function onChange(e){var t=g?wf(e,function(e){return Vy(e,B);}):Vy(e,B);P||null==M||M({target:{name:r,value:t}});return t;},onBlur:R,transformValue:function transformValue(e){return g?wf(e,function(e){return Vy(e,B);}):Vy(e,B);}}),K=J.handleChange,Q=J.handleBlur,ee=function ee(e){K(e),H(e);};n.useEffect(function(){if(D&&u.length>0){var e=_s(D)?D:[D],t=Pm(u,function(t){return rm(e,Vy(t,B));});H(g?t:t[0]||null);}},[D,u]);var te=function te(e){return t.jsx(Py,O(O({},e),{},{formatOption:L,tooltipProps:W}));},ne=g?{Option:te,MultiValue:function MultiValue(e){return t.jsx(Ey,O(O({},e),{},{formatOption:L}));}}:{Option:te,SingleValue:function SingleValue(e){return t.jsx(Ry,O(O({},e),{},{getOptionLabel:F}));}};return t.jsxs("div",{className:E(Dy["producteca-select-field-container"],C({},Ty[q],q)),"data-testid":"producteca-select-field-container",children:[i&&t.jsx("label",{htmlFor:r,children:i}),t.jsxs("div",{className:E(C({},Ty["validation-wrapper"],q)),children:[t.jsxs("div",{className:E(Dy[p],Dy["producteca-select-field-body"],C(C(C(C({},Dy["producteca-select-field--on-error"],q),Dy["producteca-select-field--with-modifier"],k),Dy["producteca-select-field--is-searchable"],v),Dy["producteca-select-field--is-clearable"],x)),children:[t.jsxs("div",{className:Dy.body,children:[g&&t.jsx(jy,{optionSelected:G,isFocused:X,isSearchable:v}),v&&t.jsx(Ny,{}),t.jsx(Cv,O(O({},e),{},{name:r,classNamePrefix:"producteca-select-field",placeholder:s,isDisabled:S,isMulti:g,closeMenuOnSelect:!g,hideSelectedOptions:m&&!g,isClearable:x,isOptionDisabled:T,isSearchable:v,noOptionsMessage:function noOptionsMessage(){return c;},getOptionValue:B,getOptionLabel:function getOptionLabel(e){return null==e?void 0:e.label;},onChange:ee,onFocus:function onFocus(){return Z(!0);},onBlur:function onBlur(){Z(!1),Q();},value:G,options:u,components:ne,menuPortalTarget:document.body})),t.jsx(Ay,{optionSelected:G,isClearable:x,handleChange:ee})]}),!!k&&k]}),!V&&q&&t.jsx(My,{validationProps:U})]})]});},e.Shades=um,e.Sidebar=function(e){var o=e.title,r=e.items,i=I(n.useState(!1),2),a=i[0],s=i[1];return t.jsx("div",{className:OJ,children:t.jsxs(BU,{collapsed:!1,className:E(kJ,C({},IJ,a)),children:[t.jsxs("div",{className:E(TJ,C({},MJ,a)),children:[!!o&&t.jsx("span",{className:DJ,children:o}),t.jsx("button",{onClick:function onClick(){return s(function(e){return!e;});},className:PJ,children:a?t.jsx(SJ,{}):t.jsx(CJ,{})})]}),t.jsx(GU,{children:wf(r,function(e,n){return t.jsx(wJ,{icon:e.icon,onClick:e.onClick,className:E(EJ,C(C({},RJ,a),NJ,e.isActive)),children:!a&&e.label},n);})})]})});},e.SingleValue=Ry,e.Spinner=$$,e.Switch=K$,e.SwitchGroup=J$,e.SwitchInput=K$,e.SwitchInputGroup=J$,e.Tabs=function(e){var o=e.sx,r=e.items,i=e.value,a=e.onChange,s=e.defaultValue,l=I(n.useState(s),2),c=l[0],u=l[1],d=rY(i)?c:i,p=n.useMemo(function(){var e;return null===(e=oY(r,function(e){return!e.disabled;}))||void 0===e?void 0:e.id;},[r]),f=n.useMemo(function(){return dY(o);},[o]);n.useEffect(function(){void 0===d&&u(p);},[d,p]);return t.jsx("div",{className:E(iY),children:t.jsx(wE,{sx:f,value:d,"aria-label":"tabs",onChange:function onChange(e,t){var n=String(t),o=oY(r,function(e){return e.id===n;});null!=o&&o.disabled||(void 0===i&&u(n),null==a||a(o));},className:aY,children:wf(r,function(e){var n=e.id,o=e.href,r=e.label,i=e.disabled;return t.jsx(QP,{value:n,sx:pY,disableRipple:!0,component:"a",disabled:i,label:t.jsx("span",{className:lY,children:r}),onClick:function onClick(t){return function(e,t){if(!e.disabled&&e.href){var n,o=t.ctrlKey||t.metaKey,r=1===t.button,i="_blank"===e.target;o||r||i||(t.preventDefault(),null!=e&&e.onClick?null==e||null===(n=e.onClick)||void 0===n||n.call(e):setTimeout(function(){window.location.href=e.href;},300));}}(e,t);},className:E(sY,C(C({},cY,n===d),uY,i)),href:o,target:e.target},n);})})});},e.TextInput=By,e.TrashIcon=Om,e.WarningModal=function(e){var n=e.icon,o=e.onSave,r=e.onCancel,i=e.description,a=e.onClickGuide,s=e.onChangeDontShowAgain,l=e.cancelLabel,c=void 0===l?Cy("cancel"):l,u=e.confirmLabel,d=void 0===u?Cy("continue"):u,p=e.title,f=void 0===p?Cy("warningModal.warning"):p,m=e.dontShowAgainLabel,h=void 0===m?Cy("warningModal.dontShowAgain"):m,g=k(e,YH);return t.jsx(ZI,{open:!0,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:BH,children:t.jsxs("div",{className:WH,role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:_H,children:[t.jsx(ZH,{onClickGuide:a}),t.jsxs("div",{className:$H,children:[n||XH,t.jsx("div",{id:"modal-modal-title",className:GH,children:f})]}),t.jsxs("div",{className:HH,children:[t.jsxs("span",{id:"modal-modal-description",children:[" ",i," "]}),s&&t.jsx(D$,O({name:"dont-show-again",label:h,onChange:s},g))]})]}),t.jsx(yG,{variant:"modal",cancelProps:{onCancel:r,label:c},saveProps:{onSave:o,label:d,variant:"primary",size:"md"}})]})});},e.WithOverflowTooltip=function(e){var o=e.content,r=e.children,i=k(e,pH);return t.jsx(KG,{children:function children(e,a){var s=n.cloneElement(r,{ref:e});return a&&o?t.jsx(fH,O(O({content:o},i),{},{children:s})):s;}});},e.WithTooltip=fH,e.allColors=sm,e.datePickerDayStyles=CV,e.datePickerDigitalClockStyles=SV,e.datePickerInputStyles=wV,e.datePickerLayoutStyles=xV,e.datePickerPopperStyles=kV,e.datePickerYearStyles=OV,e.formatDate=m$,e.getColor=am,e.isValidColor=pm,e.useReduxFormField=Sy,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});});
51
+ }};for(_iterator14.s();!(_step14=_iterator14.n()).done;){if(_loop6())break;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}},[t])}),a=n.useCallback(function(e){var n=function(e){if(!e)return null;if(e.children.length>1)return e;var t=e.children[0];return YJ(t)?t:e;}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null);},[t,i]),_QJ=QJ(a),_QJ2=_slicedToArray(_QJ,2),s=_QJ2[0],l=_QJ2[1];return n.useMemo(function(){return{nodeRef:s,rect:o,setRef:l};},[o,s,l]);}var VQ=[{sensor:pQ,options:{}},{sensor:sQ,options:{}}],LQ={current:{}},FQ={draggable:{measure:jK},droppable:{measure:jK,strategy:SQ.WhileDragging,frequency:kQ.Optimized},dragOverlay:{measure:NK}};var BQ=/*#__PURE__*/function(_Map){function BQ(){_classCallCheck(this,BQ);return _callSuper(this,BQ,arguments);}_inherits(BQ,_Map);return _createClass(BQ,[{key:"get",value:function get(e){var t;return null!=e&&null!=(t=_superPropGet(BQ,"get",this,3)([e]))?t:void 0;}},{key:"toArray",value:function toArray(){return Array.from(this.values());}},{key:"getEnabled",value:function getEnabled(){return this.toArray().filter(function(e){var t=e.disabled;return!t;});}},{key:"getNodeFor",value:function getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0;}}]);}(/*#__PURE__*/_wrapNativeSuper(Map));var WQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map(),droppableRects:new Map(),droppableContainers:new BQ(),over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:xK},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:FQ,measureDroppableContainers:xK,windowRect:null,measuringScheduled:!1},_Q={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:xK,draggableNodes:new Map(),over:null,measureDroppableContainers:xK},zQ=n.createContext(_Q),$Q=n.createContext(WQ);function GQ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map(),translate:{x:0,y:0}},droppable:{containers:new BQ()}};}function HQ(e,t){switch(t.type){case vK.DragStart:return f(p({},e),{draggable:f(p({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case vK.DragMove:return null==e.draggable.active?e:f(p({},e),{draggable:f(p({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case vK.DragEnd:case vK.DragCancel:return f(p({},e),{draggable:f(p({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case vK.RegisterDroppable:{var _n91=t.element,_o60=_n91.id,_r40=new BQ(e.droppable.containers);return _r40.set(_o60,_n91),f(p({},e),{droppable:f(p({},e.droppable),{containers:_r40})});}case vK.SetDroppableDisabled:{var _n92=t.id,_o61=t.key,_r41=t.disabled,_i35=e.droppable.containers.get(_n92);if(!_i35||_o61!==_i35.key)return e;var _a22=new BQ(e.droppable.containers);return _a22.set(_n92,f(p({},_i35),{disabled:_r41})),f(p({},e),{droppable:f(p({},e.droppable),{containers:_a22})});}case vK.UnregisterDroppable:{var _n93=t.id,_o62=t.key,_r42=e.droppable.containers.get(_n93);if(!_r42||_o62!==_r42.key)return e;var _i36=new BQ(e.droppable.containers);return _i36.delete(_n93),f(p({},e),{droppable:f(p({},e.droppable),{containers:_i36})});}default:return e;}}function YQ(e){var t=e.disabled;var _n$useContext=n.useContext(zQ),o=_n$useContext.active,r=_n$useContext.activatorEvent,i=_n$useContext.draggableNodes,a=eK(r),s=eK(null==o?void 0:o.id);return n.useEffect(function(){if(!t&&!r&&a&&null!=s){if(!aK(a))return;if(document.activeElement===a.target)return;var _e133=i.get(s);if(!_e133)return;var _t165=_e133.activatorNode,_n94=_e133.node;if(!_t165.current&&!_n94.current)return;requestAnimationFrame(function(){for(var _i37=0,_arr2=[_t165.current,_n94.current];_i37<_arr2.length;_i37++){var _e134=_arr2[_i37];if(!_e134)continue;var _t166=uK(_e134);if(_t166){_t166.focus();break;}}});}},[r,t,i,s,a]),null;}var XQ=n.createContext(f(p({},wK),{scaleX:1,scaleY:1}));var ZQ,UQ;(UQ=ZQ||(ZQ={}))[UQ.Uninitialized=0]="Uninitialized",UQ[UQ.Initializing=1]="Initializing",UQ[UQ.Initialized=2]="Initialized";var qQ=n.memo(function(e){var t,r,i,a;var s=e,l=s.id,c=s.accessibility,_s$autoScroll=s.autoScroll,u=_s$autoScroll===void 0?!0:_s$autoScroll,d=s.children,_s$sensors=s.sensors,m=_s$sensors===void 0?VQ:_s$sensors,_s$collisionDetection=s.collisionDetection,g=_s$collisionDetection===void 0?MK:_s$collisionDetection,v=s.measuring,y=s.modifiers,x=h(s,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);var w=n.useReducer(HQ,void 0,GQ),_w5=_slicedToArray(w,2),C=_w5[0],S=_w5[1],_ref462=function(){var _n$useState19=n.useState(function(){return new Set();}),_n$useState20=_slicedToArray(_n$useState19,1),e=_n$useState20[0],t=n.useCallback(function(t){return e.add(t),function(){return e.delete(t);};},[e]);return[n.useCallback(function(t){var n=t.type,o=t.event;e.forEach(function(e){var t;return null==(t=e[n])?void 0:t.call(e,o);});},[e]),t];}(),_ref463=_slicedToArray(_ref462,2),O=_ref463[0],k=_ref463[1],_n$useState13=n.useState(ZQ.Uninitialized),_n$useState14=_slicedToArray(_n$useState13,2),I=_n$useState14[0],T=_n$useState14[1],M=I===ZQ.Initialized,_C$draggable=C.draggable,D=_C$draggable.active,P=_C$draggable.nodes,E=_C$draggable.translate,R=C.droppable.containers,N=null!=D?P.get(D):null,j=n.useRef({initial:null,translated:null}),A=n.useMemo(function(){var e;return null!=D?{id:D,data:null!=(e=null==N?void 0:N.data)?e:LQ,rect:j}:null;},[D,N]),V=n.useRef(null),_n$useState15=n.useState(null),_n$useState16=_slicedToArray(_n$useState15,2),L=_n$useState16[0],F=_n$useState16[1],_n$useState17=n.useState(null),_n$useState18=_slicedToArray(_n$useState17,2),B=_n$useState18[0],W=_n$useState18[1],_=JJ(x,Object.values(x)),z=nK("DndDescribedBy",l),$=n.useMemo(function(){return R.getEnabled();},[R]),G=function(e){return n.useMemo(function(){return{draggable:p(p({},FQ.draggable),null==e?void 0:e.draggable),droppable:p(p({},FQ.droppable),null==e?void 0:e.droppable),dragOverlay:p(p({},FQ.dragOverlay),null==e?void 0:e.dragOverlay)};},[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay]);}(v),_ref464=function(e,t){var o=t.dragging,r=t.dependencies,i=t.config;var _n$useState21=n.useState(null),_n$useState22=_slicedToArray(_n$useState21,2),a=_n$useState22[0],s=_n$useState22[1],l=i.frequency,c=i.measure,u=i.strategy,d=n.useRef(e),p=function(){switch(u){case SQ.Always:return!1;case SQ.BeforeDragging:return o;default:return!o;}}(),f=JJ(p),m=n.useCallback(function(e){void 0===e&&(e=[]),f.current||s(function(t){return null===t?e:t.concat(e.filter(function(e){return!t.includes(e);}));});},[f]),h=n.useRef(null),g=KJ(function(t){if(p&&!o)return IQ;if(!t||t===IQ||d.current!==e||null!=a){var _t167=new Map();var _iterator15=_createForOfIteratorHelper(e),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _n95=_step15.value;if(!_n95)continue;if(a&&a.length>0&&!a.includes(_n95.id)&&_n95.rect.current){_t167.set(_n95.id,_n95.rect.current);continue;}var _e135=_n95.node.current,_o63=_e135?new qK(c(_e135),_e135):null;_n95.rect.current=_o63,_o63&&_t167.set(_n95.id,_o63);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return _t167;}return t;},[e,a,o,p,c]);return n.useEffect(function(){d.current=e;},[e]),n.useEffect(function(){p||m();},[o,p]),n.useEffect(function(){a&&a.length>0&&s(null);},[JSON.stringify(a)]),n.useEffect(function(){p||"number"!=typeof l||null!==h.current||(h.current=setTimeout(function(){m(),h.current=null;},l));},[l,p,m].concat(_toConsumableArray(r))),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:null!=a};}($,{dragging:M,dependencies:[E.x,E.y],config:G.droppable}),H=_ref464.droppableRects,Y=_ref464.measureDroppableContainers,X=_ref464.measuringScheduled,Z=function(e,t){var n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return KJ(function(e){var n;return null==t?null:null!=(n=null!=o?o:e)?n:null;},[o,t]);}(P,D),U=n.useMemo(function(){return B?sK(B):null;},[B]),q=function(){var e=!1===(null==L?void 0:L.autoScrollEnabled),t="object"==_typeof(u)?!1===u.enabled:!1===u,n=M&&!e&&!t;if("object"==_typeof(u))return f(p({},u),{enabled:n});return{enabled:n};}(),J=function(e,t){return TQ(e,t);}(Z,G.draggable.measure);!function(e){var t=e.activeNode,o=e.measure,r=e.initialRect,_e$config=e.config,i=_e$config===void 0?!0:_e$config;var a=n.useRef(!1),_ref465="boolean"==typeof i?{x:i,y:i}:i,s=_ref465.x,l=_ref465.y;UJ(function(){if(!s&&!l||!t)return void(a.current=!1);if(a.current||!r)return;var e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;var n=DK(o(e),r);if(s||(n.x=0),l||(n.y=0),a.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){var _t168=VK(e);_t168&&_t168.scrollBy({top:n.y,left:n.x});}},[t,s,l,r,o]);}({activeNode:null!=D?P.get(D):null,config:q.layoutShiftCompensation,initialRect:J,measure:G.draggable.measure});var K=PQ(Z,G.draggable.measure,J),Q=PQ(Z?Z.parentElement:null),ee=n.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),te=R.getNodeFor(null==(t=ee.current.over)?void 0:t.id),ne=AQ({measure:G.dragOverlay.measure}),oe=null!=(r=ne.nodeRef.current)?r:Z,re=M?null!=(i=ne.rect)?i:K:null,ie=Boolean(ne.nodeRef.current&&ne.rect),ae=DK(se=ie?null:K,TQ(se));var se;var le=NQ(oe?GJ(oe):null),ce=function(e){var t=n.useRef(e),o=KJ(function(n){return e?n&&n!==EQ&&e&&t.current&&e.parentNode===t.current.parentNode?n:AK(e):EQ;},[e]);return n.useEffect(function(){t.current=e;},[e]),o;}(M?null!=te?te:Z:null),ue=function(e,t){void 0===t&&(t=NK);var _e136=_slicedToArray(e,1),o=_e136[0],r=NQ(o?GJ(o):null),_n$useState25=n.useState(jQ),_n$useState26=_slicedToArray(_n$useState25,2),i=_n$useState26[0],a=_n$useState26[1];function s(){a(function(){return e.length?e.map(function(e){return $K(e)?r:new qK(t(e),e);}):jQ;});}var l=MQ({callback:s});return UJ(function(){null==l||l.disconnect(),s(),e.forEach(function(e){return null==l?void 0:l.observe(e);});},[e]),i;}(ce),de=function(e,t){var n=t,o=n.transform,r=h(n,["transform"]);return null!=e&&e.length?e.reduce(function(e,t){return t(p({transform:e},r));},o):o;}(y,{transform:{x:E.x-ae.x,y:E.y-ae.y,scaleX:1,scaleY:1},activatorEvent:B,active:A,activeNodeRect:K,containerNodeRect:Q,draggingNodeRect:re,over:ee.current.over,overlayNodeRect:ne.rect,scrollableAncestors:ce,scrollableAncestorRects:ue,windowRect:le}),pe=U?rK(U,E):null,fe=function(e){var _n$useState27=n.useState(null),_n$useState28=_slicedToArray(_n$useState27,2),t=_n$useState28[0],o=_n$useState28[1],r=n.useRef(e),i=n.useCallback(function(e){var t=LK(e.target);t&&o(function(e){return e?(e.set(t,WK(t)),new Map(e)):null;});},[]);return n.useEffect(function(){var t=r.current;if(e!==t){n(t);var _a23=e.map(function(e){var t=LK(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,WK(t)]):null;}).filter(function(e){return null!=e;});o(_a23.length?new Map(_a23):null),r.current=e;}return function(){n(e),n(t);};function n(e){e.forEach(function(e){var t=LK(e);null==t||t.removeEventListener("scroll",i);});}},[i,e]),n.useMemo(function(){return e.length?t?Array.from(t.values()).reduce(function(e,t){return rK(e,t);},wK):ZK(e):wK;},[e,t]);}(ce),me=RQ(fe),he=RQ(fe,[K]),ge=rK(de,me),be=re?EK(re,de):null,ve=A&&be?g({active:A,collisionRect:be,droppableRects:H,droppableContainers:$,pointerCoordinates:pe}):null,ye=function(e,t){if(!e||0===e.length)return null;var _e137=_slicedToArray(e,1),n=_e137[0];return n[t];}(ve,"id"),_n$useState23=n.useState(null),_n$useState24=_slicedToArray(_n$useState23,2),xe=_n$useState24[0],we=_n$useState24[1],Ce=function(e,t,n){return f(p({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1});}(ie?de:rK(de,he),null!=(a=null==xe?void 0:xe.rect)?a:null,K),Se=n.useRef(null),Oe=n.useCallback(function(e,t){var n=t.sensor,r=t.options;if(null==V.current)return;var i=P.get(V.current);if(!i)return;var a=e.nativeEvent,s=new n({active:V.current,activeNode:i,event:a,options:r,context:ee,onAbort:function onAbort(e){if(!P.get(e))return;var t=_.current.onDragAbort,n={id:e};null==t||t(n),O({type:"onDragAbort",event:n});},onPending:function onPending(e,t,n,o){if(!P.get(e))return;var r=_.current.onDragPending,i={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(i),O({type:"onDragPending",event:i});},onStart:function onStart(e){var t=V.current;if(null==t)return;var n=P.get(t);if(!n)return;var r=_.current.onDragStart,i={activatorEvent:a,active:{id:t,data:n.data,rect:j}};o.unstable_batchedUpdates(function(){null==r||r(i),T(ZQ.Initializing),S({type:vK.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:i}),F(Se.current),W(a);});},onMove:function onMove(e){S({type:vK.DragMove,coordinates:e});},onEnd:l(vK.DragEnd),onCancel:l(vK.DragCancel)});function l(e){return function(){return b(this,null,/*#__PURE__*/_regenerator().m(function _callee1(){var _ee$current,t,n,r,i,s,_o64,_t169;return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:_ee$current=ee.current,t=_ee$current.active,n=_ee$current.collisions,r=_ee$current.over,i=_ee$current.scrollAdjustedTranslate;s=null;if(!(t&&i)){_context1.n=2;break;}_o64=_.current.cancelDrop;if(!(s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===vK.DragEnd&&"function"==typeof _o64)){_context1.n=2;break;}_context1.n=1;return Promise.resolve(_o64(s));case 1:_t169=_context1.v;if(!_t169){_context1.n=2;break;}e=vK.DragCancel;case 2:V.current=null,o.unstable_batchedUpdates(function(){S({type:e}),T(ZQ.Uninitialized),we(null),F(null),W(null),Se.current=null;var t=e===vK.DragEnd?"onDragEnd":"onDragCancel";if(s){var _e138=_.current[t];null==_e138||_e138(s),O({type:t,event:s});}});case 3:return _context1.a(2);}},_callee1);}));};}Se.current=s;},[P]),ke=function(e,t){return n.useMemo(function(){return e.reduce(function(e,n){var o=n.sensor;return[].concat(_toConsumableArray(e),_toConsumableArray(o.activators.map(function(e){return{eventName:e.eventName,handler:t(e.handler,n)};})));},[]);},[e,t]);}(m,n.useCallback(function(e,t){return function(n,o){var r=n.nativeEvent,i=P.get(o);if(null!==V.current||!i||r.dndKit||r.defaultPrevented)return;var a={active:i};!0===e(n,t.options,a)&&(r.dndKit={capturedBy:t.sensor},V.current=o,Oe(n,t));};},[P,Oe]));!function(e){n.useEffect(function(){if(!_J)return;var t=e.map(function(e){var t=e.sensor;return null==t.setup?void 0:t.setup();});return function(){var _iterator16=_createForOfIteratorHelper(t),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _e139=_step16.value;null==_e139||_e139();}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}};},e.map(function(e){var t=e.sensor;return t;}));}(m),UJ(function(){K&&I===ZQ.Initializing&&T(ZQ.Initialized);},[K,I]),n.useEffect(function(){var e=_.current.onDragMove,_ee$current2=ee.current,t=_ee$current2.active,n=_ee$current2.activatorEvent,r=_ee$current2.collisions,i=_ee$current2.over;if(!t||!n)return;var a={active:t,activatorEvent:n,collisions:r,delta:{x:ge.x,y:ge.y},over:i};o.unstable_batchedUpdates(function(){null==e||e(a),O({type:"onDragMove",event:a});});},[ge.x,ge.y]),n.useEffect(function(){var _ee$current3=ee.current,e=_ee$current3.active,t=_ee$current3.activatorEvent,n=_ee$current3.collisions,r=_ee$current3.droppableContainers,i=_ee$current3.scrollAdjustedTranslate;if(!e||null==V.current||!t||!i)return;var a=_.current.onDragOver,s=r.get(ye),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};o.unstable_batchedUpdates(function(){we(l),null==a||a(c),O({type:"onDragOver",event:c});});},[ye]),UJ(function(){ee.current={activatorEvent:B,active:A,activeNode:Z,collisionRect:be,collisions:ve,droppableRects:H,draggableNodes:P,draggingNode:oe,draggingNodeRect:re,droppableContainers:R,over:xe,scrollableAncestors:ce,scrollAdjustedTranslate:ge},j.current={initial:re,translated:be};},[A,Z,ve,be,P,oe,re,H,R,xe,ce,ge]),wQ(f(p({},q),{delta:E,draggingRect:be,pointerCoordinates:pe,scrollableAncestors:ce,scrollableAncestorRects:ue}));var Ie=n.useMemo(function(){return{active:A,activeNode:Z,activeNodeRect:K,activatorEvent:B,collisions:ve,containerNodeRect:Q,dragOverlay:ne,draggableNodes:P,droppableContainers:R,droppableRects:H,over:xe,measureDroppableContainers:Y,scrollableAncestors:ce,scrollableAncestorRects:ue,measuringConfiguration:G,measuringScheduled:X,windowRect:le};},[A,Z,K,B,ve,Q,ne,P,R,H,xe,Y,ce,ue,G,X,le]),Te=n.useMemo(function(){return{activatorEvent:B,activators:ke,active:A,activeNodeRect:K,ariaDescribedById:{draggable:z},dispatch:S,draggableNodes:P,over:xe,measureDroppableContainers:Y};},[B,ke,A,K,S,z,P,xe,Y]);return n.createElement(mK.Provider,{value:k},n.createElement(zQ.Provider,{value:Te},n.createElement($Q.Provider,{value:Ie},n.createElement(XQ.Provider,{value:Ce},d)),n.createElement(YQ,{disabled:!1===(null==c?void 0:c.restoreFocus)})),n.createElement(bK,f(p({},c),{hiddenTextDescribedById:z})));}),JQ=n.createContext(null),KQ="button";function QQ(e){var t=e.id,o=e.data,_e$disabled=e.disabled,r=_e$disabled===void 0?!1:_e$disabled,i=e.attributes;var a=nK("Draggable"),_n$useContext2=n.useContext(zQ),s=_n$useContext2.activators,l=_n$useContext2.activatorEvent,c=_n$useContext2.active,u=_n$useContext2.activeNodeRect,d=_n$useContext2.ariaDescribedById,p=_n$useContext2.draggableNodes,f=_n$useContext2.over,_ref466=null!=i?i:{},_ref466$role=_ref466.role,m=_ref466$role===void 0?KQ:_ref466$role,_ref466$roleDescripti=_ref466.roleDescription,h=_ref466$roleDescripti===void 0?"draggable":_ref466$roleDescripti,_ref466$tabIndex=_ref466.tabIndex,g=_ref466$tabIndex===void 0?0:_ref466$tabIndex,b=(null==c?void 0:c.id)===t,v=n.useContext(b?XQ:JQ),_QJ3=QJ(),_QJ4=_slicedToArray(_QJ3,2),y=_QJ4[0],x=_QJ4[1],_QJ5=QJ(),_QJ6=_slicedToArray(_QJ5,2),w=_QJ6[0],C=_QJ6[1],S=function(e,t){return n.useMemo(function(){return e.reduce(function(e,n){var o=n.eventName,r=n.handler;return e[o]=function(e){r(e,t);},e;},{});},[e,t]);}(s,t),O=JJ(o);UJ(function(){return p.set(t,{id:t,key:a,node:y,activatorNode:w,data:O}),function(){var e=p.get(t);e&&e.key===a&&p.delete(t);};},[p,t]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:n.useMemo(function(){return{role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!b||m!==KQ)||void 0,"aria-roledescription":h,"aria-describedby":d.draggable};},[r,m,g,b,h,d.draggable]),isDragging:b,listeners:r?void 0:S,node:y,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:v};}var e0={timeout:25};function t0(e,t,n){var o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o;}function n0(e,t){return e.reduce(function(e,n,o){var r=t.get(n);return r&&(e[o]=r),e;},Array(e.length));}function o0(e){return null!==e&&e>=0;}var r0=function r0(e){var t=e.rects,n=e.activeIndex,o=e.overIndex,r=e.index;var i=t0(t,o,n),a=t[r],s=i[r];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null;},i0={scaleX:1,scaleY:1},a0=function a0(e){var t;var n=e.activeIndex,o=e.activeNodeRect,r=e.index,i=e.rects,a=e.overIndex;var s=null!=(t=i[n])?t:o;if(!s)return null;if(r===n){var _e140=i[a];return _e140?p({x:0,y:n<a?_e140.top+_e140.height-(s.top+s.height):_e140.top-s.top},i0):null;}var l=function(e,t,n){var o=e[t],r=e[t-1],i=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):i?i.top-(o.top+o.height):0;return i?i.top-(o.top+o.height):r?o.top-(r.top+r.height):0;}(i,r,n);return p(r>n&&r<=a?{x:0,y:-s.height-l}:r<n&&r>=a?{x:0,y:s.height+l}:{x:0,y:0},i0);};var s0="Sortable",l0=n.createContext({activeIndex:-1,containerId:s0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:r0,disabled:{draggable:!1,droppable:!1}});function c0(e){var t=e.children,o=e.id,r=e.items,_e$strategy=e.strategy,i=_e$strategy===void 0?r0:_e$strategy,_e$disabled2=e.disabled,a=_e$disabled2===void 0?!1:_e$disabled2;var _n$useContext3=n.useContext($Q),s=_n$useContext3.active,l=_n$useContext3.dragOverlay,c=_n$useContext3.droppableRects,u=_n$useContext3.over,d=_n$useContext3.measureDroppableContainers,p=nK(s0,o),f=Boolean(null!==l.rect),m=n.useMemo(function(){return r.map(function(e){return"object"==_typeof(e)&&"id"in e?e.id:e;});},[r]),h=null!=s,g=s?m.indexOf(s.id):-1,b=u?m.indexOf(u.id):-1,v=n.useRef(m),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var _n96=0;_n96<e.length;_n96++)if(e[_n96]!==t[_n96])return!1;return!0;}(m,v.current),x=-1!==b&&-1===g||y,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e;}(a);UJ(function(){y&&h&&d(m);},[y,m,h,d]),n.useEffect(function(){v.current=m;},[m]);var C=n.useMemo(function(){return{activeIndex:g,containerId:p,disabled:w,disableTransforms:x,items:m,overIndex:b,useDragOverlay:f,sortedRects:n0(m,c),strategy:i};},[g,p,w.draggable,w.droppable,x,m,b,c,f,i]);return n.createElement(l0.Provider,{value:C},t);}var u0=function u0(e){var t=e.id,n=e.items,o=e.activeIndex,r=e.overIndex;return t0(n,o,r).indexOf(t);},d0=function d0(e){var t=e.containerId,n=e.isSorting,o=e.wasDragging,r=e.index,i=e.items,a=e.newIndex,s=e.previousItems,l=e.previousContainerId,c=e.transition;return!(!c||!o)&&(s===i||r!==a)&&(!!n||a!==r&&t===l);},p0={duration:200,easing:"ease"},f0="transform",m0=lK.Transition.toString({property:f0,duration:0,easing:"linear"}),h0={roleDescription:"sortable"};function g0(e){var _e$animateLayoutChang=e.animateLayoutChanges,t=_e$animateLayoutChang===void 0?d0:_e$animateLayoutChang,o=e.attributes,r=e.disabled,i=e.data,_e$getNewIndex=e.getNewIndex,a=_e$getNewIndex===void 0?u0:_e$getNewIndex,s=e.id,l=e.strategy,c=e.resizeObserverConfig,_e$transition=e.transition,u=_e$transition===void 0?p0:_e$transition;var _n$useContext4=n.useContext(l0),d=_n$useContext4.items,m=_n$useContext4.containerId,h=_n$useContext4.activeIndex,g=_n$useContext4.disabled,b=_n$useContext4.disableTransforms,v=_n$useContext4.sortedRects,y=_n$useContext4.overIndex,x=_n$useContext4.useDragOverlay,w=_n$useContext4.strategy,C=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable};}(r,g),S=d.indexOf(s),O=n.useMemo(function(){return p({sortable:{containerId:m,index:S,items:d}},i);},[m,i,S,d]),k=n.useMemo(function(){return d.slice(d.indexOf(s));},[d,s]),_ref467=function(e){var t=e.data,_e$disabled3=e.disabled,o=_e$disabled3===void 0?!1:_e$disabled3,r=e.id,i=e.resizeObserverConfig;var a=nK("Droppable"),_n$useContext5=n.useContext(zQ),s=_n$useContext5.active,l=_n$useContext5.dispatch,c=_n$useContext5.over,u=_n$useContext5.measureDroppableContainers,d=n.useRef({disabled:o}),f=n.useRef(!1),m=n.useRef(null),h=n.useRef(null),_p6=p(p({},e0),i),g=_p6.disabled,b=_p6.updateMeasurementsFor,v=_p6.timeout,y=JJ(null!=b?b:r),x=MQ({callback:n.useCallback(function(){f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(function(){u(Array.isArray(y.current)?y.current:[y.current]),h.current=null;},v)):f.current=!0;},[v]),disabled:g||!s}),w=n.useCallback(function(e,t){x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e));},[x]),_QJ7=QJ(w),_QJ8=_slicedToArray(_QJ7,2),C=_QJ8[0],S=_QJ8[1],O=JJ(t);return n.useEffect(function(){x&&C.current&&(x.disconnect(),f.current=!1,x.observe(C.current));},[C,x]),n.useEffect(function(){return l({type:vK.RegisterDroppable,element:{id:r,key:a,disabled:o,node:C,rect:m,data:O}}),function(){return l({type:vK.UnregisterDroppable,key:a,id:r});};},[r]),n.useEffect(function(){o!==d.current.disabled&&(l({type:vK.SetDroppableDisabled,id:r,key:a,disabled:o}),d.current.disabled=o);},[r,a,o,l]),{active:s,rect:m,isOver:(null==c?void 0:c.id)===r,node:C,over:c,setNodeRef:S};}({id:s,data:O,disabled:C.droppable,resizeObserverConfig:p({updateMeasurementsFor:k},c)}),I=_ref467.rect,T=_ref467.node,M=_ref467.isOver,D=_ref467.setNodeRef,_QQ=QQ({id:s,data:O,attributes:p(p({},h0),o),disabled:C.draggable}),P=_QQ.active,E=_QQ.activatorEvent,R=_QQ.activeNodeRect,N=_QQ.attributes,j=_QQ.setNodeRef,A=_QQ.listeners,V=_QQ.isDragging,L=_QQ.over,F=_QQ.setActivatorNodeRef,B=_QQ.transform,W=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(function(){return function(e){t.forEach(function(t){return t(e);});};},t);}(D,j),_=Boolean(P),z=_&&!b&&o0(h)&&o0(y),$=!x&&V,G=$&&z?B:null,H=z?null!=G?G:(null!=l?l:w)({rects:v,activeNodeRect:R,activeIndex:h,overIndex:y,index:S}):null,Y=o0(h)&&o0(y)?a({id:s,items:d,activeIndex:h,overIndex:y}):S,X=null==P?void 0:P.id,Z=n.useRef({activeId:X,items:d,newIndex:Y,containerId:m}),U=d!==Z.current.items,q=t({active:P,containerId:m,isDragging:V,isSorting:_,id:s,index:S,items:d,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:u,wasDragging:null!=Z.current.activeId}),J=function(e){var t=e.disabled,o=e.index,r=e.node,i=e.rect;var _n$useState29=n.useState(null),_n$useState30=_slicedToArray(_n$useState29,2),a=_n$useState30[0],s=_n$useState30[1],l=n.useRef(o);return UJ(function(){if(!t&&o!==l.current&&r.current){var _e141=i.current;if(_e141){var _t170=NK(r.current,{ignoreTransform:!0}),_n97={x:_e141.left-_t170.left,y:_e141.top-_t170.top,scaleX:_e141.width/_t170.width,scaleY:_e141.height/_t170.height};(_n97.x||_n97.y)&&s(_n97);}}o!==l.current&&(l.current=o);},[t,o,r,i]),n.useEffect(function(){a&&s(null);},[a]),a;}({disabled:!q,index:S,node:T,rect:I});return n.useEffect(function(){_&&Z.current.newIndex!==Y&&(Z.current.newIndex=Y),m!==Z.current.containerId&&(Z.current.containerId=m),d!==Z.current.items&&(Z.current.items=d);},[_,Y,m,d]),n.useEffect(function(){if(X===Z.current.activeId)return;if(null!=X&&null==Z.current.activeId)return void(Z.current.activeId=X);var e=setTimeout(function(){Z.current.activeId=X;},50);return function(){return clearTimeout(e);};},[X]),{active:P,activeIndex:h,attributes:N,data:O,rect:I,index:S,newIndex:Y,items:d,isOver:M,isSorting:_,isDragging:V,listeners:A,node:T,overIndex:y,over:L,setNodeRef:W,setActivatorNodeRef:F,setDroppableNodeRef:D,setDraggableNodeRef:j,transform:null!=J?J:H,transition:function(){if(J||U&&Z.current.newIndex===S)return m0;if($&&!aK(E)||!u)return;if(_||q)return lK.Transition.toString(f(p({},u),{property:f0}));return;}()};}tQ.Down,tQ.Right,tQ.Up,tQ.Left;var b0="draggableList-module_draggable-list_NI1GQ",v0="draggableList-module_draggable-list--label_z7uQR",y0="draggableList-module_draggable-list--add-button_ouYIE",x0="draggableList-module_draggable-list--item_GfOt1",w0="draggableList-module_draggable-list--item--dragging_oUPMU",C0="draggableList-module_draggable-list--item--adding_hhlcL",S0="draggableList-module_draggable-list--item--removing_WsP1H",O0=cs(t.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var k0=n.memo(function(e){var o=e.item,r=e.isAdding,i=e.onRemove,a=e.canRemove,s=e.component,l=e.isRemoving,c=e.onSelectValue,u=e.componentProps,d=Boolean(null==u?void 0:u.disabled),p=!a||a(),f=g0({id:o.id,disabled:d}),m=f.attributes,h=f.listeners,g=f.setActivatorNodeRef,b=f.setNodeRef,v=f.transform,y=f.transition,x=f.isDragging,w=n.useCallback(function(){p&&i(o.id);},[p,o.id,i]),S=s;return t.jsxs(MC,{ref:b,className:E(x0,C(C(C({},w0,x),C0,r),S0,l)),elevation:0,style:{transform:lK.Transform.toString(v),transition:y},children:[t.jsx("span",O(O(O({ref:g},m),h),{},{children:t.jsx(mm,{size:"16",role:"button",children:t.jsx(O0,{})})})),S?t.jsx(S,O(O(O({},u),o),{},{item:o,disabled:d,onItemChange:function onItemChange(e){return c(o.id,e);}})):null,t.jsx(mm,{size:"8",role:"button",onClick:w,disabled:d||!p,color:am("primary","500"),children:t.jsx(Om,{})})]});});k0.displayName="DraggableRow";e.ActionBar=yG,e.Alert=function(e){var n=e.message,o=e.variant,r=void 0===o?"success":o,i=e.className,a=e.icon,s=e.fullWidth,l=void 0!==s&&s,c=e.link,u=k(e,JG),d={success:t.jsx(mm,{size:"12",color:am("success","500"),children:t.jsx(UG,{})}),error:t.jsx(mm,{size:"12",color:am("error","700"),children:t.jsx(XG,{})}),warning:t.jsx(mm,{size:"12",color:am("secondary","500"),children:t.jsx(Q$,{})}),info:t.jsx(mm,{size:"12",color:am("primary","500"),children:t.jsx(ZG,{})})};return t.jsxs("div",O(O({className:E(qG.alert,qG[r],C({},qG["full-width"],l),i)},u),{},{children:[t.jsx("div",{className:qG.icon,children:a||d[r]}),t.jsxs("div",{className:qG.message,children:[jf(n)?t.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):t.jsxs("span",{children:[" ",n]}),c&&t.jsxs(t.Fragment,{children:[" ",t.jsx("a",{href:null==c?void 0:c.href,className:qG.link,onClick:null==c?void 0:c.onClick,children:c.text})]})]})]}));},e.AsyncContent=hG,e.Breadcrumb=function(e){var n=e.items,o=e.className,r=k(e,TH);return t.jsx("nav",O(O({className:E(kH,o),"aria-label":"Breadcrumb"},r),{},{children:wf(n,function(e,o){return t.jsx(MH,{item:e,index:o,items:n},o);})}));},e.Button=j,e.Card=function(e){var n=e.icon,o=e.title,r=e.description,i=e.isActive,a=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,c=e.onClick,u=e.sx;return t.jsxs("div",{className:E(fY,C(C({},bY,l),vY,a)),onClick:c,style:u,children:[t.jsxs("div",{className:mY,children:[!!n&&n,!!o&&t.jsx("div",{className:hY,children:o})]}),!!r&&t.jsx("span",{className:gY,dangerouslySetInnerHTML:{__html:r}})]},o);},e.Categories=dm,e.Checkbox=D$,e.CheckboxGroup=T$,e.CheckboxInput=D$,e.CheckboxInputGroup=T$,e.Chip=function(e){var n=e.isActive,o=e.title,r=e.text,i=e.content,a=e.onRemove,s=void 0===a?void 0:a,l=e.disabled,c=void 0!==l&&l,u=e.variant,d=void 0===u?"primary":u,p=e.size,f=void 0===p?"lg":p,m=s&&!c;return t.jsx(os,{in:!!r||!!o||!!i,unmountOnExit:!0,children:t.jsxs("span",{className:E(gm.chip,gm[d],gm[f],C(C({},gm.disabled,c),gm.active,n)),children:[i,t.jsxs("span",{children:[!!o&&t.jsxs("span",{className:gm.title,children:[o," ",r&&": "]}),!!r&&t.jsx("span",{className:gm.text,children:r})]}),m&&t.jsx(mm,{className:gm.action,size:"8",onClick:m?s:void 0,color:am("grey","700"),children:t.jsx(ds,{})})]})});},e.ClearComponent=Ay,e.ColorOptions=lm,e.ColorValues=cm,e.Colors=im,e.CopyButton=function(e){var o=e.onClick,r=e.copyText,i=void 0===r?Cy("copyButton.copy"):r,a=e.copiedText,s=void 0===a?Cy("copyButton.copied"):a,l=e.textToCopy,c=e.resetTime,u=void 0===c?2e3:c,d=k(e,CG),p=I(n.useState(!1),2),f=p[0],m=p[1],h=I(n.useState(!1),2),g=h[0],b=h[1];n.useEffect(function(){if(f){b(!0);var e=setTimeout(function(){b(!1);},u/2);return function(){return clearTimeout(e);};}},[f]);return t.jsx("div",{onClick:function onClick(){return o?o():void(l&&(m(!0),navigator.clipboard.writeText(l).then(function(){setTimeout(function(){return m(!1);},u);}).catch(function(){m(!1);})));},children:t.jsx(j,O({className:"copy-btn ".concat(f?"copied":""," ").concat(g?"animating":""),outline:!0,label:f?s:i,leftAdornment:t.jsx(SG,{copied:f})},d))});},e.CustomIcon=mm,e.DatePicker=function(e){var n=e.label,o=e.rightAdornment,r=k(e,RV);return t.jsx(S$,O({type:"date",label:n,rightAdornment:o},r));},e.DatePickerInput=NV,e.DateRangePicker=function(e){var n=e.label,o=e.rightAdornment,r=e.value,i=k(e,x$);return t.jsx(S$,O({type:"dateRange",label:n,rightAdornment:o,value:r},i));},e.DateRangePickerInput=w$,e.DraggableList=function(e){var o=e.label,r=e.addLabel,i=e.onChange,a=e.canRemove,s=e.itemComponent,l=e.value,c=void 0===l?[]:l,u=e.componentProps,d=e.input;if(!s)return null;var p,f,m=n.useMemo(function(){var e,t;return null!==(e=null!==(t=null==d?void 0:d.value)&&void 0!==t?t:c)&&void 0!==e?e:[];},[c,null==d?void 0:d.value]),h=I(n.useState(m),2),g=h[0],b=h[1],v=I(n.useState(new Set()),2),y=v[0],x=v[1],w=I(n.useState(new Set()),2),C=w[0],S=w[1],k=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.useMemo(function(){return[].concat(t).filter(function(e){return null!=e;});},[].concat(t));}((p=pQ,n.useMemo(function(){return{sensor:p,options:{}};},[p,f]))),M=n.useMemo(function(){return g.map(function(e){return e.id;});},[g]);n.useEffect(function(){b(m);},[m]);var D=Sy({input:d,onChange:function onChange(e){var t,n;if(i){var o=null!==(t=null!==(n=null==d?void 0:d.name)&&void 0!==n?n:null==u?void 0:u.name)&&void 0!==t?t:"draggableList";i({target:{name:o,value:e}});}},transformValue:function transformValue(e){return e;}}).handleChange,P=n.useCallback(function(e){b(function(t){var n="function"==typeof e?e(t):e;return D(n),n;});},[D]),R=n.useCallback(function(e){g.some(function(t){return t.id===e;})&&(S(function(t){return new Set(t).add(e);}),setTimeout(function(){P(function(t){return t.filter(function(t){return t.id!==e;});}),S(function(t){var n=new Set(t);return n.delete(e),n;});},300));},[P,g]),N=n.useCallback(function(e,t){P(function(n){return n.map(function(n){return n.id===e?O(O({},n),{},{value:t}):n;});});},[P]),j=n.useCallback(function(){var e,t=(e=g.length,{id:"".concat("draggable-item","-").concat(e,"-").concat(Date.now()),value:""});x(function(e){return new Set(e).add(t.id);}),P(function(e){return[].concat(T(e),[t]);}),setTimeout(function(){x(function(e){var n=new Set(e);return n.delete(t.id),n;});},300);},[P,g.length]),A=n.useCallback(function(e){var t=e.active,n=e.over;n&&t.id!==n.id&&P(function(e){var o=e.findIndex(function(e){return e.id===t.id;}),r=e.findIndex(function(e){return e.id===n.id;});return-1===o||-1===r?e:t0(e,o,r);});},[P]);return t.jsxs("div",{className:E(b0),children:[o&&t.jsx("div",{className:v0,children:o}),t.jsx(qQ,{sensors:k,collisionDetection:IK,onDragEnd:A,children:t.jsx(c0,{items:M,strategy:a0,children:g.map(function(e){return t.jsx(k0,{item:e,component:s,canRemove:a,onRemove:R,componentProps:u,onSelectValue:N,isAdding:y.has(e.id),isRemoving:C.has(e.id)},e.id);})})}),t.jsx("div",{className:E(y0),children:t.jsx(WJ,{href:"#",size:"sm",onClick:function onClick(e){e.preventDefault(),j();},children:r||Cy("addPlus")})})]});},e.Dropdown=function(e){var n=e.label,o=e.items,r=e.disabled,i=void 0!==r&&r,a=e.open,s=e.onToggle,l=e.onItemSelect,c=e.anchorOrigin,u=void 0===c?{vertical:"bottom",horizontal:"right"}:c,d=e.transformOrigin,p=void 0===d?{vertical:"top",horizontal:"right"}:d,f=e.className,m=e.size,h=void 0===m?"sm":m,g=I(y.useState(!1),2),b=g[0],v=g[1],x=I(y.useState(null),2),w=x[0],C=x[1],S=!rY(a),O=S?a:b,k=function k(){C(null),S?null==s||s(!1):v(!1);};return t.jsxs("div",{className:"".concat(LJ.dropdown," ").concat(f||""),children:[t.jsx(VJ,{id:"dropdown-button","aria-controls":O?"dropdown-menu":void 0,"aria-haspopup":"true","aria-expanded":O?"true":void 0,disabled:i,disableElevation:!0,onClick:function onClick(e){if(e.preventDefault(),!i){C(e.currentTarget);var t=!O;S?null==s||s(t):v(t);}},endIcon:t.jsx(jJ,{}),className:E(LJ.button,LJ[h]),children:n}),t.jsx(AJ,{id:"dropdown-menu",slotProps:{list:{"aria-labelledby":"dropdown-button"}},anchorEl:w,open:O,onClose:k,anchorOrigin:u,transformOrigin:p,disableScrollLock:!0,children:wf(o,function(e,n){var o;return t.jsxs(y.Fragment,{children:[e.divider&&n>0&&t.jsx(YP,{sx:{my:.5}}),t.jsx(VH,{label:e.label,icon:e.icon,disabled:e.disabled,onClick:function onClick(){return function(e){var t;e.disabled||(null===(t=e.onClick)||void 0===t||t.call(e),null==l||l(e),k());}(e);},onClose:k,size:null!==(o=e.size)&&void 0!==o?o:h})]},e.id);})})]});},e.EmptyState=oG,e.FileIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?xm:r,a=pm(i)?i:xm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M13 2V9H20",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});},e.FormField=S$,e.HeaderSection=function(e){var n=e.breadcrumb,o=e.image,r=e.dense,i=void 0!==r&&r,a=e.title,s=e.subtitle,l=e.link,c=e.menuAction;return t.jsxs("div",{className:E(OG,C({},kG,i)),children:[!!n&&n,t.jsxs("div",{className:IG,children:[!!o&&o,t.jsxs("div",{className:TG,children:[a&&t.jsx("h3",{className:MG,children:a}),!!s&&s,!!l&&l]}),!!c&&c]})]});},e.IconWithIdentifier=function(e){var n=e.text,o=e.icon,r=e.color,i=e.size,a=void 0===i?"md":i,s=e.showDivider,l=void 0===s||s;return t.jsxs("div",{className:E(RG["icon-with-identifier"],RG[a]),children:[!!o&&o,l&&t.jsx("div",{className:RG.divider}),!!n&&t.jsx("span",{className:RG.identifier,style:{color:r},children:n})]});},e.Image=function(e){var o=e.sx,r=e.src,i=e.alt,a=e.imageSx,s=e.errorIcon,l=e.showBorder,c=void 0===l||l,u=I(n.useState(!1),2),d=u[0],p=u[1];return t.jsx("div",{className:E(hH,C({},gH,c)),style:O({},o),children:d?s||t.jsx(mH,{className:vH}):t.jsx("img",{src:r,alt:i||r,className:bH,style:O({},a),onError:function onError(){p(!0);}})});},e.Link=WJ,e.LinkWithIcon=function(e){var n=e.text,o=e.icon,r=e.onClick,i=e.className,a=e.size,s=void 0===a?"md":a,l=e.otherProps,c=void 0===l?{}:l;return t.jsxs("div",{className:E(DG,i),onClick:r,children:[o&&t.jsx(mm,O(O({color:am("primary","500")},c),{},{size:EG(s),children:o})),t.jsx(j,O({variant:"link",label:n,size:s},c))]});},e.MailIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?ym:r,a=pm(i)?i:ym;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M22 6L12 13L2 6",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});},e.MenuAction=function(e){var o=e.items,r=e.id,i=void 0===r?"menu-action-button":r,a=e.maxItemsVisible,s=void 0===a?6:a,l=e.icon,c=e.size,u=void 0===c?"md":c,d=e.disableRipple,p=void 0!==d&&d,f=k(e,LH),m=I(n.useState(null),2),h=m[0],g=m[1],b=Boolean(h),v=function v(){g(null);};return t.jsxs("div",{children:[t.jsx(SC,{id:i,"aria-controls":b?"".concat(i,"-menu"):void 0,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",onClick:function onClick(e){g(e.currentTarget);},disableRipple:p,children:null!=l?l:t.jsx(mm,{color:am("grey","900"),children:t.jsx(DH,{})})}),t.jsx(cT,O(O({id:"".concat(i,"-menu"),anchorEl:h,open:b,onClose:v,disableScrollLock:!0,slotProps:{list:{"aria-labelledby":i},transition:os},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:PH(u,s)},f),{},{children:wf(o,function(e,n){var o;return t.jsx(VH,O(O({},e),{},{size:null!==(o=e.size)&&void 0!==o?o:u,onClose:v}),n);})}))]});},e.MenuItemComponent=VH,e.Option=Py,e.OverflowChecker=KG,e.PriceCloseIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?Cm:r,a=pm(i)?i:Cm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:a}),t.jsx("mask",{id:"path-2-inside-1_1_970",fill:"white",children:t.jsx("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),t.jsx("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:a,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),t.jsx("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:a})]});},e.PriceDownIcon=function(e){var n=e.size,o=void 0===n?24:n,r=e.color,i=void 0===r?wm:r,a=pm(i)?i:wm;return t.jsxs("svg",{width:o,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:a}),t.jsx("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:t.jsx("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),t.jsx("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:a,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),t.jsx("path",{d:"M19.3793 14.424V23.1464",stroke:a,strokeWidth:"2"}),t.jsx("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:a})]});},e.Progressbar=function(e){var o=e.size,r=void 0===o?"lg":o,i=e.progress,a=void 0===i?0:i,s=e.variant,l=void 0===s?"determinate":s,c=I(n.useState(a),2),u=c[0],d=c[1];return n.useEffect(function(){if("buffer"===l){var e=setInterval(function(){d(function(e){var t=Math.min(100,e+.5*Math.sqrt(100-e));return Math.round(t);});},100);return function(){clearInterval(e);};}d(a);},[l,a]),t.jsx(HG,{variant:"buffer"==l?"determinate":l,value:u,className:E(YG.progressbar,YG[r]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u});},e.SearchComponent=Ny,e.SearchPublication=vm,e.Searcher=function(e){var o,r=e.name,i=e.label,a=e.placeholder,s=void 0===a?Cy("selectPlaceholder"):a,l=e.noOptionsMessage,c=void 0===l?Cy("noFoundOptions"):l,u=e.options,d=e.size,p=void 0===d?"md":d,f=e.isSearchable,m=void 0===f||f,h=e.isClearable,g=void 0===h||h,b=e.clearOnSelect,v=void 0!==b&&b;e.required;var y=e.disabled,x=e.rightModifier,w=e.isOptionDisabled,C=e.onChange,S=e.onInputChange,T=e.input,M=e.isLoading,D=void 0!==M&&M,P=e.formatOption,R=e.loadOptions,N=e.cacheOptions,j=void 0===N||N,A=e.defaultOptions,V=void 0===A||A,L=e.value,F=e.tooltipProps,B=k(e,H$),W=null!==(o=null==T?void 0:T.value)&&void 0!==o?o:L,_=I(n.useState(Y$(W)),2),z=_[0],$=_[1],G=I(n.useState(!1),2),H=G[0],Y=G[1],X=I(n.useState(0),2),Z=X[0],U=X[1];n.useEffect(function(){$(Y$(W));},[W]),n.useEffect(function(){H&&u&&!B$(u)&&U(function(e){return e+1;});},[u,H]);var q=n.useCallback(function(e){null==S||S({target:{name:r,value:e}}),Y(!0);},[r,S]),J=n.useCallback(function(e){var t={target:{name:r,value:null==e?void 0:e.value}};$(e),T?T.onChange(null==e?void 0:e.value):null==C||C(t),v&&e&&$(null),Y(!1);},[r,T,C,v]),K=n.useCallback(function(){T&&T.onBlur(),Y(!1);},[T]),Q=n.useCallback(function(){($(null),T)?T.onChange(null):null==C||C({target:{name:r,value:null}});},[T,r,C]),ee=n.useCallback(function(e){return t.jsx(Py,O(O({},e),{},{formatOption:P,tooltipProps:F}));},[P,F]),te=n.useCallback(function(e){return t.jsx(Ry,O({},e));},[]),ne=n.useCallback(function(){var e=O(O({},B),{},{key:Z,name:r,placeholder:s,classNamePrefix:"producteca-select-field",isDisabled:y,isClearable:g,isOptionDisabled:w,isSearchable:m,isLoading:D,loadingMessage:function loadingMessage(){return D?t.jsx($$,{size:"sm"}):c;},noOptionsMessage:function noOptionsMessage(){return D?t.jsx($$,{size:"sm"}):c;},onInputChange:q,onChange:J,onBlur:K,value:z,components:{Option:ee,SingleValue:te},menuPortalTarget:document.body,menuIsOpen:H,onMenuOpen:function onMenuOpen(){return Y(!0);},onMenuClose:function onMenuClose(){return Y(!1);}});return R?t.jsx(_$,O(O({},e),{},{loadOptions:R,cacheOptions:j,defaultOptions:V})):t.jsx(Cv,O(O({},e),{},{options:u}));},[B,Z,r,s,y,g,w,m,D,c,q,J,K,z,ee,te,H,R,j,V,u]);return t.jsxs("div",{className:Dy["producteca-select-field-container"],children:[i&&t.jsx("label",{htmlFor:r,children:i}),t.jsxs("div",{className:E(Dy[p],Dy["producteca-select-field-body"],Dy[m?"producteca-select-field--is-searchable":""],Dy[g?"producteca-select-field--is-clearable":""],Dy[x?"producteca-select-field--with-modifier":""]),children:[t.jsxs("div",{className:Dy["searcher-body"],children:[m&&t.jsx(Ny,{}),ne(),t.jsx(Ay,{optionSelected:z,isClearable:g,handleChange:Q})]}),!!x&&x]})]});},e.SelectField=function(e){var o,r=e.name,i=e.label,a=e.placeholder,s=void 0===a?Cy("selectPlaceholder"):a,l=e.noOptionsMessage,c=void 0===l?Cy("noFoundOptions"):l,u=e.options,d=e.size,p=void 0===d?"md":d,f=e.hideSelectedOptions,m=void 0===f||f,h=e.isMultiple,g=void 0!==h&&h,b=e.isSearchable,v=void 0===b||b,y=e.isClearable,x=void 0===y||y,w=e.required,S=e.disabled,k=e.rightModifier,T=e.isOptionDisabled,M=e.onChange,D=e.defaultValue,P=e.input,R=e.onBlur,N=e.meta,j=e.isValid,A=e.noErrors,V=void 0!==A&&A,L=e.formatOption,F=e.getOptionLabel,B=e.getOptionValue,W=e.tooltipProps,_=null!==(o=null==P?void 0:P.value)&&void 0!==o?o:e.value,z=Pm(u,function(e){return rm(_,Vy(e,B));}),$=I(n.useState(z||null),2),G=$[0],H=$[1],Y=I(n.useState(!1),2),X=Y[0],Z=Y[1],U={meta:N,value:_,isValid:j,required:w},q=Iy(U),J=Sy({input:P,onChange:function onChange(e){var t=g?wf(e,function(e){return Vy(e,B);}):Vy(e,B);P||null==M||M({target:{name:r,value:t}});return t;},onBlur:R,transformValue:function transformValue(e){return g?wf(e,function(e){return Vy(e,B);}):Vy(e,B);}}),K=J.handleChange,Q=J.handleBlur,ee=function ee(e){K(e),H(e);};n.useEffect(function(){if(D&&u.length>0){var e=_s(D)?D:[D],t=Pm(u,function(t){return rm(e,Vy(t,B));});H(g?t:t[0]||null);}},[D,u]);var te=function te(e){return t.jsx(Py,O(O({},e),{},{formatOption:L,tooltipProps:W}));},ne=g?{Option:te,MultiValue:function MultiValue(e){return t.jsx(Ey,O(O({},e),{},{formatOption:L}));}}:{Option:te,SingleValue:function SingleValue(e){return t.jsx(Ry,O(O({},e),{},{getOptionLabel:F}));}};return t.jsxs("div",{className:E(Dy["producteca-select-field-container"],C({},Ty[q],q)),"data-testid":"producteca-select-field-container",children:[i&&t.jsx("label",{htmlFor:r,children:i}),t.jsxs("div",{className:E(C({},Ty["validation-wrapper"],q)),children:[t.jsxs("div",{className:E(Dy[p],Dy["producteca-select-field-body"],C(C(C(C({},Dy["producteca-select-field--on-error"],q),Dy["producteca-select-field--with-modifier"],k),Dy["producteca-select-field--is-searchable"],v),Dy["producteca-select-field--is-clearable"],x)),children:[t.jsxs("div",{className:Dy.body,children:[g&&t.jsx(jy,{optionSelected:G,isFocused:X,isSearchable:v}),v&&t.jsx(Ny,{}),t.jsx(Cv,O(O({},e),{},{name:r,classNamePrefix:"producteca-select-field",placeholder:s,isDisabled:S,isMulti:g,closeMenuOnSelect:!g,hideSelectedOptions:m&&!g,isClearable:x,isOptionDisabled:T,isSearchable:v,noOptionsMessage:function noOptionsMessage(){return c;},getOptionValue:B,getOptionLabel:function getOptionLabel(e){return null==e?void 0:e.label;},onChange:ee,onFocus:function onFocus(){return Z(!0);},onBlur:function onBlur(){Z(!1),Q();},value:G,options:u,components:ne,menuPortalTarget:document.body})),t.jsx(Ay,{optionSelected:G,isClearable:x,handleChange:ee})]}),!!k&&k]}),!V&&q&&t.jsx(My,{validationProps:U})]})]});},e.Shades=um,e.Sidebar=function(e){var o=e.title,r=e.items,i=I(n.useState(!1),2),a=i[0],s=i[1];return t.jsx("div",{className:OJ,children:t.jsxs(BU,{collapsed:!1,className:E(kJ,C({},IJ,a)),children:[t.jsxs("div",{className:E(TJ,C({},MJ,a)),children:[!!o&&t.jsx("span",{className:DJ,children:o}),t.jsx("button",{onClick:function onClick(){return s(function(e){return!e;});},className:PJ,children:a?t.jsx(SJ,{}):t.jsx(CJ,{})})]}),t.jsx(GU,{children:wf(r,function(e,n){return t.jsx(wJ,{icon:e.icon,onClick:e.onClick,className:E(EJ,C(C({},RJ,a),NJ,e.isActive)),children:!a&&e.label},n);})})]})});},e.SingleValue=Ry,e.Spinner=$$,e.Switch=K$,e.SwitchGroup=J$,e.SwitchInput=K$,e.SwitchInputGroup=J$,e.Tabs=function(e){var o=e.sx,r=e.items,i=e.value,a=e.onChange,s=e.defaultValue,l=I(n.useState(s),2),c=l[0],u=l[1],d=rY(i)?c:i,p=n.useMemo(function(){var e;return null===(e=oY(r,function(e){return!e.disabled;}))||void 0===e?void 0:e.id;},[r]),f=n.useMemo(function(){return dY(o);},[o]);n.useEffect(function(){void 0===d&&u(p);},[d,p]);return t.jsx("div",{className:E(iY),children:t.jsx(wE,{sx:f,value:d,"aria-label":"tabs",onChange:function onChange(e,t){var n=String(t),o=oY(r,function(e){return e.id===n;});null!=o&&o.disabled||(void 0===i&&u(n),null==a||a(o));},className:aY,children:wf(r,function(e){var n=e.id,o=e.href,r=e.label,i=e.disabled;return t.jsx(QP,{value:n,sx:pY,disableRipple:!0,component:"a",disabled:i,label:t.jsx("span",{className:lY,children:r}),onClick:function onClick(t){return function(e,t){if(!e.disabled&&e.href){var n,o=t.ctrlKey||t.metaKey,r=1===t.button,i="_blank"===e.target;o||r||i||(t.preventDefault(),null!=e&&e.onClick?null==e||null===(n=e.onClick)||void 0===n||n.call(e):setTimeout(function(){window.location.href=e.href;},300));}}(e,t);},className:E(sY,C(C({},cY,n===d),uY,i)),href:o,target:e.target},n);})})});},e.TextInput=By,e.TrashIcon=Om,e.WarningModal=function(e){var n=e.icon,o=e.onSave,r=e.onCancel,i=e.description,a=e.onClickGuide,s=e.onChangeDontShowAgain,l=e.cancelLabel,c=void 0===l?Cy("cancel"):l,u=e.confirmLabel,d=void 0===u?Cy("continue"):u,p=e.title,f=void 0===p?Cy("warningModal.warning"):p,m=e.dontShowAgainLabel,h=void 0===m?Cy("warningModal.dontShowAgain"):m,g=k(e,YH);return t.jsx(ZI,{open:!0,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:BH,children:t.jsxs("div",{className:WH,role:"dialog","aria-modal":"true",children:[t.jsxs("div",{className:_H,children:[t.jsx(ZH,{onClickGuide:a}),t.jsxs("div",{className:$H,children:[n||XH,t.jsx("div",{id:"modal-modal-title",className:GH,children:f})]}),t.jsxs("div",{className:HH,children:[t.jsxs("span",{id:"modal-modal-description",children:[" ",i," "]}),s&&t.jsx(D$,O({name:"dont-show-again",label:h,onChange:s},g))]})]}),t.jsx(yG,{variant:"modal",cancelProps:{onCancel:r,label:c},saveProps:{onSave:o,label:d,variant:"primary",size:"md"}})]})});},e.WithOverflowTooltip=function(e){var o=e.content,r=e.children,i=k(e,pH);return t.jsx(KG,{children:function children(e,a){var s=n.cloneElement(r,{ref:e});return a&&o?t.jsx(fH,O(O({content:o},i),{},{children:s})):s;}});},e.WithTooltip=fH,e.allColors=sm,e.datePickerDayStyles=CV,e.datePickerDigitalClockStyles=SV,e.datePickerInputStyles=wV,e.datePickerLayoutStyles=xV,e.datePickerPopperStyles=kV,e.datePickerYearStyles=OV,e.formatDate=m$,e.getColor=am,e.isValidColor=pm,e.useReduxFormField=Sy,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@producteca/producteca-ui-kit",
3
- "version": "1.48.3",
3
+ "version": "1.49.0",
4
4
  "type": "module",
5
5
  "main": "./dist/producteca-ui-kit.umd.js",
6
6
  "types": "./dist/index.d.ts",