@segmentify/ui 0.0.65 → 0.0.66
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.
- package/dist/segmentify-ui.cjs +1 -1
- package/dist/segmentify-ui.js +3 -3
- package/package.json +1 -1
package/dist/segmentify-ui.cjs
CHANGED
|
@@ -276,7 +276,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
276
276
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zd(e){return R$t(e)||I$t(e)||ufe(e)||P$t()}function F$t(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function T$t(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var D$t=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(T$t(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=F$t(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Vr="-ms-",Xg="-moz-",en="-webkit-",hfe="comm",wI="rule",xI="decl",z$t="@import",pfe="@keyframes",_$t="@layer",k$t=Math.abs,R5=String.fromCharCode,L$t=Object.assign;function j$t(e,t){return Rr(e,0)^45?(((t<<2^Rr(e,0))<<2^Rr(e,1))<<2^Rr(e,2))<<2^Rr(e,3):0}function mfe(e){return e.trim()}function H$t(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function k$(e,t){return e.indexOf(t)}function Rr(e,t){return e.charCodeAt(t)|0}function Hh(e,t,n){return e.slice(t,n)}function Ga(e){return e.length}function EI(e){return e.length}function pm(e,t){return t.push(e),e}function B$t(e,t){return e.map(t).join("")}var I5=1,R1=1,gfe=0,xi=0,rr=0,af="";function P5(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:I5,column:R1,length:a,return:""}}function Pf(e,t){return L$t(P5("",null,null,"",null,null,0),e,{length:-e.length},t)}function V$t(){return rr}function q$t(){return rr=xi>0?Rr(af,--xi):0,R1--,rr===10&&(R1=1,I5--),rr}function Gi(){return rr=xi<gfe?Rr(af,xi++):0,R1++,rr===10&&(R1=1,I5++),rr}function rl(){return Rr(af,xi)}function e3(){return xi}function Z2(e,t){return Hh(af,e,t)}function Bh(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 vfe(e){return I5=R1=1,gfe=Ga(af=e),xi=0,[]}function bfe(e){return af="",e}function t3(e){return mfe(Z2(xi-1,L$(e===91?e+2:e===40?e+1:e)))}function G$t(e){for(;(rr=rl())&&rr<33;)Gi();return Bh(e)>2||Bh(rr)>3?"":" "}function W$t(e,t){for(;--t&&Gi()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Z2(e,e3()+(t<6&&rl()==32&&Gi()==32))}function L$(e){for(;Gi();)switch(rr){case e:return xi;case 34:case 39:e!==34&&e!==39&&L$(rr);break;case 40:e===41&&L$(e);break;case 92:Gi();break}return xi}function U$t(e,t){for(;Gi()&&e+rr!==57;)if(e+rr===84&&rl()===47)break;return"/*"+Z2(t,xi-1)+"*"+R5(e===47?e:Gi())}function Y$t(e){for(;!Bh(rl());)Gi();return Z2(e,xi)}function X$t(e){return bfe(n3("",null,null,null,[""],e=vfe(e),0,[0],e))}function n3(e,t,n,r,i,o,a,s,c){for(var u=0,d=0,f=a,h=0,p=0,g=0,m=1,b=1,w=1,x=0,E="",S=i,$=o,M=r,A=E;b;)switch(g=x,x=Gi()){case 40:if(g!=108&&Rr(A,f-1)==58){k$(A+=nn(t3(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:A+=t3(x);break;case 9:case 10:case 13:case 32:A+=G$t(g);break;case 92:A+=W$t(e3()-1,7);continue;case 47:switch(rl()){case 42:case 47:pm(K$t(U$t(Gi(),e3()),t,n),c);break;default:A+="/"}break;case 123*m:s[u++]=Ga(A)*w;case 125*m:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:w==-1&&(A=nn(A,/\f/g,"")),p>0&&Ga(A)-f&&pm(p>32?bW(A+";",r,n,f-1):bW(nn(A," ","")+";",r,n,f-2),c);break;case 59:A+=";";default:if(pm(M=vW(A,t,n,u,d,i,s,E,S=[],$=[],f),o),x===123)if(d===0)n3(A,t,M,M,S,o,f,s,$);else switch(h===99&&Rr(A,3)===110?100:h){case 100:case 108:case 109:case 115:n3(e,M,M,r&&pm(vW(e,M,M,0,0,i,s,E,i,S=[],f),$),i,$,f,s,r?S:$);break;default:n3(A,M,M,M,[""],$,0,s,$)}}u=d=p=0,m=w=1,E=A="",f=a;break;case 58:f=1+Ga(A),p=g;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&q$t()==125)continue}switch(A+=R5(x),x*m){case 38:w=d>0?1:(A+="\f",-1);break;case 44:s[u++]=(Ga(A)-1)*w,w=1;break;case 64:rl()===45&&(A+=t3(Gi())),h=rl(),d=f=Ga(E=A+=Y$t(e3())),x++;break;case 45:g===45&&Ga(A)==2&&(m=0)}}return o}function vW(e,t,n,r,i,o,a,s,c,u,d){for(var f=i-1,h=i===0?o:[""],p=EI(h),g=0,m=0,b=0;g<r;++g)for(var w=0,x=Hh(e,f+1,f=k$t(m=a[g])),E=e;w<p;++w)(E=mfe(m>0?h[w]+" "+x:nn(x,/&\f/g,h[w])))&&(c[b++]=E);return P5(e,t,n,i===0?wI:s,c,u,d)}function K$t(e,t,n){return P5(e,t,n,hfe,R5(V$t()),Hh(e,2,-2),0)}function bW(e,t,n,r){return P5(e,t,n,xI,Hh(e,0,r),Hh(e,r+1,-1),r)}function Jd(e,t){for(var n="",r=EI(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Z$t(e,t,n,r){switch(e.type){case _$t:if(e.children.length)break;case z$t:case xI:return e.return=e.return||e.value;case hfe:return"";case pfe:return e.return=e.value+"{"+Jd(e.children,r)+"}";case wI:e.value=e.props.join(",")}return Ga(n=Jd(e.children,r))?e.return=e.value+"{"+n+"}":""}function J$t(e){var t=EI(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Q$t(e){return function(t){t.root||(t=t.return)&&e(t)}}function eMt(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tMt=function(t,n,r){for(var i=0,o=0;i=o,o=rl(),i===38&&o===12&&(n[r]=1),!Bh(o);)Gi();return Z2(t,xi)},nMt=function(t,n){var r=-1,i=44;do switch(Bh(i)){case 0:i===38&&rl()===12&&(n[r]=1),t[r]+=tMt(xi-1,n,r);break;case 2:t[r]+=t3(i);break;case 4:if(i===44){t[++r]=rl()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=R5(i)}while(i=Gi());return t},rMt=function(t,n){return bfe(nMt(vfe(t),n))},yW=new WeakMap,iMt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!yW.get(r))&&!i){yW.set(t,!0);for(var o=[],a=rMt(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<s.length;d++,u++)t.props[u]=o[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},oMt=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function yfe(e,t){switch(j$t(e,t)){case 5103:return en+"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 en+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return en+e+Xg+e+Vr+e+e;case 6828:case 4268:return en+e+Vr+e+e;case 6165:return en+e+Vr+"flex-"+e+e;case 5187:return en+e+nn(e,/(\w+).+(:[^]+)/,en+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return en+e+Vr+"flex-item-"+nn(e,/flex-|-self/,"")+e;case 4675:return en+e+Vr+"flex-line-pack"+nn(e,/align-content|flex-|-self/,"")+e;case 5548:return en+e+Vr+nn(e,"shrink","negative")+e;case 5292:return en+e+Vr+nn(e,"basis","preferred-size")+e;case 6060:return en+"box-"+nn(e,"-grow","")+en+e+Vr+nn(e,"grow","positive")+e;case 4554:return en+nn(e,/([^-])(transform)/g,"$1"+en+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,en+"$1"),/(image-set)/,en+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,en+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,en+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+en+e+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,en+"$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(Ga(e)-1-t>6)switch(Rr(e,t+1)){case 109:if(Rr(e,t+4)!==45)break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+en+"$2-$3$1"+Xg+(Rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~k$(e,"stretch")?yfe(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rr(e,t+1)!==115)break;case 6444:switch(Rr(e,Ga(e)-3-(~k$(e,"!important")&&10))){case 107:return nn(e,":",":"+en)+e;case 101:return nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+en+(Rr(e,14)===45?"inline-":"")+"box$3$1"+en+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(Rr(e,t+11)){case 114:return en+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return en+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return en+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return en+e+Vr+e+e}return e}var aMt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xI:t.return=yfe(t.value,t.length);break;case pfe:return Jd([Pf(t,{value:nn(t.value,"@","@"+en)})],i);case wI:if(t.length)return B$t(t.props,function(o){switch(H$t(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jd([Pf(t,{props:[nn(o,/:(read-\w+)/,":"+Xg+"$1")]})],i);case"::placeholder":return Jd([Pf(t,{props:[nn(o,/:(plac\w+)/,":"+en+"input-$1")]}),Pf(t,{props:[nn(o,/:(plac\w+)/,":"+Xg+"$1")]}),Pf(t,{props:[nn(o,/:(plac\w+)/,Vr+"input-$1")]})],i)}return""})}},lMt=[aMt],sMt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||lMt,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)o[b[w]]=!0;s.push(m)});var c,u=[iMt,oMt];{var d,f=[Z$t,Q$t(function(m){d.insert(m)})],h=J$t(u.concat(i,f)),p=function(b){return Jd(X$t(b),h)};c=function(b,w,x,E){d=x,p(b?b+"{"+w.styles+"}":w.styles),E&&(g.inserted[w.name]=!0)}}var g={key:n,sheet:new D$t({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return g.sheet.hydrate(s),g},iE,wW;function cMt(){if(wW)return iE;wW=1;var e=kA(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(g,m,b){if(typeof m!="string"){if(h){var w=f(m);w&&w!==h&&p(g,w,b)}var x=c(m);u&&(x=x.concat(u(m)));for(var E=a(g),S=a(m),$=0;$<x.length;++$){var M=x[$];if(!n[M]&&!(b&&b[M])&&!(S&&S[M])&&!(E&&E[M])){var A=d(m,M);try{s(g,M,A)}catch{}}}}return g}return iE=p,iE}cMt();var uMt=!0;function dMt(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var wfe=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||uMt===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},fMt=function(t,n,r){wfe(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function hMt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var pMt={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,scale: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},mMt=/[A-Z]|^ms/g,gMt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xfe=function(t){return t.charCodeAt(1)===45},xW=function(t){return t!=null&&typeof t!="boolean"},oE=eMt(function(e){return xfe(e)?e:e.replace(mMt,"-$&").toLowerCase()}),EW=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gMt,function(r,i,o){return Wa={name:i,styles:o,next:Wa},i})}return pMt[t]!==1&&!xfe(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vh(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wa={name:i.name,styles:i.styles,next:Wa},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wa={name:a.name,styles:a.styles,next:Wa},a=a.next;var s=o.styles+";";return s}return vMt(e,t,n)}case"function":{if(e!==void 0){var c=Wa,u=n(e);return Wa=c,Vh(e,t,u)}break}}var d=n;return d}function vMt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Vh(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;xW(s)&&(r+=oE(o)+":"+EW(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)xW(a[c])&&(r+=oE(o)+":"+EW(o,a[c])+";");else{var u=Vh(e,t,a);switch(o){case"animation":case"animationName":{r+=oE(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var CW=/label:\s*([^\s;{]+)\s*(;|$)/g,Wa;function Efe(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Wa=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Vh(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Vh(n,t,e[s]),r){var c=o;i+=c[s]}CW.lastIndex=0;for(var u="",d;(d=CW.exec(i))!==null;)u+="-"+d[1];var f=hMt(i)+u;return{name:f,styles:i,next:Wa}}var bMt=function(t){return t()},yMt=v.useInsertionEffect?v.useInsertionEffect:!1,wMt=yMt||bMt,Cfe=v.createContext(typeof HTMLElement<"u"?sMt({key:"css"}):null);Cfe.Provider;var xMt=function(t){return l.forwardRef(function(n,r){var i=l.useContext(Cfe);return t(n,i,r)})},EMt=v.createContext({}),CI={}.hasOwnProperty,j$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",CMt=function(t,n){var r={};for(var i in n)CI.call(n,i)&&(r[i]=n[i]);return r[j$]=t,r},SMt=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return wfe(n,r,i),wMt(function(){return fMt(n,r,i)}),null},$Mt=xMt(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[j$],o=[r],a="";typeof e.className=="string"?a=dMt(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Efe(o,void 0,v.useContext(EMt));a+=t.key+"-"+s.name;var c={};for(var u in e)CI.call(e,u)&&u!=="css"&&u!==j$&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),v.createElement(v.Fragment,null,v.createElement(SMt,{cache:t,serialized:s,isStringTag:typeof i=="string"}),v.createElement(i,c))}),MMt=$Mt,bt=function(t,n){var r=arguments;if(n==null||!CI.call(n,"css"))return v.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=MMt,o[1]=CMt(t,n);for(var a=2;a<i;a++)o[a]=r[a];return v.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bt||(bt={}));function SI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Efe(t)}function AMt(){var e=SI.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function NMt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var H$=l.useLayoutEffect,OMt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Kg=function(){};function RMt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function IMt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(RMt(e,a)));return o.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Zg=function(t){return jMt(t)?t.filter(Boolean):mu(t)==="object"&&t!==null?[t]:[]},Sfe=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=$l(t,OMt);return xt({},n)},Yn=function(t,n,r){var i=t.cx,o=t.getStyles,a=t.getClassNames,s=t.className;return{css:o(n,t),className:i(r??{},a(n,t),s)}};function F5(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function PMt(e){return F5(e)?window.innerHeight:e.clientHeight}function $fe(e){return F5(e)?window.pageYOffset:e.scrollTop}function Jg(e,t){if(F5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function FMt(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function TMt(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function mm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Kg,i=$fe(e),o=t-i,a=10,s=0;function c(){s+=a;var u=TMt(s,i,o,n);Jg(e,u),s<n?window.requestAnimationFrame(c):r(e)}c()}function SW(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Jg(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Jg(e,Math.max(t.offsetTop-i,0))}function DMt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function $W(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function zMt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Mfe=!1,_Mt={get passive(){return Mfe=!0}},gm=typeof window<"u"?window:{};gm.addEventListener&&gm.removeEventListener&&(gm.addEventListener("p",Kg,_Mt),gm.removeEventListener("p",Kg,!1));var kMt=Mfe;function LMt(e){return e!=null}function jMt(e){return Array.isArray(e)}function Jf(e,t,n){return e?t:n}var HMt=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(a){var s=ns(a,1),c=s[0];return!r.includes(c)});return o.reduce(function(a,s){var c=ns(s,2),u=c[0],d=c[1];return a[u]=d,a},{})},BMt=["children","innerProps"],VMt=["children","innerProps"];function qMt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=FMt(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var d=c.getBoundingClientRect(),f=d.height,h=n.getBoundingClientRect(),p=h.bottom,g=h.height,m=h.top,b=n.offsetParent.getBoundingClientRect(),w=b.top,x=a?window.innerHeight:PMt(c),E=$fe(c),S=parseInt(getComputedStyle(n).marginBottom,10),$=parseInt(getComputedStyle(n).marginTop,10),M=w-$,A=x-m,R=M+E,T=f-E-m,_=p-x+E+S,N=E+m-$,P=160;switch(i){case"auto":case"bottom":if(A>=g)return{placement:"bottom",maxHeight:t};if(T>=g&&!a)return o&&mm(c,_,P),{placement:"bottom",maxHeight:t};if(!a&&T>=r||a&&A>=r){o&&mm(c,_,P);var O=a?A-S:T-S;return{placement:"bottom",maxHeight:O}}if(i==="auto"||a){var z=t,L=a?M:R;return L>=r&&(z=Math.min(L-S-s,t)),{placement:"top",maxHeight:z}}if(i==="bottom")return o&&Jg(c,_),{placement:"bottom",maxHeight:t};break;case"top":if(M>=g)return{placement:"top",maxHeight:t};if(R>=g&&!a)return o&&mm(c,N,P),{placement:"top",maxHeight:t};if(!a&&R>=r||a&&M>=r){var D=t;return(!a&&R>=r||a&&M>=r)&&(D=a?M-$:R-$),o&&mm(c,N,P),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function GMt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Afe=function(t){return t==="auto"?"bottom":t},WMt=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,c=o.colors;return xt((r={label:"menu"},Zf(r,GMt(i),"100%"),Zf(r,"position","absolute"),Zf(r,"width","100%"),Zf(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Nfe=l.createContext(null),UMt=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,c=t.theme,u=l.useContext(Nfe)||{},d=u.setPortalPlacement,f=l.useRef(null),h=l.useState(i),p=ns(h,2),g=p[0],m=p[1],b=l.useState(null),w=ns(b,2),x=w[0],E=w[1],S=c.spacing.controlHeight;return H$(function(){var $=f.current;if($){var M=a==="fixed",A=s&&!M,R=qMt({maxHeight:i,menuEl:$,minHeight:r,placement:o,shouldScroll:A,isFixedPosition:M,controlHeight:S});m(R.maxHeight),E(R.placement),d?.(R.placement)}},[i,o,a,s,r,d,S]),n({ref:f,placerProps:xt(xt({},t),{},{placement:x||Afe(o),maxHeight:g})})},YMt=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return bt("div",St({},Yn(t,"menu",{menu:!0}),{ref:r},i),n)},XMt=YMt,KMt=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return xt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},ZMt=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return bt("div",St({},Yn(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Ofe=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return xt({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},JMt=Ofe,QMt=Ofe,eAt=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=$l(t,BMt);return bt("div",St({},Yn(xt(xt({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tAt=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=$l(t,VMt);return bt("div",St({},Yn(xt(xt({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nAt=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rAt=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,c=l.useRef(null),u=l.useRef(null),d=l.useState(Afe(a)),f=ns(d,2),h=f[0],p=f[1],g=l.useMemo(function(){return{setPortalPlacement:p}},[]),m=l.useState(null),b=ns(m,2),w=b[0],x=b[1],E=l.useCallback(function(){if(i){var A=DMt(i),R=s==="fixed"?0:window.pageYOffset,T=A[h]+R;(T!==w?.offset||A.left!==w?.rect.left||A.width!==w?.rect.width)&&x({offset:T,rect:A})}},[i,s,h,w?.offset,w?.rect.left,w?.rect.width]);H$(function(){E()},[E]);var S=l.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&c.current&&(u.current=JX(i,c.current,E,{elementResize:"ResizeObserver"in window}))},[i,E]);H$(function(){S()},[S]);var $=l.useCallback(function(A){c.current=A,S()},[S]);if(!n&&s!=="fixed"||!w)return null;var M=bt("div",St({ref:$},Yn(xt(xt({},t),{},{offset:w.offset,position:s,rect:w.rect}),"menuPortal",{"menu-portal":!0}),o),r);return bt(Nfe.Provider,{value:g},n?Kl.createPortal(M,n):M)},iAt=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},oAt=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return bt("div",St({},Yn(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},aAt=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return xt({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},lAt=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return bt("div",St({},Yn(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},sAt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},cAt=function(t){var n=t.children,r=t.innerProps;return bt("div",St({},Yn(t,"indicatorsContainer",{indicators:!0}),r),n)},MW,uAt=["size"],dAt=["innerProps","isRtl","size"];function fAt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hAt=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlh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0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:fAt},Rfe=function(t){var n=t.size,r=$l(t,uAt);return bt("svg",St({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hAt},r))},$I=function(t){return bt(Rfe,St({size:20},t),bt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ife=function(t){return bt(Rfe,St({size:20},t),bt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Pfe=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return xt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},pAt=Pfe,mAt=function(t){var n=t.children,r=t.innerProps;return bt("div",St({},Yn(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||bt(Ife,null))},gAt=Pfe,vAt=function(t){var n=t.children,r=t.innerProps;return bt("div",St({},Yn(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||bt($I,null))},bAt=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return xt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},yAt=function(t){var n=t.innerProps;return bt("span",St({},n,Yn(t,"indicatorSeparator",{"indicator-separator":!0})))},wAt=AMt(MW||(MW=NMt([`
|
|
277
277
|
0%, 80%, 100% { opacity: 0; }
|
|
278
278
|
40% { opacity: 1; }
|
|
279
|
-
`]))),xAt=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return xt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},aE=function(t){var n=t.delay,r=t.offset;return bt("span",{css:SI({animation:"".concat(wAt," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ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IHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},EAt=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=$l(t,dAt);return bt("div",St({},Yn(xt(xt({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),bt(aE,{delay:0,offset:r}),bt(aE,{delay:160,offset:!0}),bt(aE,{delay:320,offset:!r}))},CAt=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,c=o.spacing;return xt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},SAt=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return bt("div",St({ref:o},Yn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},$At=SAt,MAt=["data"],AAt=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},NAt=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,c=t.innerProps,u=t.label,d=t.theme,f=t.selectProps;return bt("div",St({},Yn(t,"group",{group:!0}),c),bt(a,St({},s,{selectProps:f,theme:d,getStyles:i,getClassNames:o,cx:r}),u),bt("div",null,n))},OAt=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return xt({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},RAt=function(t){var n=Sfe(t);n.data;var r=$l(n,MAt);return bt("div",St({},Yn(t,"groupHeading",{"group-heading":!0}),r))},IAt=NAt,PAt=["innerRef","isDisabled","isHidden","inputClassName"],FAt=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return xt(xt({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},TAt),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ffe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},TAt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":xt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ffe)},DAt=function(t){return xt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ffe)},zAt=function(t){var n=t.cx,r=t.value,i=Sfe(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,c=i.inputClassName,u=$l(i,PAt);return bt("div",St({},Yn(t,"input",{"input-container":!0}),{"data-value":r||""}),bt("input",St({className:n({input:!0},c),ref:o,style:DAt(s),disabled:a},u)))},_At=zAt,kAt=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return xt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},LAt=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return xt({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},jAt=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return xt({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Tfe=function(t){var n=t.children,r=t.innerProps;return bt("div",r,n)},HAt=Tfe,BAt=Tfe;function VAt(e){var t=e.children,n=e.innerProps;return bt("div",St({role:"button"},n),t||bt($I,{size:14}))}var qAt=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,c=t.selectProps,u=r.Container,d=r.Label,f=r.Remove;return bt(u,{data:i,innerProps:xt(xt({},Yn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:c},bt(d,{data:i,innerProps:xt({},Yn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),bt(f,{data:i,innerProps:xt(xt({},Yn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},GAt=qAt,WAt=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,c=a.colors;return xt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?c.primary:i?c.primary25:"transparent",color:r?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?c.primary:c.primary50}})},UAt=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return bt("div",St({},Yn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},YAt=UAt,XAt=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return xt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},KAt=function(t){var n=t.children,r=t.innerProps;return bt("div",St({},Yn(t,"placeholder",{placeholder:!0}),r),n)},ZAt=KAt,JAt=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return xt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},QAt=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return bt("div",St({},Yn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},eNt=QAt,tNt={ClearIndicator:vAt,Control:$At,DropdownIndicator:mAt,DownChevron:Ife,CrossIcon:$I,Group:IAt,GroupHeading:RAt,IndicatorsContainer:cAt,IndicatorSeparator:yAt,Input:_At,LoadingIndicator:EAt,Menu:XMt,MenuList:ZMt,MenuPortal:rAt,LoadingMessage:tAt,NoOptionsMessage:eAt,MultiValue:GAt,MultiValueContainer:HAt,MultiValueLabel:BAt,MultiValueRemove:VAt,Option:YAt,Placeholder:ZAt,SelectContainer:oAt,SingleValue:eNt,ValueContainer:lAt},nNt=function(t){return xt(xt({},tNt),t.components)},AW=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rNt(e,t){return!!(e===t||AW(e)&&AW(t))}function iNt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rNt(e[n],t[n]))return!1;return!0}function oNt(e,t){t===void 0&&(t=iNt);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}function aNt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lNt=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:aNt},sNt=function(t){return bt("span",St({css:lNt},t))},NW=sNt,cNt={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,c=t.isDisabled,u=t.isSelected,d=t.isAppleDevice,f=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&d){var h=c?" disabled":"",p="".concat(u?" selected":"").concat(h);return"".concat(a).concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},uNt=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,c=t.selectProps,u=t.id,d=t.isAppleDevice,f=c.ariaLiveMessages,h=c.getOptionLabel,p=c.inputValue,g=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,w=c.menuIsOpen,x=c.options,E=c.screenReaderStatus,S=c.tabSelectsValue,$=c.isLoading,M=c["aria-label"],A=c["aria-live"],R=l.useMemo(function(){return xt(xt({},cNt),f||{})},[f]),T=l.useMemo(function(){var L="";if(n&&R.onChange){var D=n.option,k=n.options,H=n.removedValue,W=n.removedValues,F=n.value,K=function(Z){return Array.isArray(Z)?null:Z},j=H||D||K(F),U=j?h(j):"",Y=k||W||void 0,q=Y?Y.map(h):[],Q=xt({isDisabled:j&&m(j,s),label:U,labels:q},n);L=R.onChange(Q)}return L},[n,R,m,s,h]),_=l.useMemo(function(){var L="",D=r||i,k=!!(r&&s&&s.includes(r));if(D&&R.onFocus){var H={focused:D,label:h(D),isDisabled:m(D,s),isSelected:k,options:o,context:D===r?"menu":"value",selectValue:s,isAppleDevice:d};L=R.onFocus(H)}return L},[r,i,h,m,R,o,s,d]),N=l.useMemo(function(){var L="";if(w&&x.length&&!$&&R.onFilter){var D=E({count:o.length});L=R.onFilter({inputValue:p,resultsMessage:D})}return L},[o,p,w,R,x,E,$]),P=n?.action==="initial-input-focus",O=l.useMemo(function(){var L="";if(R.guidance){var D=i?"value":w?"menu":"input";L=R.guidance({"aria-label":M,context:D,isDisabled:r&&m(r,s),isMulti:g,isSearchable:b,tabSelectsValue:S,isInitialFocus:P})}return L},[M,r,i,g,m,b,w,R,s,S,P]),z=bt(l.Fragment,null,bt("span",{id:"aria-selection"},T),bt("span",{id:"aria-focused"},_),bt("span",{id:"aria-results"},N),bt("span",{id:"aria-guidance"},O));return bt(l.Fragment,null,bt(NW,{id:u},P&&z),bt(NW,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&z))},dNt=uNt,B$=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fNt=new RegExp("["+B$.map(function(e){return e.letters}).join("")+"]","g"),Dfe={};for(var lE=0;lE<B$.length;lE++)for(var sE=B$[lE],cE=0;cE<sE.letters.length;cE++)Dfe[sE.letters[cE]]=sE.base;var zfe=function(t){return t.replace(fNt,function(n){return Dfe[n]})},hNt=oNt(zfe),OW=function(t){return t.replace(/^\s+|\s+$/g,"")},pNt=function(t){return"".concat(t.label," ").concat(t.value)},mNt=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=xt({ignoreCase:!0,ignoreAccents:!0,stringify:pNt,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,c=i.trim,u=i.matchFrom,d=c?OW(r):r,f=c?OW(s(n)):s(n);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),a&&(d=hNt(d),f=zfe(f)),u==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},gNt=["innerRef"];function vNt(e){var t=e.innerRef,n=$l(e,gNt),r=HMt(n,"onExited","in","enter","exit","appear");return bt("input",St({ref:t},r,{css:SI({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQge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GZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var bNt=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function yNt(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=l.useRef(!1),s=l.useRef(!1),c=l.useRef(0),u=l.useRef(null),d=l.useCallback(function(b,w){if(u.current!==null){var x=u.current,E=x.scrollTop,S=x.scrollHeight,$=x.clientHeight,M=u.current,A=w>0,R=S-$-E,T=!1;R>w&&a.current&&(r&&r(b),a.current=!1),A&&s.current&&(o&&o(b),s.current=!1),A&&w>R?(n&&!a.current&&n(b),M.scrollTop=S,T=!0,a.current=!0):!A&&-w>E&&(i&&!s.current&&i(b),M.scrollTop=0,T=!0,s.current=!0),T&&bNt(b)}},[n,r,i,o]),f=l.useCallback(function(b){d(b,b.deltaY)},[d]),h=l.useCallback(function(b){c.current=b.changedTouches[0].clientY},[]),p=l.useCallback(function(b){var w=c.current-b.changedTouches[0].clientY;d(b,w)},[d]),g=l.useCallback(function(b){if(b){var w=kMt?{passive:!1}:!1;b.addEventListener("wheel",f,w),b.addEventListener("touchstart",h,w),b.addEventListener("touchmove",p,w)}},[p,h,f]),m=l.useCallback(function(b){b&&(b.removeEventListener("wheel",f,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",p,!1))},[p,h,f]);return l.useEffect(function(){if(t){var b=u.current;return g(b),function(){m(b)}}},[t,g,m]),function(b){u.current=b}}var RW=["boxSizing","height","overflow","paddingRight","position"],IW={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function PW(e){e.cancelable&&e.preventDefault()}function FW(e){e.stopPropagation()}function TW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function DW(){return"ontouchstart"in window||navigator.maxTouchPoints}var zW=!!(typeof window<"u"&&window.document&&window.document.createElement),Ff=0,ud={capture:!1,passive:!1};function wNt(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=l.useRef({}),o=l.useRef(null),a=l.useCallback(function(c){if(zW){var u=document.body,d=u&&u.style;if(r&&RW.forEach(function(g){var m=d&&d[g];i.current[g]=m}),r&&Ff<1){var f=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+f||0;Object.keys(IW).forEach(function(g){var m=IW[g];d&&(d[g]=m)}),d&&(d.paddingRight="".concat(p,"px"))}u&&DW()&&(u.addEventListener("touchmove",PW,ud),c&&(c.addEventListener("touchstart",TW,ud),c.addEventListener("touchmove",FW,ud))),Ff+=1}},[r]),s=l.useCallback(function(c){if(zW){var u=document.body,d=u&&u.style;Ff=Math.max(Ff-1,0),r&&Ff<1&&RW.forEach(function(f){var h=i.current[f];d&&(d[f]=h)}),u&&DW()&&(u.removeEventListener("touchmove",PW,ud),c&&(c.removeEventListener("touchstart",TW,ud),c.removeEventListener("touchmove",FW,ud)))}},[r]);return l.useEffect(function(){if(t){var c=o.current;return a(c),function(){s(c)}}},[t,a,s]),function(c){o.current=c}}function xNt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ENt=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},CNt=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+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hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xNt};function SNt(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=yNt({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:c}),d=wNt({isEnabled:n}),f=function(p){u(p),d(p)};return bt(l.Fragment,null,n&&bt("div",{onClick:ENt,css:CNt}),t(f))}function $Nt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var MNt=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL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lPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:$Nt},ANt=function(t){var n=t.name,r=t.onFocus;return bt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:MNt,value:"",onChange:function(){}})},NNt=ANt;function MI(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ONt(){return MI(/^iPhone/i)}function _fe(){return MI(/^Mac/i)}function RNt(){return MI(/^iPad/i)||_fe()&&navigator.maxTouchPoints>1}function INt(){return ONt()||RNt()}function PNt(){return _fe()||INt()}var FNt=function(t){return t.label},kfe=function(t){return t.label},Lfe=function(t){return t.value},TNt=function(t){return!!t.isDisabled},DNt={clearIndicator:gAt,container:iAt,control:CAt,dropdownIndicator:pAt,group:AAt,groupHeading:OAt,indicatorsContainer:sAt,indicatorSeparator:bAt,input:FAt,loadingIndicator:xAt,loadingMessage:QMt,menu:WMt,menuList:KMt,menuPortal:nAt,multiValue:kAt,multiValueLabel:LAt,multiValueRemove:jAt,noOptionsMessage:JMt,option:WAt,placeholder:XAt,singleValue:JAt,valueContainer:aAt},zNt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_Nt=4,jfe=4,kNt=38,LNt=jfe*2,jNt={baseUnit:jfe,controlHeight:kNt,menuGutter:LNt},uE={borderRadius:_Nt,colors:zNt,spacing:jNt},HNt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$W(),captureMenuScroll:!$W(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mNt(),formatGroupLabel:FNt,getOptionLabel:kfe,getOptionValue:Lfe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:TNt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zMt(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function _W(e,t,n,r){var i=Vfe(e,t,n),o=qfe(e,t,n),a=Bfe(e,t),s=Qg(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function r3(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return _W(e,a,t,s)}).filter(function(a){return LW(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=_W(e,n,t,r);return LW(e,o)?o:void 0}).filter(LMt)}function Hfe(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Zd(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function kW(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Zd(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function BNt(e,t){return Hfe(r3(e,t))}function LW(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Wfe(e)||!o)&&Gfe(e,{label:a,value:s,data:i},r)}function VNt(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function qNt(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var dE=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Bfe=function(t,n){return t.getOptionLabel(n)},Qg=function(t,n){return t.getOptionValue(n)};function Vfe(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function qfe(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Qg(e,t);return n.some(function(i){return Qg(e,i)===r})}function Gfe(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Wfe=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},GNt=1,AI=(function(e){A$t(n,e);var t=O$t(n);function n(r){var i;if($$t(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(c){i.controlRef=c},i.focusedOptionRef=null,i.getFocusedOptionRef=function(c){i.focusedOptionRef=c},i.menuListRef=null,i.getMenuListRef=function(c){i.menuListRef=c},i.inputRef=null,i.getInputRef=function(c){i.inputRef=c},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(c,u){var d=i.props,f=d.onChange,h=d.name;u.name=h,i.ariaOnChange(c,u),f(c,u)},i.setValue=function(c,u,d){var f=i.props,h=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(c,{action:u,option:d})},i.selectOption=function(c){var u=i.props,d=u.blurInputOnSelect,f=u.isMulti,h=u.name,p=i.state.selectValue,g=f&&i.isOptionSelected(c,p),m=i.isOptionDisabled(c,p);if(g){var b=i.getOptionValue(c);i.setValue(p.filter(function(w){return i.getOptionValue(w)!==b}),"deselect-option",c)}else if(!m)f?i.setValue([].concat(Zd(p),[c]),"select-option",c):i.setValue(c,"select-option");else{i.ariaOnChange(c,{action:"select-option",option:c,name:h});return}d&&i.blurInput()},i.removeValue=function(c){var u=i.props.isMulti,d=i.state.selectValue,f=i.getOptionValue(c),h=d.filter(function(g){return i.getOptionValue(g)!==f}),p=Jf(u,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:c}),i.focusInput()},i.clearValue=function(){var c=i.state.selectValue;i.onChange(Jf(i.props.isMulti,[],null),{action:"clear",removedValues:c})},i.popValue=function(){var c=i.props.isMulti,u=i.state.selectValue,d=u[u.length-1],f=u.slice(0,u.length-1),h=Jf(c,f,f[0]||null);d&&i.onChange(h,{action:"pop-value",removedValue:d})},i.getFocusedOptionId=function(c){return dE(i.state.focusableOptionsWithIds,c)},i.getFocusableOptionsWithIds=function(){return kW(r3(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return IMt.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(c){return Bfe(i.props,c)},i.getOptionValue=function(c){return Qg(i.props,c)},i.getStyles=function(c,u){var d=i.props.unstyled,f=DNt[c](u,d);f.boxSizing="border-box";var h=i.props.styles[c];return h?h(f,u):f},i.getClassNames=function(c,u){var d,f;return(d=(f=i.props.classNames)[c])===null||d===void 0?void 0:d.call(f,u)},i.getElementId=function(c){return"".concat(i.state.instancePrefix,"-").concat(c)},i.getComponents=function(){return nNt(i.props)},i.buildCategorizedOptions=function(){return r3(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Hfe(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(c,u){i.setState({ariaSelection:xt({value:c},u)})},i.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(c){i.blockOptionHover=!1},i.onControlMouseDown=function(c){if(!c.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},i.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!i.props.isDisabled){var u=i.props,d=u.isMulti,f=u.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()):i.openMenu("first"),c.preventDefault()}},i.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(i.clearValue(),c.preventDefault(),i.openAfterFocus=!1,c.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(c){typeof i.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&F5(c.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(c)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(c){var u=c.touches,d=u&&u.item(0);d&&(i.initialTouchX=d.clientX,i.initialTouchY=d.clientY,i.userIsDragging=!1)},i.onTouchMove=function(c){var u=c.touches,d=u&&u.item(0);if(d){var f=Math.abs(d.clientX-i.initialTouchX),h=Math.abs(d.clientY-i.initialTouchY),p=5;i.userIsDragging=f>p||h>p}},i.onTouchEnd=function(c){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(c.target)&&i.menuListRef&&!i.menuListRef.contains(c.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(c){i.userIsDragging||i.onControlMouseDown(c)},i.onClearIndicatorTouchEnd=function(c){i.userIsDragging||i.onClearIndicatorMouseDown(c)},i.onDropdownIndicatorTouchEnd=function(c){i.userIsDragging||i.onDropdownIndicatorMouseDown(c)},i.handleInputChange=function(c){var u=i.props.inputValue,d=c.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(d,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(c){i.props.onFocus&&i.props.onFocus(c),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(c){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(c),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(c){if(!(i.blockOptionHover||i.state.focusedOption===c)){var u=i.getFocusableOptions(),d=u.indexOf(c);i.setState({focusedOption:c,focusedOptionId:d>-1?i.getFocusedOptionId(c):null})}},i.shouldHideSelectedOptions=function(){return Wfe(i.props)},i.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),i.focus()},i.onKeyDown=function(c){var u=i.props,d=u.isMulti,f=u.backspaceRemovesValue,h=u.escapeClearsValue,p=u.inputValue,g=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,w=u.onKeyDown,x=u.tabSelectsValue,E=u.openMenuOnFocus,S=i.state,$=S.focusedOption,M=S.focusedValue,A=S.selectValue;if(!m&&!(typeof w=="function"&&(w(c),c.defaultPrevented))){switch(i.blockOptionHover=!0,c.key){case"ArrowLeft":if(!d||p)return;i.focusValue("previous");break;case"ArrowRight":if(!d||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(M)i.removeValue(M);else{if(!f)return;d?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||c.shiftKey||!b||!x||!$||E&&i.isOptionSelected($,A))return;i.selectOption($);break;case"Enter":if(c.keyCode===229)break;if(b){if(!$||i.isComposing)return;i.selectOption($);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(p)return;if(!b){i.openMenu("first");break}if(!$)return;i.selectOption($);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}c.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++GNt),i.state.selectValue=Zg(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=dE(o,a[s])}return i}return M$t(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&SW(this.menuListRef,this.focusedOptionRef),PNt()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,c=this.state.isFocused;(c&&!a&&i.isDisabled||c&&s&&!i.menuIsOpen)&&this.focusInput(),c&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(SW(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,c=a.isFocused,u=this.buildFocusableOptions(),d=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(s);s||(c=-1);var u=a.length-1,d=-1;if(a.length){switch(i){case"previous":c===0?d=0:c===-1?d=u:d=c-1;break;case"next":c>-1&&c<u&&(d=c+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,u=s.indexOf(a);a||(u=-1),i==="up"?c=u>0?u-1:s.length-1:i==="down"?c=(u+1)%s.length:i==="pageup"?(c=u-o,c<0&&(c=0)):i==="pagedown"?(c=u+o,c>s.length-1&&(c=s.length-1)):i==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(uE):xt(xt({},uE),this.props.theme):uE}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,c=this.getValue,u=this.selectOption,d=this.setValue,f=this.props,h=f.isMulti,p=f.isRtl,g=f.options,m=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:c,hasValue:m,isMulti:h,isRtl:p,options:g,selectOption:u,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return Vfe(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return qfe(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Gfe(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,c=i.inputValue,u=i.tabIndex,d=i.form,f=i.menuIsOpen,h=i.required,p=this.getComponents(),g=p.Input,m=this.state,b=m.inputIsHidden,w=m.ariaSelection,x=this.commonProps,E=s||this.getElementId("input"),S=xt(xt(xt({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?w?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?v.createElement(g,St({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:c},S)):v.createElement(vNt,St({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Kg,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:d,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,c=o.MultiValueLabel,u=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,h=this.commonProps,p=this.props,g=p.controlShouldRenderValue,m=p.isDisabled,b=p.isMulti,w=p.inputValue,x=p.placeholder,E=this.state,S=E.selectValue,$=E.focusedValue,M=E.isFocused;if(!this.hasValue()||!g)return w?null:v.createElement(f,St({},h,{key:"placeholder",isDisabled:m,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),x);if(b)return S.map(function(R,T){var _=R===$,N="".concat(i.getOptionLabel(R),"-").concat(i.getOptionValue(R));return v.createElement(a,St({},h,{components:{Container:s,Label:c,Remove:u},isFocused:_,isDisabled:m,key:N,index:T,removeProps:{onClick:function(){return i.removeValue(R)},onTouchEnd:function(){return i.removeValue(R)},onMouseDown:function(O){O.preventDefault()}},data:R}),i.formatOptionLabel(R,"value"))});if(w)return null;var A=S[0];return v.createElement(d,St({},h,{data:A,isDisabled:m}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||c||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:f,isDisabled:c,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return v.createElement(a,St({},s,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,c=o.Menu,u=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,h=o.NoOptionsMessage,p=o.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,w=b.captureMenuScroll,x=b.inputValue,E=b.isLoading,S=b.loadingMessage,$=b.minMenuHeight,M=b.maxMenuHeight,A=b.menuIsOpen,R=b.menuPlacement,T=b.menuPosition,_=b.menuPortalTarget,N=b.menuShouldBlockScroll,P=b.menuShouldScrollIntoView,O=b.noOptionsMessage,z=b.onMenuScrollToTop,L=b.onMenuScrollToBottom;if(!A)return null;var D=function(U,Y){var q=U.type,Q=U.data,X=U.isDisabled,Z=U.isSelected,J=U.label,ee=U.value,ce=m===Q,B=X?void 0:function(){return i.onOptionHover(Q)},ne=X?void 0:function(){return i.selectOption(Q)},G="".concat(i.getElementId("option"),"-").concat(Y),se={id:G,onClick:ne,onMouseMove:B,onMouseOver:B,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:Z};return v.createElement(p,St({},g,{innerProps:se,data:Q,isDisabled:X,isSelected:Z,key:G,label:J,type:q,value:ee,isFocused:ce,innerRef:ce?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(U.data,"menu"))},k;if(this.hasOptions())k=this.getCategorizedOptions().map(function(j){if(j.type==="group"){var U=j.data,Y=j.options,q=j.index,Q="".concat(i.getElementId("group"),"-").concat(q),X="".concat(Q,"-heading");return v.createElement(a,St({},g,{key:Q,data:U,options:Y,Heading:s,headingProps:{id:X,data:j.data},label:i.formatGroupLabel(j.data)}),j.options.map(function(Z){return D(Z,"".concat(q,"-").concat(Z.index))}))}else if(j.type==="option")return D(j,"".concat(j.index))});else if(E){var H=S({inputValue:x});if(H===null)return null;k=v.createElement(f,g,H)}else{var W=O({inputValue:x});if(W===null)return null;k=v.createElement(h,g,W)}var F={minMenuHeight:$,maxMenuHeight:M,menuPlacement:R,menuPosition:T,menuShouldScrollIntoView:P},K=v.createElement(UMt,St({},g,F),function(j){var U=j.ref,Y=j.placerProps,q=Y.placement,Q=Y.maxHeight;return v.createElement(c,St({},g,F,{innerRef:U,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:E,placement:q}),v.createElement(SNt,{captureEnabled:w,onTopArrive:z,onBottomArrive:L,lockEnabled:N},function(X){return v.createElement(u,St({},g,{innerRef:function(J){i.getMenuListRef(J),X(J)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:E,maxHeight:Q,focusedOption:m}),k)}))});return _||T==="fixed"?v.createElement(d,St({},g,{appendTo:_,controlElement:this.controlRef,menuPlacement:R,menuPosition:T}),K):K}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,c=o.isMulti,u=o.name,d=o.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!s)return v.createElement(NNt,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(c)if(a){var h=f.map(function(m){return i.getOptionValue(m)}).join(a);return v.createElement("input",{name:u,type:"hidden",value:h})}else{var p=f.length>0?f.map(function(m,b){return v.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):v.createElement("input",{name:u,type:"hidden",value:""});return v.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return v.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,c=o.focusedValue,u=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return v.createElement(dNt,St({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:c,isFocused:u,selectValue:d,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,c=i.ValueContainer,u=this.props,d=u.className,f=u.id,h=u.isDisabled,p=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return v.createElement(s,St({},m,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),v.createElement(o,St({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:p}),v.createElement(c,St({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(a,St({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,c=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,h=o.instancePrefix,p=i.options,g=i.value,m=i.menuIsOpen,b=i.inputValue,w=i.isMulti,x=Zg(g),E={};if(a&&(g!==a.value||p!==a.options||m!==a.menuIsOpen||b!==a.inputValue)){var S=m?BNt(i,x):[],$=m?kW(r3(i,x),"".concat(h,"-option")):[],M=s?VNt(o,x):null,A=qNt(o,S),R=dE($,A);E={selectValue:x,focusedOption:A,focusedOptionId:R,focusableOptionsWithIds:$,focusedValue:M,clearFocusValueOnUpdate:!1}}var T=c!=null&&i!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},_=u,N=d&&f;return d&&!N&&(_={value:Jf(w,x,x[0]||null),options:x,action:"initial-input-focus"},N=!f),u?.action==="initial-input-focus"&&(_=null),xt(xt(xt({},E),T),{},{prevProps:i,ariaSelection:_,prevWasFocused:N})}}]),n})(l.Component);AI.defaultProps=HNt;var WNt=l.forwardRef(function(e,t){var n=dfe(e);return v.createElement(AI,St({ref:t},n))}),UNt=WNt,YNt=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],jW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return o===i||a===i},fE={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return jW(t,o,i)})||r.some(function(o){return jW(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function XNt(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,a=o===void 0?fE.formatCreateLabel:o,s=e.isValidNewOption,c=s===void 0?fE.isValidNewOption:s,u=e.getNewOptionData,d=u===void 0?fE.getNewOptionData:u,f=e.onCreateOption,h=e.options,p=h===void 0?[]:h,g=e.onChange,m=$l(e,YNt),b=m.getOptionValue,w=b===void 0?Lfe:b,x=m.getOptionLabel,E=x===void 0?kfe:x,S=m.inputValue,$=m.isLoading,M=m.isMulti,A=m.value,R=m.name,T=l.useMemo(function(){return c(S,Zg(A),p,{getOptionValue:w,getOptionLabel:E})?d(S,a(S)):void 0},[a,d,E,w,S,c,p,A]),_=l.useMemo(function(){return(n||!$)&&T?i==="first"?[T].concat(Zd(p)):[].concat(Zd(p),[T]):p},[n,i,$,T,p]),N=l.useCallback(function(P,O){if(O.action!=="select-option")return g(P,O);var z=Array.isArray(P)?P:[P];if(z[z.length-1]===T){if(f)f(S);else{var L=d(S,S),D={action:"create-option",name:R,option:L};g(Jf(M,[].concat(Zd(Zg(A)),[L]),L),D)}return}g(P,O)},[d,S,M,R,T,f,g,A]);return xt(xt({},m),{},{options:_,onChange:N})}var KNt=l.forwardRef(function(e,t){var n=dfe(e),r=XNt(n);return v.createElement(AI,St({ref:t},r))}),ZNt=KNt;const JNt={control:({isFocused:e,isDisabled:t})=>te("ui:min-h-10! ui:w-full ui:rounded-md! ui:bg-segmentify-200 ui:px-0! ui:text-sm ui:border ui:border-border!",e&&!t&&Ic({variant:"isControlFocused"}),t&&Ic({variant:"isDisabled"})),option:({isFocused:e,isSelected:t,isDisabled:n})=>te(Ic({variant:"default"}),t&&Ic({variant:"isSelected"}),!t&&e&&Ic({variant:"isFocused"}),n&&Ic({variant:"isDisabled"})),multiValue:()=>te(Ic({variant:"multiSelected"})),multiValueLabel:()=>"ui:text-primary!",multiValueRemove:()=>"ui:text-primary!",placeholder:()=>"ui:text-segmentify-600"};function QNt({label:e,name:t,options:n,value:r,onChange:i,onInputChange:o,placeholder:a,isClearable:s=!0,isSearchable:c=!0,isMulti:u=!0,isDisabled:d,description:f,className:h,isCreatable:p}){const g={"data-test-id":t,name:t,options:n,value:r,onChange:i,onInputChange:o,isClearable:s,isSearchable:c,isMulti:u,isDisabled:d,placeholder:a,classNames:JNt};return y.jsxs("article",{children:[e&&y.jsx(Io,{className:"ui:mb-2 ui:block",children:e}),y.jsx("div",{className:te("field-select ui:w-full select-wrapper ui:rounded-md! ui:text-sm",h),children:p?y.jsx(ZNt,{...g}):y.jsx(UNt,{...g})}),f&&y.jsx(Qv,{description:f})]})}function Ufe({...e}){return y.jsx(e2,{"data-slot":"sheet",...e})}function eOt({...e}){return y.jsx(hv,{"data-slot":"sheet-trigger",...e})}function tOt({...e}){return y.jsx(Cu,{"data-slot":"sheet-close",...e})}function nOt({...e}){return y.jsx(t2,{"data-slot":"sheet-portal",...e})}function rOt({className:e,...t}){return y.jsx(n2,{"data-slot":"sheet-overlay",className:te("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",e),...t})}function Yfe({className:e,children:t,side:n="right",...r}){return y.jsxs(nOt,{children:[y.jsx(rOt,{}),y.jsxs(r2,{"data-slot":"sheet-content",className:te("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:fixed ui:z-50 ui:flex ui:flex-col ui:gap-4 ui:shadow-lg ui:transition ui:ease-in-out ui:data-[state=closed]:duration-300 ui:data-[state=open]:duration-500",n==="right"&&"ui:data-[state=closed]:slide-out-to-right ui:data-[state=open]:slide-in-from-right ui:inset-y-0 ui:right-0 ui:h-full ui:w-3/4 ui:border-l ui:sm:max-w-sm",n==="left"&&"ui:data-[state=closed]:slide-out-to-left ui:data-[state=open]:slide-in-from-left ui:inset-y-0 ui:left-0 ui:h-full ui:w-3/4 ui:border-r ui:sm:max-w-sm",n==="top"&&"ui:data-[state=closed]:slide-out-to-top ui:data-[state=open]:slide-in-from-top ui:inset-x-0 ui:top-0 ui:h-auto ui:border-b",n==="bottom"&&"ui:data-[state=closed]:slide-out-to-bottom ui:data-[state=open]:slide-in-from-bottom ui:inset-x-0 ui:bottom-0 ui:h-auto ui:border-t",e),...r,children:[t,y.jsxs(Cu,{"data-testid":"sheet-close-icon",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-secondary ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none",children:[y.jsx(Ge.XIcon,{className:"ui:size-4"}),y.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function Xfe({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-header",className:te("ui:flex ui:flex-col ui:gap-1.5 ui:p-4",e),...t})}function iOt({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-footer",className:te("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",e),...t})}function Kfe({className:e,...t}){return y.jsx(pv,{"data-slot":"sheet-title",className:te("ui:text-foreground ui:font-semibold",e),...t})}function Zfe({className:e,...t}){return y.jsx(mv,{"data-slot":"sheet-description",className:te("ui:text-muted-foreground ui:text-sm",e),...t})}function V$({className:e,...t}){return y.jsx("div",{"data-slot":"skeleton",className:te("ui:bg-accent ui:animate-pulse ui:rounded-md ui:shrink-0",e),...t})}const hE=768;function oOt(){const[e,t]=v.useState(()=>typeof window<"u"&&window.innerWidth<hE);return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${hE-1}px)`),r=()=>{t(window.innerWidth<hE)};return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const Jfe=v.createContext(null);function T5(){const e=v.useContext(Jfe);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const aOt="sidebar_state",lOt=3600*24*7,sOt="16rem",cOt="18rem",uOt="3rem",dOt="b";function fOt({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:o,...a}){const s=oOt(),[c,u]=v.useState(!1),[d,f]=v.useState(e),h=t??d,p=v.useCallback(w=>{const x=typeof w=="function"?w(h):w;n?n(x):f(x),document.cookie=`${aOt}=${x}; path=/; max-age=${lOt}`},[n,h]),g=v.useCallback(()=>s?u(w=>!w):p(w=>!w),[s,p,u]);v.useEffect(()=>{const w=x=>{x.key===dOt&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[g]);const m=h?"expanded":"collapsed",b=v.useMemo(()=>({state:m,open:h,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:u,toggleSidebar:g}),[m,h,p,s,c,u,g]);return y.jsx(Jfe.Provider,{value:b,children:y.jsx(XR,{delayDuration:0,children:y.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":sOt,"--sidebar-width-icon":uOt,...i},className:te("ui:group/sidebar-wrapper ui:has-data-[variant=inset]:bg-sidebar ui:flex ui:min-h-svh ui:w-full",r),...a,children:o})})})}function hOt({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...o}){const{isMobile:a,state:s,openMobile:c,setOpenMobile:u}=T5();return n==="none"?y.jsx("div",{"data-slot":"sidebar",className:te("ui:bg-sidebar ui:text-sidebar-foreground ui:flex ui:h-full ui:w-(--sidebar-width) ui:flex-col",r),...o,children:i}):a?y.jsx(Ufe,{open:c,onOpenChange:u,...o,children:y.jsxs(Yfe,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ui:bg-sidebar ui:text-sidebar-foreground ui:w-(--sidebar-width) ui:p-0 ui:[&>button]:hidden",style:{"--sidebar-width":cOt},side:e,children:[y.jsxs(Xfe,{className:"ui:sr-only",children:[y.jsx(Kfe,{children:"Sidebar"}),y.jsx(Zfe,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"ui:flex ui:h-full ui:w-full ui:flex-col",children:i})]})}):y.jsxs("div",{className:"ui:group ui:peer ui:text-sidebar-foreground ui:hidden ui:md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[y.jsx("div",{"data-slot":"sidebar-gap",className:te("ui:relative ui:w-(--sidebar-width) ui:bg-transparent ui:transition-[width] ui:duration-200 ui:ease-linear","ui:group-data-[collapsible=offcanvas]:w-0","ui:group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),y.jsx("div",{"data-slot":"sidebar-container",className:te("ui:fixed ui:inset-y-0 ui:z-10 ui:hidden ui:h-svh ui:w-(--sidebar-width) ui:transition-[left,right,width] ui:duration-200 ui:ease-linear ui:md:flex",e==="left"?"ui:left-0 ui:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"ui:right-0 ui:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"ui:p-2 ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ui:group-data-[side=left]:border-r ui:group-data-[side=right]:border-l",r),...o,children:y.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ui:bg-sidebar ui:group-data-[variant=floating]:border-sidebar-border ui:flex ui:h-full ui:w-full ui:flex-col ui:group-data-[variant=floating]:rounded-lg ui:group-data-[variant=floating]:border ui:group-data-[variant=floating]:shadow-sm",children:i})})]})}function pOt({className:e,onClick:t,...n}){const{toggleSidebar:r}=T5();return y.jsxs(qn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:te("ui:size-7",e),onClick:i=>{t?.(i),r()},...n,children:[y.jsx(Ge.PanelLeftIcon,{}),y.jsx("span",{className:"ui:sr-only",children:"Toggle Sidebar"})]})}function mOt({className:e,...t}){const{toggleSidebar:n}=T5();return y.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:te("ui:hover:after:bg-sidebar-border ui:absolute ui:inset-y-0 ui:z-20 ui:hidden ui:w-4 ui:-translate-x-1/2 ui:transition-all ui:ease-linear ui:group-data-[side=left]:-right-4 ui:group-data-[side=right]:left-0 ui:after:absolute ui:after:inset-y-0 ui:after:left-1/2 ui:after:w-[2px] ui:sm:flex","ui:in-data-[side=left]:cursor-w-resize ui:in-data-[side=right]:cursor-e-resize","ui:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ui:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize","ui:hover:group-data-[collapsible=offcanvas]:bg-sidebar ui:group-data-[collapsible=offcanvas]:translate-x-0 ui:group-data-[collapsible=offcanvas]:after:left-full","ui:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","ui:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function gOt({className:e,...t}){return y.jsx("main",{"data-slot":"sidebar-inset",className:te("ui:bg-background ui:relative ui:flex ui:w-full ui:flex-1 ui:flex-col","ui:md:peer-data-[variant=inset]:m-2 ui:md:peer-data-[variant=inset]:ml-0 ui:md:peer-data-[variant=inset]:rounded-xl ui:md:peer-data-[variant=inset]:shadow-sm ui:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function vOt({className:e,...t}){return y.jsx(gs,{"data-slot":"sidebar-input","data-sidebar":"input",className:te("ui:bg-background ui:h-8 ui:w-full ui:shadow-none",e),...t})}function bOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:te("ui:flex ui:flex-col ui:gap-2 ui:p-2",e),...t})}function yOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:te("ui:flex ui:flex-col ui:gap-2 ui:p-2",e),...t})}function wOt({className:e,...t}){return y.jsx(p0,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:te("ui:bg-sidebar-border ui:mx-2 ui:w-auto",e),...t})}function xOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:te("ui:flex ui:min-h-0 ui:flex-1 ui:flex-col ui:gap-2 ui:overflow-auto ui:group-data-[collapsible=icon]:overflow-hidden",e),...t})}function EOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:te("ui:relative ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:p-2",e),...t})}function COt({className:e,asChild:t=!1,...n}){const r=t?ms:"div";return y.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:te("ui:text-sidebar-foreground/70 ui:ring-sidebar-ring ui:flex ui:h-8 ui:shrink-0 ui:items-center ui:rounded-md ui:px-2 ui:text-xs ui:font-medium ui:outline-hidden ui:transition-[margin,opacity] ui:duration-200 ui:ease-linear ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:group-data-[collapsible=icon]:-mt-8 ui:group-data-[collapsible=icon]:opacity-0",e),...n})}function SOt({className:e,asChild:t=!1,...n}){const r=t?ms:"button";return y.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:absolute ui:top-3.5 ui:right-3 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:group-data-[collapsible=icon]:hidden",e),...n})}function $Ot({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:te("ui:w-full ui:text-sm",e),...t})}function MOt({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:te("ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:gap-1",e),...t})}function AOt({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:te("ui:group/menu-item ui:relative",e),...t})}const NOt=fc("ui:peer/menu-button ui:flex ui:w-full ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:p-2 ui:text-left ui:text-sm ui:outline-hidden ui:ring-sidebar-ring ui:transition-[width,height,padding] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:focus-visible:ring-2 ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:font-medium ui:data-[active=true]:text-sidebar-accent-foreground ui:data-[state=open]:hover:bg-sidebar-accent ui:data-[state=open]:hover:text-sidebar-accent-foreground ui:group-data-[collapsible=icon]:size-8! ui:group-data-[collapsible=icon]:p-2! ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0",{variants:{variant:{default:"ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground",outline:"ui:bg-background ui:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"ui:h-8 ui:text-sm",sm:"ui:h-7 ui:text-xs",lg:"ui:h-12 ui:text-sm ui:group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function OOt({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:o,...a}){const s=e?ms:"button",{isMobile:c,state:u}=T5(),d=y.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:te(NOt({variant:n,size:r}),o),...a});return i?(typeof i=="string"&&(i={children:i}),y.jsxs(KR,{children:[y.jsx(ZR,{asChild:!0,children:d}),y.jsx(b5,{side:"right",align:"center",hidden:u!=="collapsed"||c,...i})]})):d}function ROt({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const i=t?ms:"button";return y.jsx(i,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:absolute ui:top-1.5 ui:right-1 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",n&&"ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ui:group-focus-within/menu-item:opacity-100 ui:group-hover/menu-item:opacity-100 ui:data-[state=open]:opacity-100 ui:md:opacity-0",e),...r})}function IOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:te("ui:text-sidebar-foreground ui:pointer-events-none ui:absolute ui:right-1 ui:flex ui:h-5 ui:min-w-5 ui:items-center ui:justify-center ui:rounded-md ui:px-1 ui:text-xs ui:font-medium ui:tabular-nums ui:select-none","ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",e),...t})}function POt({className:e,showIcon:t=!1,...n}){const[r]=v.useState(()=>`${Math.floor(Math.random()*40)+50}%`);return y.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:te("ui:flex ui:h-8 ui:items-center ui:gap-2 ui:rounded-md ui:px-2",e),...n,children:[t&&y.jsx(V$,{className:"ui:size-4 ui:rounded-md","data-sidebar":"menu-skeleton-icon"}),y.jsx(V$,{className:"ui:h-4 ui:max-w-(--skeleton-width) ui:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function FOt({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:te("ui:border-sidebar-border ui:mx-3.5 ui:flex ui:min-w-0 ui:translate-x-px ui:flex-col ui:gap-1 ui:border-l ui:px-2.5 ui:py-0.5","ui:group-data-[collapsible=icon]:hidden",e),...t})}function TOt({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:te("ui:group/menu-sub-item ui:relative",e),...t})}function DOt({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...i}){const o=e?ms:"a";return y.jsx(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:[&>svg]:text-sidebar-accent-foreground ui:flex ui:h-7 ui:min-w-0 ui:-translate-x-px ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:px-2 ui:outline-hidden ui:focus-visible:ring-2 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"ui:text-xs",t==="md"&&"ui:text-sm","ui:group-data-[collapsible=icon]:hidden",r),...i})}var zOt=(e,t,n,r,i,o,a,s)=>{let c=document.documentElement,u=["light","dark"];function d(p){(Array.isArray(e)?e:[e]).forEach(g=>{let m=g==="class",b=m&&o?i.map(w=>o[w]||w):i;m?(c.classList.remove(...b),c.classList.add(o&&o[p]?o[p]:p)):c.setAttribute(g,p)}),f(p)}function f(p){s&&u.includes(p)&&(c.style.colorScheme=p)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let p=localStorage.getItem(t)||n,g=a&&p==="system"?h():p;d(g)}catch{}},_Ot=v.createContext(void 0),kOt={setTheme:e=>{},themes:[]},LOt=()=>{var e;return(e=v.useContext(_Ot))!=null?e:kOt};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,themes:s,nonce:c,scriptProps:u})=>{let d=JSON.stringify([n,t,o,e,s,a,r,i]).slice(1,-1);return v.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${zOt.toString()})(${d})`}})});const jOt=({...e})=>{const{theme:t="system"}=LOt();return y.jsx(hM.Toaster,{theme:t,className:"ui:toaster ui:group",icons:{success:y.jsx(Ge.CircleCheckIcon,{className:"ui:size-4"}),info:y.jsx(Ge.InfoIcon,{className:"ui:size-4"}),warning:y.jsx(Ge.TriangleAlertIcon,{className:"ui:size-4"}),error:y.jsx(Ge.OctagonXIcon,{className:"ui:size-4"}),loading:y.jsx(Ge.Loader2Icon,{className:"ui:size-4 ui:animate-spin"})},style:{"--normal-bg":"var(--ui-popover)","--normal-text":"var(--ui-popover-foreground)","--normal-border":"var(--ui-border)","--border-radius":"var(--ui-radius)"},...e})};function HOt({title:e,containerClassName:t,className:n,...r}){return y.jsx("section",{className:te(t),children:y.jsxs("div",{className:"ui:flex ui:gap-1 ui:items-center",children:[y.jsx(Ge.Loader2Icon,{role:"status","aria-label":"Loading",className:te("ui:size-4 ui:animate-spin",n),...r}),e&&y.jsx("span",{children:e})]})})}function BOt({className:e,...t}){return y.jsx(Bbe,{"data-slot":"tabs",className:te("ui:flex ui:flex-col ui:gap-2",e),...t})}function VOt({className:e,...t}){return y.jsx(Vbe,{"data-slot":"tabs-list",className:te("ui:bg-white ui:text-muted-foreground ui:inline-flex ui:gap-2 ui:h-9 ui:w-fit ui:items-center ui:justify-center ui:rounded-lg ui:px-2",e),...t})}function qOt({className:e,...t}){return y.jsx(qbe,{"data-slot":"tabs-trigger",className:te("ui:bg-transparent ui:data-[state=active]:bg-segmentify-200 ui:dark:data-[state=active]:text-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:outline-ring ui:dark:data-[state=active]:border-input ui:dark:data-[state=active]:bg-input/30 ui:text-foreground ui:data-[state=active]:text-primary ui:dark:text-muted-foreground ui:inline-flex ui:h-7 ui:flex-1 ui:items-center ui:justify-center ui:gap-1.5 ui:rounded-md ui:border ui:border-transparent ui:px-4 ui:py-1 ui:text-sm ui:font-medium ui:whitespace-nowrap ui:transition-[color,box-shadow] ui:focus-visible:ring-[3px] ui:focus-visible:outline-1 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:data-[state=active]:shadow-sm ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4","ui:hover:bg-segmentify-200 ui:hover:text-primary ui:cursor-pointer ui:transition-all ui:duration-200",e),...t})}function GOt({className:e,...t}){return y.jsx(Gbe,{"data-slot":"tabs-content",className:te("ui:flex-1 ui:outline-none",e),...t})}function Qfe({className:e,...t}){return y.jsx("div",{"data-slot":"table-container",className:"ui:relative ui:w-full ui:overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:te("ui:w-full ui:caption-bottom ui:text-sm",e),...t})})}function e0e({className:e,...t}){return y.jsx("thead",{"data-slot":"table-header",className:te("ui:[&_tr]:border-b",e),...t})}function t0e({className:e,...t}){return y.jsx("tbody",{"data-slot":"table-body",className:te("ui:[&_tr:last-child]:border-0",e),...t})}function WOt({className:e,...t}){return y.jsx("tfoot",{"data-slot":"table-footer",className:te("ui:bg-muted/50 ui:border-t ui:font-medium ui:[&>tr]:last:border-b-0",e),...t})}function Qf({className:e,...t}){return y.jsx("tr",{"data-slot":"table-row",className:te("ui:hover:bg-muted/50 ui:data-[state=selected]:bg-muted ui:border-b ui:transition-colors",e),...t})}function n0e({className:e,...t}){return y.jsx("th",{"data-slot":"table-head",className:te("ui:text-foreground ui:h-10 ui:px-2 ui:text-left ui:align-middle ui:font-medium ui:whitespace-nowrap ui:*:[[role=checkbox]]:translate-y-[2px]",e),...t})}function i3({className:e,...t}){return y.jsx("td",{"data-slot":"table-cell",className:te("ui:px-2 ui:py-7 ui:align-middle ui:whitespace-nowrap ui:*:[[role=checkbox]]:translate-y-[2px]",e),...t})}function UOt({className:e,...t}){return y.jsx("caption",{"data-slot":"table-caption",className:te("ui:text-muted-foreground ui:mt-4 ui:text-sm",e),...t})}const q$=[{bg:"ui:bg-violet-600/10",text:"ui:text-violet-600"},{bg:"ui:bg-blue-600/10",text:"ui:text-blue-600"},{bg:"ui:bg-emerald-600/10",text:"ui:text-emerald-600"},{bg:"ui:bg-amber-600/10",text:"ui:text-amber-600"},{bg:"ui:bg-rose-600/10",text:"ui:text-rose-600"},{bg:"ui:bg-cyan-600/10",text:"ui:text-cyan-600"},{bg:"ui:bg-pink-600/10",text:"ui:text-pink-600"},{bg:"ui:bg-indigo-600/10",text:"ui:text-indigo-600"},{bg:"ui:bg-teal-600/10",text:"ui:text-teal-600"},{bg:"ui:bg-orange-600/10",text:"ui:text-orange-600"}],YOt=e=>Array.from({length:e},()=>Math.floor(Math.random()*q$.length)),XOt=({items:e,header:t,className:n,onItemClick:r,dateLocale:i})=>{const[o]=l.useState(()=>YOt(e.length));return y.jsxs("div",{className:te("ui:w-full ui:bg-white ui:rounded-lg ui:border ui:shadow-sm ui:p-6",n),children:[t&&y.jsx("div",{className:"ui:mb-4 ui:text-sm ui:text-muted-foreground",children:t}),y.jsx("div",{className:"ui:relative",children:e.map((a,s)=>{const{iconConfig:c,title:u,description:d,timestamp:f,tags:h,topRightSlot:p,bottomRightSlot:g}=a,m=c.icon,b=o[s]??s%q$.length,w=q$[b],x=c.bg??w.bg,E=c.text??w.text,S=!!r;return y.jsxs("div",{className:"ui:relative ui:flex ui:gap-4 ui:pb-6 ui:last:pb-0",children:[s<e.length-1&&y.jsx("div",{className:"ui:absolute ui:left-5 ui:top-11 ui:bottom-0 ui:w-0.5 ui:bg-border/60"}),y.jsx("div",{className:"ui:relative ui:z-10 ui:size-11 ui:shrink-0 ui:border ui:border-zinc-50 ui:p-1 ui:rounded-full ui:shadow-md",children:y.jsx("div",{className:te("ui:size-full ui:flex ui:items-center ui:justify-center ui:rounded-full",x),children:y.jsx(m,{className:te("ui:size-4",E)})})}),y.jsxs("div",{role:S?"button":void 0,tabIndex:S?0:void 0,onClick:S?()=>r(a,s):void 0,onKeyDown:S?$=>$.key==="Enter"&&r(a,s):void 0,className:te("ui:relative ui:flex ui:flex-1 ui:items-start ui:justify-between ui:gap-4 ui:rounded-lg ui:border ui:bg-background ui:p-4 ui:flex-col ui:md:flex-row",S&&"ui:hover:shadow-sm ui:transition-shadow ui:duration-300 ui:cursor-pointer"),children:[y.jsxs("div",{className:"ui:space-y-1",children:[y.jsx("h3",{className:"ui:text-base",children:u}),y.jsx("p",{className:"ui:text-sm ui:text-muted-foreground",children:d}),h&&y.jsx("div",{className:"ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground",children:h.map($=>y.jsx(EQ,{variant:"outline",className:"ui:shrink-0",children:$},$))}),y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground",children:[y.jsx(Ge.Clock,{className:"ui:size-3"}),y.jsx("span",{children:Gc(new Date(f),void 0,{locale:i})})]})]}),p&&y.jsx("div",{className:"ui:shrink-0",children:p}),g&&y.jsx("div",{className:"ui:absolute ui:bottom-4 ui:right-4 ui:shrink-0",children:g})]})]},s)})})]})},HW=({onClick:e,icon:t,label:n,isInclusion:r=!1})=>y.jsxs(qn,{type:"button",variant:"outline",size:"sm",onClick:e,className:te("ui:flex ui:items-center ui:gap-2",{"ui:text-red-500 ui:hover:text-red-600":!r,"ui:text-green-500 ui:hover:text-green-600":r}),children:[t,n]}),KOt={PRODUCT:"PRODUCT"},ZOt=({fields:e,swap:t})=>{const n=l.useRef(!1);return l.useEffect(()=>{if(n.current||e.length===0)return;const r=e.findIndex(i=>i?.staticType===KOt.PRODUCT);if(r>0)t(r,0);else if(r===-1){const i=e.findIndex(o=>o?.isStaticPromotion);i>0&&t(i,0)}n.current=!0},[e,t]),y.jsxs("div",{className:"ui:space-y-4 ui:mt-4",children:[e.map(r=>{const i=r.icon,o=r.label||"Unknown Algorithm";return y.jsxs("div",{className:"ui:p-4 ui:border ui:rounded-md ui:bg-gray-50 ui:flex ui:items-center ui:justify-between",children:[y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2",children:[i&&y.jsx("span",{children:i}),y.jsx("span",{className:"ui:font-medium",children:o})]}),y.jsx("div",{className:"ui:text-sm ui:text-gray-500",children:r.value?JSON.stringify(r.value):"No value"})]},r.id)}),e.length===0&&y.jsx("div",{className:"ui:py-8 ui:text-center ui:text-gray-400 ui:border-2 ui:border-dashed ui:rounded-md",children:"No algorithms selected. Add one using the buttons above."})]})},JOt=({...e})=>{const{control:t,fieldArray:n,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o={},labels:a={},config:s={},onFiltersToggle:c,renderFilters:u,renderAlgorithmModals:d,renderSelectedAlgorithms:f}=e,{fields:h,append:p,remove:g,move:m,swap:b,update:w}=n,[x,E]=l.useState(()=>{const P=t._formValues,O=P?.EXCLUDE,z=P?.INCLUDE;return{exclude:!!O?.length,include:!!z?.length}}),S=P=>{const O={...x,[P]:!x[P]};E(O),c?.(P,O[P])},{isRecommendation:$=!1,isEmail:M=!1,isWhatsapp:A=!1,isPromotion:R=!1,showShuffleProducts:T=!1,showRecommendOtherCategories:_=!1,showShufflePromotions:N=!1}=s;return y.jsx(jY,{type:"multiple",defaultValue:["recommendation-card"],children:y.jsx(HY,{value:"recommendation-card",className:"ui:border-0",children:y.jsxs(VQ,{children:[y.jsxs(qQ,{className:"ui:pb-3 ui:bg-white",children:[y.jsx(BY,{className:"ui:p-0 ui:gap-2",children:y.jsx("span",{className:"ui:text-xl ui:font-semibold ui:text-black-900 ui:hover:text-black-900",children:a.title||"Recommendation"})}),y.jsxs(GQ,{children:[a.description||"Manage your recommendation settings",y.jsx(Zr,{control:t,name:"selectedAlgorithms",render:()=>y.jsx(_r,{children:y.jsx(Jr,{})})})]})]}),y.jsxs(WQ,{children:[y.jsxs("div",{className:"ui:flex ui:justify-between ui:items-center ui:flex-wrap ui:gap-4",children:[y.jsx("div",{className:"ui:flex ui:items-center ui:gap-2",children:d?d({control:t,intelligentAlgorithms:r,staticAlgorithms:i,fields:h,append:p,emailAlgorithmConfig:o}):y.jsx("div",{className:"ui:flex ui:items-center ui:gap-2 ui:text-sm ui:text-gray-500",children:"Please provide renderAlgorithmModals"})}),y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2 ui:flex-wrap",children:[$&&T&&y.jsx(Zm,{control:t,name:"shuffleProducts",label:a.shuffleProducts||"Shuffle Products",containerClassName:"ui:mb-0 ui:lg:ml-4"}),$&&_&&y.jsx(Zm,{control:t,name:"recommendOtherCategories",label:a.recommendOtherCategories||"Recommend Other Categories",containerClassName:"ui:mb-0 ui:lg:ml-4"}),R&&N&&y.jsx(Zm,{control:t,name:"shufflePromotions",label:a.shufflePromotions||"Shuffle Promotions",containerClassName:"ui:mb-0 ui:lg:ml-4"}),($||M||A)&&y.jsxs(y.Fragment,{children:[y.jsx(HW,{onClick:()=>S("exclude"),icon:y.jsx(Ge.CircleMinus,{size:"16"}),label:a.exclusionFilters||"Exclusion Filters"}),y.jsx(HW,{onClick:()=>S("include"),icon:y.jsx(Ge.CirclePlus,{size:"16"}),label:a.inclusionFilters||"Inclusion Filters",isInclusion:!0})]})]})]}),y.jsxs(VY,{className:"ui:p-0!",wrapperClassName:"accordion-content-overflow-visible",children:[y.jsx(p0,{className:te("ui:hidden ui:mt-4 ui:mb-4",{"ui:block":h.length>0})}),f?f({control:t,fields:h,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o,update:w,move:m,swap:b,remove:g,config:s}):y.jsx(ZOt,{control:t,fields:h,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o,update:w,move:m,swap:b,remove:g,config:s}),x.exclude&&u&&y.jsxs(y.Fragment,{children:[y.jsx(p0,{className:"ui:mt-4"}),u("exclude")]}),x.include&&u&&y.jsxs(y.Fragment,{children:[y.jsx(p0,{className:"ui:mt-4"}),u("include")]})]})]})]})})})};var r0e=typeof global=="object"&&global&&global.Object===Object&&global,QOt=typeof self=="object"&&self&&self.Object===Object&&self,Ml=r0e||QOt||Function("return this")(),ic=Ml.Symbol,i0e=Object.prototype,eRt=i0e.hasOwnProperty,tRt=i0e.toString,Tf=ic?ic.toStringTag:void 0;function nRt(e){var t=eRt.call(e,Tf),n=e[Tf];try{e[Tf]=void 0;var r=!0}catch{}var i=tRt.call(e);return r&&(t?e[Tf]=n:delete e[Tf]),i}var rRt=Object.prototype,iRt=rRt.toString;function oRt(e){return iRt.call(e)}var aRt="[object Null]",lRt="[object Undefined]",BW=ic?ic.toStringTag:void 0;function lf(e){return e==null?e===void 0?lRt:aRt:BW&&BW in Object(e)?nRt(e):oRt(e)}function fs(e){return e!=null&&typeof e=="object"}var gu=Array.isArray;function Nc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function o0e(e){return e}var sRt="[object AsyncFunction]",cRt="[object Function]",uRt="[object GeneratorFunction]",dRt="[object Proxy]";function NI(e){if(!Nc(e))return!1;var t=lf(e);return t==cRt||t==uRt||t==sRt||t==dRt}var pE=Ml["__core-js_shared__"],VW=(function(){var e=/[^.]+$/.exec(pE&&pE.keys&&pE.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function fRt(e){return!!VW&&VW in e}var hRt=Function.prototype,pRt=hRt.toString;function Gu(e){if(e!=null){try{return pRt.call(e)}catch{}try{return e+""}catch{}}return""}var mRt=/[\\^$.*+?()[\]{}|]/g,gRt=/^\[object .+?Constructor\]$/,vRt=Function.prototype,bRt=Object.prototype,yRt=vRt.toString,wRt=bRt.hasOwnProperty,xRt=RegExp("^"+yRt.call(wRt).replace(mRt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ERt(e){if(!Nc(e)||fRt(e))return!1;var t=NI(e)?xRt:gRt;return t.test(Gu(e))}function CRt(e,t){return e?.[t]}function Wu(e,t){var n=CRt(e,t);return ERt(n)?n:void 0}var G$=Wu(Ml,"WeakMap"),qW=Object.create,SRt=(function(){function e(){}return function(t){if(!Nc(t))return{};if(qW)return qW(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function $Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function MRt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ARt=800,NRt=16,ORt=Date.now;function RRt(e){var t=0,n=0;return function(){var r=ORt(),i=NRt-(r-n);if(n=r,i>0){if(++t>=ARt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function IRt(e){return function(){return e}}var ev=(function(){try{var e=Wu(Object,"defineProperty");return e({},"",{}),e}catch{}})(),PRt=ev?function(e,t){return ev(e,"toString",{configurable:!0,enumerable:!1,value:IRt(t),writable:!0})}:o0e,FRt=RRt(PRt);function TRt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var DRt=9007199254740991,zRt=/^(?:0|[1-9]\d*)$/;function a0e(e,t){var n=typeof e;return t=t??DRt,!!t&&(n=="number"||n!="symbol"&&zRt.test(e))&&e>-1&&e%1==0&&e<t}function OI(e,t,n){t=="__proto__"&&ev?ev(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function J2(e,t){return e===t||e!==e&&t!==t}var _Rt=Object.prototype,kRt=_Rt.hasOwnProperty;function l0e(e,t,n){var r=e[t];(!(kRt.call(e,t)&&J2(r,n))||n===void 0&&!(t in e))&&OI(e,t,n)}function LRt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=void 0;c===void 0&&(c=e[s]),i?OI(n,s,c):l0e(n,s,c)}return n}var GW=Math.max;function jRt(e,t,n){return t=GW(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=GW(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),$Rt(e,this,s)}}function HRt(e,t){return FRt(jRt(e,t,o0e),e+"")}var BRt=9007199254740991;function s0e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=BRt}function D5(e){return e!=null&&s0e(e.length)&&!NI(e)}function VRt(e,t,n){if(!Nc(n))return!1;var r=typeof t;return(r=="number"?D5(n)&&a0e(t,n.length):r=="string"&&t in n)?J2(n[t],e):!1}function qRt(e){return HRt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&VRt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var GRt=Object.prototype;function RI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GRt;return e===n}function WRt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var URt="[object Arguments]";function WW(e){return fs(e)&&lf(e)==URt}var c0e=Object.prototype,YRt=c0e.hasOwnProperty,XRt=c0e.propertyIsEnumerable,W$=WW((function(){return arguments})())?WW:function(e){return fs(e)&&YRt.call(e,"callee")&&!XRt.call(e,"callee")};function KRt(){return!1}var u0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,UW=u0e&&typeof module=="object"&&module&&!module.nodeType&&module,ZRt=UW&&UW.exports===u0e,YW=ZRt?Ml.Buffer:void 0,JRt=YW?YW.isBuffer:void 0,qh=JRt||KRt,QRt="[object Arguments]",eIt="[object Array]",tIt="[object Boolean]",nIt="[object Date]",rIt="[object Error]",iIt="[object Function]",oIt="[object Map]",aIt="[object Number]",lIt="[object Object]",sIt="[object RegExp]",cIt="[object Set]",uIt="[object String]",dIt="[object WeakMap]",fIt="[object ArrayBuffer]",hIt="[object DataView]",pIt="[object Float32Array]",mIt="[object Float64Array]",gIt="[object Int8Array]",vIt="[object Int16Array]",bIt="[object Int32Array]",yIt="[object Uint8Array]",wIt="[object Uint8ClampedArray]",xIt="[object Uint16Array]",EIt="[object Uint32Array]",On={};On[pIt]=On[mIt]=On[gIt]=On[vIt]=On[bIt]=On[yIt]=On[wIt]=On[xIt]=On[EIt]=!0;On[QRt]=On[eIt]=On[fIt]=On[tIt]=On[hIt]=On[nIt]=On[rIt]=On[iIt]=On[oIt]=On[aIt]=On[lIt]=On[sIt]=On[cIt]=On[uIt]=On[dIt]=!1;function CIt(e){return fs(e)&&s0e(e.length)&&!!On[lf(e)]}function II(e){return function(t){return e(t)}}var d0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=d0e&&typeof module=="object"&&module&&!module.nodeType&&module,SIt=m0&&m0.exports===d0e,mE=SIt&&r0e.process,I1=(function(){try{var e=m0&&m0.require&&m0.require("util").types;return e||mE&&mE.binding&&mE.binding("util")}catch{}})(),XW=I1&&I1.isTypedArray,PI=XW?II(XW):CIt,$It=Object.prototype,MIt=$It.hasOwnProperty;function f0e(e,t){var n=gu(e),r=!n&&W$(e),i=!n&&!r&&qh(e),o=!n&&!r&&!i&&PI(e),a=n||r||i||o,s=a?WRt(e.length,String):[],c=s.length;for(var u in e)(t||MIt.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||a0e(u,c)))&&s.push(u);return s}function h0e(e,t){return function(n){return e(t(n))}}var AIt=h0e(Object.keys,Object),NIt=Object.prototype,OIt=NIt.hasOwnProperty;function RIt(e){if(!RI(e))return AIt(e);var t=[];for(var n in Object(e))OIt.call(e,n)&&n!="constructor"&&t.push(n);return t}function IIt(e){return D5(e)?f0e(e):RIt(e)}function PIt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var FIt=Object.prototype,TIt=FIt.hasOwnProperty;function DIt(e){if(!Nc(e))return PIt(e);var t=RI(e),n=[];for(var r in e)r=="constructor"&&(t||!TIt.call(e,r))||n.push(r);return n}function p0e(e){return D5(e)?f0e(e,!0):DIt(e)}var Gh=Wu(Object,"create");function zIt(){this.__data__=Gh?Gh(null):{},this.size=0}function _It(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kIt="__lodash_hash_undefined__",LIt=Object.prototype,jIt=LIt.hasOwnProperty;function HIt(e){var t=this.__data__;if(Gh){var n=t[e];return n===kIt?void 0:n}return jIt.call(t,e)?t[e]:void 0}var BIt=Object.prototype,VIt=BIt.hasOwnProperty;function qIt(e){var t=this.__data__;return Gh?t[e]!==void 0:VIt.call(t,e)}var GIt="__lodash_hash_undefined__";function WIt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gh&&t===void 0?GIt:t,this}function vu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vu.prototype.clear=zIt;vu.prototype.delete=_It;vu.prototype.get=HIt;vu.prototype.has=qIt;vu.prototype.set=WIt;function UIt(){this.__data__=[],this.size=0}function z5(e,t){for(var n=e.length;n--;)if(J2(e[n][0],t))return n;return-1}var YIt=Array.prototype,XIt=YIt.splice;function KIt(e){var t=this.__data__,n=z5(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():XIt.call(t,n,1),--this.size,!0}function ZIt(e){var t=this.__data__,n=z5(t,e);return n<0?void 0:t[n][1]}function JIt(e){return z5(this.__data__,e)>-1}function QIt(e,t){var n=this.__data__,r=z5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=UIt;Es.prototype.delete=KIt;Es.prototype.get=ZIt;Es.prototype.has=JIt;Es.prototype.set=QIt;var Wh=Wu(Ml,"Map");function ePt(){this.size=0,this.__data__={hash:new vu,map:new(Wh||Es),string:new vu}}function tPt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _5(e,t){var n=e.__data__;return tPt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function nPt(e){var t=_5(this,e).delete(e);return this.size-=t?1:0,t}function rPt(e){return _5(this,e).get(e)}function iPt(e){return _5(this,e).has(e)}function oPt(e,t){var n=_5(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Uu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uu.prototype.clear=ePt;Uu.prototype.delete=nPt;Uu.prototype.get=rPt;Uu.prototype.has=iPt;Uu.prototype.set=oPt;function aPt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var m0e=h0e(Object.getPrototypeOf,Object),lPt="[object Object]",sPt=Function.prototype,cPt=Object.prototype,g0e=sPt.toString,uPt=cPt.hasOwnProperty,dPt=g0e.call(Object);function fPt(e){if(!fs(e)||lf(e)!=lPt)return!1;var t=m0e(e);if(t===null)return!0;var n=uPt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&g0e.call(n)==dPt}function hPt(){this.__data__=new Es,this.size=0}function pPt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mPt(e){return this.__data__.get(e)}function gPt(e){return this.__data__.has(e)}var vPt=200;function bPt(e,t){var n=this.__data__;if(n instanceof Es){var r=n.__data__;if(!Wh||r.length<vPt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Uu(r)}return n.set(e,t),this.size=n.size,this}function il(e){var t=this.__data__=new Es(e);this.size=t.size}il.prototype.clear=hPt;il.prototype.delete=pPt;il.prototype.get=mPt;il.prototype.has=gPt;il.prototype.set=bPt;var v0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,KW=v0e&&typeof module=="object"&&module&&!module.nodeType&&module,yPt=KW&&KW.exports===v0e,ZW=yPt?Ml.Buffer:void 0,JW=ZW?ZW.allocUnsafe:void 0;function b0e(e,t){if(t)return e.slice();var n=e.length,r=JW?JW(n):new e.constructor(n);return e.copy(r),r}function wPt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function xPt(){return[]}var EPt=Object.prototype,CPt=EPt.propertyIsEnumerable,QW=Object.getOwnPropertySymbols,SPt=QW?function(e){return e==null?[]:(e=Object(e),wPt(QW(e),function(t){return CPt.call(e,t)}))}:xPt;function $Pt(e,t,n){var r=t(e);return gu(e)?r:aPt(r,n(e))}function U$(e){return $Pt(e,IIt,SPt)}var Y$=Wu(Ml,"DataView"),X$=Wu(Ml,"Promise"),K$=Wu(Ml,"Set"),eU="[object Map]",MPt="[object Object]",tU="[object Promise]",nU="[object Set]",rU="[object WeakMap]",iU="[object DataView]",APt=Gu(Y$),NPt=Gu(Wh),OPt=Gu(X$),RPt=Gu(K$),IPt=Gu(G$),oa=lf;(Y$&&oa(new Y$(new ArrayBuffer(1)))!=iU||Wh&&oa(new Wh)!=eU||X$&&oa(X$.resolve())!=tU||K$&&oa(new K$)!=nU||G$&&oa(new G$)!=rU)&&(oa=function(e){var t=lf(e),n=t==MPt?e.constructor:void 0,r=n?Gu(n):"";if(r)switch(r){case APt:return iU;case NPt:return eU;case OPt:return tU;case RPt:return nU;case IPt:return rU}return t});var PPt=Object.prototype,FPt=PPt.hasOwnProperty;function TPt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&FPt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var tv=Ml.Uint8Array;function FI(e){var t=new e.constructor(e.byteLength);return new tv(t).set(new tv(e)),t}function DPt(e,t){var n=FI(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var zPt=/\w*$/;function _Pt(e){var t=new e.constructor(e.source,zPt.exec(e));return t.lastIndex=e.lastIndex,t}var oU=ic?ic.prototype:void 0,aU=oU?oU.valueOf:void 0;function kPt(e){return aU?Object(aU.call(e)):{}}function y0e(e,t){var n=t?FI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var LPt="[object Boolean]",jPt="[object Date]",HPt="[object Map]",BPt="[object Number]",VPt="[object RegExp]",qPt="[object Set]",GPt="[object String]",WPt="[object Symbol]",UPt="[object ArrayBuffer]",YPt="[object DataView]",XPt="[object Float32Array]",KPt="[object Float64Array]",ZPt="[object Int8Array]",JPt="[object Int16Array]",QPt="[object Int32Array]",eFt="[object Uint8Array]",tFt="[object Uint8ClampedArray]",nFt="[object Uint16Array]",rFt="[object Uint32Array]";function iFt(e,t,n){var r=e.constructor;switch(t){case UPt:return FI(e);case LPt:case jPt:return new r(+e);case YPt:return DPt(e);case XPt:case KPt:case ZPt:case JPt:case QPt:case eFt:case tFt:case nFt:case rFt:return y0e(e,n);case HPt:return new r;case BPt:case GPt:return new r(e);case VPt:return _Pt(e);case qPt:return new r;case WPt:return kPt(e)}}function w0e(e){return typeof e.constructor=="function"&&!RI(e)?SRt(m0e(e)):{}}var oFt="[object Map]";function aFt(e){return fs(e)&&oa(e)==oFt}var lU=I1&&I1.isMap,lFt=lU?II(lU):aFt,sFt="[object Set]";function cFt(e){return fs(e)&&oa(e)==sFt}var sU=I1&&I1.isSet,uFt=sU?II(sU):cFt,dFt=1,x0e="[object Arguments]",fFt="[object Array]",hFt="[object Boolean]",pFt="[object Date]",mFt="[object Error]",E0e="[object Function]",gFt="[object GeneratorFunction]",vFt="[object Map]",bFt="[object Number]",C0e="[object Object]",yFt="[object RegExp]",wFt="[object Set]",xFt="[object String]",EFt="[object Symbol]",CFt="[object WeakMap]",SFt="[object ArrayBuffer]",$Ft="[object DataView]",MFt="[object Float32Array]",AFt="[object Float64Array]",NFt="[object Int8Array]",OFt="[object Int16Array]",RFt="[object Int32Array]",IFt="[object Uint8Array]",PFt="[object Uint8ClampedArray]",FFt="[object Uint16Array]",TFt="[object Uint32Array]",$n={};$n[x0e]=$n[fFt]=$n[SFt]=$n[$Ft]=$n[hFt]=$n[pFt]=$n[MFt]=$n[AFt]=$n[NFt]=$n[OFt]=$n[RFt]=$n[vFt]=$n[bFt]=$n[C0e]=$n[yFt]=$n[wFt]=$n[xFt]=$n[EFt]=$n[IFt]=$n[PFt]=$n[FFt]=$n[TFt]=!0;$n[mFt]=$n[E0e]=$n[CFt]=!1;function o3(e,t,n,r,i,o){var a,s=t&dFt;if(a!==void 0)return a;if(!Nc(e))return e;var c=gu(e);if(c)a=TPt(e);else{var u=oa(e),d=u==E0e||u==gFt;if(qh(e))return b0e(e,s);if(u==C0e||u==x0e||d&&!i)a=d?{}:w0e(e);else{if(!$n[u])return i?e:{};a=iFt(e,u,s)}}o||(o=new il);var f=o.get(e);if(f)return f;o.set(e,a),uFt(e)?e.forEach(function(g){a.add(o3(g,t,n,g,e,o))}):lFt(e)&&e.forEach(function(g,m){a.set(m,o3(g,t,n,m,e,o))});var h=U$,p=c?void 0:h(e);return TRt(p||e,function(g,m){p&&(m=g,g=e[m]),l0e(a,m,o3(g,t,n,m,e,o))}),a}var DFt=1,zFt=4;function Qd(e){return o3(e,DFt|zFt)}var _Ft="__lodash_hash_undefined__";function kFt(e){return this.__data__.set(e,_Ft),this}function LFt(e){return this.__data__.has(e)}function nv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Uu;++t<n;)this.add(e[t])}nv.prototype.add=nv.prototype.push=kFt;nv.prototype.has=LFt;function jFt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function HFt(e,t){return e.has(t)}var BFt=1,VFt=2;function S0e(e,t,n,r,i,o){var a=n&BFt,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&VFt?new nv:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],m=t[f];if(r)var b=a?r(m,g,f,t,e,o):r(g,m,f,e,t,o);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!jFt(t,function(w,x){if(!HFt(p,x)&&(g===w||i(g,w,n,r,o)))return p.push(x)})){h=!1;break}}else if(!(g===m||i(g,m,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function qFt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function GFt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var WFt=1,UFt=2,YFt="[object Boolean]",XFt="[object Date]",KFt="[object Error]",ZFt="[object Map]",JFt="[object Number]",QFt="[object RegExp]",eTt="[object Set]",tTt="[object String]",nTt="[object Symbol]",rTt="[object ArrayBuffer]",iTt="[object DataView]",cU=ic?ic.prototype:void 0,gE=cU?cU.valueOf:void 0;function oTt(e,t,n,r,i,o,a){switch(n){case iTt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rTt:return!(e.byteLength!=t.byteLength||!o(new tv(e),new tv(t)));case YFt:case XFt:case JFt:return J2(+e,+t);case KFt:return e.name==t.name&&e.message==t.message;case QFt:case tTt:return e==t+"";case ZFt:var s=qFt;case eTt:var c=r&WFt;if(s||(s=GFt),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=UFt,a.set(e,t);var d=S0e(s(e),s(t),r,i,o,a);return a.delete(e),d;case nTt:if(gE)return gE.call(e)==gE.call(t)}return!1}var aTt=1,lTt=Object.prototype,sTt=lTt.hasOwnProperty;function cTt(e,t,n,r,i,o){var a=n&aTt,s=U$(e),c=s.length,u=U$(t),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var h=s[f];if(!(a?h in t:sTt.call(t,h)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var b=a;++f<c;){h=s[f];var w=e[h],x=t[h];if(r)var E=a?r(x,w,h,t,e,o):r(w,x,h,e,t,o);if(!(E===void 0?w===x||i(w,x,n,r,o):E)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var S=e.constructor,$=t.constructor;S!=$&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof $=="function"&&$ instanceof $)&&(m=!1)}return o.delete(e),o.delete(t),m}var uTt=1,uU="[object Arguments]",dU="[object Array]",vm="[object Object]",dTt=Object.prototype,fU=dTt.hasOwnProperty;function fTt(e,t,n,r,i,o){var a=gu(e),s=gu(t),c=a?dU:oa(e),u=s?dU:oa(t);c=c==uU?vm:c,u=u==uU?vm:u;var d=c==vm,f=u==vm,h=c==u;if(h&&qh(e)){if(!qh(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new il),a||PI(e)?S0e(e,t,n,r,i,o):oTt(e,t,c,n,r,i,o);if(!(n&uTt)){var p=d&&fU.call(e,"__wrapped__"),g=f&&fU.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,b=g?t.value():t;return o||(o=new il),i(m,b,n,r,o)}}return h?(o||(o=new il),cTt(e,t,n,r,i,o)):!1}function $0e(e,t,n,r,i){return e===t?!0:e==null||t==null||!fs(e)&&!fs(t)?e!==e&&t!==t:fTt(e,t,n,r,$0e,i)}function hTt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[++i];if(n(o[c],c,o)===!1)break}return t}}var pTt=hTt();function Z$(e,t,n){(n!==void 0&&!J2(e[t],n)||n===void 0&&!(t in e))&&OI(e,t,n)}function mTt(e){return fs(e)&&D5(e)}function J$(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function gTt(e){return LRt(e,p0e(e))}function vTt(e,t,n,r,i,o,a){var s=J$(e,n),c=J$(t,n),u=a.get(c);if(u){Z$(e,n,u);return}var d=o?o(s,c,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=gu(c),p=!h&&qh(c),g=!h&&!p&&PI(c);d=c,h||p||g?gu(s)?d=s:mTt(s)?d=MRt(s):p?(f=!1,d=b0e(c,!0)):g?(f=!1,d=y0e(c,!0)):d=[]:fPt(c)||W$(c)?(d=s,W$(s)?d=gTt(s):(!Nc(s)||NI(s))&&(d=w0e(c))):f=!1}f&&(a.set(c,d),i(d,c,r,o,a),a.delete(c)),Z$(e,n,d)}function M0e(e,t,n,r,i){e!==t&&pTt(t,function(o,a){if(i||(i=new il),Nc(o))vTt(e,t,a,n,M0e,r,i);else{var s=r?r(J$(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Z$(e,a,s)}},p0e)}function TI(e,t){return $0e(e,t)}var Us=qRt(function(e,t,n){M0e(e,t,n)}),ft=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(ft||{});class fl{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=ft.TYPE&ft.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ft.LEVEL|i:ft.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class e1 extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const A0e=class Q${constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new e1(`Unable to create ${n} blot`);const o=i,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),s=new o(t,a,r);return Q$.blots.set(s.domNode,s),s}find(t,n=!1){return Q$.find(t,n)}query(t,n=ft.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&ft.LEVEL&ft.BLOCK?r=this.types.block:t&ft.LEVEL&ft.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&ft.LEVEL&r.scope&&n&ft.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new e1("Invalid definition");if(r&&n.blotName==="abstract")throw new e1("Cannot register abstract class");const o=r?n.blotName:i?n.attrName:void 0;return this.types[o]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(a=>a.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(this.tags[a]==null||n.className==null)&&(this.tags[a]=n)}))),n})}};A0e.blots=new WeakMap;let P1=A0e;function hU(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class bTt extends fl{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){hU(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(hU(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const Da=bTt;function vE(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class yTt extends fl{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[vE(this.keyName)]=n,!0):!1}remove(t){t.style[vE(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[vE(this.keyName)];return this.canAdd(t,n)?n:""}}const Oc=yTt;class wTt{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=P1.find(this.domNode);if(t==null)return;const n=fl.keys(this.domNode),r=Da.keys(this.domNode),i=Oc.keys(this.domNode);n.concat(r).concat(i).forEach(o=>{const a=t.scroll.query(o,ft.ATTRIBUTE);a instanceof fl&&(this.attributes[a.attrName]=a)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const k5=wTt,N0e=class{constructor(t,n){this.scroll=t,this.domNode=n,P1.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new e1("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),P1.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const o=this.isolate(t,n);if(this.scroll.query(r,ft.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,ft.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);o.wrap(a),a.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),o=this.split(t);this.parent.insertBefore(i,o||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new e1(`Cannot wrap ${t}`);return r.appendChild(this),r}};N0e.blotName="abstract";let O0e=N0e;const R0e=class extends O0e{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};R0e.scope=ft.INLINE_BLOT;let xTt=R0e;const Wr=xTt;class ETt{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(t<o||n&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,o]=this.find(t);let a=t-o;const s=this.iterator(i);let c=s();for(;c&&a<t+n;){const u=c.length();t>a?r(c,t-a,Math.min(n,a+u-t)):r(c,0,Math.min(u,t+n-a)),a+=u,c=s()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function pU(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(ft.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const I0e=class Fs extends O0e{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Fs.uiClass&&this.uiNode.classList.add(Fs.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new ETt,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=pU(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof e1)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,o)=>{r.deleteAt(i,o)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof Fs?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(a,s,c)=>{(t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t)&&i.push(a),a instanceof Fs&&(i=i.concat(a.descendants(t,s,o))),o-=c}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ft.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof Fs?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(o,a,s)=>{o.formatAt(a,s,r,i)})}insertAt(t,n,r){const[i,o]=this.children.find(t);if(i)i.insertAt(o,n,r);else{const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof Fs?o.concat(r.path(i,n)):(r!=null&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof Fs&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,a)=>{const s=i.split(o,n);s!=null&&r.appendChild(s)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(o);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;o.nextSibling!=null&&(a=this.scroll.find(o.nextSibling));const s=pU(o,this.scroll);(s.next!==a||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,a||void 0))}),this.enforceAllowedChildren()}};I0e.uiClass="";let CTt=I0e;const ma=CTt;function STt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const Cd=class Sd extends ma{static create(t){return super.create(t)}static formats(t,n){const r=n.query(Sd.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new k5(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Sd||(r=r.wrap(Sd.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,ft.INLINE);if(r==null)return;r instanceof fl?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ft.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Sd&&r.prev===this&&STt(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof Sd&&this.attributes.move(r),r}};Cd.allowedChildren=[Cd,Wr],Cd.blotName="inline",Cd.scope=ft.INLINE_BLOT,Cd.tagName="SPAN";let $Tt=Cd;const DI=$Tt,$d=class eM extends ma{static create(t){return super.create(t)}static formats(t,n){const r=n.query(eM.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new k5(this.domNode)}format(t,n){const r=this.scroll.query(t,ft.BLOCK);r!=null&&(r instanceof fl?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(eM.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,ft.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,ft.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(n,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};$d.blotName="block",$d.scope=ft.BLOCK_BLOT,$d.tagName="P",$d.allowedChildren=[DI,$d,Wr];let MTt=$d;const Uh=MTt,tM=class extends ma{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};tM.blotName="container",tM.scope=ft.BLOCK_BLOT;let ATt=tM;const L5=ATt;class NTt extends Wr{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Zi=NTt,OTt={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},RTt=100,Md=class extends ma{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,OTt),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=ft.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const o=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&o(c.parent))},a=c=>{r.has(c.domNode)&&(c instanceof ma&&c.children.forEach(a),r.delete(c.domNode),c.optimize(n))};let s=t;for(let c=0;s.length>0;c+=1){if(c>=RTt)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(o(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);o(h,!1),h instanceof ma&&h.children.forEach(p=>{o(p,!1)})})):u.type==="attributes"&&o(d.prev)),o(d))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),i=s.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};Md.blotName="scroll",Md.defaultChild=Uh,Md.allowedChildren=[Uh,L5],Md.scope=ft.BLOCK_BLOT,Md.tagName="DIV";let ITt=Md;const zI=ITt,nM=class P0e extends Wr{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof P0e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};nM.blotName="text",nM.scope=ft.INLINE_BLOT;let PTt=nM;const rv=PTt,FTt=Object.freeze(Object.defineProperty({__proto__:null,Attributor:fl,AttributorStore:k5,BlockBlot:Uh,ClassAttributor:Da,ContainerBlot:L5,EmbedBlot:Zi,InlineBlot:DI,LeafBlot:Wr,ParentBlot:ma,Registry:P1,Scope:ft,ScrollBlot:zI,StyleAttributor:Oc,TextBlot:rv},Symbol.toStringTag,{value:"Module"}));var bm={exports:{}},bE,mU;function TTt(){if(mU)return bE;mU=1;var e=-1,t=1,n=0;function r(N,P,O,z,L){if(N===P)return N?[[n,N]]:[];if(O!=null){var D=T(N,P,O);if(D)return D}var k=s(N,P),H=N.substring(0,k);N=N.substring(k),P=P.substring(k),k=u(N,P);var W=N.substring(N.length-k);N=N.substring(0,N.length-k),P=P.substring(0,P.length-k);var F=i(N,P);return H&&F.unshift([n,H]),W&&F.push([n,W]),x(F,L),z&&f(F),F}function i(N,P){var O;if(!N)return[[t,P]];if(!P)return[[e,N]];var z=N.length>P.length?N:P,L=N.length>P.length?P:N,D=z.indexOf(L);if(D!==-1)return O=[[t,z.substring(0,D)],[n,L],[t,z.substring(D+L.length)]],N.length>P.length&&(O[0][0]=O[2][0]=e),O;if(L.length===1)return[[e,N],[t,P]];var k=d(N,P);if(k){var H=k[0],W=k[1],F=k[2],K=k[3],j=k[4],U=r(H,F),Y=r(W,K);return U.concat([[n,j]],Y)}return o(N,P)}function o(N,P){for(var O=N.length,z=P.length,L=Math.ceil((O+z)/2),D=L,k=2*L,H=new Array(k),W=new Array(k),F=0;F<k;F++)H[F]=-1,W[F]=-1;H[D+1]=0,W[D+1]=0;for(var K=O-z,j=K%2!==0,U=0,Y=0,q=0,Q=0,X=0;X<L;X++){for(var Z=-X+U;Z<=X-Y;Z+=2){var J=D+Z,ee;Z===-X||Z!==X&&H[J-1]<H[J+1]?ee=H[J+1]:ee=H[J-1]+1;for(var ce=ee-Z;ee<O&&ce<z&&N.charAt(ee)===P.charAt(ce);)ee++,ce++;if(H[J]=ee,ee>O)Y+=2;else if(ce>z)U+=2;else if(j){var B=D+K-Z;if(B>=0&&B<k&&W[B]!==-1){var ne=O-W[B];if(ee>=ne)return a(N,P,ee,ce)}}}for(var G=-X+q;G<=X-Q;G+=2){var B=D+G,ne;G===-X||G!==X&&W[B-1]<W[B+1]?ne=W[B+1]:ne=W[B-1]+1;for(var se=ne-G;ne<O&&se<z&&N.charAt(O-ne-1)===P.charAt(z-se-1);)ne++,se++;if(W[B]=ne,ne>O)Q+=2;else if(se>z)q+=2;else if(!j){var J=D+K-G;if(J>=0&&J<k&&H[J]!==-1){var ee=H[J],ce=D+ee-J;if(ne=O-ne,ee>=ne)return a(N,P,ee,ce)}}}}return[[e,N],[t,P]]}function a(N,P,O,z){var L=N.substring(0,O),D=P.substring(0,z),k=N.substring(O),H=P.substring(z),W=r(L,D),F=r(k,H);return W.concat(F)}function s(N,P){if(!N||!P||N.charAt(0)!==P.charAt(0))return 0;for(var O=0,z=Math.min(N.length,P.length),L=z,D=0;O<L;)N.substring(D,L)==P.substring(D,L)?(O=L,D=O):z=L,L=Math.floor((z-O)/2+O);return E(N.charCodeAt(L-1))&&L--,L}function c(N,P){var O=N.length,z=P.length;if(O==0||z==0)return 0;O>z?N=N.substring(O-z):O<z&&(P=P.substring(0,O));var L=Math.min(O,z);if(N==P)return L;for(var D=0,k=1;;){var H=N.substring(L-k),W=P.indexOf(H);if(W==-1)return D;k+=W,(W==0||N.substring(L-k)==P.substring(0,k))&&(D=k,k++)}}function u(N,P){if(!N||!P||N.slice(-1)!==P.slice(-1))return 0;for(var O=0,z=Math.min(N.length,P.length),L=z,D=0;O<L;)N.substring(N.length-L,N.length-D)==P.substring(P.length-L,P.length-D)?(O=L,D=O):z=L,L=Math.floor((z-O)/2+O);return S(N.charCodeAt(N.length-L))&&L--,L}function d(N,P){var O=N.length>P.length?N:P,z=N.length>P.length?P:N;if(O.length<4||z.length*2<O.length)return null;function L(Y,q,Q){for(var X=Y.substring(Q,Q+Math.floor(Y.length/4)),Z=-1,J="",ee,ce,B,ne;(Z=q.indexOf(X,Z+1))!==-1;){var G=s(Y.substring(Q),q.substring(Z)),se=u(Y.substring(0,Q),q.substring(0,Z));J.length<se+G&&(J=q.substring(Z-se,Z)+q.substring(Z,Z+G),ee=Y.substring(0,Q-se),ce=Y.substring(Q+G),B=q.substring(0,Z-se),ne=q.substring(Z+G))}return J.length*2>=Y.length?[ee,ce,B,ne,J]:null}var D=L(O,z,Math.ceil(O.length/4)),k=L(O,z,Math.ceil(O.length/2)),H;if(!D&&!k)return null;k?D?H=D[4].length>k[4].length?D:k:H=k:H=D;var W,F,K,j;N.length>P.length?(W=H[0],F=H[1],K=H[2],j=H[3]):(K=H[0],j=H[1],W=H[2],F=H[3]);var U=H[4];return[W,F,K,j,U]}function f(N){for(var P=!1,O=[],z=0,L=null,D=0,k=0,H=0,W=0,F=0;D<N.length;)N[D][0]==n?(O[z++]=D,k=W,H=F,W=0,F=0,L=N[D][1]):(N[D][0]==t?W+=N[D][1].length:F+=N[D][1].length,L&&L.length<=Math.max(k,H)&&L.length<=Math.max(W,F)&&(N.splice(O[z-1],0,[e,L]),N[O[z-1]+1][0]=t,z--,z--,D=z>0?O[z-1]:-1,k=0,H=0,W=0,F=0,L=null,P=!0)),D++;for(P&&x(N),w(N),D=1;D<N.length;){if(N[D-1][0]==e&&N[D][0]==t){var K=N[D-1][1],j=N[D][1],U=c(K,j),Y=c(j,K);U>=Y?(U>=K.length/2||U>=j.length/2)&&(N.splice(D,0,[n,j.substring(0,U)]),N[D-1][1]=K.substring(0,K.length-U),N[D+1][1]=j.substring(U),D++):(Y>=K.length/2||Y>=j.length/2)&&(N.splice(D,0,[n,K.substring(0,Y)]),N[D-1][0]=t,N[D-1][1]=j.substring(0,j.length-Y),N[D+1][0]=e,N[D+1][1]=K.substring(Y),D++),D++}D++}}var h=/[^a-zA-Z0-9]/,p=/\s/,g=/[\r\n]/,m=/\n\r?\n$/,b=/^\r?\n\r?\n/;function w(N){function P(Y,q){if(!Y||!q)return 6;var Q=Y.charAt(Y.length-1),X=q.charAt(0),Z=Q.match(h),J=X.match(h),ee=Z&&Q.match(p),ce=J&&X.match(p),B=ee&&Q.match(g),ne=ce&&X.match(g),G=B&&Y.match(m),se=ne&&q.match(b);return G||se?5:B||ne?4:Z&&!ee&&ce?3:ee||ce?2:Z||J?1:0}for(var O=1;O<N.length-1;){if(N[O-1][0]==n&&N[O+1][0]==n){var z=N[O-1][1],L=N[O][1],D=N[O+1][1],k=u(z,L);if(k){var H=L.substring(L.length-k);z=z.substring(0,z.length-k),L=H+L.substring(0,L.length-k),D=H+D}for(var W=z,F=L,K=D,j=P(z,L)+P(L,D);L.charAt(0)===D.charAt(0);){z+=L.charAt(0),L=L.substring(1)+D.charAt(0),D=D.substring(1);var U=P(z,L)+P(L,D);U>=j&&(j=U,W=z,F=L,K=D)}N[O-1][1]!=W&&(W?N[O-1][1]=W:(N.splice(O-1,1),O--),N[O][1]=F,K?N[O+1][1]=K:(N.splice(O+1,1),O--))}O++}}function x(N,P){N.push([n,""]);for(var O=0,z=0,L=0,D="",k="",H;O<N.length;){if(O<N.length-1&&!N[O][1]){N.splice(O,1);continue}switch(N[O][0]){case t:L++,k+=N[O][1],O++;break;case e:z++,D+=N[O][1],O++;break;case n:var W=O-L-z-1;if(P){if(W>=0&&M(N[W][1])){var F=N[W][1].slice(-1);if(N[W][1]=N[W][1].slice(0,-1),D=F+D,k=F+k,!N[W][1]){N.splice(W,1),O--;var K=W-1;N[K]&&N[K][0]===t&&(L++,k=N[K][1]+k,K--),N[K]&&N[K][0]===e&&(z++,D=N[K][1]+D,K--),W=K}}if($(N[O][1])){var F=N[O][1].charAt(0);N[O][1]=N[O][1].slice(1),D+=F,k+=F}}if(O<N.length-1&&!N[O][1]){N.splice(O,1);break}if(D.length>0||k.length>0){D.length>0&&k.length>0&&(H=s(k,D),H!==0&&(W>=0?N[W][1]+=k.substring(0,H):(N.splice(0,0,[n,k.substring(0,H)]),O++),k=k.substring(H),D=D.substring(H)),H=u(k,D),H!==0&&(N[O][1]=k.substring(k.length-H)+N[O][1],k=k.substring(0,k.length-H),D=D.substring(0,D.length-H)));var j=L+z;D.length===0&&k.length===0?(N.splice(O-j,j),O=O-j):D.length===0?(N.splice(O-j,j,[t,k]),O=O-j+1):k.length===0?(N.splice(O-j,j,[e,D]),O=O-j+1):(N.splice(O-j,j,[e,D],[t,k]),O=O-j+2)}O!==0&&N[O-1][0]===n?(N[O-1][1]+=N[O][1],N.splice(O,1)):O++,L=0,z=0,D="",k="";break}}N[N.length-1][1]===""&&N.pop();var U=!1;for(O=1;O<N.length-1;)N[O-1][0]===n&&N[O+1][0]===n&&(N[O][1].substring(N[O][1].length-N[O-1][1].length)===N[O-1][1]?(N[O][1]=N[O-1][1]+N[O][1].substring(0,N[O][1].length-N[O-1][1].length),N[O+1][1]=N[O-1][1]+N[O+1][1],N.splice(O-1,1),U=!0):N[O][1].substring(0,N[O+1][1].length)==N[O+1][1]&&(N[O-1][1]+=N[O+1][1],N[O][1]=N[O][1].substring(N[O+1][1].length)+N[O+1][1],N.splice(O+1,1),U=!0)),O++;U&&x(N,P)}function E(N){return N>=55296&&N<=56319}function S(N){return N>=56320&&N<=57343}function $(N){return S(N.charCodeAt(0))}function M(N){return E(N.charCodeAt(N.length-1))}function A(N){for(var P=[],O=0;O<N.length;O++)N[O][1].length>0&&P.push(N[O]);return P}function R(N,P,O,z){return M(N)||$(z)?null:A([[n,N],[e,P],[t,O],[n,z]])}function T(N,P,O){var z=typeof O=="number"?{index:O,length:0}:O.oldRange,L=typeof O=="number"?null:O.newRange,D=N.length,k=P.length;if(z.length===0&&(L===null||L.length===0)){var H=z.index,W=N.slice(0,H),F=N.slice(H),K=L?L.index:null;e:{var j=H+k-D;if(K!==null&&K!==j||j<0||j>k)break e;var U=P.slice(0,j),Y=P.slice(j);if(Y!==F)break e;var q=Math.min(H,j),Q=W.slice(0,q),X=U.slice(0,q);if(Q!==X)break e;var Z=W.slice(q),J=U.slice(q);return R(Q,Z,J,F)}e:{if(K!==null&&K!==H)break e;var ee=H,U=P.slice(0,ee),Y=P.slice(ee);if(U!==W)break e;var ce=Math.min(D-ee,k-ee),B=F.slice(F.length-ce),ne=Y.slice(Y.length-ce);if(B!==ne)break e;var Z=F.slice(0,F.length-ce),J=Y.slice(0,Y.length-ce);return R(W,Z,J,B)}}if(z.length>0&&L&&L.length===0)e:{var Q=N.slice(0,z.index),B=N.slice(z.index+z.length),q=Q.length,ce=B.length;if(k<q+ce)break e;var X=P.slice(0,q),ne=P.slice(k-ce);if(Q!==X||B!==ne)break e;var Z=N.slice(q,D-ce),J=P.slice(q,k-ce);return R(Q,Z,J,B)}return null}function _(N,P,O,z){return r(N,P,O,z,!0)}return _.INSERT=t,_.DELETE=e,_.EQUAL=n,bE=_,bE}var e0={exports:{}};e0.exports;var gU;function F0e(){return gU||(gU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",b="[object RegExp]",w="[object Set]",x="[object String]",E="[object Symbol]",S="[object WeakMap]",$="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",R="[object Float64Array]",T="[object Int8Array]",_="[object Int16Array]",N="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",z="[object Uint16Array]",L="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,H=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,F={};F[o]=F[a]=F[$]=F[M]=F[s]=F[c]=F[A]=F[R]=F[T]=F[_]=F[N]=F[h]=F[p]=F[g]=F[b]=F[w]=F[x]=F[E]=F[P]=F[O]=F[z]=F[L]=!0,F[u]=F[d]=F[S]=!1;var K=typeof yo=="object"&&yo&&yo.Object===Object&&yo,j=typeof self=="object"&&self&&self.Object===Object&&self,U=K||j||Function("return this")(),Y=t&&!t.nodeType&&t,q=Y&&!0&&e&&!e.nodeType&&e,Q=q&&q.exports===Y;function X(C,I){return C.set(I[0],I[1]),C}function Z(C,I){return C.add(I),C}function J(C,I){for(var V=-1,le=C?C.length:0;++V<le&&I(C[V],V,C)!==!1;);return C}function ee(C,I){for(var V=-1,le=I.length,_e=C.length;++V<le;)C[_e+V]=I[V];return C}function ce(C,I,V,le){for(var _e=-1,$e=C?C.length:0;++_e<$e;)V=I(V,C[_e],_e,C);return V}function B(C,I){for(var V=-1,le=Array(C);++V<C;)le[V]=I(V);return le}function ne(C,I){return C?.[I]}function G(C){var I=!1;if(C!=null&&typeof C.toString!="function")try{I=!!(C+"")}catch{}return I}function se(C){var I=-1,V=Array(C.size);return C.forEach(function(le,_e){V[++I]=[_e,le]}),V}function he(C,I){return function(V){return C(I(V))}}function pe(C){var I=-1,V=Array(C.size);return C.forEach(function(le){V[++I]=le}),V}var me=Array.prototype,de=Function.prototype,ye=Object.prototype,Ae=U["__core-js_shared__"],De=(function(){var C=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""})(),ke=de.toString,be=ye.hasOwnProperty,ue=ye.toString,ge=RegExp("^"+ke.call(be).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Q?U.Buffer:void 0,Ce=U.Symbol,Xe=U.Uint8Array,qe=he(Object.getPrototypeOf,Object),Ze=Object.create,We=ye.propertyIsEnumerable,Be=me.splice,Ke=Object.getOwnPropertySymbols,ht=ve?ve.isBuffer:void 0,_t=he(Object.keys,Object),Tt=yn(U,"DataView"),Rt=yn(U,"Map"),fe=yn(U,"Promise"),Me=yn(U,"Set"),Se=yn(U,"WeakMap"),we=yn(Object,"create"),Ve=Yt(Tt),Ne=Yt(Rt),ze=Yt(fe),It=Yt(Me),vt=Yt(Se),At=Ce?Ce.prototype:void 0,Nt=At?At.valueOf:void 0;function mt(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Pt(){this.__data__=we?we(null):{}}function dn(C){return this.has(C)&&delete this.__data__[C]}function Zt(C){var I=this.__data__;if(we){var V=I[C];return V===r?void 0:V}return be.call(I,C)?I[C]:void 0}function Ut(C){var I=this.__data__;return we?I[C]!==void 0:be.call(I,C)}function Dn(C,I){var V=this.__data__;return V[C]=we&&I===void 0?r:I,this}mt.prototype.clear=Pt,mt.prototype.delete=dn,mt.prototype.get=Zt,mt.prototype.has=Ut,mt.prototype.set=Dn;function Et(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Kn(){this.__data__=[]}function kr(C){var I=this.__data__,V=Qr(I,C);if(V<0)return!1;var le=I.length-1;return V==le?I.pop():Be.call(I,V,1),!0}function Lr(C){var I=this.__data__,V=Qr(I,C);return V<0?void 0:I[V][1]}function Ri(C){return Qr(this.__data__,C)>-1}function fr(C,I){var V=this.__data__,le=Qr(V,C);return le<0?V.push([C,I]):V[le][1]=I,this}Et.prototype.clear=Kn,Et.prototype.delete=kr,Et.prototype.get=Lr,Et.prototype.has=Ri,Et.prototype.set=fr;function Ue(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function fi(){this.__data__={hash:new mt,map:new(Rt||Et),string:new mt}}function Nl(C){return hr(this,C).delete(C)}function To(C){return hr(this,C).get(C)}function Do(C){return hr(this,C).has(C)}function Ji(C,I){return hr(this,C).set(C,I),this}Ue.prototype.clear=fi,Ue.prototype.delete=Nl,Ue.prototype.get=To,Ue.prototype.has=Do,Ue.prototype.set=Ji;function Jt(C){this.__data__=new Et(C)}function Qi(){this.__data__=new Et}function _a(C){return this.__data__.delete(C)}function Ii(C){return this.__data__.get(C)}function eo(C){return this.__data__.has(C)}function Ol(C,I){var V=this.__data__;if(V instanceof Et){var le=V.__data__;if(!Rt||le.length<n-1)return le.push([C,I]),this;V=this.__data__=new Ue(le)}return V.set(C,I),this}Jt.prototype.clear=Qi,Jt.prototype.delete=_a,Jt.prototype.get=Ii,Jt.prototype.has=eo,Jt.prototype.set=Ol;function En(C,I){var V=Le(C)||ti(C)?B(C.length,String):[],le=V.length,_e=!!le;for(var $e in C)be.call(C,$e)&&!(_e&&($e=="length"||Bo($e,le)))&&V.push($e);return V}function er(C,I,V){var le=C[I];(!(be.call(C,I)&&qo(le,V))||V===void 0&&!(I in C))&&(C[I]=V)}function Qr(C,I){for(var V=C.length;V--;)if(qo(C[V][0],I))return V;return-1}function zn(C,I){return C&&Fi(I,jr(I),C)}function hi(C,I,V,le,_e,$e,rt){var Je;if(le&&(Je=$e?le(C,_e,$e,rt):le(C)),Je!==void 0)return Je;if(!hn(C))return C;var zt=Le(C);if(zt){if(Je=pi(C),!I)return Lo(C,Je)}else{var st=Pn(C),Xt=st==d||st==f;if(Vt(C))return Cr(C,I);if(st==g||st==o||Xt&&!$e){if(G(C))return $e?C:{};if(Je=An(Xt?{}:C),!I)return no(C,zn(Je,C))}else{if(!F[st])return $e?C:{};Je=Ho(C,st,hi,I)}}rt||(rt=new Jt);var pn=rt.get(C);if(pn)return pn;if(rt.set(C,Je),!zt)var jt=V?jo(C):jr(C);return J(jt||C,function(Kt,Gt){jt&&(Gt=Kt,Kt=C[Gt]),er(Je,Gt,hi(Kt,I,V,le,Gt,C,rt))}),Je}function Rl(C){return hn(C)?Ze(C):{}}function zo(C,I,V){var le=I(C);return Le(C)?le:ee(le,V(C))}function ka(C){return ue.call(C)}function _o(C){if(!hn(C)||Tl(C))return!1;var I=rn(C)||G(C)?ge:H;return I.test(Yt(C))}function Il(C){if(!Vo(C))return _t(C);var I=[];for(var V in Object(C))be.call(C,V)&&V!="constructor"&&I.push(V);return I}function Cr(C,I){if(I)return C.slice();var V=new C.constructor(C.length);return C.copy(V),V}function Pi(C){var I=new C.constructor(C.byteLength);return new Xe(I).set(new Xe(C)),I}function Cn(C,I){var V=I?Pi(C.buffer):C.buffer;return new C.constructor(V,C.byteOffset,C.byteLength)}function Zn(C,I,V){var le=I?V(se(C),!0):se(C);return ce(le,X,new C.constructor)}function ei(C){var I=new C.constructor(C.source,k.exec(C));return I.lastIndex=C.lastIndex,I}function to(C,I,V){var le=I?V(pe(C),!0):pe(C);return ce(le,Z,new C.constructor)}function Pl(C){return Nt?Object(Nt.call(C)):{}}function ko(C,I){var V=I?Pi(C.buffer):C.buffer;return new C.constructor(V,C.byteOffset,C.length)}function Lo(C,I){var V=-1,le=C.length;for(I||(I=Array(le));++V<le;)I[V]=C[V];return I}function Fi(C,I,V,le){V||(V={});for(var _e=-1,$e=I.length;++_e<$e;){var rt=I[_e],Je=void 0;er(V,rt,Je===void 0?C[rt]:Je)}return V}function no(C,I){return Fi(C,Gn(C),I)}function jo(C){return zo(C,jr,Gn)}function hr(C,I){var V=C.__data__;return Fl(I)?V[typeof I=="string"?"string":"hash"]:V.map}function yn(C,I){var V=ne(C,I);return _o(V)?V:void 0}var Gn=Ke?he(Ke,Object):Dl,Pn=ka;(Tt&&Pn(new Tt(new ArrayBuffer(1)))!=M||Rt&&Pn(new Rt)!=h||fe&&Pn(fe.resolve())!=m||Me&&Pn(new Me)!=w||Se&&Pn(new Se)!=S)&&(Pn=function(C){var I=ue.call(C),V=I==g?C.constructor:void 0,le=V?Yt(V):void 0;if(le)switch(le){case Ve:return M;case Ne:return h;case ze:return m;case It:return w;case vt:return S}return I});function pi(C){var I=C.length,V=C.constructor(I);return I&&typeof C[0]=="string"&&be.call(C,"index")&&(V.index=C.index,V.input=C.input),V}function An(C){return typeof C.constructor=="function"&&!Vo(C)?Rl(qe(C)):{}}function Ho(C,I,V,le){var _e=C.constructor;switch(I){case $:return Pi(C);case s:case c:return new _e(+C);case M:return Cn(C,le);case A:case R:case T:case _:case N:case P:case O:case z:case L:return ko(C,le);case h:return Zn(C,le,V);case p:case x:return new _e(C);case b:return ei(C);case w:return to(C,le,V);case E:return Pl(C)}}function Bo(C,I){return I=I??i,!!I&&(typeof C=="number"||W.test(C))&&C>-1&&C%1==0&&C<I}function Fl(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function Tl(C){return!!De&&De in C}function Vo(C){var I=C&&C.constructor,V=typeof I=="function"&&I.prototype||ye;return C===V}function Yt(C){if(C!=null){try{return ke.call(C)}catch{}try{return C+""}catch{}}return""}function Ti(C){return hi(C,!0,!0)}function qo(C,I){return C===I||C!==C&&I!==I}function ti(C){return Dt(C)&&be.call(C,"callee")&&(!We.call(C,"callee")||ue.call(C)==o)}var Le=Array.isArray;function Ye(C){return C!=null&&fn(C.length)&&!rn(C)}function Dt(C){return Sr(C)&&Ye(C)}var Vt=ht||Ss;function rn(C){var I=hn(C)?ue.call(C):"";return I==d||I==f}function fn(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=i}function hn(C){var I=typeof C;return!!C&&(I=="object"||I=="function")}function Sr(C){return!!C&&typeof C=="object"}function jr(C){return Ye(C)?En(C):Il(C)}function Dl(){return[]}function Ss(){return!1}e.exports=Ti})(e0,e0.exports)),e0.exports}var t0={exports:{}};t0.exports;var vU;function T0e(){return vU||(vU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",b="[object Number]",w="[object Null]",x="[object Object]",E="[object Promise]",S="[object Proxy]",$="[object RegExp]",M="[object Set]",A="[object String]",R="[object Symbol]",T="[object Undefined]",_="[object WeakMap]",N="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",k="[object Int32Array]",H="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",K="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,q={};q[O]=q[z]=q[L]=q[D]=q[k]=q[H]=q[W]=q[F]=q[K]=!0,q[s]=q[c]=q[N]=q[d]=q[P]=q[f]=q[h]=q[p]=q[m]=q[b]=q[x]=q[$]=q[M]=q[A]=q[_]=!1;var Q=typeof yo=="object"&&yo&&yo.Object===Object&&yo,X=typeof self=="object"&&self&&self.Object===Object&&self,Z=Q||X||Function("return this")(),J=t&&!t.nodeType&&t,ee=J&&!0&&e&&!e.nodeType&&e,ce=ee&&ee.exports===J,B=ce&&Q.process,ne=(function(){try{return B&&B.binding&&B.binding("util")}catch{}})(),G=ne&&ne.isTypedArray;function se(C,I){for(var V=-1,le=C==null?0:C.length,_e=0,$e=[];++V<le;){var rt=C[V];I(rt,V,C)&&($e[_e++]=rt)}return $e}function he(C,I){for(var V=-1,le=I.length,_e=C.length;++V<le;)C[_e+V]=I[V];return C}function pe(C,I){for(var V=-1,le=C==null?0:C.length;++V<le;)if(I(C[V],V,C))return!0;return!1}function me(C,I){for(var V=-1,le=Array(C);++V<C;)le[V]=I(V);return le}function de(C){return function(I){return C(I)}}function ye(C,I){return C.has(I)}function Ae(C,I){return C?.[I]}function De(C){var I=-1,V=Array(C.size);return C.forEach(function(le,_e){V[++I]=[_e,le]}),V}function ke(C,I){return function(V){return C(I(V))}}function be(C){var I=-1,V=Array(C.size);return C.forEach(function(le){V[++I]=le}),V}var ue=Array.prototype,ge=Function.prototype,ve=Object.prototype,Ce=Z["__core-js_shared__"],Xe=ge.toString,qe=ve.hasOwnProperty,Ze=(function(){var C=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""})(),We=ve.toString,Be=RegExp("^"+Xe.call(qe).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=ce?Z.Buffer:void 0,ht=Z.Symbol,_t=Z.Uint8Array,Tt=ve.propertyIsEnumerable,Rt=ue.splice,fe=ht?ht.toStringTag:void 0,Me=Object.getOwnPropertySymbols,Se=Ke?Ke.isBuffer:void 0,we=ke(Object.keys,Object),Ve=Gn(Z,"DataView"),Ne=Gn(Z,"Map"),ze=Gn(Z,"Promise"),It=Gn(Z,"Set"),vt=Gn(Z,"WeakMap"),At=Gn(Object,"create"),Nt=Yt(Ve),mt=Yt(Ne),Pt=Yt(ze),dn=Yt(It),Zt=Yt(vt),Ut=ht?ht.prototype:void 0,Dn=Ut?Ut.valueOf:void 0;function Et(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Kn(){this.__data__=At?At(null):{},this.size=0}function kr(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function Lr(C){var I=this.__data__;if(At){var V=I[C];return V===r?void 0:V}return qe.call(I,C)?I[C]:void 0}function Ri(C){var I=this.__data__;return At?I[C]!==void 0:qe.call(I,C)}function fr(C,I){var V=this.__data__;return this.size+=this.has(C)?0:1,V[C]=At&&I===void 0?r:I,this}Et.prototype.clear=Kn,Et.prototype.delete=kr,Et.prototype.get=Lr,Et.prototype.has=Ri,Et.prototype.set=fr;function Ue(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function fi(){this.__data__=[],this.size=0}function Nl(C){var I=this.__data__,V=Cr(I,C);if(V<0)return!1;var le=I.length-1;return V==le?I.pop():Rt.call(I,V,1),--this.size,!0}function To(C){var I=this.__data__,V=Cr(I,C);return V<0?void 0:I[V][1]}function Do(C){return Cr(this.__data__,C)>-1}function Ji(C,I){var V=this.__data__,le=Cr(V,C);return le<0?(++this.size,V.push([C,I])):V[le][1]=I,this}Ue.prototype.clear=fi,Ue.prototype.delete=Nl,Ue.prototype.get=To,Ue.prototype.has=Do,Ue.prototype.set=Ji;function Jt(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Qi(){this.size=0,this.__data__={hash:new Et,map:new(Ne||Ue),string:new Et}}function _a(C){var I=yn(this,C).delete(C);return this.size-=I?1:0,I}function Ii(C){return yn(this,C).get(C)}function eo(C){return yn(this,C).has(C)}function Ol(C,I){var V=yn(this,C),le=V.size;return V.set(C,I),this.size+=V.size==le?0:1,this}Jt.prototype.clear=Qi,Jt.prototype.delete=_a,Jt.prototype.get=Ii,Jt.prototype.has=eo,Jt.prototype.set=Ol;function En(C){var I=-1,V=C==null?0:C.length;for(this.__data__=new Jt;++I<V;)this.add(C[I])}function er(C){return this.__data__.set(C,r),this}function Qr(C){return this.__data__.has(C)}En.prototype.add=En.prototype.push=er,En.prototype.has=Qr;function zn(C){var I=this.__data__=new Ue(C);this.size=I.size}function hi(){this.__data__=new Ue,this.size=0}function Rl(C){var I=this.__data__,V=I.delete(C);return this.size=I.size,V}function zo(C){return this.__data__.get(C)}function ka(C){return this.__data__.has(C)}function _o(C,I){var V=this.__data__;if(V instanceof Ue){var le=V.__data__;if(!Ne||le.length<n-1)return le.push([C,I]),this.size=++V.size,this;V=this.__data__=new Jt(le)}return V.set(C,I),this.size=V.size,this}zn.prototype.clear=hi,zn.prototype.delete=Rl,zn.prototype.get=zo,zn.prototype.has=ka,zn.prototype.set=_o;function Il(C,I){var V=ti(C),le=!V&&qo(C),_e=!V&&!le&&Ye(C),$e=!V&&!le&&!_e&&Sr(C),rt=V||le||_e||$e,Je=rt?me(C.length,String):[],zt=Je.length;for(var st in C)qe.call(C,st)&&!(rt&&(st=="length"||_e&&(st=="offset"||st=="parent")||$e&&(st=="buffer"||st=="byteLength"||st=="byteOffset")||Ho(st,zt)))&&Je.push(st);return Je}function Cr(C,I){for(var V=C.length;V--;)if(Ti(C[V][0],I))return V;return-1}function Pi(C,I,V){var le=I(C);return ti(C)?le:he(le,V(C))}function Cn(C){return C==null?C===void 0?T:w:fe&&fe in Object(C)?Pn(C):Vo(C)}function Zn(C){return hn(C)&&Cn(C)==s}function ei(C,I,V,le,_e){return C===I?!0:C==null||I==null||!hn(C)&&!hn(I)?C!==C&&I!==I:to(C,I,V,le,ei,_e)}function to(C,I,V,le,_e,$e){var rt=ti(C),Je=ti(I),zt=rt?c:An(C),st=Je?c:An(I);zt=zt==s?x:zt,st=st==s?x:st;var Xt=zt==x,pn=st==x,jt=zt==st;if(jt&&Ye(C)){if(!Ye(I))return!1;rt=!0,Xt=!1}if(jt&&!Xt)return $e||($e=new zn),rt||Sr(C)?Fi(C,I,V,le,_e,$e):no(C,I,zt,V,le,_e,$e);if(!(V&i)){var Kt=Xt&&qe.call(C,"__wrapped__"),Gt=pn&&qe.call(I,"__wrapped__");if(Kt||Gt){var Nr=Kt?C.value():C,pr=Gt?I.value():I;return $e||($e=new zn),_e(Nr,pr,V,le,$e)}}return jt?($e||($e=new zn),jo(C,I,V,le,_e,$e)):!1}function Pl(C){if(!fn(C)||Fl(C))return!1;var I=Vt(C)?Be:U;return I.test(Yt(C))}function ko(C){return hn(C)&&rn(C.length)&&!!q[Cn(C)]}function Lo(C){if(!Tl(C))return we(C);var I=[];for(var V in Object(C))qe.call(C,V)&&V!="constructor"&&I.push(V);return I}function Fi(C,I,V,le,_e,$e){var rt=V&i,Je=C.length,zt=I.length;if(Je!=zt&&!(rt&&zt>Je))return!1;var st=$e.get(C);if(st&&$e.get(I))return st==I;var Xt=-1,pn=!0,jt=V&o?new En:void 0;for($e.set(C,I),$e.set(I,C);++Xt<Je;){var Kt=C[Xt],Gt=I[Xt];if(le)var Nr=rt?le(Gt,Kt,Xt,I,C,$e):le(Kt,Gt,Xt,C,I,$e);if(Nr!==void 0){if(Nr)continue;pn=!1;break}if(jt){if(!pe(I,function(pr,ni){if(!ye(jt,ni)&&(Kt===pr||_e(Kt,pr,V,le,$e)))return jt.push(ni)})){pn=!1;break}}else if(!(Kt===Gt||_e(Kt,Gt,V,le,$e))){pn=!1;break}}return $e.delete(C),$e.delete(I),pn}function no(C,I,V,le,_e,$e,rt){switch(V){case P:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case N:return!(C.byteLength!=I.byteLength||!$e(new _t(C),new _t(I)));case d:case f:case b:return Ti(+C,+I);case h:return C.name==I.name&&C.message==I.message;case $:case A:return C==I+"";case m:var Je=De;case M:var zt=le&i;if(Je||(Je=be),C.size!=I.size&&!zt)return!1;var st=rt.get(C);if(st)return st==I;le|=o,rt.set(C,I);var Xt=Fi(Je(C),Je(I),le,_e,$e,rt);return rt.delete(C),Xt;case R:if(Dn)return Dn.call(C)==Dn.call(I)}return!1}function jo(C,I,V,le,_e,$e){var rt=V&i,Je=hr(C),zt=Je.length,st=hr(I),Xt=st.length;if(zt!=Xt&&!rt)return!1;for(var pn=zt;pn--;){var jt=Je[pn];if(!(rt?jt in I:qe.call(I,jt)))return!1}var Kt=$e.get(C);if(Kt&&$e.get(I))return Kt==I;var Gt=!0;$e.set(C,I),$e.set(I,C);for(var Nr=rt;++pn<zt;){jt=Je[pn];var pr=C[jt],ni=I[jt];if(le)var cf=rt?le(ni,pr,jt,I,C,$e):le(pr,ni,jt,C,I,$e);if(!(cf===void 0?pr===ni||_e(pr,ni,V,le,$e):cf)){Gt=!1;break}Nr||(Nr=jt=="constructor")}if(Gt&&!Nr){var zl=C.constructor,_l=I.constructor;zl!=_l&&"constructor"in C&&"constructor"in I&&!(typeof zl=="function"&&zl instanceof zl&&typeof _l=="function"&&_l instanceof _l)&&(Gt=!1)}return $e.delete(C),$e.delete(I),Gt}function hr(C){return Pi(C,jr,pi)}function yn(C,I){var V=C.__data__;return Bo(I)?V[typeof I=="string"?"string":"hash"]:V.map}function Gn(C,I){var V=Ae(C,I);return Pl(V)?V:void 0}function Pn(C){var I=qe.call(C,fe),V=C[fe];try{C[fe]=void 0;var le=!0}catch{}var _e=We.call(C);return le&&(I?C[fe]=V:delete C[fe]),_e}var pi=Me?function(C){return C==null?[]:(C=Object(C),se(Me(C),function(I){return Tt.call(C,I)}))}:Dl,An=Cn;(Ve&&An(new Ve(new ArrayBuffer(1)))!=P||Ne&&An(new Ne)!=m||ze&&An(ze.resolve())!=E||It&&An(new It)!=M||vt&&An(new vt)!=_)&&(An=function(C){var I=Cn(C),V=I==x?C.constructor:void 0,le=V?Yt(V):"";if(le)switch(le){case Nt:return P;case mt:return m;case Pt:return E;case dn:return M;case Zt:return _}return I});function Ho(C,I){return I=I??a,!!I&&(typeof C=="number"||Y.test(C))&&C>-1&&C%1==0&&C<I}function Bo(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function Fl(C){return!!Ze&&Ze in C}function Tl(C){var I=C&&C.constructor,V=typeof I=="function"&&I.prototype||ve;return C===V}function Vo(C){return We.call(C)}function Yt(C){if(C!=null){try{return Xe.call(C)}catch{}try{return C+""}catch{}}return""}function Ti(C,I){return C===I||C!==C&&I!==I}var qo=Zn((function(){return arguments})())?Zn:function(C){return hn(C)&&qe.call(C,"callee")&&!Tt.call(C,"callee")},ti=Array.isArray;function Le(C){return C!=null&&rn(C.length)&&!Vt(C)}var Ye=Se||Ss;function Dt(C,I){return ei(C,I)}function Vt(C){if(!fn(C))return!1;var I=Cn(C);return I==p||I==g||I==u||I==S}function rn(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function fn(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function hn(C){return C!=null&&typeof C=="object"}var Sr=G?de(G):ko;function jr(C){return Le(C)?Il(C):Lo(C)}function Dl(){return[]}function Ss(){return!1}e.exports=Dt})(t0,t0.exports)),t0.exports}var ym={},bU;function DTt(){if(bU)return ym;bU=1,Object.defineProperty(ym,"__esModule",{value:!0});const e=F0e(),t=T0e();var n;return(function(r){function i(c={},u={},d=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let f=e(u);d||(f=Object.keys(f).reduce((h,p)=>(f[p]!=null&&(h[p]=f[p]),h),{}));for(const h in c)c[h]!==void 0&&u[h]===void 0&&(f[h]=c[h]);return Object.keys(f).length>0?f:void 0}r.compose=i;function o(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const d=Object.keys(c).concat(Object.keys(u)).reduce((f,h)=>(t(c[h],u[h])||(f[h]=u[h]===void 0?null:u[h]),f),{});return Object.keys(d).length>0?d:void 0}r.diff=o;function a(c={},u={}){c=c||{};const d=Object.keys(u).reduce((f,h)=>(u[h]!==c[h]&&c[h]!==void 0&&(f[h]=u[h]),f),{});return Object.keys(c).reduce((f,h)=>(c[h]!==u[h]&&u[h]===void 0&&(f[h]=null),f),d)}r.invert=a;function s(c,u,d=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!d)return u;const f=Object.keys(u).reduce((h,p)=>(c[p]===void 0&&(h[p]=u[p]),h),{});return Object.keys(f).length>0?f:void 0}r.transform=s})(n||(n={})),ym.default=n,ym}var wm={},yU;function D0e(){if(yU)return wm;yU=1,Object.defineProperty(wm,"__esModule",{value:!0});var e;return(function(t){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=n})(e||(e={})),wm.default=e,wm}var xm={},wU;function zTt(){if(wU)return xm;wU=1,Object.defineProperty(xm,"__esModule",{value:!0});const e=D0e();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const o=this.offset,a=e.default.length(i);if(r>=a-o?(r=a-o,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const s={};return i.attributes&&(s.attributes=i.attributes),typeof i.retain=="number"?s.retain=r:typeof i.retain=="object"&&i.retain!==null?s.retain=i.retain:typeof i.insert=="string"?s.insert=i.insert.substr(o,r):s.insert=i.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,o=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=i,[o].concat(a)}}else return[]}}return xm.default=t,xm}var xU;function _Tt(){return xU||(xU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=TTt(),r=F0e(),i=T0e(),o=DTt();t.AttributeMap=o.default;const a=D0e();t.Op=a.default;const s=zTt();t.OpIterator=s.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const p=Object.keys(f)[0];if(!p||p!==Object.keys(h)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(h)[0]}`);return[p,f[p],h[p]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,p){this.handlers[h]=p}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const p=this.handlers[h];if(!p)throw new Error(`no handlers for embed type "${h}"`);return p}insert(h,p){const g={};return typeof h=="string"&&h.length===0?this:(g.insert=h,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,p){if(typeof h=="number"&&h<=0)return this;const g={retain:h};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g)}push(h){let p=this.ops.length,g=this.ops[p-1];if(h=r(h),typeof g=="object"){if(typeof h.delete=="number"&&typeof g.delete=="number")return this.ops[p-1]={delete:g.delete+h.delete},this;if(typeof g.delete=="number"&&h.insert!=null&&(p-=1,g=this.ops[p-1],typeof g!="object"))return this.ops.unshift(h),this;if(i(h.attributes,g.attributes)){if(typeof h.insert=="string"&&typeof g.insert=="string")return this.ops[p-1]={insert:g.insert+h.insert},typeof h.attributes=="object"&&(this.ops[p-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof g.retain=="number")return this.ops[p-1]={retain:g.retain+h.retain},typeof h.attributes=="object"&&(this.ops[p-1].attributes=h.attributes),this}}return p===this.ops.length?this.ops.push(h):this.ops.splice(p,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const p=[],g=[];return this.forEach(m=>{(h(m)?p:g).push(m)}),[p,g]}reduce(h,p){return this.ops.reduce(h,p)}changeLength(){return this.reduce((h,p)=>p.insert?h+a.default.length(p):p.delete?h-p.delete:h,0)}length(){return this.reduce((h,p)=>h+a.default.length(p),0)}slice(h=0,p=1/0){const g=[],m=new s.default(this.ops);let b=0;for(;b<p&&m.hasNext();){let w;b<h?w=m.next(h-b):(w=m.next(p-b),g.push(w)),b+=a.default.length(w)}return new d(g)}compose(h){const p=new s.default(this.ops),g=new s.default(h.ops),m=[],b=g.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let x=b.retain;for(;p.peekType()==="insert"&&p.peekLength()<=x;)x-=p.peekLength(),m.push(p.next());b.retain-x>0&&g.next(b.retain-x)}const w=new d(m);for(;p.hasNext()||g.hasNext();)if(g.peekType()==="insert")w.push(g.next());else if(p.peekType()==="delete")w.push(p.next());else{const x=Math.min(p.peekLength(),g.peekLength()),E=p.next(x),S=g.next(x);if(S.retain){const $={};if(typeof E.retain=="number")$.retain=typeof S.retain=="number"?x:S.retain;else if(typeof S.retain=="number")E.retain==null?$.insert=E.insert:$.retain=E.retain;else{const A=E.retain==null?"insert":"retain",[R,T,_]=u(E[A],S.retain),N=d.getHandler(R);$[A]={[R]:N.compose(T,_,A==="retain")}}const M=o.default.compose(E.attributes,S.attributes,typeof E.retain=="number");if(M&&($.attributes=M),w.push($),!g.hasNext()&&i(w.ops[w.ops.length-1],$)){const A=new d(p.rest());return w.concat(A).chop()}}else typeof S.delete=="number"&&(typeof E.retain=="number"||typeof E.retain=="object"&&E.retain!==null)&&w.push(S)}return w.chop()}concat(h){const p=new d(this.ops.slice());return h.ops.length>0&&(p.push(h.ops[0]),p.ops=p.ops.concat(h.ops.slice(1))),p}diff(h,p){if(this.ops===h.ops)return new d;const g=[this,h].map(E=>E.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:c;const $=E===h?"on":"with";throw new Error("diff() called "+$+" non-document")}).join("")),m=new d,b=n(g[0],g[1],p,!0),w=new s.default(this.ops),x=new s.default(h.ops);return b.forEach(E=>{let S=E[1].length;for(;S>0;){let $=0;switch(E[0]){case n.INSERT:$=Math.min(x.peekLength(),S),m.push(x.next($));break;case n.DELETE:$=Math.min(S,w.peekLength()),w.next($),m.delete($);break;case n.EQUAL:$=Math.min(w.peekLength(),x.peekLength(),S);const M=w.next($),A=x.next($);i(M.insert,A.insert)?m.retain($,o.default.diff(M.attributes,A.attributes)):m.push(A).delete($);break}S-=$}}),m.chop()}eachLine(h,p=`
|
|
279
|
+
`]))),xAt=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return xt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},aE=function(t){var n=t.delay,r=t.offset;return bt("span",{css:SI({animation:"".concat(wAt," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3Jvd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=t.isRtl,i=t.size,o=i===void 0?4:i,a=$l(t,dAt);return bt("div",St({},Yn(xt(xt({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),bt(aE,{delay:0,offset:r}),bt(aE,{delay:160,offset:!0}),bt(aE,{delay:320,offset:!r}))},CAt=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,c=o.spacing;return xt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},SAt=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return bt("div",St({ref:o},Yn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},$At=SAt,MAt=["data"],AAt=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},NAt=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,c=t.innerProps,u=t.label,d=t.theme,f=t.selectProps;return bt("div",St({},Yn(t,"group",{group:!0}),c),bt(a,St({},s,{selectProps:f,theme:d,getStyles:i,getClassNames:o,cx:r}),u),bt("div",null,n))},OAt=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return xt({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},RAt=function(t){var n=Sfe(t);n.data;var r=$l(n,MAt);return bt("div",St({},Yn(t,"groupHeading",{"group-heading":!0}),r))},IAt=NAt,PAt=["innerRef","isDisabled","isHidden","inputClassName"],FAt=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return xt(xt({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},TAt),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ffe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},TAt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":xt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ffe)},DAt=function(t){return xt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ffe)},zAt=function(t){var n=t.cx,r=t.value,i=Sfe(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,c=i.inputClassName,u=$l(i,PAt);return bt("div",St({},Yn(t,"input",{"input-container":!0}),{"data-value":r||""}),bt("input",St({className:n({input:!0},c),ref:o,style:DAt(s),disabled:a},u)))},_At=zAt,kAt=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return xt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},LAt=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return xt({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},jAt=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return xt({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Tfe=function(t){var n=t.children,r=t.innerProps;return bt("div",r,n)},HAt=Tfe,BAt=Tfe;function VAt(e){var t=e.children,n=e.innerProps;return bt("div",St({role:"button"},n),t||bt($I,{size:14}))}var qAt=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,c=t.selectProps,u=r.Container,d=r.Label,f=r.Remove;return bt(u,{data:i,innerProps:xt(xt({},Yn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:c},bt(d,{data:i,innerProps:xt({},Yn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),bt(f,{data:i,innerProps:xt(xt({},Yn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:c}))},GAt=qAt,WAt=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,c=a.colors;return xt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?c.primary:i?c.primary25:"transparent",color:r?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?c.primary:c.primary50}})},UAt=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return bt("div",St({},Yn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},YAt=UAt,XAt=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return xt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},KAt=function(t){var n=t.children,r=t.innerProps;return bt("div",St({},Yn(t,"placeholder",{placeholder:!0}),r),n)},ZAt=KAt,JAt=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return xt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},QAt=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return bt("div",St({},Yn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},eNt=QAt,tNt={ClearIndicator:vAt,Control:$At,DropdownIndicator:mAt,DownChevron:Ife,CrossIcon:$I,Group:IAt,GroupHeading:RAt,IndicatorsContainer:cAt,IndicatorSeparator:yAt,Input:_At,LoadingIndicator:EAt,Menu:XMt,MenuList:ZMt,MenuPortal:rAt,LoadingMessage:tAt,NoOptionsMessage:eAt,MultiValue:GAt,MultiValueContainer:HAt,MultiValueLabel:BAt,MultiValueRemove:VAt,Option:YAt,Placeholder:ZAt,SelectContainer:oAt,SingleValue:eNt,ValueContainer:lAt},nNt=function(t){return xt(xt({},tNt),t.components)},AW=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rNt(e,t){return!!(e===t||AW(e)&&AW(t))}function iNt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rNt(e[n],t[n]))return!1;return!0}function oNt(e,t){t===void 0&&(t=iNt);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}function aNt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var lNt=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:aNt},sNt=function(t){return bt("span",St({css:lNt},t))},NW=sNt,cNt={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,c=t.isDisabled,u=t.isSelected,d=t.isAppleDevice,f=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&d){var h=c?" disabled":"",p="".concat(u?" selected":"").concat(h);return"".concat(a).concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},uNt=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,c=t.selectProps,u=t.id,d=t.isAppleDevice,f=c.ariaLiveMessages,h=c.getOptionLabel,p=c.inputValue,g=c.isMulti,m=c.isOptionDisabled,b=c.isSearchable,w=c.menuIsOpen,x=c.options,E=c.screenReaderStatus,S=c.tabSelectsValue,$=c.isLoading,M=c["aria-label"],A=c["aria-live"],R=l.useMemo(function(){return xt(xt({},cNt),f||{})},[f]),T=l.useMemo(function(){var L="";if(n&&R.onChange){var D=n.option,k=n.options,H=n.removedValue,W=n.removedValues,F=n.value,K=function(Z){return Array.isArray(Z)?null:Z},j=H||D||K(F),U=j?h(j):"",Y=k||W||void 0,q=Y?Y.map(h):[],Q=xt({isDisabled:j&&m(j,s),label:U,labels:q},n);L=R.onChange(Q)}return L},[n,R,m,s,h]),_=l.useMemo(function(){var L="",D=r||i,k=!!(r&&s&&s.includes(r));if(D&&R.onFocus){var H={focused:D,label:h(D),isDisabled:m(D,s),isSelected:k,options:o,context:D===r?"menu":"value",selectValue:s,isAppleDevice:d};L=R.onFocus(H)}return L},[r,i,h,m,R,o,s,d]),N=l.useMemo(function(){var L="";if(w&&x.length&&!$&&R.onFilter){var D=E({count:o.length});L=R.onFilter({inputValue:p,resultsMessage:D})}return L},[o,p,w,R,x,E,$]),P=n?.action==="initial-input-focus",O=l.useMemo(function(){var L="";if(R.guidance){var D=i?"value":w?"menu":"input";L=R.guidance({"aria-label":M,context:D,isDisabled:r&&m(r,s),isMulti:g,isSearchable:b,tabSelectsValue:S,isInitialFocus:P})}return L},[M,r,i,g,m,b,w,R,s,S,P]),z=bt(l.Fragment,null,bt("span",{id:"aria-selection"},T),bt("span",{id:"aria-focused"},_),bt("span",{id:"aria-results"},N),bt("span",{id:"aria-guidance"},O));return bt(l.Fragment,null,bt(NW,{id:u},P&&z),bt(NW,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&z))},dNt=uNt,B$=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],fNt=new RegExp("["+B$.map(function(e){return e.letters}).join("")+"]","g"),Dfe={};for(var lE=0;lE<B$.length;lE++)for(var sE=B$[lE],cE=0;cE<sE.letters.length;cE++)Dfe[sE.letters[cE]]=sE.base;var zfe=function(t){return t.replace(fNt,function(n){return Dfe[n]})},hNt=oNt(zfe),OW=function(t){return t.replace(/^\s+|\s+$/g,"")},pNt=function(t){return"".concat(t.label," ").concat(t.value)},mNt=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=xt({ignoreCase:!0,ignoreAccents:!0,stringify:pNt,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,a=i.ignoreAccents,s=i.stringify,c=i.trim,u=i.matchFrom,d=c?OW(r):r,f=c?OW(s(n)):s(n);return o&&(d=d.toLowerCase(),f=f.toLowerCase()),a&&(d=hNt(d),f=zfe(f)),u==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},gNt=["innerRef"];function vNt(e){var t=e.innerRef,n=$l(e,gNt),r=HMt(n,"onExited","in","enter","exit","appear");return bt("input",St({ref:t},r,{css:SI({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var bNt=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function yNt(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=l.useRef(!1),s=l.useRef(!1),c=l.useRef(0),u=l.useRef(null),d=l.useCallback(function(b,w){if(u.current!==null){var x=u.current,E=x.scrollTop,S=x.scrollHeight,$=x.clientHeight,M=u.current,A=w>0,R=S-$-E,T=!1;R>w&&a.current&&(r&&r(b),a.current=!1),A&&s.current&&(o&&o(b),s.current=!1),A&&w>R?(n&&!a.current&&n(b),M.scrollTop=S,T=!0,a.current=!0):!A&&-w>E&&(i&&!s.current&&i(b),M.scrollTop=0,T=!0,s.current=!0),T&&bNt(b)}},[n,r,i,o]),f=l.useCallback(function(b){d(b,b.deltaY)},[d]),h=l.useCallback(function(b){c.current=b.changedTouches[0].clientY},[]),p=l.useCallback(function(b){var w=c.current-b.changedTouches[0].clientY;d(b,w)},[d]),g=l.useCallback(function(b){if(b){var w=kMt?{passive:!1}:!1;b.addEventListener("wheel",f,w),b.addEventListener("touchstart",h,w),b.addEventListener("touchmove",p,w)}},[p,h,f]),m=l.useCallback(function(b){b&&(b.removeEventListener("wheel",f,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",p,!1))},[p,h,f]);return l.useEffect(function(){if(t){var b=u.current;return g(b),function(){m(b)}}},[t,g,m]),function(b){u.current=b}}var RW=["boxSizing","height","overflow","paddingRight","position"],IW={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function PW(e){e.cancelable&&e.preventDefault()}function FW(e){e.stopPropagation()}function TW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function DW(){return"ontouchstart"in window||navigator.maxTouchPoints}var zW=!!(typeof window<"u"&&window.document&&window.document.createElement),Ff=0,ud={capture:!1,passive:!1};function wNt(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=l.useRef({}),o=l.useRef(null),a=l.useCallback(function(c){if(zW){var u=document.body,d=u&&u.style;if(r&&RW.forEach(function(g){var m=d&&d[g];i.current[g]=m}),r&&Ff<1){var f=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+f||0;Object.keys(IW).forEach(function(g){var m=IW[g];d&&(d[g]=m)}),d&&(d.paddingRight="".concat(p,"px"))}u&&DW()&&(u.addEventListener("touchmove",PW,ud),c&&(c.addEventListener("touchstart",TW,ud),c.addEventListener("touchmove",FW,ud))),Ff+=1}},[r]),s=l.useCallback(function(c){if(zW){var u=document.body,d=u&&u.style;Ff=Math.max(Ff-1,0),r&&Ff<1&&RW.forEach(function(f){var h=i.current[f];d&&(d[f]=h)}),u&&DW()&&(u.removeEventListener("touchmove",PW,ud),c&&(c.removeEventListener("touchstart",TW,ud),c.removeEventListener("touchmove",FW,ud)))}},[r]);return l.useEffect(function(){if(t){var c=o.current;return a(c),function(){s(c)}}},[t,a,s]),function(c){o.current=c}}function xNt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ENt=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},CNt=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2Fs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fVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:xNt};function SNt(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=yNt({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:c}),d=wNt({isEnabled:n}),f=function(p){u(p),d(p)};return bt(l.Fragment,null,n&&bt("div",{onClick:ENt,css:CNt}),t(f))}function $Nt(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var MNt=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:$Nt},ANt=function(t){var n=t.name,r=t.onFocus;return bt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:MNt,value:"",onChange:function(){}})},NNt=ANt;function MI(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ONt(){return MI(/^iPhone/i)}function _fe(){return MI(/^Mac/i)}function RNt(){return MI(/^iPad/i)||_fe()&&navigator.maxTouchPoints>1}function INt(){return ONt()||RNt()}function PNt(){return _fe()||INt()}var FNt=function(t){return t.label},kfe=function(t){return t.label},Lfe=function(t){return t.value},TNt=function(t){return!!t.isDisabled},DNt={clearIndicator:gAt,container:iAt,control:CAt,dropdownIndicator:pAt,group:AAt,groupHeading:OAt,indicatorsContainer:sAt,indicatorSeparator:bAt,input:FAt,loadingIndicator:xAt,loadingMessage:QMt,menu:WMt,menuList:KMt,menuPortal:nAt,multiValue:kAt,multiValueLabel:LAt,multiValueRemove:jAt,noOptionsMessage:JMt,option:WAt,placeholder:XAt,singleValue:JAt,valueContainer:aAt},zNt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_Nt=4,jfe=4,kNt=38,LNt=jfe*2,jNt={baseUnit:jfe,controlHeight:kNt,menuGutter:LNt},uE={borderRadius:_Nt,colors:zNt,spacing:jNt},HNt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$W(),captureMenuScroll:!$W(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mNt(),formatGroupLabel:FNt,getOptionLabel:kfe,getOptionValue:Lfe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:TNt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zMt(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function _W(e,t,n,r){var i=Vfe(e,t,n),o=qfe(e,t,n),a=Bfe(e,t),s=Qg(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function r3(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return _W(e,a,t,s)}).filter(function(a){return LW(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=_W(e,n,t,r);return LW(e,o)?o:void 0}).filter(LMt)}function Hfe(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Zd(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function kW(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Zd(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function BNt(e,t){return Hfe(r3(e,t))}function LW(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Wfe(e)||!o)&&Gfe(e,{label:a,value:s,data:i},r)}function VNt(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function qNt(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var dE=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Bfe=function(t,n){return t.getOptionLabel(n)},Qg=function(t,n){return t.getOptionValue(n)};function Vfe(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function qfe(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Qg(e,t);return n.some(function(i){return Qg(e,i)===r})}function Gfe(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Wfe=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},GNt=1,AI=(function(e){A$t(n,e);var t=O$t(n);function n(r){var i;if($$t(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(c){i.controlRef=c},i.focusedOptionRef=null,i.getFocusedOptionRef=function(c){i.focusedOptionRef=c},i.menuListRef=null,i.getMenuListRef=function(c){i.menuListRef=c},i.inputRef=null,i.getInputRef=function(c){i.inputRef=c},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(c,u){var d=i.props,f=d.onChange,h=d.name;u.name=h,i.ariaOnChange(c,u),f(c,u)},i.setValue=function(c,u,d){var f=i.props,h=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(c,{action:u,option:d})},i.selectOption=function(c){var u=i.props,d=u.blurInputOnSelect,f=u.isMulti,h=u.name,p=i.state.selectValue,g=f&&i.isOptionSelected(c,p),m=i.isOptionDisabled(c,p);if(g){var b=i.getOptionValue(c);i.setValue(p.filter(function(w){return i.getOptionValue(w)!==b}),"deselect-option",c)}else if(!m)f?i.setValue([].concat(Zd(p),[c]),"select-option",c):i.setValue(c,"select-option");else{i.ariaOnChange(c,{action:"select-option",option:c,name:h});return}d&&i.blurInput()},i.removeValue=function(c){var u=i.props.isMulti,d=i.state.selectValue,f=i.getOptionValue(c),h=d.filter(function(g){return i.getOptionValue(g)!==f}),p=Jf(u,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:c}),i.focusInput()},i.clearValue=function(){var c=i.state.selectValue;i.onChange(Jf(i.props.isMulti,[],null),{action:"clear",removedValues:c})},i.popValue=function(){var c=i.props.isMulti,u=i.state.selectValue,d=u[u.length-1],f=u.slice(0,u.length-1),h=Jf(c,f,f[0]||null);d&&i.onChange(h,{action:"pop-value",removedValue:d})},i.getFocusedOptionId=function(c){return dE(i.state.focusableOptionsWithIds,c)},i.getFocusableOptionsWithIds=function(){return kW(r3(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return IMt.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(c){return Bfe(i.props,c)},i.getOptionValue=function(c){return Qg(i.props,c)},i.getStyles=function(c,u){var d=i.props.unstyled,f=DNt[c](u,d);f.boxSizing="border-box";var h=i.props.styles[c];return h?h(f,u):f},i.getClassNames=function(c,u){var d,f;return(d=(f=i.props.classNames)[c])===null||d===void 0?void 0:d.call(f,u)},i.getElementId=function(c){return"".concat(i.state.instancePrefix,"-").concat(c)},i.getComponents=function(){return nNt(i.props)},i.buildCategorizedOptions=function(){return r3(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Hfe(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(c,u){i.setState({ariaSelection:xt({value:c},u)})},i.onMenuMouseDown=function(c){c.button===0&&(c.stopPropagation(),c.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(c){i.blockOptionHover=!1},i.onControlMouseDown=function(c){if(!c.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),c.target.tagName!=="INPUT"&&c.target.tagName!=="TEXTAREA"&&c.preventDefault()}},i.onDropdownIndicatorMouseDown=function(c){if(!(c&&c.type==="mousedown"&&c.button!==0)&&!i.props.isDisabled){var u=i.props,d=u.isMulti,f=u.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()):i.openMenu("first"),c.preventDefault()}},i.onClearIndicatorMouseDown=function(c){c&&c.type==="mousedown"&&c.button!==0||(i.clearValue(),c.preventDefault(),i.openAfterFocus=!1,c.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(c){typeof i.props.closeMenuOnScroll=="boolean"?c.target instanceof HTMLElement&&F5(c.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(c)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(c){var u=c.touches,d=u&&u.item(0);d&&(i.initialTouchX=d.clientX,i.initialTouchY=d.clientY,i.userIsDragging=!1)},i.onTouchMove=function(c){var u=c.touches,d=u&&u.item(0);if(d){var f=Math.abs(d.clientX-i.initialTouchX),h=Math.abs(d.clientY-i.initialTouchY),p=5;i.userIsDragging=f>p||h>p}},i.onTouchEnd=function(c){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(c.target)&&i.menuListRef&&!i.menuListRef.contains(c.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(c){i.userIsDragging||i.onControlMouseDown(c)},i.onClearIndicatorTouchEnd=function(c){i.userIsDragging||i.onClearIndicatorMouseDown(c)},i.onDropdownIndicatorTouchEnd=function(c){i.userIsDragging||i.onDropdownIndicatorMouseDown(c)},i.handleInputChange=function(c){var u=i.props.inputValue,d=c.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(d,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(c){i.props.onFocus&&i.props.onFocus(c),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(c){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(c),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(c){if(!(i.blockOptionHover||i.state.focusedOption===c)){var u=i.getFocusableOptions(),d=u.indexOf(c);i.setState({focusedOption:c,focusedOptionId:d>-1?i.getFocusedOptionId(c):null})}},i.shouldHideSelectedOptions=function(){return Wfe(i.props)},i.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),i.focus()},i.onKeyDown=function(c){var u=i.props,d=u.isMulti,f=u.backspaceRemovesValue,h=u.escapeClearsValue,p=u.inputValue,g=u.isClearable,m=u.isDisabled,b=u.menuIsOpen,w=u.onKeyDown,x=u.tabSelectsValue,E=u.openMenuOnFocus,S=i.state,$=S.focusedOption,M=S.focusedValue,A=S.selectValue;if(!m&&!(typeof w=="function"&&(w(c),c.defaultPrevented))){switch(i.blockOptionHover=!0,c.key){case"ArrowLeft":if(!d||p)return;i.focusValue("previous");break;case"ArrowRight":if(!d||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(M)i.removeValue(M);else{if(!f)return;d?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||c.shiftKey||!b||!x||!$||E&&i.isOptionSelected($,A))return;i.selectOption($);break;case"Enter":if(c.keyCode===229)break;if(b){if(!$||i.isComposing)return;i.selectOption($);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(p)return;if(!b){i.openMenu("first");break}if(!$)return;i.selectOption($);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}c.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++GNt),i.state.selectValue=Zg(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=dE(o,a[s])}return i}return M$t(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&SW(this.menuListRef,this.focusedOptionRef),PNt()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,c=this.state.isFocused;(c&&!a&&i.isDisabled||c&&s&&!i.menuIsOpen)&&this.focusInput(),c&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(SW(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,c=a.isFocused,u=this.buildFocusableOptions(),d=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(s);s||(c=-1);var u=a.length-1,d=-1;if(a.length){switch(i){case"previous":c===0?d=0:c===-1?d=u:d=c-1;break;case"next":c>-1&&c<u&&(d=c+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var c=0,u=s.indexOf(a);a||(u=-1),i==="up"?c=u>0?u-1:s.length-1:i==="down"?c=(u+1)%s.length:i==="pageup"?(c=u-o,c<0&&(c=0)):i==="pagedown"?(c=u+o,c>s.length-1&&(c=s.length-1)):i==="last"&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(uE):xt(xt({},uE),this.props.theme):uE}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,c=this.getValue,u=this.selectOption,d=this.setValue,f=this.props,h=f.isMulti,p=f.isRtl,g=f.options,m=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:c,hasValue:m,isMulti:h,isRtl:p,options:g,selectOption:u,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return Vfe(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return qfe(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Gfe(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,c=i.inputValue,u=i.tabIndex,d=i.form,f=i.menuIsOpen,h=i.required,p=this.getComponents(),g=p.Input,m=this.state,b=m.inputIsHidden,w=m.ariaSelection,x=this.commonProps,E=s||this.getElementId("input"),S=xt(xt(xt({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?w?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?v.createElement(g,St({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:o,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:c},S)):v.createElement(vNt,St({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Kg,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:d,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,c=o.MultiValueLabel,u=o.MultiValueRemove,d=o.SingleValue,f=o.Placeholder,h=this.commonProps,p=this.props,g=p.controlShouldRenderValue,m=p.isDisabled,b=p.isMulti,w=p.inputValue,x=p.placeholder,E=this.state,S=E.selectValue,$=E.focusedValue,M=E.isFocused;if(!this.hasValue()||!g)return w?null:v.createElement(f,St({},h,{key:"placeholder",isDisabled:m,isFocused:M,innerProps:{id:this.getElementId("placeholder")}}),x);if(b)return S.map(function(R,T){var _=R===$,N="".concat(i.getOptionLabel(R),"-").concat(i.getOptionValue(R));return v.createElement(a,St({},h,{components:{Container:s,Label:c,Remove:u},isFocused:_,isDisabled:m,key:N,index:T,removeProps:{onClick:function(){return i.removeValue(R)},onTouchEnd:function(){return i.removeValue(R)},onMouseDown:function(O){O.preventDefault()}},data:R}),i.formatOptionLabel(R,"value"))});if(w)return null;var A=S[0];return v.createElement(d,St({},h,{data:A,isDisabled:m}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!o||c||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,c=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:f,isDisabled:c,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,c=this.props.isDisabled,u=this.state.isFocused;return v.createElement(a,St({},s,{isDisabled:c,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,c=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(o,St({},a,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,c=o.Menu,u=o.MenuList,d=o.MenuPortal,f=o.LoadingMessage,h=o.NoOptionsMessage,p=o.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,w=b.captureMenuScroll,x=b.inputValue,E=b.isLoading,S=b.loadingMessage,$=b.minMenuHeight,M=b.maxMenuHeight,A=b.menuIsOpen,R=b.menuPlacement,T=b.menuPosition,_=b.menuPortalTarget,N=b.menuShouldBlockScroll,P=b.menuShouldScrollIntoView,O=b.noOptionsMessage,z=b.onMenuScrollToTop,L=b.onMenuScrollToBottom;if(!A)return null;var D=function(U,Y){var q=U.type,Q=U.data,X=U.isDisabled,Z=U.isSelected,J=U.label,ee=U.value,ce=m===Q,B=X?void 0:function(){return i.onOptionHover(Q)},ne=X?void 0:function(){return i.selectOption(Q)},G="".concat(i.getElementId("option"),"-").concat(Y),se={id:G,onClick:ne,onMouseMove:B,onMouseOver:B,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:Z};return v.createElement(p,St({},g,{innerProps:se,data:Q,isDisabled:X,isSelected:Z,key:G,label:J,type:q,value:ee,isFocused:ce,innerRef:ce?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(U.data,"menu"))},k;if(this.hasOptions())k=this.getCategorizedOptions().map(function(j){if(j.type==="group"){var U=j.data,Y=j.options,q=j.index,Q="".concat(i.getElementId("group"),"-").concat(q),X="".concat(Q,"-heading");return v.createElement(a,St({},g,{key:Q,data:U,options:Y,Heading:s,headingProps:{id:X,data:j.data},label:i.formatGroupLabel(j.data)}),j.options.map(function(Z){return D(Z,"".concat(q,"-").concat(Z.index))}))}else if(j.type==="option")return D(j,"".concat(j.index))});else if(E){var H=S({inputValue:x});if(H===null)return null;k=v.createElement(f,g,H)}else{var W=O({inputValue:x});if(W===null)return null;k=v.createElement(h,g,W)}var F={minMenuHeight:$,maxMenuHeight:M,menuPlacement:R,menuPosition:T,menuShouldScrollIntoView:P},K=v.createElement(UMt,St({},g,F),function(j){var U=j.ref,Y=j.placerProps,q=Y.placement,Q=Y.maxHeight;return v.createElement(c,St({},g,F,{innerRef:U,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:E,placement:q}),v.createElement(SNt,{captureEnabled:w,onTopArrive:z,onBottomArrive:L,lockEnabled:N},function(X){return v.createElement(u,St({},g,{innerRef:function(J){i.getMenuListRef(J),X(J)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:E,maxHeight:Q,focusedOption:m}),k)}))});return _||T==="fixed"?v.createElement(d,St({},g,{appendTo:_,controlElement:this.controlRef,menuPlacement:R,menuPosition:T}),K):K}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,c=o.isMulti,u=o.name,d=o.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!s)return v.createElement(NNt,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(c)if(a){var h=f.map(function(m){return i.getOptionValue(m)}).join(a);return v.createElement("input",{name:u,type:"hidden",value:h})}else{var p=f.length>0?f.map(function(m,b){return v.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:i.getOptionValue(m)})}):v.createElement("input",{name:u,type:"hidden",value:""});return v.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return v.createElement("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,c=o.focusedValue,u=o.isFocused,d=o.selectValue,f=this.getFocusableOptions();return v.createElement(dNt,St({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:c,isFocused:u,selectValue:d,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,c=i.ValueContainer,u=this.props,d=u.className,f=u.id,h=u.isDisabled,p=u.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return v.createElement(s,St({},m,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),v.createElement(o,St({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:p}),v.createElement(c,St({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(a,St({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,c=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,d=o.isFocused,f=o.prevWasFocused,h=o.instancePrefix,p=i.options,g=i.value,m=i.menuIsOpen,b=i.inputValue,w=i.isMulti,x=Zg(g),E={};if(a&&(g!==a.value||p!==a.options||m!==a.menuIsOpen||b!==a.inputValue)){var S=m?BNt(i,x):[],$=m?kW(r3(i,x),"".concat(h,"-option")):[],M=s?VNt(o,x):null,A=qNt(o,S),R=dE($,A);E={selectValue:x,focusedOption:A,focusedOptionId:R,focusableOptionsWithIds:$,focusedValue:M,clearFocusValueOnUpdate:!1}}var T=c!=null&&i!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},_=u,N=d&&f;return d&&!N&&(_={value:Jf(w,x,x[0]||null),options:x,action:"initial-input-focus"},N=!f),u?.action==="initial-input-focus"&&(_=null),xt(xt(xt({},E),T),{},{prevProps:i,ariaSelection:_,prevWasFocused:N})}}]),n})(l.Component);AI.defaultProps=HNt;var WNt=l.forwardRef(function(e,t){var n=dfe(e);return v.createElement(AI,St({ref:t},n))}),UNt=WNt,YNt=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],jW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return o===i||a===i},fE={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return jW(t,o,i)})||r.some(function(o){return jW(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function XNt(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,a=o===void 0?fE.formatCreateLabel:o,s=e.isValidNewOption,c=s===void 0?fE.isValidNewOption:s,u=e.getNewOptionData,d=u===void 0?fE.getNewOptionData:u,f=e.onCreateOption,h=e.options,p=h===void 0?[]:h,g=e.onChange,m=$l(e,YNt),b=m.getOptionValue,w=b===void 0?Lfe:b,x=m.getOptionLabel,E=x===void 0?kfe:x,S=m.inputValue,$=m.isLoading,M=m.isMulti,A=m.value,R=m.name,T=l.useMemo(function(){return c(S,Zg(A),p,{getOptionValue:w,getOptionLabel:E})?d(S,a(S)):void 0},[a,d,E,w,S,c,p,A]),_=l.useMemo(function(){return(n||!$)&&T?i==="first"?[T].concat(Zd(p)):[].concat(Zd(p),[T]):p},[n,i,$,T,p]),N=l.useCallback(function(P,O){if(O.action!=="select-option")return g(P,O);var z=Array.isArray(P)?P:[P];if(z[z.length-1]===T){if(f)f(S);else{var L=d(S,S),D={action:"create-option",name:R,option:L};g(Jf(M,[].concat(Zd(Zg(A)),[L]),L),D)}return}g(P,O)},[d,S,M,R,T,f,g,A]);return xt(xt({},m),{},{options:_,onChange:N})}var KNt=l.forwardRef(function(e,t){var n=dfe(e),r=XNt(n);return v.createElement(AI,St({ref:t},r))}),ZNt=KNt;const JNt={control:({isFocused:e,isDisabled:t})=>te("ui:min-h-10! ui:w-full ui:rounded-md! ui:bg-segmentify-200 ui:px-0! ui:text-sm ui:border ui:border-border!",e&&!t&&Ic({variant:"isControlFocused"}),t&&Ic({variant:"isDisabled"})),option:({isFocused:e,isSelected:t,isDisabled:n})=>te(Ic({variant:"default"}),t&&Ic({variant:"isSelected"}),!t&&e&&Ic({variant:"isFocused"}),n&&Ic({variant:"isDisabled"})),multiValue:()=>te(Ic({variant:"multiSelected"})),multiValueLabel:()=>"ui:text-primary!",multiValueRemove:()=>"ui:text-primary!",placeholder:()=>"ui:text-segmentify-600"};function QNt({label:e,name:t,options:n,value:r,onChange:i,onInputChange:o,placeholder:a,isClearable:s=!0,isSearchable:c=!0,isMulti:u=!0,isDisabled:d,description:f,className:h,isCreatable:p}){const g={"data-test-id":t,name:t,options:n,value:r,onChange:i,onInputChange:o,isClearable:s,isSearchable:c,isMulti:u,isDisabled:d,placeholder:a,classNames:JNt};return y.jsxs("article",{children:[e&&y.jsx(Io,{className:"ui:mb-2 ui:block",children:e}),y.jsx("div",{className:te("field-select ui:w-full select-wrapper ui:rounded-md! ui:text-sm",h),children:p?y.jsx(ZNt,{...g}):y.jsx(UNt,{...g})}),f&&y.jsx(Qv,{description:f})]})}function Ufe({...e}){return y.jsx(e2,{"data-slot":"sheet",...e})}function eOt({...e}){return y.jsx(hv,{"data-slot":"sheet-trigger",...e})}function tOt({...e}){return y.jsx(Cu,{"data-slot":"sheet-close",...e})}function nOt({...e}){return y.jsx(t2,{"data-slot":"sheet-portal",...e})}function rOt({className:e,...t}){return y.jsx(n2,{"data-slot":"sheet-overlay",className:te("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",e),...t})}function Yfe({className:e,children:t,side:n="right",...r}){return y.jsxs(nOt,{children:[y.jsx(rOt,{}),y.jsxs(r2,{"data-slot":"sheet-content",className:te("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:fixed ui:z-50 ui:flex ui:flex-col ui:gap-4 ui:shadow-lg ui:transition ui:ease-in-out ui:data-[state=closed]:duration-300 ui:data-[state=open]:duration-500",n==="right"&&"ui:data-[state=closed]:slide-out-to-right ui:data-[state=open]:slide-in-from-right ui:inset-y-0 ui:right-0 ui:h-full ui:w-3/4 ui:border-l ui:sm:max-w-sm",n==="left"&&"ui:data-[state=closed]:slide-out-to-left ui:data-[state=open]:slide-in-from-left ui:inset-y-0 ui:left-0 ui:h-full ui:w-3/4 ui:border-r ui:sm:max-w-sm",n==="top"&&"ui:data-[state=closed]:slide-out-to-top ui:data-[state=open]:slide-in-from-top ui:inset-x-0 ui:top-0 ui:h-auto ui:border-b",n==="bottom"&&"ui:data-[state=closed]:slide-out-to-bottom ui:data-[state=open]:slide-in-from-bottom ui:inset-x-0 ui:bottom-0 ui:h-auto ui:border-t",e),...r,children:[t,y.jsxs(Cu,{"data-testid":"sheet-close-icon",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-secondary ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none",children:[y.jsx(Ge.XIcon,{className:"ui:size-4"}),y.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function Xfe({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-header",className:te("ui:flex ui:flex-col ui:gap-1.5 ui:p-4",e),...t})}function iOt({className:e,...t}){return y.jsx("div",{"data-slot":"sheet-footer",className:te("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",e),...t})}function Kfe({className:e,...t}){return y.jsx(pv,{"data-slot":"sheet-title",className:te("ui:text-foreground ui:font-semibold",e),...t})}function Zfe({className:e,...t}){return y.jsx(mv,{"data-slot":"sheet-description",className:te("ui:text-muted-foreground ui:text-sm",e),...t})}function V$({className:e,...t}){return y.jsx("div",{"data-slot":"skeleton",className:te("ui:bg-accent ui:animate-pulse ui:rounded-md ui:shrink-0",e),...t})}const hE=768;function oOt(){const[e,t]=v.useState(()=>typeof window<"u"&&window.innerWidth<hE);return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${hE-1}px)`),r=()=>{t(window.innerWidth<hE)};return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const Jfe=v.createContext(null);function T5(){const e=v.useContext(Jfe);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const aOt="sidebar_state",lOt=3600*24*7,sOt="16rem",cOt="18rem",uOt="3rem",dOt="b";function fOt({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:o,...a}){const s=oOt(),[c,u]=v.useState(!1),[d,f]=v.useState(e),h=t??d,p=v.useCallback(w=>{const x=typeof w=="function"?w(h):w;n?n(x):f(x),document.cookie=`${aOt}=${x}; path=/; max-age=${lOt}`},[n,h]),g=v.useCallback(()=>s?u(w=>!w):p(w=>!w),[s,p,u]);v.useEffect(()=>{const w=x=>{x.key===dOt&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[g]);const m=h?"expanded":"collapsed",b=v.useMemo(()=>({state:m,open:h,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:u,toggleSidebar:g}),[m,h,p,s,c,u,g]);return y.jsx(Jfe.Provider,{value:b,children:y.jsx(XR,{delayDuration:0,children:y.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":sOt,"--sidebar-width-icon":uOt,...i},className:te("ui:group/sidebar-wrapper ui:has-data-[variant=inset]:bg-sidebar ui:flex ui:min-h-svh ui:w-full",r),...a,children:o})})})}function hOt({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...o}){const{isMobile:a,state:s,openMobile:c,setOpenMobile:u}=T5();return n==="none"?y.jsx("div",{"data-slot":"sidebar",className:te("ui:bg-sidebar ui:text-sidebar-foreground ui:flex ui:h-full ui:w-(--sidebar-width) ui:flex-col",r),...o,children:i}):a?y.jsx(Ufe,{open:c,onOpenChange:u,...o,children:y.jsxs(Yfe,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ui:bg-sidebar ui:text-sidebar-foreground ui:w-(--sidebar-width) ui:p-0 ui:[&>button]:hidden",style:{"--sidebar-width":cOt},side:e,children:[y.jsxs(Xfe,{className:"ui:sr-only",children:[y.jsx(Kfe,{children:"Sidebar"}),y.jsx(Zfe,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"ui:flex ui:h-full ui:w-full ui:flex-col",children:i})]})}):y.jsxs("div",{className:"ui:group ui:peer ui:text-sidebar-foreground ui:hidden ui:md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[y.jsx("div",{"data-slot":"sidebar-gap",className:te("ui:relative ui:w-(--sidebar-width) ui:bg-transparent ui:transition-[width] ui:duration-200 ui:ease-linear","ui:group-data-[collapsible=offcanvas]:w-0","ui:group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),y.jsx("div",{"data-slot":"sidebar-container",className:te("ui:fixed ui:inset-y-0 ui:z-10 ui:hidden ui:h-svh ui:w-(--sidebar-width) ui:transition-[left,right,width] ui:duration-200 ui:ease-linear ui:md:flex",e==="left"?"ui:left-0 ui:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"ui:right-0 ui:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"ui:p-2 ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ui:group-data-[side=left]:border-r ui:group-data-[side=right]:border-l",r),...o,children:y.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ui:bg-sidebar ui:group-data-[variant=floating]:border-sidebar-border ui:flex ui:h-full ui:w-full ui:flex-col ui:group-data-[variant=floating]:rounded-lg ui:group-data-[variant=floating]:border ui:group-data-[variant=floating]:shadow-sm",children:i})})]})}function pOt({className:e,onClick:t,...n}){const{toggleSidebar:r}=T5();return y.jsxs(qn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:te("ui:size-7",e),onClick:i=>{t?.(i),r()},...n,children:[y.jsx(Ge.PanelLeftIcon,{}),y.jsx("span",{className:"ui:sr-only",children:"Toggle Sidebar"})]})}function mOt({className:e,...t}){const{toggleSidebar:n}=T5();return y.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:te("ui:hover:after:bg-sidebar-border ui:absolute ui:inset-y-0 ui:z-20 ui:hidden ui:w-4 ui:-translate-x-1/2 ui:transition-all ui:ease-linear ui:group-data-[side=left]:-right-4 ui:group-data-[side=right]:left-0 ui:after:absolute ui:after:inset-y-0 ui:after:left-1/2 ui:after:w-[2px] ui:sm:flex","ui:in-data-[side=left]:cursor-w-resize ui:in-data-[side=right]:cursor-e-resize","ui:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ui:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize","ui:hover:group-data-[collapsible=offcanvas]:bg-sidebar ui:group-data-[collapsible=offcanvas]:translate-x-0 ui:group-data-[collapsible=offcanvas]:after:left-full","ui:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","ui:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function gOt({className:e,...t}){return y.jsx("main",{"data-slot":"sidebar-inset",className:te("ui:bg-background ui:relative ui:flex ui:w-full ui:flex-1 ui:flex-col","ui:md:peer-data-[variant=inset]:m-2 ui:md:peer-data-[variant=inset]:ml-0 ui:md:peer-data-[variant=inset]:rounded-xl ui:md:peer-data-[variant=inset]:shadow-sm ui:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function vOt({className:e,...t}){return y.jsx(gs,{"data-slot":"sidebar-input","data-sidebar":"input",className:te("ui:bg-background ui:h-8 ui:w-full ui:shadow-none",e),...t})}function bOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:te("ui:flex ui:flex-col ui:gap-2 ui:p-2",e),...t})}function yOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:te("ui:flex ui:flex-col ui:gap-2 ui:p-2",e),...t})}function wOt({className:e,...t}){return y.jsx(p0,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:te("ui:bg-sidebar-border ui:mx-2 ui:w-auto",e),...t})}function xOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:te("ui:flex ui:min-h-0 ui:flex-1 ui:flex-col ui:gap-2 ui:overflow-auto ui:group-data-[collapsible=icon]:overflow-hidden",e),...t})}function EOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:te("ui:relative ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:p-2",e),...t})}function COt({className:e,asChild:t=!1,...n}){const r=t?ms:"div";return y.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:te("ui:text-sidebar-foreground/70 ui:ring-sidebar-ring ui:flex ui:h-8 ui:shrink-0 ui:items-center ui:rounded-md ui:px-2 ui:text-xs ui:font-medium ui:outline-hidden ui:transition-[margin,opacity] ui:duration-200 ui:ease-linear ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:group-data-[collapsible=icon]:-mt-8 ui:group-data-[collapsible=icon]:opacity-0",e),...n})}function SOt({className:e,asChild:t=!1,...n}){const r=t?ms:"button";return y.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:absolute ui:top-3.5 ui:right-3 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:group-data-[collapsible=icon]:hidden",e),...n})}function $Ot({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:te("ui:w-full ui:text-sm",e),...t})}function MOt({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:te("ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:gap-1",e),...t})}function AOt({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:te("ui:group/menu-item ui:relative",e),...t})}const NOt=fc("ui:peer/menu-button ui:flex ui:w-full ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:p-2 ui:text-left ui:text-sm ui:outline-hidden ui:ring-sidebar-ring ui:transition-[width,height,padding] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:focus-visible:ring-2 ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:font-medium ui:data-[active=true]:text-sidebar-accent-foreground ui:data-[state=open]:hover:bg-sidebar-accent ui:data-[state=open]:hover:text-sidebar-accent-foreground ui:group-data-[collapsible=icon]:size-8! ui:group-data-[collapsible=icon]:p-2! ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0",{variants:{variant:{default:"ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground",outline:"ui:bg-background ui:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"ui:h-8 ui:text-sm",sm:"ui:h-7 ui:text-xs",lg:"ui:h-12 ui:text-sm ui:group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function OOt({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:o,...a}){const s=e?ms:"button",{isMobile:c,state:u}=T5(),d=y.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:te(NOt({variant:n,size:r}),o),...a});return i?(typeof i=="string"&&(i={children:i}),y.jsxs(KR,{children:[y.jsx(ZR,{asChild:!0,children:d}),y.jsx(b5,{side:"right",align:"center",hidden:u!=="collapsed"||c,...i})]})):d}function ROt({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const i=t?ms:"button";return y.jsx(i,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:absolute ui:top-1.5 ui:right-1 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",n&&"ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ui:group-focus-within/menu-item:opacity-100 ui:group-hover/menu-item:opacity-100 ui:data-[state=open]:opacity-100 ui:md:opacity-0",e),...r})}function IOt({className:e,...t}){return y.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:te("ui:text-sidebar-foreground ui:pointer-events-none ui:absolute ui:right-1 ui:flex ui:h-5 ui:min-w-5 ui:items-center ui:justify-center ui:rounded-md ui:px-1 ui:text-xs ui:font-medium ui:tabular-nums ui:select-none","ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",e),...t})}function POt({className:e,showIcon:t=!1,...n}){const[r]=v.useState(()=>`${Math.floor(Math.random()*40)+50}%`);return y.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:te("ui:flex ui:h-8 ui:items-center ui:gap-2 ui:rounded-md ui:px-2",e),...n,children:[t&&y.jsx(V$,{className:"ui:size-4 ui:rounded-md","data-sidebar":"menu-skeleton-icon"}),y.jsx(V$,{className:"ui:h-4 ui:max-w-(--skeleton-width) ui:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function FOt({className:e,...t}){return y.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:te("ui:border-sidebar-border ui:mx-3.5 ui:flex ui:min-w-0 ui:translate-x-px ui:flex-col ui:gap-1 ui:border-l ui:px-2.5 ui:py-0.5","ui:group-data-[collapsible=icon]:hidden",e),...t})}function TOt({className:e,...t}){return y.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:te("ui:group/menu-sub-item ui:relative",e),...t})}function DOt({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...i}){const o=e?ms:"a";return y.jsx(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:te("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:[&>svg]:text-sidebar-accent-foreground ui:flex ui:h-7 ui:min-w-0 ui:-translate-x-px ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:px-2 ui:outline-hidden ui:focus-visible:ring-2 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"ui:text-xs",t==="md"&&"ui:text-sm","ui:group-data-[collapsible=icon]:hidden",r),...i})}var zOt=(e,t,n,r,i,o,a,s)=>{let c=document.documentElement,u=["light","dark"];function d(p){(Array.isArray(e)?e:[e]).forEach(g=>{let m=g==="class",b=m&&o?i.map(w=>o[w]||w):i;m?(c.classList.remove(...b),c.classList.add(o&&o[p]?o[p]:p)):c.setAttribute(g,p)}),f(p)}function f(p){s&&u.includes(p)&&(c.style.colorScheme=p)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let p=localStorage.getItem(t)||n,g=a&&p==="system"?h():p;d(g)}catch{}},_Ot=v.createContext(void 0),kOt={setTheme:e=>{},themes:[]},LOt=()=>{var e;return(e=v.useContext(_Ot))!=null?e:kOt};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,themes:s,nonce:c,scriptProps:u})=>{let d=JSON.stringify([n,t,o,e,s,a,r,i]).slice(1,-1);return v.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${zOt.toString()})(${d})`}})});const jOt=({...e})=>{const{theme:t="system"}=LOt();return y.jsx(hM.Toaster,{theme:t,className:"ui:toaster ui:group",icons:{success:y.jsx(Ge.CircleCheckIcon,{className:"ui:size-4"}),info:y.jsx(Ge.InfoIcon,{className:"ui:size-4"}),warning:y.jsx(Ge.TriangleAlertIcon,{className:"ui:size-4"}),error:y.jsx(Ge.OctagonXIcon,{className:"ui:size-4"}),loading:y.jsx(Ge.Loader2Icon,{className:"ui:size-4 ui:animate-spin"})},style:{"--normal-bg":"hsl(var(--ui-popover))","--normal-text":"hsl(var(--ui-popover-foreground))","--normal-border":"hsl(var(--ui-border))","--border-radius":"var(--ui-radius)"},...e})};function HOt({title:e,containerClassName:t,className:n,...r}){return y.jsx("section",{className:te(t),children:y.jsxs("div",{className:"ui:flex ui:gap-1 ui:items-center",children:[y.jsx(Ge.Loader2Icon,{role:"status","aria-label":"Loading",className:te("ui:size-4 ui:animate-spin",n),...r}),e&&y.jsx("span",{children:e})]})})}function BOt({className:e,...t}){return y.jsx(Bbe,{"data-slot":"tabs",className:te("ui:flex ui:flex-col ui:gap-2",e),...t})}function VOt({className:e,...t}){return y.jsx(Vbe,{"data-slot":"tabs-list",className:te("ui:bg-white ui:text-muted-foreground ui:inline-flex ui:gap-2 ui:h-9 ui:w-fit ui:items-center ui:justify-center ui:rounded-lg ui:px-2",e),...t})}function qOt({className:e,...t}){return y.jsx(qbe,{"data-slot":"tabs-trigger",className:te("ui:bg-transparent ui:data-[state=active]:bg-segmentify-200 ui:dark:data-[state=active]:text-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:outline-ring ui:dark:data-[state=active]:border-input ui:dark:data-[state=active]:bg-input/30 ui:text-foreground ui:data-[state=active]:text-primary ui:dark:text-muted-foreground ui:inline-flex ui:h-7 ui:flex-1 ui:items-center ui:justify-center ui:gap-1.5 ui:rounded-md ui:border ui:border-transparent ui:px-4 ui:py-1 ui:text-sm ui:font-medium ui:whitespace-nowrap ui:transition-[color,box-shadow] ui:focus-visible:ring-[3px] ui:focus-visible:outline-1 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:data-[state=active]:shadow-sm ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4","ui:hover:bg-segmentify-200 ui:hover:text-primary ui:cursor-pointer ui:transition-all ui:duration-200",e),...t})}function GOt({className:e,...t}){return y.jsx(Gbe,{"data-slot":"tabs-content",className:te("ui:flex-1 ui:outline-none",e),...t})}function Qfe({className:e,...t}){return y.jsx("div",{"data-slot":"table-container",className:"ui:relative ui:w-full ui:overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:te("ui:w-full ui:caption-bottom ui:text-sm",e),...t})})}function e0e({className:e,...t}){return y.jsx("thead",{"data-slot":"table-header",className:te("ui:[&_tr]:border-b",e),...t})}function t0e({className:e,...t}){return y.jsx("tbody",{"data-slot":"table-body",className:te("ui:[&_tr:last-child]:border-0",e),...t})}function WOt({className:e,...t}){return y.jsx("tfoot",{"data-slot":"table-footer",className:te("ui:bg-muted/50 ui:border-t ui:font-medium ui:[&>tr]:last:border-b-0",e),...t})}function Qf({className:e,...t}){return y.jsx("tr",{"data-slot":"table-row",className:te("ui:hover:bg-muted/50 ui:data-[state=selected]:bg-muted ui:border-b ui:transition-colors",e),...t})}function n0e({className:e,...t}){return y.jsx("th",{"data-slot":"table-head",className:te("ui:text-foreground ui:h-10 ui:px-2 ui:text-left ui:align-middle ui:font-medium ui:whitespace-nowrap ui:*:[[role=checkbox]]:translate-y-[2px]",e),...t})}function i3({className:e,...t}){return y.jsx("td",{"data-slot":"table-cell",className:te("ui:px-2 ui:py-7 ui:align-middle ui:whitespace-nowrap ui:*:[[role=checkbox]]:translate-y-[2px]",e),...t})}function UOt({className:e,...t}){return y.jsx("caption",{"data-slot":"table-caption",className:te("ui:text-muted-foreground ui:mt-4 ui:text-sm",e),...t})}const q$=[{bg:"ui:bg-violet-600/10",text:"ui:text-violet-600"},{bg:"ui:bg-blue-600/10",text:"ui:text-blue-600"},{bg:"ui:bg-emerald-600/10",text:"ui:text-emerald-600"},{bg:"ui:bg-amber-600/10",text:"ui:text-amber-600"},{bg:"ui:bg-rose-600/10",text:"ui:text-rose-600"},{bg:"ui:bg-cyan-600/10",text:"ui:text-cyan-600"},{bg:"ui:bg-pink-600/10",text:"ui:text-pink-600"},{bg:"ui:bg-indigo-600/10",text:"ui:text-indigo-600"},{bg:"ui:bg-teal-600/10",text:"ui:text-teal-600"},{bg:"ui:bg-orange-600/10",text:"ui:text-orange-600"}],YOt=e=>Array.from({length:e},()=>Math.floor(Math.random()*q$.length)),XOt=({items:e,header:t,className:n,onItemClick:r,dateLocale:i})=>{const[o]=l.useState(()=>YOt(e.length));return y.jsxs("div",{className:te("ui:w-full ui:bg-white ui:rounded-lg ui:border ui:shadow-sm ui:p-6",n),children:[t&&y.jsx("div",{className:"ui:mb-4 ui:text-sm ui:text-muted-foreground",children:t}),y.jsx("div",{className:"ui:relative",children:e.map((a,s)=>{const{iconConfig:c,title:u,description:d,timestamp:f,tags:h,topRightSlot:p,bottomRightSlot:g}=a,m=c.icon,b=o[s]??s%q$.length,w=q$[b],x=c.bg??w.bg,E=c.text??w.text,S=!!r;return y.jsxs("div",{className:"ui:relative ui:flex ui:gap-4 ui:pb-6 ui:last:pb-0",children:[s<e.length-1&&y.jsx("div",{className:"ui:absolute ui:left-5 ui:top-11 ui:bottom-0 ui:w-0.5 ui:bg-border/60"}),y.jsx("div",{className:"ui:relative ui:z-10 ui:size-11 ui:shrink-0 ui:border ui:border-zinc-50 ui:p-1 ui:rounded-full ui:shadow-md",children:y.jsx("div",{className:te("ui:size-full ui:flex ui:items-center ui:justify-center ui:rounded-full",x),children:y.jsx(m,{className:te("ui:size-4",E)})})}),y.jsxs("div",{role:S?"button":void 0,tabIndex:S?0:void 0,onClick:S?()=>r(a,s):void 0,onKeyDown:S?$=>$.key==="Enter"&&r(a,s):void 0,className:te("ui:relative ui:flex ui:flex-1 ui:items-start ui:justify-between ui:gap-4 ui:rounded-lg ui:border ui:bg-background ui:p-4 ui:flex-col ui:md:flex-row",S&&"ui:hover:shadow-sm ui:transition-shadow ui:duration-300 ui:cursor-pointer"),children:[y.jsxs("div",{className:"ui:space-y-1",children:[y.jsx("h3",{className:"ui:text-base",children:u}),y.jsx("p",{className:"ui:text-sm ui:text-muted-foreground",children:d}),h&&y.jsx("div",{className:"ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground",children:h.map($=>y.jsx(EQ,{variant:"outline",className:"ui:shrink-0",children:$},$))}),y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-1.5 ui:pt-1 ui:text-xs ui:text-muted-foreground",children:[y.jsx(Ge.Clock,{className:"ui:size-3"}),y.jsx("span",{children:Gc(new Date(f),void 0,{locale:i})})]})]}),p&&y.jsx("div",{className:"ui:shrink-0",children:p}),g&&y.jsx("div",{className:"ui:absolute ui:bottom-4 ui:right-4 ui:shrink-0",children:g})]})]},s)})})]})},HW=({onClick:e,icon:t,label:n,isInclusion:r=!1})=>y.jsxs(qn,{type:"button",variant:"outline",size:"sm",onClick:e,className:te("ui:flex ui:items-center ui:gap-2",{"ui:text-red-500 ui:hover:text-red-600":!r,"ui:text-green-500 ui:hover:text-green-600":r}),children:[t,n]}),KOt={PRODUCT:"PRODUCT"},ZOt=({fields:e,swap:t})=>{const n=l.useRef(!1);return l.useEffect(()=>{if(n.current||e.length===0)return;const r=e.findIndex(i=>i?.staticType===KOt.PRODUCT);if(r>0)t(r,0);else if(r===-1){const i=e.findIndex(o=>o?.isStaticPromotion);i>0&&t(i,0)}n.current=!0},[e,t]),y.jsxs("div",{className:"ui:space-y-4 ui:mt-4",children:[e.map(r=>{const i=r.icon,o=r.label||"Unknown Algorithm";return y.jsxs("div",{className:"ui:p-4 ui:border ui:rounded-md ui:bg-gray-50 ui:flex ui:items-center ui:justify-between",children:[y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2",children:[i&&y.jsx("span",{children:i}),y.jsx("span",{className:"ui:font-medium",children:o})]}),y.jsx("div",{className:"ui:text-sm ui:text-gray-500",children:r.value?JSON.stringify(r.value):"No value"})]},r.id)}),e.length===0&&y.jsx("div",{className:"ui:py-8 ui:text-center ui:text-gray-400 ui:border-2 ui:border-dashed ui:rounded-md",children:"No algorithms selected. Add one using the buttons above."})]})},JOt=({...e})=>{const{control:t,fieldArray:n,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o={},labels:a={},config:s={},onFiltersToggle:c,renderFilters:u,renderAlgorithmModals:d,renderSelectedAlgorithms:f}=e,{fields:h,append:p,remove:g,move:m,swap:b,update:w}=n,[x,E]=l.useState(()=>{const P=t._formValues,O=P?.EXCLUDE,z=P?.INCLUDE;return{exclude:!!O?.length,include:!!z?.length}}),S=P=>{const O={...x,[P]:!x[P]};E(O),c?.(P,O[P])},{isRecommendation:$=!1,isEmail:M=!1,isWhatsapp:A=!1,isPromotion:R=!1,showShuffleProducts:T=!1,showRecommendOtherCategories:_=!1,showShufflePromotions:N=!1}=s;return y.jsx(jY,{type:"multiple",defaultValue:["recommendation-card"],children:y.jsx(HY,{value:"recommendation-card",className:"ui:border-0",children:y.jsxs(VQ,{children:[y.jsxs(qQ,{className:"ui:pb-3 ui:bg-white",children:[y.jsx(BY,{className:"ui:p-0 ui:gap-2",children:y.jsx("span",{className:"ui:text-xl ui:font-semibold ui:text-black-900 ui:hover:text-black-900",children:a.title||"Recommendation"})}),y.jsxs(GQ,{children:[a.description||"Manage your recommendation settings",y.jsx(Zr,{control:t,name:"selectedAlgorithms",render:()=>y.jsx(_r,{children:y.jsx(Jr,{})})})]})]}),y.jsxs(WQ,{children:[y.jsxs("div",{className:"ui:flex ui:justify-between ui:items-center ui:flex-wrap ui:gap-4",children:[y.jsx("div",{className:"ui:flex ui:items-center ui:gap-2",children:d?d({control:t,intelligentAlgorithms:r,staticAlgorithms:i,fields:h,append:p,emailAlgorithmConfig:o}):y.jsx("div",{className:"ui:flex ui:items-center ui:gap-2 ui:text-sm ui:text-gray-500",children:"Please provide renderAlgorithmModals"})}),y.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2 ui:flex-wrap",children:[$&&T&&y.jsx(Zm,{control:t,name:"shuffleProducts",label:a.shuffleProducts||"Shuffle Products",containerClassName:"ui:mb-0 ui:lg:ml-4"}),$&&_&&y.jsx(Zm,{control:t,name:"recommendOtherCategories",label:a.recommendOtherCategories||"Recommend Other Categories",containerClassName:"ui:mb-0 ui:lg:ml-4"}),R&&N&&y.jsx(Zm,{control:t,name:"shufflePromotions",label:a.shufflePromotions||"Shuffle Promotions",containerClassName:"ui:mb-0 ui:lg:ml-4"}),($||M||A)&&y.jsxs(y.Fragment,{children:[y.jsx(HW,{onClick:()=>S("exclude"),icon:y.jsx(Ge.CircleMinus,{size:"16"}),label:a.exclusionFilters||"Exclusion Filters"}),y.jsx(HW,{onClick:()=>S("include"),icon:y.jsx(Ge.CirclePlus,{size:"16"}),label:a.inclusionFilters||"Inclusion Filters",isInclusion:!0})]})]})]}),y.jsxs(VY,{className:"ui:p-0!",wrapperClassName:"accordion-content-overflow-visible",children:[y.jsx(p0,{className:te("ui:hidden ui:mt-4 ui:mb-4",{"ui:block":h.length>0})}),f?f({control:t,fields:h,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o,update:w,move:m,swap:b,remove:g,config:s}):y.jsx(ZOt,{control:t,fields:h,intelligentAlgorithms:r,staticAlgorithms:i,emailAlgorithmConfig:o,update:w,move:m,swap:b,remove:g,config:s}),x.exclude&&u&&y.jsxs(y.Fragment,{children:[y.jsx(p0,{className:"ui:mt-4"}),u("exclude")]}),x.include&&u&&y.jsxs(y.Fragment,{children:[y.jsx(p0,{className:"ui:mt-4"}),u("include")]})]})]})]})})})};var r0e=typeof global=="object"&&global&&global.Object===Object&&global,QOt=typeof self=="object"&&self&&self.Object===Object&&self,Ml=r0e||QOt||Function("return this")(),ic=Ml.Symbol,i0e=Object.prototype,eRt=i0e.hasOwnProperty,tRt=i0e.toString,Tf=ic?ic.toStringTag:void 0;function nRt(e){var t=eRt.call(e,Tf),n=e[Tf];try{e[Tf]=void 0;var r=!0}catch{}var i=tRt.call(e);return r&&(t?e[Tf]=n:delete e[Tf]),i}var rRt=Object.prototype,iRt=rRt.toString;function oRt(e){return iRt.call(e)}var aRt="[object Null]",lRt="[object Undefined]",BW=ic?ic.toStringTag:void 0;function lf(e){return e==null?e===void 0?lRt:aRt:BW&&BW in Object(e)?nRt(e):oRt(e)}function fs(e){return e!=null&&typeof e=="object"}var gu=Array.isArray;function Nc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function o0e(e){return e}var sRt="[object AsyncFunction]",cRt="[object Function]",uRt="[object GeneratorFunction]",dRt="[object Proxy]";function NI(e){if(!Nc(e))return!1;var t=lf(e);return t==cRt||t==uRt||t==sRt||t==dRt}var pE=Ml["__core-js_shared__"],VW=(function(){var e=/[^.]+$/.exec(pE&&pE.keys&&pE.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function fRt(e){return!!VW&&VW in e}var hRt=Function.prototype,pRt=hRt.toString;function Gu(e){if(e!=null){try{return pRt.call(e)}catch{}try{return e+""}catch{}}return""}var mRt=/[\\^$.*+?()[\]{}|]/g,gRt=/^\[object .+?Constructor\]$/,vRt=Function.prototype,bRt=Object.prototype,yRt=vRt.toString,wRt=bRt.hasOwnProperty,xRt=RegExp("^"+yRt.call(wRt).replace(mRt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ERt(e){if(!Nc(e)||fRt(e))return!1;var t=NI(e)?xRt:gRt;return t.test(Gu(e))}function CRt(e,t){return e?.[t]}function Wu(e,t){var n=CRt(e,t);return ERt(n)?n:void 0}var G$=Wu(Ml,"WeakMap"),qW=Object.create,SRt=(function(){function e(){}return function(t){if(!Nc(t))return{};if(qW)return qW(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function $Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function MRt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ARt=800,NRt=16,ORt=Date.now;function RRt(e){var t=0,n=0;return function(){var r=ORt(),i=NRt-(r-n);if(n=r,i>0){if(++t>=ARt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function IRt(e){return function(){return e}}var ev=(function(){try{var e=Wu(Object,"defineProperty");return e({},"",{}),e}catch{}})(),PRt=ev?function(e,t){return ev(e,"toString",{configurable:!0,enumerable:!1,value:IRt(t),writable:!0})}:o0e,FRt=RRt(PRt);function TRt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var DRt=9007199254740991,zRt=/^(?:0|[1-9]\d*)$/;function a0e(e,t){var n=typeof e;return t=t??DRt,!!t&&(n=="number"||n!="symbol"&&zRt.test(e))&&e>-1&&e%1==0&&e<t}function OI(e,t,n){t=="__proto__"&&ev?ev(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function J2(e,t){return e===t||e!==e&&t!==t}var _Rt=Object.prototype,kRt=_Rt.hasOwnProperty;function l0e(e,t,n){var r=e[t];(!(kRt.call(e,t)&&J2(r,n))||n===void 0&&!(t in e))&&OI(e,t,n)}function LRt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=void 0;c===void 0&&(c=e[s]),i?OI(n,s,c):l0e(n,s,c)}return n}var GW=Math.max;function jRt(e,t,n){return t=GW(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=GW(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),$Rt(e,this,s)}}function HRt(e,t){return FRt(jRt(e,t,o0e),e+"")}var BRt=9007199254740991;function s0e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=BRt}function D5(e){return e!=null&&s0e(e.length)&&!NI(e)}function VRt(e,t,n){if(!Nc(n))return!1;var r=typeof t;return(r=="number"?D5(n)&&a0e(t,n.length):r=="string"&&t in n)?J2(n[t],e):!1}function qRt(e){return HRt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&VRt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var GRt=Object.prototype;function RI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GRt;return e===n}function WRt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var URt="[object Arguments]";function WW(e){return fs(e)&&lf(e)==URt}var c0e=Object.prototype,YRt=c0e.hasOwnProperty,XRt=c0e.propertyIsEnumerable,W$=WW((function(){return arguments})())?WW:function(e){return fs(e)&&YRt.call(e,"callee")&&!XRt.call(e,"callee")};function KRt(){return!1}var u0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,UW=u0e&&typeof module=="object"&&module&&!module.nodeType&&module,ZRt=UW&&UW.exports===u0e,YW=ZRt?Ml.Buffer:void 0,JRt=YW?YW.isBuffer:void 0,qh=JRt||KRt,QRt="[object Arguments]",eIt="[object Array]",tIt="[object Boolean]",nIt="[object Date]",rIt="[object Error]",iIt="[object Function]",oIt="[object Map]",aIt="[object Number]",lIt="[object Object]",sIt="[object RegExp]",cIt="[object Set]",uIt="[object String]",dIt="[object WeakMap]",fIt="[object ArrayBuffer]",hIt="[object DataView]",pIt="[object Float32Array]",mIt="[object Float64Array]",gIt="[object Int8Array]",vIt="[object Int16Array]",bIt="[object Int32Array]",yIt="[object Uint8Array]",wIt="[object Uint8ClampedArray]",xIt="[object Uint16Array]",EIt="[object Uint32Array]",On={};On[pIt]=On[mIt]=On[gIt]=On[vIt]=On[bIt]=On[yIt]=On[wIt]=On[xIt]=On[EIt]=!0;On[QRt]=On[eIt]=On[fIt]=On[tIt]=On[hIt]=On[nIt]=On[rIt]=On[iIt]=On[oIt]=On[aIt]=On[lIt]=On[sIt]=On[cIt]=On[uIt]=On[dIt]=!1;function CIt(e){return fs(e)&&s0e(e.length)&&!!On[lf(e)]}function II(e){return function(t){return e(t)}}var d0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=d0e&&typeof module=="object"&&module&&!module.nodeType&&module,SIt=m0&&m0.exports===d0e,mE=SIt&&r0e.process,I1=(function(){try{var e=m0&&m0.require&&m0.require("util").types;return e||mE&&mE.binding&&mE.binding("util")}catch{}})(),XW=I1&&I1.isTypedArray,PI=XW?II(XW):CIt,$It=Object.prototype,MIt=$It.hasOwnProperty;function f0e(e,t){var n=gu(e),r=!n&&W$(e),i=!n&&!r&&qh(e),o=!n&&!r&&!i&&PI(e),a=n||r||i||o,s=a?WRt(e.length,String):[],c=s.length;for(var u in e)(t||MIt.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||a0e(u,c)))&&s.push(u);return s}function h0e(e,t){return function(n){return e(t(n))}}var AIt=h0e(Object.keys,Object),NIt=Object.prototype,OIt=NIt.hasOwnProperty;function RIt(e){if(!RI(e))return AIt(e);var t=[];for(var n in Object(e))OIt.call(e,n)&&n!="constructor"&&t.push(n);return t}function IIt(e){return D5(e)?f0e(e):RIt(e)}function PIt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var FIt=Object.prototype,TIt=FIt.hasOwnProperty;function DIt(e){if(!Nc(e))return PIt(e);var t=RI(e),n=[];for(var r in e)r=="constructor"&&(t||!TIt.call(e,r))||n.push(r);return n}function p0e(e){return D5(e)?f0e(e,!0):DIt(e)}var Gh=Wu(Object,"create");function zIt(){this.__data__=Gh?Gh(null):{},this.size=0}function _It(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kIt="__lodash_hash_undefined__",LIt=Object.prototype,jIt=LIt.hasOwnProperty;function HIt(e){var t=this.__data__;if(Gh){var n=t[e];return n===kIt?void 0:n}return jIt.call(t,e)?t[e]:void 0}var BIt=Object.prototype,VIt=BIt.hasOwnProperty;function qIt(e){var t=this.__data__;return Gh?t[e]!==void 0:VIt.call(t,e)}var GIt="__lodash_hash_undefined__";function WIt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gh&&t===void 0?GIt:t,this}function vu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vu.prototype.clear=zIt;vu.prototype.delete=_It;vu.prototype.get=HIt;vu.prototype.has=qIt;vu.prototype.set=WIt;function UIt(){this.__data__=[],this.size=0}function z5(e,t){for(var n=e.length;n--;)if(J2(e[n][0],t))return n;return-1}var YIt=Array.prototype,XIt=YIt.splice;function KIt(e){var t=this.__data__,n=z5(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():XIt.call(t,n,1),--this.size,!0}function ZIt(e){var t=this.__data__,n=z5(t,e);return n<0?void 0:t[n][1]}function JIt(e){return z5(this.__data__,e)>-1}function QIt(e,t){var n=this.__data__,r=z5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=UIt;Es.prototype.delete=KIt;Es.prototype.get=ZIt;Es.prototype.has=JIt;Es.prototype.set=QIt;var Wh=Wu(Ml,"Map");function ePt(){this.size=0,this.__data__={hash:new vu,map:new(Wh||Es),string:new vu}}function tPt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _5(e,t){var n=e.__data__;return tPt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function nPt(e){var t=_5(this,e).delete(e);return this.size-=t?1:0,t}function rPt(e){return _5(this,e).get(e)}function iPt(e){return _5(this,e).has(e)}function oPt(e,t){var n=_5(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Uu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uu.prototype.clear=ePt;Uu.prototype.delete=nPt;Uu.prototype.get=rPt;Uu.prototype.has=iPt;Uu.prototype.set=oPt;function aPt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var m0e=h0e(Object.getPrototypeOf,Object),lPt="[object Object]",sPt=Function.prototype,cPt=Object.prototype,g0e=sPt.toString,uPt=cPt.hasOwnProperty,dPt=g0e.call(Object);function fPt(e){if(!fs(e)||lf(e)!=lPt)return!1;var t=m0e(e);if(t===null)return!0;var n=uPt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&g0e.call(n)==dPt}function hPt(){this.__data__=new Es,this.size=0}function pPt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mPt(e){return this.__data__.get(e)}function gPt(e){return this.__data__.has(e)}var vPt=200;function bPt(e,t){var n=this.__data__;if(n instanceof Es){var r=n.__data__;if(!Wh||r.length<vPt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Uu(r)}return n.set(e,t),this.size=n.size,this}function il(e){var t=this.__data__=new Es(e);this.size=t.size}il.prototype.clear=hPt;il.prototype.delete=pPt;il.prototype.get=mPt;il.prototype.has=gPt;il.prototype.set=bPt;var v0e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,KW=v0e&&typeof module=="object"&&module&&!module.nodeType&&module,yPt=KW&&KW.exports===v0e,ZW=yPt?Ml.Buffer:void 0,JW=ZW?ZW.allocUnsafe:void 0;function b0e(e,t){if(t)return e.slice();var n=e.length,r=JW?JW(n):new e.constructor(n);return e.copy(r),r}function wPt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function xPt(){return[]}var EPt=Object.prototype,CPt=EPt.propertyIsEnumerable,QW=Object.getOwnPropertySymbols,SPt=QW?function(e){return e==null?[]:(e=Object(e),wPt(QW(e),function(t){return CPt.call(e,t)}))}:xPt;function $Pt(e,t,n){var r=t(e);return gu(e)?r:aPt(r,n(e))}function U$(e){return $Pt(e,IIt,SPt)}var Y$=Wu(Ml,"DataView"),X$=Wu(Ml,"Promise"),K$=Wu(Ml,"Set"),eU="[object Map]",MPt="[object Object]",tU="[object Promise]",nU="[object Set]",rU="[object WeakMap]",iU="[object DataView]",APt=Gu(Y$),NPt=Gu(Wh),OPt=Gu(X$),RPt=Gu(K$),IPt=Gu(G$),oa=lf;(Y$&&oa(new Y$(new ArrayBuffer(1)))!=iU||Wh&&oa(new Wh)!=eU||X$&&oa(X$.resolve())!=tU||K$&&oa(new K$)!=nU||G$&&oa(new G$)!=rU)&&(oa=function(e){var t=lf(e),n=t==MPt?e.constructor:void 0,r=n?Gu(n):"";if(r)switch(r){case APt:return iU;case NPt:return eU;case OPt:return tU;case RPt:return nU;case IPt:return rU}return t});var PPt=Object.prototype,FPt=PPt.hasOwnProperty;function TPt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&FPt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var tv=Ml.Uint8Array;function FI(e){var t=new e.constructor(e.byteLength);return new tv(t).set(new tv(e)),t}function DPt(e,t){var n=FI(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var zPt=/\w*$/;function _Pt(e){var t=new e.constructor(e.source,zPt.exec(e));return t.lastIndex=e.lastIndex,t}var oU=ic?ic.prototype:void 0,aU=oU?oU.valueOf:void 0;function kPt(e){return aU?Object(aU.call(e)):{}}function y0e(e,t){var n=t?FI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var LPt="[object Boolean]",jPt="[object Date]",HPt="[object Map]",BPt="[object Number]",VPt="[object RegExp]",qPt="[object Set]",GPt="[object String]",WPt="[object Symbol]",UPt="[object ArrayBuffer]",YPt="[object DataView]",XPt="[object Float32Array]",KPt="[object Float64Array]",ZPt="[object Int8Array]",JPt="[object Int16Array]",QPt="[object Int32Array]",eFt="[object Uint8Array]",tFt="[object Uint8ClampedArray]",nFt="[object Uint16Array]",rFt="[object Uint32Array]";function iFt(e,t,n){var r=e.constructor;switch(t){case UPt:return FI(e);case LPt:case jPt:return new r(+e);case YPt:return DPt(e);case XPt:case KPt:case ZPt:case JPt:case QPt:case eFt:case tFt:case nFt:case rFt:return y0e(e,n);case HPt:return new r;case BPt:case GPt:return new r(e);case VPt:return _Pt(e);case qPt:return new r;case WPt:return kPt(e)}}function w0e(e){return typeof e.constructor=="function"&&!RI(e)?SRt(m0e(e)):{}}var oFt="[object Map]";function aFt(e){return fs(e)&&oa(e)==oFt}var lU=I1&&I1.isMap,lFt=lU?II(lU):aFt,sFt="[object Set]";function cFt(e){return fs(e)&&oa(e)==sFt}var sU=I1&&I1.isSet,uFt=sU?II(sU):cFt,dFt=1,x0e="[object Arguments]",fFt="[object Array]",hFt="[object Boolean]",pFt="[object Date]",mFt="[object Error]",E0e="[object Function]",gFt="[object GeneratorFunction]",vFt="[object Map]",bFt="[object Number]",C0e="[object Object]",yFt="[object RegExp]",wFt="[object Set]",xFt="[object String]",EFt="[object Symbol]",CFt="[object WeakMap]",SFt="[object ArrayBuffer]",$Ft="[object DataView]",MFt="[object Float32Array]",AFt="[object Float64Array]",NFt="[object Int8Array]",OFt="[object Int16Array]",RFt="[object Int32Array]",IFt="[object Uint8Array]",PFt="[object Uint8ClampedArray]",FFt="[object Uint16Array]",TFt="[object Uint32Array]",$n={};$n[x0e]=$n[fFt]=$n[SFt]=$n[$Ft]=$n[hFt]=$n[pFt]=$n[MFt]=$n[AFt]=$n[NFt]=$n[OFt]=$n[RFt]=$n[vFt]=$n[bFt]=$n[C0e]=$n[yFt]=$n[wFt]=$n[xFt]=$n[EFt]=$n[IFt]=$n[PFt]=$n[FFt]=$n[TFt]=!0;$n[mFt]=$n[E0e]=$n[CFt]=!1;function o3(e,t,n,r,i,o){var a,s=t&dFt;if(a!==void 0)return a;if(!Nc(e))return e;var c=gu(e);if(c)a=TPt(e);else{var u=oa(e),d=u==E0e||u==gFt;if(qh(e))return b0e(e,s);if(u==C0e||u==x0e||d&&!i)a=d?{}:w0e(e);else{if(!$n[u])return i?e:{};a=iFt(e,u,s)}}o||(o=new il);var f=o.get(e);if(f)return f;o.set(e,a),uFt(e)?e.forEach(function(g){a.add(o3(g,t,n,g,e,o))}):lFt(e)&&e.forEach(function(g,m){a.set(m,o3(g,t,n,m,e,o))});var h=U$,p=c?void 0:h(e);return TRt(p||e,function(g,m){p&&(m=g,g=e[m]),l0e(a,m,o3(g,t,n,m,e,o))}),a}var DFt=1,zFt=4;function Qd(e){return o3(e,DFt|zFt)}var _Ft="__lodash_hash_undefined__";function kFt(e){return this.__data__.set(e,_Ft),this}function LFt(e){return this.__data__.has(e)}function nv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Uu;++t<n;)this.add(e[t])}nv.prototype.add=nv.prototype.push=kFt;nv.prototype.has=LFt;function jFt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function HFt(e,t){return e.has(t)}var BFt=1,VFt=2;function S0e(e,t,n,r,i,o){var a=n&BFt,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&VFt?new nv:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],m=t[f];if(r)var b=a?r(m,g,f,t,e,o):r(g,m,f,e,t,o);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!jFt(t,function(w,x){if(!HFt(p,x)&&(g===w||i(g,w,n,r,o)))return p.push(x)})){h=!1;break}}else if(!(g===m||i(g,m,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function qFt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function GFt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var WFt=1,UFt=2,YFt="[object Boolean]",XFt="[object Date]",KFt="[object Error]",ZFt="[object Map]",JFt="[object Number]",QFt="[object RegExp]",eTt="[object Set]",tTt="[object String]",nTt="[object Symbol]",rTt="[object ArrayBuffer]",iTt="[object DataView]",cU=ic?ic.prototype:void 0,gE=cU?cU.valueOf:void 0;function oTt(e,t,n,r,i,o,a){switch(n){case iTt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rTt:return!(e.byteLength!=t.byteLength||!o(new tv(e),new tv(t)));case YFt:case XFt:case JFt:return J2(+e,+t);case KFt:return e.name==t.name&&e.message==t.message;case QFt:case tTt:return e==t+"";case ZFt:var s=qFt;case eTt:var c=r&WFt;if(s||(s=GFt),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=UFt,a.set(e,t);var d=S0e(s(e),s(t),r,i,o,a);return a.delete(e),d;case nTt:if(gE)return gE.call(e)==gE.call(t)}return!1}var aTt=1,lTt=Object.prototype,sTt=lTt.hasOwnProperty;function cTt(e,t,n,r,i,o){var a=n&aTt,s=U$(e),c=s.length,u=U$(t),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var h=s[f];if(!(a?h in t:sTt.call(t,h)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var b=a;++f<c;){h=s[f];var w=e[h],x=t[h];if(r)var E=a?r(x,w,h,t,e,o):r(w,x,h,e,t,o);if(!(E===void 0?w===x||i(w,x,n,r,o):E)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var S=e.constructor,$=t.constructor;S!=$&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof $=="function"&&$ instanceof $)&&(m=!1)}return o.delete(e),o.delete(t),m}var uTt=1,uU="[object Arguments]",dU="[object Array]",vm="[object Object]",dTt=Object.prototype,fU=dTt.hasOwnProperty;function fTt(e,t,n,r,i,o){var a=gu(e),s=gu(t),c=a?dU:oa(e),u=s?dU:oa(t);c=c==uU?vm:c,u=u==uU?vm:u;var d=c==vm,f=u==vm,h=c==u;if(h&&qh(e)){if(!qh(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new il),a||PI(e)?S0e(e,t,n,r,i,o):oTt(e,t,c,n,r,i,o);if(!(n&uTt)){var p=d&&fU.call(e,"__wrapped__"),g=f&&fU.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,b=g?t.value():t;return o||(o=new il),i(m,b,n,r,o)}}return h?(o||(o=new il),cTt(e,t,n,r,i,o)):!1}function $0e(e,t,n,r,i){return e===t?!0:e==null||t==null||!fs(e)&&!fs(t)?e!==e&&t!==t:fTt(e,t,n,r,$0e,i)}function hTt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[++i];if(n(o[c],c,o)===!1)break}return t}}var pTt=hTt();function Z$(e,t,n){(n!==void 0&&!J2(e[t],n)||n===void 0&&!(t in e))&&OI(e,t,n)}function mTt(e){return fs(e)&&D5(e)}function J$(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function gTt(e){return LRt(e,p0e(e))}function vTt(e,t,n,r,i,o,a){var s=J$(e,n),c=J$(t,n),u=a.get(c);if(u){Z$(e,n,u);return}var d=o?o(s,c,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=gu(c),p=!h&&qh(c),g=!h&&!p&&PI(c);d=c,h||p||g?gu(s)?d=s:mTt(s)?d=MRt(s):p?(f=!1,d=b0e(c,!0)):g?(f=!1,d=y0e(c,!0)):d=[]:fPt(c)||W$(c)?(d=s,W$(s)?d=gTt(s):(!Nc(s)||NI(s))&&(d=w0e(c))):f=!1}f&&(a.set(c,d),i(d,c,r,o,a),a.delete(c)),Z$(e,n,d)}function M0e(e,t,n,r,i){e!==t&&pTt(t,function(o,a){if(i||(i=new il),Nc(o))vTt(e,t,a,n,M0e,r,i);else{var s=r?r(J$(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Z$(e,a,s)}},p0e)}function TI(e,t){return $0e(e,t)}var Us=qRt(function(e,t,n){M0e(e,t,n)}),ft=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(ft||{});class fl{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=ft.TYPE&ft.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ft.LEVEL|i:ft.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class e1 extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const A0e=class Q${constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new e1(`Unable to create ${n} blot`);const o=i,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),s=new o(t,a,r);return Q$.blots.set(s.domNode,s),s}find(t,n=!1){return Q$.find(t,n)}query(t,n=ft.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&ft.LEVEL&ft.BLOCK?r=this.types.block:t&ft.LEVEL&ft.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&ft.LEVEL&r.scope&&n&ft.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new e1("Invalid definition");if(r&&n.blotName==="abstract")throw new e1("Cannot register abstract class");const o=r?n.blotName:i?n.attrName:void 0;return this.types[o]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(a=>a.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(this.tags[a]==null||n.className==null)&&(this.tags[a]=n)}))),n})}};A0e.blots=new WeakMap;let P1=A0e;function hU(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class bTt extends fl{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){hU(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(hU(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const Da=bTt;function vE(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class yTt extends fl{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[vE(this.keyName)]=n,!0):!1}remove(t){t.style[vE(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[vE(this.keyName)];return this.canAdd(t,n)?n:""}}const Oc=yTt;class wTt{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=P1.find(this.domNode);if(t==null)return;const n=fl.keys(this.domNode),r=Da.keys(this.domNode),i=Oc.keys(this.domNode);n.concat(r).concat(i).forEach(o=>{const a=t.scroll.query(o,ft.ATTRIBUTE);a instanceof fl&&(this.attributes[a.attrName]=a)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const k5=wTt,N0e=class{constructor(t,n){this.scroll=t,this.domNode=n,P1.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new e1("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),P1.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const o=this.isolate(t,n);if(this.scroll.query(r,ft.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,ft.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);o.wrap(a),a.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),o=this.split(t);this.parent.insertBefore(i,o||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new e1(`Cannot wrap ${t}`);return r.appendChild(this),r}};N0e.blotName="abstract";let O0e=N0e;const R0e=class extends O0e{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};R0e.scope=ft.INLINE_BLOT;let xTt=R0e;const Wr=xTt;class ETt{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(t<o||n&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,o]=this.find(t);let a=t-o;const s=this.iterator(i);let c=s();for(;c&&a<t+n;){const u=c.length();t>a?r(c,t-a,Math.min(n,a+u-t)):r(c,0,Math.min(u,t+n-a)),a+=u,c=s()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function pU(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(ft.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const I0e=class Fs extends O0e{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Fs.uiClass&&this.uiNode.classList.add(Fs.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new ETt,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=pU(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof e1)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,o)=>{r.deleteAt(i,o)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof Fs?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(a,s,c)=>{(t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t)&&i.push(a),a instanceof Fs&&(i=i.concat(a.descendants(t,s,o))),o-=c}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ft.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof Fs?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(o,a,s)=>{o.formatAt(a,s,r,i)})}insertAt(t,n,r){const[i,o]=this.children.find(t);if(i)i.insertAt(o,n,r);else{const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof Fs?o.concat(r.path(i,n)):(r!=null&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof Fs&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,a)=>{const s=i.split(o,n);s!=null&&r.appendChild(s)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(o);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,a)=>o===a?0:o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let a=null;o.nextSibling!=null&&(a=this.scroll.find(o.nextSibling));const s=pU(o,this.scroll);(s.next!==a||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,a||void 0))}),this.enforceAllowedChildren()}};I0e.uiClass="";let CTt=I0e;const ma=CTt;function STt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const Cd=class Sd extends ma{static create(t){return super.create(t)}static formats(t,n){const r=n.query(Sd.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new k5(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Sd||(r=r.wrap(Sd.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,ft.INLINE);if(r==null)return;r instanceof fl?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ft.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Sd&&r.prev===this&&STt(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof Sd&&this.attributes.move(r),r}};Cd.allowedChildren=[Cd,Wr],Cd.blotName="inline",Cd.scope=ft.INLINE_BLOT,Cd.tagName="SPAN";let $Tt=Cd;const DI=$Tt,$d=class eM extends ma{static create(t){return super.create(t)}static formats(t,n){const r=n.query(eM.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new k5(this.domNode)}format(t,n){const r=this.scroll.query(t,ft.BLOCK);r!=null&&(r instanceof fl?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(eM.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,ft.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,ft.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(n,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};$d.blotName="block",$d.scope=ft.BLOCK_BLOT,$d.tagName="P",$d.allowedChildren=[DI,$d,Wr];let MTt=$d;const Uh=MTt,tM=class extends ma{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};tM.blotName="container",tM.scope=ft.BLOCK_BLOT;let ATt=tM;const L5=ATt;class NTt extends Wr{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Zi=NTt,OTt={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},RTt=100,Md=class extends ma{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,OTt),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=ft.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const o=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&o(c.parent))},a=c=>{r.has(c.domNode)&&(c instanceof ma&&c.children.forEach(a),r.delete(c.domNode),c.optimize(n))};let s=t;for(let c=0;s.length>0;c+=1){if(c>=RTt)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(o(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);o(h,!1),h instanceof ma&&h.children.forEach(p=>{o(p,!1)})})):u.type==="attributes"&&o(d.prev)),o(d))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),i=s.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};Md.blotName="scroll",Md.defaultChild=Uh,Md.allowedChildren=[Uh,L5],Md.scope=ft.BLOCK_BLOT,Md.tagName="DIV";let ITt=Md;const zI=ITt,nM=class P0e extends Wr{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof P0e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};nM.blotName="text",nM.scope=ft.INLINE_BLOT;let PTt=nM;const rv=PTt,FTt=Object.freeze(Object.defineProperty({__proto__:null,Attributor:fl,AttributorStore:k5,BlockBlot:Uh,ClassAttributor:Da,ContainerBlot:L5,EmbedBlot:Zi,InlineBlot:DI,LeafBlot:Wr,ParentBlot:ma,Registry:P1,Scope:ft,ScrollBlot:zI,StyleAttributor:Oc,TextBlot:rv},Symbol.toStringTag,{value:"Module"}));var bm={exports:{}},bE,mU;function TTt(){if(mU)return bE;mU=1;var e=-1,t=1,n=0;function r(N,P,O,z,L){if(N===P)return N?[[n,N]]:[];if(O!=null){var D=T(N,P,O);if(D)return D}var k=s(N,P),H=N.substring(0,k);N=N.substring(k),P=P.substring(k),k=u(N,P);var W=N.substring(N.length-k);N=N.substring(0,N.length-k),P=P.substring(0,P.length-k);var F=i(N,P);return H&&F.unshift([n,H]),W&&F.push([n,W]),x(F,L),z&&f(F),F}function i(N,P){var O;if(!N)return[[t,P]];if(!P)return[[e,N]];var z=N.length>P.length?N:P,L=N.length>P.length?P:N,D=z.indexOf(L);if(D!==-1)return O=[[t,z.substring(0,D)],[n,L],[t,z.substring(D+L.length)]],N.length>P.length&&(O[0][0]=O[2][0]=e),O;if(L.length===1)return[[e,N],[t,P]];var k=d(N,P);if(k){var H=k[0],W=k[1],F=k[2],K=k[3],j=k[4],U=r(H,F),Y=r(W,K);return U.concat([[n,j]],Y)}return o(N,P)}function o(N,P){for(var O=N.length,z=P.length,L=Math.ceil((O+z)/2),D=L,k=2*L,H=new Array(k),W=new Array(k),F=0;F<k;F++)H[F]=-1,W[F]=-1;H[D+1]=0,W[D+1]=0;for(var K=O-z,j=K%2!==0,U=0,Y=0,q=0,Q=0,X=0;X<L;X++){for(var Z=-X+U;Z<=X-Y;Z+=2){var J=D+Z,ee;Z===-X||Z!==X&&H[J-1]<H[J+1]?ee=H[J+1]:ee=H[J-1]+1;for(var ce=ee-Z;ee<O&&ce<z&&N.charAt(ee)===P.charAt(ce);)ee++,ce++;if(H[J]=ee,ee>O)Y+=2;else if(ce>z)U+=2;else if(j){var B=D+K-Z;if(B>=0&&B<k&&W[B]!==-1){var ne=O-W[B];if(ee>=ne)return a(N,P,ee,ce)}}}for(var G=-X+q;G<=X-Q;G+=2){var B=D+G,ne;G===-X||G!==X&&W[B-1]<W[B+1]?ne=W[B+1]:ne=W[B-1]+1;for(var se=ne-G;ne<O&&se<z&&N.charAt(O-ne-1)===P.charAt(z-se-1);)ne++,se++;if(W[B]=ne,ne>O)Q+=2;else if(se>z)q+=2;else if(!j){var J=D+K-G;if(J>=0&&J<k&&H[J]!==-1){var ee=H[J],ce=D+ee-J;if(ne=O-ne,ee>=ne)return a(N,P,ee,ce)}}}}return[[e,N],[t,P]]}function a(N,P,O,z){var L=N.substring(0,O),D=P.substring(0,z),k=N.substring(O),H=P.substring(z),W=r(L,D),F=r(k,H);return W.concat(F)}function s(N,P){if(!N||!P||N.charAt(0)!==P.charAt(0))return 0;for(var O=0,z=Math.min(N.length,P.length),L=z,D=0;O<L;)N.substring(D,L)==P.substring(D,L)?(O=L,D=O):z=L,L=Math.floor((z-O)/2+O);return E(N.charCodeAt(L-1))&&L--,L}function c(N,P){var O=N.length,z=P.length;if(O==0||z==0)return 0;O>z?N=N.substring(O-z):O<z&&(P=P.substring(0,O));var L=Math.min(O,z);if(N==P)return L;for(var D=0,k=1;;){var H=N.substring(L-k),W=P.indexOf(H);if(W==-1)return D;k+=W,(W==0||N.substring(L-k)==P.substring(0,k))&&(D=k,k++)}}function u(N,P){if(!N||!P||N.slice(-1)!==P.slice(-1))return 0;for(var O=0,z=Math.min(N.length,P.length),L=z,D=0;O<L;)N.substring(N.length-L,N.length-D)==P.substring(P.length-L,P.length-D)?(O=L,D=O):z=L,L=Math.floor((z-O)/2+O);return S(N.charCodeAt(N.length-L))&&L--,L}function d(N,P){var O=N.length>P.length?N:P,z=N.length>P.length?P:N;if(O.length<4||z.length*2<O.length)return null;function L(Y,q,Q){for(var X=Y.substring(Q,Q+Math.floor(Y.length/4)),Z=-1,J="",ee,ce,B,ne;(Z=q.indexOf(X,Z+1))!==-1;){var G=s(Y.substring(Q),q.substring(Z)),se=u(Y.substring(0,Q),q.substring(0,Z));J.length<se+G&&(J=q.substring(Z-se,Z)+q.substring(Z,Z+G),ee=Y.substring(0,Q-se),ce=Y.substring(Q+G),B=q.substring(0,Z-se),ne=q.substring(Z+G))}return J.length*2>=Y.length?[ee,ce,B,ne,J]:null}var D=L(O,z,Math.ceil(O.length/4)),k=L(O,z,Math.ceil(O.length/2)),H;if(!D&&!k)return null;k?D?H=D[4].length>k[4].length?D:k:H=k:H=D;var W,F,K,j;N.length>P.length?(W=H[0],F=H[1],K=H[2],j=H[3]):(K=H[0],j=H[1],W=H[2],F=H[3]);var U=H[4];return[W,F,K,j,U]}function f(N){for(var P=!1,O=[],z=0,L=null,D=0,k=0,H=0,W=0,F=0;D<N.length;)N[D][0]==n?(O[z++]=D,k=W,H=F,W=0,F=0,L=N[D][1]):(N[D][0]==t?W+=N[D][1].length:F+=N[D][1].length,L&&L.length<=Math.max(k,H)&&L.length<=Math.max(W,F)&&(N.splice(O[z-1],0,[e,L]),N[O[z-1]+1][0]=t,z--,z--,D=z>0?O[z-1]:-1,k=0,H=0,W=0,F=0,L=null,P=!0)),D++;for(P&&x(N),w(N),D=1;D<N.length;){if(N[D-1][0]==e&&N[D][0]==t){var K=N[D-1][1],j=N[D][1],U=c(K,j),Y=c(j,K);U>=Y?(U>=K.length/2||U>=j.length/2)&&(N.splice(D,0,[n,j.substring(0,U)]),N[D-1][1]=K.substring(0,K.length-U),N[D+1][1]=j.substring(U),D++):(Y>=K.length/2||Y>=j.length/2)&&(N.splice(D,0,[n,K.substring(0,Y)]),N[D-1][0]=t,N[D-1][1]=j.substring(0,j.length-Y),N[D+1][0]=e,N[D+1][1]=K.substring(Y),D++),D++}D++}}var h=/[^a-zA-Z0-9]/,p=/\s/,g=/[\r\n]/,m=/\n\r?\n$/,b=/^\r?\n\r?\n/;function w(N){function P(Y,q){if(!Y||!q)return 6;var Q=Y.charAt(Y.length-1),X=q.charAt(0),Z=Q.match(h),J=X.match(h),ee=Z&&Q.match(p),ce=J&&X.match(p),B=ee&&Q.match(g),ne=ce&&X.match(g),G=B&&Y.match(m),se=ne&&q.match(b);return G||se?5:B||ne?4:Z&&!ee&&ce?3:ee||ce?2:Z||J?1:0}for(var O=1;O<N.length-1;){if(N[O-1][0]==n&&N[O+1][0]==n){var z=N[O-1][1],L=N[O][1],D=N[O+1][1],k=u(z,L);if(k){var H=L.substring(L.length-k);z=z.substring(0,z.length-k),L=H+L.substring(0,L.length-k),D=H+D}for(var W=z,F=L,K=D,j=P(z,L)+P(L,D);L.charAt(0)===D.charAt(0);){z+=L.charAt(0),L=L.substring(1)+D.charAt(0),D=D.substring(1);var U=P(z,L)+P(L,D);U>=j&&(j=U,W=z,F=L,K=D)}N[O-1][1]!=W&&(W?N[O-1][1]=W:(N.splice(O-1,1),O--),N[O][1]=F,K?N[O+1][1]=K:(N.splice(O+1,1),O--))}O++}}function x(N,P){N.push([n,""]);for(var O=0,z=0,L=0,D="",k="",H;O<N.length;){if(O<N.length-1&&!N[O][1]){N.splice(O,1);continue}switch(N[O][0]){case t:L++,k+=N[O][1],O++;break;case e:z++,D+=N[O][1],O++;break;case n:var W=O-L-z-1;if(P){if(W>=0&&M(N[W][1])){var F=N[W][1].slice(-1);if(N[W][1]=N[W][1].slice(0,-1),D=F+D,k=F+k,!N[W][1]){N.splice(W,1),O--;var K=W-1;N[K]&&N[K][0]===t&&(L++,k=N[K][1]+k,K--),N[K]&&N[K][0]===e&&(z++,D=N[K][1]+D,K--),W=K}}if($(N[O][1])){var F=N[O][1].charAt(0);N[O][1]=N[O][1].slice(1),D+=F,k+=F}}if(O<N.length-1&&!N[O][1]){N.splice(O,1);break}if(D.length>0||k.length>0){D.length>0&&k.length>0&&(H=s(k,D),H!==0&&(W>=0?N[W][1]+=k.substring(0,H):(N.splice(0,0,[n,k.substring(0,H)]),O++),k=k.substring(H),D=D.substring(H)),H=u(k,D),H!==0&&(N[O][1]=k.substring(k.length-H)+N[O][1],k=k.substring(0,k.length-H),D=D.substring(0,D.length-H)));var j=L+z;D.length===0&&k.length===0?(N.splice(O-j,j),O=O-j):D.length===0?(N.splice(O-j,j,[t,k]),O=O-j+1):k.length===0?(N.splice(O-j,j,[e,D]),O=O-j+1):(N.splice(O-j,j,[e,D],[t,k]),O=O-j+2)}O!==0&&N[O-1][0]===n?(N[O-1][1]+=N[O][1],N.splice(O,1)):O++,L=0,z=0,D="",k="";break}}N[N.length-1][1]===""&&N.pop();var U=!1;for(O=1;O<N.length-1;)N[O-1][0]===n&&N[O+1][0]===n&&(N[O][1].substring(N[O][1].length-N[O-1][1].length)===N[O-1][1]?(N[O][1]=N[O-1][1]+N[O][1].substring(0,N[O][1].length-N[O-1][1].length),N[O+1][1]=N[O-1][1]+N[O+1][1],N.splice(O-1,1),U=!0):N[O][1].substring(0,N[O+1][1].length)==N[O+1][1]&&(N[O-1][1]+=N[O+1][1],N[O][1]=N[O][1].substring(N[O+1][1].length)+N[O+1][1],N.splice(O+1,1),U=!0)),O++;U&&x(N,P)}function E(N){return N>=55296&&N<=56319}function S(N){return N>=56320&&N<=57343}function $(N){return S(N.charCodeAt(0))}function M(N){return E(N.charCodeAt(N.length-1))}function A(N){for(var P=[],O=0;O<N.length;O++)N[O][1].length>0&&P.push(N[O]);return P}function R(N,P,O,z){return M(N)||$(z)?null:A([[n,N],[e,P],[t,O],[n,z]])}function T(N,P,O){var z=typeof O=="number"?{index:O,length:0}:O.oldRange,L=typeof O=="number"?null:O.newRange,D=N.length,k=P.length;if(z.length===0&&(L===null||L.length===0)){var H=z.index,W=N.slice(0,H),F=N.slice(H),K=L?L.index:null;e:{var j=H+k-D;if(K!==null&&K!==j||j<0||j>k)break e;var U=P.slice(0,j),Y=P.slice(j);if(Y!==F)break e;var q=Math.min(H,j),Q=W.slice(0,q),X=U.slice(0,q);if(Q!==X)break e;var Z=W.slice(q),J=U.slice(q);return R(Q,Z,J,F)}e:{if(K!==null&&K!==H)break e;var ee=H,U=P.slice(0,ee),Y=P.slice(ee);if(U!==W)break e;var ce=Math.min(D-ee,k-ee),B=F.slice(F.length-ce),ne=Y.slice(Y.length-ce);if(B!==ne)break e;var Z=F.slice(0,F.length-ce),J=Y.slice(0,Y.length-ce);return R(W,Z,J,B)}}if(z.length>0&&L&&L.length===0)e:{var Q=N.slice(0,z.index),B=N.slice(z.index+z.length),q=Q.length,ce=B.length;if(k<q+ce)break e;var X=P.slice(0,q),ne=P.slice(k-ce);if(Q!==X||B!==ne)break e;var Z=N.slice(q,D-ce),J=P.slice(q,k-ce);return R(Q,Z,J,B)}return null}function _(N,P,O,z){return r(N,P,O,z,!0)}return _.INSERT=t,_.DELETE=e,_.EQUAL=n,bE=_,bE}var e0={exports:{}};e0.exports;var gU;function F0e(){return gU||(gU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",b="[object RegExp]",w="[object Set]",x="[object String]",E="[object Symbol]",S="[object WeakMap]",$="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",R="[object Float64Array]",T="[object Int8Array]",_="[object Int16Array]",N="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",z="[object Uint16Array]",L="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,H=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,F={};F[o]=F[a]=F[$]=F[M]=F[s]=F[c]=F[A]=F[R]=F[T]=F[_]=F[N]=F[h]=F[p]=F[g]=F[b]=F[w]=F[x]=F[E]=F[P]=F[O]=F[z]=F[L]=!0,F[u]=F[d]=F[S]=!1;var K=typeof yo=="object"&&yo&&yo.Object===Object&&yo,j=typeof self=="object"&&self&&self.Object===Object&&self,U=K||j||Function("return this")(),Y=t&&!t.nodeType&&t,q=Y&&!0&&e&&!e.nodeType&&e,Q=q&&q.exports===Y;function X(C,I){return C.set(I[0],I[1]),C}function Z(C,I){return C.add(I),C}function J(C,I){for(var V=-1,le=C?C.length:0;++V<le&&I(C[V],V,C)!==!1;);return C}function ee(C,I){for(var V=-1,le=I.length,_e=C.length;++V<le;)C[_e+V]=I[V];return C}function ce(C,I,V,le){for(var _e=-1,$e=C?C.length:0;++_e<$e;)V=I(V,C[_e],_e,C);return V}function B(C,I){for(var V=-1,le=Array(C);++V<C;)le[V]=I(V);return le}function ne(C,I){return C?.[I]}function G(C){var I=!1;if(C!=null&&typeof C.toString!="function")try{I=!!(C+"")}catch{}return I}function se(C){var I=-1,V=Array(C.size);return C.forEach(function(le,_e){V[++I]=[_e,le]}),V}function he(C,I){return function(V){return C(I(V))}}function pe(C){var I=-1,V=Array(C.size);return C.forEach(function(le){V[++I]=le}),V}var me=Array.prototype,de=Function.prototype,ye=Object.prototype,Ae=U["__core-js_shared__"],De=(function(){var C=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""})(),ke=de.toString,be=ye.hasOwnProperty,ue=ye.toString,ge=RegExp("^"+ke.call(be).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Q?U.Buffer:void 0,Ce=U.Symbol,Xe=U.Uint8Array,qe=he(Object.getPrototypeOf,Object),Ze=Object.create,We=ye.propertyIsEnumerable,Be=me.splice,Ke=Object.getOwnPropertySymbols,ht=ve?ve.isBuffer:void 0,_t=he(Object.keys,Object),Tt=yn(U,"DataView"),Rt=yn(U,"Map"),fe=yn(U,"Promise"),Me=yn(U,"Set"),Se=yn(U,"WeakMap"),we=yn(Object,"create"),Ve=Yt(Tt),Ne=Yt(Rt),ze=Yt(fe),It=Yt(Me),vt=Yt(Se),At=Ce?Ce.prototype:void 0,Nt=At?At.valueOf:void 0;function mt(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Pt(){this.__data__=we?we(null):{}}function dn(C){return this.has(C)&&delete this.__data__[C]}function Zt(C){var I=this.__data__;if(we){var V=I[C];return V===r?void 0:V}return be.call(I,C)?I[C]:void 0}function Ut(C){var I=this.__data__;return we?I[C]!==void 0:be.call(I,C)}function Dn(C,I){var V=this.__data__;return V[C]=we&&I===void 0?r:I,this}mt.prototype.clear=Pt,mt.prototype.delete=dn,mt.prototype.get=Zt,mt.prototype.has=Ut,mt.prototype.set=Dn;function Et(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Kn(){this.__data__=[]}function kr(C){var I=this.__data__,V=Qr(I,C);if(V<0)return!1;var le=I.length-1;return V==le?I.pop():Be.call(I,V,1),!0}function Lr(C){var I=this.__data__,V=Qr(I,C);return V<0?void 0:I[V][1]}function Ri(C){return Qr(this.__data__,C)>-1}function fr(C,I){var V=this.__data__,le=Qr(V,C);return le<0?V.push([C,I]):V[le][1]=I,this}Et.prototype.clear=Kn,Et.prototype.delete=kr,Et.prototype.get=Lr,Et.prototype.has=Ri,Et.prototype.set=fr;function Ue(C){var I=-1,V=C?C.length:0;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function fi(){this.__data__={hash:new mt,map:new(Rt||Et),string:new mt}}function Nl(C){return hr(this,C).delete(C)}function To(C){return hr(this,C).get(C)}function Do(C){return hr(this,C).has(C)}function Ji(C,I){return hr(this,C).set(C,I),this}Ue.prototype.clear=fi,Ue.prototype.delete=Nl,Ue.prototype.get=To,Ue.prototype.has=Do,Ue.prototype.set=Ji;function Jt(C){this.__data__=new Et(C)}function Qi(){this.__data__=new Et}function _a(C){return this.__data__.delete(C)}function Ii(C){return this.__data__.get(C)}function eo(C){return this.__data__.has(C)}function Ol(C,I){var V=this.__data__;if(V instanceof Et){var le=V.__data__;if(!Rt||le.length<n-1)return le.push([C,I]),this;V=this.__data__=new Ue(le)}return V.set(C,I),this}Jt.prototype.clear=Qi,Jt.prototype.delete=_a,Jt.prototype.get=Ii,Jt.prototype.has=eo,Jt.prototype.set=Ol;function En(C,I){var V=Le(C)||ti(C)?B(C.length,String):[],le=V.length,_e=!!le;for(var $e in C)be.call(C,$e)&&!(_e&&($e=="length"||Bo($e,le)))&&V.push($e);return V}function er(C,I,V){var le=C[I];(!(be.call(C,I)&&qo(le,V))||V===void 0&&!(I in C))&&(C[I]=V)}function Qr(C,I){for(var V=C.length;V--;)if(qo(C[V][0],I))return V;return-1}function zn(C,I){return C&&Fi(I,jr(I),C)}function hi(C,I,V,le,_e,$e,rt){var Je;if(le&&(Je=$e?le(C,_e,$e,rt):le(C)),Je!==void 0)return Je;if(!hn(C))return C;var zt=Le(C);if(zt){if(Je=pi(C),!I)return Lo(C,Je)}else{var st=Pn(C),Xt=st==d||st==f;if(Vt(C))return Cr(C,I);if(st==g||st==o||Xt&&!$e){if(G(C))return $e?C:{};if(Je=An(Xt?{}:C),!I)return no(C,zn(Je,C))}else{if(!F[st])return $e?C:{};Je=Ho(C,st,hi,I)}}rt||(rt=new Jt);var pn=rt.get(C);if(pn)return pn;if(rt.set(C,Je),!zt)var jt=V?jo(C):jr(C);return J(jt||C,function(Kt,Gt){jt&&(Gt=Kt,Kt=C[Gt]),er(Je,Gt,hi(Kt,I,V,le,Gt,C,rt))}),Je}function Rl(C){return hn(C)?Ze(C):{}}function zo(C,I,V){var le=I(C);return Le(C)?le:ee(le,V(C))}function ka(C){return ue.call(C)}function _o(C){if(!hn(C)||Tl(C))return!1;var I=rn(C)||G(C)?ge:H;return I.test(Yt(C))}function Il(C){if(!Vo(C))return _t(C);var I=[];for(var V in Object(C))be.call(C,V)&&V!="constructor"&&I.push(V);return I}function Cr(C,I){if(I)return C.slice();var V=new C.constructor(C.length);return C.copy(V),V}function Pi(C){var I=new C.constructor(C.byteLength);return new Xe(I).set(new Xe(C)),I}function Cn(C,I){var V=I?Pi(C.buffer):C.buffer;return new C.constructor(V,C.byteOffset,C.byteLength)}function Zn(C,I,V){var le=I?V(se(C),!0):se(C);return ce(le,X,new C.constructor)}function ei(C){var I=new C.constructor(C.source,k.exec(C));return I.lastIndex=C.lastIndex,I}function to(C,I,V){var le=I?V(pe(C),!0):pe(C);return ce(le,Z,new C.constructor)}function Pl(C){return Nt?Object(Nt.call(C)):{}}function ko(C,I){var V=I?Pi(C.buffer):C.buffer;return new C.constructor(V,C.byteOffset,C.length)}function Lo(C,I){var V=-1,le=C.length;for(I||(I=Array(le));++V<le;)I[V]=C[V];return I}function Fi(C,I,V,le){V||(V={});for(var _e=-1,$e=I.length;++_e<$e;){var rt=I[_e],Je=void 0;er(V,rt,Je===void 0?C[rt]:Je)}return V}function no(C,I){return Fi(C,Gn(C),I)}function jo(C){return zo(C,jr,Gn)}function hr(C,I){var V=C.__data__;return Fl(I)?V[typeof I=="string"?"string":"hash"]:V.map}function yn(C,I){var V=ne(C,I);return _o(V)?V:void 0}var Gn=Ke?he(Ke,Object):Dl,Pn=ka;(Tt&&Pn(new Tt(new ArrayBuffer(1)))!=M||Rt&&Pn(new Rt)!=h||fe&&Pn(fe.resolve())!=m||Me&&Pn(new Me)!=w||Se&&Pn(new Se)!=S)&&(Pn=function(C){var I=ue.call(C),V=I==g?C.constructor:void 0,le=V?Yt(V):void 0;if(le)switch(le){case Ve:return M;case Ne:return h;case ze:return m;case It:return w;case vt:return S}return I});function pi(C){var I=C.length,V=C.constructor(I);return I&&typeof C[0]=="string"&&be.call(C,"index")&&(V.index=C.index,V.input=C.input),V}function An(C){return typeof C.constructor=="function"&&!Vo(C)?Rl(qe(C)):{}}function Ho(C,I,V,le){var _e=C.constructor;switch(I){case $:return Pi(C);case s:case c:return new _e(+C);case M:return Cn(C,le);case A:case R:case T:case _:case N:case P:case O:case z:case L:return ko(C,le);case h:return Zn(C,le,V);case p:case x:return new _e(C);case b:return ei(C);case w:return to(C,le,V);case E:return Pl(C)}}function Bo(C,I){return I=I??i,!!I&&(typeof C=="number"||W.test(C))&&C>-1&&C%1==0&&C<I}function Fl(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function Tl(C){return!!De&&De in C}function Vo(C){var I=C&&C.constructor,V=typeof I=="function"&&I.prototype||ye;return C===V}function Yt(C){if(C!=null){try{return ke.call(C)}catch{}try{return C+""}catch{}}return""}function Ti(C){return hi(C,!0,!0)}function qo(C,I){return C===I||C!==C&&I!==I}function ti(C){return Dt(C)&&be.call(C,"callee")&&(!We.call(C,"callee")||ue.call(C)==o)}var Le=Array.isArray;function Ye(C){return C!=null&&fn(C.length)&&!rn(C)}function Dt(C){return Sr(C)&&Ye(C)}var Vt=ht||Ss;function rn(C){var I=hn(C)?ue.call(C):"";return I==d||I==f}function fn(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=i}function hn(C){var I=typeof C;return!!C&&(I=="object"||I=="function")}function Sr(C){return!!C&&typeof C=="object"}function jr(C){return Ye(C)?En(C):Il(C)}function Dl(){return[]}function Ss(){return!1}e.exports=Ti})(e0,e0.exports)),e0.exports}var t0={exports:{}};t0.exports;var vU;function T0e(){return vU||(vU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",b="[object Number]",w="[object Null]",x="[object Object]",E="[object Promise]",S="[object Proxy]",$="[object RegExp]",M="[object Set]",A="[object String]",R="[object Symbol]",T="[object Undefined]",_="[object WeakMap]",N="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",z="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",k="[object Int32Array]",H="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",K="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,q={};q[O]=q[z]=q[L]=q[D]=q[k]=q[H]=q[W]=q[F]=q[K]=!0,q[s]=q[c]=q[N]=q[d]=q[P]=q[f]=q[h]=q[p]=q[m]=q[b]=q[x]=q[$]=q[M]=q[A]=q[_]=!1;var Q=typeof yo=="object"&&yo&&yo.Object===Object&&yo,X=typeof self=="object"&&self&&self.Object===Object&&self,Z=Q||X||Function("return this")(),J=t&&!t.nodeType&&t,ee=J&&!0&&e&&!e.nodeType&&e,ce=ee&&ee.exports===J,B=ce&&Q.process,ne=(function(){try{return B&&B.binding&&B.binding("util")}catch{}})(),G=ne&&ne.isTypedArray;function se(C,I){for(var V=-1,le=C==null?0:C.length,_e=0,$e=[];++V<le;){var rt=C[V];I(rt,V,C)&&($e[_e++]=rt)}return $e}function he(C,I){for(var V=-1,le=I.length,_e=C.length;++V<le;)C[_e+V]=I[V];return C}function pe(C,I){for(var V=-1,le=C==null?0:C.length;++V<le;)if(I(C[V],V,C))return!0;return!1}function me(C,I){for(var V=-1,le=Array(C);++V<C;)le[V]=I(V);return le}function de(C){return function(I){return C(I)}}function ye(C,I){return C.has(I)}function Ae(C,I){return C?.[I]}function De(C){var I=-1,V=Array(C.size);return C.forEach(function(le,_e){V[++I]=[_e,le]}),V}function ke(C,I){return function(V){return C(I(V))}}function be(C){var I=-1,V=Array(C.size);return C.forEach(function(le){V[++I]=le}),V}var ue=Array.prototype,ge=Function.prototype,ve=Object.prototype,Ce=Z["__core-js_shared__"],Xe=ge.toString,qe=ve.hasOwnProperty,Ze=(function(){var C=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""})(),We=ve.toString,Be=RegExp("^"+Xe.call(qe).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=ce?Z.Buffer:void 0,ht=Z.Symbol,_t=Z.Uint8Array,Tt=ve.propertyIsEnumerable,Rt=ue.splice,fe=ht?ht.toStringTag:void 0,Me=Object.getOwnPropertySymbols,Se=Ke?Ke.isBuffer:void 0,we=ke(Object.keys,Object),Ve=Gn(Z,"DataView"),Ne=Gn(Z,"Map"),ze=Gn(Z,"Promise"),It=Gn(Z,"Set"),vt=Gn(Z,"WeakMap"),At=Gn(Object,"create"),Nt=Yt(Ve),mt=Yt(Ne),Pt=Yt(ze),dn=Yt(It),Zt=Yt(vt),Ut=ht?ht.prototype:void 0,Dn=Ut?Ut.valueOf:void 0;function Et(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Kn(){this.__data__=At?At(null):{},this.size=0}function kr(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function Lr(C){var I=this.__data__;if(At){var V=I[C];return V===r?void 0:V}return qe.call(I,C)?I[C]:void 0}function Ri(C){var I=this.__data__;return At?I[C]!==void 0:qe.call(I,C)}function fr(C,I){var V=this.__data__;return this.size+=this.has(C)?0:1,V[C]=At&&I===void 0?r:I,this}Et.prototype.clear=Kn,Et.prototype.delete=kr,Et.prototype.get=Lr,Et.prototype.has=Ri,Et.prototype.set=fr;function Ue(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function fi(){this.__data__=[],this.size=0}function Nl(C){var I=this.__data__,V=Cr(I,C);if(V<0)return!1;var le=I.length-1;return V==le?I.pop():Rt.call(I,V,1),--this.size,!0}function To(C){var I=this.__data__,V=Cr(I,C);return V<0?void 0:I[V][1]}function Do(C){return Cr(this.__data__,C)>-1}function Ji(C,I){var V=this.__data__,le=Cr(V,C);return le<0?(++this.size,V.push([C,I])):V[le][1]=I,this}Ue.prototype.clear=fi,Ue.prototype.delete=Nl,Ue.prototype.get=To,Ue.prototype.has=Do,Ue.prototype.set=Ji;function Jt(C){var I=-1,V=C==null?0:C.length;for(this.clear();++I<V;){var le=C[I];this.set(le[0],le[1])}}function Qi(){this.size=0,this.__data__={hash:new Et,map:new(Ne||Ue),string:new Et}}function _a(C){var I=yn(this,C).delete(C);return this.size-=I?1:0,I}function Ii(C){return yn(this,C).get(C)}function eo(C){return yn(this,C).has(C)}function Ol(C,I){var V=yn(this,C),le=V.size;return V.set(C,I),this.size+=V.size==le?0:1,this}Jt.prototype.clear=Qi,Jt.prototype.delete=_a,Jt.prototype.get=Ii,Jt.prototype.has=eo,Jt.prototype.set=Ol;function En(C){var I=-1,V=C==null?0:C.length;for(this.__data__=new Jt;++I<V;)this.add(C[I])}function er(C){return this.__data__.set(C,r),this}function Qr(C){return this.__data__.has(C)}En.prototype.add=En.prototype.push=er,En.prototype.has=Qr;function zn(C){var I=this.__data__=new Ue(C);this.size=I.size}function hi(){this.__data__=new Ue,this.size=0}function Rl(C){var I=this.__data__,V=I.delete(C);return this.size=I.size,V}function zo(C){return this.__data__.get(C)}function ka(C){return this.__data__.has(C)}function _o(C,I){var V=this.__data__;if(V instanceof Ue){var le=V.__data__;if(!Ne||le.length<n-1)return le.push([C,I]),this.size=++V.size,this;V=this.__data__=new Jt(le)}return V.set(C,I),this.size=V.size,this}zn.prototype.clear=hi,zn.prototype.delete=Rl,zn.prototype.get=zo,zn.prototype.has=ka,zn.prototype.set=_o;function Il(C,I){var V=ti(C),le=!V&&qo(C),_e=!V&&!le&&Ye(C),$e=!V&&!le&&!_e&&Sr(C),rt=V||le||_e||$e,Je=rt?me(C.length,String):[],zt=Je.length;for(var st in C)qe.call(C,st)&&!(rt&&(st=="length"||_e&&(st=="offset"||st=="parent")||$e&&(st=="buffer"||st=="byteLength"||st=="byteOffset")||Ho(st,zt)))&&Je.push(st);return Je}function Cr(C,I){for(var V=C.length;V--;)if(Ti(C[V][0],I))return V;return-1}function Pi(C,I,V){var le=I(C);return ti(C)?le:he(le,V(C))}function Cn(C){return C==null?C===void 0?T:w:fe&&fe in Object(C)?Pn(C):Vo(C)}function Zn(C){return hn(C)&&Cn(C)==s}function ei(C,I,V,le,_e){return C===I?!0:C==null||I==null||!hn(C)&&!hn(I)?C!==C&&I!==I:to(C,I,V,le,ei,_e)}function to(C,I,V,le,_e,$e){var rt=ti(C),Je=ti(I),zt=rt?c:An(C),st=Je?c:An(I);zt=zt==s?x:zt,st=st==s?x:st;var Xt=zt==x,pn=st==x,jt=zt==st;if(jt&&Ye(C)){if(!Ye(I))return!1;rt=!0,Xt=!1}if(jt&&!Xt)return $e||($e=new zn),rt||Sr(C)?Fi(C,I,V,le,_e,$e):no(C,I,zt,V,le,_e,$e);if(!(V&i)){var Kt=Xt&&qe.call(C,"__wrapped__"),Gt=pn&&qe.call(I,"__wrapped__");if(Kt||Gt){var Nr=Kt?C.value():C,pr=Gt?I.value():I;return $e||($e=new zn),_e(Nr,pr,V,le,$e)}}return jt?($e||($e=new zn),jo(C,I,V,le,_e,$e)):!1}function Pl(C){if(!fn(C)||Fl(C))return!1;var I=Vt(C)?Be:U;return I.test(Yt(C))}function ko(C){return hn(C)&&rn(C.length)&&!!q[Cn(C)]}function Lo(C){if(!Tl(C))return we(C);var I=[];for(var V in Object(C))qe.call(C,V)&&V!="constructor"&&I.push(V);return I}function Fi(C,I,V,le,_e,$e){var rt=V&i,Je=C.length,zt=I.length;if(Je!=zt&&!(rt&&zt>Je))return!1;var st=$e.get(C);if(st&&$e.get(I))return st==I;var Xt=-1,pn=!0,jt=V&o?new En:void 0;for($e.set(C,I),$e.set(I,C);++Xt<Je;){var Kt=C[Xt],Gt=I[Xt];if(le)var Nr=rt?le(Gt,Kt,Xt,I,C,$e):le(Kt,Gt,Xt,C,I,$e);if(Nr!==void 0){if(Nr)continue;pn=!1;break}if(jt){if(!pe(I,function(pr,ni){if(!ye(jt,ni)&&(Kt===pr||_e(Kt,pr,V,le,$e)))return jt.push(ni)})){pn=!1;break}}else if(!(Kt===Gt||_e(Kt,Gt,V,le,$e))){pn=!1;break}}return $e.delete(C),$e.delete(I),pn}function no(C,I,V,le,_e,$e,rt){switch(V){case P:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case N:return!(C.byteLength!=I.byteLength||!$e(new _t(C),new _t(I)));case d:case f:case b:return Ti(+C,+I);case h:return C.name==I.name&&C.message==I.message;case $:case A:return C==I+"";case m:var Je=De;case M:var zt=le&i;if(Je||(Je=be),C.size!=I.size&&!zt)return!1;var st=rt.get(C);if(st)return st==I;le|=o,rt.set(C,I);var Xt=Fi(Je(C),Je(I),le,_e,$e,rt);return rt.delete(C),Xt;case R:if(Dn)return Dn.call(C)==Dn.call(I)}return!1}function jo(C,I,V,le,_e,$e){var rt=V&i,Je=hr(C),zt=Je.length,st=hr(I),Xt=st.length;if(zt!=Xt&&!rt)return!1;for(var pn=zt;pn--;){var jt=Je[pn];if(!(rt?jt in I:qe.call(I,jt)))return!1}var Kt=$e.get(C);if(Kt&&$e.get(I))return Kt==I;var Gt=!0;$e.set(C,I),$e.set(I,C);for(var Nr=rt;++pn<zt;){jt=Je[pn];var pr=C[jt],ni=I[jt];if(le)var cf=rt?le(ni,pr,jt,I,C,$e):le(pr,ni,jt,C,I,$e);if(!(cf===void 0?pr===ni||_e(pr,ni,V,le,$e):cf)){Gt=!1;break}Nr||(Nr=jt=="constructor")}if(Gt&&!Nr){var zl=C.constructor,_l=I.constructor;zl!=_l&&"constructor"in C&&"constructor"in I&&!(typeof zl=="function"&&zl instanceof zl&&typeof _l=="function"&&_l instanceof _l)&&(Gt=!1)}return $e.delete(C),$e.delete(I),Gt}function hr(C){return Pi(C,jr,pi)}function yn(C,I){var V=C.__data__;return Bo(I)?V[typeof I=="string"?"string":"hash"]:V.map}function Gn(C,I){var V=Ae(C,I);return Pl(V)?V:void 0}function Pn(C){var I=qe.call(C,fe),V=C[fe];try{C[fe]=void 0;var le=!0}catch{}var _e=We.call(C);return le&&(I?C[fe]=V:delete C[fe]),_e}var pi=Me?function(C){return C==null?[]:(C=Object(C),se(Me(C),function(I){return Tt.call(C,I)}))}:Dl,An=Cn;(Ve&&An(new Ve(new ArrayBuffer(1)))!=P||Ne&&An(new Ne)!=m||ze&&An(ze.resolve())!=E||It&&An(new It)!=M||vt&&An(new vt)!=_)&&(An=function(C){var I=Cn(C),V=I==x?C.constructor:void 0,le=V?Yt(V):"";if(le)switch(le){case Nt:return P;case mt:return m;case Pt:return E;case dn:return M;case Zt:return _}return I});function Ho(C,I){return I=I??a,!!I&&(typeof C=="number"||Y.test(C))&&C>-1&&C%1==0&&C<I}function Bo(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function Fl(C){return!!Ze&&Ze in C}function Tl(C){var I=C&&C.constructor,V=typeof I=="function"&&I.prototype||ve;return C===V}function Vo(C){return We.call(C)}function Yt(C){if(C!=null){try{return Xe.call(C)}catch{}try{return C+""}catch{}}return""}function Ti(C,I){return C===I||C!==C&&I!==I}var qo=Zn((function(){return arguments})())?Zn:function(C){return hn(C)&&qe.call(C,"callee")&&!Tt.call(C,"callee")},ti=Array.isArray;function Le(C){return C!=null&&rn(C.length)&&!Vt(C)}var Ye=Se||Ss;function Dt(C,I){return ei(C,I)}function Vt(C){if(!fn(C))return!1;var I=Cn(C);return I==p||I==g||I==u||I==S}function rn(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function fn(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function hn(C){return C!=null&&typeof C=="object"}var Sr=G?de(G):ko;function jr(C){return Le(C)?Il(C):Lo(C)}function Dl(){return[]}function Ss(){return!1}e.exports=Dt})(t0,t0.exports)),t0.exports}var ym={},bU;function DTt(){if(bU)return ym;bU=1,Object.defineProperty(ym,"__esModule",{value:!0});const e=F0e(),t=T0e();var n;return(function(r){function i(c={},u={},d=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let f=e(u);d||(f=Object.keys(f).reduce((h,p)=>(f[p]!=null&&(h[p]=f[p]),h),{}));for(const h in c)c[h]!==void 0&&u[h]===void 0&&(f[h]=c[h]);return Object.keys(f).length>0?f:void 0}r.compose=i;function o(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const d=Object.keys(c).concat(Object.keys(u)).reduce((f,h)=>(t(c[h],u[h])||(f[h]=u[h]===void 0?null:u[h]),f),{});return Object.keys(d).length>0?d:void 0}r.diff=o;function a(c={},u={}){c=c||{};const d=Object.keys(u).reduce((f,h)=>(u[h]!==c[h]&&c[h]!==void 0&&(f[h]=u[h]),f),{});return Object.keys(c).reduce((f,h)=>(c[h]!==u[h]&&u[h]===void 0&&(f[h]=null),f),d)}r.invert=a;function s(c,u,d=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!d)return u;const f=Object.keys(u).reduce((h,p)=>(c[p]===void 0&&(h[p]=u[p]),h),{});return Object.keys(f).length>0?f:void 0}r.transform=s})(n||(n={})),ym.default=n,ym}var wm={},yU;function D0e(){if(yU)return wm;yU=1,Object.defineProperty(wm,"__esModule",{value:!0});var e;return(function(t){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=n})(e||(e={})),wm.default=e,wm}var xm={},wU;function zTt(){if(wU)return xm;wU=1,Object.defineProperty(xm,"__esModule",{value:!0});const e=D0e();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const o=this.offset,a=e.default.length(i);if(r>=a-o?(r=a-o,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const s={};return i.attributes&&(s.attributes=i.attributes),typeof i.retain=="number"?s.retain=r:typeof i.retain=="object"&&i.retain!==null?s.retain=i.retain:typeof i.insert=="string"?s.insert=i.insert.substr(o,r):s.insert=i.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,o=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=i,[o].concat(a)}}else return[]}}return xm.default=t,xm}var xU;function _Tt(){return xU||(xU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=TTt(),r=F0e(),i=T0e(),o=DTt();t.AttributeMap=o.default;const a=D0e();t.Op=a.default;const s=zTt();t.OpIterator=s.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const p=Object.keys(f)[0];if(!p||p!==Object.keys(h)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(h)[0]}`);return[p,f[p],h[p]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,p){this.handlers[h]=p}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const p=this.handlers[h];if(!p)throw new Error(`no handlers for embed type "${h}"`);return p}insert(h,p){const g={};return typeof h=="string"&&h.length===0?this:(g.insert=h,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,p){if(typeof h=="number"&&h<=0)return this;const g={retain:h};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g)}push(h){let p=this.ops.length,g=this.ops[p-1];if(h=r(h),typeof g=="object"){if(typeof h.delete=="number"&&typeof g.delete=="number")return this.ops[p-1]={delete:g.delete+h.delete},this;if(typeof g.delete=="number"&&h.insert!=null&&(p-=1,g=this.ops[p-1],typeof g!="object"))return this.ops.unshift(h),this;if(i(h.attributes,g.attributes)){if(typeof h.insert=="string"&&typeof g.insert=="string")return this.ops[p-1]={insert:g.insert+h.insert},typeof h.attributes=="object"&&(this.ops[p-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof g.retain=="number")return this.ops[p-1]={retain:g.retain+h.retain},typeof h.attributes=="object"&&(this.ops[p-1].attributes=h.attributes),this}}return p===this.ops.length?this.ops.push(h):this.ops.splice(p,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const p=[],g=[];return this.forEach(m=>{(h(m)?p:g).push(m)}),[p,g]}reduce(h,p){return this.ops.reduce(h,p)}changeLength(){return this.reduce((h,p)=>p.insert?h+a.default.length(p):p.delete?h-p.delete:h,0)}length(){return this.reduce((h,p)=>h+a.default.length(p),0)}slice(h=0,p=1/0){const g=[],m=new s.default(this.ops);let b=0;for(;b<p&&m.hasNext();){let w;b<h?w=m.next(h-b):(w=m.next(p-b),g.push(w)),b+=a.default.length(w)}return new d(g)}compose(h){const p=new s.default(this.ops),g=new s.default(h.ops),m=[],b=g.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let x=b.retain;for(;p.peekType()==="insert"&&p.peekLength()<=x;)x-=p.peekLength(),m.push(p.next());b.retain-x>0&&g.next(b.retain-x)}const w=new d(m);for(;p.hasNext()||g.hasNext();)if(g.peekType()==="insert")w.push(g.next());else if(p.peekType()==="delete")w.push(p.next());else{const x=Math.min(p.peekLength(),g.peekLength()),E=p.next(x),S=g.next(x);if(S.retain){const $={};if(typeof E.retain=="number")$.retain=typeof S.retain=="number"?x:S.retain;else if(typeof S.retain=="number")E.retain==null?$.insert=E.insert:$.retain=E.retain;else{const A=E.retain==null?"insert":"retain",[R,T,_]=u(E[A],S.retain),N=d.getHandler(R);$[A]={[R]:N.compose(T,_,A==="retain")}}const M=o.default.compose(E.attributes,S.attributes,typeof E.retain=="number");if(M&&($.attributes=M),w.push($),!g.hasNext()&&i(w.ops[w.ops.length-1],$)){const A=new d(p.rest());return w.concat(A).chop()}}else typeof S.delete=="number"&&(typeof E.retain=="number"||typeof E.retain=="object"&&E.retain!==null)&&w.push(S)}return w.chop()}concat(h){const p=new d(this.ops.slice());return h.ops.length>0&&(p.push(h.ops[0]),p.ops=p.ops.concat(h.ops.slice(1))),p}diff(h,p){if(this.ops===h.ops)return new d;const g=[this,h].map(E=>E.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:c;const $=E===h?"on":"with";throw new Error("diff() called "+$+" non-document")}).join("")),m=new d,b=n(g[0],g[1],p,!0),w=new s.default(this.ops),x=new s.default(h.ops);return b.forEach(E=>{let S=E[1].length;for(;S>0;){let $=0;switch(E[0]){case n.INSERT:$=Math.min(x.peekLength(),S),m.push(x.next($));break;case n.DELETE:$=Math.min(S,w.peekLength()),w.next($),m.delete($);break;case n.EQUAL:$=Math.min(w.peekLength(),x.peekLength(),S);const M=w.next($),A=x.next($);i(M.insert,A.insert)?m.retain($,o.default.diff(M.attributes,A.attributes)):m.push(A).delete($);break}S-=$}}),m.chop()}eachLine(h,p=`
|
|
280
280
|
`){const g=new s.default(this.ops);let m=new d,b=0;for(;g.hasNext();){if(g.peekType()!=="insert")return;const w=g.peek(),x=a.default.length(w)-g.peekLength(),E=typeof w.insert=="string"?w.insert.indexOf(p,x)-x:-1;if(E<0)m.push(g.next());else if(E>0)m.push(g.next(E));else{if(h(m,g.next(1).attributes||{},b)===!1)return;b+=1,m=new d}}m.length()>0&&h(m,{},b)}invert(h){const p=new d;return this.reduce((g,m)=>{if(m.insert)p.delete(a.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return p.retain(m.retain),g+m.retain;if(m.delete||typeof m.retain=="number"){const b=m.delete||m.retain;return h.slice(g,g+b).forEach(x=>{m.delete?p.push(x):m.retain&&m.attributes&&p.retain(a.default.length(x),o.default.invert(m.attributes,x.attributes))}),g+b}else if(typeof m.retain=="object"&&m.retain!==null){const b=h.slice(g,g+1),w=new s.default(b.ops).next(),[x,E,S]=u(m.retain,w.insert),$=d.getHandler(x);return p.retain({[x]:$.invert(E,S)},o.default.invert(m.attributes,w.attributes)),g+1}}return g},0),p.chop()}transform(h,p=!1){if(p=!!p,typeof h=="number")return this.transformPosition(h,p);const g=h,m=new s.default(this.ops),b=new s.default(g.ops),w=new d;for(;m.hasNext()||b.hasNext();)if(m.peekType()==="insert"&&(p||b.peekType()!=="insert"))w.retain(a.default.length(m.next()));else if(b.peekType()==="insert")w.push(b.next());else{const x=Math.min(m.peekLength(),b.peekLength()),E=m.next(x),S=b.next(x);if(E.delete)continue;if(S.delete)w.push(S);else{const $=E.retain,M=S.retain;let A=typeof M=="object"&&M!==null?M:x;if(typeof $=="object"&&$!==null&&typeof M=="object"&&M!==null){const R=Object.keys($)[0];if(R===Object.keys(M)[0]){const T=d.getHandler(R);T&&(A={[R]:T.transform($[R],M[R],p)})}}w.retain(A,o.default.transform(E.attributes,S.attributes,p))}}return w.chop()}transformPosition(h,p=!1){p=!!p;const g=new s.default(this.ops);let m=0;for(;g.hasNext()&&m<=h;){const b=g.peekLength(),w=g.peekType();if(g.next(),w==="delete"){h-=Math.min(b,h-m);continue}else w==="insert"&&(m<h||!p)&&(h+=b);m+=b}return h}}d.Op=a.default,d.OpIterator=s.default,d.AttributeMap=o.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d})(bm,bm.exports)),bm.exports}var So=_Tt();const ut=Ei(So);class za extends Zi{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}za.blotName="break";za.tagName="BR";let xa=class extends rv{};const kTt={"&":"&","<":"<",">":">",'"':""","'":"'"};function j5(e){return e.replace(/[&<>"']/g,t=>kTt[t])}class ai extends DI{static allowedChildren=[ai,za,Zi,xa];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,n){const r=ai.order.indexOf(t),i=ai.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(ai.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ft.BLOT)){const o=this.isolate(t,n);i&&o.wrap(r,i)}else super.formatAt(t,n,r,i)}optimize(t){if(super.optimize(t),this.parent instanceof ai&&ai.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}const EU=1;class Tr extends Uh{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=z0e(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,r,i){n<=0||(this.scroll.query(r,ft.BLOCK)?t+n===this.length()&&this.format(r,i):super.formatAt(t,Math.min(n,this.length()-t-1),r,i),this.cache={})}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
|
281
281
|
`),o=i.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((s,c)=>(a=a.split(s,!0),a.insertAt(0,c),c.length),t+o.length)}insertBefore(t,n){const{head:r}=this.children;super.insertBefore(t,n),r instanceof za&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+EU),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-EU)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const r=super.split(t,n);return this.cache={},r}}Tr.blotName="block";Tr.tagName="P";Tr.defaultChild=za;Tr.allowedChildren=[za,ai,Zi,xa];class bo extends Zi{attach(){super.attach(),this.attributes=new k5(this.domNode)}delta(){return new ut().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,ft.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(t,n,r,i){this.format(r,i)}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r);return}const i=n.split(`
|
|
282
282
|
`),o=i.pop(),a=i.map(c=>{const u=this.scroll.create(Tr.blotName);return u.insertAt(0,c),u}),s=this.split(t);a.forEach(c=>{this.parent.insertBefore(c,s)}),o&&this.parent.insertBefore(this.scroll.create("text",o),s)}}bo.scope=ft.BLOCK_BLOT;function z0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Wr).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),mo(r,{},t)),new ut).insert(`
|
package/dist/segmentify-ui.js
CHANGED
|
@@ -94559,9 +94559,9 @@ const ILt = ({ ...e }) => {
|
|
|
94559
94559
|
loading: /* @__PURE__ */ w(JU, { className: "ui:size-4 ui:animate-spin" })
|
|
94560
94560
|
},
|
|
94561
94561
|
style: {
|
|
94562
|
-
"--normal-bg": "var(--ui-popover)",
|
|
94563
|
-
"--normal-text": "var(--ui-popover-foreground)",
|
|
94564
|
-
"--normal-border": "var(--ui-border)",
|
|
94562
|
+
"--normal-bg": "hsl(var(--ui-popover))",
|
|
94563
|
+
"--normal-text": "hsl(var(--ui-popover-foreground))",
|
|
94564
|
+
"--normal-border": "hsl(var(--ui-border))",
|
|
94565
94565
|
"--border-radius": "var(--ui-radius)"
|
|
94566
94566
|
},
|
|
94567
94567
|
...e
|