react-cascading-menu
Version:
A powerful React cascading dropdown component with multi-selection, search functionality, and hierarchical navigation. Perfect for building category selectors, dependent dropdowns, and nested menu systems with TypeScript support.
1 lines • 74.5 kB
JavaScript
(()=>{var e={851:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r=t(601),o=t.n(r),i=t(314),a=t.n(i)()(o());a.push([e.id,"/* .dropdown-menu .dropdown-group > .dropdown-heading {\n padding: .5rem 1.5rem;\n color: rgba(51, 51, 51, 1);\n font-weight: bold;\n text-transform: capitalize;\n position: sticky;\n top: 0px;\n background-color: white;\n width: 10rem;\n display: flex;\n} */\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n.disabled {\n color: #9e9e9e;\n cursor: not-allowed;\n}\n\n\n.show {\n animation: fadeInShow .3s;\n display: block;\n}\n\n\n@keyframes fadeInShow {\n 0% {\n opacity: 0;\n transform: scale(0)\n }\n\n 100% {\n opacity: 1;\n transform: scale(1)\n }\n}\n\n.dropdown-option:last-child {\n border-bottom-right-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n\n/* .dropdown-option:hover {\n background-color: #f2f9fc;\n color: #333;\n} */\n\n.dropdown-option.is-selected {\n background-color: #f2f9fc;\n color: #333;\n}\n",""]);const c=a},314:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),n.push(u))}},n}},601:e=>{"use strict";e.exports=function(e){return e[1]}},833:e=>{e.exports=function(e,n,t,r){var o=t?t.call(r,e,n):void 0;if(void 0!==o)return!!o;if(e===n)return!0;if("object"!=typeof e||!e||"object"!=typeof n||!n)return!1;var i=Object.keys(e),a=Object.keys(n);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),s=0;s<i.length;s++){var l=i[s];if(!c(l))return!1;var u=e[l],d=n[l];if(!1===(o=t?t.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},72:e=>{"use strict";var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var i={},a=[],c=0;c<e.length;c++){var s=e[c],l=r.base?s[0]+r.base:s[0],u=i[l]||0,d="".concat(l," ").concat(u);i[l]=u+1;var p=t(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var h=o(f,r);r.byIndex=c,n.splice(c,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=t(i[a]);n[c].references--}for(var s=r(e,o),l=0;l<i.length;l++){var u=t(i[l]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}i=s}}},659:e=>{"use strict";var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},540:e=>{"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},56:(e,n,t)=>{"use strict";e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},113:e=>{"use strict";e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return e[r](i,i.exports,t),i.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nc=void 0;var r={};(()=>{"use strict";t.r(r),t.d(r,{default:()=>Rr});const e=require("react");var n=t.n(e),o=function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)};function i(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var a=t(833),c=t.n(a),s="-ms-",l="-moz-",u="-webkit-",d="comm",p="rule",f="decl",h="@import",v="@keyframes",m="@layer",g=Math.abs,y=String.fromCharCode,b=Object.assign;function x(e){return e.trim()}function w(e,n){return(e=n.exec(e))?e[0]:e}function C(e,n,t){return e.replace(n,t)}function S(e,n,t){return e.indexOf(n,t)}function I(e,n){return 0|e.charCodeAt(n)}function k(e,n,t){return e.slice(n,t)}function E(e){return e.length}function L(e){return e.length}function M(e,n){return n.push(e),e}function P(e,n){return e.filter((function(e){return!w(e,n)}))}var O=1,j=1,A=0,N=0,R=0,T="";function Z(e,n,t,r,o,i,a,c){return{value:e,root:n,parent:t,type:r,props:o,children:i,line:O,column:j,length:a,return:"",siblings:c}}function $(e,n){return b(Z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function z(e){for(;e.root;)e=$(e.root,{children:[e]});M(e,e.siblings)}function F(){return R=N>0?I(T,--N):0,j--,10===R&&(j=1,O--),R}function _(){return R=N<A?I(T,N++):0,j++,10===R&&(j=1,O++),R}function D(){return I(T,N)}function G(){return N}function B(e,n){return k(T,e,n)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return x(B(N-1,U(91===e?e+2:40===e?e+1:e)))}function V(e){for(;(R=D())&&R<33;)_();return H(e)>2||H(R)>3?"":" "}function q(e,n){for(;--n&&_()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return B(e,G()+(n<6&&32==D()&&32==_()))}function U(e){for(;_();)switch(R){case e:return N;case 34:case 39:34!==e&&39!==e&&U(R);break;case 40:41===e&&U(e);break;case 92:_()}return N}function Y(e,n){for(;_()&&e+R!==57&&(e+R!==84||47!==D()););return"/*"+B(n,N-1)+"*"+y(47===e?e:_())}function K(e){for(;!H(D());)_();return B(e,N)}function X(e,n){for(var t="",r=0;r<e.length;r++)t+=n(e[r],r,e,n)||"";return t}function J(e,n,t,r){switch(e.type){case m:if(e.children.length)break;case h:case f:return e.return=e.return||e.value;case d:return"";case v:return e.return=e.value+"{"+X(e.children,r)+"}";case p:if(!E(e.value=e.props.join(",")))return""}return E(t=X(e.children,r))?e.return=e.value+"{"+t+"}":""}function Q(e,n,t){switch(function(e,n){return 45^I(e,0)?(((n<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}(e,n)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 4789:return l+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+l+e+s+e+e;case 5936:switch(I(e,n+11)){case 114:return u+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+s+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+s+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return u+e+s+e+e;case 6165:return u+e+s+"flex-"+e+e;case 5187:return u+e+C(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+s+"flex-$1$2")+e;case 5443:return u+e+s+"flex-item-"+C(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":s+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return u+e+s+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return u+e+s+C(e,"shrink","negative")+e;case 5292:return u+e+s+C(e,"basis","preferred-size")+e;case 6060:return u+"box-"+C(e,"-grow","")+u+e+s+C(e,"grow","positive")+e;case 4554:return u+C(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+s+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4200:if(!w(e,/flex-|baseline/))return s+"grid-column-align"+k(e,n)+e;break;case 2592:case 3360:return s+C(e,"template-","")+e;case 4384:case 3616:return t&&t.some((function(e,t){return n=t,w(e.props,/grid-\w+-end/)}))?~S(e+(t=t[n].value),"span",0)?e:s+C(e,"-start","")+e+s+"grid-row-span:"+(~S(t,"span",0)?w(t,/\d+/):+w(t,/\d+/)-+w(e,/\d+/))+";":s+C(e,"-start","")+e;case 4896:case 4128:return t&&t.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:s+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(E(e)-1-n>6)switch(I(e,n+1)){case 109:if(45!==I(e,n+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+l+(108==I(e,n+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch",0)?Q(C(e,"stretch","fill-available"),n,t)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(n,t,r,o,i,a,c){return s+t+":"+r+c+(o?s+t+"-span:"+(i?a:+a-+r)+c:"")+e}));case 4949:if(121===I(e,n+6))return C(e,":",":"+u)+e;break;case 6444:switch(I(e,45===I(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===I(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+s+"$2box$3")+e;case 100:return C(e,":",":"+s)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function ee(e,n,t,r){if(e.length>-1&&!e.return)switch(e.type){case f:return void(e.return=Q(e.value,e.length,t));case v:return X([$(e,{value:C(e.value,"@","@"+u)})],r);case p:if(e.length)return function(e,n){return e.map(n).join("")}(t=e.props,(function(n){switch(w(n,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":z($(e,{props:[C(n,/:(read-\w+)/,":"+l+"$1")]})),z($(e,{props:[n]})),b(e,{props:P(t,r)});break;case"::placeholder":z($(e,{props:[C(n,/:(plac\w+)/,":"+u+"input-$1")]})),z($(e,{props:[C(n,/:(plac\w+)/,":"+l+"$1")]})),z($(e,{props:[C(n,/:(plac\w+)/,s+"input-$1")]})),z($(e,{props:[n]})),b(e,{props:P(t,r)})}return""}))}}function ne(e){return function(e){return T="",e}(te("",null,null,null,[""],e=function(e){return O=j=1,A=E(T=e),N=0,[]}(e),0,[0],e))}function te(e,n,t,r,o,i,a,c,s){for(var l=0,u=0,d=a,p=0,f=0,h=0,v=1,m=1,b=1,x=0,w="",k=o,L=i,P=r,O=w;m;)switch(h=x,x=_()){case 40:if(108!=h&&58==I(O,d-1)){-1!=S(O+=C(W(x),"&","&\f"),"&\f",g(l?c[l-1]:0))&&(b=-1);break}case 34:case 39:case 91:O+=W(x);break;case 9:case 10:case 13:case 32:O+=V(h);break;case 92:O+=q(G()-1,7);continue;case 47:switch(D()){case 42:case 47:M(oe(Y(_(),G()),n,t,s),s);break;default:O+="/"}break;case 123*v:c[l++]=E(O)*b;case 125*v:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:-1==b&&(O=C(O,/\f/g,"")),f>0&&E(O)-d&&M(f>32?ie(O+";",r,t,d-1,s):ie(C(O," ","")+";",r,t,d-2,s),s);break;case 59:O+=";";default:if(M(P=re(O,n,t,l,u,o,c,w,k=[],L=[],d,i),i),123===x)if(0===u)te(O,n,P,P,k,i,d,c,L);else switch(99===p&&110===I(O,3)?100:p){case 100:case 108:case 109:case 115:te(e,P,P,r&&M(re(e,P,P,0,0,o,c,w,o,k=[],d,L),L),o,L,d,c,r?k:L);break;default:te(O,P,P,P,[""],L,0,c,L)}}l=u=f=0,v=b=1,w=O="",d=a;break;case 58:d=1+E(O),f=h;default:if(v<1)if(123==x)--v;else if(125==x&&0==v++&&125==F())continue;switch(O+=y(x),x*v){case 38:b=u>0?1:(O+="\f",-1);break;case 44:c[l++]=(E(O)-1)*b,b=1;break;case 64:45===D()&&(O+=W(_())),p=D(),u=d=E(w=O+=K(G())),x++;break;case 45:45===h&&2==E(O)&&(v=0)}}return i}function re(e,n,t,r,o,i,a,c,s,l,u,d){for(var f=o-1,h=0===o?i:[""],v=L(h),m=0,y=0,b=0;m<r;++m)for(var w=0,S=k(e,f+1,f=g(y=a[m])),I=e;w<v;++w)(I=x(y>0?h[w]+" "+S:C(S,/&\f/g,h[w])))&&(s[b++]=I);return Z(e,n,t,0===o?p:c,s,l,u,d)}function oe(e,n,t,r){return Z(e,n,t,d,y(R),k(e,2,-2),0,r)}function ie(e,n,t,r,o){return Z(e,n,t,f,k(e,0,r),k(e,r+1,-1),r,o)}var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ce="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",se="active",le="data-styled-version",ue="6.1.11",de="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,fe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),he=(new Set,Object.freeze([])),ve=Object.freeze({});var me=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ye=/(^-|-$)/g;function be(e){return e.replace(ge,"-").replace(ye,"")}var xe=/(a)(d)/gi,we=52,Ce=function(e){return String.fromCharCode(e+(e>25?39:97))};function Se(e){var n,t="";for(n=Math.abs(e);n>we;n=n/we|0)t=Ce(n%we)+t;return(Ce(n%we)+t).replace(xe,"$1-$2")}var Ie,ke=5381,Ee=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},Le=function(e){return Ee(ke,e)};function Me(e){return"string"==typeof e&&!0}var Pe="function"==typeof Symbol&&Symbol.for,Oe=Pe?Symbol.for("react.memo"):60115,je=Pe?Symbol.for("react.forward_ref"):60112,Ae={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ne={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te=((Ie={})[je]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ie[Oe]=Re,Ie);function Ze(e){return("type"in(n=e)&&n.type.$$typeof)===Oe?Re:"$$typeof"in e?Te[e.$$typeof]:Ae;var n}var $e=Object.defineProperty,ze=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,_e=Object.getOwnPropertyDescriptor,De=Object.getPrototypeOf,Ge=Object.prototype;function Be(e,n,t){if("string"!=typeof n){if(Ge){var r=De(n);r&&r!==Ge&&Be(e,r,t)}var o=ze(n);Fe&&(o=o.concat(Fe(n)));for(var i=Ze(e),a=Ze(n),c=0;c<o.length;++c){var s=o[c];if(!(s in Ne||t&&t[s]||a&&s in a||i&&s in i)){var l=_e(n,s);try{$e(e,s,l)}catch(e){}}}}return e}function He(e){return"function"==typeof e}function We(e){return"object"==typeof e&&"styledComponentId"in e}function Ve(e,n){return e&&n?"".concat(e," ").concat(n):e||n||""}function qe(e,n){if(0===e.length)return"";for(var t=e[0],r=1;r<e.length;r++)t+=n?n+e[r]:e[r];return t}function Ue(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ye(e,n,t){if(void 0===t&&(t=!1),!t&&!Ue(e)&&!Array.isArray(e))return n;if(Array.isArray(n))for(var r=0;r<n.length;r++)e[r]=Ye(e[r],n[r]);else if(Ue(n))for(var r in n)e[r]=Ye(e[r],n[r]);return e}function Ke(e,n){Object.defineProperty(e,"toString",{value:n})}function Xe(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var Je=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var n=0,t=0;t<e;t++)n+=this.groupSizes[t];return n},e.prototype.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;e>=o;)if((o<<=1)<0)throw Xe(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),c=(i=0,n.length);i<c;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],t=this.indexOfGroup(e),r=t+n;this.groupSizes[e]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},e.prototype.getGroup=function(e){var n="";if(e>=this.length||0===this.groupSizes[e])return n;for(var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t,i=r;i<o;i++)n+="".concat(this.tag.getRule(i)).concat(de);return n},e}(),Qe=new Map,en=new Map,nn=1,tn=function(e){if(Qe.has(e))return Qe.get(e);for(;en.has(nn);)nn++;var n=nn++;return Qe.set(e,n),en.set(n,e),n},rn=function(e,n){nn=n+1,Qe.set(e,n),en.set(n,e)},on="style[".concat(ce,"][").concat(le,'="').concat(ue,'"]'),an=new RegExp("^".concat(ce,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cn=function(e,n,t){for(var r,o=t.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(n,r)},sn=function(e,n){for(var t,r=(null!==(t=n.textContent)&&void 0!==t?t:"").split(de),o=[],i=0,a=r.length;i<a;i++){var c=r[i].trim();if(c){var s=c.match(an);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(rn(u,l),cn(e,u,s[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}};function ln(){return t.nc}var un=function(e){var n=document.head,t=e||n,r=document.createElement("style"),o=function(e){var n=Array.from(e.querySelectorAll("style[".concat(ce,"]")));return n[n.length-1]}(t),i=void 0!==o?o.nextSibling:null;r.setAttribute(ce,se),r.setAttribute(le,ue);var a=ln();return a&&r.setAttribute("nonce",a),t.insertBefore(r,i),r},dn=function(){function e(e){this.element=un(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var n=document.styleSheets,t=0,r=n.length;t<r;t++){var o=n[t];if(o.ownerNode===e)return o}throw Xe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var n=this.sheet.cssRules[e];return n&&n.cssText?n.cssText:""},e}(),pn=function(){function e(e){this.element=un(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,n){if(e<=this.length&&e>=0){var t=document.createTextNode(n);return this.element.insertBefore(t,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),fn=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,n){return e<=this.length&&(this.rules.splice(e,0,n),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),hn=pe,vn={isServer:!pe,useCSSOMInjection:!fe},mn=function(){function e(e,n,t){void 0===e&&(e=ve),void 0===n&&(n={});var r=this;this.options=o(o({},vn),e),this.gs=n,this.names=new Map(t),this.server=!!e.isServer,!this.server&&pe&&hn&&(hn=!1,function(e){for(var n=document.querySelectorAll(on),t=0,r=n.length;t<r;t++){var o=n[t];o&&o.getAttribute(ce)!==se&&(sn(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ke(this,(function(){return function(e){for(var n=e.getTag(),t=n.length,r="",o=function(t){var o=function(e){return en.get(e)}(t);if(void 0===o)return"continue";var i=e.names.get(o),a=n.getGroup(t);if(void 0===i||0===a.length)return"continue";var c="".concat(ce,".g").concat(t,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(c,'{content:"').concat(s,'"}').concat(de)},i=0;i<t;i++)o(i);return r}(r)}))}return e.registerId=function(e){return tn(e)},e.prototype.reconstructWithOptions=function(n,t){return void 0===t&&(t=!0),new e(o(o({},this.options),n),this.gs,t&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var n=e.useCSSOMInjection,t=e.target;return e.isServer?new fn(t):n?new dn(t):new pn(t)}(this.options),new Je(e)));var e},e.prototype.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},e.prototype.registerName=function(e,n){if(tn(e),this.names.has(e))this.names.get(e).add(n);else{var t=new Set;t.add(n),this.names.set(e,t)}},e.prototype.insertRules=function(e,n,t){this.registerName(e,n),this.getTag().insertRules(tn(e),t)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tn(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),gn=/&/g,yn=/^\s*\/\/.*$/gm;function bn(e,n){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(n," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(n," ")),e.props=e.props.map((function(e){return"".concat(n," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=bn(e.children,n)),e}))}function xn(e){var n,t,r,o=void 0===e?ve:e,i=o.options,a=void 0===i?ve:i,c=o.plugins,s=void 0===c?he:c,l=function(e,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(n):e},u=s.slice();u.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(gn,t).replace(r,l))})),a.prefix&&u.push(ee),u.push(J);var d=function(e,o,i,c){void 0===o&&(o=""),void 0===i&&(i=""),void 0===c&&(c="&"),n=c,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var s=e.replace(yn,""),l=ne(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(l=bn(l,a.namespace));var d,p,f,h=[];return X(l,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=L(d),function(e,n,t,r){for(var o="",i=0;i<p;i++)o+=d[i](e,n,t,r)||"";return o})),h};return d.hash=s.length?s.reduce((function(e,n){return n.name||Xe(15),Ee(e,n.name)}),ke).toString():"",d}var wn=new mn,Cn=xn(),Sn=n().createContext({shouldForwardProp:void 0,styleSheet:wn,stylis:Cn}),In=(Sn.Consumer,n().createContext(void 0));function kn(){return(0,e.useContext)(Sn)}function En(t){var r=(0,e.useState)(t.stylisPlugins),o=r[0],i=r[1],a=kn().styleSheet,s=(0,e.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,a]),l=(0,e.useMemo)((function(){return xn({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:o})}),[t.enableVendorPrefixes,t.namespace,o]);(0,e.useEffect)((function(){c()(o,t.stylisPlugins)||i(t.stylisPlugins)}),[t.stylisPlugins]);var u=(0,e.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return n().createElement(Sn.Provider,{value:u},n().createElement(In.Provider,{value:l},t.children))}var Ln=function(){function e(e,n){var t=this;this.inject=function(e,n){void 0===n&&(n=Cn);var r=t.name+n.hash;e.hasNameForId(t.id,r)||e.insertRules(t.id,r,n(t.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=n,Ke(this,(function(){throw Xe(12,String(t.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Cn),this.name+e.hash},e}(),Mn=function(e){return e>="A"&&e<="Z"};function Pn(e){for(var n="",t=0;t<e.length;t++){var r=e[t];if(1===t&&"-"===r&&"-"===e[0])return e;Mn(r)?n+="-"+r.toLowerCase():n+=r}return n.startsWith("ms-")?"-"+n:n}var On=function(e){return null==e||!1===e||""===e},jn=function(e){var n,t,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!On(a)&&(Array.isArray(a)&&a.isCss||He(a)?r.push("".concat(Pn(o),":"),a,";"):Ue(a)?r.push.apply(r,i(i(["".concat(o," {")],jn(a),!1),["}"],!1)):r.push("".concat(Pn(o),": ").concat((n=o,null==(t=a)||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||n in ae||n.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function An(e,n,t,r){return On(e)?[]:We(e)?[".".concat(e.styledComponentId)]:He(e)?!He(o=e)||o.prototype&&o.prototype.isReactComponent||!n?[e]:An(e(n),n,t,r):e instanceof Ln?t?(e.inject(t,r),[e.getName(r)]):[e]:Ue(e)?jn(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map((function(e){return An(e,n,t,r)}))):[e.toString()];var o}function Nn(e){for(var n=0;n<e.length;n+=1){var t=e[n];if(He(t)&&!We(t))return!1}return!0}var Rn=Le(ue),Tn=function(){function e(e,n,t){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===t||t.isStatic)&&Nn(e),this.componentId=n,this.baseHash=Ee(Rn,n),this.baseStyle=t,mn.registerId(n)}return e.prototype.generateAndInjectStyles=function(e,n,t){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,n,t):"";if(this.isStatic&&!t.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))r=Ve(r,this.staticRulesId);else{var o=qe(An(this.rules,e,n,t)),i=Se(Ee(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=t(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}r=Ve(r,i),this.staticRulesId=i}else{for(var c=Ee(this.baseHash,t.hash),s="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)s+=u;else if(u){var d=qe(An(u,e,n,t));c=Ee(c,d+l),s+=d}}if(s){var p=Se(c>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,t(s,".".concat(p),void 0,this.componentId)),r=Ve(r,p)}}return r},e}(),Zn=n().createContext(void 0);function $n(t){var r=n().useContext(Zn),i=(0,e.useMemo)((function(){return function(e,n){if(!e)throw Xe(14);if(He(e))return e(n);if(Array.isArray(e)||"object"!=typeof e)throw Xe(8);return n?o(o({},n),e):e}(t.theme,r)}),[t.theme,r]);return t.children?n().createElement(Zn.Provider,{value:i},t.children):null}Zn.Consumer;var zn={};function Fn(t,r,i){var a=We(t),c=t,s=!Me(t),l=r.attrs,u=void 0===l?he:l,d=r.componentId,p=void 0===d?function(e,n){var t="string"!=typeof e?"sc":be(e);zn[t]=(zn[t]||0)+1;var r="".concat(t,"-").concat(function(e){return Se(Le(e)>>>0)}(ue+t+zn[t]));return n?"".concat(n,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,h=void 0===f?function(e){return Me(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(t):f,v=r.displayName&&r.componentId?"".concat(be(r.displayName),"-").concat(r.componentId):r.componentId||p,m=a&&c.attrs?c.attrs.concat(u).filter(Boolean):u,g=r.shouldForwardProp;if(a&&c.shouldForwardProp){var y=c.shouldForwardProp;if(r.shouldForwardProp){var b=r.shouldForwardProp;g=function(e,n){return y(e,n)&&b(e,n)}}else g=y}var x=new Tn(i,v,a?c.componentStyle:void 0);function w(t,r){return function(t,r,i){var a=t.attrs,c=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,u=t.styledComponentId,d=t.target,p=n().useContext(Zn),f=kn(),h=t.shouldForwardProp||f.shouldForwardProp,v=function(e,n,t){return void 0===t&&(t=ve),e.theme!==t.theme&&e.theme||n||t.theme}(r,p,s)||ve,m=function(e,n,t){for(var r,i=o(o({},n),{className:void 0,theme:t}),a=0;a<e.length;a+=1){var c=He(r=e[a])?r(i):r;for(var s in c)i[s]="className"===s?Ve(i[s],c[s]):"style"===s?o(o({},i[s]),c[s]):c[s]}return n.className&&(i.className=Ve(i.className,n.className)),i}(a,r,v),g=m.as||d,y={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===v||("forwardedAs"===b?y.as=m.forwardedAs:h&&!h(b,g)||(y[b]=m[b]));var x=function(e,n){var t=kn();return e.generateAndInjectStyles(n,t.styleSheet,t.stylis)}(c,m),w=Ve(l,u);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),y[Me(g)&&!me.has(g)?"class":"className"]=w,y.ref=i,(0,e.createElement)(g,y)}(C,t,r)}w.displayName=h;var C=n().forwardRef(w);return C.attrs=m,C.componentStyle=x,C.displayName=h,C.shouldForwardProp=g,C.foldedComponentIds=a?Ve(c.foldedComponentIds,c.styledComponentId):"",C.styledComponentId=v,C.target=a?c.target:t,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];for(var r=0,o=n;r<o.length;r++)Ye(e,o[r],!0);return e}({},c.defaultProps,e):e}}),Ke(C,(function(){return".".concat(C.styledComponentId)})),s&&Be(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function _n(e,n){for(var t=[e[0]],r=0,o=n.length;r<o;r+=1)t.push(n[r],e[r+1]);return t}new Set;var Dn=function(e){return Object.assign(e,{isCss:!0})};function Gn(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(He(e)||Ue(e))return Dn(An(_n(he,i([e],n,!0))));var r=e;return 0===n.length&&1===r.length&&"string"==typeof r[0]?An(r):Dn(An(_n(r,n)))}function Bn(e,n,t){if(void 0===t&&(t=ve),!n)throw Xe(1,n);var r=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(n,t,Gn.apply(void 0,i([r],o,!1)))};return r.attrs=function(r){return Bn(e,n,o(o({},t),{attrs:Array.prototype.concat(t.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Bn(e,n,o(o({},t),r))},r}var Hn,Wn,Vn=function(e){return Bn(Fn,e)},qn=Vn;me.forEach((function(e){qn[e]=Vn(e)})),function(){function e(e,n){this.rules=e,this.componentId=n,this.isStatic=Nn(e),mn.registerId(this.componentId+1)}e.prototype.createStyles=function(e,n,t,r){var o=r(qe(An(this.rules,n,t,r)),""),i=this.componentId+e;t.insertRules(i,i,o)},e.prototype.removeStyles=function(e,n){n.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,n,t,r){e>2&&mn.registerId(this.componentId+e),this.removeStyles(e,t),this.createStyles(e,n,t,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var n=e.instance.toString(),t=ln(),r=qe([t&&'nonce="'.concat(t,'"'),"".concat(ce,'="true"'),"".concat(le,'="').concat(ue,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(n,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Xe(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Xe(2);var r=((t={})[ce]="",t[le]=ue,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=ln();return i&&(r.nonce=i),[n().createElement("style",o({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new mn({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Xe(2);return n().createElement(En,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Xe(3)}}(),"__sc-".concat(ce,"__"),function(e){e.LIGHT="light",e.DARK="dark"}(Hn||(Hn={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Wn||(Wn={}));var Un=function(){return Un=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Un.apply(this,arguments)},Yn=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))},Kn=function(e,n,t,r,o){void 0===n&&(n=!0),void 0===o&&(o=!1);var i=o?{}:Un({},r),a=function(e,n,t,r,i){var c,s,l;void 0===n&&(n=!0);try{if(!t)return i;if(n){var u=r[t].childIds;if(o){var d=null===(c=r[t].childIds)||void 0===c?void 0:c[0];u=d?[d]:[]}return i[t]=Un(Un({},r[t]),{childIds:u}),u&&u.forEach((function(t){a(e,n,t,r,i)})),i}var p=e[t].parentId;return i[t]||(i[t]={id:t,childIds:Yn([],o?[t]:(null===(s=r[t])||void 0===s?void 0:s.childIds)||[],!0)}),p&&!r[t]&&(i[p]={id:p,childIds:o?[t]:Yn(Yn([],(null===(l=r[p])||void 0===l?void 0:l.childIds)||[],!0),[t],!1)}),p&&a(e,n,p,r,i),i}catch(e){return console.log("issue while getting connected item",e),i}};return a(e,n,t,r,i),i},Xn=function(e,n,t,r){void 0===r&&(r=!1);var o=t,i=Kn(e,!1,n,o,r),a=Kn(e,!0,n,o,r);return Un(Un({},i),a)},Jn=function(e,n,t,r){var o,i=r||{},a=i.isParentUpdateRequired,c=void 0!==a&&a,s=i.getNextAvailableSelection,l=void 0!==s&&s;i.isMultiSelection;try{var u=Qn(e,n,t);if(c){var d=e[t].parentId;if(d&&(null==n?void 0:n[d])){var p=(null===(o=n[d].childIds)||void 0===o?void 0:o.filter((function(e){return e!==t})))||[];if(u[d]=Un(Un({},n[d]),{childIds:p}),l){var f,h=Yn([],p,!0);return(f=null==h?void 0:h[h.length-1])&&n[f]?{newSelectedItems:Xn(e,f,u),newChildId:f}:{newSelectedItems:u,newChildId:d}}}}return{newSelectedItems:u}}catch(e){return console.log("error in highlighting the other selection in the same group",e),{newSelectedItems:n}}},Qn=function(e,n,t){try{if(!t)return{};var r=Un({},n),o=function(e,n,t,r){var i,a=null===(i=n[t])||void 0===i?void 0:i.childIds;delete r[t],a&&a.forEach((function(t){o(e,n,t,r)}))};return o(e,n,t,r),r}catch(e){return console.log("Issue while remove item",e),n}};function et(e,n){try{var t=e.label,r=e.options;if(!(null==r?void 0:r.length))return[{label:t,indexes:[n]}];var o=r.reduce((function(e,n,t){return Yn(Yn([],e,!0),et(n,t),!0)}),[]);return o.map((function(t){var r=t.label,o=t.indexes;return e.label?{label:"".concat(e.label,"=>").concat(r),indexes:Yn([n],o,!0)}:t}))}catch(e){console.log("error in finding all the leafs",e)}return[{label:e.label,indexes:[n]}]}var nt={light:{background:"#FFFFFF",background2:"#efefef",text:"#333333",text2:"#333333",hover:"#FAFAFA",selected:"#007BFF",borders:"#E5E5E5"},dark:{background:"#121212",background2:"#1c1c1cf2",text:"#E0E0E0",text2:"#E0E0E0",hover:"#1F1F1F",selected:"#1E90FF",borders:"#333333"}},tt=t(72),rt=t.n(tt),ot=t(825),it=t.n(ot),at=t(659),ct=t.n(at),st=t(56),lt=t.n(st),ut=t(540),dt=t.n(ut),pt=t(113),ft=t.n(pt),ht=t(851),vt={};vt.styleTagTransform=ft(),vt.setAttributes=lt(),vt.insert=ct().bind(null,"head"),vt.domAPI=it(),vt.insertStyleElement=dt(),rt()(ht.A,vt),ht.A&&ht.A.locals&&ht.A.locals;var mt,gt,yt,bt,xt,wt,Ct,St,It,kt,Et,Lt,Mt,Pt,Ot,jt,At=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},Nt=qn.div.withConfig({displayName:"FlexContainer",componentId:"sc-jq7ew4"})(mt||(mt=At(["\n display: flex;\n &.jc {\n justify-content: space-between;\n }\n &.ai {\n align-items: center;\n }\n"],["\n display: flex;\n &.jc {\n justify-content: space-between;\n }\n &.ai {\n align-items: center;\n }\n"]))),Rt=qn.div.withConfig({displayName:"MainContainer",componentId:"sc-7iwdgv"})(gt||(gt=At(["\n width: max(350px, ",");\n display: flex;\n flex-direction: column;\n background-color: ",";\n"],["\n width: max(350px, ",");\n display: flex;\n flex-direction: column;\n background-color: ",";\n"])),(function(e){return e.width}),(function(e){return e.theme.background2})),Tt=(qn.div.withConfig({displayName:"MenuGroupContainer",componentId:"sc-13k1uuj"})(yt||(yt=At(["\n flex: 1;\n position: relative;\n margin: 0;\n box-sizing: border-box;\n overflow-y: auto;\n z-index: 10;\n -webkit-overflow-scrolling: touch;\n color: #000;\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 1rem;\n letter-spacing: 0.00937em;\n line-height: 1.5rem;\n list-style-type: none;\n text-decoration: inherit;\n text-transform: inherit;\n scroll-behavior: smooth;\n display: flex;\n flex-direction: ",";\n"],["\n flex: 1;\n position: relative;\n margin: 0;\n box-sizing: border-box;\n overflow-y: auto;\n z-index: 10;\n -webkit-overflow-scrolling: touch;\n color: #000;\n font-family: Roboto, sans-serif;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 1rem;\n letter-spacing: 0.00937em;\n line-height: 1.5rem;\n list-style-type: none;\n text-decoration: inherit;\n text-transform: inherit;\n scroll-behavior: smooth;\n display: flex;\n flex-direction: ",";\n"])),(function(e){return"vertical"===e.layout?"column":"row"})),qn.div.withConfig({displayName:"DropdownGroup",componentId:"sc-1mqvze9"})(bt||(bt=At(["\n ","\n\n & .grp-heading {\n position: sticky;\n top: 0px;\n padding: 8px;\n font-weight: bold;\n z-index: 100;\n width: 100%;\n background-color: ",";\n color: ",";\n }\n & .grp-opts {\n top: 40px;\n width: 100%;\n }\n & .opt-label {\n margin-bottom: 1px;\n width: ",";\n & div {\n text-decoration: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n"],["\n ","\n\n & .grp-heading {\n position: sticky;\n top: 0px;\n padding: 8px;\n font-weight: bold;\n z-index: 100;\n width: 100%;\n background-color: ",";\n color: ",";\n }\n & .grp-opts {\n top: 40px;\n width: 100%;\n }\n & .opt-label {\n margin-bottom: 1px;\n width: ",";\n & div {\n text-decoration: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n"])),(function(e){return"vertical"===e.layout?"\n position: relative;\n left: 0;\n width: 100%;\n border-right: none;\n border-bottom: 3px dotted #f6f6f6;\n height: auto;\n max-height: none;\n padding-left: ".concat(e.level?1.5*e.level:0,"rem;\n "):"\n position: absolute;\n left: ".concat(e.left,"rem;\n width: ").concat(e.width,"rem;\n word-wrap: none;\n height: 10rem;\n max-height: 20rem;\n overflow-y: auto;\n max-width: 20rem;\n overflow-x: auto;\n border-right: 3px dotted #f6f6f6;\n height: 100%;\n\n & + & {\n position: absolute;\n top: 0;\n }\n ")}),(function(e){return e.theme.background}),(function(e){return e.theme.text}),(function(e){return e.width}))),Zt=qn.div.withConfig({displayName:"DropdownOption",componentId:"sc-60jnf5"})(Ct||(Ct=At(["\n display: flex;\n align-items: center;\n box-sizing: border-box;\n background-color: ",";\n color: ",";\n cursor: pointer;\n align-items: center;\n display: flex;\n min-height: ",";\n padding: 0rem 1.5rem;\n\n /* fadeActive stylings */\n ","\n\n /* active stylings */\n ","\n"],["\n display: flex;\n align-items: center;\n box-sizing: border-box;\n background-color: ",";\n color: ",";\n cursor: pointer;\n align-items: center;\n display: flex;\n min-height: ",";\n padding: 0rem 1.5rem;\n\n /* fadeActive stylings */\n ","\n\n /* active stylings */\n ","\n"])),(function(e){return e.theme.background2}),(function(e){return e.theme.text}),(function(e){return"vertical"===e.layout?"1.8rem":"2.5rem"}),(function(e){return"true"===e.fadeactive&&Gn(xt||(xt=At(["\n background-color: ",";\n opacity: ",";\n & > div {\n color: #ccc;\n }\n "],["\n background-color: ",";\n opacity: ",";\n & > div {\n color: #ccc;\n }\n "])),e.theme.selected,"vertical"===e.layout?1:.7)}),(function(e){return"true"===e.active&&Gn(wt||(wt=At(["\n background-color: ",";\n & > div {\n color: #ccc;\n }\n "],["\n background-color: ",";\n & > div {\n color: #ccc;\n }\n "])),(function(e){return e.theme.selected}))})),$t=(qn.div.withConfig({displayName:"DropdownNoresults",componentId:"sc-ktxjmu"})(St||(St=At(["\n box-sizing: border-box;\n color: #ccc;\n cursor: default;\n display: block;\n padding: 8px 10px;\n"],["\n box-sizing: border-box;\n color: #ccc;\n cursor: default;\n display: block;\n padding: 8px 10px;\n"]))),qn.div.withConfig({displayName:"TagItem",componentId:"sc-1pj63eg"})(It||(It=At(["\n display: flex;\n align-items: center;\n position: relative;\n min-width: 80px;\n border: 1px solid black;\n border-radius: 8px;\n height: fit-content;\n padding-left: 5px;\n justify-content: space-between;\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n & .cancel-icon {\n padding: 8px 5px;\n }\n & + & {\n margin-left: 3px;\n margin-bottom: 3px;\n }\n"],["\n display: flex;\n align-items: center;\n position: relative;\n min-width: 80px;\n border: 1px solid black;\n border-radius: 8px;\n height: fit-content;\n padding-left: 5px;\n justify-content: space-between;\n cursor: pointer;\n background-color: ",";\n color: ",";\n\n & .cancel-icon {\n padding: 8px 5px;\n }\n & + & {\n margin-left: 3px;\n margin-bottom: 3px;\n }\n"])),(function(e){return e.theme.background}),(function(e){return e.theme.text2}))),zt=qn.span.withConfig({displayName:"TagHover",componentId:"sc-1veip60"})(kt||(kt=At(["\n display: none;\n position: absolute;\n top: 100%;\n z-index: 1000;\n background-color: ",";\n /* opacity: 0.7; */\n border-radius: 5px;\n padding: 3px;\n width: 200px;\n"],["\n display: none;\n position: absolute;\n top: 100%;\n z-index: 1000;\n background-color: ",";\n /* opacity: 0.7; */\n border-radius: 5px;\n padding: 3px;\n width: 200px;\n"])),(function(e){return e.theme.selected})),Ft=qn.span.withConfig({displayName:"TagLabel",componentId:"sc-yur0xd"})(Et||(Et=At(["\n &:hover + "," {\n display: block;\n }\n"],["\n &:hover + "," {\n display: block;\n }\n"])),zt),_t=qn.span.withConfig({displayName:"IconCon",componentId:"sc-ak2ef8"})(Lt||(Lt=At(["\n padding-right: 5px;\n line-height: 1;\n svg g {\n fill: ",";\n }\n"],["\n padding-right: 5px;\n line-height: 1;\n svg g {\n fill: ",";\n }\n"])),(function(e){var n=e.theme;return"true"===e.applytheme?n.text:""}));function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Dt.apply(null,arguments)}qn.button.withConfig({displayName:"ClearTagsBtn",componentId:"sc-1fpimt7"})(Mt||(Mt=At(["\n margin: 0px 5px 5px 0px;\n background-color: ",";\n height: fit-content;\n width: 80px;\n padding: 5px;\n border: 0px solid black;\n border-radius: 3px;\n margin-left: auto;\n cursor: pointer;\n"],["\n margin: 0px 5px 5px 0px;\n background-color: ",";\n height: fit-content;\n width: 80px;\n padding: 5px;\n border: 0px solid black;\n border-radius: 3px;\n margin-left: auto;\n cursor: pointer;\n"])),(function(e){return e.theme.background}));const Gt=function(n){return e.createElement("svg",Dt({width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n),Pt||(Pt=e.createElement("title",null,"cancel")),Ot||(Ot=e.createElement("desc",null,"Created with Sketch.")),jt||(jt=e.createElement("g",{id:"icons",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},e.createElement("g",{id:"ui-gambling-website-lined-icnos-casinoshunter",transform:"translate(-2168.000000, -158.000000)",fill:"#1C1C1F",fillRule:"nonzero"},e.createElement("g",{id:1,transform:"translate(1350.000000, 120.000000)"},e.createElement("path",{d:"M821.426657,38.5856848 L830.000001,47.1592624 L838.573343,38.5856848 C839.288374,37.8706535 840.421422,37.8040611 841.267835,38.4653242 L841.414315,38.5987208 C842.195228,39.3796338 842.195228,40.645744 841.414306,41.4266667 L832.840738,50 L841.414315,58.5733429 C842.129347,59.2883742 842.195939,60.4214224 841.534676,61.2678347 L841.401279,61.4143152 C840.620366,62.1952283 839.354256,62.1952283 838.573333,61.4143055 L830.000001,52.8407376 L821.426657,61.4143152 C820.711626,62.1293465 819.578578,62.1959389 818.732165,61.5346758 L818.585685,61.4012792 C817.804772,60.6203662 817.804772,59.354256 818.585694,58.5733333 L827.159262,50 L818.585685,41.4266571 C817.870653,40.7116258 817.804061,39.5785776 818.465324,38.7321653 L818.598721,38.5856848 C819.379634,37.8047717 820.645744,37.8047717 821.426657,38.5856848 Z M820.028674,60.999873 C820.023346,60.9999577 820.018018,61 820.012689,61 Z M820.161408,60.9889406 L820.117602,60.9945129 L820.117602,60.9945129 C820.132128,60.9929912 820.146788,60.9911282 820.161408,60.9889406 Z M819.865274,60.9891349 L819.883098,60.9916147 C819.877051,60.9908286 819.87101,60.9899872 819.864975,60.9890905 L819.865274,60.9891349 Z M819.739652,60.9621771 L819.755271,60.9664589 C819.749879,60.9650278 819.744498,60.9635509 819.739126,60.9620283 L819.739652,60.9621771 Z M820.288411,60.9614133 L820.234515,60.9752112 L820.234515,60.9752112 C820.252527,60.971132 820.270527,60.9665268 820.288411,60.9614133 Z M820.401572,60.921544 L820.359957,60.9380009 L820.359957,60.9380009 C820.373809,60.9328834 820.387743,60.9273763 820.401572,60.921544 Z M819.623655,60.9214803 C819.628579,60.923546 819.626191,60.9225499 819.623806,60.921544 L819.623655,60.9214803 Z M819.506361,60.8625673 L819.400002,60.7903682 C819.444408,60.8248958 819.491056,60.8551582 819.539393,60.8811554 L819.506361,60.8625673 L819.506361,60.8625673 Z M820.51858,60.8628242 L820.486378,60.8809439 L820.486378,60.8809439 C820.496939,60.8752641 820.507806,60.8691536 820.51858,60.8628242 Z M840.881155,60.4606074 L840.862567,60.4936392 L840.862567,60.4936392 L840.790368,60.5999978 C840.824896,60.555592 840.855158,60.5089438 840.881155,60.4606074 Z M840.936494,60.3386283 L840.92148,60.3763453 L840.92148,60.3763453 C840.926791,60.3637541 840.931774,60.3512293 840.936494,60.3386283 Z M840.974777,60.2110466 L840.962177,60.2603479 L840.962177,60.2603479 C840.966711,60.2443555 840.97096,60.2277405 840.974777,60.2110466 Z M840.994445,60.0928727 L840.989135,60.1347261 L840.989135,60.1347261 C840.991174,60.1210064 840.992958,60.1069523 840.994445,60.0928727 Z M839.987311,39.9996529 L830,49.9872374 L820.012689,39.9996529 L819.999653,40.0126889 L829.987237,50 L819.999653,59.9873111 L820.012689,60.0003471 L830,50.0127626 L839.987311,60.0003471 L840.000347,59.9873111 L830.012763,50 L840.000347,40.0126889 L839.987311,39.9996529 Z M840.999873,59.9713258 L840.999916,60.0003193 L840.999916,60.0003193 C841.000041,59.9907089 841.000027,59.9810165 840.999873,59.9713258 Z M840.988941,59.8385918 L840.994513,59.8823981 L840.994513,59.8823981 C840.992991,59.8678719 840.991128,59.8532122 840.988941,59.8385918 Z M840.961413,59.7115886 L840.975211,59.7654853 L840.975211,59.7654853 C840.971132,59.7474727 840.966527,59.7294733 840.961413,59.7115886 Z M840.921544,59.5984278 L840.938001,59.6400431 L840.938001,59.6400431 C840.932883,59.6261908 840.927376,59.612257 840.921544,59.5984278 Z M840.862824,59.4814199 L840.880944,59.5136217 L840.880944,59.5136217 C840.875264,59.503061 840.869154,59.4921939 840.862824,59.4814199 Z M819.119056,40.4863783 L819.134164,40.5134185 C819.128903,40.5043379 819.123796,40.4951922 819.118845,40.4859852 L819.119056,40.4863783 Z M819.061999,40.3599569 L819.075467,40.3944079 C819.070734,40.3829341 819.066223,40.3713901 819.061935,40.3597825 L819.061999,40.3599569 Z M819.024789,40.2345147 L819.033541,40.2701072 C819.030397,40.2582611 819.027473,40.2463686 819.024771,40.234436 L819.024789,40.2345147 Z M819.005077,40.1136164 L819.008385,40.1422797 C819.007138,40.1326872 819.00603,40.12308 819.005061,40.1134615 L819.005077,40.1136164 Z M819.000419,39.9836733 L819,40.0126889 C819,40.002956 819.000141,39.993223 819.000424,39.9834934 L819.000419,39.9836733 Z M819.010865,39.8652739 L819.008385