chainlit 1.0.505__py3-none-any.whl → 1.0.506__py3-none-any.whl

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.

Potentially problematic release.


This version of chainlit might be problematic. Click here for more details.

@@ -337,7 +337,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
337
337
  color: ${e.palette.action.disabled};
338
338
  cursor: default;
339
339
  }
340
- `),Dpe={ChipStyled:Uct,TextFieldStyled:zct,EndAdornmentClose:Bct},Npe=fa.forwardRef((e,t)=>{const{chips:r,onAddChip:n,onEditChip:i,onDeleteChip:v,onDeleteAllChips:l,InputProps:h,onInputChange:a,disabled:u,clearInputOnBlur:g,validate:o,error:_,helperText:x,hideClearAll:p,inputProps:b,size:c,disableDeleteOnBackspace:s,disableEdition:d,className:f,renderChip:m,addOnWhichKey:E,onFocus:y,inputValue:R,...A}=e,[D,w]=fa.useState(""),[S,C]=fa.useState(""),M=fa.useRef(null),I=fa.useRef(!1),F=fa.useRef(typeof R=="string"),[N,k]=fa.useState(null),{onKeyDown:O,...T}=b||{},{inputRef:P,...L}=h||{},z=()=>{C("")},B=F.current,Y=B?R:D,H=Q=>{a==null||a(Q),B||w(Q)},G=Q=>{H(r[Q]),k(Q),z()},W=()=>{k(null)},V=()=>{z(),H("")},j=Q=>{H(Q.target.value)},X=()=>{!I.current||(N!==null?(W(),V()):g&&V(),I.current=!1)},ee=Q=>{M.current=Q,t&&Fct(Q,t)},ae=(Q,de)=>ie=>{if(typeof o=="function"){const ce=o(Q);if(ce===!1){de.preventDefault();return}if(!Pct(ce)&&ce.isError){de.preventDefault(),C(ce.textError);return}}ie()},oe=(Q,de,ie)=>{ae(Q,ie)(()=>{i==null||i(Q,de),W(),V()})},he=(Q,de)=>{ae(Q,de)(()=>{n==null||n(Y.trim()),V()})},q=(Q,de)=>de===Dct.ime?!1:E?Array.isArray(E)?E.some(ie=>ie===Q):E===Q:Q===aC.enter,J=Q=>{const de=q(Q.key,Q.keyCode),ie=Q.key===aC.backspace,ce=Y.trim();if(Q.code==="Tab"){X();return}if(de&&Q.preventDefault(),Y.length>0&&de)ce.length===0?V():N!==null?oe(ce,N,Q):he(ce,Q);else if(ie&&Y.length===0&&r.length>0&&!s){const ge=r.length-1;v==null||v(ge),N===ge&&W()}O==null||O(Q)},le=Q=>{Q.preventDefault(),y==null||y(Q),I.current=!0},Z=Q=>{Q.preventDefault(),!p&&!u&&(l==null||l(),V(),W())},re=Q=>{var de;Q===N?(V(),W()):G(Q),(de=M.current)==null||de.focus()},fe=Q=>{u||(v==null||v(Q),N!==null&&(W(),V()))},ne=r.length>0;return Ge.jsx(Cze,{onClickAway:X,children:Ge.jsx(Dpe.TextFieldStyled,{value:Y,onChange:j,ref:t,className:`MuiChipsInput-TextField ${f||""}`,size:c,placeholder:"Type and press enter",onFocus:le,inputProps:{onKeyDown:J,...T},disabled:u,error:!!S||_,helperText:S||x,InputProps:{inputRef:ee,startAdornment:ne?r.map((Q,de)=>{const ie=`chip-${de}`,ce={index:de,onEdit:re,label:Q,title:Q,isEditing:de===N,size:c,disabled:u,disableEdition:d,onDelete:fe};return m?m(Ope,ie,ce):bt.createElement(Ope,{...ce,key:ie})}):null,endAdornment:p?null:Ge.jsx(Dpe.EndAdornmentClose,{style:{visibility:ne?"visible":"hidden"},children:Ge.jsx(Ts,{"aria-label":"Clear",title:"Clear",disabled:u,size:"small",onClick:Z,children:Ge.jsx(l2,{fontSize:"small"})})}),...L},...A})})});Npe.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:aC.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function $ct(e,t){return[...e,t]}function Hct(e,t){return e.filter((r,n)=>t!==n)}function Gct(e,t,r){return e.map((n,i)=>t===i?r:n)}const Lpe=fa.forwardRef((e,t)=>{const{value:r,onChange:n,onAddChip:i,onInputChange:v,onDeleteChip:l,disabled:h,validate:a,clearInputOnBlur:u,hideClearAll:g,disableDeleteOnBackspace:o,onEditChip:_,renderChip:x,disableEdition:p,addOnWhichKey:b,inputValue:c,...s}=e;return Ge.jsx(Npe,{chips:r,onAddChip:d=>{if(h)return;const f=$ct(r,d),m=f.length-1;i==null||i(d,m),n==null||n(f)},onInputChange:v,disableDeleteOnBackspace:o,onDeleteChip:d=>{if(h)return;const f=r[d];n==null||n(Hct(r,d)),l==null||l(f,d)},onEditChip:(d,f)=>{h||p||(n==null||n(Gct(r,f,d)),_==null||_(d,f))},renderChip:x,onDeleteAllChips:()=>{n==null||n([])},clearInputOnBlur:u,disabled:h,disableEdition:p,validate:a,inputValue:c,hideClearAll:g,addOnWhichKey:b,...s,ref:t})});Lpe.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:aC.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};const Vct=({description:e,hasError:t,id:r,label:n,size:i="small",tooltip:v,setField:l,...h})=>Ge.jsx(OS,{description:e,hasError:t,id:r,label:n,tooltip:v,children:Ge.jsx(Lpe,{...h,sx:{my:.5},size:i,onChange:a=>l==null?void 0:l(r,a,!1),inputProps:{id:r,name:r}})}),DS=({description:e,disabled:t,hasError:r,id:n,label:i,size:v="small",tooltip:l,multiline:h,endAdornment:a,...u})=>Ge.jsx(OS,{description:e,hasError:r,id:n,label:i,tooltip:l,children:Ge.jsx(YE,{disabled:t,InputProps:{endAdornment:a},inputProps:{...u,id:n,name:n,sx:{height:v==="small"?"7px":"15px",minHeight:h?"100px":"auto"}},fullWidth:!0,multiline:h,sx:{fontSize:"14px",fontWeight:400,my:.5}})});var JU={},Yct=ko;Object.defineProperty(JU,"__esModule",{value:!0});var Ppe=JU.default=void 0,Wct=Yct(Fo()),jct=Ge,Kct=(0,Wct.default)((0,jct.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");Ppe=JU.default=Kct;const Xct=({item:e,value:t,selected:r,isDarkMode:n,icon:i,...v})=>bt.createElement(Jw,{...v,key:t,sx:{display:"flex",justifyContent:"space-between",fontWeight:500,fontSize:"14px",color:n&&ro[400]||(r?h1[500]:ro[700]),"&:hover":{backgroundColor:n?ro[800]:h1[50],color:n?ro[400]:h1[500],"& .notification-count":{backgroundColor:n?ro[850]:h1[100],color:n?ro[400]:h1[500]}}}},Ge.jsxs(to,{direction:"row",alignItems:"center",spacing:1,children:[e.icon?e.icon:null,Ge.jsx("span",{children:e.value})]}),e.notificationCount?Ge.jsx(Ipe,{count:e.notificationCount}):null),qU=({children:e,description:t,disabled:r=!1,hasError:n,id:i,items:v,label:l,name:h,onChange:a,size:u="small",tooltip:g,value:o,placeholder:_="Select",renderLabel:x,onClose:p,sx:b,iconSx:c,...s})=>{const d=CS();return Ge.jsx(OS,{id:i,hasError:n,description:t,label:l,tooltip:g,sx:b,children:Ge.jsx(ule,{...s,size:u,onClose:p,labelId:i,value:o==null?void 0:o.toString(),onChange:a,disabled:r,displayEmpty:!0,renderValue:()=>{const f=v==null?void 0:v.find(m=>m.value===o);return!o||o===""?_:x&&x()||Ge.jsxs(to,{direction:"row",alignItems:"center",spacing:1,children:[f==null?void 0:f.icon,Ge.jsx("span",{children:f==null?void 0:f.label})]})},sx:{backgroundColor:f=>f.palette.background.paper,borderRadius:1,"&.MuiOutlinedInput-root":{"& fieldset":{border:f=>`1px solid ${f.palette.divider}`}}},inputProps:{id:i,name:h||i,sx:{color:"text.primary",fontSize:"14px",fontWeight:400}},MenuProps:{PaperProps:{sx:{border:f=>`1px solid ${f.palette.divider}`,boxShadow:f=>f.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","&& .Mui-selected, .Mui-selected.Mui-selected:hover":{backgroundColor:d?ro[800]:h1[50]}}},MenuListProps:{sx:{backgroundColor:d?ro[900]:""}}},IconComponent:f=>Ge.jsx(Ppe,{...f,fontSize:"16px",sx:{px:"9px",color:r?"":`${d?ro[300]:ro[600]} !important`,...c}}),children:e||(v==null?void 0:v.map(f=>Ge.jsx(Xct,{isDarkMode:d,item:f,selected:f.value===o,value:f.value},f.value)))})})},Qct=({element:e})=>{var t;switch(e==null?void 0:e.type){case"select":return Ge.jsx(qU,{...r8(e,"setField"),value:e.value??""});case"slider":return Ge.jsx(Tct,{...e,value:e.value??0});case"tags":return Ge.jsx(Vct,{...e,value:e.value??[]});case"switch":return Ge.jsx(Act,{...r8(e,"setField"),checked:!!e.value,inputProps:{id:e.id,name:e.id}});case"textinput":return Ge.jsx(DS,{...r8(e,"setField"),value:e.value??""});case"numberinput":return Ge.jsx(DS,{...r8(e,"setField"),type:"number",value:((t=e.value)==null?void 0:t.toString())??"0"});default:return Ge.jsx(Ge.Fragment,{})}};function Zct(){const{chatSettingsValue:e,chatSettingsInputs:t,chatSettingsDefaultValue:r}=Vg(),{updateChatSettings:n}=nd(),[i,v]=tc(Vz),l=dU({initialValues:e,enableReinitialize:!0,onSubmit:async()=>{}}),h=()=>v(!1),a=()=>{const g=mut(l.values,o=>o!==""?o:null);n(g),h()},u=()=>{l.setValues(r)};return Ge.jsxs(aI,{open:i,onClose:h,id:"chat-settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[Ge.jsx(sI,{id:"alert-dialog-title",children:Ge.jsx(io,{path:"components.organisms.chat.settings.settingsPanel"})}),Ge.jsx(oI,{children:Ge.jsx(ni,{sx:{display:"flex",flexDirection:"column",minWidth:"20vw",maxHeight:"70vh",gap:"15px"},children:t.map(g=>Ge.jsx(Qct,{element:{...g,value:l.values[g.id],onChange:l.handleChange,setField:l.setFieldValue}},g.id))})}),Ge.jsxs(iI,{sx:{p:2},children:[Ge.jsx(tC,{onClick:u,color:"primary",variant:"outlined",children:Ge.jsx(io,{path:"components.organisms.chat.settings.reset"})}),Ge.jsx("div",{style:{flex:"1 0 0"}}),Ge.jsx(UU,{onClick:h,children:Ge.jsx(io,{path:"components.organisms.chat.settings.cancel"})}),Ge.jsx(tC,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:Ge.jsx(io,{path:"components.organisms.chat.settings.confirm"})})]})]})}const iC=Ms({key:"Attachments",default:[]}),kpe=({element:e})=>{const t=nc();return e.url?Ge.jsxs(ni,{className:`${e.display}-audio`,children:[Ge.jsx(ni,{sx:{fontSize:"14px",lineHeight:1.72,color:t.palette.mode==="dark"?ro[300]:ro[700],marginBottom:t.spacing(.5)},children:e.name}),Ge.jsx("audio",{controls:!0,src:e.url})]}):null};var Jct={grad:.9,turn:360,rad:360/(2*Math.PI)},w1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},sf=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Z0=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},Fpe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Bpe=function(e){return{r:Z0(e.r,0,255),g:Z0(e.g,0,255),b:Z0(e.b,0,255),a:Z0(e.a)}},e$=function(e){return{r:sf(e.r),g:sf(e.g),b:sf(e.b),a:sf(e.a,3)}},qct=/^#([0-9a-f]{3,8})$/i,n8=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zpe=function(e){var t=e.r,r=e.g,n=e.b,i=e.a,v=Math.max(t,r,n),l=v-Math.min(t,r,n),h=l?v===t?(r-n)/l:v===r?2+(n-t)/l:4+(t-r)/l:0;return{h:60*(h<0?h+6:h),s:v?l/v*100:0,v:v/255*100,a:i}},Upe=function(e){var t=e.h,r=e.s,n=e.v,i=e.a;t=t/360*6,r/=100,n/=100;var v=Math.floor(t),l=n*(1-r),h=n*(1-(t-v)*r),a=n*(1-(1-t+v)*r),u=v%6;return{r:255*[n,h,l,l,a,n][u],g:255*[a,n,n,h,l,l][u],b:255*[l,l,a,n,n,h][u],a:i}},$pe=function(e){return{h:Fpe(e.h),s:Z0(e.s,0,100),l:Z0(e.l,0,100),a:Z0(e.a)}},Hpe=function(e){return{h:sf(e.h),s:sf(e.s),l:sf(e.l),a:sf(e.a,3)}},Gpe=function(e){return Upe((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},oC=function(e){return{h:(t=zpe(e)).h,s:(i=(200-(r=t.s))*(n=t.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,r,n,i},eft=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,tft=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rft=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nft=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,t$={string:[[function(e){var t=qct.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?sf(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?sf(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=rft.exec(e)||nft.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Bpe({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=eft.exec(e)||tft.exec(e);if(!t)return null;var r,n,i=$pe({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(Jct[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Gpe(i)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,i=e.a,v=i===void 0?1:i;return w1(t)&&w1(r)&&w1(n)?Bpe({r:Number(t),g:Number(r),b:Number(n),a:Number(v)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,i=e.a,v=i===void 0?1:i;if(!w1(t)||!w1(r)||!w1(n))return null;var l=$pe({h:Number(t),s:Number(r),l:Number(n),a:Number(v)});return Gpe(l)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,i=e.a,v=i===void 0?1:i;if(!w1(t)||!w1(r)||!w1(n))return null;var l=function(h){return{h:Fpe(h.h),s:Z0(h.s,0,100),v:Z0(h.v,0,100),a:Z0(h.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(v)});return Upe(l)},"hsv"]]},Vpe=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},aft=function(e){return typeof e=="string"?Vpe(e.trim(),t$.string):typeof e=="object"&&e!==null?Vpe(e,t$.object):[null,void 0]},r$=function(e,t){var r=oC(e);return{h:r.h,s:Z0(r.s+100*t,0,100),l:r.l,a:r.a}},n$=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ype=function(e,t){var r=oC(e);return{h:r.h,s:r.s,l:Z0(r.l+100*t,0,100),a:r.a}},a$=function(){function e(t){this.parsed=aft(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return sf(n$(this.rgba),2)},e.prototype.isDark=function(){return n$(this.rgba)<.5},e.prototype.isLight=function(){return n$(this.rgba)>=.5},e.prototype.toHex=function(){return t=e$(this.rgba),r=t.r,n=t.g,i=t.b,l=(v=t.a)<1?n8(sf(255*v)):"","#"+n8(r)+n8(n)+n8(i)+l;var t,r,n,i,v,l},e.prototype.toRgb=function(){return e$(this.rgba)},e.prototype.toRgbString=function(){return t=e$(this.rgba),r=t.r,n=t.g,i=t.b,(v=t.a)<1?"rgba("+r+", "+n+", "+i+", "+v+")":"rgb("+r+", "+n+", "+i+")";var t,r,n,i,v},e.prototype.toHsl=function(){return Hpe(oC(this.rgba))},e.prototype.toHslString=function(){return t=Hpe(oC(this.rgba)),r=t.h,n=t.s,i=t.l,(v=t.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+v+")":"hsl("+r+", "+n+"%, "+i+"%)";var t,r,n,i,v},e.prototype.toHsv=function(){return t=zpe(this.rgba),{h:sf(t.h),s:sf(t.s),v:sf(t.v),a:sf(t.a,3)};var t},e.prototype.invert=function(){return J0({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),J0(r$(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),J0(r$(this.rgba,-t))},e.prototype.grayscale=function(){return J0(r$(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),J0(Ype(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),J0(Ype(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?J0({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):sf(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=oC(this.rgba);return typeof t=="number"?J0({h:t,s:r.s,l:r.l,a:r.a}):sf(r.h)},e.prototype.isEqual=function(t){return this.toHex()===J0(t).toHex()},e}(),J0=function(e){return e instanceof a$?e:new a$(e)},Wpe=[],ift=function(e){e.forEach(function(t){Wpe.indexOf(t)<0&&(t(a$,t$),Wpe.push(t))})};function oft(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var v={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,a,u=n[this.toHex()];if(u)return u;if(l!=null&&l.closest){var g=this.toRgb(),o=1/0,_="black";if(!v.length)for(var x in r)v[x]=new e(r[x]).toRgb();for(var p in r){var b=(h=g,a=v[p],Math.pow(h.r-a.r,2)+Math.pow(h.g-a.g,2)+Math.pow(h.b-a.b,2));b<o&&(o=b,_=p)}return _}},t.string.push([function(l){var h=l.toLowerCase(),a=h==="transparent"?"#0000":r[h];return a?new e(a).toRgb():null},"name"])}var sft=1/0,lft="[object Symbol]",uft=typeof ol=="object"&&ol&&ol.Object===Object&&ol,cft=typeof self=="object"&&self&&self.Object===Object&&self,fft=uft||cft||Function("return this")(),dft=Object.prototype,hft=0,pft=dft.toString,jpe=fft.Symbol,Kpe=jpe?jpe.prototype:void 0,Xpe=Kpe?Kpe.toString:void 0;function vft(e){if(typeof e=="string")return e;if(mft(e))return Xpe?Xpe.call(e):"";var t=e+"";return t=="0"&&1/e==-sft?"-0":t}function gft(e){return!!e&&typeof e=="object"}function mft(e){return typeof e=="symbol"||gft(e)&&pft.call(e)==lft}function yft(e){return e==null?"":vft(e)}function bft(e){var t=++hft;return yft(e)+t}var _ft=bft;const xft=Pc(_ft);var Eft={"3d":fa.createElement("path",{d:"M18 14.625V3.375L9 0 0 3.375v11.25L9 18l9-3.375zM9 2.136l5.918 2.22-5.98 2.242-5.919-2.22L9 2.137zM2 13.239V5.065l6.438 2.414v8.174L2 13.24zM9.438 15.7L16 13.239V5.018l-6.563 2.46V15.7z",transform:"translate(15 10)",fillRule:"evenodd"}),acrobat:fa.createElement("path",{d:"M10.15 1.095C9.938.33 9.42-.051 8.984.005c-.528.068-1.09.382-1.314.876-.63 1.416.685 5.582.887 6.279-1.28 3.863-5.66 11.5-7.806 12.017-.045-.505.225-1.965 3.055-3.785.146-.157.315-.348.393-.472-2.392 1.168-5.492 3.044-3.628 4.448.102.079.259.146.439.213 1.426.528 3.425-1.201 5.435-5.121 2.213-.73 3.999-1.28 6.526-1.662 2.762 1.875 4.616 2.257 5.874 1.774.348-.135.898-.573 1.055-1.145-1.022 1.258-3.414.382-5.323-.82 1.763-.191 3.582-.303 4.369-.056 1 .314.965.808.954.876.079-.27.191-.708-.022-1.056-.842-1.37-4.706-.573-6.11-.427-2.212-1.336-3.74-3.717-4.358-5.436.573-2.212 1.19-3.818.742-5.413zm-.954 4.638C8.826 4.42 8.309 1.5 9.14.556c1.628.932.618 3.144.056 5.177zm3.044 6.514c-2.134.393-3.583.944-5.66 1.764.617-1.202 1.785-4.268 2.346-6.29.787 1.573 1.741 3.111 3.314 4.526z",transform:"translate(14 9)",fillRule:"evenodd"}),android:fa.createElement("path",{d:"M17.6,9.48l1.84-3.18c0.16-0.31,0.04-0.69-0.26-0.85c-0.29-0.15-0.65-0.06-0.83,0.22l-1.88,3.24 c-2.86-1.21-6.08-1.21-8.94,0L5.65,5.67c-0.19-0.29-0.58-0.38-0.87-0.2C4.5,5.65,4.41,6.01,4.56,6.3L6.4,9.48 C3.3,11.25,1.28,14.44,1,18h22C22.72,14.44,20.7,11.25,17.6,9.48z M7,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25S8.25,13.31,8.25,14C8.25,14.69,7.69,15.25,7,15.25z M17,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25s1.25,0.56,1.25,1.25C18.25,14.69,17.69,15.25,17,15.25z",transform:"translate(12 8)"}),audio:fa.createElement("path",{d:"M.25 4.75v4.5h3L7 13V1L3.25 4.75h-3zM10.375 7A3.375 3.375 0 0 0 8.5 3.977v6.037A3.355 3.355 0 0 0 10.375 7zM8.5.421v1.545A5.254 5.254 0 0 1 12.25 7a5.254 5.254 0 0 1-3.75 5.032v1.545A6.747 6.747 0 0 0 13.75 7 6.747 6.747 0 0 0 8.5.421z",transform:"translate(17 12)",fillRule:"evenodd"}),binary:fa.createElement("path",{d:"M2.338 6.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504C1.274.928.538 2 .538 3.608c0 1.56.576 2.504 1.8 2.504zM1.61 3.408c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zM2.418 5.2c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568zm7.03.8l.088-.944H8.36V.896L7.272.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zm5.199 0l.088-.944h-1.176V.896L12.47.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zM4.25 14l.088-.944H3.162v-4.16l-1.088.088v.592L.89 9.688l.024.824h1.16v2.544H.754V14zm5.198 0l.088-.944H8.36v-4.16l-1.088.088v.592l-1.184.112.024.824h1.16v2.544h-1.32V14zm3.287.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504-1.192 0-1.928 1.072-1.928 2.68 0 1.56.576 2.504 1.8 2.504zm-.728-2.704c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zm.808 1.792c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568z",transform:"translate(16 11)",fillRule:"evenodd"}),code:fa.createElement("path",{d:"M4.078 13.67c-1.875-.527-2.812-1.738-2.812-3.634V9.49C1.266 8.437.844 7.911 0 7.911V6.138c.844 0 1.266-.529 1.266-1.586v-.64c.015-.938.257-1.696.726-2.274C2.466 1.06 3.162.64 4.078.38l.492 1.375c-.656.25-.997.95-1.023 2.102v.695c0 1.167-.482 1.99-1.445 2.469.963.479 1.445 1.304 1.445 2.476v.688c.026 1.15.367 1.851 1.023 2.101l-.492 1.383zm7.844 0c1.875-.527 2.812-1.738 2.812-3.634V9.49c0-1.052.422-1.578 1.266-1.578V6.138c-.844 0-1.266-.529-1.266-1.586v-.64c-.015-.938-.257-1.696-.726-2.274-.474-.578-1.17-.998-2.086-1.258l-.492 1.375c.656.25.997.95 1.023 2.102v.695c0 1.167.482 1.99 1.445 2.469-.963.479-1.445 1.304-1.445 2.476v.688c-.026 1.15-.367 1.851-1.023 2.101l.492 1.383z",transform:"translate(16 13)",fillRule:"evenodd"}),code2:fa.createElement("path",{d:"M7.4 10.6L2.8 6l4.6-4.6L6 0 0 6l6 6 1.4-1.4zm5.2 0L17.2 6l-4.6-4.6L14 0l6 6-6 6-1.4-1.4z",transform:"translate(14 14)",fillRule:"evenodd"}),compressed:fa.createElement("path",{d:"M.25 0A.25.25 0 0 0 0 .25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 1.75V.25A.25.25 0 0 0 1.75 0H.25zM1 17a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H1zm0 4v3h2v-3H1zM2 2.25A.25.25 0 0 1 2.25 2h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 3.75v-1.5zM.25 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 5.75v-1.5A.25.25 0 0 0 1.75 4H.25zM2 6.25A.25.25 0 0 1 2.25 6h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 7.75v-1.5zM.25 8a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 9.75v-1.5A.25.25 0 0 0 1.75 8H.25zM2 10.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5zM.25 12a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25H.25zM2 14.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5z",transform:"translate(15 1)",fillRule:"evenodd"}),document:fa.createElement("path",{d:"M12 4H0v2h12V4zM0 10h18V8H0v2zM0 0v2h18V0H0z",transform:"translate(15 15)",fillRule:"evenodd"}),drive:fa.createElement("path",{d:"M2.199.289A.5.5 0 0 1 2.652 0h8.696a.5.5 0 0 1 .453.289l1.867 4a.5.5 0 0 1-.453.711H.785a.5.5 0 0 1-.453-.711l1.867-4zM13 6H1a.752.752 0 0 0-.75.75v4.5c0 .412.338.75.75.75h12c.412 0 .75-.338.75-.75v-4.5A.752.752 0 0 0 13 6zm-9.75 4.5c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5z",transform:"translate(17 13)",fillRule:"evenodd"}),font:fa.createElement("path",{d:"M3.722 8.702l-.686 1.89c-.053.14-.094.28-.123.421-.03.135-.044.252-.044.352 0 .304.097.527.29.668.2.14.501.21.905.21h.414V13H.083v-.756h.343c.176 0 .325-.018.448-.053a.81.81 0 0 0 .334-.22c.1-.105.193-.249.281-.43.094-.182.197-.416.308-.704L5.787.15h1.406l4.07 11.136c.07.187.14.343.21.466.077.123.165.222.264.298.1.07.214.12.343.15.129.03.281.044.457.044h.237V13H7.826v-.756h.413c.72 0 1.081-.287 1.081-.862 0-.1-.014-.202-.044-.307a3.274 3.274 0 0 0-.105-.36l-.72-2.013H3.72zM7.009 4.65c-.188-.533-.36-1.031-.519-1.494a15.92 15.92 0 0 1-.378-1.354 7.12 7.12 0 0 1-.15.633 16.95 16.95 0 0 1-.395 1.283c-.082.229-.175.484-.28.765L4.063 7.796h4.061L7.009 4.65zm8.411 5.74c0 .562.117.984.351 1.265.24.275.61.413 1.108.413.363 0 .691-.059.984-.176.3-.117.551-.284.756-.5.211-.218.372-.481.483-.792.112-.31.168-.656.168-1.037V8.104l-1.152.053c-.51.023-.937.088-1.283.193-.34.1-.615.243-.826.43a1.546 1.546 0 0 0-.457.678c-.088.27-.132.58-.132.931zm2.18-6.32c-.346 0-.627.05-.844.15a1.182 1.182 0 0 0-.501.404 1.594 1.594 0 0 0-.237.624c-.041.24-.062.5-.062.782-.498 0-.879-.085-1.143-.255-.257-.17-.386-.463-.386-.879 0-.31.085-.574.255-.79.17-.218.401-.393.694-.528.299-.14.644-.243 1.037-.308a7.76 7.76 0 0 1 1.257-.097c.55 0 1.031.056 1.441.167.41.106.753.282 1.029.528.275.246.48.568.615.967.14.392.21.876.21 1.45v4.667c0 .252.021.46.062.624a.928.928 0 0 0 .194.395c.088.1.202.17.343.211.146.041.319.062.518.062h.053V13H19.7l-.281-1.547h-.15c-.187.252-.369.483-.544.694-.176.211-.37.393-.58.545-.211.152-.452.27-.721.352a3.053 3.053 0 0 1-.958.131c-.399 0-.77-.058-1.116-.175a2.369 2.369 0 0 1-.888-.519 2.516 2.516 0 0 1-.58-.896c-.14-.364-.211-.791-.211-1.284 0-.955.34-1.664 1.02-2.127.68-.462 1.707-.714 3.084-.755l1.495-.053V6.285a6.93 6.93 0 0 0-.053-.888 1.778 1.778 0 0 0-.229-.703 1.14 1.14 0 0 0-.51-.457c-.216-.111-.51-.167-.878-.167z",transform:"translate(13 12)",fillRule:"evenodd"}),image:fa.createElement("path",{d:"M13 0L9.25 5l2.85 3.8-1.6 1.2C8.81 7.75 6 4 6 4l-6 8h22L13 0z",transform:"translate(13 14)",fillRule:"evenodd"}),presentation:fa.createElement("path",{d:"M2 4H0v10c0 1.1.9 2 2 2h14v-2H2V4zm16-4H6C4.9 0 4 .9 4 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 10H6V2h12v8z",transform:"matrix(-1 0 0 1 34 12)",fillRule:"evenodd"}),settings:fa.createElement("path",{d:"M13.572 8.735c.03-.24.053-.48.053-.735s-.023-.495-.053-.735l1.583-1.237a.378.378 0 0 0 .09-.48l-1.5-2.595a.377.377 0 0 0-.457-.165l-1.868.75a5.48 5.48 0 0 0-1.268-.735L9.868.815A.366.366 0 0 0 9.5.5h-3a.366.366 0 0 0-.367.315l-.285 1.988a5.762 5.762 0 0 0-1.268.735l-1.868-.75a.366.366 0 0 0-.457.165l-1.5 2.595a.37.37 0 0 0 .09.48l1.583 1.237c-.03.24-.053.488-.053.735 0 .248.022.495.053.735L.845 9.973a.378.378 0 0 0-.09.48l1.5 2.595c.09.165.292.225.458.165l1.867-.75c.39.3.81.547 1.268.735l.285 1.987c.022.18.18.315.367.315h3a.366.366 0 0 0 .367-.315l.285-1.988a5.762 5.762 0 0 0 1.268-.734l1.867.75c.173.067.368 0 .458-.165l1.5-2.595a.378.378 0 0 0-.09-.48l-1.582-1.238zM8 10.625A2.628 2.628 0 0 1 5.375 8 2.628 2.628 0 0 1 8 5.375 2.628 2.628 0 0 1 10.625 8 2.628 2.628 0 0 1 8 10.625z",transform:"translate(16 11)",fillRule:"evenodd"}),spreadsheet:fa.createElement("path",{d:"M0 8h6V5H0v3zm0 5h6v-3H0v3zM0 3h6V0H0v3zm8 5h12V5H8v3zm0 5h12v-3H8v3zM8 0v3h12V0H8z",transform:"translate(14 14)",fillRule:"evenodd"}),vector:fa.createElement("path",{d:"M14.5 2V1a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v1H3.937a2 2 0 1 0 0 1h3.936A9 9 0 0 0 3 11v1h2v-1a7.003 7.003 0 0 1 4.594-6.576A1 1 0 0 0 10.5 5h3a1 1 0 0 0 .906-.576A7.003 7.003 0 0 1 19 11v1h2v-1a9 9 0 0 0-4.873-8h3.936a2 2 0 1 0 0-1H14.5zm-1-1h-3v3h3V1zM2 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm19 1a1 1 0 1 0 2 0 1 1 0 0 0-2 0z",transform:"translate(12 14)",fillRule:"evenodd"}),video:fa.createElement("path",{d:"M10.75 3.875V1.25A.752.752 0 0 0 10 .5H1a.752.752 0 0 0-.75.75v7.5c0 .412.338.75.75.75h9c.412 0 .75-.338.75-.75V6.125l3 3V.875l-3 3z",transform:"translate(17 14)"})};ift([oft]);var Sft={color:us.string,extension:us.string,fold:us.bool,foldColor:us.string,glyphColor:us.string,gradientColor:us.string,gradientOpacity:us.number,labelColor:us.string,labelTextColor:us.string,labelUppercase:us.bool,radius:us.number,type:us.oneOf(["3d","acrobat","android","audio","binary","code","code2","compressed","document","drive","font","image","presentation","settings","spreadsheet","vector","video"])},a8={WIDTH:40,HEIGHT:48},cl={WIDTH:a8.WIDTH,HEIGHT:a8.HEIGHT,X_OFFSET:0},A1={HEIGHT:12},Qpe=14,Zpe=function(t){var r=t.color,n=r===void 0?"whitesmoke":r,i=t.extension,v=t.fold,l=v===void 0?!0:v,h=t.foldColor,a=t.glyphColor,u=t.gradientColor,g=u===void 0?"white":u,o=t.gradientOpacity,_=o===void 0?.25:o,x=t.labelColor,p=t.labelTextColor,b=p===void 0?"white":p,c=t.labelUppercase,s=c===void 0?!1:c,d=t.radius,f=d===void 0?4:d,m=t.type,E=xft();return fa.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+a8.WIDTH+" "+a8.HEIGHT,width:"100%",style:{maxWidth:"100%"}},fa.createElement("defs",null,fa.createElement("clipPath",{id:"pageRadius"+E},fa.createElement("rect",{x:cl.X_OFFSET,y:"0",rx:f,ry:f,width:cl.WIDTH,height:cl.HEIGHT})),fa.createElement("clipPath",{id:"foldCrop"+E},fa.createElement("rect",{width:cl.WIDTH,height:A1.HEIGHT,transform:"rotate(-45 0 "+A1.HEIGHT+")"})),fa.createElement("linearGradient",{x1:"100%",y1:"0%",y2:"100%",id:"pageGradient"+E},fa.createElement("stop",{stopColor:g,stopOpacity:_,offset:"0%"}),fa.createElement("stop",{stopColor:g,stopOpacity:"0",offset:"66.67%"}))),fa.createElement("g",{id:"file",clipPath:"url(#pageRadius"+E+")"},l?fa.createElement(fa.Fragment,null,fa.createElement("path",{d:"M"+cl.X_OFFSET+" 0 h "+(cl.WIDTH-A1.HEIGHT)+" L "+(cl.WIDTH+cl.X_OFFSET)+" "+A1.HEIGHT+" v "+(cl.HEIGHT-A1.HEIGHT)+" H "+cl.X_OFFSET+" Z",fill:n}),fa.createElement("path",{d:"M"+cl.X_OFFSET+" 0 h "+(cl.WIDTH-A1.HEIGHT)+" L "+(cl.WIDTH+cl.X_OFFSET)+" "+A1.HEIGHT+" v "+(cl.HEIGHT-A1.HEIGHT)+" H "+cl.X_OFFSET+" Z",fill:"url(#pageGradient"+E+")"})):fa.createElement(fa.Fragment,null,fa.createElement("rect",{x:cl.X_OFFSET,y:"0",width:cl.WIDTH,height:cl.HEIGHT,fill:n}),fa.createElement("rect",{x:cl.X_OFFSET,y:"0",width:cl.WIDTH,height:cl.HEIGHT,fill:"url(#pageGradient"+E+")"}))),l&&fa.createElement("g",{transform:"translate(28 "+A1.HEIGHT+") rotate(-90)"},fa.createElement("rect",{width:cl.WIDTH,height:cl.HEIGHT,fill:h||J0(n).darken(.1).toHex(),rx:f,ry:f,clipPath:"url(#foldCrop"+E+")"})),i&&fa.createElement(fa.Fragment,null,fa.createElement("g",{id:"label"+E},fa.createElement("rect",{fill:x||J0(n).darken(.3).toHex(),x:cl.X_OFFSET,y:cl.HEIGHT-Qpe,width:cl.WIDTH,height:Qpe,clipPath:"url(#pageRadius"+E+")"})),fa.createElement("g",{id:"labelText"+E,transform:"translate("+cl.X_OFFSET+" 34)"},fa.createElement("text",{x:cl.WIDTH/2,y:"10",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"9",fill:b,textAnchor:"middle",style:{fontWeight:"bold",textAlign:"center",pointerEvents:"none",textTransform:s?"uppercase":"none",userSelect:"none"}},i))),m&&fa.createElement("g",{transform:"translate(-4 "+(i?0:6)+")",fill:a||J0(n).darken(.15).toHex()},Eft[m]))};Zpe.propTypes=Sft;var Tft={"3dm":{labelColor:"#8D1A11",type:"3d"},"3ds":{labelColor:"#5FB9AD",type:"3d"},"3g2":{type:"video"},"3gp":{type:"video"},"7zip":{type:"compressed"},aab:{type:"android",labelColor:"#3DDC84"},aac:{type:"audio"},aep:{type:"video"},ai:{color:"#423325",gradientOpacity:0,labelColor:"#423325",labelTextColor:"#FF7F18",labelUppercase:!0,foldColor:"#FF7F18",radius:2},aif:{type:"audio"},aiff:{type:"audio"},apk:{type:"android",labelColor:"#3DDC84"},apkm:{type:"android",labelColor:"#3DDC84"},apks:{type:"android",labelColor:"#3DDC84"},asf:{type:"video"},asp:{type:"code"},aspx:{type:"code"},avi:{type:"video"},bin:{type:"binary"},bmp:{type:"image"},c:{type:"code"},cpp:{type:"code"},cs:{type:"code"},css:{type:"code"},csv:{type:"spreadsheet"},cue:{type:"document"},dll:{type:"settings"},dmg:{type:"drive"},doc:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},docx:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},dwg:{type:"vector"},dxf:{type:"vector"},eot:{type:"font"},eps:{type:"vector"},exe:{type:"settings"},flac:{type:"audio"},flv:{type:"video"},fnt:{type:"font"},fodp:{type:"presentation"},fods:{type:"spreadsheet"},fodt:{type:"document"},fon:{type:"font"},gif:{type:"image"},gz:{type:"compressed"},htm:{type:"code"},html:{type:"code"},indd:{color:"#4B2B36",gradientOpacity:0,labelColor:"#4B2B36",labelTextColor:"#FF408C",labelUppercase:!0,foldColor:"#FF408C",radius:2},ini:{type:"settings"},java:{type:"code"},jpeg:{type:"image"},jpg:{type:"image"},js:{labelColor:"#F7DF1E",type:"code"},json:{type:"code"},jsx:{labelColor:"#00D8FF",type:"code"},m4a:{type:"audio"},m4v:{type:"video"},max:{labelColor:"#5FB9AD",type:"3d"},md:{type:"document"},mid:{type:"audio"},mkv:{type:"video"},mov:{type:"video"},mp3:{type:"audio"},mp4:{type:"video"},mpeg:{type:"video"},mpg:{type:"video"},obj:{type:"3d"},odp:{type:"presentation"},ods:{type:"spreadsheet"},odt:{type:"document"},ogg:{type:"audio"},ogv:{type:"video"},otf:{type:"font"},pdf:{labelColor:"#D93831",type:"acrobat"},php:{labelColor:"#8892BE",type:"code"},pkg:{type:"3d"},plist:{type:"settings"},png:{type:"image"},ppt:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pptx:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pr:{type:"video"},ps:{type:"vector"},psd:{color:"#34364E",gradientOpacity:0,labelColor:"#34364E",labelTextColor:"#31C5F0",labelUppercase:!0,foldColor:"#31C5F0",radius:2},py:{labelColor:"#FFDE57",type:"code"},rar:{type:"compressed"},rb:{labelColor:"#BB271A",type:"code"},rm:{type:"video"},rtf:{type:"document"},scss:{labelColor:"#C16A98",type:"code"},sitx:{type:"compressed"},skp:{type:"3d"},svg:{type:"vector"},swf:{type:"video"},sys:{type:"settings"},tar:{type:"compressed"},tex:{type:"document"},tif:{type:"image"},tiff:{type:"image"},ts:{labelColor:"#3478C7",type:"code"},ttf:{type:"font"},txt:{type:"document"},wav:{type:"audio"},webm:{type:"video"},wmv:{type:"video"},woff:{type:"font"},wpd:{type:"document"},wps:{type:"document"},xapk:{type:"android",labelColor:"#3DDC84"},xlr:{type:"spreadsheet"},xls:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},xlsx:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},yml:{type:"code"},zip:{type:"compressed"},zipx:{type:"compressed"}};const Jpe=({name:e,mime:t,children:r})=>{const n=t?t.split("/").pop():"txt";return Ge.jsxs(ni,{position:"relative",sx:i=>({height:50,[i.breakpoints.down("sm")]:{height:36}}),children:[r,Ge.jsxs(to,{sx:i=>({height:"100%",flexDirection:"row",alignItems:"center",gap:1.2,borderRadius:1,px:1.2,border:v=>`1px solid ${v.palette.primary.main}`,color:v=>v.palette.mode==="light"?v.palette.primary.main:v.palette.text.primary,background:v=>v.palette.mode==="light"?v.palette.primary.light:v.palette.primary.dark,width:160,[i.breakpoints.down("sm")]:{width:"fit-content",maxWidth:120}}),children:[Ge.jsx(ni,{sx:i=>({width:"2rem",[i.breakpoints.down("sm")]:{width:"1.25rem"}}),children:Ge.jsx(Zpe,{...Tft[n],extension:n})}),Ge.jsx(Ko,{sx:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:500,fontSize:"0.8rem",width:"70%"},children:e})]})]})},qpe=({element:e})=>e.url?Ge.jsx($E,{className:`${e.display}-file`,download:e.name,href:e.url,target:"_blank",sx:{textDecoration:"none"},children:Ge.jsx(Jpe,{name:e.name,mime:e.mime})}):null,wft=({children:e})=>Ge.jsx(ni,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?ro[200]:ro[900],borderRadius:"4px",display:"flex"},children:e}),Aft=(e,t)=>{const r=document.createElement("a");r.href=t,r.target="_blank",r.download=e,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},e0e=({element:e})=>{const[t,r]=bt.useState(!0);return e.url?Ge.jsxs(wft,{children:[t&&Ge.jsx(By,{variant:"rectangular",width:"100%",height:200}),Ge.jsx("img",{className:`${e.display}-image`,src:e.url,onLoad:()=>r(!1),onClick:()=>{if(e.display==="inline"){const n=`${e.name}.png`;Aft(n,e.url)}},style:{objectFit:"cover",maxWidth:"100%",margin:"auto",height:"auto",display:"block",cursor:e.display==="inline"?"pointer":"default"},alt:e.name,loading:"lazy"})]}):null},t0e=({element:e})=>{if(!e.url)return null;const t=e.page?`${e.url}#page=${e.page}`:e.url;return Ge.jsx("iframe",{className:`${e.display}-pdf`,src:t,style:{border:"none"},width:"100%",height:"100%"})},Cft="modulepreload",Rft=function(e){return"/"+e},r0e={},Mft=function(t,r,n){return t()};var n0e={exports:{}},a0e={};/**
340
+ `),Dpe={ChipStyled:Uct,TextFieldStyled:zct,EndAdornmentClose:Bct},Npe=fa.forwardRef((e,t)=>{const{chips:r,onAddChip:n,onEditChip:i,onDeleteChip:v,onDeleteAllChips:l,InputProps:h,onInputChange:a,disabled:u,clearInputOnBlur:g,validate:o,error:_,helperText:x,hideClearAll:p,inputProps:b,size:c,disableDeleteOnBackspace:s,disableEdition:d,className:f,renderChip:m,addOnWhichKey:E,onFocus:y,inputValue:R,...A}=e,[D,w]=fa.useState(""),[S,C]=fa.useState(""),M=fa.useRef(null),I=fa.useRef(!1),F=fa.useRef(typeof R=="string"),[N,k]=fa.useState(null),{onKeyDown:O,...T}=b||{},{inputRef:P,...L}=h||{},z=()=>{C("")},B=F.current,Y=B?R:D,H=Q=>{a==null||a(Q),B||w(Q)},G=Q=>{H(r[Q]),k(Q),z()},W=()=>{k(null)},V=()=>{z(),H("")},j=Q=>{H(Q.target.value)},X=()=>{!I.current||(N!==null?(W(),V()):g&&V(),I.current=!1)},ee=Q=>{M.current=Q,t&&Fct(Q,t)},ae=(Q,de)=>ie=>{if(typeof o=="function"){const ce=o(Q);if(ce===!1){de.preventDefault();return}if(!Pct(ce)&&ce.isError){de.preventDefault(),C(ce.textError);return}}ie()},oe=(Q,de,ie)=>{ae(Q,ie)(()=>{i==null||i(Q,de),W(),V()})},he=(Q,de)=>{ae(Q,de)(()=>{n==null||n(Y.trim()),V()})},q=(Q,de)=>de===Dct.ime?!1:E?Array.isArray(E)?E.some(ie=>ie===Q):E===Q:Q===aC.enter,J=Q=>{const de=q(Q.key,Q.keyCode),ie=Q.key===aC.backspace,ce=Y.trim();if(Q.code==="Tab"){X();return}if(de&&Q.preventDefault(),Y.length>0&&de)ce.length===0?V():N!==null?oe(ce,N,Q):he(ce,Q);else if(ie&&Y.length===0&&r.length>0&&!s){const ge=r.length-1;v==null||v(ge),N===ge&&W()}O==null||O(Q)},le=Q=>{Q.preventDefault(),y==null||y(Q),I.current=!0},Z=Q=>{Q.preventDefault(),!p&&!u&&(l==null||l(),V(),W())},re=Q=>{var de;Q===N?(V(),W()):G(Q),(de=M.current)==null||de.focus()},fe=Q=>{u||(v==null||v(Q),N!==null&&(W(),V()))},ne=r.length>0;return Ge.jsx(Cze,{onClickAway:X,children:Ge.jsx(Dpe.TextFieldStyled,{value:Y,onChange:j,ref:t,className:`MuiChipsInput-TextField ${f||""}`,size:c,placeholder:"Type and press enter",onFocus:le,inputProps:{onKeyDown:J,...T},disabled:u,error:!!S||_,helperText:S||x,InputProps:{inputRef:ee,startAdornment:ne?r.map((Q,de)=>{const ie=`chip-${de}`,ce={index:de,onEdit:re,label:Q,title:Q,isEditing:de===N,size:c,disabled:u,disableEdition:d,onDelete:fe};return m?m(Ope,ie,ce):bt.createElement(Ope,{...ce,key:ie})}):null,endAdornment:p?null:Ge.jsx(Dpe.EndAdornmentClose,{style:{visibility:ne?"visible":"hidden"},children:Ge.jsx(Ts,{"aria-label":"Clear",title:"Clear",disabled:u,size:"small",onClick:Z,children:Ge.jsx(l2,{fontSize:"small"})})}),...L},...A})})});Npe.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:aC.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function $ct(e,t){return[...e,t]}function Hct(e,t){return e.filter((r,n)=>t!==n)}function Gct(e,t,r){return e.map((n,i)=>t===i?r:n)}const Lpe=fa.forwardRef((e,t)=>{const{value:r,onChange:n,onAddChip:i,onInputChange:v,onDeleteChip:l,disabled:h,validate:a,clearInputOnBlur:u,hideClearAll:g,disableDeleteOnBackspace:o,onEditChip:_,renderChip:x,disableEdition:p,addOnWhichKey:b,inputValue:c,...s}=e;return Ge.jsx(Npe,{chips:r,onAddChip:d=>{if(h)return;const f=$ct(r,d),m=f.length-1;i==null||i(d,m),n==null||n(f)},onInputChange:v,disableDeleteOnBackspace:o,onDeleteChip:d=>{if(h)return;const f=r[d];n==null||n(Hct(r,d)),l==null||l(f,d)},onEditChip:(d,f)=>{h||p||(n==null||n(Gct(r,f,d)),_==null||_(d,f))},renderChip:x,onDeleteAllChips:()=>{n==null||n([])},clearInputOnBlur:u,disabled:h,disableEdition:p,validate:a,inputValue:c,hideClearAll:g,addOnWhichKey:b,...s,ref:t})});Lpe.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:aC.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};const Vct=({description:e,hasError:t,id:r,label:n,size:i="small",tooltip:v,setField:l,...h})=>Ge.jsx(OS,{description:e,hasError:t,id:r,label:n,tooltip:v,children:Ge.jsx(Lpe,{...h,sx:{my:.5},size:i,onChange:a=>l==null?void 0:l(r,a,!1),inputProps:{id:r,name:r}})}),DS=({description:e,disabled:t,hasError:r,id:n,label:i,size:v="small",tooltip:l,multiline:h,endAdornment:a,...u})=>Ge.jsx(OS,{description:e,hasError:r,id:n,label:i,tooltip:l,children:Ge.jsx(YE,{disabled:t,InputProps:{endAdornment:a},inputProps:{...u,id:n,name:n,sx:{height:v==="small"?"7px":"15px",minHeight:h?"100px":"auto"}},fullWidth:!0,multiline:h,sx:{fontSize:"14px",fontWeight:400,my:.5}})});var JU={},Yct=ko;Object.defineProperty(JU,"__esModule",{value:!0});var Ppe=JU.default=void 0,Wct=Yct(Fo()),jct=Ge,Kct=(0,Wct.default)((0,jct.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");Ppe=JU.default=Kct;const Xct=({item:e,value:t,selected:r,isDarkMode:n,icon:i,...v})=>bt.createElement(Jw,{...v,key:t,sx:{display:"flex",justifyContent:"space-between",fontWeight:500,fontSize:"14px",color:n&&ro[400]||(r?h1[500]:ro[700]),"&:hover":{backgroundColor:n?ro[800]:h1[50],color:n?ro[400]:h1[500],"& .notification-count":{backgroundColor:n?ro[850]:h1[100],color:n?ro[400]:h1[500]}}}},Ge.jsxs(to,{direction:"row",alignItems:"center",spacing:1,children:[e.icon?e.icon:null,Ge.jsx("span",{children:(e==null?void 0:e.label)||e.value})]}),e.notificationCount?Ge.jsx(Ipe,{count:e.notificationCount}):null),qU=({children:e,description:t,disabled:r=!1,hasError:n,id:i,items:v,label:l,name:h,onChange:a,size:u="small",tooltip:g,value:o,placeholder:_="Select",renderLabel:x,onClose:p,sx:b,iconSx:c,...s})=>{const d=CS();return Ge.jsx(OS,{id:i,hasError:n,description:t,label:l,tooltip:g,sx:b,children:Ge.jsx(ule,{...s,size:u,onClose:p,labelId:i,value:o==null?void 0:o.toString(),onChange:a,disabled:r,displayEmpty:!0,renderValue:()=>{const f=v==null?void 0:v.find(m=>m.value===o);return!o||o===""?_:x&&x()||Ge.jsxs(to,{direction:"row",alignItems:"center",spacing:1,children:[f==null?void 0:f.icon,Ge.jsx("span",{children:f==null?void 0:f.label})]})},sx:{backgroundColor:f=>f.palette.background.paper,borderRadius:1,"&.MuiOutlinedInput-root":{"& fieldset":{border:f=>`1px solid ${f.palette.divider}`}}},inputProps:{id:i,name:h||i,sx:{color:"text.primary",fontSize:"14px",fontWeight:400}},MenuProps:{PaperProps:{sx:{border:f=>`1px solid ${f.palette.divider}`,boxShadow:f=>f.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","&& .Mui-selected, .Mui-selected.Mui-selected:hover":{backgroundColor:d?ro[800]:h1[50]}}},MenuListProps:{sx:{backgroundColor:d?ro[900]:""}}},IconComponent:f=>Ge.jsx(Ppe,{...f,fontSize:"16px",sx:{px:"9px",color:r?"":`${d?ro[300]:ro[600]} !important`,...c}}),children:e||(v==null?void 0:v.map(f=>Ge.jsx(Xct,{isDarkMode:d,item:f,selected:f.value===o,value:f.value},f.value)))})})},Qct=({element:e})=>{var t;switch(e==null?void 0:e.type){case"select":return Ge.jsx(qU,{...r8(e,"setField"),value:e.value??""});case"slider":return Ge.jsx(Tct,{...e,value:e.value??0});case"tags":return Ge.jsx(Vct,{...e,value:e.value??[]});case"switch":return Ge.jsx(Act,{...r8(e,"setField"),checked:!!e.value,inputProps:{id:e.id,name:e.id}});case"textinput":return Ge.jsx(DS,{...r8(e,"setField"),value:e.value??""});case"numberinput":return Ge.jsx(DS,{...r8(e,"setField"),type:"number",value:((t=e.value)==null?void 0:t.toString())??"0"});default:return Ge.jsx(Ge.Fragment,{})}};function Zct(){const{chatSettingsValue:e,chatSettingsInputs:t,chatSettingsDefaultValue:r}=Vg(),{updateChatSettings:n}=nd(),[i,v]=tc(Vz),l=dU({initialValues:e,enableReinitialize:!0,onSubmit:async()=>{}}),h=()=>v(!1),a=()=>{const g=mut(l.values,o=>o!==""?o:null);n(g),h()},u=()=>{l.setValues(r)};return Ge.jsxs(aI,{open:i,onClose:h,id:"chat-settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[Ge.jsx(sI,{id:"alert-dialog-title",children:Ge.jsx(io,{path:"components.organisms.chat.settings.settingsPanel"})}),Ge.jsx(oI,{children:Ge.jsx(ni,{sx:{display:"flex",flexDirection:"column",minWidth:"20vw",maxHeight:"70vh",gap:"15px"},children:t.map(g=>Ge.jsx(Qct,{element:{...g,value:l.values[g.id],onChange:l.handleChange,setField:l.setFieldValue}},g.id))})}),Ge.jsxs(iI,{sx:{p:2},children:[Ge.jsx(tC,{onClick:u,color:"primary",variant:"outlined",children:Ge.jsx(io,{path:"components.organisms.chat.settings.reset"})}),Ge.jsx("div",{style:{flex:"1 0 0"}}),Ge.jsx(UU,{onClick:h,children:Ge.jsx(io,{path:"components.organisms.chat.settings.cancel"})}),Ge.jsx(tC,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:Ge.jsx(io,{path:"components.organisms.chat.settings.confirm"})})]})]})}const iC=Ms({key:"Attachments",default:[]}),kpe=({element:e})=>{const t=nc();return e.url?Ge.jsxs(ni,{className:`${e.display}-audio`,children:[Ge.jsx(ni,{sx:{fontSize:"14px",lineHeight:1.72,color:t.palette.mode==="dark"?ro[300]:ro[700],marginBottom:t.spacing(.5)},children:e.name}),Ge.jsx("audio",{controls:!0,src:e.url})]}):null};var Jct={grad:.9,turn:360,rad:360/(2*Math.PI)},w1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},sf=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Z0=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},Fpe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Bpe=function(e){return{r:Z0(e.r,0,255),g:Z0(e.g,0,255),b:Z0(e.b,0,255),a:Z0(e.a)}},e$=function(e){return{r:sf(e.r),g:sf(e.g),b:sf(e.b),a:sf(e.a,3)}},qct=/^#([0-9a-f]{3,8})$/i,n8=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zpe=function(e){var t=e.r,r=e.g,n=e.b,i=e.a,v=Math.max(t,r,n),l=v-Math.min(t,r,n),h=l?v===t?(r-n)/l:v===r?2+(n-t)/l:4+(t-r)/l:0;return{h:60*(h<0?h+6:h),s:v?l/v*100:0,v:v/255*100,a:i}},Upe=function(e){var t=e.h,r=e.s,n=e.v,i=e.a;t=t/360*6,r/=100,n/=100;var v=Math.floor(t),l=n*(1-r),h=n*(1-(t-v)*r),a=n*(1-(1-t+v)*r),u=v%6;return{r:255*[n,h,l,l,a,n][u],g:255*[a,n,n,h,l,l][u],b:255*[l,l,a,n,n,h][u],a:i}},$pe=function(e){return{h:Fpe(e.h),s:Z0(e.s,0,100),l:Z0(e.l,0,100),a:Z0(e.a)}},Hpe=function(e){return{h:sf(e.h),s:sf(e.s),l:sf(e.l),a:sf(e.a,3)}},Gpe=function(e){return Upe((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},oC=function(e){return{h:(t=zpe(e)).h,s:(i=(200-(r=t.s))*(n=t.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,r,n,i},eft=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,tft=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rft=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nft=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,t$={string:[[function(e){var t=qct.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?sf(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?sf(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=rft.exec(e)||nft.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Bpe({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=eft.exec(e)||tft.exec(e);if(!t)return null;var r,n,i=$pe({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(Jct[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Gpe(i)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,i=e.a,v=i===void 0?1:i;return w1(t)&&w1(r)&&w1(n)?Bpe({r:Number(t),g:Number(r),b:Number(n),a:Number(v)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,i=e.a,v=i===void 0?1:i;if(!w1(t)||!w1(r)||!w1(n))return null;var l=$pe({h:Number(t),s:Number(r),l:Number(n),a:Number(v)});return Gpe(l)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,i=e.a,v=i===void 0?1:i;if(!w1(t)||!w1(r)||!w1(n))return null;var l=function(h){return{h:Fpe(h.h),s:Z0(h.s,0,100),v:Z0(h.v,0,100),a:Z0(h.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(v)});return Upe(l)},"hsv"]]},Vpe=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},aft=function(e){return typeof e=="string"?Vpe(e.trim(),t$.string):typeof e=="object"&&e!==null?Vpe(e,t$.object):[null,void 0]},r$=function(e,t){var r=oC(e);return{h:r.h,s:Z0(r.s+100*t,0,100),l:r.l,a:r.a}},n$=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ype=function(e,t){var r=oC(e);return{h:r.h,s:r.s,l:Z0(r.l+100*t,0,100),a:r.a}},a$=function(){function e(t){this.parsed=aft(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return sf(n$(this.rgba),2)},e.prototype.isDark=function(){return n$(this.rgba)<.5},e.prototype.isLight=function(){return n$(this.rgba)>=.5},e.prototype.toHex=function(){return t=e$(this.rgba),r=t.r,n=t.g,i=t.b,l=(v=t.a)<1?n8(sf(255*v)):"","#"+n8(r)+n8(n)+n8(i)+l;var t,r,n,i,v,l},e.prototype.toRgb=function(){return e$(this.rgba)},e.prototype.toRgbString=function(){return t=e$(this.rgba),r=t.r,n=t.g,i=t.b,(v=t.a)<1?"rgba("+r+", "+n+", "+i+", "+v+")":"rgb("+r+", "+n+", "+i+")";var t,r,n,i,v},e.prototype.toHsl=function(){return Hpe(oC(this.rgba))},e.prototype.toHslString=function(){return t=Hpe(oC(this.rgba)),r=t.h,n=t.s,i=t.l,(v=t.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+v+")":"hsl("+r+", "+n+"%, "+i+"%)";var t,r,n,i,v},e.prototype.toHsv=function(){return t=zpe(this.rgba),{h:sf(t.h),s:sf(t.s),v:sf(t.v),a:sf(t.a,3)};var t},e.prototype.invert=function(){return J0({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),J0(r$(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),J0(r$(this.rgba,-t))},e.prototype.grayscale=function(){return J0(r$(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),J0(Ype(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),J0(Ype(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?J0({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):sf(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=oC(this.rgba);return typeof t=="number"?J0({h:t,s:r.s,l:r.l,a:r.a}):sf(r.h)},e.prototype.isEqual=function(t){return this.toHex()===J0(t).toHex()},e}(),J0=function(e){return e instanceof a$?e:new a$(e)},Wpe=[],ift=function(e){e.forEach(function(t){Wpe.indexOf(t)<0&&(t(a$,t$),Wpe.push(t))})};function oft(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var v={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,a,u=n[this.toHex()];if(u)return u;if(l!=null&&l.closest){var g=this.toRgb(),o=1/0,_="black";if(!v.length)for(var x in r)v[x]=new e(r[x]).toRgb();for(var p in r){var b=(h=g,a=v[p],Math.pow(h.r-a.r,2)+Math.pow(h.g-a.g,2)+Math.pow(h.b-a.b,2));b<o&&(o=b,_=p)}return _}},t.string.push([function(l){var h=l.toLowerCase(),a=h==="transparent"?"#0000":r[h];return a?new e(a).toRgb():null},"name"])}var sft=1/0,lft="[object Symbol]",uft=typeof ol=="object"&&ol&&ol.Object===Object&&ol,cft=typeof self=="object"&&self&&self.Object===Object&&self,fft=uft||cft||Function("return this")(),dft=Object.prototype,hft=0,pft=dft.toString,jpe=fft.Symbol,Kpe=jpe?jpe.prototype:void 0,Xpe=Kpe?Kpe.toString:void 0;function vft(e){if(typeof e=="string")return e;if(mft(e))return Xpe?Xpe.call(e):"";var t=e+"";return t=="0"&&1/e==-sft?"-0":t}function gft(e){return!!e&&typeof e=="object"}function mft(e){return typeof e=="symbol"||gft(e)&&pft.call(e)==lft}function yft(e){return e==null?"":vft(e)}function bft(e){var t=++hft;return yft(e)+t}var _ft=bft;const xft=Pc(_ft);var Eft={"3d":fa.createElement("path",{d:"M18 14.625V3.375L9 0 0 3.375v11.25L9 18l9-3.375zM9 2.136l5.918 2.22-5.98 2.242-5.919-2.22L9 2.137zM2 13.239V5.065l6.438 2.414v8.174L2 13.24zM9.438 15.7L16 13.239V5.018l-6.563 2.46V15.7z",transform:"translate(15 10)",fillRule:"evenodd"}),acrobat:fa.createElement("path",{d:"M10.15 1.095C9.938.33 9.42-.051 8.984.005c-.528.068-1.09.382-1.314.876-.63 1.416.685 5.582.887 6.279-1.28 3.863-5.66 11.5-7.806 12.017-.045-.505.225-1.965 3.055-3.785.146-.157.315-.348.393-.472-2.392 1.168-5.492 3.044-3.628 4.448.102.079.259.146.439.213 1.426.528 3.425-1.201 5.435-5.121 2.213-.73 3.999-1.28 6.526-1.662 2.762 1.875 4.616 2.257 5.874 1.774.348-.135.898-.573 1.055-1.145-1.022 1.258-3.414.382-5.323-.82 1.763-.191 3.582-.303 4.369-.056 1 .314.965.808.954.876.079-.27.191-.708-.022-1.056-.842-1.37-4.706-.573-6.11-.427-2.212-1.336-3.74-3.717-4.358-5.436.573-2.212 1.19-3.818.742-5.413zm-.954 4.638C8.826 4.42 8.309 1.5 9.14.556c1.628.932.618 3.144.056 5.177zm3.044 6.514c-2.134.393-3.583.944-5.66 1.764.617-1.202 1.785-4.268 2.346-6.29.787 1.573 1.741 3.111 3.314 4.526z",transform:"translate(14 9)",fillRule:"evenodd"}),android:fa.createElement("path",{d:"M17.6,9.48l1.84-3.18c0.16-0.31,0.04-0.69-0.26-0.85c-0.29-0.15-0.65-0.06-0.83,0.22l-1.88,3.24 c-2.86-1.21-6.08-1.21-8.94,0L5.65,5.67c-0.19-0.29-0.58-0.38-0.87-0.2C4.5,5.65,4.41,6.01,4.56,6.3L6.4,9.48 C3.3,11.25,1.28,14.44,1,18h22C22.72,14.44,20.7,11.25,17.6,9.48z M7,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25S8.25,13.31,8.25,14C8.25,14.69,7.69,15.25,7,15.25z M17,15.25c-0.69,0-1.25-0.56-1.25-1.25 c0-0.69,0.56-1.25,1.25-1.25s1.25,0.56,1.25,1.25C18.25,14.69,17.69,15.25,17,15.25z",transform:"translate(12 8)"}),audio:fa.createElement("path",{d:"M.25 4.75v4.5h3L7 13V1L3.25 4.75h-3zM10.375 7A3.375 3.375 0 0 0 8.5 3.977v6.037A3.355 3.355 0 0 0 10.375 7zM8.5.421v1.545A5.254 5.254 0 0 1 12.25 7a5.254 5.254 0 0 1-3.75 5.032v1.545A6.747 6.747 0 0 0 13.75 7 6.747 6.747 0 0 0 8.5.421z",transform:"translate(17 12)",fillRule:"evenodd"}),binary:fa.createElement("path",{d:"M2.338 6.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504C1.274.928.538 2 .538 3.608c0 1.56.576 2.504 1.8 2.504zM1.61 3.408c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zM2.418 5.2c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568zm7.03.8l.088-.944H8.36V.896L7.272.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zm5.199 0l.088-.944h-1.176V.896L12.47.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zM4.25 14l.088-.944H3.162v-4.16l-1.088.088v.592L.89 9.688l.024.824h1.16v2.544H.754V14zm5.198 0l.088-.944H8.36v-4.16l-1.088.088v.592l-1.184.112.024.824h1.16v2.544h-1.32V14zm3.287.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504-1.192 0-1.928 1.072-1.928 2.68 0 1.56.576 2.504 1.8 2.504zm-.728-2.704c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zm.808 1.792c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568z",transform:"translate(16 11)",fillRule:"evenodd"}),code:fa.createElement("path",{d:"M4.078 13.67c-1.875-.527-2.812-1.738-2.812-3.634V9.49C1.266 8.437.844 7.911 0 7.911V6.138c.844 0 1.266-.529 1.266-1.586v-.64c.015-.938.257-1.696.726-2.274C2.466 1.06 3.162.64 4.078.38l.492 1.375c-.656.25-.997.95-1.023 2.102v.695c0 1.167-.482 1.99-1.445 2.469.963.479 1.445 1.304 1.445 2.476v.688c.026 1.15.367 1.851 1.023 2.101l-.492 1.383zm7.844 0c1.875-.527 2.812-1.738 2.812-3.634V9.49c0-1.052.422-1.578 1.266-1.578V6.138c-.844 0-1.266-.529-1.266-1.586v-.64c-.015-.938-.257-1.696-.726-2.274-.474-.578-1.17-.998-2.086-1.258l-.492 1.375c.656.25.997.95 1.023 2.102v.695c0 1.167.482 1.99 1.445 2.469-.963.479-1.445 1.304-1.445 2.476v.688c-.026 1.15-.367 1.851-1.023 2.101l.492 1.383z",transform:"translate(16 13)",fillRule:"evenodd"}),code2:fa.createElement("path",{d:"M7.4 10.6L2.8 6l4.6-4.6L6 0 0 6l6 6 1.4-1.4zm5.2 0L17.2 6l-4.6-4.6L14 0l6 6-6 6-1.4-1.4z",transform:"translate(14 14)",fillRule:"evenodd"}),compressed:fa.createElement("path",{d:"M.25 0A.25.25 0 0 0 0 .25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 1.75V.25A.25.25 0 0 0 1.75 0H.25zM1 17a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H1zm0 4v3h2v-3H1zM2 2.25A.25.25 0 0 1 2.25 2h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 3.75v-1.5zM.25 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 5.75v-1.5A.25.25 0 0 0 1.75 4H.25zM2 6.25A.25.25 0 0 1 2.25 6h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 7.75v-1.5zM.25 8a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 9.75v-1.5A.25.25 0 0 0 1.75 8H.25zM2 10.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5zM.25 12a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25H.25zM2 14.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5z",transform:"translate(15 1)",fillRule:"evenodd"}),document:fa.createElement("path",{d:"M12 4H0v2h12V4zM0 10h18V8H0v2zM0 0v2h18V0H0z",transform:"translate(15 15)",fillRule:"evenodd"}),drive:fa.createElement("path",{d:"M2.199.289A.5.5 0 0 1 2.652 0h8.696a.5.5 0 0 1 .453.289l1.867 4a.5.5 0 0 1-.453.711H.785a.5.5 0 0 1-.453-.711l1.867-4zM13 6H1a.752.752 0 0 0-.75.75v4.5c0 .412.338.75.75.75h12c.412 0 .75-.338.75-.75v-4.5A.752.752 0 0 0 13 6zm-9.75 4.5c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5z",transform:"translate(17 13)",fillRule:"evenodd"}),font:fa.createElement("path",{d:"M3.722 8.702l-.686 1.89c-.053.14-.094.28-.123.421-.03.135-.044.252-.044.352 0 .304.097.527.29.668.2.14.501.21.905.21h.414V13H.083v-.756h.343c.176 0 .325-.018.448-.053a.81.81 0 0 0 .334-.22c.1-.105.193-.249.281-.43.094-.182.197-.416.308-.704L5.787.15h1.406l4.07 11.136c.07.187.14.343.21.466.077.123.165.222.264.298.1.07.214.12.343.15.129.03.281.044.457.044h.237V13H7.826v-.756h.413c.72 0 1.081-.287 1.081-.862 0-.1-.014-.202-.044-.307a3.274 3.274 0 0 0-.105-.36l-.72-2.013H3.72zM7.009 4.65c-.188-.533-.36-1.031-.519-1.494a15.92 15.92 0 0 1-.378-1.354 7.12 7.12 0 0 1-.15.633 16.95 16.95 0 0 1-.395 1.283c-.082.229-.175.484-.28.765L4.063 7.796h4.061L7.009 4.65zm8.411 5.74c0 .562.117.984.351 1.265.24.275.61.413 1.108.413.363 0 .691-.059.984-.176.3-.117.551-.284.756-.5.211-.218.372-.481.483-.792.112-.31.168-.656.168-1.037V8.104l-1.152.053c-.51.023-.937.088-1.283.193-.34.1-.615.243-.826.43a1.546 1.546 0 0 0-.457.678c-.088.27-.132.58-.132.931zm2.18-6.32c-.346 0-.627.05-.844.15a1.182 1.182 0 0 0-.501.404 1.594 1.594 0 0 0-.237.624c-.041.24-.062.5-.062.782-.498 0-.879-.085-1.143-.255-.257-.17-.386-.463-.386-.879 0-.31.085-.574.255-.79.17-.218.401-.393.694-.528.299-.14.644-.243 1.037-.308a7.76 7.76 0 0 1 1.257-.097c.55 0 1.031.056 1.441.167.41.106.753.282 1.029.528.275.246.48.568.615.967.14.392.21.876.21 1.45v4.667c0 .252.021.46.062.624a.928.928 0 0 0 .194.395c.088.1.202.17.343.211.146.041.319.062.518.062h.053V13H19.7l-.281-1.547h-.15c-.187.252-.369.483-.544.694-.176.211-.37.393-.58.545-.211.152-.452.27-.721.352a3.053 3.053 0 0 1-.958.131c-.399 0-.77-.058-1.116-.175a2.369 2.369 0 0 1-.888-.519 2.516 2.516 0 0 1-.58-.896c-.14-.364-.211-.791-.211-1.284 0-.955.34-1.664 1.02-2.127.68-.462 1.707-.714 3.084-.755l1.495-.053V6.285a6.93 6.93 0 0 0-.053-.888 1.778 1.778 0 0 0-.229-.703 1.14 1.14 0 0 0-.51-.457c-.216-.111-.51-.167-.878-.167z",transform:"translate(13 12)",fillRule:"evenodd"}),image:fa.createElement("path",{d:"M13 0L9.25 5l2.85 3.8-1.6 1.2C8.81 7.75 6 4 6 4l-6 8h22L13 0z",transform:"translate(13 14)",fillRule:"evenodd"}),presentation:fa.createElement("path",{d:"M2 4H0v10c0 1.1.9 2 2 2h14v-2H2V4zm16-4H6C4.9 0 4 .9 4 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 10H6V2h12v8z",transform:"matrix(-1 0 0 1 34 12)",fillRule:"evenodd"}),settings:fa.createElement("path",{d:"M13.572 8.735c.03-.24.053-.48.053-.735s-.023-.495-.053-.735l1.583-1.237a.378.378 0 0 0 .09-.48l-1.5-2.595a.377.377 0 0 0-.457-.165l-1.868.75a5.48 5.48 0 0 0-1.268-.735L9.868.815A.366.366 0 0 0 9.5.5h-3a.366.366 0 0 0-.367.315l-.285 1.988a5.762 5.762 0 0 0-1.268.735l-1.868-.75a.366.366 0 0 0-.457.165l-1.5 2.595a.37.37 0 0 0 .09.48l1.583 1.237c-.03.24-.053.488-.053.735 0 .248.022.495.053.735L.845 9.973a.378.378 0 0 0-.09.48l1.5 2.595c.09.165.292.225.458.165l1.867-.75c.39.3.81.547 1.268.735l.285 1.987c.022.18.18.315.367.315h3a.366.366 0 0 0 .367-.315l.285-1.988a5.762 5.762 0 0 0 1.268-.734l1.867.75c.173.067.368 0 .458-.165l1.5-2.595a.378.378 0 0 0-.09-.48l-1.582-1.238zM8 10.625A2.628 2.628 0 0 1 5.375 8 2.628 2.628 0 0 1 8 5.375 2.628 2.628 0 0 1 10.625 8 2.628 2.628 0 0 1 8 10.625z",transform:"translate(16 11)",fillRule:"evenodd"}),spreadsheet:fa.createElement("path",{d:"M0 8h6V5H0v3zm0 5h6v-3H0v3zM0 3h6V0H0v3zm8 5h12V5H8v3zm0 5h12v-3H8v3zM8 0v3h12V0H8z",transform:"translate(14 14)",fillRule:"evenodd"}),vector:fa.createElement("path",{d:"M14.5 2V1a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v1H3.937a2 2 0 1 0 0 1h3.936A9 9 0 0 0 3 11v1h2v-1a7.003 7.003 0 0 1 4.594-6.576A1 1 0 0 0 10.5 5h3a1 1 0 0 0 .906-.576A7.003 7.003 0 0 1 19 11v1h2v-1a9 9 0 0 0-4.873-8h3.936a2 2 0 1 0 0-1H14.5zm-1-1h-3v3h3V1zM2 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm19 1a1 1 0 1 0 2 0 1 1 0 0 0-2 0z",transform:"translate(12 14)",fillRule:"evenodd"}),video:fa.createElement("path",{d:"M10.75 3.875V1.25A.752.752 0 0 0 10 .5H1a.752.752 0 0 0-.75.75v7.5c0 .412.338.75.75.75h9c.412 0 .75-.338.75-.75V6.125l3 3V.875l-3 3z",transform:"translate(17 14)"})};ift([oft]);var Sft={color:us.string,extension:us.string,fold:us.bool,foldColor:us.string,glyphColor:us.string,gradientColor:us.string,gradientOpacity:us.number,labelColor:us.string,labelTextColor:us.string,labelUppercase:us.bool,radius:us.number,type:us.oneOf(["3d","acrobat","android","audio","binary","code","code2","compressed","document","drive","font","image","presentation","settings","spreadsheet","vector","video"])},a8={WIDTH:40,HEIGHT:48},cl={WIDTH:a8.WIDTH,HEIGHT:a8.HEIGHT,X_OFFSET:0},A1={HEIGHT:12},Qpe=14,Zpe=function(t){var r=t.color,n=r===void 0?"whitesmoke":r,i=t.extension,v=t.fold,l=v===void 0?!0:v,h=t.foldColor,a=t.glyphColor,u=t.gradientColor,g=u===void 0?"white":u,o=t.gradientOpacity,_=o===void 0?.25:o,x=t.labelColor,p=t.labelTextColor,b=p===void 0?"white":p,c=t.labelUppercase,s=c===void 0?!1:c,d=t.radius,f=d===void 0?4:d,m=t.type,E=xft();return fa.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+a8.WIDTH+" "+a8.HEIGHT,width:"100%",style:{maxWidth:"100%"}},fa.createElement("defs",null,fa.createElement("clipPath",{id:"pageRadius"+E},fa.createElement("rect",{x:cl.X_OFFSET,y:"0",rx:f,ry:f,width:cl.WIDTH,height:cl.HEIGHT})),fa.createElement("clipPath",{id:"foldCrop"+E},fa.createElement("rect",{width:cl.WIDTH,height:A1.HEIGHT,transform:"rotate(-45 0 "+A1.HEIGHT+")"})),fa.createElement("linearGradient",{x1:"100%",y1:"0%",y2:"100%",id:"pageGradient"+E},fa.createElement("stop",{stopColor:g,stopOpacity:_,offset:"0%"}),fa.createElement("stop",{stopColor:g,stopOpacity:"0",offset:"66.67%"}))),fa.createElement("g",{id:"file",clipPath:"url(#pageRadius"+E+")"},l?fa.createElement(fa.Fragment,null,fa.createElement("path",{d:"M"+cl.X_OFFSET+" 0 h "+(cl.WIDTH-A1.HEIGHT)+" L "+(cl.WIDTH+cl.X_OFFSET)+" "+A1.HEIGHT+" v "+(cl.HEIGHT-A1.HEIGHT)+" H "+cl.X_OFFSET+" Z",fill:n}),fa.createElement("path",{d:"M"+cl.X_OFFSET+" 0 h "+(cl.WIDTH-A1.HEIGHT)+" L "+(cl.WIDTH+cl.X_OFFSET)+" "+A1.HEIGHT+" v "+(cl.HEIGHT-A1.HEIGHT)+" H "+cl.X_OFFSET+" Z",fill:"url(#pageGradient"+E+")"})):fa.createElement(fa.Fragment,null,fa.createElement("rect",{x:cl.X_OFFSET,y:"0",width:cl.WIDTH,height:cl.HEIGHT,fill:n}),fa.createElement("rect",{x:cl.X_OFFSET,y:"0",width:cl.WIDTH,height:cl.HEIGHT,fill:"url(#pageGradient"+E+")"}))),l&&fa.createElement("g",{transform:"translate(28 "+A1.HEIGHT+") rotate(-90)"},fa.createElement("rect",{width:cl.WIDTH,height:cl.HEIGHT,fill:h||J0(n).darken(.1).toHex(),rx:f,ry:f,clipPath:"url(#foldCrop"+E+")"})),i&&fa.createElement(fa.Fragment,null,fa.createElement("g",{id:"label"+E},fa.createElement("rect",{fill:x||J0(n).darken(.3).toHex(),x:cl.X_OFFSET,y:cl.HEIGHT-Qpe,width:cl.WIDTH,height:Qpe,clipPath:"url(#pageRadius"+E+")"})),fa.createElement("g",{id:"labelText"+E,transform:"translate("+cl.X_OFFSET+" 34)"},fa.createElement("text",{x:cl.WIDTH/2,y:"10",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"9",fill:b,textAnchor:"middle",style:{fontWeight:"bold",textAlign:"center",pointerEvents:"none",textTransform:s?"uppercase":"none",userSelect:"none"}},i))),m&&fa.createElement("g",{transform:"translate(-4 "+(i?0:6)+")",fill:a||J0(n).darken(.15).toHex()},Eft[m]))};Zpe.propTypes=Sft;var Tft={"3dm":{labelColor:"#8D1A11",type:"3d"},"3ds":{labelColor:"#5FB9AD",type:"3d"},"3g2":{type:"video"},"3gp":{type:"video"},"7zip":{type:"compressed"},aab:{type:"android",labelColor:"#3DDC84"},aac:{type:"audio"},aep:{type:"video"},ai:{color:"#423325",gradientOpacity:0,labelColor:"#423325",labelTextColor:"#FF7F18",labelUppercase:!0,foldColor:"#FF7F18",radius:2},aif:{type:"audio"},aiff:{type:"audio"},apk:{type:"android",labelColor:"#3DDC84"},apkm:{type:"android",labelColor:"#3DDC84"},apks:{type:"android",labelColor:"#3DDC84"},asf:{type:"video"},asp:{type:"code"},aspx:{type:"code"},avi:{type:"video"},bin:{type:"binary"},bmp:{type:"image"},c:{type:"code"},cpp:{type:"code"},cs:{type:"code"},css:{type:"code"},csv:{type:"spreadsheet"},cue:{type:"document"},dll:{type:"settings"},dmg:{type:"drive"},doc:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},docx:{color:"#2C5898",foldColor:"#254A80",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#2C5898",labelUppercase:!0,type:"document"},dwg:{type:"vector"},dxf:{type:"vector"},eot:{type:"font"},eps:{type:"vector"},exe:{type:"settings"},flac:{type:"audio"},flv:{type:"video"},fnt:{type:"font"},fodp:{type:"presentation"},fods:{type:"spreadsheet"},fodt:{type:"document"},fon:{type:"font"},gif:{type:"image"},gz:{type:"compressed"},htm:{type:"code"},html:{type:"code"},indd:{color:"#4B2B36",gradientOpacity:0,labelColor:"#4B2B36",labelTextColor:"#FF408C",labelUppercase:!0,foldColor:"#FF408C",radius:2},ini:{type:"settings"},java:{type:"code"},jpeg:{type:"image"},jpg:{type:"image"},js:{labelColor:"#F7DF1E",type:"code"},json:{type:"code"},jsx:{labelColor:"#00D8FF",type:"code"},m4a:{type:"audio"},m4v:{type:"video"},max:{labelColor:"#5FB9AD",type:"3d"},md:{type:"document"},mid:{type:"audio"},mkv:{type:"video"},mov:{type:"video"},mp3:{type:"audio"},mp4:{type:"video"},mpeg:{type:"video"},mpg:{type:"video"},obj:{type:"3d"},odp:{type:"presentation"},ods:{type:"spreadsheet"},odt:{type:"document"},ogg:{type:"audio"},ogv:{type:"video"},otf:{type:"font"},pdf:{labelColor:"#D93831",type:"acrobat"},php:{labelColor:"#8892BE",type:"code"},pkg:{type:"3d"},plist:{type:"settings"},png:{type:"image"},ppt:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pptx:{color:"#D14423",foldColor:"#AB381D",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#D14423",labelUppercase:!0,type:"presentation"},pr:{type:"video"},ps:{type:"vector"},psd:{color:"#34364E",gradientOpacity:0,labelColor:"#34364E",labelTextColor:"#31C5F0",labelUppercase:!0,foldColor:"#31C5F0",radius:2},py:{labelColor:"#FFDE57",type:"code"},rar:{type:"compressed"},rb:{labelColor:"#BB271A",type:"code"},rm:{type:"video"},rtf:{type:"document"},scss:{labelColor:"#C16A98",type:"code"},sitx:{type:"compressed"},skp:{type:"3d"},svg:{type:"vector"},swf:{type:"video"},sys:{type:"settings"},tar:{type:"compressed"},tex:{type:"document"},tif:{type:"image"},tiff:{type:"image"},ts:{labelColor:"#3478C7",type:"code"},ttf:{type:"font"},txt:{type:"document"},wav:{type:"audio"},webm:{type:"video"},wmv:{type:"video"},woff:{type:"font"},wpd:{type:"document"},wps:{type:"document"},xapk:{type:"android",labelColor:"#3DDC84"},xlr:{type:"spreadsheet"},xls:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},xlsx:{color:"#1A754C",foldColor:"#16613F",glyphColor:"rgba(255,255,255,0.4)",labelColor:"#1A754C",labelUppercase:!0,type:"spreadsheet"},yml:{type:"code"},zip:{type:"compressed"},zipx:{type:"compressed"}};const Jpe=({name:e,mime:t,children:r})=>{const n=t?t.split("/").pop():"txt";return Ge.jsxs(ni,{position:"relative",sx:i=>({height:50,[i.breakpoints.down("sm")]:{height:36}}),children:[r,Ge.jsxs(to,{sx:i=>({height:"100%",flexDirection:"row",alignItems:"center",gap:1.2,borderRadius:1,px:1.2,border:v=>`1px solid ${v.palette.primary.main}`,color:v=>v.palette.mode==="light"?v.palette.primary.main:v.palette.text.primary,background:v=>v.palette.mode==="light"?v.palette.primary.light:v.palette.primary.dark,width:160,[i.breakpoints.down("sm")]:{width:"fit-content",maxWidth:120}}),children:[Ge.jsx(ni,{sx:i=>({width:"2rem",[i.breakpoints.down("sm")]:{width:"1.25rem"}}),children:Ge.jsx(Zpe,{...Tft[n],extension:n})}),Ge.jsx(Ko,{sx:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:500,fontSize:"0.8rem",width:"70%"},children:e})]})]})},qpe=({element:e})=>e.url?Ge.jsx($E,{className:`${e.display}-file`,download:e.name,href:e.url,target:"_blank",sx:{textDecoration:"none"},children:Ge.jsx(Jpe,{name:e.name,mime:e.mime})}):null,wft=({children:e})=>Ge.jsx(ni,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?ro[200]:ro[900],borderRadius:"4px",display:"flex"},children:e}),Aft=(e,t)=>{const r=document.createElement("a");r.href=t,r.target="_blank",r.download=e,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},e0e=({element:e})=>{const[t,r]=bt.useState(!0);return e.url?Ge.jsxs(wft,{children:[t&&Ge.jsx(By,{variant:"rectangular",width:"100%",height:200}),Ge.jsx("img",{className:`${e.display}-image`,src:e.url,onLoad:()=>r(!1),onClick:()=>{if(e.display==="inline"){const n=`${e.name}.png`;Aft(n,e.url)}},style:{objectFit:"cover",maxWidth:"100%",margin:"auto",height:"auto",display:"block",cursor:e.display==="inline"?"pointer":"default"},alt:e.name,loading:"lazy"})]}):null},t0e=({element:e})=>{if(!e.url)return null;const t=e.page?`${e.url}#page=${e.page}`:e.url;return Ge.jsx("iframe",{className:`${e.display}-pdf`,src:t,style:{border:"none"},width:"100%",height:"100%"})},Cft="modulepreload",Rft=function(e){return"/"+e},r0e={},Mft=function(t,r,n){return t()};var n0e={exports:{}},a0e={};/**
341
341
  * @license React
342
342
  * use-sync-external-store-shim.production.min.js
343
343
  *
@@ -699,7 +699,7 @@ ${g}`)}return{preparedContent:l,inlinedElements:h,refElements:a}},C4t=({children
699
699
 
700
700
  attempted value: ${l}
701
701
  `+(h!==l?`result of cast: ${h}`:""))}return v}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,v)=>v.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:v,originalValue:l=t,strict:h=this.spec.strict}=r,a=t;h||(a=this._cast(a,Object.assign({assert:!1},r)));let u=[];for(let g of Object.values(this.internalTests))g&&u.push(g);this.runTests({path:v,value:a,originalValue:l,options:r,tests:u},n,g=>{if(g.length)return i(g,a);this.runTests({path:v,value:a,originalValue:l,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:v,value:l,originalValue:h,path:a,options:u}=t,g=b=>{i||(i=!0,r(b,l))},o=b=>{i||(i=!0,n(b,l))},_=v.length,x=[];if(!_)return o([]);let p={value:l,originalValue:h,path:a,options:u,schema:this};for(let b=0;b<v.length;b++){const c=v[b];c(p,g,function(d){d&&(x=x.concat(d)),--_<=0&&o(x)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:v,options:l}){const h=t??r;if(h==null)throw TypeError("Must include `key` or `index` for nested validations");const a=typeof h=="number";let u=n[h];const g=Object.assign({},l,{strict:!0,parent:n,value:u,originalValue:v[h],key:void 0,[a?"index":"key"]:h,path:a||h.includes(".")?`${i||""}[${u?h:`"${h}"`}]`:(i?`${i}.`:"")+t});return(o,_,x)=>this.resolve(g)._validate(u,g,_,x)}validate(t,r){let n=this.resolve(Object.assign({},r,{value:t}));return new Promise((i,v)=>n._validate(t,r,(l,h)=>{Kp.isError(l)&&(l.value=h),v(l)},(l,h)=>{l.length?v(new Kp(l,h)):i(h)}))}validateSync(t,r){let n=this.resolve(Object.assign({},r,{value:t})),i;return n._validate(t,Object.assign({},r,{sync:!0}),(v,l)=>{throw Kp.isError(v)&&(v.value=l),v},(v,l)=>{if(v.length)throw new Kp(v,t);i=l}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Kp.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Kp.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):uT(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=lT({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=lT({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=z1.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=z1.notNull){return this.nullability(!1,t)}required(t=z1.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=z1.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=lT(r),v=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(l=>!(l.OPTIONS.name===r.name&&(v||l.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=LSe(t).map(v=>new B_(v));return i.forEach(v=>{v.isSibling&&n.deps.push(v.key)}),n.conditions.push(typeof r=="function"?new TD(i,r):TD.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=lT({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=z1.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=lT({message:r,name:"oneOf",skipAbsent:!0,test(i){let v=this.schema._whitelist,l=v.resolveAll(this.resolve);return l.includes(i)?!0:this.createError({params:{values:Array.from(v).join(", "),resolved:l}})}}),n}notOneOf(t,r=z1.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=lT({message:r,name:"notOneOf",test(i){let v=this.schema._blacklist,l=v.resolveAll(this.resolve);return l.includes(i)?this.createError({params:{values:Array.from(v).join(", "),resolved:l}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:v,nullable:l}=r.spec;return{meta:i,label:n,optional:v,nullable:l,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,u,g)=>g.findIndex(o=>o.name===a.name)===u)}}}_m.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])_m.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:v,schema:l}=GOt(this,t,r,n.context);return l[e](i&&i[v],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])_m.prototype[e]=_m.prototype.oneOf;for(const e of["not","nope"])_m.prototype[e]=_m.prototype.notOneOf;let VOt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,YOt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,WOt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,jOt=e=>z_(e)||e===e.trim(),KOt={}.toString();function CD(){return new PSe}class PSe extends _m{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===KOt?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||z1.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=dg.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=dg.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=dg.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,v;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:v}=r:i=r),this.test({name:v||"matches",message:i||dg.matches,params:{regex:t},skipAbsent:!0,test:l=>l===""&&n||l.search(t)!==-1})}email(t=dg.email){return this.matches(VOt,{name:"email",message:t,excludeEmptyString:!0})}url(t=dg.url){return this.matches(YOt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=dg.uuid){return this.matches(WOt,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=dg.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:jOt})}lowercase(t=dg.lowercase){return this.transform(r=>z_(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>z_(r)||r===r.toLowerCase()})}uppercase(t=dg.uppercase){return this.transform(r=>z_(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>z_(r)||r===r.toUpperCase()})}}CD.prototype=PSe.prototype;var XOt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function QOt(e){var t=[1,4,5,6,7,10,11],r=0,n,i;if(i=XOt.exec(e)){for(var v=0,l;l=t[v];++v)i[l]=+i[l]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?n=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(r=i[10]*60+i[11],i[9]==="+"&&(r=0-r)),n=Date.UTC(i[1],i[2],i[3],i[4],i[5]+r,i[6],i[7]))}else n=Date.parse?Date.parse(e):NaN;return n}let ZOt=new Date(""),JOt=e=>Object.prototype.toString.call(e)==="[object Date]";class RD extends _m{constructor(){super({type:"date",check(t){return JOt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=QOt(t),isNaN(t)?RD.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(B_.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=EK.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=EK.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}RD.INVALID_DATE=ZOt,RD.prototype;function qOt(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([l,h])=>`${l}-${h}`));function v(l,h){let a=F_.split(l)[0];n.add(a),i.has(`${h}-${a}`)||r.push([h,a])}for(const l of Object.keys(e)){let h=e[l];n.add(l),B_.isRef(h)&&h.isSibling?v(h.path,l):TK(h)&&"deps"in h&&h.deps.forEach(a=>v(a,l))}return NOt.array(Array.from(n),r).reverse()}function kSe(e,t){let r=1/0;return e.some((n,i)=>{var v;if((v=t.path)!=null&&v.includes(n))return r=i,!0}),r}function FSe(e){return(t,r)=>kSe(e,t)-kSe(e,r)}const e8t=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function MD(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=MD(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=MD(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(MD)}):"optional"in e?e.optional():e}const t8t=(e,t)=>{const r=[...F_.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=F_.getter(F_.join(r),!0)(e);return!!(i&&n in i)};let BSe=e=>Object.prototype.toString.call(e)==="[object Object]";function r8t(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const n8t=FSe([]);function wK(e){return new zSe(e)}class zSe extends _m{constructor(t){super({type:"object",check(r){return BSe(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=n8t,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let v=this.fields,l=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,h=[].concat(this._nodes,Object.keys(i).filter(o=>!this._nodes.includes(o))),a={},u=Object.assign({},r,{parent:a,__validating:r.__validating||!1}),g=!1;for(const o of h){let _=v[o],x=o in i;if(_){let p,b=i[o];u.path=(r.path?`${r.path}.`:"")+o,_=_.resolve({value:b,context:r.context,parent:a});let c=_ instanceof _m?_.spec:void 0,s=c==null?void 0:c.strict;if(c!=null&&c.strip){g=g||o in i;continue}p=!r.__validating||!s?_.cast(i[o],u):i[o],p!==void 0&&(a[o]=p)}else x&&!l&&(a[o]=i[o]);(x!==o in a||a[o]!==i[o])&&(g=!0)}return g?a:i}_validate(t,r={},n,i){let{from:v=[],originalValue:l=t,recursive:h=this.spec.recursive}=r;r.from=[{schema:this,value:l},...v],r.__validating=!0,r.originalValue=l,super._validate(t,r,n,(a,u)=>{if(!h||!BSe(u)){i(a,u);return}l=l||u;let g=[];for(let o of this._nodes){let _=this.fields[o];!_||B_.isRef(_)||g.push(_.asNestedTest({options:r,key:o,parent:u,parentPath:r.path,originalParent:l}))}this.runTests({tests:g,value:u,originalValue:l,options:r},n,o=>{i(o.sort(this._sortErrors).concat(a),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,v]of Object.entries(this.fields)){const l=n[i];n[i]=l===void 0?v:l}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const v=this.fields[n];let l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[n]})),r[n]=v&&"getDefault"in v?v.getDefault(l):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=qOt(t,r),n._sortErrors=FSe(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return MD(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r)}omit(t){const r=Object.assign({},this.fields);for(const n of t)delete r[n];return this.setFields(r)}from(t,r,n){let i=F_.getter(t,!0);return this.transform(v=>{if(!v)return v;let l=v;return t8t(v,t)&&(l=Object.assign({},v),n||delete l[t],l[r]=i(v)),l})}json(){return this.transform(e8t)}noUnknown(t=!0,r=SK.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const v=r8t(this.schema,i);return!t||v.length===0||this.createError({params:{unknown:v.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=SK.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(_K.camelCase)}snakeCase(){return this.transformKeys(_K.snakeCase)}constantCase(){return this.transformKeys(t=>_K.snakeCase(t).toUpperCase())}describe(t){let r=super.describe(t);r.fields={};for(const[i,v]of Object.entries(this.fields)){var n;let l=t;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=v.describe(l)}return r}}wK.prototype=zSe.prototype;function a8t(){const[e,t]=tc(ASe),r=ao($c),n=jp(),{t:i}=Kv(),v=(r==null?void 0:r.userEnv)||[],l={},h={};v.forEach(o=>{l[o]=e[o]||"",h[o]=CD().required()});const a=wK(h),u=dU({initialValues:l,validationSchema:a,onSubmit:async o=>(localStorage.setItem("userEnv",JSON.stringify(o)),t(o),cd.success(i("pages.Env.savedSuccessfully")),n("/"))});v.length===0&&n("/");const g=o=>{const _=!!u.errors[o];return Ge.jsx(DS,{id:o,className:o,label:o,value:u.values[o],size:"medium",hasError:_,description:_?u.errors[o]:"",onChange:x=>u.setFieldValue(o,x.target.value)})};return Ge.jsxs(ni,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[Ge.jsx(iSe,{}),Ge.jsxs(ni,{id:"env",display:"flex",flexDirection:"column",flexGrow:1,gap:2,sx:{maxWidth:"60rem",width:"100%",mx:"auto"},children:[Ge.jsx(Ko,{mt:5,fontSize:"18px",fontWeight:700,color:"text.primary",children:Ge.jsx(io,{path:"pages.Env.requiredApiKeys"})}),Ge.jsx(z0,{severity:"info",children:Ge.jsx(io,{path:"pages.Env.requiredApiKeysInfo"})}),Ge.jsxs("form",{onSubmit:u.handleSubmit,children:[v.map(o=>g(o)),Ge.jsx(Ah,{id:"submit-env",fullWidth:!0,type:"submit",variant:"contained",sx:{mt:1},children:"Save"})]})]})]})}let ID;const i8t=new Uint8Array(16);function o8t(){if(!ID&&(ID=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ID))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ID(i8t)}const Pf=[];for(let e=0;e<256;++e)Pf.push((e+256).toString(16).slice(1));function s8t(e,t=0){return(Pf[e[t+0]]+Pf[e[t+1]]+Pf[e[t+2]]+Pf[e[t+3]]+"-"+Pf[e[t+4]]+Pf[e[t+5]]+"-"+Pf[e[t+6]]+Pf[e[t+7]]+"-"+Pf[e[t+8]]+Pf[e[t+9]]+"-"+Pf[e[t+10]]+Pf[e[t+11]]+Pf[e[t+12]]+Pf[e[t+13]]+Pf[e[t+14]]+Pf[e[t+15]]).toLowerCase()}const USe={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function AK(e,t,r){if(USe.randomUUID&&!t&&!e)return USe.randomUUID();e=e||{};const n=e.random||(e.rng||o8t)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return s8t(n)}const $Se=({children:e})=>{const[t,r]=tc(hE);return Ge.jsx(bCt,{onClose:()=>r(void 0),isOpen:!!t,element:t,children:e})};function l8t(){var m,E;const e=ao($c),{chatProfile:t,setChatProfile:r}=Iy(),{firstInteraction:n}=s1(),[i,v]=bt.useState(null),[l,h]=bt.useState(""),{clear:a}=nd(),[u,g]=bt.useState(null),[o,_]=bt.useState(!1),x=CS(),p=jp(),b=()=>{_(!1),g(null),p("/")},c=y=>{const R=y||u;if(!R)throw new Error("Retry clicking on a profile before starting a new chat");r(R),g(null),a(),b()};if(!t&&$j(e==null?void 0:e.chatProfiles)>0&&r(e==null?void 0:e.chatProfiles[0].name),typeof e>"u"||e.chatProfiles.length<=1)return null;const s=(m=e==null?void 0:e.features)==null?void 0:m.unsafe_allow_html,d=(E=e==null?void 0:e.features)==null?void 0:E.latex,f=!!i;return Ge.jsxs(ni,{pt:1,pb:2,alignSelf:"center",maxWidth:"min(60rem, 90vw)",children:[Ge.jsx(OS,{id:"chat-profile-selector",children:Ge.jsx(ni,{sx:{border:y=>`1px solid ${y.palette.divider}`,backgroundColor:y=>y.palette.background.paper,borderRadius:1,padding:.5},children:Ge.jsx(kje,{value:t||"",onChange:(y,R)=>{g(R),n?_(!0):c(R)},variant:"scrollable",sx:{minHeight:"40px !important","& .MuiButtonBase-root":{textTransform:"none",zIndex:1,color:ro[x?600:500],fontSize:"14px",fontWeight:500,padding:0,minHeight:"40px !important",width:"125px"},"& .Mui-selected":{color:"white !important"},"& .MuiTabs-indicator":{background:y=>x?y.palette.divider:y.palette.primary.main,height:"100%",borderRadius:"5px"}},children:e.chatProfiles.map(y=>Ge.jsx(OWe,{className:`tab-${y.name}`,disableRipple:!0,label:y.name,value:y.name,sx:{"& .chat-profile-icon":{filter:y.name!==t?"grayscale(100%)":void 0},"&:hover":{"& .chat-profile-icon":{filter:"grayscale(0%)"}}},icon:y.icon?Ge.jsx("img",{src:y.icon,className:"chat-profile-icon",style:{width:"24px",height:"24px",borderRadius:"50%",objectFit:"cover",transition:"filter 0.5s ease-in-out"}}):void 0,iconPosition:"start",onMouseEnter:R=>{h(y.markdown_description),v(R.currentTarget.parentElement)},onMouseLeave:()=>v(null),"data-test":`chat-profile:${y.name}`},`tab-${y.name}`))})})}),Ge.jsx(ele,{id:"chat-profile-description",anchorEl:i,open:f,PaperProps:{sx:{boxShadow:y=>y.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},sx:{pointerEvents:"none",marginTop:1.5},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:()=>v(null),disableRestoreFocus:!0,children:Ge.jsx(ni,{p:2,sx:{fontFamily:y=>y.typography.fontFamily},maxWidth:"20rem",children:Ge.jsx(HC,{allowHtml:s,latex:d,children:l})})}),Ge.jsx(gD,{open:o,handleClose:b,handleConfirm:()=>c()})]})}const u8t=Ms({key:"Playground",default:void 0});Ms({key:"PlaygroundVariable",default:void 0}),Ms({key:"PlaygroundFunction",default:void 0}),Ms({key:"PlaygroundMode",default:"Formatted"});const HSe=bt.memo(({askUser:e,loading:t,avatars:r,actions:n,autoScroll:i,elements:v,messages:l,onFeedbackUpdated:h,onFeedbackDeleted:a,callAction:u,setAutoScroll:g})=>{var w,S;const o=ao(w2),_=ao($c),x=jo(u8t),p=jo(hE),b=ao(Gz),{uploadFile:c}=nd(),s=ao(Bp),d=bt.useCallback((C,M)=>c(s,C,M),[c]),f=!!(_!=null&&_.dataPersistence),m=jp(),E=bt.useCallback(C=>{x(M=>{var k,O;const I=C.generation;let F=((k=I==null?void 0:I.settings)==null?void 0:k.functions)||[];const N=((O=I==null?void 0:I.settings)==null?void 0:O.tools)||[];return N.length&&(F=[...F,...N.filter(T=>T.type==="function").map(T=>T.function)]),{...M,generation:I?{...I,functions:F}:void 0,originalGeneration:I?{...I,functions:F}:void 0}})},[x]),y=bt.useCallback(C=>{let M=`/element/${C.id}`;if(C.display==="side"){p(C);return}return C.threadId&&(M+=`?thread=${C.threadId}`),m(C.display==="page"?M:"#")},[p,m]),R=bt.useMemo(()=>n.map(C=>({...C,onClick:async()=>{try{u==null||u(C)}catch(M){M instanceof Error&&cd.error(M.message)}}})),[n]),A=bt.useCallback(C=>cd.error(C),[cd]),D=bt.useMemo(()=>{var C,M,I;return{uploadFile:d,askUser:e,allowHtml:(C=_==null?void 0:_.features)==null?void 0:C.unsafe_allow_html,latex:(M=_==null?void 0:_.features)==null?void 0:M.latex,avatars:r,defaultCollapseContent:o.defaultCollapseContent,expandAll:o.expandAll,hideCot:o.hideCot,highlightedMessage:b,loading:t,showFeedbackButtons:f,uiName:((I=_==null?void 0:_.ui)==null?void 0:I.name)||"",onElementRefClick:y,onError:A,onFeedbackUpdated:h,onFeedbackDeleted:a,onPlaygroundButtonClick:E}},[o.defaultCollapseContent,o.expandAll,o.hideCot,e,r,f,b,t,(w=_==null?void 0:_.ui)==null?void 0:w.name,(S=_==null?void 0:_.features)==null?void 0:S.unsafe_allow_html,y,A,h,E]);return Ge.jsx(pEe,{actions:R,elements:v,messages:l,autoScroll:i,setAutoScroll:g,context:D})}),c8t=({autoScroll:e,projectSettings:t,setAutoScroll:r})=>{var d,f;const{elements:n,askUser:i,avatars:v,loading:l,actions:h}=Vg(),{messages:a}=s1(),{callAction:u}=nd(),{idToResume:g}=Iy(),o=ao(Ib),_=jo(bw),x=ao(Bp),{t:p}=Kv(),b=bt.useCallback(m=>{const E=u(m);E&&cd.promise(E,{loading:`${p("components.organisms.chat.Messages.index.running")} ${m.name}`,success:y=>y.response?y.response:`${m.name} ${p("components.organisms.chat.Messages.index.executedSuccessfully")}`,error:y=>y.response?y.response:`${m.name} ${p("components.organisms.chat.Messages.index.failed")}`})},[u]),c=bt.useCallback(async(m,E,y)=>{try{cd.promise(x.setFeedback(y,o),{loading:p("components.organisms.chat.Messages.index.updating"),success:R=>(_(A=>Db(A,m.id,{...m,feedback:{...y,id:R.feedbackId}})),E(),p("components.organisms.chat.Messages.index.feedbackUpdated")),error:R=>Ge.jsx("span",{children:R.message})})}catch(R){console.log(R)}},[]),s=bt.useCallback(async(m,E,y)=>{try{cd.promise(x.deleteFeedback(y,o),{loading:p("components.organisms.chat.Messages.index.updating"),success:()=>(_(R=>Db(R,m.id,{...m,feedback:void 0})),E(),p("components.organisms.chat.Messages.index.feedbackUpdated")),error:R=>Ge.jsx("span",{children:R.message})})}catch(R){console.log(R)}},[]);return!g&&!a.length&&(t!=null&&t.ui.show_readme_as_default)?Ge.jsx(uj,{variant:"app",markdown:t==null?void 0:t.markdown,allowHtml:(d=t==null?void 0:t.features)==null?void 0:d.unsafe_allow_html,latex:(f=t==null?void 0:t.features)==null?void 0:f.latex}):Ge.jsx(HSe,{avatars:v,loading:l,askUser:i,actions:h,elements:n,messages:a,autoScroll:e,onFeedbackUpdated:c,onFeedbackDeleted:s,callAction:b,setAutoScroll:r})};var f8t={exports:{}};(function(e){var t=function(r){var n=Object.prototype,i=n.hasOwnProperty,v=Object.defineProperty||function(T,P,L){T[P]=L.value},l,h=typeof Symbol=="function"?Symbol:{},a=h.iterator||"@@iterator",u=h.asyncIterator||"@@asyncIterator",g=h.toStringTag||"@@toStringTag";function o(T,P,L){return Object.defineProperty(T,P,{value:L,enumerable:!0,configurable:!0,writable:!0}),T[P]}try{o({},"")}catch{o=function(P,L,z){return P[L]=z}}function _(T,P,L,z){var B=P&&P.prototype instanceof f?P:f,Y=Object.create(B.prototype),H=new N(z||[]);return v(Y,"_invoke",{value:C(T,L,H)}),Y}r.wrap=_;function x(T,P,L){try{return{type:"normal",arg:T.call(P,L)}}catch(z){return{type:"throw",arg:z}}}var p="suspendedStart",b="suspendedYield",c="executing",s="completed",d={};function f(){}function m(){}function E(){}var y={};o(y,a,function(){return this});var R=Object.getPrototypeOf,A=R&&R(R(k([])));A&&A!==n&&i.call(A,a)&&(y=A);var D=E.prototype=f.prototype=Object.create(y);m.prototype=E,v(D,"constructor",{value:E,configurable:!0}),v(E,"constructor",{value:m,configurable:!0}),m.displayName=o(E,g,"GeneratorFunction");function w(T){["next","throw","return"].forEach(function(P){o(T,P,function(L){return this._invoke(P,L)})})}r.isGeneratorFunction=function(T){var P=typeof T=="function"&&T.constructor;return P?P===m||(P.displayName||P.name)==="GeneratorFunction":!1},r.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,E):(T.__proto__=E,o(T,g,"GeneratorFunction")),T.prototype=Object.create(D),T},r.awrap=function(T){return{__await:T}};function S(T,P){function L(Y,H,G,W){var V=x(T[Y],T,H);if(V.type==="throw")W(V.arg);else{var j=V.arg,X=j.value;return X&&typeof X=="object"&&i.call(X,"__await")?P.resolve(X.__await).then(function(ee){L("next",ee,G,W)},function(ee){L("throw",ee,G,W)}):P.resolve(X).then(function(ee){j.value=ee,G(j)},function(ee){return L("throw",ee,G,W)})}}var z;function B(Y,H){function G(){return new P(function(W,V){L(Y,H,W,V)})}return z=z?z.then(G,G):G()}v(this,"_invoke",{value:B})}w(S.prototype),o(S.prototype,u,function(){return this}),r.AsyncIterator=S,r.async=function(T,P,L,z,B){B===void 0&&(B=Promise);var Y=new S(_(T,P,L,z),B);return r.isGeneratorFunction(P)?Y:Y.next().then(function(H){return H.done?H.value:Y.next()})};function C(T,P,L){var z=p;return function(Y,H){if(z===c)throw new Error("Generator is already running");if(z===s){if(Y==="throw")throw H;return O()}for(L.method=Y,L.arg=H;;){var G=L.delegate;if(G){var W=M(G,L);if(W){if(W===d)continue;return W}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(z===p)throw z=s,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);z=c;var V=x(T,P,L);if(V.type==="normal"){if(z=L.done?s:b,V.arg===d)continue;return{value:V.arg,done:L.done}}else V.type==="throw"&&(z=s,L.method="throw",L.arg=V.arg)}}}function M(T,P){var L=P.method,z=T.iterator[L];if(z===l)return P.delegate=null,L==="throw"&&T.iterator.return&&(P.method="return",P.arg=l,M(T,P),P.method==="throw")||L!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+L+"' method")),d;var B=x(z,T.iterator,P.arg);if(B.type==="throw")return P.method="throw",P.arg=B.arg,P.delegate=null,d;var Y=B.arg;if(!Y)return P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d;if(Y.done)P[T.resultName]=Y.value,P.next=T.nextLoc,P.method!=="return"&&(P.method="next",P.arg=l);else return Y;return P.delegate=null,d}w(D),o(D,g,"Generator"),o(D,a,function(){return this}),o(D,"toString",function(){return"[object Generator]"});function I(T){var P={tryLoc:T[0]};1 in T&&(P.catchLoc=T[1]),2 in T&&(P.finallyLoc=T[2],P.afterLoc=T[3]),this.tryEntries.push(P)}function F(T){var P=T.completion||{};P.type="normal",delete P.arg,T.completion=P}function N(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(I,this),this.reset(!0)}r.keys=function(T){var P=Object(T),L=[];for(var z in P)L.push(z);return L.reverse(),function B(){for(;L.length;){var Y=L.pop();if(Y in P)return B.value=Y,B.done=!1,B}return B.done=!0,B}};function k(T){if(T||T===""){var P=T[a];if(P)return P.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var L=-1,z=function B(){for(;++L<T.length;)if(i.call(T,L))return B.value=T[L],B.done=!1,B;return B.value=l,B.done=!0,B};return z.next=z}}throw new TypeError(typeof T+" is not iterable")}r.values=k;function O(){return{value:l,done:!0}}return N.prototype={constructor:N,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(F),!T)for(var P in this)P.charAt(0)==="t"&&i.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=l)},stop:function(){this.done=!0;var T=this.tryEntries[0],P=T.completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var P=this;function L(W,V){return Y.type="throw",Y.arg=T,P.next=W,V&&(P.method="next",P.arg=l),!!V}for(var z=this.tryEntries.length-1;z>=0;--z){var B=this.tryEntries[z],Y=B.completion;if(B.tryLoc==="root")return L("end");if(B.tryLoc<=this.prev){var H=i.call(B,"catchLoc"),G=i.call(B,"finallyLoc");if(H&&G){if(this.prev<B.catchLoc)return L(B.catchLoc,!0);if(this.prev<B.finallyLoc)return L(B.finallyLoc)}else if(H){if(this.prev<B.catchLoc)return L(B.catchLoc,!0)}else if(G){if(this.prev<B.finallyLoc)return L(B.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(T,P){for(var L=this.tryEntries.length-1;L>=0;--L){var z=this.tryEntries[L];if(z.tryLoc<=this.prev&&i.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var B=z;break}}B&&(T==="break"||T==="continue")&&B.tryLoc<=P&&P<=B.finallyLoc&&(B=null);var Y=B?B.completion:{};return Y.type=T,Y.arg=P,B?(this.method="next",this.next=B.finallyLoc,d):this.complete(Y)},complete:function(T,P){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&P&&(this.next=P),d},finish:function(T){for(var P=this.tryEntries.length-1;P>=0;--P){var L=this.tryEntries[P];if(L.finallyLoc===T)return this.complete(L.completion,L.afterLoc),F(L),d}},catch:function(T){for(var P=this.tryEntries.length-1;P>=0;--P){var L=this.tryEntries[P];if(L.tryLoc===T){var z=L.completion;if(z.type==="throw"){var B=z.arg;F(L)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(T,P,L){return this.delegate={iterator:k(T),resultName:P,nextLoc:L},this.method==="next"&&(this.arg=l),d}},r}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(f8t);function d8t(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var h8t=d8t,p8t=BO,v8t=qA,g8t=Object.prototype,m8t=g8t.hasOwnProperty;function y8t(e,t,r){var n=e[t];(!(m8t.call(e,t)&&v8t(n,r))||r===void 0&&!(t in e))&&p8t(e,t,r)}var GSe=y8t,b8t=GSe,_8t=BO;function x8t(e,t,r,n){var i=!r;r||(r={});for(var v=-1,l=t.length;++v<l;){var h=t[v],a=n?n(r[h],e[h],h,r,e):void 0;a===void 0&&(a=e[h]),i?_8t(r,h,a):b8t(r,h,a)}return r}var i4=x8t,E8t=i4,S8t=JA;function T8t(e,t){return e&&E8t(t,S8t(t),e)}var w8t=T8t;function A8t(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var C8t=A8t,R8t=ag,M8t=EU,I8t=C8t,O8t=Object.prototype,D8t=O8t.hasOwnProperty;function N8t(e){if(!R8t(e))return I8t(e);var t=M8t(e),r=[];for(var n in e)n=="constructor"&&(t||!D8t.call(e,n))||r.push(n);return r}var L8t=N8t,P8t=lhe,k8t=L8t,F8t=v_;function B8t(e){return F8t(e)?P8t(e,!0):k8t(e)}var o4=B8t,z8t=i4,U8t=o4;function $8t(e,t){return e&&z8t(t,U8t(t),e)}var H8t=$8t,OD={exports:{}};OD.exports,function(e,t){var r=ng,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,v=i&&i.exports===n,l=v?r.Buffer:void 0,h=l?l.allocUnsafe:void 0;function a(u,g){if(g)return u.slice();var o=u.length,_=h?h(o):new u.constructor(o);return u.copy(_),_}e.exports=a}(OD,OD.exports);var VSe=OD.exports;function G8t(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var YSe=G8t,V8t=i4,Y8t=CU;function W8t(e,t){return V8t(e,Y8t(e),t)}var j8t=W8t,K8t=uhe,X8t=K8t(Object.getPrototypeOf,Object),CK=X8t,Q8t=xhe,Z8t=CK,J8t=CU,q8t=She,eDt=Object.getOwnPropertySymbols,tDt=eDt?function(e){for(var t=[];e;)Q8t(t,J8t(e)),e=Z8t(e);return t}:q8t,WSe=tDt,rDt=i4,nDt=WSe;function aDt(e,t){return rDt(e,nDt(e),t)}var iDt=aDt,oDt=Ehe,sDt=WSe,lDt=o4;function uDt(e){return oDt(e,lDt,sDt)}var cDt=uDt,fDt=Object.prototype,dDt=fDt.hasOwnProperty;function hDt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&dDt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var pDt=hDt,jSe=mhe;function vDt(e){var t=new e.constructor(e.byteLength);return new jSe(t).set(new jSe(e)),t}var RK=vDt,gDt=RK;function mDt(e,t){var r=t?gDt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var yDt=mDt,bDt=/\w*$/;function _Dt(e){var t=new e.constructor(e.source,bDt.exec(e));return t.lastIndex=e.lastIndex,t}var xDt=_Dt,KSe=QA,XSe=KSe?KSe.prototype:void 0,QSe=XSe?XSe.valueOf:void 0;function EDt(e){return QSe?Object(QSe.call(e)):{}}var SDt=EDt,TDt=RK;function wDt(e,t){var r=t?TDt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ZSe=wDt,ADt=RK,CDt=yDt,RDt=xDt,MDt=SDt,IDt=ZSe,ODt="[object Boolean]",DDt="[object Date]",NDt="[object Map]",LDt="[object Number]",PDt="[object RegExp]",kDt="[object Set]",FDt="[object String]",BDt="[object Symbol]",zDt="[object ArrayBuffer]",UDt="[object DataView]",$Dt="[object Float32Array]",HDt="[object Float64Array]",GDt="[object Int8Array]",VDt="[object Int16Array]",YDt="[object Int32Array]",WDt="[object Uint8Array]",jDt="[object Uint8ClampedArray]",KDt="[object Uint16Array]",XDt="[object Uint32Array]";function QDt(e,t,r){var n=e.constructor;switch(t){case zDt:return ADt(e);case ODt:case DDt:return new n(+e);case UDt:return CDt(e,r);case $Dt:case HDt:case GDt:case VDt:case YDt:case WDt:case jDt:case KDt:case XDt:return IDt(e,r);case NDt:return new n;case LDt:case FDt:return new n(e);case PDt:return RDt(e);case kDt:return new n;case BDt:return MDt(e)}}var ZDt=QDt,JDt=ag,JSe=Object.create,qDt=function(){function e(){}return function(t){if(!JDt(t))return{};if(JSe)return JSe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),eNt=qDt,tNt=eNt,rNt=CK,nNt=EU;function aNt(e){return typeof e.constructor=="function"&&!nNt(e)?tNt(rNt(e)):{}}var qSe=aNt,iNt=eC,oNt=am,sNt="[object Map]";function lNt(e){return oNt(e)&&iNt(e)==sNt}var uNt=lNt,cNt=uNt,fNt=bU,eTe=_U,tTe=eTe&&eTe.isMap,dNt=tTe?fNt(tTe):cNt,hNt=dNt,pNt=eC,vNt=am,gNt="[object Set]";function mNt(e){return vNt(e)&&pNt(e)==gNt}var yNt=mNt,bNt=yNt,_Nt=bU,rTe=_U,nTe=rTe&&rTe.isSet,xNt=nTe?_Nt(nTe):bNt,ENt=xNt,SNt=WO,TNt=h8t,wNt=GSe,ANt=w8t,CNt=H8t,RNt=VSe,MNt=YSe,INt=j8t,ONt=iDt,DNt=whe,NNt=cDt,LNt=eC,PNt=pDt,kNt=ZDt,FNt=qSe,BNt=Q0,zNt=UO,UNt=hNt,$Nt=ag,HNt=ENt,GNt=JA,VNt=o4,YNt=1,WNt=2,jNt=4,aTe="[object Arguments]",KNt="[object Array]",XNt="[object Boolean]",QNt="[object Date]",ZNt="[object Error]",iTe="[object Function]",JNt="[object GeneratorFunction]",qNt="[object Map]",eLt="[object Number]",oTe="[object Object]",tLt="[object RegExp]",rLt="[object Set]",nLt="[object String]",aLt="[object Symbol]",iLt="[object WeakMap]",oLt="[object ArrayBuffer]",sLt="[object DataView]",lLt="[object Float32Array]",uLt="[object Float64Array]",cLt="[object Int8Array]",fLt="[object Int16Array]",dLt="[object Int32Array]",hLt="[object Uint8Array]",pLt="[object Uint8ClampedArray]",vLt="[object Uint16Array]",gLt="[object Uint32Array]",Pl={};Pl[aTe]=Pl[KNt]=Pl[oLt]=Pl[sLt]=Pl[XNt]=Pl[QNt]=Pl[lLt]=Pl[uLt]=Pl[cLt]=Pl[fLt]=Pl[dLt]=Pl[qNt]=Pl[eLt]=Pl[oTe]=Pl[tLt]=Pl[rLt]=Pl[nLt]=Pl[aLt]=Pl[hLt]=Pl[pLt]=Pl[vLt]=Pl[gLt]=!0,Pl[ZNt]=Pl[iTe]=Pl[iLt]=!1;function DD(e,t,r,n,i,v){var l,h=t&YNt,a=t&WNt,u=t&jNt;if(r&&(l=i?r(e,n,i,v):r(e)),l!==void 0)return l;if(!$Nt(e))return e;var g=BNt(e);if(g){if(l=PNt(e),!h)return MNt(e,l)}else{var o=LNt(e),_=o==iTe||o==JNt;if(zNt(e))return RNt(e,h);if(o==oTe||o==aTe||_&&!i){if(l=a||_?{}:FNt(e),!h)return a?ONt(e,CNt(l,e)):INt(e,ANt(l,e))}else{if(!Pl[o])return i?e:{};l=kNt(e,o,h)}}v||(v=new SNt);var x=v.get(e);if(x)return x;v.set(e,l),HNt(e)?e.forEach(function(c){l.add(DD(c,t,r,c,e,v))}):UNt(e)&&e.forEach(function(c,s){l.set(s,DD(c,t,r,s,e,v))});var p=u?a?NNt:DNt:a?VNt:GNt,b=g?void 0:p(e);return TNt(b||e,function(c,s){b&&(s=c,c=e[s]),wNt(l,s,DD(c,t,r,s,e,v))}),l}var mLt=DD,yLt=mLt,bLt=1,_Lt=4;function xLt(e){return yLt(e,bLt|_Lt)}var ELt=xLt;const SLt=Pc(ELt);var MK={},TLt=ko;Object.defineProperty(MK,"__esModule",{value:!0});var sTe=MK.default=void 0,wLt=TLt(Fo()),lTe=Ge,ALt=(0,wLt.default)([(0,lTe.jsx)("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"0"),(0,lTe.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");sTe=MK.default=ALt;const CLt=e=>Ge.jsx(u1,{children:Ge.jsxs("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Ge.jsx("path",{d:"m17 11-5-5-5 5"}),Ge.jsx("path",{d:"m17 18-5-5-5 5"})]})});function RLt(e){const t={},r=SLt(e).reverse();return r==null||r.forEach(n=>{const{createdAt:i,content:v}=n,l={day:"numeric",month:"numeric",year:"numeric"},h=new Date(i).toLocaleDateString(void 0,l);t[h]||(t[h]=[]);const a={hour:"numeric",minute:"numeric"};t[h].push({key:i,hour:new Date(i).toLocaleTimeString(void 0,a),content:v})}),t}function MLt({disabled:e,onClick:t}){const[r,n]=tc(GC),i=bt.useRef(),[v,l]=bt.useState(null);r.open&&!v&&i.current&&l(i.current);const h=x=>n(p=>({...p,open:x})),a=Ge.jsxs(to,{disabled:!0,direction:"row",p:1,justifyContent:"space-between",alignItems:"center",children:[Ge.jsx(Ko,{color:"text.primary",sx:{fontSize:"14px",fontWeight:700},children:Ge.jsx(io,{path:"components.organisms.chat.history.index.lastInputs"})}),Ge.jsx(Ts,{onClick:()=>n(x=>({...x,inputs:[]})),children:Ge.jsx(sTe,{})})]},"title"),u=(r==null?void 0:r.inputs.length)===0?Ge.jsx("div",{id:"history-empty",disabled:!0,children:Ge.jsx(Ko,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:Ge.jsx(io,{path:"components.organisms.chat.history.index.noInputs"})})},"empty"):null,g=r.inputs?null:Ge.jsx("div",{id:"history-loading",disabled:!0,children:Ge.jsx(Ko,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:Ge.jsx(io,{path:"components.organisms.chat.history.index.loading"})})},"loading"),o=[a,u,g];if(r.inputs){const x=RLt(r.inputs);Object.keys(x).forEach(p=>{o.push(Ge.jsx("div",{disabled:!0,children:Ge.jsx(Ko,{color:"text.primary",sx:{p:1,fontSize:"10px",fontWeight:700,color:ro[500]},children:p})},p));let b="";x[p].forEach(c=>{b!==c.content&&(b=c.content,o.push(Ge.jsx(Jw,{className:"history-item",onClick:s=>{s.stopPropagation(),s.preventDefault(),h(!1),t(c.content)},disableRipple:!0,sx:{p:1,alignItems:"baseline",borderRadius:"4px"},children:Ge.jsx(Ko,{color:"text.primary",sx:{whiteSpace:"pre-wrap",fontSize:"14px",maxHeight:"50px",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",flexGrow:0,overflow:"hidden",textOverflow:"ellipsis",lineHeight:"24px"},children:c.content})},c.key)))})})}const _=v?Ge.jsx(VE,{autoFocus:!0,anchorEl:v,open:r.open,onClose:()=>h(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",maxHeight:"314px",width:"334px",overflowY:"auto",border:x=>`1px solid ${x.palette.divider}`,boxShadow:x=>x.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:o}):null;return Ge.jsxs("div",{children:[_,Ge.jsx(Ec,{title:Ge.jsx(io,{path:"components.organisms.chat.history.index.showHistory"}),children:Ge.jsx("span",{children:Ge.jsx(Ts,{color:"inherit",disabled:e,onClick:()=>h(!r.open),ref:i,children:Ge.jsx(CLt,{})})})})]})}function ILt(e){const t=e.querySelector("textarea");return t?t.value.split(`
702
- `).length:0}const OLt=bt.memo(({fileSpec:e,onFileUpload:t,onFileUploadError:r,onSubmit:n,onReply:i})=>{var w,S,C;const[v,l]=tc(iC),[h]=tc($c),a=jo(GC),u=jo(Vz),g=bt.useRef(null),{loading:o,askUser:_,chatSettingsInputs:x,disabled:p}=Vg(),b=p||!!v.find(M=>!M.uploaded),[c,s]=bt.useState(""),[d,f]=bt.useState(!1),m=(w=h==null?void 0:h.features.speech_to_text)==null?void 0:w.enabled,{t:E}=Kv();bt.useEffect(()=>{const M=F=>{F.clipboardData&&F.clipboardData.items&&Array.from(F.clipboardData.items).forEach(k=>{if(k.kind==="file"){const O=k.getAsFile();O&&t([O])}})};if(!g.current)return;const I=g.current;return I.addEventListener("paste",M),()=>{I.removeEventListener("paste",M)}},[]),bt.useEffect(()=>{g.current&&!o&&!b&&g.current.focus()},[o,b]);const y=bt.useCallback(()=>{c===""||b||(_?i(c):n(c,v),l([]),s(""))},[c,b,s,_,v,l,n]),R=bt.useCallback(M=>{M.key==="Enter"&&!M.shiftKey?d||(M.preventDefault(),y()):M.key==="ArrowUp"&&ILt(M.currentTarget)<=1&&a(F=>({...F,open:!0}))},[y,a,d]),A=bt.useCallback(M=>{g.current&&s(M)},[]),D=Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(MLt,{disabled:b,onClick:A}),Ge.jsx(Txe,{disabled:b,fileSpec:e,onFileUploadError:r,onFileUpload:t}),x.length>0&&Ge.jsx(Ts,{id:"chat-settings-open-modal",disabled:b,color:"inherit",onClick:()=>u(!0),children:Ge.jsx(JW,{})}),m?Ge.jsx(Ixe,{onSpeech:M=>s(I=>I+M),language:(C=(S=h.features)==null?void 0:S.speech_to_text)==null?void 0:C.language,disabled:b}):null]});return Ge.jsxs(to,{sx:{backgroundColor:"background.paper",borderRadius:1,border:M=>`1px solid ${M.palette.divider}`,boxShadow:"box-shadow: 0px 2px 4px 0px #0000000D",textarea:{height:"34px",maxHeight:"30vh",overflowY:"auto !important",resize:"none",paddingBottom:"0.75rem",paddingTop:"0.75rem",color:"text.primary",lineHeight:"24px"}},children:[v.length>0?Ge.jsx(ni,{sx:{mt:2,mx:2,padding:"2px"},children:Ge.jsx(bxe,{})}):null,Ge.jsx(YE,{inputRef:g,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:E("components.organisms.chat.inputBox.input.placeholder"),disabled:b,onChange:M=>s(M.target.value),onKeyDown:R,onCompositionStart:()=>f(!0),onCompositionEnd:()=>f(!1),value:c,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:Ge.jsx(xF,{sx:{ml:1,color:"text.secondary"},position:"start",children:D}),endAdornment:Ge.jsx(Exe,{onSubmit:y,disabled:b||!c})}})]})}),DLt=bt.memo(({fileSpec:e,onFileUpload:t,onFileUploadError:r,setAutoScroll:n,autoScroll:i,projectSettings:v})=>{const l=jo(GC),{user:h}=F1(),{sendMessage:a,replyMessage:u}=nd(),g=bt.useCallback(async(_,x)=>{const p={threadId:"",id:AK(),name:(h==null?void 0:h.identifier)||"User",type:"user_message",output:_,createdAt:new Date().toISOString()};l(c=>{const d=[...c.inputs||[]];return d.push({content:_,createdAt:new Date().getTime()}),{...c,inputs:d.length>50?d.slice(d.length-50):d}});const b=x==null?void 0:x.filter(c=>!!c.serverId).map(c=>({id:c.serverId}));n(!0),a(p,b)},[h,v,a]),o=bt.useCallback(async _=>{const x={threadId:"",id:AK(),name:(h==null?void 0:h.identifier)||"User",type:"user_message",output:_,createdAt:new Date().toISOString()};u(x),n(!0)},[h,u]);return Ge.jsxs(ni,{display:"flex",position:"relative",flexDirection:"column",gap:1,p:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[i?null:Ge.jsx(yxe,{onClick:()=>n(!0)}),Ge.jsx(ni,{children:Ge.jsx(OLt,{fileSpec:e,onFileUpload:t,onFileUploadError:r,onSubmit:g,onReply:o})}),Ge.jsx(lj,{})]})}),uTe=()=>{var m,E;const{idToResume:e}=Iy(),t=ao($c),r=jo(iC),n=jo(_w),i=ao(hE),v=ao(Bp),[l,h]=bt.useState(!0),{error:a,disabled:u}=Vg(),{uploadFile:g}=nd(),o=bt.useRef(g),_=jp(),x=bt.useMemo(()=>{var y,R,A,D,w,S;return{max_size_mb:((R=(y=t==null?void 0:t.features)==null?void 0:y.multi_modal)==null?void 0:R.max_size_mb)||500,max_files:((D=(A=t==null?void 0:t.features)==null?void 0:A.multi_modal)==null?void 0:D.max_files)||20,accept:((S=(w=t==null?void 0:t.features)==null?void 0:w.multi_modal)==null?void 0:S.accept)||["*/*"]}},[t]),{t:p}=Kv();bt.useEffect(()=>{o.current=g},[g]);const b=bt.useCallback(y=>{const R=y.map(A=>{const D=AK(),{xhr:w,promise:S}=o.current(v,A,C=>{r(M=>M.map(I=>I.id===D?{...I,uploadProgress:C}:I))});return S.then(C=>{r(M=>M.map(I=>I.id===D?{...I,serverId:C.id,uploaded:!0,uploadProgress:100,cancel:void 0}:I))}).catch(C=>{cd.error(`${p("components.organisms.chat.index.failedToUpload")} ${A.name}: ${C.message}`),r(M=>M.filter(I=>I.id!==D))}),{id:D,type:A.type,name:A.name,size:A.size,uploadProgress:0,cancel:()=>{cd.info(`${p("components.organisms.chat.index.cancelledUploadOf")} ${A.name}`),w.abort(),r(C=>C.filter(M=>M.id!==D))},remove:()=>{r(C=>C.filter(M=>M.id!==D))}}});r(A=>A.concat(R))},[g]),c=bt.useCallback(y=>cd.error(y),[cd]),s=t8({spec:x,onResolved:b,onError:c,options:{noClick:!0}}),{threadId:d}=s1();bt.useEffect(()=>{const y=new URL(window.location.href);t!=null&&t.dataPersistence&&d&&y.pathname==="/"?_(`/thread/${d}`):n(R=>({...R,currentThreadId:d}))},[]);const f=!u&&((E=(m=t==null?void 0:t.features)==null?void 0:m.multi_modal)==null?void 0:E.enabled);return Ge.jsxs(ni,{...f?s==null?void 0:s.getRootProps({className:"dropzone"}):{},onBlur:void 0,onFocus:void 0,display:"flex",width:"100%",flexGrow:1,position:"relative",children:[s?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("input",{id:"#upload-drop-input",...s.getInputProps()}),s!=null&&s.isDragActive?Ge.jsx(Vfe,{}):null]}):null,Ge.jsxs($Se,{children:[Ge.jsx(ni,{my:1}),a?Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsx(z0,{sx:{mx:2},id:"session-error",severity:"error",children:Ge.jsx(io,{path:"components.organisms.chat.index.couldNotReachServer"})})}):null,e?Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsx(z0,{sx:{mx:2},severity:"info",children:Ge.jsx(io,{path:"components.organisms.chat.index.continuingChat"})})}):null,Ge.jsx(Yz,{isMobile:!0}),Ge.jsxs(MF,{children:[Ge.jsx(l8t,{}),Ge.jsx(c8t,{autoScroll:l,projectSettings:t,setAutoScroll:h}),Ge.jsx(DLt,{fileSpec:x,onFileUpload:b,onFileUploadError:c,autoScroll:l,setAutoScroll:h,projectSettings:t})]})]}),i?null:Ge.jsx(Yz,{isMobile:!1})]})};function NLt(){return Ge.jsx(xD,{children:Ge.jsx(uTe,{})})}var ND=globalThis&&globalThis.__assign||function(){return ND=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ND.apply(this,arguments)},LLt=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},PLt=function(e){var t=e.className,r=e.style,n=e.rules,i=e.value,v=e.valueAgain,l=e.minLength,h=e.maxLength,a=e.rtl,u=e.onChange,g=e.specialCharsRegex,o=g===void 0?/[~`¿¡!#$%\^&*€£@+÷=\-\[\]\\';,/{}\(\)|\\":<>\?\.\_]/g:g,_=e.messages,x=_===void 0?{}:_,p=LLt(e,["className","style","rules","value","valueAgain","minLength","maxLength","rtl","onChange","specialCharsRegex","messages"]),b={minLength:{valid:i.length>=(l||100),message:x.minLength||"Password has at least ".concat(l," characters.")},specialChar:{valid:o.test(i),message:x.specialChar||"Password has special characters."},number:{valid:/\d/g.test(i),message:x.number||"Password has a number."},capital:{valid:function(){var f=0;if(i.length===0)return!1;for(;f<i.length;){var m=i.charAt(f);if(m!=m.toLowerCase()){if(m==m.toUpperCase())return!0}f++}return!1}(),message:x.capital||"Password has a capital letter."},match:{valid:i.length>0&&i===v,message:x.match||"Passwords match."},lowercase:{valid:function(){var f=0;if(i.length===0)return!1;for(;f<i.length;){var m=i.charAt(f);if(m!=m.toUpperCase()){if(m==m.toLowerCase())return!0}f++}return!1}(),message:x.lowercase||"Password has a lowercase letter."},letter:{valid:/[a-zA-Z]/g.test(i),message:x.letter||"Password has a letter."},maxLength:{valid:i.length<=(h||16),message:x.maxLength||"Password has no more than ".concat(h," characters.")},notEmpty:{valid:!!(i.length>0&&v&&v.length>0),message:x.notEmpty||"Password fields are not empty."}},c=bt.useMemo(function(){return n.filter(function(f){return!!b[f]})},[n]),s=c.every(function(f){return b[f].valid}),d=bt.useMemo(function(){return c.filter(function(f){return!b[f].valid})},[i,v,c]);return bt.useEffect(function(){typeof u=="function"&&u(s,d)},[s,d]),a&&(t=t?t+" rtl":"rtl"),fa.createElement("ul",{className:t,style:ND({margin:0,padding:0},r)},c.map(function(f){var m=b[f],E=m.message,y=m.valid;return fa.createElement(kLt,ND({key:f,valid:y,iconSize:18,validColor:"#4BCA81",invalidColor:"#FF0033",rtl:a},p),E)}))},kLt=function(e){var t=e.valid,r=e.iconSize,n=e.validColor,i=e.invalidColor,v=e.validTextColor,l=e.invalidTextColor,h=e.iconComponents,a=e.hideIcon,u=e.rtl,g=e.children;return fa.createElement("li",{className:t?"valid":"invalid",style:{listStyleType:"none",display:"flex",alignItems:"flex-start",margin:"2px 0"}},a?null:h?t?h.ValidIcon:h.InvalidIcon:fa.createElement("svg",{className:"checklist-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 512 512",style:{marginRight:u?0:5,marginLeft:u?5:0}},fa.createElement("path",{fill:t?n:i,d:t?"M432 64l-240 240-112-112-80 80 192 192 320-320z":"M507.331 411.33c-0.002-0.002-0.004-0.004-0.006-0.005l-155.322-155.325 155.322-155.325c0.002-0.002 0.004-0.003 0.006-0.005 1.672-1.673 2.881-3.627 3.656-5.708 2.123-5.688 0.912-12.341-3.662-16.915l-73.373-73.373c-4.574-4.573-11.225-5.783-16.914-3.66-2.080 0.775-4.035 1.984-5.709 3.655 0 0.002-0.002 0.003-0.004 0.005l-155.324 155.326-155.324-155.325c-0.002-0.002-0.003-0.003-0.005-0.005-1.673-1.671-3.627-2.88-5.707-3.655-5.69-2.124-12.341-0.913-16.915 3.66l-73.374 73.374c-4.574 4.574-5.784 11.226-3.661 16.914 0.776 2.080 1.985 4.036 3.656 5.708 0.002 0.001 0.003 0.003 0.005 0.005l155.325 155.324-155.325 155.326c-0.001 0.002-0.003 0.003-0.004 0.005-1.671 1.673-2.88 3.627-3.657 5.707-2.124 5.688-0.913 12.341 3.661 16.915l73.374 73.373c4.575 4.574 11.226 5.784 16.915 3.661 2.080-0.776 4.035-1.985 5.708-3.656 0.001-0.002 0.003-0.003 0.005-0.005l155.324-155.325 155.324 155.325c0.002 0.001 0.004 0.003 0.006 0.004 1.674 1.672 3.627 2.881 5.707 3.657 5.689 2.123 12.342 0.913 16.914-3.661l73.373-73.374c4.574-4.574 5.785-11.227 3.662-16.915-0.776-2.080-1.985-4.034-3.657-5.707z"})),fa.createElement("span",{style:{paddingTop:2,opacity:t?1:l?void 0:.5,flex:1,color:t?v:l}},g))},IK={},FLt=ko;Object.defineProperty(IK,"__esModule",{value:!0});var cTe=IK.default=void 0,BLt=FLt(Fo()),zLt=Ge,ULt=(0,BLt.default)((0,zLt.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");cTe=IK.default=ULt;var OK={},$Lt=ko;Object.defineProperty(OK,"__esModule",{value:!0});var fTe=OK.default=void 0,HLt=$Lt(Fo()),GLt=Ge,VLt=(0,HLt.default)((0,GLt.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");fTe=OK.default=VLt;const YLt=({title:e,children:t,renderLogo:r})=>Ge.jsx(to,{sx:{backgroundColor:n=>n.palette.background.default,height:"100vh",width:"100vw",alignItems:"center",justifyContent:"center"},children:Ge.jsxs(ni,{sx:n=>({backgroundColor:i=>i.palette.background.paper,border:i=>`1px solid ${i.palette.divider}`,borderRadius:1,padding:n.spacing(5,5),maxWidth:"400px",height:"auto",maxHeight:"90%",[n.breakpoints.down("sm")]:{maxWidth:"unset",width:"100%",height:"100%"}}),children:[Ge.jsxs(to,{sx:{alignItems:"center",gap:3,marginBottom:3},children:[r,e?Ge.jsx(Ko,{textAlign:"center",color:"text.primary",children:e}):null]}),Ge.jsx(to,{gap:1,paddingX:3,children:t})]})});var DK={},WLt=ko;Object.defineProperty(DK,"__esModule",{value:!0});var dTe=DK.default=void 0;XLt(bt);var jLt=WLt(Fo()),KLt=Ge;function hTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(hTe=function(n){return n?r:t})(e)}function XLt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=hTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var QLt=(0,jLt.default)((0,KLt.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");dTe=DK.default=QLt;var NK={},ZLt=ko;Object.defineProperty(NK,"__esModule",{value:!0});var pTe=NK.default=void 0;ePt(bt);var JLt=ZLt(Fo()),qLt=Ge;function vTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(vTe=function(n){return n?r:t})(e)}function ePt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=vTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var tPt=(0,JLt.default)((0,qLt.jsx)("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google");pTe=NK.default=tPt;var LK={},rPt=ko;Object.defineProperty(LK,"__esModule",{value:!0});var gTe=LK.default=void 0;iPt(bt);var nPt=rPt(Fo()),aPt=Ge;function mTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(mTe=function(n){return n?r:t})(e)}function iPt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=mTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var oPt=(0,nPt.default)((0,aPt.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");gTe=LK.default=oPt;const sPt=()=>Ge.jsx("svg",{width:"24",height:"24",viewBox:"0 0 256 287",style:{fill:"inherit"},xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet",children:Ge.jsx("path",{d:"M203.24 231.531l-28.73-88.434 75.208-54.64h-92.966L128.019.025l-.009-.024h92.98l28.74 88.446.002-.002.024-.013c16.69 51.31-.5 109.67-46.516 143.098zm-150.45 0l-.023.017 75.228 54.655 75.245-54.67-75.221-54.656-75.228 54.654zM6.295 88.434c-17.57 54.088 2.825 111.4 46.481 143.108l.007-.028 28.735-88.429-75.192-54.63h92.944L128.004.024 128.01 0H35.025L6.294 88.434z"})}),lPt=()=>Ge.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 256 299",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",children:[Ge.jsx("path",{d:"M208.752 58.061l25.771-6.636.192.283.651 155.607-.843.846-5.31.227-20.159-3.138-.302-.794V58.061M59.705 218.971l.095.007 68.027 19.767.173.133.296.236-.096 59.232-.2.252-68.295-33.178v-46.449",fill:"#7A3E65"}),Ge.jsx("path",{d:"M208.752 204.456l-80.64 19.312-40.488-9.773-27.919 4.976L128 238.878l105.405-28.537 1.118-2.18-25.771-3.705",fill:"#CFB2C1"}),Ge.jsx("path",{d:"M196.295 79.626l-.657-.749-66.904-19.44-.734.283-.672-.343L22.052 89.734l-.575.703.845.463 24.075 3.53.851-.289 80.64-19.311 40.488 9.773 27.919-4.977",fill:"#512843"}),Ge.jsx("path",{d:"M47.248 240.537l-25.771 6.221-.045-.149-1.015-155.026 1.06-1.146 25.771 3.704v146.396",fill:"#C17B9E"}),Ge.jsx("path",{d:"M82.04 180.403l45.96 5.391.345-.515.187-71.887-.532-.589-45.96 5.392v62.208",fill:"#7A3E65"}),Ge.jsx("path",{d:"M173.96 180.403L128 185.794v-72.991l45.96 5.392v62.208M196.295 79.626L128 59.72V0l68.295 33.177v46.449",fill:"#C17B9E"}),Ge.jsx("path",{d:"M128 0L0 61.793v175.011l21.477 9.954V90.437L128 59.72V0",fill:"#7A3E65"}),Ge.jsx("path",{d:"M234.523 51.425v156.736L128 238.878v59.72l128-61.794V61.793l-21.477-10.368",fill:"#C17B9E"})]}),uPt=()=>Ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",version:"1.1",viewBox:"0 0 196 216",xmlSpace:"preserve",children:[Ge.jsx("path",{fill:"#0198B8",d:"M66.841 183.009c.049 4.355.097 8.71-.27 13.485-11.818-6.767-23.167-14.04-34.66-21.077-3.023-1.85-6.494-2.968-9.759-4.421-1.994-5.399-3.99-10.797-5.564-16.59 2.378.369 4.526.837 6.264 1.947 12.42 7.933 24.72 16.054 37.157 23.961 2.028 1.29 4.543 1.816 6.832 2.695z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M56.298 102c.85-.912 1.624-2.505 2.565-2.611 3.038-.343 6.137-.139 9.679.29 1.212 1.44 1.753 2.758 2.736 3.396 17.255 11.216 34.541 22.386 51.898 33.444 1.855 1.182 4.195 1.604 6.31 2.38-.19 1.28.077 3.15-.662 3.723-1.792 1.39-4.052 2.174-6.483 2.884-1.164-1.446-1.731-2.93-2.809-3.643-7.175-4.742-14.43-9.367-21.72-13.934-4.877-3.057-9.855-5.954-14.788-8.923-1.091-.413-2.182-.827-3.71-1.653-7.963-5.393-15.49-10.373-23.016-15.353z",opacity:"1"}),Ge.jsx("path",{fill:"#13E5D1",d:"M129.377 138.545c-2.006-.422-4.346-.844-6.201-2.026-17.357-11.058-34.643-22.228-51.898-33.444-.983-.638-1.524-1.957-2.285-3.3 3.358-.406 6.73-.473 10.563-.1 1.243 1.615 1.78 3.14 2.856 3.903 3.597 2.547 7.509 4.656 11.063 7.256 2.387 1.748 4.374 4.043 6.254 6.143-.431.113-.606.145-.713.247-.096.092-.118.261-.172.397l5.186 1.336c1.656.136 3.312.279 4.968.406 7.268.557 12.628 3.671 15.482 10.766 1.153 2.866 3.167 5.386 4.897 8.416z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M82.727 119.17a257.804 257.804 0 0115.086 8.759c7.29 4.567 14.544 9.192 21.719 13.934 1.078.713 1.645 2.197 2.45 3.691-2.826 1.962-5.652 3.557-9.194 5.557-2.288-4.191-4.438-7.98-6.446-11.841-3.98-7.655-7.928-7.877-13.248-.74-5.877-3.234-11.26-6.38-16.642-9.524 1.993-3.225 3.986-6.449 6.275-9.837z",opacity:"1"}),Ge.jsx("path",{fill:"#57DB45",d:"M180.423 56.014c.762 2.732 1.524 5.464 1.853 8.58-1.646-.019-3-.2-4.05-.863-9.341-5.915-18.569-12.013-27.954-17.857-6.12-3.811-12.448-7.29-18.682-10.92-.078-2.364-.156-4.729.227-7.511 11.469 6.52 22.417 13.556 33.511 20.353 4.879 2.989 10.054 5.493 15.095 8.218z",opacity:"1"}),Ge.jsx("path",{fill:"#06A3BE",d:"M66.914 182.573c-2.362-.443-4.877-.97-6.905-2.259-12.437-7.907-24.737-16.028-37.157-23.96-1.738-1.11-3.886-1.58-6.217-2.344-.464-.472-.555-.944-.662-2.2.014-2.802.045-4.819.445-6.821 4.9 2.647 9.35 5.428 13.983 7.865 3.738 1.966 7.696 3.516 11.557 5.25 5.502 9.625 13.99 15.097 25.029 17.64 0 2.146 0 4.27-.073 6.83z",opacity:"1"}),Ge.jsx("path",{fill:"#088FB2",d:"M22.181 171.339c3.236 1.11 6.707 2.227 9.73 4.078 11.493 7.036 22.842 14.31 34.591 21.536.346 1.483.346 2.924.346 4.552-19.021-2.271-32.731-12.099-42.868-27.5-.534-.811-1.177-1.55-1.799-2.666z",opacity:"1"}),Ge.jsx("path",{fill:"#5CDB3C",d:"M180.408 55.677c-5.026-2.388-10.201-4.892-15.08-7.881-11.094-6.797-22.042-13.833-33.376-20.778-.418-2.055-.51-4.103-.145-6.568 1.673.084 3 .414 4.09 1.112 10.474 6.71 20.862 13.554 31.389 20.18 2.318 1.459 5.084 2.206 7.644 3.281 1.821 3.44 3.642 6.878 5.478 10.654z",opacity:"1"}),Ge.jsx("path",{fill:"#59DD55",d:"M131.458 35.376c6.366 3.207 12.693 6.687 18.814 10.498 9.385 5.844 18.613 11.942 27.954 17.857 1.05.664 2.404.844 3.974 1.244.501 2.046.646 4.098.38 6.545-7.279-3.892-14.065-8.316-21.058-12.385-2.192-1.275-4.942-1.59-7.436-2.346-5.384-3.857-10.328-8.777-16.286-11.25-5.178-2.148-7.703-4.195-6.342-10.163z",opacity:"1"}),Ge.jsx("path",{fill:"#01E3E3",d:"M15.447 90.994c-.065-4.355-.131-8.71.255-13.521 2.615.575 4.824 1.524 6.932 2.657 5.425 2.916 10.805 5.913 16.203 8.878.046 4.358.092 8.716-.295 13.527-3.835-1.435-7.207-3.382-10.647-5.197-4.118-2.173-8.296-4.234-12.448-6.344z",opacity:"1"}),Ge.jsx("path",{fill:"#22E3B4",d:"M100.982 92.49c-5.371.802-10.758 1.513-16.107 2.443-2.781.484-4.543-.264-5.988-2.802-3.166-5.56-6.618-10.957-10.33-17.038 2.094-1.064 3.92-1.994 6.137-2.627 1.35 1.37 2.138 2.71 3.302 3.476 6.054 3.99 12.27 7.737 18.282 11.79 1.813 1.222 3.15 3.153 4.704 4.759z",opacity:"1"}),Ge.jsx("path",{fill:"#66DB3A",d:"M174.883 44.68c-2.513-.732-5.279-1.48-7.597-2.938-10.527-6.626-20.915-13.47-31.39-20.18-1.09-.698-2.416-1.028-3.964-1.533-1.176-3.157-.493-4.067 3.096-3.379 17.434 3.343 30.305 13.045 39.855 28.03z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M173.516 175.205c-2.971 3.499-5.943 6.998-9.27 10.29-4.452-3.19-8.447-6.328-12.682-9.1-2.676-1.75-5.71-2.954-8.585-4.403 3.165-2.552 6.33-5.105 10.158-7.814 2.674.924 4.708 1.962 6.688 3.095 4.578 2.62 9.13 5.285 13.691 7.932z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M128.157 117.563c-5.08.066-10.162.133-15.708-.24-1.486-1.621-2.32-3.067-3.56-3.937-4.746-3.333-9.7-6.372-14.403-9.762-1.448-1.044-2.341-2.857-3.488-4.318 5.015-.057 10.03-.114 15.524.242 1.13 1.272 1.615 2.373 2.46 2.95 4.987 3.41 10.154 6.566 15.047 10.101 1.69 1.22 2.77 3.285 4.128 4.964z",opacity:"1"}),Ge.jsx("path",{fill:"#26E2A8",d:"M101.374 92.561c-1.947-1.676-3.283-3.607-5.096-4.83-6.011-4.052-12.228-7.798-18.282-11.789-1.164-.767-1.951-2.106-2.947-3.525 2.391-1.668 4.817-2.992 7.748-4.059 2.898 1.398 5.29 2.537 7.683 3.677 1.158 2.159 2.405 4.276 3.453 6.487 1.481 3.128 3.688 4.935 8.075 4.528 3.838 2.53 6.91 5.09 9.981 7.649-3.408.644-6.815 1.289-10.615 1.862z",opacity:"1"}),Ge.jsx("path",{fill:"#52DD5A",d:"M154.217 57.132c2.363.412 5.113.728 7.305 2.003 6.993 4.069 13.78 8.493 20.991 12.823.386 3.074.426 6.106.057 9.544-8.285-4.232-16.162-8.87-24.038-13.508a10797.74 10797.74 0 01-4.315-10.862z",opacity:"1"}),Ge.jsx("path",{fill:"#00CFD8",d:"M16.05 144.975c-.032 2.016-.063 4.033-.11 6.474-.266-1.494-.726-3.41-.731-5.328-.036-15.064.016-30.13.484-45.645 2.058.335 3.731 1.02 5.277 1.925 5.976 3.495 11.912 7.06 17.863 10.6.047 2.703.095 5.406-.273 8.51-7.515-3.888-14.615-8.178-22.472-12.926 0 3.858 0 6.64-.026 9.87-.011 3.147.004 5.844-.011 8.991-.014 3.152.002 5.853-.008 9.004-.015 3.14-.004 5.833.006 8.525z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M112.026 99.266c3.355-.08 6.71-.16 10.58.153 7.661 4.795 14.808 9.196 21.955 13.596v4.757c-3.706 0-7.16 0-11.087-.418-1.152-1.264-1.678-2.334-2.536-2.918-5.006-3.407-10.197-6.553-15.088-10.114-1.635-1.19-2.57-3.343-3.824-5.056z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M38.909 88.559c-5.47-2.516-10.85-5.513-16.275-8.429-2.108-1.133-4.317-2.082-6.836-3.111-.392-3.025-.428-6.053-.01-9.536 2.605.583 4.8 1.543 6.903 2.674 5.414 2.913 10.786 5.902 16.176 8.86.038 3.03.076 6.062.042 9.542z",opacity:"1"}),Ge.jsx("path",{fill:"#04D9DF",d:"M142.637 172.105c3.216 1.336 6.251 2.54 8.927 4.29 4.235 2.772 8.23 5.91 12.376 9.23-1.94 2.225-3.928 4.112-6.416 5.68-2.805-2.126-5.087-3.967-7.423-5.736-4.688-3.55-9.406-7.062-14.111-10.59 2.101-.92 4.203-1.841 6.647-2.874z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M56.216 102.46c7.609 4.52 15.135 9.5 22.722 14.795-7.345.314-14.751.314-22.804.314 0-4.869 0-9.758.082-15.108z",opacity:"1"}),Ge.jsx("path",{fill:"#00D9DE",d:"M38.904 112.552c-6.022-3.09-11.958-6.656-17.934-10.151-1.546-.904-3.22-1.59-5.178-2.382-.41-2.718-.475-5.43-.443-8.582 4.25 1.667 8.428 3.728 12.546 5.9 3.44 1.816 6.812 3.763 10.576 5.658.41 3.04.456 6.074.433 9.557z",opacity:"1"}),Ge.jsx("path",{fill:"#02ABC3",d:"M16.418 144.989c-.38-2.706-.39-5.398-.012-8.534 2.24.512 4.135 1.395 5.936 2.439 5.769 3.34 11.503 6.74 17.25 10.117.75 2.772 1.498 5.544 2.306 8.705-3.801-1.346-7.759-2.896-11.497-4.862-4.633-2.437-9.084-5.218-13.983-7.865z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M90.544 99.234c1.6 1.533 2.494 3.346 3.942 4.39 4.703 3.39 9.657 6.43 14.404 9.762 1.239.87 2.073 2.316 3.106 3.838-2.395.419-4.804.497-7.903.314-1.82-.378-2.949-.495-4.078-.611-2.166-2.05-4.153-4.345-6.54-6.093-3.554-2.6-7.466-4.71-11.063-7.256-1.077-.763-1.613-2.288-2.409-3.804 3.355-.43 6.722-.521 10.541-.54z",opacity:"1"}),Ge.jsx("path",{fill:"#00BDCD",d:"M16.08 126.997c-.014-2.698-.029-5.395.343-8.539 2.267.537 4.164 1.488 6.024 2.508 5.47 2.998 10.925 6.023 16.386 9.038.048 3.032.096 6.064-.268 9.501-7.769-3.9-15.127-8.204-22.484-12.508z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M39.985 66.998c-.326 2.73-.653 5.46-1.395 8.557-1.717-.33-3.022-1.016-4.317-1.721-6.023-3.282-12.043-6.569-18.064-9.854.57-2.436 1.14-4.873 2.25-7.643a29.74 29.74 0 017.06 2.707c4.853 2.594 9.648 5.296 14.466 7.954z",opacity:"1"}),Ge.jsx("path",{fill:"#02B4C8",d:"M16.05 127.446c7.388 3.855 14.746 8.16 22.445 12.509.642 2.778.942 5.511 1.17 8.65-5.82-2.971-11.554-6.371-17.323-9.711-1.801-1.044-3.695-1.927-5.91-2.888-.379-2.707-.395-5.408-.381-8.56z",opacity:"1"}),Ge.jsx("path",{fill:"#00C6D3",d:"M38.904 129.564c-5.532-2.575-10.987-5.6-16.457-8.598a74.807 74.807 0 00-5.998-2.956c-.36-2.785-.36-5.567-.36-9.425 7.856 4.748 14.956 9.038 22.4 13.372.391 2.418.439 4.792.415 7.607z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M159.333 145.996c0-2.371 0-4.742.456-7.537 2.769.814 5.081 2.052 7.395 3.286 5.17 2.758 10.34 5.513 15.511 8.27-.218 2.093-.435 4.186-1.201 6.632-2.487-.413-4.517-1.009-6.349-1.978-5.313-2.81-10.547-5.771-15.812-8.673z",opacity:"1"}),Ge.jsx("path",{fill:"#36E087",d:"M43.012 25.04c1.452-.952 2.904-1.903 4.846-2.6 6.652 4.024 12.816 7.791 18.98 11.558-.346 3.21-.692 6.42-1.446 9.266-1.63-1.61-2.685-3.108-4.105-4.06-4.952-3.319-10.12-6.323-15.008-9.73-1.426-.994-2.196-2.93-3.267-4.434z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M182.848 137.005c.043 2.042.085 4.084-.298 6.554-5.814-2.777-11.152-6.073-16.617-9.141-1.954-1.097-4.217-1.646-6.338-2.445-.083-2.362-.166-4.724.204-7.511 1.925.273 3.46.865 4.857 1.688 6.086 3.582 12.132 7.23 18.192 10.855z",opacity:"1"}),Ge.jsx("path",{fill:"#10D2DA",d:"M135.591 174.997c5.104 3.51 9.822 7.021 14.51 10.572 2.336 1.769 4.618 3.61 7.07 5.788-1.752 1.637-3.65 2.903-5.878 3.865-6.792-4.604-13.253-8.903-19.714-13.201-.304-3.114-1.881-6.883 4.012-7.024z",opacity:"1"}),Ge.jsx("path",{fill:"#2EE29A",d:"M182.85 123.001c.044 2.044.088 4.087-.298 6.559-2.865-.817-5.323-2.023-7.734-3.316-5.092-2.732-10.158-5.51-15.235-8.268-.083-2.367-.165-4.733.205-7.523 1.196-.108 1.986.128 2.677.533 6.804 3.99 13.593 8.006 20.386 12.015z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M42.672 25.09c1.41 1.454 2.181 3.39 3.607 4.384 4.889 3.407 10.056 6.411 15.008 9.73 1.42.952 2.475 2.45 3.713 4.031a22.66 22.66 0 01-6.684 2.299c-1.223-1.3-1.863-2.572-2.894-3.245-6.364-4.15-12.816-8.163-19.239-12.223 2.05-1.641 4.1-3.283 6.489-4.975z",opacity:"1"}),Ge.jsx("path",{fill:"#2EE29A",d:"M35.89 30.195a473.368 473.368 0 0119.532 12.094c1.031.673 1.67 1.946 2.525 3.284-1.092.995-2.22 1.647-4.042 2.354a312.328 312.328 0 01-19.87-11.69c-.703-.449-.679-2.038-.991-3.097.85-.94 1.7-1.878 2.845-2.945z",opacity:"1"}),Ge.jsx("path",{fill:"#3CDF74",d:"M182.838 95.002c.044 2.044.087 4.087-.3 6.558-3.87-1.491-7.28-3.461-10.755-5.314-4.021-2.144-8.098-4.185-12.151-6.27-.091-2.039-.182-4.078.203-6.542a33.016 33.016 0 018.01 3.094c5.042 2.744 10 5.64 14.993 8.474z",opacity:"1"}),Ge.jsx("path",{fill:"#38DF7C",d:"M159.495 90.398c4.19 1.663 8.267 3.704 12.288 5.848 3.474 1.853 6.886 3.823 10.687 5.747.41 2.048.456 4.09.076 6.562-3.872-1.488-7.29-3.459-10.77-5.313-4.032-2.148-8.117-4.193-12.179-6.283-.08-2.046-.159-4.092-.102-6.56z",opacity:"1"}),Ge.jsx("path",{fill:"#04D9DF",d:"M76.254 129.3c5.58 2.85 10.963 5.996 16.54 9.41-.633 2.14-1.462 4.01-2.936 6.076-6.049-3.127-11.451-6.45-16.854-9.775a537.765 537.765 0 013.25-5.712z",opacity:"1"}),Ge.jsx("path",{fill:"#44DE6C",d:"M182.906 94.568c-5.06-2.4-10.019-5.296-15.06-8.04-2.43-1.322-5.018-2.355-7.879-3.514-.47-2.047-.597-4.1-.263-6.583 3.218.886 6.032 2.098 8.72 3.542 4.845 2.602 9.615 5.343 14.416 8.026.045 2.045.09 4.09.066 6.57z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M182.917 122.567c-6.86-3.575-13.648-7.592-20.452-11.581-.691-.405-1.48-.641-2.552-.96-.413-1.73-.498-3.454-.111-5.598 3.012.683 5.653 1.602 8.073 2.927 5.055 2.769 9.993 5.751 14.98 8.646.043 2.044.086 4.088.062 6.566z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M173.79 175.063c-4.836-2.505-9.387-5.17-13.965-7.79a75.774 75.774 0 00-6.388-3.251 24.082 24.082 0 013.526-6.486c6.92 4.175 13.374 8.288 19.829 12.401-.91 1.662-1.818 3.323-3.001 5.126z",opacity:"1"}),Ge.jsx("path",{fill:"#00C6D3",d:"M131.465 182.46c6.575 3.86 13.036 8.158 19.505 12.8-2.413 1.401-4.832 2.458-7.663 3.16-4.167-2.713-7.922-5.073-11.677-7.433-.093-2.696-.186-5.393-.165-8.528z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M159.236 146.383c5.362 2.515 10.596 5.475 15.909 8.286 1.832.97 3.862 1.565 6.17 2.331-.242 2.213-.853 4.426-2.005 6.782-4.846-2.523-9.07-5.332-13.486-7.796-2.34-1.306-5.014-2.011-7.537-2.988.284-2.076.568-4.152.949-6.615z",opacity:"1"}),Ge.jsx("path",{fill:"#48DD63",d:"M182.907 87.574c-4.868-2.258-9.638-5-14.482-7.601-2.69-1.444-5.503-2.656-8.62-3.972-.713-2.409-1.067-4.818-1.347-7.617 7.95 4.248 15.827 8.886 24.044 13.568.385 1.761.428 3.479.405 5.622z",opacity:"1"}),Ge.jsx("path",{fill:"#3BE189",d:"M182.921 115.566c-5.053-2.46-9.99-5.442-15.046-8.21-2.42-1.326-5.061-2.245-7.952-3.343-.431-2.064-.513-4.132-.46-6.628 4.196 1.664 8.281 3.71 12.312 5.857 3.48 1.854 6.899 3.825 10.708 5.747.41 2.05.457 4.096.438 6.577z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M47.885 52.757c-.817.965-1.634 1.931-3.08 3.02-7.014-4.162-13.399-8.447-19.784-12.732.813-1.245 1.626-2.49 3.083-3.849 4.956 2.48 9.387 4.9 13.535 7.734 2.324 1.588 4.18 3.862 6.246 5.827z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M40.25 66.76c-5.083-2.42-9.878-5.122-14.731-7.716-2.112-1.129-4.343-2.034-6.888-3.041.25-1.793.87-3.585 2.047-5.683 2.473.551 4.455 1.287 6.292 2.287 5.016 2.732 9.972 5.576 14.952 8.376-.47 1.846-.939 3.692-1.673 5.776z",opacity:"1"}),Ge.jsx("path",{fill:"#22E3B4",d:"M42.186 60.792c-5.244-2.609-10.2-5.453-15.216-8.185-1.837-1-3.819-1.736-6.082-2.585.951-2.219 2.25-4.445 3.84-6.824 6.678 4.132 13.063 8.417 19.794 12.73-.46 1.576-1.266 3.124-2.336 4.864zM159.464 132.392c2.252.38 4.515.929 6.469 2.026 5.465 3.068 10.803 6.364 16.552 9.575.379 1.73.397 3.455.313 5.601-5.273-2.336-10.444-5.091-15.614-7.849-2.314-1.234-4.626-2.472-7.27-3.712-.414-1.743-.497-3.483-.45-5.641z",opacity:"1"}),Ge.jsx("path",{fill:"#2CE2A4",d:"M159.455 118.395c5.205 2.34 10.271 5.117 15.363 7.849a115.926 115.926 0 007.67 3.75c.408 2.051.453 4.097.429 6.578-6.13-3.191-12.175-6.84-18.26-10.422-1.399-.823-2.933-1.415-4.735-2.115-.418-1.742-.506-3.481-.467-5.64z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M107.005 77c.83-1.862 1.66-3.724 3.114-5.754 6.028 3.442 11.431 7.05 16.835 10.66-.85 1.562-1.7 3.124-3.171 4.838-6.008-3.147-11.393-6.445-16.778-9.743z",opacity:"1"}),Ge.jsx("path",{fill:"#13E5D1",d:"M158.124 153.32c2.686.655 5.36 1.36 7.7 2.666 4.416 2.464 8.64 5.273 13.304 8.085-.331 1.922-1.024 3.697-2.027 5.67-6.764-3.917-13.219-8.03-19.872-12.406.112-1.406.422-2.55.895-4.015z",opacity:"1"}),Ge.jsx("path",{fill:"#10D2DA",d:"M72.707 135.176c5.7 3.16 11.102 6.483 16.876 9.808-.464 1.924-1.298 3.846-2.388 6.357l-18.676-9.997c1.469-2.266 2.68-4.134 4.188-6.168z",opacity:"1"}),Ge.jsx("path",{fill:"#40E28D",d:"M127.235 81.727c-5.685-3.43-11.088-7.04-16.845-10.681.36-1.67 1.074-3.307 2.092-5.642l18.892 9.704c-1.531 2.556-2.695 4.498-4.14 6.619z",opacity:"1"}),Ge.jsx("path",{fill:"#32E29F",d:"M106.734 77.187c5.656 3.112 11.04 6.41 16.77 9.736-2.041 4.98-6.953 2.77-11.099 3.845-3.487-2.629-6.559-5.188-9.995-7.75 1.108-1.883 2.581-3.764 4.324-5.83z",opacity:"1"}),Ge.jsx("path",{fill:"#26E2A8",d:"M144.662 112.586c-7.248-3.971-14.395-8.372-21.603-13.101 3.302-.374 6.663-.42 10.541-.073 4.004 2.466 7.492 4.54 10.98 6.613.06 2.044.121 4.088.082 6.561z",opacity:"1"}),Ge.jsx("path",{fill:"#2CE2A4",d:"M48.197 52.661c-2.379-1.87-4.234-4.143-6.558-5.731-4.148-2.835-8.579-5.255-13.244-7.882 1.117-1.9 2.587-3.768 4.353-5.772.608.923.584 2.512 1.287 2.96 6.318 4.029 12.765 7.857 19.54 11.745-1.446 1.528-3.256 3.057-5.378 4.68z",opacity:"1"}),Ge.jsx("path",{fill:"#38DF7C",d:"M66.904 33.565c-6.23-3.334-12.394-7.101-18.71-11.163a27.463 27.463 0 017.47-3.006c3.998 2.755 7.584 5.18 11.17 7.604.045 2.043.09 4.087.07 6.565z",opacity:"1"}),Ge.jsx("path",{fill:"#00BDCD",d:"M131.497 191.427c3.888 1.92 7.643 4.28 11.448 6.969-3.55 1.412-7.15 2.496-11.582 3.83 0-3.906 0-7.133.134-10.8z",opacity:"1"}),Ge.jsx("path",{fill:"#32E6BE",d:"M111.61 99.179c1.67 1.8 2.605 3.952 4.24 5.143 4.89 3.56 10.082 6.707 15.088 10.114.858.584 1.384 1.654 2.086 2.837-1.387.386-2.797.437-4.537.388-1.688-1.777-2.768-3.841-4.458-5.062-4.893-3.535-10.06-6.69-15.047-10.1-.845-.578-1.33-1.68-2-2.884 1.392-.404 2.802-.464 4.628-.436z",opacity:"1"}),Ge.jsx("path",{fill:"#3CDF74",d:"M66.901 26.546c-3.653-1.97-7.239-4.395-10.86-7.165 3.35-1.367 6.735-2.387 10.928-3.65 0 3.915 0 7.138-.068 10.815z",opacity:"1"}),Ge.jsx("path",{fill:"#23E0D5",d:"M16.109 64.287c6.121 2.978 12.14 6.265 18.164 9.547 1.295.705 2.6 1.392 4.249 2.12.395.793.442 1.553.417 2.688-5.462-2.583-10.834-5.572-16.248-8.485-2.103-1.131-4.298-2.09-6.798-3.113-.193-.806-.039-1.628.216-2.757z",opacity:"1"}),Ge.jsx("path",{fill:"#32E29F",d:"M144.68 105.59c-3.588-1.639-7.076-3.712-10.626-6.115 3.355-.33 6.772-.33 10.726-.33 0 2.18 0 4.094-.1 6.444zM90.45 71.705c-2.363-.81-4.755-1.95-7.3-3.396.974-1.133 2.102-1.96 3.466-2.96 1.41 2.235 2.607 4.13 3.834 6.356z",opacity:"1"}),Ge.jsx("path",{fill:"#32E6BE",d:"M99.73 116.977c1.414.066 2.543.183 3.91.537.249.441.26.644.33 1.145-1.669-.147-3.397-.593-5.126-1.038.054-.136.076-.305.172-.397.107-.102.282-.134.713-.247z",opacity:"1"})]}),cPt=()=>Ge.jsx("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1594 1595",width:"24",height:"24",style:{fill:"inherit"},children:Ge.jsx("path",{fillRule:"evenodd",d:"m877 11.5l-32.8 403.8c-15.5-1.8-31-2.7-46.9-2.7-19.9 0-39.4 1.3-58.5 4.4l-18.6-195.6c-0.4-6.2 4.5-11.6 10.7-11.6h33.2l-16-197.8c-0.4-6.2 4.5-11.6 10.2-11.6h108.5c6.2 0 11.1 5.4 10.2 11.1zm-166.1 410.4c-35 8-68.2 20.8-98.8 37.6l-84.6-177.5c-2.6-5.3 0-11.9 5.8-14.2l31.4-11.5-82.8-180.6c-2.6-5.3 0-11.9 5.8-14.2l101.9-37.2c5.7-2.2 11.9 1.4 13.7 7.1 0.4 0 107.6 390.5 107.6 390.5zm-357.4-278l234.3 330.2c-29.7 19.5-56.7 42.5-79.7 69.1l-140.5-138.1c-4.4-4.4-3.9-11.5 0.5-15.5l25.7-21.3-139.6-141.2c-4.4-4.4-3.9-11.5 0.9-15.5l82.9-69.5c4.8-4 11.5-3.1 15 1.8zm136.9 421.4c-21.3 27.9-38.5 58.9-51.4 92.1l-178.9-81.9c-5.8-2.2-8-9.3-4.9-14.6l16.8-28.8-179.8-85c-5.3-2.6-7.5-9.3-4.4-14.6l54-93.8c3.1-5.3 10.2-7.1 15.1-3.6zm-466 24.8c0.9-6.2 7.1-9.7 12.8-8.4l392 102.3c-10.2 33.2-15.9 68.2-16.8 104.5l-196.2-16c-6.2-0.4-10.7-6.2-9.3-12.4l5.7-32.7-198-18.6c-6.2-0.5-10.1-6.2-9.3-12.4l18.6-106.7zm-15 264.7l403.5-37.2c1.8 35.9 8.9 70.9 19.9 103.6l-189.5 52.3c-5.8 1.3-12-2.2-12.9-8.4l-5.7-32.8-192.3 50c-5.7 1.4-11.9-2.2-12.8-8.4l-19.1-106.7c-0.9-6.2 3.1-11.9 9.3-12.4zm63.4 280.7c-3.1-5.3-0.9-11.9 4.4-14.6l365.9-173.5c13.7 32.7 32.3 63.3 54.4 90.7l-160.3 114.2c-4.9 3.6-12 2.2-15.1-3.1l-16.8-29.2-163.4 112.9c-4.9 3.5-12 1.8-15.1-3.5 0 0-54.5-93.9-54-93.9zm525.7-9.3l-111.6 162c-3.5 5.4-10.6 6.2-15.5 2.3l-25.7-21.7-115.1 162c-3.6 4.9-10.2 5.8-15.1 1.8l-83.3-69.5c-4.8-4-5.3-11.1-0.9-15.5l284.8-288.2c24.4 25.6 52.3 48.2 82.4 66.8zm-138.6 395.8c-5.8-2.2-8.4-8.9-5.8-14.2l168.8-368.3c31 15.9 64.7 27.9 99.7 34.5l-49.7 190.4c-1.3 5.7-7.9 9.3-13.7 7.1l-31.4-11.5-52.7 191.7c-1.8 5.7-8 9.3-13.8 7l-101.8-37.1zm337.5-340c19.9 0 39.4-1.4 58.4-4.5l18.6 195.7c0.5 6.2-4.4 11.5-10.6 11.5h-33.2l15.9 197.9c0.9 6.2-3.9 11.5-10.1 11.5h-108.6c-5.7 0-10.6-5.3-10.2-11.5l32.8-403.7c15.5 2.2 31 3.1 47 3.1zm174.5-728.3c-31-15.5-64.2-27.5-99.7-34.5l49.6-190.4c1.8-5.8 8-9.3 13.8-7.1l31.4 11.5 52.7-191.7c1.8-5.7 8-9.3 13.8-7.1l101.8 37.2c5.8 2.2 8.5 8.4 5.8 14.2zm391.6-207.2l-284.9 288.2c-23.9-25.7-51.3-48.2-81.9-66.8l111.6-162.1c3.6-4.8 10.7-6.2 15.5-2.2l25.7 21.7 115.2-162c3.5-4.9 10.6-5.8 15-1.8l83.3 69.5c4.9 4 4.9 11.1 0.5 15.5zm153.7 227.1l-365.9 173.6c-14.2-32.8-32.3-63.4-54.5-90.8l160.3-114.2c4.9-4 12-2.2 15.1 3.1l16.8 28.8 163.5-112.9c4.9-3.1 11.9-1.8 15 3.5l54.5 93.9c3.1 5.3 1.4 11.9-4.4 14.6zm58 146.5l18.6 106.7c0.9 6.2-3.1 11.5-9.3 12.4l-403.5 37.6c-1.8-36.3-8.9-70.8-19.9-103.6l189.6-52.2c5.7-1.8 11.9 2.2 12.8 8.4l5.8 32.8 192.2-50.1c5.8-1.3 12 2.3 12.8 8.5zm-18.6 391.3l-392-102.3c10.2-33.2 16-68.1 16.9-104.4l196.2 15.9c6.2 0.9 10.2 6.2 9.3 12.4l-5.8 32.8 198 18.6c6.2 0.8 10.2 6.1 9.3 12.3l-18.6 106.7c-0.9 6.2-7.1 9.8-12.8 8.5zm-104.1 243.9c-3.1 5.3-10.2 6.6-15.1 3.5l-333.5-230.2c21.3-27.9 38.5-58.9 51.4-92.1l178.9 81.9c5.8 2.7 8 9.3 4.9 14.6l-16.8 28.8 179.8 85c5.3 2.7 7.5 9.3 4.4 14.6zm-446.5-135.9c29.7-19 56.3-42.5 79.8-69l140.4 138.1c4.4 4.4 4.4 11.5-0.5 15.5l-25.7 21.2 139.6 141.3c4 4.4 4 11.5-0.9 15.4l-82.8 69.6c-4.5 3.9-11.6 3.1-15.1-1.8l-234.3-330.3zm-1.8 449.8c-5.7 2.2-11.9-1.3-13.7-7.1l-107.2-390.4c35-8 68.2-20.8 98.8-37.7l84.6 177.6c2.6 5.7 0 12.4-5.8 14.1l-31.4 11.5 82.8 180.7c2.6 5.7 0 11.9-5.8 14.1l-101.8 37.2z"})});function fPt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yTe(e){switch(e){case"azure-ad":return"Microsoft";case"github":return"GitHub";case"okta":return"Okta";case"descope":return"Descope";case"aws-cognito":return"Cognito";default:return fPt(e)}}function dPt(e){switch(e){case"google":return Ge.jsx(pTe,{});case"github":return Ge.jsx(dTe,{});case"azure-ad":return Ge.jsx(gTe,{});case"okta":return Ge.jsx(cPt,{});case"auth0":return Ge.jsx(sPt,{});case"descope":return Ge.jsx(uPt,{});case"aws-cognito":return Ge.jsx(lPt,{});default:return null}}const hPt=({provider:e,onClick:t,isSignIn:r})=>{const{t:n}=Kv();return Ge.jsx(Ah,{variant:"outlined",color:"inherit",startIcon:dPt(e.toLowerCase()),onClick:t,sx:{width:"100%",textTransform:"none",borderColor:ro[400],padding:1.5,paddingLeft:3,justifyContent:"flex-start"},children:r?n("components.molecules.auth.providerButton.continue",{provider:yTe(e)}):n("components.molecules.auth.providerButton.signup",{provider:yTe(e)})})},pPt=({title:e,error:t,providers:r,callbackUrl:n,onPasswordSignIn:i,onOAuthSignIn:v,onForgotPassword:l,onSignUp:h,renderLogo:a,passwordChecklistSettings:u})=>{const[g,o]=bt.useState(!1),[_,x]=bt.useState(!u),[p,b]=WW(!0),[c,s]=WW(),[d,f]=bt.useState(t),{t:m}=Kv(),E=v&&r.length;bt.useEffect(()=>{f(void 0),y.resetForm()},[p]),bt.useEffect(()=>{f(t)},[t]);const y=dU({initialValues:{email:"",password:""},validationSchema:wK({email:CD().required(m("components.molecules.auth.authLogin.form.emailRequired")),password:CD().required(m("components.molecules.auth.authLogin.form.passwordRequired"))}),onSubmit:async({email:R,password:A})=>{if(o(!0),!!i)try{p?await i(R,A,n):h&&await h(R,A,n)}catch(D){D instanceof Error&&f(D.message)}finally{o(!1)}},validateOnBlur:!0});return Ge.jsxs(YLt,{title:e,renderLogo:a,children:[d?Ge.jsx(z0,{sx:{my:1},severity:"error",children:m([`components.molecules.auth.authLogin.error.${d.toLowerCase()}`,"components.molecules.auth.authLogin.error.default"])}):null,i?Ge.jsxs("form",{onSubmit:y.handleSubmit,children:[Ge.jsx(DS,{id:"email",placeholder:m("components.molecules.auth.authLogin.form.email"),size:"medium",value:y.values.email,hasError:!!y.errors.email,description:y.touched.email?y.errors.email:void 0,onBlur:y.handleBlur,onChange:R=>y.setFieldValue("email",R.target.value)}),Ge.jsx(DS,{id:"password",placeholder:m("components.molecules.auth.authLogin.form.password"),value:y.values.password,hasError:!!y.errors.password,description:y.touched.password?y.errors.password:void 0,onBlur:y.handleBlur,onChange:R=>y.setFieldValue("password",R.target.value),type:c?"text":"password",size:"medium",endAdornment:Ge.jsx(xF,{position:"end",children:Ge.jsx(Ts,{"aria-label":"toggle password visibility",onClick:s,children:c?Ge.jsx(fTe,{}):Ge.jsx(cTe,{})})})}),!p&&y.values.password.length&&u?Ge.jsxs(ni,{sx:{border:1,marginTop:1,padding:1.5,borderRadius:1,borderColor:"grey.400","& .checklist-icon":{marginTop:.5},fontSize:14},children:[Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.passwordMustContain"}),Ge.jsx(PLt,{rules:u.rules,minLength:u.minLength,maxLength:u.maxLength,value:y.values.password,messages:u.messages,onChange:x})]}):null,p&&l?Ge.jsx($E,{href:"#",marginTop:1,onClick:l,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.forgotPassword"})}):null,Ge.jsx(Ah,{type:"submit",disabled:g||!p&&!_,variant:"contained",sx:{marginTop:3,width:"100%"},children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.continue"})})]}):null,h?Ge.jsx(to,{direction:"row",alignItems:"center",gap:.5,marginTop:1,children:p?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Ko,{color:"text.primary",children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.noAccount"})}),Ge.jsx($E,{component:"button",onClick:b,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.signup"})})]}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Ko,{color:"text.primary",children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.alreadyHaveAccount"})}),Ge.jsx($E,{component:"button",onClick:b,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.signin"})})]})}):null,i&&E?Ge.jsx(Ko,{color:"text.primary",sx:{alignItems:"center",direction:"row",display:"flex",gap:2,marginTop:1,width:"100%",":before, :after":{content:'""',borderBottom:`1px solid ${ro[400]}`,height:"0.5px",flex:"1 0 auto"}},children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.or"})}):null,E?Ge.jsx(to,{color:"text.primary",marginTop:1,gap:1,children:r.map((R,A)=>Ge.jsx(hPt,{isSignIn:p,provider:R,onClick:()=>v(R,n)},`provider-${A}`))}):null]})};var PK={},vPt=ko;Object.defineProperty(PK,"__esModule",{value:!0}),PK.default=void 0;var gPt=vPt(Fo()),mPt=Ge,yPt=(0,gPt.default)((0,mPt.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutline");PK.default=yPt;function bPt(){const e=Jj(),{data:t,setAccessToken:r,user:n}=F1(),[i,v]=bt.useState(""),l=ao(Bp),h=jp(),a=async()=>{try{const g=await l.headerAuth();r(g.access_token),h("/")}catch(g){v(g.message)}},u=async(g,o,_)=>{const x=new FormData;x.append("username",g),x.append("password",o);try{const p=await l.passwordAuth(x);r(p.access_token),h(_)}catch(p){v(p.message)}};return bt.useEffect(()=>{v(e.get("error")||"")},[e]),bt.useEffect(()=>{t&&(t.requireLogin||h("/"),t.headerAuth&&a(),n&&h("/"))},[t,n]),Ge.jsx(pPt,{title:Ge.jsx(io,{path:"components.molecules.auth.authLogin.title"}),error:i,callbackUrl:"/",providers:(t==null?void 0:t.oauthProviders)||[],onPasswordSignIn:t!=null&&t.passwordAuth?u:void 0,onOAuthSignIn:async g=>{window.location.href=l.getOAuthEndpoint(g)},renderLogo:Ge.jsx(Fj,{style:{maxWidth:"60%",maxHeight:"90px"}})})}function _Pt(){var t,r;const e=ao($c);return Ge.jsx(xD,{children:Ge.jsx(ni,{my:2,display:"flex",flexGrow:1,children:Ge.jsx(uj,{variant:"app",markdown:e==null?void 0:e.markdown,allowHtml:(t=e==null?void 0:e.features)==null?void 0:t.unsafe_allow_html,latex:(r=e==null?void 0:e.features)==null?void 0:r.latex})})})}const xPt=({thread:e,error:t,isLoading:r})=>{const n=ao(Ib),[i,v]=bt.useState([]),l=ao(Bp),{t:h}=NF(),{threadId:a}=s1();bt.useEffect(()=>{e&&v(e.steps)},[e]);const u=bt.useCallback(async(p,b,c)=>{try{cd.promise(l.setFeedback(c,n),{loading:"Updating",success:s=>(v(d=>d.map(f=>f.id===p.id?{...f,feedback:{...c,id:s.feedbackId}}:f)),b(),"Feedback updated!"),error:s=>Ge.jsx("span",{children:s.message})})}catch(s){console.log(s)}},[]),g=bt.useCallback(async(p,b,c)=>{try{cd.promise(l.deleteFeedback(c,n),{loading:h("components.organisms.chat.Messages.index.updating"),success:()=>(v(s=>s.map(d=>d.id===p.id?{...d,feedback:void 0}:d)),b(),h("components.organisms.chat.Messages.index.feedbackUpdated")),error:s=>Ge.jsx("span",{children:s.message})})}catch(s){console.log(s)}},[]);if(r)return Ge.jsx(Ge.Fragment,{children:[1,2,3].map(p=>Ge.jsxs(to,{sx:{px:2,gap:4,mt:5,flexDirection:"row",justifyContent:"center"},children:[Ge.jsxs(to,{children:[Ge.jsx(By,{width:50}),Ge.jsx(By,{width:50})]}),Ge.jsx(By,{variant:"rounded",sx:{maxWidth:"60rem",width:"100%",height:100}})]},`thread-skeleton-${p}`))});if(!e||t)return null;const o=e.elements,_=[],x=N7e(i);return Ge.jsx(to,{direction:"row",flexGrow:1,width:"100%",height:"100%",children:Ge.jsxs($Se,{children:[Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsxs(z0,{sx:{mx:2},id:"thread-info",severity:"info",action:Ge.jsx(Ah,{component:a4,color:"inherit",size:"small",to:a?`/thread/${a}`:"/",children:Ge.jsx(io,{path:"components.organisms.threadHistory.Thread.backToChat"})}),children:[Ge.jsx(io,{path:"components.organisms.threadHistory.Thread.chatCreatedOn"})," ",new Intl.DateTimeFormat(void 0,{day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(e.createdAt)),"."]})}),Ge.jsx(HSe,{loading:!1,avatars:[],actions:_,elements:o||[],onFeedbackUpdated:u,onFeedbackDeleted:g,messages:x,autoScroll:!0})]})})};function EPt({threadId:e}){const t=jp(),r=ao($c),{clear:n,setIdToResume:i}=nd();if(!e||!(r!=null&&r.threadResumable))return null;const v=()=>{n(),i(e),cd.success("Chat resumed!"),r!=null&&r.dataPersistence||t("/")};return Ge.jsxs(ni,{display:"flex",flexDirection:"column",gap:1,p:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[Ge.jsx(Ah,{id:"resumeThread",onClick:v,variant:"contained",children:Ge.jsx(io,{path:"pages.ResumeButton.resumeChat"})}),Ge.jsx(lj,{})]})}function SPt(){const{id:e}=jEe(),t=ao(Bp),{data:r,error:n,isLoading:i}=U6(t,e?`/project/thread/${e}`:null,{revalidateOnFocus:!1,revalidateIfStale:!1}),[v,l]=tc(_w),{threadId:h}=s1(),a=h===e;return bt.useEffect(()=>{(v==null?void 0:v.currentThreadId)!==e&&l(u=>({...u,currentThreadId:e}))},[e]),Ge.jsx(xD,{children:Ge.jsxs(Ge.Fragment,{children:[a&&Ge.jsx(uTe,{}),!a&&Ge.jsxs(ni,{sx:{display:"flex",flexDirection:"column",flexGrow:1,gap:2},children:[Ge.jsx(ni,{sx:{width:"100%",flexGrow:1,overflow:"auto"},children:Ge.jsx(xPt,{thread:r,error:n,isLoading:i})}),Ge.jsx(EPt,{threadId:e})]})]})})}P5t([{path:"/",element:Ge.jsx(NLt,{})},{path:"/readme",element:Ge.jsx(_Pt,{})},{path:"/env",element:Ge.jsx(a8t,{})},{path:"/thread/:id?",element:Ge.jsx(SPt,{})},{path:"/element/:id",element:Ge.jsx(bOt,{})},{path:"/login",element:Ge.jsx(bPt,{})},{path:"/login/callback",element:Ge.jsx($5t,{})},{path:"*",element:Ge.jsx(Zj,{replace:!0,to:"/"})}]);var TPt=["shift","alt","meta","mod","ctrl"],wPt={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function LD(e){return(wPt[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function APt(e){return TPt.includes(e)}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&CPt([LD(e.key),LD(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&RPt([LD(e.key),LD(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){U_.clear()})})();var U_=new Set;function CPt(e){var t=Array.isArray(e)?e:[e];U_.has("meta")&&U_.forEach(function(r){return!APt(r)&&U_.delete(r.toLowerCase())}),t.forEach(function(r){return U_.add(r.toLowerCase())})}function RPt(e){var t=Array.isArray(e)?e:[e];e==="meta"?U_.clear():t.forEach(function(r){return U_.delete(r.toLowerCase())})}var kK={},MPt=ko;Object.defineProperty(kK,"__esModule",{value:!0}),kK.default=void 0;var IPt=MPt(Fo()),OPt=Ge,DPt=(0,IPt.default)((0,OPt.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");kK.default=DPt;var FK={},NPt=ko;Object.defineProperty(FK,"__esModule",{value:!0}),FK.default=void 0;var LPt=NPt(Fo()),PPt=Ge,kPt=(0,LPt.default)((0,PPt.jsx)("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}),"EmojiObjects");FK.default=kPt;var BK={},FPt=ko;Object.defineProperty(BK,"__esModule",{value:!0}),BK.default=void 0;var BPt=FPt(Fo()),zPt=Ge,UPt=(0,BPt.default)((0,zPt.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");BK.default=UPt;const $Pt={setVariableName:()=>{},setFunctionIndex:()=>{},setPromptMode:()=>{},setPlayground:()=>{},onNotification:()=>{},promptMode:"Formatted"},zK=bt.createContext($Pt);var UK={},HPt=ko;Object.defineProperty(UK,"__esModule",{value:!0}),UK.default=void 0;var GPt=HPt(Fo()),VPt=Ge,YPt=(0,GPt.default)((0,VPt.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");UK.default=YPt;var bTe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ol,function(){var r=Array.prototype.slice;function n(Be,yt){yt&&(Be.prototype=Object.create(yt.prototype)),Be.prototype.constructor=Be}function i(Be){return a(Be)?Be:oe(Be)}n(v,i);function v(Be){return u(Be)?Be:he(Be)}n(l,i);function l(Be){return g(Be)?Be:q(Be)}n(h,i);function h(Be){return a(Be)&&!o(Be)?Be:J(Be)}function a(Be){return!!(Be&&Be[x])}function u(Be){return!!(Be&&Be[p])}function g(Be){return!!(Be&&Be[b])}function o(Be){return u(Be)||g(Be)}function _(Be){return!!(Be&&Be[c])}i.isIterable=a,i.isKeyed=u,i.isIndexed=g,i.isAssociative=o,i.isOrdered=_,i.Keyed=v,i.Indexed=l,i.Set=h;var x="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",b="@@__IMMUTABLE_INDEXED__@@",c="@@__IMMUTABLE_ORDERED__@@",s="delete",d=5,f=1<<d,m=f-1,E={},y={value:!1},R={value:!1};function A(Be){return Be.value=!1,Be}function D(Be){Be&&(Be.value=!0)}function w(){}function S(Be,yt){yt=yt||0;for(var Zt=Math.max(0,Be.length-yt),ur=new Array(Zt),_r=0;_r<Zt;_r++)ur[_r]=Be[_r+yt];return ur}function C(Be){return Be.size===void 0&&(Be.size=Be.__iterate(I)),Be.size}function M(Be,yt){if(typeof yt!="number"){var Zt=yt>>>0;if(""+Zt!==yt||Zt===4294967295)return NaN;yt=Zt}return yt<0?C(Be)+yt:yt}function I(){return!0}function F(Be,yt,Zt){return(Be===0||Zt!==void 0&&Be<=-Zt)&&(yt===void 0||Zt!==void 0&&yt>=Zt)}function N(Be,yt){return O(Be,yt,0)}function k(Be,yt){return O(Be,yt,yt)}function O(Be,yt,Zt){return Be===void 0?Zt:Be<0?Math.max(0,yt+Be):yt===void 0?Be:Math.min(yt,Be)}var T=0,P=1,L=2,z=typeof Symbol=="function"&&Symbol.iterator,B="@@iterator",Y=z||B;function H(Be){this.next=Be}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=T,H.VALUES=P,H.ENTRIES=L,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[Y]=function(){return this};function G(Be,yt,Zt,ur){var _r=Be===0?yt:Be===1?Zt:[yt,Zt];return ur?ur.value=_r:ur={value:_r,done:!1},ur}function W(){return{value:void 0,done:!0}}function V(Be){return!!ee(Be)}function j(Be){return Be&&typeof Be.next=="function"}function X(Be){var yt=ee(Be);return yt&&yt.call(Be)}function ee(Be){var yt=Be&&(z&&Be[z]||Be[B]);if(typeof yt=="function")return yt}function ae(Be){return Be&&typeof Be.length=="number"}n(oe,i);function oe(Be){return Be==null?ie():a(Be)?Be.toSeq():Ee(Be)}oe.of=function(){return oe(arguments)},oe.prototype.toSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq {","}")},oe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},oe.prototype.__iterate=function(Be,yt){return Pe(this,Be,yt,!0)},oe.prototype.__iterator=function(Be,yt){return we(this,Be,yt,!0)},n(he,oe);function he(Be){return Be==null?ie().toKeyedSeq():a(Be)?u(Be)?Be.toSeq():Be.fromEntrySeq():ce(Be)}he.prototype.toKeyedSeq=function(){return this},n(q,oe);function q(Be){return Be==null?ie():a(Be)?u(Be)?Be.entrySeq():Be.toIndexedSeq():ge(Be)}q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(Be,yt){return Pe(this,Be,yt,!1)},q.prototype.__iterator=function(Be,yt){return we(this,Be,yt,!1)},n(J,oe);function J(Be){return(Be==null?ie():a(Be)?u(Be)?Be.entrySeq():Be:ge(Be)).toSetSeq()}J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},oe.isSeq=Q,oe.Keyed=he,oe.Set=J,oe.Indexed=q;var le="@@__IMMUTABLE_SEQ__@@";oe.prototype[le]=!0,n(Z,q);function Z(Be){this._array=Be,this.size=Be.length}Z.prototype.get=function(Be,yt){return this.has(Be)?this._array[M(this,Be)]:yt},Z.prototype.__iterate=function(Be,yt){for(var Zt=this._array,ur=Zt.length-1,_r=0;_r<=ur;_r++)if(Be(Zt[yt?ur-_r:_r],_r,this)===!1)return _r+1;return _r},Z.prototype.__iterator=function(Be,yt){var Zt=this._array,ur=Zt.length-1,_r=0;return new H(function(){return _r>ur?W():G(Be,_r,Zt[yt?ur-_r++:_r++])})},n(re,he);function re(Be){var yt=Object.keys(Be);this._object=Be,this._keys=yt,this.size=yt.length}re.prototype.get=function(Be,yt){return yt!==void 0&&!this.has(Be)?yt:this._object[Be]},re.prototype.has=function(Be){return this._object.hasOwnProperty(Be)},re.prototype.__iterate=function(Be,yt){for(var Zt=this._object,ur=this._keys,_r=ur.length-1,nn=0;nn<=_r;nn++){var Sn=ur[yt?_r-nn:nn];if(Be(Zt[Sn],Sn,this)===!1)return nn+1}return nn},re.prototype.__iterator=function(Be,yt){var Zt=this._object,ur=this._keys,_r=ur.length-1,nn=0;return new H(function(){var Sn=ur[yt?_r-nn:nn];return nn++>_r?W():G(Be,Sn,Zt[Sn])})},re.prototype[c]=!0,n(fe,q);function fe(Be){this._iterable=Be,this.size=Be.length||Be.size}fe.prototype.__iterateUncached=function(Be,yt){if(yt)return this.cacheResult().__iterate(Be,yt);var Zt=this._iterable,ur=X(Zt),_r=0;if(j(ur))for(var nn;!(nn=ur.next()).done&&Be(nn.value,_r++,this)!==!1;);return _r},fe.prototype.__iteratorUncached=function(Be,yt){if(yt)return this.cacheResult().__iterator(Be,yt);var Zt=this._iterable,ur=X(Zt);if(!j(ur))return new H(W);var _r=0;return new H(function(){var nn=ur.next();return nn.done?nn:G(Be,_r++,nn.value)})},n(ne,q);function ne(Be){this._iterator=Be,this._iteratorCache=[]}ne.prototype.__iterateUncached=function(Be,yt){if(yt)return this.cacheResult().__iterate(Be,yt);for(var Zt=this._iterator,ur=this._iteratorCache,_r=0;_r<ur.length;)if(Be(ur[_r],_r++,this)===!1)return _r;for(var nn;!(nn=Zt.next()).done;){var Sn=nn.value;if(ur[_r]=Sn,Be(Sn,_r++,this)===!1)break}return _r},ne.prototype.__iteratorUncached=function(Be,yt){if(yt)return this.cacheResult().__iterator(Be,yt);var Zt=this._iterator,ur=this._iteratorCache,_r=0;return new H(function(){if(_r>=ur.length){var nn=Zt.next();if(nn.done)return nn;ur[_r]=nn.value}return G(Be,_r,ur[_r++])})};function Q(Be){return!!(Be&&Be[le])}var de;function ie(){return de||(de=new Z([]))}function ce(Be){var yt=Array.isArray(Be)?new Z(Be).fromEntrySeq():j(Be)?new ne(Be).fromEntrySeq():V(Be)?new fe(Be).fromEntrySeq():typeof Be=="object"?new re(Be):void 0;if(!yt)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+Be);return yt}function ge(Be){var yt=Se(Be);if(!yt)throw new TypeError("Expected Array or iterable object of values: "+Be);return yt}function Ee(Be){var yt=Se(Be)||typeof Be=="object"&&new re(Be);if(!yt)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+Be);return yt}function Se(Be){return ae(Be)?new Z(Be):j(Be)?new ne(Be):V(Be)?new fe(Be):void 0}function Pe(Be,yt,Zt,ur){var _r=Be._cache;if(_r){for(var nn=_r.length-1,Sn=0;Sn<=nn;Sn++){var ea=_r[Zt?nn-Sn:Sn];if(yt(ea[1],ur?ea[0]:Sn,Be)===!1)return Sn+1}return Sn}return Be.__iterateUncached(yt,Zt)}function we(Be,yt,Zt,ur){var _r=Be._cache;if(_r){var nn=_r.length-1,Sn=0;return new H(function(){var ea=_r[Zt?nn-Sn:Sn];return Sn++>nn?W():G(yt,ur?ea[0]:Sn-1,ea[1])})}return Be.__iteratorUncached(yt,Zt)}function Ce(Be,yt){return yt?_e(yt,Be,"",{"":Be}):Le(Be)}function _e(Be,yt,Zt,ur){return Array.isArray(yt)?Be.call(ur,Zt,q(yt).map(function(_r,nn){return _e(Be,_r,nn,yt)})):Fe(yt)?Be.call(ur,Zt,he(yt).map(function(_r,nn){return _e(Be,_r,nn,yt)})):yt}function Le(Be){return Array.isArray(Be)?q(Be).map(Le).toList():Fe(Be)?he(Be).map(Le).toMap():Be}function Fe(Be){return Be&&(Be.constructor===Object||Be.constructor===void 0)}function Re(Be,yt){if(Be===yt||Be!==Be&&yt!==yt)return!0;if(!Be||!yt)return!1;if(typeof Be.valueOf=="function"&&typeof yt.valueOf=="function"){if(Be=Be.valueOf(),yt=yt.valueOf(),Be===yt||Be!==Be&&yt!==yt)return!0;if(!Be||!yt)return!1}return!!(typeof Be.equals=="function"&&typeof yt.equals=="function"&&Be.equals(yt))}function Me(Be,yt){if(Be===yt)return!0;if(!a(yt)||Be.size!==void 0&&yt.size!==void 0&&Be.size!==yt.size||Be.__hash!==void 0&&yt.__hash!==void 0&&Be.__hash!==yt.__hash||u(Be)!==u(yt)||g(Be)!==g(yt)||_(Be)!==_(yt))return!1;if(Be.size===0&&yt.size===0)return!0;var Zt=!o(Be);if(_(Be)){var ur=Be.entries();return yt.every(function(Ta,Ra){var en=ur.next().value;return en&&Re(en[1],Ta)&&(Zt||Re(en[0],Ra))})&&ur.next().done}var _r=!1;if(Be.size===void 0)if(yt.size===void 0)typeof Be.cacheResult=="function"&&Be.cacheResult();else{_r=!0;var nn=Be;Be=yt,yt=nn}var Sn=!0,ea=yt.__iterate(function(Ta,Ra){if(Zt?!Be.has(Ta):_r?!Re(Ta,Be.get(Ra,E)):!Re(Be.get(Ra,E),Ta))return Sn=!1,!1});return Sn&&Be.size===ea}n(ze,q);function ze(Be,yt){if(!(this instanceof ze))return new ze(Be,yt);if(this._value=Be,this.size=yt===void 0?1/0:Math.max(0,yt),this.size===0){if(et)return et;et=this}}ze.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ze.prototype.get=function(Be,yt){return this.has(Be)?this._value:yt},ze.prototype.includes=function(Be){return Re(this._value,Be)},ze.prototype.slice=function(Be,yt){var Zt=this.size;return F(Be,yt,Zt)?this:new ze(this._value,k(yt,Zt)-N(Be,Zt))},ze.prototype.reverse=function(){return this},ze.prototype.indexOf=function(Be){return Re(this._value,Be)?0:-1},ze.prototype.lastIndexOf=function(Be){return Re(this._value,Be)?this.size:-1},ze.prototype.__iterate=function(Be,yt){for(var Zt=0;Zt<this.size;Zt++)if(Be(this._value,Zt,this)===!1)return Zt+1;return Zt},ze.prototype.__iterator=function(Be,yt){var Zt=this,ur=0;return new H(function(){return ur<Zt.size?G(Be,ur++,Zt._value):W()})},ze.prototype.equals=function(Be){return Be instanceof ze?Re(this._value,Be._value):Me(Be)};var et;function lt(Be,yt){if(!Be)throw new Error(yt)}n(Je,q);function Je(Be,yt,Zt){if(!(this instanceof Je))return new Je(Be,yt,Zt);if(lt(Zt!==0,"Cannot step a Range by 0"),Be=Be||0,yt===void 0&&(yt=1/0),Zt=Zt===void 0?1:Math.abs(Zt),yt<Be&&(Zt=-Zt),this._start=Be,this._end=yt,this._step=Zt,this.size=Math.max(0,Math.ceil((yt-Be)/Zt-1)+1),this.size===0){if(qe)return qe;qe=this}}Je.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Je.prototype.get=function(Be,yt){return this.has(Be)?this._start+M(this,Be)*this._step:yt},Je.prototype.includes=function(Be){var yt=(Be-this._start)/this._step;return yt>=0&&yt<this.size&&yt===Math.floor(yt)},Je.prototype.slice=function(Be,yt){return F(Be,yt,this.size)?this:(Be=N(Be,this.size),yt=k(yt,this.size),yt<=Be?new Je(0,0):new Je(this.get(Be,this._end),this.get(yt,this._end),this._step))},Je.prototype.indexOf=function(Be){var yt=Be-this._start;if(yt%this._step===0){var Zt=yt/this._step;if(Zt>=0&&Zt<this.size)return Zt}return-1},Je.prototype.lastIndexOf=function(Be){return this.indexOf(Be)},Je.prototype.__iterate=function(Be,yt){for(var Zt=this.size-1,ur=this._step,_r=yt?this._start+Zt*ur:this._start,nn=0;nn<=Zt;nn++){if(Be(_r,nn,this)===!1)return nn+1;_r+=yt?-ur:ur}return nn},Je.prototype.__iterator=function(Be,yt){var Zt=this.size-1,ur=this._step,_r=yt?this._start+Zt*ur:this._start,nn=0;return new H(function(){var Sn=_r;return _r+=yt?-ur:ur,nn>Zt?W():G(Be,nn++,Sn)})},Je.prototype.equals=function(Be){return Be instanceof Je?this._start===Be._start&&this._end===Be._end&&this._step===Be._step:Me(this,Be)};var qe;n(ct,i);function ct(){throw TypeError("Abstract")}n(ht,ct);function ht(){}n(mt,ct);function mt(){}n(_t,ct);function _t(){}ct.Keyed=ht,ct.Indexed=mt,ct.Set=_t;var Mt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(yt,Zt){yt=yt|0,Zt=Zt|0;var ur=yt&65535,_r=Zt&65535;return ur*_r+((yt>>>16)*_r+ur*(Zt>>>16)<<16>>>0)|0};function it(Be){return Be>>>1&1073741824|Be&3221225471}function He(Be){if(Be===!1||Be===null||Be===void 0||typeof Be.valueOf=="function"&&(Be=Be.valueOf(),Be===!1||Be===null||Be===void 0))return 0;if(Be===!0)return 1;var yt=typeof Be;if(yt==="number"){var Zt=Be|0;for(Zt!==Be&&(Zt^=Be*4294967295);Be>4294967295;)Be/=4294967295,Zt^=Be;return it(Zt)}if(yt==="string")return Be.length>ut?Xe(Be):tt(Be);if(typeof Be.hashCode=="function")return Be.hashCode();if(yt==="object")return je(Be);if(typeof Be.toString=="function")return tt(Be.toString());throw new Error("Value type "+yt+" cannot be hashed.")}function Xe(Be){var yt=tr[Be];return yt===void 0&&(yt=tt(Be),St===xt&&(St=0,tr={}),St++,tr[Be]=yt),yt}function tt(Be){for(var yt=0,Zt=0;Zt<Be.length;Zt++)yt=31*yt+Be.charCodeAt(Zt)|0;return it(yt)}function je(Be){var yt;if(Ne&&(yt=Oe.get(Be),yt!==void 0)||(yt=Be[Qe],yt!==void 0)||!Ae&&(yt=Be.propertyIsEnumerable&&Be.propertyIsEnumerable[Qe],yt!==void 0||(yt=Te(Be),yt!==void 0)))return yt;if(yt=++Ye,Ye&1073741824&&(Ye=0),Ne)Oe.set(Be,yt);else{if($e!==void 0&&$e(Be)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(Be,Qe,{enumerable:!1,configurable:!1,writable:!1,value:yt});else if(Be.propertyIsEnumerable!==void 0&&Be.propertyIsEnumerable===Be.constructor.prototype.propertyIsEnumerable)Be.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},Be.propertyIsEnumerable[Qe]=yt;else if(Be.nodeType!==void 0)Be[Qe]=yt;else throw new Error("Unable to set a non-enumerable property on object.")}return yt}var $e=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Te(Be){if(Be&&Be.nodeType>0)switch(Be.nodeType){case 1:return Be.uniqueID;case 9:return Be.documentElement&&Be.documentElement.uniqueID}}var Ne=typeof WeakMap=="function",Oe;Ne&&(Oe=new WeakMap);var Ye=0,Qe="__immutablehash__";typeof Symbol=="function"&&(Qe=Symbol(Qe));var ut=16,xt=255,St=0,tr={};function nr(Be){lt(Be!==1/0,"Cannot perform this action with an infinite size.")}n(Rt,ht);function Rt(Be){return Be==null?Ft():zt(Be)&&!_(Be)?Be:Ft().withMutations(function(yt){var Zt=v(Be);nr(Zt.size),Zt.forEach(function(ur,_r){return yt.set(_r,ur)})})}Rt.prototype.toString=function(){return this.__toString("Map {","}")},Rt.prototype.get=function(Be,yt){return this._root?this._root.get(0,void 0,Be,yt):yt},Rt.prototype.set=function(Be,yt){return Qt(this,Be,yt)},Rt.prototype.setIn=function(Be,yt){return this.updateIn(Be,E,function(){return yt})},Rt.prototype.remove=function(Be){return Qt(this,Be,E)},Rt.prototype.deleteIn=function(Be){return this.updateIn(Be,function(){return E})},Rt.prototype.update=function(Be,yt,Zt){return arguments.length===1?Be(this):this.updateIn([Be],yt,Zt)},Rt.prototype.updateIn=function(Be,yt,Zt){Zt||(Zt=yt,yt=void 0);var ur=hr(this,ui(Be),yt,Zt);return ur===E?void 0:ur},Rt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ft()},Rt.prototype.merge=function(){return Ke(this,void 0,arguments)},Rt.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return Ke(this,Be,yt)},Rt.prototype.mergeIn=function(Be){var yt=r.call(arguments,1);return this.updateIn(Be,Ft(),function(Zt){return typeof Zt.merge=="function"?Zt.merge.apply(Zt,yt):yt[yt.length-1]})},Rt.prototype.mergeDeep=function(){return Ke(this,Yt,arguments)},Rt.prototype.mergeDeepWith=function(Be){var yt=r.call(arguments,1);return Ke(this,Vt(Be),yt)},Rt.prototype.mergeDeepIn=function(Be){var yt=r.call(arguments,1);return this.updateIn(Be,Ft(),function(Zt){return typeof Zt.mergeDeep=="function"?Zt.mergeDeep.apply(Zt,yt):yt[yt.length-1]})},Rt.prototype.sort=function(Be){return $a(Vr(this,Be))},Rt.prototype.sortBy=function(Be,yt){return $a(Vr(this,yt,Be))},Rt.prototype.withMutations=function(Be){var yt=this.asMutable();return Be(yt),yt.wasAltered()?yt.__ensureOwner(this.__ownerID):this},Rt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Rt.prototype.asImmutable=function(){return this.__ensureOwner()},Rt.prototype.wasAltered=function(){return this.__altered},Rt.prototype.__iterator=function(Be,yt){return new Ct(this,Be,yt)},Rt.prototype.__iterate=function(Be,yt){var Zt=this,ur=0;return this._root&&this._root.iterate(function(_r){return ur++,Be(_r[1],_r[0],Zt)},yt),ur},Rt.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Pt(this.size,this._root,Be,this.__hash):(this.__ownerID=Be,this.__altered=!1,this)};function zt(Be){return!!(Be&&Be[dr])}Rt.isMap=zt;var dr="@@__IMMUTABLE_MAP__@@",Mr=Rt.prototype;Mr[dr]=!0,Mr[s]=Mr.remove,Mr.removeIn=Mr.deleteIn;function Tt(Be,yt){this.ownerID=Be,this.entries=yt}Tt.prototype.get=function(Be,yt,Zt,ur){for(var _r=this.entries,nn=0,Sn=_r.length;nn<Sn;nn++)if(Re(Zt,_r[nn][0]))return _r[nn][1];return ur},Tt.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){for(var ea=_r===E,Ta=this.entries,Ra=0,en=Ta.length;Ra<en&&!Re(ur,Ta[Ra][0]);Ra++);var Xn=Ra<en;if(Xn?Ta[Ra][1]===_r:ea)return this;if(D(Sn),(ea||!Xn)&&D(nn),!(ea&&Ta.length===1)){if(!Xn&&!ea&&Ta.length>=Lr)return Cr(Be,Ta,ur,_r);var Un=Be&&Be===this.ownerID,Ba=Un?Ta:S(Ta);return Xn?ea?Ra===en-1?Ba.pop():Ba[Ra]=Ba.pop():Ba[Ra]=[ur,_r]:Ba.push([ur,_r]),Un?(this.entries=Ba,this):new Tt(Be,Ba)}};function ir(Be,yt,Zt){this.ownerID=Be,this.bitmap=yt,this.nodes=Zt}ir.prototype.get=function(Be,yt,Zt,ur){yt===void 0&&(yt=He(Zt));var _r=1<<((Be===0?yt:yt>>>Be)&m),nn=this.bitmap;return nn&_r?this.nodes[Er(nn&_r-1)].get(Be+d,yt,Zt,ur):ur},ir.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=(yt===0?Zt:Zt>>>yt)&m,Ta=1<<ea,Ra=this.bitmap,en=(Ra&Ta)!==0;if(!en&&_r===E)return this;var Xn=Er(Ra&Ta-1),Un=this.nodes,Ba=en?Un[Xn]:void 0,ci=Kt(Ba,Be,yt+d,Zt,ur,_r,nn,Sn);if(ci===Ba)return this;if(!en&&ci&&Un.length>=kr)return Ze(Be,Un,Ra,ea,ci);if(en&&!ci&&Un.length===2&&sr(Un[Xn^1]))return Un[Xn^1];if(en&&ci&&Un.length===1&&sr(ci))return ci;var Vi=Be&&Be===this.ownerID,Bo=en?ci?Ra:Ra^Ta:Ra|Ta,wo=en?ci?vr(Un,Xn,ci,Vi):Ir(Un,Xn,Vi):jt(Un,Xn,ci,Vi);return Vi?(this.bitmap=Bo,this.nodes=wo,this):new ir(Be,Bo,wo)};function fr(Be,yt,Zt){this.ownerID=Be,this.count=yt,this.nodes=Zt}fr.prototype.get=function(Be,yt,Zt,ur){yt===void 0&&(yt=He(Zt));var _r=(Be===0?yt:yt>>>Be)&m,nn=this.nodes[_r];return nn?nn.get(Be+d,yt,Zt,ur):ur},fr.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=(yt===0?Zt:Zt>>>yt)&m,Ta=_r===E,Ra=this.nodes,en=Ra[ea];if(Ta&&!en)return this;var Xn=Kt(en,Be,yt+d,Zt,ur,_r,nn,Sn);if(Xn===en)return this;var Un=this.count;if(!en)Un++;else if(!Xn&&(Un--,Un<Rr))return Or(Be,Ra,Un,ea);var Ba=Be&&Be===this.ownerID,ci=vr(Ra,ea,Xn,Ba);return Ba?(this.count=Un,this.nodes=ci,this):new fr(Be,Un,ci)};function Nr(Be,yt,Zt){this.ownerID=Be,this.keyHash=yt,this.entries=Zt}Nr.prototype.get=function(Be,yt,Zt,ur){for(var _r=this.entries,nn=0,Sn=_r.length;nn<Sn;nn++)if(Re(Zt,_r[nn][0]))return _r[nn][1];return ur},Nr.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=_r===E;if(Zt!==this.keyHash)return ea?this:(D(Sn),D(nn),Tr(this,Be,yt,Zt,[ur,_r]));for(var Ta=this.entries,Ra=0,en=Ta.length;Ra<en&&!Re(ur,Ta[Ra][0]);Ra++);var Xn=Ra<en;if(Xn?Ta[Ra][1]===_r:ea)return this;if(D(Sn),(ea||!Xn)&&D(nn),ea&&en===2)return new br(Be,this.keyHash,Ta[Ra^1]);var Un=Be&&Be===this.ownerID,Ba=Un?Ta:S(Ta);return Xn?ea?Ra===en-1?Ba.pop():Ba[Ra]=Ba.pop():Ba[Ra]=[ur,_r]:Ba.push([ur,_r]),Un?(this.entries=Ba,this):new Nr(Be,this.keyHash,Ba)};function br(Be,yt,Zt){this.ownerID=Be,this.keyHash=yt,this.entry=Zt}br.prototype.get=function(Be,yt,Zt,ur){return Re(Zt,this.entry[0])?this.entry[1]:ur},br.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){var ea=_r===E,Ta=Re(ur,this.entry[0]);if(Ta?_r===this.entry[1]:ea)return this;if(D(Sn),ea){D(nn);return}return Ta?Be&&Be===this.ownerID?(this.entry[1]=_r,this):new br(Be,this.keyHash,[ur,_r]):(D(nn),Tr(this,Be,yt,He(ur),[ur,_r]))},Tt.prototype.iterate=Nr.prototype.iterate=function(Be,yt){for(var Zt=this.entries,ur=0,_r=Zt.length-1;ur<=_r;ur++)if(Be(Zt[yt?_r-ur:ur])===!1)return!1},ir.prototype.iterate=fr.prototype.iterate=function(Be,yt){for(var Zt=this.nodes,ur=0,_r=Zt.length-1;ur<=_r;ur++){var nn=Zt[yt?_r-ur:ur];if(nn&&nn.iterate(Be,yt)===!1)return!1}},br.prototype.iterate=function(Be,yt){return Be(this.entry)},n(Ct,H);function Ct(Be,yt,Zt){this._type=yt,this._reverse=Zt,this._stack=Be._root&&Ot(Be._root)}Ct.prototype.next=function(){for(var Be=this._type,yt=this._stack;yt;){var Zt=yt.node,ur=yt.index++,_r;if(Zt.entry){if(ur===0)return pt(Be,Zt.entry)}else if(Zt.entries){if(_r=Zt.entries.length-1,ur<=_r)return pt(Be,Zt.entries[this._reverse?_r-ur:ur])}else if(_r=Zt.nodes.length-1,ur<=_r){var nn=Zt.nodes[this._reverse?_r-ur:ur];if(nn){if(nn.entry)return pt(Be,nn.entry);yt=this._stack=Ot(nn,yt)}continue}yt=this._stack=this._stack.__prev}return W()};function pt(Be,yt){return G(Be,yt[0],yt[1])}function Ot(Be,yt){return{node:Be,index:0,__prev:yt}}function Pt(Be,yt,Zt,ur){var _r=Object.create(Mr);return _r.size=Be,_r._root=yt,_r.__ownerID=Zt,_r.__hash=ur,_r.__altered=!1,_r}var $t;function Ft(){return $t||($t=Pt(0))}function Qt(Be,yt,Zt){var ur,_r;if(Be._root){var nn=A(y),Sn=A(R);if(ur=Kt(Be._root,Be.__ownerID,0,void 0,yt,Zt,nn,Sn),!Sn.value)return Be;_r=Be.size+(nn.value?Zt===E?-1:1:0)}else{if(Zt===E)return Be;_r=1,ur=new Tt(Be.__ownerID,[[yt,Zt]])}return Be.__ownerID?(Be.size=_r,Be._root=ur,Be.__hash=void 0,Be.__altered=!0,Be):ur?Pt(_r,ur):Ft()}function Kt(Be,yt,Zt,ur,_r,nn,Sn,ea){return Be?Be.update(yt,Zt,ur,_r,nn,Sn,ea):nn===E?Be:(D(ea),D(Sn),new br(yt,ur,[_r,nn]))}function sr(Be){return Be.constructor===br||Be.constructor===Nr}function Tr(Be,yt,Zt,ur,_r){if(Be.keyHash===ur)return new Nr(yt,ur,[Be.entry,_r]);var nn=(Zt===0?Be.keyHash:Be.keyHash>>>Zt)&m,Sn=(Zt===0?ur:ur>>>Zt)&m,ea,Ta=nn===Sn?[Tr(Be,yt,Zt+d,ur,_r)]:(ea=new br(yt,ur,_r),nn<Sn?[Be,ea]:[ea,Be]);return new ir(yt,1<<nn|1<<Sn,Ta)}function Cr(Be,yt,Zt,ur){Be||(Be=new w);for(var _r=new br(Be,He(Zt),[Zt,ur]),nn=0;nn<yt.length;nn++){var Sn=yt[nn];_r=_r.update(Be,0,void 0,Sn[0],Sn[1])}return _r}function Or(Be,yt,Zt,ur){for(var _r=0,nn=0,Sn=new Array(Zt),ea=0,Ta=1,Ra=yt.length;ea<Ra;ea++,Ta<<=1){var en=yt[ea];en!==void 0&&ea!==ur&&(_r|=Ta,Sn[nn++]=en)}return new ir(Be,_r,Sn)}function Ze(Be,yt,Zt,ur,_r){for(var nn=0,Sn=new Array(f),ea=0;Zt!==0;ea++,Zt>>>=1)Sn[ea]=Zt&1?yt[nn++]:void 0;return Sn[ur]=_r,new fr(Be,nn+1,Sn)}function Ke(Be,yt,Zt){for(var ur=[],_r=0;_r<Zt.length;_r++){var nn=Zt[_r],Sn=v(nn);a(nn)||(Sn=Sn.map(function(ea){return Ce(ea)})),ur.push(Sn)}return or(Be,yt,ur)}function Yt(Be,yt,Zt){return Be&&Be.mergeDeep&&a(yt)?Be.mergeDeep(yt):Re(Be,yt)?Be:yt}function Vt(Be){return function(yt,Zt,ur){if(yt&&yt.mergeDeepWith&&a(Zt))return yt.mergeDeepWith(Be,Zt);var _r=Be(yt,Zt,ur);return Re(yt,_r)?yt:_r}}function or(Be,yt,Zt){return Zt=Zt.filter(function(ur){return ur.size!==0}),Zt.length===0?Be:Be.size===0&&!Be.__ownerID&&Zt.length===1?Be.constructor(Zt[0]):Be.withMutations(function(ur){for(var _r=yt?function(Sn,ea){ur.update(ea,E,function(Ta){return Ta===E?Sn:yt(Ta,Sn,ea)})}:function(Sn,ea){ur.set(ea,Sn)},nn=0;nn<Zt.length;nn++)Zt[nn].forEach(_r)})}function hr(Be,yt,Zt,ur){var _r=Be===E,nn=yt.next();if(nn.done){var Sn=_r?Zt:Be,ea=ur(Sn);return ea===Sn?Be:ea}lt(_r||Be&&Be.set,"invalid keyPath");var Ta=nn.value,Ra=_r?E:Be.get(Ta,E),en=hr(Ra,yt,Zt,ur);return en===Ra?Be:en===E?Be.remove(Ta):(_r?Ft():Be).set(Ta,en)}function Er(Be){return Be=Be-(Be>>1&1431655765),Be=(Be&858993459)+(Be>>2&858993459),Be=Be+(Be>>4)&252645135,Be=Be+(Be>>8),Be=Be+(Be>>16),Be&127}function vr(Be,yt,Zt,ur){var _r=ur?Be:S(Be);return _r[yt]=Zt,_r}function jt(Be,yt,Zt,ur){var _r=Be.length+1;if(ur&&yt+1===_r)return Be[yt]=Zt,Be;for(var nn=new Array(_r),Sn=0,ea=0;ea<_r;ea++)ea===yt?(nn[ea]=Zt,Sn=-1):nn[ea]=Be[ea+Sn];return nn}function Ir(Be,yt,Zt){var ur=Be.length-1;if(Zt&&yt===ur)return Be.pop(),Be;for(var _r=new Array(ur),nn=0,Sn=0;Sn<ur;Sn++)Sn===yt&&(nn=1),_r[Sn]=Be[Sn+nn];return _r}var Lr=f/4,kr=f/2,Rr=f/4;n(an,mt);function an(Be){var yt=vn();if(Be==null)return yt;if(Zr(Be))return Be;var Zt=l(Be),ur=Zt.size;return ur===0?yt:(nr(ur),ur>0&&ur<f?Br(0,ur,d,null,new An(Zt.toArray())):yt.withMutations(function(_r){_r.setSize(ur),Zt.forEach(function(nn,Sn){return _r.set(Sn,nn)})}))}an.of=function(){return this(arguments)},an.prototype.toString=function(){return this.__toString("List [","]")},an.prototype.get=function(Be,yt){if(Be=M(this,Be),Be>=0&&Be<this.size){Be+=this._origin;var Zt=Kn(this,Be);return Zt&&Zt.array[Be&m]}return yt},an.prototype.set=function(Be,yt){return un(this,Be,yt)},an.prototype.remove=function(Be){return this.has(Be)?Be===0?this.shift():Be===this.size-1?this.pop():this.splice(Be,1):this},an.prototype.insert=function(Be,yt){return this.splice(Be,0,yt)},an.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=d,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):vn()},an.prototype.push=function(){var Be=arguments,yt=this.size;return this.withMutations(function(Zt){ia(Zt,0,yt+Be.length);for(var ur=0;ur<Be.length;ur++)Zt.set(yt+ur,Be[ur])})},an.prototype.pop=function(){return ia(this,0,-1)},an.prototype.unshift=function(){var Be=arguments;return this.withMutations(function(yt){ia(yt,-Be.length);for(var Zt=0;Zt<Be.length;Zt++)yt.set(Zt,Be[Zt])})},an.prototype.shift=function(){return ia(this,1)},an.prototype.merge=function(){return xa(this,void 0,arguments)},an.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return xa(this,Be,yt)},an.prototype.mergeDeep=function(){return xa(this,Yt,arguments)},an.prototype.mergeDeepWith=function(Be){var yt=r.call(arguments,1);return xa(this,Vt(Be),yt)},an.prototype.setSize=function(Be){return ia(this,0,Be)},an.prototype.slice=function(Be,yt){var Zt=this.size;return F(Be,yt,Zt)?this:ia(this,N(Be,Zt),k(yt,Zt))},an.prototype.__iterator=function(Be,yt){var Zt=0,ur=la(this,yt);return new H(function(){var _r=ur();return _r===sa?W():G(Be,Zt++,_r)})},an.prototype.__iterate=function(Be,yt){for(var Zt=0,ur=la(this,yt),_r;(_r=ur())!==sa&&Be(_r,Zt++,this)!==!1;);return Zt},an.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Br(this._origin,this._capacity,this._level,this._root,this._tail,Be,this.__hash):(this.__ownerID=Be,this)};function Zr(Be){return!!(Be&&Be[Jr])}an.isList=Zr;var Jr="@@__IMMUTABLE_LIST__@@",Pn=an.prototype;Pn[Jr]=!0,Pn[s]=Pn.remove,Pn.setIn=Mr.setIn,Pn.deleteIn=Pn.removeIn=Mr.removeIn,Pn.update=Mr.update,Pn.updateIn=Mr.updateIn,Pn.mergeIn=Mr.mergeIn,Pn.mergeDeepIn=Mr.mergeDeepIn,Pn.withMutations=Mr.withMutations,Pn.asMutable=Mr.asMutable,Pn.asImmutable=Mr.asImmutable,Pn.wasAltered=Mr.wasAltered;function An(Be,yt){this.array=Be,this.ownerID=yt}An.prototype.removeBefore=function(Be,yt,Zt){if(Zt===yt?1<<yt:this.array.length===0)return this;var ur=Zt>>>yt&m;if(ur>=this.array.length)return new An([],Be);var _r=ur===0,nn;if(yt>0){var Sn=this.array[ur];if(nn=Sn&&Sn.removeBefore(Be,yt-d,Zt),nn===Sn&&_r)return this}if(_r&&!nn)return this;var ea=Yn(this,Be);if(!_r)for(var Ta=0;Ta<ur;Ta++)ea.array[Ta]=void 0;return nn&&(ea.array[ur]=nn),ea},An.prototype.removeAfter=function(Be,yt,Zt){if(Zt===(yt?1<<yt:0)||this.array.length===0)return this;var ur=Zt-1>>>yt&m;if(ur>=this.array.length)return this;var _r;if(yt>0){var nn=this.array[ur];if(_r=nn&&nn.removeAfter(Be,yt-d,Zt),_r===nn&&ur===this.array.length-1)return this}var Sn=Yn(this,Be);return Sn.array.splice(ur+1),_r&&(Sn.array[ur]=_r),Sn};var sa={};function la(Be,yt){var Zt=Be._origin,ur=Be._capacity,_r=Xa(ur),nn=Be._tail;return Sn(Be._root,Be._level,0);function Sn(Ra,en,Xn){return en===0?ea(Ra,Xn):Ta(Ra,en,Xn)}function ea(Ra,en){var Xn=en===_r?nn&&nn.array:Ra&&Ra.array,Un=en>Zt?0:Zt-en,Ba=ur-en;return Ba>f&&(Ba=f),function(){if(Un===Ba)return sa;var ci=yt?--Ba:Un++;return Xn&&Xn[ci]}}function Ta(Ra,en,Xn){var Un,Ba=Ra&&Ra.array,ci=Xn>Zt?0:Zt-Xn>>en,Vi=(ur-Xn>>en)+1;return Vi>f&&(Vi=f),function(){do{if(Un){var Bo=Un();if(Bo!==sa)return Bo;Un=null}if(ci===Vi)return sa;var wo=yt?--Vi:ci++;Un=Sn(Ba&&Ba[wo],en-d,Xn+(wo<<en))}while(!0)}}}function Br(Be,yt,Zt,ur,_r,nn,Sn){var ea=Object.create(Pn);return ea.size=yt-Be,ea._origin=Be,ea._capacity=yt,ea._level=Zt,ea._root=ur,ea._tail=_r,ea.__ownerID=nn,ea.__hash=Sn,ea.__altered=!1,ea}var Wr;function vn(){return Wr||(Wr=Br(0,0,d))}function un(Be,yt,Zt){if(yt=M(Be,yt),yt!==yt)return Be;if(yt>=Be.size||yt<0)return Be.withMutations(function(Sn){yt<0?ia(Sn,yt).set(0,Zt):ia(Sn,0,yt+1).set(yt,Zt)});yt+=Be._origin;var ur=Be._tail,_r=Be._root,nn=A(R);return yt>=Xa(Be._capacity)?ur=Nn(ur,Be.__ownerID,0,yt,Zt,nn):_r=Nn(_r,Be.__ownerID,Be._level,yt,Zt,nn),nn.value?Be.__ownerID?(Be._root=_r,Be._tail=ur,Be.__hash=void 0,Be.__altered=!0,Be):Br(Be._origin,Be._capacity,Be._level,_r,ur):Be}function Nn(Be,yt,Zt,ur,_r,nn){var Sn=ur>>>Zt&m,ea=Be&&Sn<Be.array.length;if(!ea&&_r===void 0)return Be;var Ta;if(Zt>0){var Ra=Be&&Be.array[Sn],en=Nn(Ra,yt,Zt-d,ur,_r,nn);return en===Ra?Be:(Ta=Yn(Be,yt),Ta.array[Sn]=en,Ta)}return ea&&Be.array[Sn]===_r?Be:(D(nn),Ta=Yn(Be,yt),_r===void 0&&Sn===Ta.array.length-1?Ta.array.pop():Ta.array[Sn]=_r,Ta)}function Yn(Be,yt){return yt&&Be&&yt===Be.ownerID?Be:new An(Be?Be.array.slice():[],yt)}function Kn(Be,yt){if(yt>=Xa(Be._capacity))return Be._tail;if(yt<1<<Be._level+d){for(var Zt=Be._root,ur=Be._level;Zt&&ur>0;)Zt=Zt.array[yt>>>ur&m],ur-=d;return Zt}}function ia(Be,yt,Zt){yt!==void 0&&(yt=yt|0),Zt!==void 0&&(Zt=Zt|0);var ur=Be.__ownerID||new w,_r=Be._origin,nn=Be._capacity,Sn=_r+yt,ea=Zt===void 0?nn:Zt<0?nn+Zt:_r+Zt;if(Sn===_r&&ea===nn)return Be;if(Sn>=ea)return Be.clear();for(var Ta=Be._level,Ra=Be._root,en=0;Sn+en<0;)Ra=new An(Ra&&Ra.array.length?[void 0,Ra]:[],ur),Ta+=d,en+=1<<Ta;en&&(Sn+=en,_r+=en,ea+=en,nn+=en);for(var Xn=Xa(nn),Un=Xa(ea);Un>=1<<Ta+d;)Ra=new An(Ra&&Ra.array.length?[Ra]:[],ur),Ta+=d;var Ba=Be._tail,ci=Un<Xn?Kn(Be,ea-1):Un>Xn?new An([],ur):Ba;if(Ba&&Un>Xn&&Sn<nn&&Ba.array.length){Ra=Yn(Ra,ur);for(var Vi=Ra,Bo=Ta;Bo>d;Bo-=d){var wo=Xn>>>Bo&m;Vi=Vi.array[wo]=Yn(Vi.array[wo],ur)}Vi.array[Xn>>>d&m]=Ba}if(ea<nn&&(ci=ci&&ci.removeAfter(ur,0,ea)),Sn>=Un)Sn-=Un,ea-=Un,Ta=d,Ra=null,ci=ci&&ci.removeBefore(ur,0,Sn);else if(Sn>_r||Un<Xn){for(en=0;Ra;){var Ou=Sn>>>Ta&m;if(Ou!==Un>>>Ta&m)break;Ou&&(en+=(1<<Ta)*Ou),Ta-=d,Ra=Ra.array[Ou]}Ra&&Sn>_r&&(Ra=Ra.removeBefore(ur,Ta,Sn-en)),Ra&&Un<Xn&&(Ra=Ra.removeAfter(ur,Ta,Un-en)),en&&(Sn-=en,ea-=en)}return Be.__ownerID?(Be.size=ea-Sn,Be._origin=Sn,Be._capacity=ea,Be._level=Ta,Be._root=Ra,Be._tail=ci,Be.__hash=void 0,Be.__altered=!0,Be):Br(Sn,ea,Ta,Ra,ci)}function xa(Be,yt,Zt){for(var ur=[],_r=0,nn=0;nn<Zt.length;nn++){var Sn=Zt[nn],ea=l(Sn);ea.size>_r&&(_r=ea.size),a(Sn)||(ea=ea.map(function(Ta){return Ce(Ta)})),ur.push(ea)}return _r>Be.size&&(Be=Be.setSize(_r)),or(Be,yt,ur)}function Xa(Be){return Be<f?0:Be-1>>>d<<d}n($a,Rt);function $a(Be){return Be==null?Fr():hi(Be)?Be:Fr().withMutations(function(yt){var Zt=v(Be);nr(Zt.size),Zt.forEach(function(ur,_r){return yt.set(_r,ur)})})}$a.of=function(){return this(arguments)},$a.prototype.toString=function(){return this.__toString("OrderedMap {","}")},$a.prototype.get=function(Be,yt){var Zt=this._map.get(Be);return Zt!==void 0?this._list.get(Zt)[1]:yt},$a.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Fr()},$a.prototype.set=function(Be,yt){return bn(this,Be,yt)},$a.prototype.remove=function(Be){return bn(this,Be,E)},$a.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},$a.prototype.__iterate=function(Be,yt){var Zt=this;return this._list.__iterate(function(ur){return ur&&Be(ur[1],ur[0],Zt)},yt)},$a.prototype.__iterator=function(Be,yt){return this._list.fromEntrySeq().__iterator(Be,yt)},$a.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map.__ensureOwner(Be),Zt=this._list.__ensureOwner(Be);return Be?oi(yt,Zt,Be,this.__hash):(this.__ownerID=Be,this._map=yt,this._list=Zt,this)};function hi(Be){return zt(Be)&&_(Be)}$a.isOrderedMap=hi,$a.prototype[c]=!0,$a.prototype[s]=$a.prototype.remove;function oi(Be,yt,Zt,ur){var _r=Object.create($a.prototype);return _r.size=Be?Be.size:0,_r._map=Be,_r._list=yt,_r.__ownerID=Zt,_r.__hash=ur,_r}var Ja;function Fr(){return Ja||(Ja=oi(Ft(),vn()))}function bn(Be,yt,Zt){var ur=Be._map,_r=Be._list,nn=ur.get(yt),Sn=nn!==void 0,ea,Ta;if(Zt===E){if(!Sn)return Be;_r.size>=f&&_r.size>=ur.size*2?(Ta=_r.filter(function(Ra,en){return Ra!==void 0&&nn!==en}),ea=Ta.toKeyedSeq().map(function(Ra){return Ra[0]}).flip().toMap(),Be.__ownerID&&(ea.__ownerID=Ta.__ownerID=Be.__ownerID)):(ea=ur.remove(yt),Ta=nn===_r.size-1?_r.pop():_r.set(nn,void 0))}else if(Sn){if(Zt===_r.get(nn)[1])return Be;ea=ur,Ta=_r.set(nn,[yt,Zt])}else ea=ur.set(yt,_r.size),Ta=_r.set(_r.size,[yt,Zt]);return Be.__ownerID?(Be.size=ea.size,Be._map=ea,Be._list=Ta,Be.__hash=void 0,Be):oi(ea,Ta)}n(fn,he);function fn(Be,yt){this._iter=Be,this._useKeys=yt,this.size=Be.size}fn.prototype.get=function(Be,yt){return this._iter.get(Be,yt)},fn.prototype.has=function(Be){return this._iter.has(Be)},fn.prototype.valueSeq=function(){return this._iter.valueSeq()},fn.prototype.reverse=function(){var Be=this,yt=Ha(this,!0);return this._useKeys||(yt.valueSeq=function(){return Be._iter.toSeq().reverse()}),yt},fn.prototype.map=function(Be,yt){var Zt=this,ur=wa(this,Be,yt);return this._useKeys||(ur.valueSeq=function(){return Zt._iter.toSeq().map(Be,yt)}),ur},fn.prototype.__iterate=function(Be,yt){var Zt=this,ur;return this._iter.__iterate(this._useKeys?function(_r,nn){return Be(_r,nn,Zt)}:(ur=yt?aa(this):0,function(_r){return Be(_r,yt?--ur:ur++,Zt)}),yt)},fn.prototype.__iterator=function(Be,yt){if(this._useKeys)return this._iter.__iterator(Be,yt);var Zt=this._iter.__iterator(P,yt),ur=yt?aa(this):0;return new H(function(){var _r=Zt.next();return _r.done?_r:G(Be,yt?--ur:ur++,_r.value,_r)})},fn.prototype[c]=!0,n(Wn,q);function Wn(Be){this._iter=Be,this.size=Be.size}Wn.prototype.includes=function(Be){return this._iter.includes(Be)},Wn.prototype.__iterate=function(Be,yt){var Zt=this,ur=0;return this._iter.__iterate(function(_r){return Be(_r,ur++,Zt)},yt)},Wn.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt),ur=0;return new H(function(){var _r=Zt.next();return _r.done?_r:G(Be,ur++,_r.value,_r)})},n(Ca,J);function Ca(Be){this._iter=Be,this.size=Be.size}Ca.prototype.has=function(Be){return this._iter.includes(Be)},Ca.prototype.__iterate=function(Be,yt){var Zt=this;return this._iter.__iterate(function(ur){return Be(ur,ur,Zt)},yt)},Ca.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt);return new H(function(){var ur=Zt.next();return ur.done?ur:G(Be,ur.value,ur.value,ur)})},n(oa,he);function oa(Be){this._iter=Be,this.size=Be.size}oa.prototype.entrySeq=function(){return this._iter.toSeq()},oa.prototype.__iterate=function(Be,yt){var Zt=this;return this._iter.__iterate(function(ur){if(ur){da(ur);var _r=a(ur);return Be(_r?ur.get(1):ur[1],_r?ur.get(0):ur[0],Zt)}},yt)},oa.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt);return new H(function(){for(;;){var ur=Zt.next();if(ur.done)return ur;var _r=ur.value;if(_r){da(_r);var nn=a(_r);return G(Be,nn?_r.get(0):_r[0],nn?_r.get(1):_r[1],ur)}}})},Wn.prototype.cacheResult=fn.prototype.cacheResult=Ca.prototype.cacheResult=oa.prototype.cacheResult=ri;function ua(Be){var yt=ba(Be);return yt._iter=Be,yt.size=Be.size,yt.flip=function(){return Be},yt.reverse=function(){var Zt=Be.reverse.apply(this);return Zt.flip=function(){return Be.reverse()},Zt},yt.has=function(Zt){return Be.includes(Zt)},yt.includes=function(Zt){return Be.has(Zt)},yt.cacheResult=ri,yt.__iterateUncached=function(Zt,ur){var _r=this;return Be.__iterate(function(nn,Sn){return Zt(Sn,nn,_r)!==!1},ur)},yt.__iteratorUncached=function(Zt,ur){if(Zt===L){var _r=Be.__iterator(Zt,ur);return new H(function(){var nn=_r.next();if(!nn.done){var Sn=nn.value[0];nn.value[0]=nn.value[1],nn.value[1]=Sn}return nn})}return Be.__iterator(Zt===P?T:P,ur)},yt}function wa(Be,yt,Zt){var ur=ba(Be);return ur.size=Be.size,ur.has=function(_r){return Be.has(_r)},ur.get=function(_r,nn){var Sn=Be.get(_r,E);return Sn===E?nn:yt.call(Zt,Sn,_r,Be)},ur.__iterateUncached=function(_r,nn){var Sn=this;return Be.__iterate(function(ea,Ta,Ra){return _r(yt.call(Zt,ea,Ta,Ra),Ta,Sn)!==!1},nn)},ur.__iteratorUncached=function(_r,nn){var Sn=Be.__iterator(L,nn);return new H(function(){var ea=Sn.next();if(ea.done)return ea;var Ta=ea.value,Ra=Ta[0];return G(_r,Ra,yt.call(Zt,Ta[1],Ra,Be),ea)})},ur}function Ha(Be,yt){var Zt=ba(Be);return Zt._iter=Be,Zt.size=Be.size,Zt.reverse=function(){return Be},Be.flip&&(Zt.flip=function(){var ur=ua(Be);return ur.reverse=function(){return Be.flip()},ur}),Zt.get=function(ur,_r){return Be.get(yt?ur:-1-ur,_r)},Zt.has=function(ur){return Be.has(yt?ur:-1-ur)},Zt.includes=function(ur){return Be.includes(ur)},Zt.cacheResult=ri,Zt.__iterate=function(ur,_r){var nn=this;return Be.__iterate(function(Sn,ea){return ur(Sn,ea,nn)},!_r)},Zt.__iterator=function(ur,_r){return Be.__iterator(ur,!_r)},Zt}function pi(Be,yt,Zt,ur){var _r=ba(Be);return ur&&(_r.has=function(nn){var Sn=Be.get(nn,E);return Sn!==E&&!!yt.call(Zt,Sn,nn,Be)},_r.get=function(nn,Sn){var ea=Be.get(nn,E);return ea!==E&&yt.call(Zt,ea,nn,Be)?ea:Sn}),_r.__iterateUncached=function(nn,Sn){var ea=this,Ta=0;return Be.__iterate(function(Ra,en,Xn){if(yt.call(Zt,Ra,en,Xn))return Ta++,nn(Ra,ur?en:Ta-1,ea)},Sn),Ta},_r.__iteratorUncached=function(nn,Sn){var ea=Be.__iterator(L,Sn),Ta=0;return new H(function(){for(;;){var Ra=ea.next();if(Ra.done)return Ra;var en=Ra.value,Xn=en[0],Un=en[1];if(yt.call(Zt,Un,Xn,Be))return G(nn,ur?Xn:Ta++,Un,Ra)}})},_r}function $i(Be,yt,Zt){var ur=Rt().asMutable();return Be.__iterate(function(_r,nn){ur.update(yt.call(Zt,_r,nn,Be),0,function(Sn){return Sn+1})}),ur.asImmutable()}function zr(Be,yt,Zt){var ur=u(Be),_r=(_(Be)?$a():Rt()).asMutable();Be.__iterate(function(Sn,ea){_r.update(yt.call(Zt,Sn,ea,Be),function(Ta){return Ta=Ta||[],Ta.push(ur?[ea,Sn]:Sn),Ta})});var nn=Aa(Be);return _r.map(function(Sn){return Fn(Be,nn(Sn))})}function sn(Be,yt,Zt,ur){var _r=Be.size;if(yt!==void 0&&(yt=yt|0),Zt!==void 0&&(Zt=Zt|0),F(yt,Zt,_r))return Be;var nn=N(yt,_r),Sn=k(Zt,_r);if(nn!==nn||Sn!==Sn)return sn(Be.toSeq().cacheResult(),yt,Zt,ur);var ea=Sn-nn,Ta;ea===ea&&(Ta=ea<0?0:ea);var Ra=ba(Be);return Ra.size=Ta===0?Ta:Be.size&&Ta||void 0,!ur&&Q(Be)&&Ta>=0&&(Ra.get=function(en,Xn){return en=M(this,en),en>=0&&en<Ta?Be.get(en+nn,Xn):Xn}),Ra.__iterateUncached=function(en,Xn){var Un=this;if(Ta===0)return 0;if(Xn)return this.cacheResult().__iterate(en,Xn);var Ba=0,ci=!0,Vi=0;return Be.__iterate(function(Bo,wo){if(!(ci&&(ci=Ba++<nn)))return Vi++,en(Bo,ur?wo:Vi-1,Un)!==!1&&Vi!==Ta}),Vi},Ra.__iteratorUncached=function(en,Xn){if(Ta!==0&&Xn)return this.cacheResult().__iterator(en,Xn);var Un=Ta!==0&&Be.__iterator(en,Xn),Ba=0,ci=0;return new H(function(){for(;Ba++<nn;)Un.next();if(++ci>Ta)return W();var Vi=Un.next();return ur||en===P?Vi:en===T?G(en,ci-1,void 0,Vi):G(en,ci-1,Vi.value[1],Vi)})},Ra}function $r(Be,yt,Zt){var ur=ba(Be);return ur.__iterateUncached=function(_r,nn){var Sn=this;if(nn)return this.cacheResult().__iterate(_r,nn);var ea=0;return Be.__iterate(function(Ta,Ra,en){return yt.call(Zt,Ta,Ra,en)&&++ea&&_r(Ta,Ra,Sn)}),ea},ur.__iteratorUncached=function(_r,nn){var Sn=this;if(nn)return this.cacheResult().__iterator(_r,nn);var ea=Be.__iterator(L,nn),Ta=!0;return new H(function(){if(!Ta)return W();var Ra=ea.next();if(Ra.done)return Ra;var en=Ra.value,Xn=en[0],Un=en[1];return yt.call(Zt,Un,Xn,Sn)?_r===L?Ra:G(_r,Xn,Un,Ra):(Ta=!1,W())})},ur}function ln(Be,yt,Zt,ur){var _r=ba(Be);return _r.__iterateUncached=function(nn,Sn){var ea=this;if(Sn)return this.cacheResult().__iterate(nn,Sn);var Ta=!0,Ra=0;return Be.__iterate(function(en,Xn,Un){if(!(Ta&&(Ta=yt.call(Zt,en,Xn,Un))))return Ra++,nn(en,ur?Xn:Ra-1,ea)}),Ra},_r.__iteratorUncached=function(nn,Sn){var ea=this;if(Sn)return this.cacheResult().__iterator(nn,Sn);var Ta=Be.__iterator(L,Sn),Ra=!0,en=0;return new H(function(){var Xn,Un,Ba;do{if(Xn=Ta.next(),Xn.done)return ur||nn===P?Xn:nn===T?G(nn,en++,void 0,Xn):G(nn,en++,Xn.value[1],Xn);var ci=Xn.value;Un=ci[0],Ba=ci[1],Ra&&(Ra=yt.call(Zt,Ba,Un,ea))}while(Ra);return nn===L?Xn:G(nn,Un,Ba,Xn)})},_r}function qn(Be,yt){var Zt=u(Be),ur=[Be].concat(yt).map(function(Sn){return a(Sn)?Zt&&(Sn=v(Sn)):Sn=Zt?ce(Sn):ge(Array.isArray(Sn)?Sn:[Sn]),Sn}).filter(function(Sn){return Sn.size!==0});if(ur.length===0)return Be;if(ur.length===1){var _r=ur[0];if(_r===Be||Zt&&u(_r)||g(Be)&&g(_r))return _r}var nn=new Z(ur);return Zt?nn=nn.toKeyedSeq():g(Be)||(nn=nn.toSetSeq()),nn=nn.flatten(!0),nn.size=ur.reduce(function(Sn,ea){if(Sn!==void 0){var Ta=ea.size;if(Ta!==void 0)return Sn+Ta}},0),nn}function ca(Be,yt,Zt){var ur=ba(Be);return ur.__iterateUncached=function(_r,nn){var Sn=0,ea=!1;function Ta(Ra,en){var Xn=this;Ra.__iterate(function(Un,Ba){return(!yt||en<yt)&&a(Un)?Ta(Un,en+1):_r(Un,Zt?Ba:Sn++,Xn)===!1&&(ea=!0),!ea},nn)}return Ta(Be,0),Sn},ur.__iteratorUncached=function(_r,nn){var Sn=Be.__iterator(_r,nn),ea=[],Ta=0;return new H(function(){for(;Sn;){var Ra=Sn.next();if(Ra.done!==!1){Sn=ea.pop();continue}var en=Ra.value;if(_r===L&&(en=en[1]),(!yt||ea.length<yt)&&a(en))ea.push(Sn),Sn=en.__iterator(_r,nn);else return Zt?Ra:G(_r,Ta++,en,Ra)}return W()})},ur}function Gn(Be,yt,Zt){var ur=Aa(Be);return Be.toSeq().map(function(_r,nn){return ur(yt.call(Zt,_r,nn,Be))}).flatten(!0)}function Bn(Be,yt){var Zt=ba(Be);return Zt.size=Be.size&&Be.size*2-1,Zt.__iterateUncached=function(ur,_r){var nn=this,Sn=0;return Be.__iterate(function(ea,Ta){return(!Sn||ur(yt,Sn++,nn)!==!1)&&ur(ea,Sn++,nn)!==!1},_r),Sn},Zt.__iteratorUncached=function(ur,_r){var nn=Be.__iterator(P,_r),Sn=0,ea;return new H(function(){return(!ea||Sn%2)&&(ea=nn.next(),ea.done)?ea:Sn%2?G(ur,Sn++,yt):G(ur,Sn++,ea.value,ea)})},Zt}function Vr(Be,yt,Zt){yt||(yt=qa);var ur=u(Be),_r=0,nn=Be.toSeq().map(function(Sn,ea){return[ea,Sn,_r++,Zt?Zt(Sn,ea,Be):Sn]}).toArray();return nn.sort(function(Sn,ea){return yt(Sn[3],ea[3])||Sn[2]-ea[2]}).forEach(ur?function(Sn,ea){nn[ea].length=2}:function(Sn,ea){nn[ea]=Sn[1]}),ur?he(nn):g(Be)?q(nn):J(nn)}function mn(Be,yt,Zt){if(yt||(yt=qa),Zt){var ur=Be.toSeq().map(function(_r,nn){return[_r,Zt(_r,nn,Be)]}).reduce(function(_r,nn){return pn(yt,_r[1],nn[1])?nn:_r});return ur&&ur[0]}else return Be.reduce(function(_r,nn){return pn(yt,_r,nn)?nn:_r})}function pn(Be,yt,Zt){var ur=Be(Zt,yt);return ur===0&&Zt!==yt&&(Zt==null||Zt!==Zt)||ur>0}function En(Be,yt,Zt){var ur=ba(Be);return ur.size=new Z(Zt).map(function(_r){return _r.size}).min(),ur.__iterate=function(_r,nn){for(var Sn=this.__iterator(P,nn),ea,Ta=0;!(ea=Sn.next()).done&&_r(ea.value,Ta++,this)!==!1;);return Ta},ur.__iteratorUncached=function(_r,nn){var Sn=Zt.map(function(Ra){return Ra=i(Ra),X(nn?Ra.reverse():Ra)}),ea=0,Ta=!1;return new H(function(){var Ra;return Ta||(Ra=Sn.map(function(en){return en.next()}),Ta=Ra.some(function(en){return en.done})),Ta?W():G(_r,ea++,yt.apply(null,Ra.map(function(en){return en.value})))})},ur}function Fn(Be,yt){return Q(Be)?yt:Be.constructor(yt)}function da(Be){if(Be!==Object(Be))throw new TypeError("Expected [K, V] tuple: "+Be)}function aa(Be){return nr(Be.size),C(Be)}function Aa(Be){return u(Be)?v:g(Be)?l:h}function ba(Be){return Object.create((u(Be)?he:g(Be)?q:J).prototype)}function ri(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):oe.prototype.cacheResult.call(this)}function qa(Be,yt){return Be>yt?1:Be<yt?-1:0}function ui(Be){var yt=X(Be);if(!yt){if(!ae(Be))throw new TypeError("Expected iterable or array-like: "+Be);yt=X(i(Be))}return yt}n(Qa,ht);function Qa(Be,yt){var Zt,ur=function(Sn){if(Sn instanceof ur)return Sn;if(!(this instanceof ur))return new ur(Sn);if(!Zt){Zt=!0;var ea=Object.keys(Be);Bl(_r,ea),_r.size=ea.length,_r._name=yt,_r._keys=ea,_r._defaultValues=Be}this._map=Rt(Sn)},_r=ur.prototype=Object.create(so);return _r.constructor=ur,ur}Qa.prototype.toString=function(){return this.__toString(yu(this)+" {","}")},Qa.prototype.has=function(Be){return this._defaultValues.hasOwnProperty(Be)},Qa.prototype.get=function(Be,yt){if(!this.has(Be))return yt;var Zt=this._defaultValues[Be];return this._map?this._map.get(Be,Zt):Zt},Qa.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var Be=this.constructor;return Be._empty||(Be._empty=To(this,Ft()))},Qa.prototype.set=function(Be,yt){if(!this.has(Be))throw new Error('Cannot set unknown key "'+Be+'" on '+yu(this));var Zt=this._map&&this._map.set(Be,yt);return this.__ownerID||Zt===this._map?this:To(this,Zt)},Qa.prototype.remove=function(Be){if(!this.has(Be))return this;var yt=this._map&&this._map.remove(Be);return this.__ownerID||yt===this._map?this:To(this,yt)},Qa.prototype.wasAltered=function(){return this._map.wasAltered()},Qa.prototype.__iterator=function(Be,yt){var Zt=this;return v(this._defaultValues).map(function(ur,_r){return Zt.get(_r)}).__iterator(Be,yt)},Qa.prototype.__iterate=function(Be,yt){var Zt=this;return v(this._defaultValues).map(function(ur,_r){return Zt.get(_r)}).__iterate(Be,yt)},Qa.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map&&this._map.__ensureOwner(Be);return Be?To(this,yt,Be):(this.__ownerID=Be,this._map=yt,this)};var so=Qa.prototype;so[s]=so.remove,so.deleteIn=so.removeIn=Mr.removeIn,so.merge=Mr.merge,so.mergeWith=Mr.mergeWith,so.mergeIn=Mr.mergeIn,so.mergeDeep=Mr.mergeDeep,so.mergeDeepWith=Mr.mergeDeepWith,so.mergeDeepIn=Mr.mergeDeepIn,so.setIn=Mr.setIn,so.update=Mr.update,so.updateIn=Mr.updateIn,so.withMutations=Mr.withMutations,so.asMutable=Mr.asMutable,so.asImmutable=Mr.asImmutable;function To(Be,yt,Zt){var ur=Object.create(Object.getPrototypeOf(Be));return ur._map=yt,ur.__ownerID=Zt,ur}function yu(Be){return Be._name||Be.constructor.name||"Record"}function Bl(Be,yt){try{yt.forEach(Tl.bind(void 0,Be))}catch{}}function Tl(Be,yt){Object.defineProperty(Be,yt,{get:function(){return this.get(yt)},set:function(Zt){lt(this.__ownerID,"Cannot set on an immutable record."),this.set(yt,Zt)}})}n(fs,_t);function fs(Be){return Be==null?ml():Wd(Be)&&!_(Be)?Be:ml().withMutations(function(yt){var Zt=h(Be);nr(Zt.size),Zt.forEach(function(ur){return yt.add(ur)})})}fs.of=function(){return this(arguments)},fs.fromKeys=function(Be){return this(v(Be).keySeq())},fs.prototype.toString=function(){return this.__toString("Set {","}")},fs.prototype.has=function(Be){return this._map.has(Be)},fs.prototype.add=function(Be){return Gu(this,this._map.set(Be,!0))},fs.prototype.remove=function(Be){return Gu(this,this._map.remove(Be))},fs.prototype.clear=function(){return Gu(this,this._map.clear())},fs.prototype.union=function(){var Be=r.call(arguments,0);return Be=Be.filter(function(yt){return yt.size!==0}),Be.length===0?this:this.size===0&&!this.__ownerID&&Be.length===1?this.constructor(Be[0]):this.withMutations(function(yt){for(var Zt=0;Zt<Be.length;Zt++)h(Be[Zt]).forEach(function(ur){return yt.add(ur)})})},fs.prototype.intersect=function(){var Be=r.call(arguments,0);if(Be.length===0)return this;Be=Be.map(function(Zt){return h(Zt)});var yt=this;return this.withMutations(function(Zt){yt.forEach(function(ur){Be.every(function(_r){return _r.includes(ur)})||Zt.remove(ur)})})},fs.prototype.subtract=function(){var Be=r.call(arguments,0);if(Be.length===0)return this;Be=Be.map(function(Zt){return h(Zt)});var yt=this;return this.withMutations(function(Zt){yt.forEach(function(ur){Be.some(function(_r){return _r.includes(ur)})&&Zt.remove(ur)})})},fs.prototype.merge=function(){return this.union.apply(this,arguments)},fs.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return this.union.apply(this,yt)},fs.prototype.sort=function(Be){return wl(Vr(this,Be))},fs.prototype.sortBy=function(Be,yt){return wl(Vr(this,yt,Be))},fs.prototype.wasAltered=function(){return this._map.wasAltered()},fs.prototype.__iterate=function(Be,yt){var Zt=this;return this._map.__iterate(function(ur,_r){return Be(_r,_r,Zt)},yt)},fs.prototype.__iterator=function(Be,yt){return this._map.map(function(Zt,ur){return ur}).__iterator(Be,yt)},fs.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map.__ensureOwner(Be);return Be?this.__make(yt,Be):(this.__ownerID=Be,this._map=yt,this)};function Wd(Be){return!!(Be&&Be[Wh])}fs.isSet=Wd;var Wh="@@__IMMUTABLE_SET__@@",co=fs.prototype;co[Wh]=!0,co[s]=co.remove,co.mergeDeep=co.merge,co.mergeDeepWith=co.mergeWith,co.withMutations=Mr.withMutations,co.asMutable=Mr.asMutable,co.asImmutable=Mr.asImmutable,co.__empty=ml,co.__make=jh;function Gu(Be,yt){return Be.__ownerID?(Be.size=yt.size,Be._map=yt,Be):yt===Be._map?Be:yt.size===0?Be.__empty():Be.__make(yt)}function jh(Be,yt){var Zt=Object.create(co);return Zt.size=Be?Be.size:0,Zt._map=Be,Zt.__ownerID=yt,Zt}var rl;function ml(){return rl||(rl=jh(Ft()))}n(wl,fs);function wl(Be){return Be==null?Bs():Bf(Be)?Be:Bs().withMutations(function(yt){var Zt=h(Be);nr(Zt.size),Zt.forEach(function(ur){return yt.add(ur)})})}wl.of=function(){return this(arguments)},wl.fromKeys=function(Be){return this(v(Be).keySeq())},wl.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Bf(Be){return Wd(Be)&&_(Be)}wl.isOrderedSet=Bf;var bs=wl.prototype;bs[c]=!0,bs.__empty=Bs,bs.__make=zf;function zf(Be,yt){var Zt=Object.create(bs);return Zt.size=Be?Be.size:0,Zt._map=Be,Zt.__ownerID=yt,Zt}var Is;function Bs(){return Is||(Is=zf(Fr()))}n(As,mt);function As(Be){return Be==null?Kh():fl(Be)?Be:Kh().unshiftAll(Be)}As.of=function(){return this(arguments)},As.prototype.toString=function(){return this.__toString("Stack [","]")},As.prototype.get=function(Be,yt){var Zt=this._head;for(Be=M(this,Be);Zt&&Be--;)Zt=Zt.next;return Zt?Zt.value:yt},As.prototype.peek=function(){return this._head&&this._head.value},As.prototype.push=function(){if(arguments.length===0)return this;for(var Be=this.size+arguments.length,yt=this._head,Zt=arguments.length-1;Zt>=0;Zt--)yt={value:arguments[Zt],next:yt};return this.__ownerID?(this.size=Be,this._head=yt,this.__hash=void 0,this.__altered=!0,this):Cc(Be,yt)},As.prototype.pushAll=function(Be){if(Be=l(Be),Be.size===0)return this;nr(Be.size);var yt=this.size,Zt=this._head;return Be.reverse().forEach(function(ur){yt++,Zt={value:ur,next:Zt}}),this.__ownerID?(this.size=yt,this._head=Zt,this.__hash=void 0,this.__altered=!0,this):Cc(yt,Zt)},As.prototype.pop=function(){return this.slice(1)},As.prototype.unshift=function(){return this.push.apply(this,arguments)},As.prototype.unshiftAll=function(Be){return this.pushAll(Be)},As.prototype.shift=function(){return this.pop.apply(this,arguments)},As.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kh()},As.prototype.slice=function(Be,yt){if(F(Be,yt,this.size))return this;var Zt=N(Be,this.size),ur=k(yt,this.size);if(ur!==this.size)return mt.prototype.slice.call(this,Be,yt);for(var _r=this.size-Zt,nn=this._head;Zt--;)nn=nn.next;return this.__ownerID?(this.size=_r,this._head=nn,this.__hash=void 0,this.__altered=!0,this):Cc(_r,nn)},As.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Cc(this.size,this._head,Be,this.__hash):(this.__ownerID=Be,this.__altered=!1,this)},As.prototype.__iterate=function(Be,yt){if(yt)return this.reverse().__iterate(Be);for(var Zt=0,ur=this._head;ur&&Be(ur.value,Zt++,this)!==!1;)ur=ur.next;return Zt},As.prototype.__iterator=function(Be,yt){if(yt)return this.reverse().__iterator(Be);var Zt=0,ur=this._head;return new H(function(){if(ur){var _r=ur.value;return ur=ur.next,G(Be,Zt++,_r)}return W()})};function fl(Be){return!!(Be&&Be[is])}As.isStack=fl;var is="@@__IMMUTABLE_STACK__@@",nl=As.prototype;nl[is]=!0,nl.withMutations=Mr.withMutations,nl.asMutable=Mr.asMutable,nl.asImmutable=Mr.asImmutable,nl.wasAltered=Mr.wasAltered;function Cc(Be,yt,Zt,ur){var _r=Object.create(nl);return _r.size=Be,_r._head=yt,_r.__ownerID=Zt,_r.__hash=ur,_r.__altered=!1,_r}var zl;function Kh(){return zl||(zl=Cc(0))}function dl(Be,yt){var Zt=function(ur){Be.prototype[ur]=yt[ur]};return Object.keys(yt).forEach(Zt),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(yt).forEach(Zt),Be}i.Iterator=H,dl(i,{toArray:function(){nr(this.size);var Be=new Array(this.size||0);return this.valueSeq().__iterate(function(yt,Zt){Be[Zt]=yt}),Be},toIndexedSeq:function(){return new Wn(this)},toJS:function(){return this.toSeq().map(function(Be){return Be&&typeof Be.toJS=="function"?Be.toJS():Be}).__toJS()},toJSON:function(){return this.toSeq().map(function(Be){return Be&&typeof Be.toJSON=="function"?Be.toJSON():Be}).__toJS()},toKeyedSeq:function(){return new fn(this,!0)},toMap:function(){return Rt(this.toKeyedSeq())},toObject:function(){nr(this.size);var Be={};return this.__iterate(function(yt,Zt){Be[Zt]=yt}),Be},toOrderedMap:function(){return $a(this.toKeyedSeq())},toOrderedSet:function(){return wl(u(this)?this.valueSeq():this)},toSet:function(){return fs(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Ca(this)},toSeq:function(){return g(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return As(u(this)?this.valueSeq():this)},toList:function(){return an(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(Be,yt){return this.size===0?Be+yt:Be+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+yt},concat:function(){var Be=r.call(arguments,0);return Fn(this,qn(this,Be))},includes:function(Be){return this.some(function(yt){return Re(yt,Be)})},entries:function(){return this.__iterator(L)},every:function(Be,yt){nr(this.size);var Zt=!0;return this.__iterate(function(ur,_r,nn){if(!Be.call(yt,ur,_r,nn))return Zt=!1,!1}),Zt},filter:function(Be,yt){return Fn(this,pi(this,Be,yt,!0))},find:function(Be,yt,Zt){var ur=this.findEntry(Be,yt);return ur?ur[1]:Zt},findEntry:function(Be,yt){var Zt;return this.__iterate(function(ur,_r,nn){if(Be.call(yt,ur,_r,nn))return Zt=[_r,ur],!1}),Zt},findLastEntry:function(Be,yt){return this.toSeq().reverse().findEntry(Be,yt)},forEach:function(Be,yt){return nr(this.size),this.__iterate(yt?Be.bind(yt):Be)},join:function(Be){nr(this.size),Be=Be!==void 0?""+Be:",";var yt="",Zt=!0;return this.__iterate(function(ur){Zt?Zt=!1:yt+=Be,yt+=ur!=null?ur.toString():""}),yt},keys:function(){return this.__iterator(T)},map:function(Be,yt){return Fn(this,wa(this,Be,yt))},reduce:function(Be,yt,Zt){nr(this.size);var ur,_r;return arguments.length<2?_r=!0:ur=yt,this.__iterate(function(nn,Sn,ea){_r?(_r=!1,ur=nn):ur=Be.call(Zt,ur,nn,Sn,ea)}),ur},reduceRight:function(Be,yt,Zt){var ur=this.toKeyedSeq().reverse();return ur.reduce.apply(ur,arguments)},reverse:function(){return Fn(this,Ha(this,!0))},slice:function(Be,yt){return Fn(this,sn(this,Be,yt,!0))},some:function(Be,yt){return!this.every(cc(Be),yt)},sort:function(Be){return Fn(this,Vr(this,Be))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(Be,yt){return C(Be?this.toSeq().filter(Be,yt):this)},countBy:function(Be,yt){return $i(this,Be,yt)},equals:function(Be){return Me(this,Be)},entrySeq:function(){var Be=this;if(Be._cache)return new Z(Be._cache);var yt=Be.toSeq().map(Rc).toIndexedSeq();return yt.fromEntrySeq=function(){return Be.toSeq()},yt},filterNot:function(Be,yt){return this.filter(cc(Be),yt)},findLast:function(Be,yt,Zt){return this.toKeyedSeq().reverse().find(Be,yt,Zt)},first:function(){return this.find(I)},flatMap:function(Be,yt){return Fn(this,Gn(this,Be,yt))},flatten:function(Be){return Fn(this,ca(this,Be,!0))},fromEntrySeq:function(){return new oa(this)},get:function(Be,yt){return this.find(function(Zt,ur){return Re(ur,Be)},void 0,yt)},getIn:function(Be,yt){for(var Zt=this,ur=ui(Be),_r;!(_r=ur.next()).done;){var nn=_r.value;if(Zt=Zt&&Zt.get?Zt.get(nn,E):E,Zt===E)return yt}return Zt},groupBy:function(Be,yt){return zr(this,Be,yt)},has:function(Be){return this.get(Be,E)!==E},hasIn:function(Be){return this.getIn(Be,E)!==E},isSubset:function(Be){return Be=typeof Be.includes=="function"?Be:i(Be),this.every(function(yt){return Be.includes(yt)})},isSuperset:function(Be){return Be=typeof Be.isSubset=="function"?Be:i(Be),Be.isSubset(this)},keySeq:function(){return this.toSeq().map(df).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(Be){return mn(this,Be)},maxBy:function(Be,yt){return mn(this,yt,Be)},min:function(Be){return mn(this,Be?qp(Be):e0)},minBy:function(Be,yt){return mn(this,yt?qp(yt):e0,Be)},rest:function(){return this.slice(1)},skip:function(Be){return this.slice(Math.max(0,Be))},skipLast:function(Be){return Fn(this,this.toSeq().reverse().skip(Be).reverse())},skipWhile:function(Be,yt){return Fn(this,ln(this,Be,yt,!0))},skipUntil:function(Be,yt){return this.skipWhile(cc(Be),yt)},sortBy:function(Be,yt){return Fn(this,Vr(this,yt,Be))},take:function(Be){return this.slice(0,Math.max(0,Be))},takeLast:function(Be){return Fn(this,this.toSeq().reverse().take(Be).reverse())},takeWhile:function(Be,yt){return Fn(this,$r(this,Be,yt))},takeUntil:function(Be,yt){return this.takeWhile(cc(Be),yt)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hf(this))}});var $o=i.prototype;$o[x]=!0,$o[Y]=$o.values,$o.__toJS=$o.toArray,$o.__toStringMapper=pv,$o.inspect=$o.toSource=function(){return this.toString()},$o.chain=$o.flatMap,$o.contains=$o.includes,function(){try{Object.defineProperty($o,"length",{get:function(){if(!i.noLengthWarning){var Be;try{throw new Error}catch(yt){Be=yt.stack}if(Be.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+Be),this.size}}})}catch{}}(),dl(v,{flip:function(){return Fn(this,ua(this))},findKey:function(Be,yt){var Zt=this.findEntry(Be,yt);return Zt&&Zt[0]},findLastKey:function(Be,yt){return this.toSeq().reverse().findKey(Be,yt)},keyOf:function(Be){return this.findKey(function(yt){return Re(yt,Be)})},lastKeyOf:function(Be){return this.findLastKey(function(yt){return Re(yt,Be)})},mapEntries:function(Be,yt){var Zt=this,ur=0;return Fn(this,this.toSeq().map(function(_r,nn){return Be.call(yt,[nn,_r],ur++,Zt)}).fromEntrySeq())},mapKeys:function(Be,yt){var Zt=this;return Fn(this,this.toSeq().flip().map(function(ur,_r){return Be.call(yt,ur,_r,Zt)}).flip())}});var md=v.prototype;md[p]=!0,md[Y]=$o.entries,md.__toJS=$o.toObject,md.__toStringMapper=function(Be,yt){return JSON.stringify(yt)+": "+pv(Be)},dl(l,{toKeyedSeq:function(){return new fn(this,!1)},filter:function(Be,yt){return Fn(this,pi(this,Be,yt,!1))},findIndex:function(Be,yt){var Zt=this.findEntry(Be,yt);return Zt?Zt[0]:-1},indexOf:function(Be){var yt=this.toKeyedSeq().keyOf(Be);return yt===void 0?-1:yt},lastIndexOf:function(Be){var yt=this.toKeyedSeq().reverse().keyOf(Be);return yt===void 0?-1:yt},reverse:function(){return Fn(this,Ha(this,!1))},slice:function(Be,yt){return Fn(this,sn(this,Be,yt,!1))},splice:function(Be,yt){var Zt=arguments.length;if(yt=Math.max(yt|0,0),Zt===0||Zt===2&&!yt)return this;Be=N(Be,Be<0?this.count():this.size);var ur=this.slice(0,Be);return Fn(this,Zt===1?ur:ur.concat(S(arguments,2),this.slice(Be+yt)))},findLastIndex:function(Be,yt){var Zt=this.toKeyedSeq().findLastKey(Be,yt);return Zt===void 0?-1:Zt},first:function(){return this.get(0)},flatten:function(Be){return Fn(this,ca(this,Be,!1))},get:function(Be,yt){return Be=M(this,Be),Be<0||this.size===1/0||this.size!==void 0&&Be>this.size?yt:this.find(function(Zt,ur){return ur===Be},void 0,yt)},has:function(Be){return Be=M(this,Be),Be>=0&&(this.size!==void 0?this.size===1/0||Be<this.size:this.indexOf(Be)!==-1)},interpose:function(Be){return Fn(this,Bn(this,Be))},interleave:function(){var Be=[this].concat(S(arguments)),yt=En(this.toSeq(),q.of,Be),Zt=yt.flatten(!0);return yt.size&&(Zt.size=yt.size*Be.length),Fn(this,Zt)},last:function(){return this.get(-1)},skipWhile:function(Be,yt){return Fn(this,ln(this,Be,yt,!1))},zip:function(){var Be=[this].concat(S(arguments));return Fn(this,En(this,yd,Be))},zipWith:function(Be){var yt=S(arguments);return yt[0]=this,Fn(this,En(this,Be,yt))}}),l.prototype[b]=!0,l.prototype[c]=!0,dl(h,{get:function(Be,yt){return this.has(Be)?Be:yt},includes:function(Be){return this.has(Be)},keySeq:function(){return this.valueSeq()}}),h.prototype.has=$o.includes,dl(he,v.prototype),dl(q,l.prototype),dl(J,h.prototype),dl(ht,v.prototype),dl(mt,l.prototype),dl(_t,h.prototype);function df(Be,yt){return yt}function Rc(Be,yt){return[yt,Be]}function cc(Be){return function(){return!Be.apply(this,arguments)}}function qp(Be){return function(){return-Be.apply(this,arguments)}}function pv(Be){return typeof Be=="string"?JSON.stringify(Be):Be}function yd(){return S(arguments)}function e0(Be,yt){return Be<yt?1:Be>yt?-1:0}function hf(Be){if(Be.size===1/0)return 0;var yt=_(Be),Zt=u(Be),ur=yt?1:0,_r=Be.__iterate(Zt?yt?function(nn,Sn){ur=31*ur+Qh(He(nn),He(Sn))|0}:function(nn,Sn){ur=ur+Qh(He(nn),He(Sn))|0}:yt?function(nn){ur=31*ur+He(nn)|0}:function(nn){ur=ur+He(nn)|0});return Xh(_r,ur)}function Xh(Be,yt){return yt=Mt(yt,3432918353),yt=Mt(yt<<15|yt>>>-15,461845907),yt=Mt(yt<<13|yt>>>-13,5),yt=(yt+3864292196|0)^Be,yt=Mt(yt^yt>>>16,2246822507),yt=Mt(yt^yt>>>13,3266489909),yt=it(yt^yt>>>16),yt}function Qh(Be,yt){return Be^yt+2654435769+(Be<<6)+(Be>>2)|0}var mg={Iterable:i,Seq:oe,Collection:ct,Map:Rt,OrderedMap:$a,List:an,Stack:As,Set:fs,OrderedSet:wl,Record:Qa,Range:Je,Repeat:ze,is:Re,fromJS:Ce};return mg})})(bTe);var Ys=bTe.exports,WPt=Ys,jPt=WPt.OrderedMap,KPt={createFromArray:function(t){return jPt(t.map(function(r){return[r.getKey(),r]}))}},s4=KPt;function XPt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $K=Ys,HK=$K.Map,GK=$K.OrderedSet,QPt=$K.Record,_Te=GK(),xTe={style:_Te,entity:null},ZPt=QPt(xTe),VK=function(e){XPt(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(i){return this.getStyle().includes(i)},t.applyStyle=function(i,v){var l=i.set("style",i.getStyle().add(v));return t.create(l)},t.removeStyle=function(i,v){var l=i.set("style",i.getStyle().remove(v));return t.create(l)},t.applyEntity=function(i,v){var l=i.getEntity()===v?i:i.set("entity",v);return t.create(l)},t.create=function(i){if(!i)return YK;var v={style:_Te,entity:null},l=HK(v).merge(i),h=WK.get(l);if(h)return h;var a=new t(l);return WK=WK.set(l,a),a},t.fromJS=function(i){var v=i.style,l=i.entity;return new t({style:Array.isArray(v)?GK(v):v,entity:Array.isArray(l)?GK(l):l})},t}(ZPt),YK=new VK,WK=HK([[HK(xTe),YK]]);VK.EMPTY=YK;var ov=VK;function JPt(e,t,r,n){if(e.size){var i=0;e.reduce(function(v,l,h){return t(v,l)||(r(v)&&n(i,h),i=h),l}),r(e.last())&&n(i,e.count())}}var l4=JPt;function qPt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var e7t=ov,ETe=l4,u4=Ys,STe=u4.List,t7t=u4.Map,r7t=u4.OrderedSet,n7t=u4.Record,a7t=u4.Repeat,i7t=r7t(),o7t={key:"",type:"unstyled",text:"",characterList:STe(),depth:0,data:t7t()},s7t=n7t(o7t),l7t=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=STe(a7t(e7t.EMPTY,n.length))),t},u7t=function(e){qPt(t,e);function t(n){return e.call(this,l7t(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(i){var v=this.getCharacterList().get(i);return v?v.getStyle():i7t},r.getEntityAt=function(i){var v=this.getCharacterList().get(i);return v?v.getEntity():null},r.findStyleRanges=function(i,v){ETe(this.getCharacterList(),c7t,i,v)},r.findEntityRanges=function(i,v){ETe(this.getCharacterList(),f7t,i,v)},t}(s7t);function c7t(e,t){return e.getStyle()===t.getStyle()}function f7t(e,t){return e.getEntity()===t.getEntity()}var $_=u7t;function d7t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h7t=ov,TTe=l4,c4=Ys,jK=c4.List,p7t=c4.Map,v7t=c4.OrderedSet,g7t=c4.Record,m7t=c4.Repeat,y7t=v7t(),wTe={parent:null,characterList:jK(),data:p7t(),depth:0,key:"",text:"",type:"unstyled",children:jK(),prevSibling:null,nextSibling:null},b7t=function(t,r){return t.getStyle()===r.getStyle()},_7t=function(t,r){return t.getEntity()===r.getEntity()},x7t=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=jK(m7t(h7t.EMPTY,n.length))),t},E7t=function(e){d7t(t,e);function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wTe;return e.call(this,x7t(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(i){var v=this.getCharacterList().get(i);return v?v.getStyle():y7t},r.getEntityAt=function(i){var v=this.getCharacterList().get(i);return v?v.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(i,v){TTe(this.getCharacterList(),b7t,i,v)},r.findEntityRanges=function(i,v){TTe(this.getCharacterList(),_7t,i,v)},t}(g7t(wTe)),sv=E7t,ATe=ov,S7t=Ys,T7t=S7t.Map,w7t={add:function(t,r,n){return CTe(t,r,n,!0)},remove:function(t,r,n){return CTe(t,r,n,!1)}};function CTe(e,t,r,n){var i=e.getBlockMap(),v=t.getStartKey(),l=t.getStartOffset(),h=t.getEndKey(),a=t.getEndOffset(),u=i.skipUntil(function(g,o){return o===v}).takeUntil(function(g,o){return o===h}).concat(T7t([[h,i.get(h)]])).map(function(g,o){var _,x;v===h?(_=l,x=a):(_=o===v?l:0,x=o===h?a:g.getLength());for(var p=g.getCharacterList(),b;_<x;)b=p.get(_),p=p.set(_,n?ATe.applyStyle(b,r):ATe.removeStyle(b,r)),_++;return g.set("characterList",p)});return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var A7t=w7t,C7t=ov;function R7t(e,t,r,n){for(var i=t,v=e.getCharacterList();i<r;)v=v.set(i,C7t.applyEntity(v.get(i),n)),i++;return e.set("characterList",v)}var M7t=R7t,I7t=M7t,O7t=Ys;function D7t(e,t,r){var n=e.getBlockMap(),i=t.getStartKey(),v=t.getStartOffset(),l=t.getEndKey(),h=t.getEndOffset(),a=n.skipUntil(function(u,g){return g===i}).takeUntil(function(u,g){return g===l}).toOrderedMap().merge(O7t.OrderedMap([[l,n.get(l)]])).map(function(u,g){var o=g===i?v:0,_=g===l?h:u.getLength();return I7t(u,o,_,r)});return e.merge({blockMap:n.merge(a),selectionBefore:t,selectionAfter:t})}var N7t=D7t,L7t={getRemovalRange:function(t,r,n,i,v){var l=n.split(" ");l=l.map(function(c,s){if(v==="forward"){if(s>0)return" "+c}else if(s<l.length-1)return c+" ";return c});for(var h=i,a,u,g=null,o=null,_=0;_<l.length;_++){if(u=l[_],a=h+u.length,t<a&&h<r)g!==null||(g=h),o=a;else if(g!==null)break;h=a}var x=i+n.length,p=g===i,b=o===x;return(!p&&b||p&&!b)&&(v==="forward"?o!==x&&o++:g!==i&&g--),{start:g,end:o}}},P7t=L7t;function k7t(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(!e){var v;if(t===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;v=new Error(t.replace(/%s/g,function(){return String(n[l++])})),v.name="Invariant Violation"}throw v.framesToPop=1,v}}var Qs=k7t,F7t=Qs;function B7t(e,t){var r=[];return e.findEntityRanges(function(n){return n.getEntity()===t},function(n,i){r.push({start:n,end:i})}),r.length||F7t(!1),r}var z7t=B7t,U7t=P7t,$7t=z7t,H7t=Qs;function G7t(e,t,r,n,i){var v=n.getStartOffset(),l=n.getEndOffset(),h=t.getEntityAt(v),a=r.getEntityAt(l-1);if(!h&&!a)return n;var u=n;if(h&&h===a)u=f4(e,t,u,i,h,!0,!0);else if(h&&a){var g=f4(e,t,u,i,h,!1,!0),o=f4(e,r,u,i,a,!1,!1);u=u.merge({anchorOffset:g.getAnchorOffset(),focusOffset:o.getFocusOffset(),isBackward:!1})}else if(h){var _=f4(e,t,u,i,h,!1,!0);u=u.merge({anchorOffset:_.getStartOffset(),isBackward:!1})}else if(a){var x=f4(e,r,u,i,a,!1,!1);u=u.merge({focusOffset:x.getEndOffset(),isBackward:!1})}return u}function f4(e,t,r,n,i,v,l){var h=r.getStartOffset(),a=r.getEndOffset(),u=e.__get(i),g=u.getMutability(),o=l?h:a;if(g==="MUTABLE")return r;var _=$7t(t,i).filter(function(b){return o<=b.end&&o>=b.start});_.length!=1&&H7t(!1);var x=_[0];if(g==="IMMUTABLE")return r.merge({anchorOffset:x.start,focusOffset:x.end,isBackward:!1});v||(l?a=x.end:h=x.start);var p=U7t.getRemovalRange(h,a,t.getText().slice(x.start,x.end),x.start,n);return r.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var V7t=G7t,RTe={},Y7t=Math.pow(2,24);function W7t(){for(var e;e===void 0||RTe.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*Y7t).toString(32);return RTe[e]=!0,e}var xm=W7t,j7t=sv,MTe=xm,K7t=Ys,ITe=K7t.OrderedMap,X7t=function(t){var r={},n;return ITe(t.withMutations(function(i){i.forEach(function(v,l){var h=v.getKey(),a=v.getNextSiblingKey(),u=v.getPrevSiblingKey(),g=v.getChildKeys(),o=v.getParentKey(),_=MTe();if(r[h]=_,a){var x=i.get(a);x?i.setIn([a,"prevSibling"],_):i.setIn([h,"nextSibling"],null)}if(u){var p=i.get(u);p?i.setIn([u,"nextSibling"],_):i.setIn([h,"prevSibling"],null)}if(o&&i.get(o)){var b=i.get(o),c=b.getChildKeys();i.setIn([o,"children"],c.set(c.indexOf(v.getKey()),_))}else i.setIn([h,"parent"],null),n&&(i.setIn([n.getKey(),"nextSibling"],_),i.setIn([h,"prevSibling"],r[n.getKey()])),n=i.get(h);g.forEach(function(s){var d=i.get(s);d?i.setIn([s,"parent"],_):i.setIn([h,"children"],v.getChildKeys().filter(function(f){return f!==s}))})})}).toArray().map(function(i){return[r[i.getKey()],i.set("key",r[i.getKey()])]}))},Q7t=function(t){return ITe(t.toArray().map(function(r){var n=MTe();return[n,r.set("key",n)]}))},Z7t=function(t){var r=t.first()instanceof j7t;return r?X7t(t):Q7t(t)},OTe=Z7t,J7t=ov,q7t=l4,ekt=Qs;function tkt(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),i={},v=t.getStartKey(),l=t.getStartOffset(),h=r.get(v),a=DTe(n,h,l);a!==h&&(i[v]=a);var u=t.getEndKey(),g=t.getEndOffset(),o=r.get(u);v===u&&(o=a);var _=DTe(n,o,g);return _!==o&&(i[u]=_),Object.keys(i).length?e.merge({blockMap:r.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}function rkt(e,t,r){var n;return q7t(e,function(i,v){return i.getEntity()===v.getEntity()},function(i){return i.getEntity()===t},function(i,v){i<=r&&v>=r&&(n={start:i,end:v})}),typeof n!="object"&&ekt(!1),n}function DTe(e,t,r){var n=t.getCharacterList(),i=r>0?n.get(r-1):void 0,v=r<n.count()?n.get(r):void 0,l=i?i.getEntity():void 0,h=v?v.getEntity():void 0;if(h&&h===l){var a=e.__get(h);if(a.getMutability()!=="MUTABLE"){for(var u=rkt(n,h,r),g=u.start,o=u.end,_;g<o;)_=n.get(g),n=n.set(g,J7t.applyEntity(_,null)),g++;return t.set("characterList",n)}}return t}var NTe=tkt,nkt=OTe,akt=NTe,ikt=function(t,r){var n=r.getStartKey(),i=r.getStartOffset(),v=r.getEndKey(),l=r.getEndOffset(),h=akt(t,r),a=h.getBlockMap(),u=a.keySeq(),g=u.indexOf(n),o=u.indexOf(v)+1;return nkt(a.slice(g,o).map(function(_,x){var p=_.getText(),b=_.getCharacterList();return n===v?_.merge({text:p.slice(i,l),characterList:b.slice(i,l)}):x===n?_.merge({text:p.slice(i),characterList:b.slice(i)}):x===v?_.merge({text:p.slice(0,l),characterList:b.slice(0,l)}):_}))},PD=ikt;function okt(e,t,r){var n=e;if(r===n.count())t.forEach(function(l){n=n.push(l)});else if(r===0)t.reverse().forEach(function(l){n=n.unshift(l)});else{var i=n.slice(0,r),v=n.slice(r);n=i.concat(t,v).toList()}return n}var LTe=okt,skt=s4,PTe=sv,lkt=Ys,ukt=LTe,kTe=Qs,ckt=OTe,fkt=lkt.List,dkt=function(t,r,n,i,v,l){var h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",a=n.get(v),u=a.getText(),g=a.getCharacterList(),o=v,_=l+i.getText().length,x=null;switch(h){case"MERGE_OLD_DATA_TO_NEW_DATA":x=i.getData().merge(a.getData());break;case"REPLACE_WITH_NEW_DATA":x=i.getData();break}var p=a.getType();u&&p==="unstyled"&&(p=i.getType());var b=a.merge({text:u.slice(0,l)+i.getText()+u.slice(l),characterList:ukt(g,i.getCharacterList(),l),type:p,data:x});return t.merge({blockMap:n.set(v,b),selectionBefore:r,selectionAfter:r.merge({anchorKey:o,anchorOffset:_,focusKey:o,focusOffset:_,isBackward:!1})})},hkt=function(t,r,n){var i=t.getText(),v=t.getCharacterList(),l=i.slice(0,r),h=v.slice(0,r),a=n.first();return t.merge({text:l+a.getText(),characterList:h.concat(a.getCharacterList()),type:l?t.getType():a.getType(),data:a.getData()})},pkt=function(t,r,n){var i=t.getText(),v=t.getCharacterList(),l=i.length,h=i.slice(r,l),a=v.slice(r,l),u=n.last();return u.merge({text:u.getText()+h,characterList:u.getCharacterList().concat(a),data:u.getData()})},vkt=function(t,r){var n=t.getKey(),i=t,v=[];for(r.get(n)&&v.push(n);i&&i.getNextSiblingKey();){var l=i.getNextSiblingKey();if(!l)break;v.push(l),i=r.get(l)}return v},gkt=function(t,r,n,i){return t.withMutations(function(v){var l=n.getKey(),h=i.getKey(),a=n.getNextSiblingKey(),u=n.getParentKey(),g=vkt(i,t),o=g[g.length-1];if(v.get(h)?(v.setIn([l,"nextSibling"],h),v.setIn([h,"prevSibling"],l)):(v.setIn([l,"nextSibling"],i.getNextSiblingKey()),v.setIn([i.getNextSiblingKey(),"prevSibling"],l)),v.setIn([o,"nextSibling"],a),a&&v.setIn([a,"prevSibling"],o),g.forEach(function(s){return v.setIn([s,"parent"],u)}),u){var _=t.get(u),x=_.getChildKeys(),p=x.indexOf(l),b=p+1,c=x.toArray();c.splice.apply(c,[b,0].concat(g)),v.setIn([u,"children"],fkt(c))}})},mkt=function(t,r,n,i,v,l){var h=n.first()instanceof PTe,a=[],u=i.size,g=n.get(v),o=i.first(),_=i.last(),x=_.getLength(),p=_.getKey(),b=h&&(!g.getChildKeys().isEmpty()||!o.getChildKeys().isEmpty());n.forEach(function(s,d){if(d!==v){a.push(s);return}b?a.push(s):a.push(hkt(s,l,i)),i.slice(b?0:1,u-1).forEach(function(f){return a.push(f)}),a.push(pkt(s,l,i))});var c=skt.createFromArray(a);return h&&(c=gkt(c,n,g,o)),t.merge({blockMap:c,selectionBefore:r,selectionAfter:r.merge({anchorKey:p,anchorOffset:x,focusKey:p,focusOffset:x,isBackward:!1})})},ykt=function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||kTe(!1);var v=t.getBlockMap(),l=ckt(n),h=r.getStartKey(),a=r.getStartOffset(),u=v.get(h);return u instanceof PTe&&(u.getChildKeys().isEmpty()||kTe(!1)),l.size===1?dkt(t,r,v,l.first(),h,a,i):mkt(t,r,v,l,h,a)},bkt=ykt,_kt=Ys,xkt=LTe,Ekt=Qs,Skt=_kt.Repeat;function Tkt(e,t,r,n){t.isCollapsed()||Ekt(!1);var i=null;if(r!=null&&(i=r.length),i==null||i===0)return e;var v=e.getBlockMap(),l=t.getStartKey(),h=t.getStartOffset(),a=v.get(l),u=a.getText(),g=a.merge({text:u.slice(0,h)+r+u.slice(h,a.getLength()),characterList:xkt(a.getCharacterList(),Skt(n,i).toList(),h)}),o=h+i;return e.merge({blockMap:v.set(l,g),selectionAfter:t.merge({anchorOffset:o,focusOffset:o})})}var wkt=Tkt,Akt=Ys,Ckt=Akt.Map;function Rkt(e,t,r){var n=t.getStartKey(),i=t.getEndKey(),v=e.getBlockMap(),l=v.toSeq().skipUntil(function(h,a){return a===n}).takeUntil(function(h,a){return a===i}).concat(Ckt([[i,v.get(i)]])).map(r);return e.merge({blockMap:v.merge(l),selectionBefore:t,selectionAfter:t})}var FTe=Rkt,Mkt=sv,Ikt=function(t,r){var n=t instanceof Mkt;if(!n)return null;var i=t.getNextSiblingKey();if(i)return i;var v=t.getParentKey();if(!v)return null;for(var l=r.get(v);l&&!l.getNextSiblingKey();){var h=l.getParentKey();l=h?r.get(h):null}return l?l.getNextSiblingKey():null},BTe=Ikt,Okt=sv,KK=BTe,zTe=Ys;zTe.List;var UTe=zTe.Map,zh=function(t,r,n){if(t){var i=r.get(t);i&&r.set(t,n(i))}},kD=function(t,r){var n=[];if(!t)return n;for(var i=r.get(t);i&&i.getParentKey();){var v=i.getParentKey();v&&n.push(v),i=v?r.get(v):null}return n},Dkt=function(t,r){var n=[];if(!t)return n;for(var i=KK(t,r);i&&r.get(i);){var v=r.get(i);n.push(i),i=v.getParentKey()?KK(v,r):null}return n},cT=function(t,r,n){if(!t)return null;for(var i=n.get(t.getKey()).getNextSiblingKey();i&&!r.get(i);)i=n.get(i).getNextSiblingKey()||null;return i},fT=function(t,r,n){if(!t)return null;for(var i=n.get(t.getKey()).getPrevSiblingKey();i&&!r.get(i);)i=n.get(i).getPrevSiblingKey()||null;return i},Nkt=function(t,r,n,i){return t.withMutations(function(v){if(zh(r.getKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i),prevSibling:fT(g,v,i)})}),zh(n.getKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i),prevSibling:fT(g,v,i)})}),kD(r.getKey(),i).forEach(function(g){return zh(g,v,function(o){return o.merge({children:o.getChildKeys().filter(function(_){return v.get(_)}),nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),zh(r.getNextSiblingKey(),v,function(g){return g.merge({prevSibling:r.getPrevSiblingKey()})}),zh(r.getPrevSiblingKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i)})}),zh(n.getNextSiblingKey(),v,function(g){return g.merge({prevSibling:fT(g,v,i)})}),zh(n.getPrevSiblingKey(),v,function(g){return g.merge({nextSibling:n.getNextSiblingKey()})}),kD(n.getKey(),i).forEach(function(g){zh(g,v,function(o){return o.merge({children:o.getChildKeys().filter(function(_){return v.get(_)}),nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),Dkt(n,i).forEach(function(g){return zh(g,v,function(o){return o.merge({nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),t.get(r.getKey())==null&&t.get(n.getKey())!=null&&n.getParentKey()===r.getKey()&&n.getPrevSiblingKey()==null){var l=r.getPrevSiblingKey();zh(n.getKey(),v,function(g){return g.merge({prevSibling:l})}),zh(l,v,function(g){return g.merge({nextSibling:n.getKey()})});var h=l?t.get(l):null,a=h?h.getParentKey():null;if(r.getChildKeys().forEach(function(g){zh(g,v,function(o){return o.merge({parent:a})})}),a!=null){var u=t.get(a);zh(a,v,function(g){return g.merge({children:u.getChildKeys().concat(r.getChildKeys())})})}zh(r.getChildKeys().find(function(g){var o=t.get(g);return o.getNextSiblingKey()===null}),v,function(g){return g.merge({nextSibling:r.getNextSiblingKey()})})}})},Lkt=function(t,r){if(r.isCollapsed())return t;var n=t.getBlockMap(),i=r.getStartKey(),v=r.getStartOffset(),l=r.getEndKey(),h=r.getEndOffset(),a=n.get(i),u=n.get(l),g=a instanceof Okt,o=[];if(g){var _=u.getChildKeys(),x=kD(l,n);u.getNextSiblingKey()&&(o=o.concat(x)),_.isEmpty()||(o=o.concat(x.concat([l]))),o=o.concat(kD(KK(u,n),n))}var p;a===u?p=Pkt(a.getCharacterList(),v,h):p=a.getCharacterList().slice(0,v).concat(u.getCharacterList().slice(h));var b=a.merge({text:a.getText().slice(0,v)+u.getText().slice(h),characterList:p}),c=g&&v===0&&h===0&&u.getParentKey()===i&&u.getPrevSiblingKey()==null,s=c?UTe([[i,null]]):n.toSeq().skipUntil(function(f,m){return m===i}).takeUntil(function(f,m){return m===l}).filter(function(f,m){return o.indexOf(m)===-1}).concat(UTe([[l,null]])).map(function(f,m){return m===i?b:null}),d=n.merge(s).filter(function(f){return!!f});return g&&a!==u&&(d=Nkt(d,a,u,n)),t.merge({blockMap:d,selectionBefore:r,selectionAfter:r.merge({anchorKey:i,anchorOffset:v,focusKey:i,focusOffset:v,isBackward:!1})})},Pkt=function(t,r,n){if(r===0)for(;r<n;)t=t.shift(),r++;else if(n===t.count())for(;n>r;)t=t.pop(),n--;else{var i=t.slice(0,r),v=t.slice(n);t=i.concat(v).toList()}return t},kkt=Lkt,Fkt=sv,Bkt=xm,$Te=Ys,HTe=Qs,zkt=FTe,Ukt=$Te.List,$kt=$Te.Map,FD=function(t,r,n){if(t){var i=r.get(t);i&&r.set(t,n(i))}},Hkt=function(t,r,n){return t.withMutations(function(i){var v=r.getKey(),l=n.getKey();FD(r.getParentKey(),i,function(h){var a=h.getChildKeys(),u=a.indexOf(v)+1,g=a.toArray();return g.splice(u,0,l),h.merge({children:Ukt(g)})}),FD(r.getNextSiblingKey(),i,function(h){return h.merge({prevSibling:l})}),FD(v,i,function(h){return h.merge({nextSibling:l})}),FD(l,i,function(h){return h.merge({prevSibling:v})})})},Gkt=function(t,r){r.isCollapsed()||HTe(!1);var n=r.getAnchorKey(),i=t.getBlockMap(),v=i.get(n),l=v.getText();if(!l){var h=v.getType();if(h==="unordered-list-item"||h==="ordered-list-item")return zkt(t,r,function(s){return s.merge({type:"unstyled",depth:0})})}var a=r.getAnchorOffset(),u=v.getCharacterList(),g=Bkt(),o=v instanceof Fkt,_=v.merge({text:l.slice(0,a),characterList:u.slice(0,a)}),x=_.merge({key:g,text:l.slice(a),characterList:u.slice(a),data:$kt()}),p=i.toSeq().takeUntil(function(s){return s===v}),b=i.toSeq().skipUntil(function(s){return s===v}).rest(),c=p.concat([[n,_],[g,x]],b).toOrderedMap();return o&&(v.getChildKeys().isEmpty()||HTe(!1),c=Hkt(c,_,x)),t.merge({blockMap:c,selectionBefore:r,selectionAfter:r.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})},Vkt=Gkt,Ykt=ov,GTe=A7t,Wkt=N7t,jkt=V7t,Kkt=PD,Xkt=Ys,Qkt=bkt,Zkt=wkt,Jkt=Qs,XK=FTe,d4=NTe,h4=kkt,qkt=Vkt,e9t=Xkt.OrderedSet,BD={replaceText:function(t,r,n,i,v){var l=d4(t,r),h=h4(l,r),a=Ykt.create({style:i||e9t(),entity:v||null});return Zkt(h,h.getSelectionAfter(),n,a)},insertText:function(t,r,n,i,v){return r.isCollapsed()||Jkt(!1),BD.replaceText(t,r,n,i,v)},moveText:function(t,r,n){var i=Kkt(t,r),v=BD.removeRange(t,r,"backward");return BD.replaceWithFragment(v,n,i)},replaceWithFragment:function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",v=d4(t,r),l=h4(v,r);return Qkt(l,l.getSelectionAfter(),n,i)},removeRange:function(t,r,n){var i,v,l,h;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),i=r.getAnchorKey(),v=r.getFocusKey(),l=t.getBlockForKey(i),h=t.getBlockForKey(v);var a=r.getStartOffset(),u=r.getEndOffset(),g=l.getEntityAt(a),o=h.getEntityAt(u-1);if(i===v&&g&&g===o){var _=jkt(t.getEntityMap(),l,h,r,n);return h4(t,_)}var x=d4(t,r);return h4(x,r)},splitBlock:function(t,r){var n=d4(t,r),i=h4(n,r);return qkt(i,i.getSelectionAfter())},applyInlineStyle:function(t,r,n){return GTe.add(t,r,n)},removeInlineStyle:function(t,r,n){return GTe.remove(t,r,n)},setBlockType:function(t,r,n){return XK(t,r,function(i){return i.merge({type:n,depth:0})})},setBlockData:function(t,r,n){return XK(t,r,function(i){return i.merge({data:n})})},mergeBlockData:function(t,r,n){return XK(t,r,function(i){return i.merge({data:i.getData().merge(n)})})},applyEntity:function(t,r,n){var i=d4(t,r);return Wkt(i,r,n)}},Uh=BD;function t9t(e){return Object.keys(e).map(function(t){return e[t]})}var VTe=t9t;function r9t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){n9t(e,i,r[i])})}return e}function n9t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9t(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,v;for(v=0;v<n.length;v++)i=n[v],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var YTe=l4,i9t=VTe,QK=Ys,dT=QK.List,o9t=QK.Repeat,WTe=QK.Record,jTe=function(){return!0},s9t={start:null,end:null},ZK=WTe(s9t),l9t={start:null,end:null,decoratorKey:null,leaves:null},JK=WTe(l9t),u9t={generate:function(t,r,n){var i=r.getLength();if(!i)return dT.of(new JK({start:0,end:0,decoratorKey:null,leaves:dT.of(new ZK({start:0,end:0}))}));var v=[],l=n?n.getDecorations(r,t):dT(o9t(null,i)),h=r.getCharacterList();return YTe(l,KTe,jTe,function(a,u){v.push(new JK({start:a,end:u,decoratorKey:l.get(a),leaves:c9t(h.slice(a,u).toList(),a)}))}),dT(v)},fromJS:function(t){var r=t.leaves,n=a9t(t,["leaves"]);return new JK(r9t({},n,{leaves:r!=null?dT(Array.isArray(r)?r:i9t(r)).map(function(i){return ZK(i)}):null}))}};function c9t(e,t){var r=[],n=e.map(function(i){return i.getStyle()}).toList();return YTe(n,KTe,jTe,function(i,v){r.push(new ZK({start:i+t,end:v+t}))}),dT(r)}function KTe(e,t){return e===t}var f9t=u9t;function d9t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h9t=Ys,p9t=h9t.Record,v9t=p9t({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),g9t=function(e){d9t(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},t}(v9t),XTe=g9t;function m9t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}var y9t=m9t;function b9t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_9t(e,i,r[i])})}return e}function _9t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x9t=XTe,E9t=Ys,S9t=Qs,qK=y9t,T9t=E9t.Map,U1=T9t(),p4=qK();function hT(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
702
+ `).length:0}const OLt=bt.memo(({fileSpec:e,onFileUpload:t,onFileUploadError:r,onSubmit:n,onReply:i})=>{var w,S,C;const[v,l]=tc(iC),[h]=tc($c),a=jo(GC),u=jo(Vz),g=bt.useRef(null),{loading:o,askUser:_,chatSettingsInputs:x,disabled:p}=Vg(),b=p||!!v.find(M=>!M.uploaded),[c,s]=bt.useState(""),[d,f]=bt.useState(!1),m=(w=h==null?void 0:h.features.speech_to_text)==null?void 0:w.enabled,{t:E}=Kv();bt.useEffect(()=>{const M=F=>{if(F.clipboardData&&F.clipboardData.items){const N=Array.from(F.clipboardData.items);if(F.clipboardData.getData("text/plain"))return;N.forEach(O=>{if(O.kind==="file"){const T=O.getAsFile();T&&t([T])}})}};if(!g.current)return;const I=g.current;return I.addEventListener("paste",M),()=>{I.removeEventListener("paste",M)}},[]),bt.useEffect(()=>{g.current&&!o&&!b&&g.current.focus()},[o,b]);const y=bt.useCallback(()=>{c===""||b||(_?i(c):n(c,v),l([]),s(""))},[c,b,s,_,v,l,n]),R=bt.useCallback(M=>{M.key==="Enter"&&!M.shiftKey?d||(M.preventDefault(),y()):M.key==="ArrowUp"&&ILt(M.currentTarget)<=1&&a(F=>({...F,open:!0}))},[y,a,d]),A=bt.useCallback(M=>{g.current&&s(M)},[]),D=Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(MLt,{disabled:b,onClick:A}),Ge.jsx(Txe,{disabled:b,fileSpec:e,onFileUploadError:r,onFileUpload:t}),x.length>0&&Ge.jsx(Ts,{id:"chat-settings-open-modal",disabled:b,color:"inherit",onClick:()=>u(!0),children:Ge.jsx(JW,{})}),m?Ge.jsx(Ixe,{onSpeech:M=>s(I=>I+M),language:(C=(S=h.features)==null?void 0:S.speech_to_text)==null?void 0:C.language,disabled:b}):null]});return Ge.jsxs(to,{sx:{backgroundColor:"background.paper",borderRadius:1,border:M=>`1px solid ${M.palette.divider}`,boxShadow:"box-shadow: 0px 2px 4px 0px #0000000D",textarea:{height:"34px",maxHeight:"30vh",overflowY:"auto !important",resize:"none",paddingBottom:"0.75rem",paddingTop:"0.75rem",color:"text.primary",lineHeight:"24px"}},children:[v.length>0?Ge.jsx(ni,{sx:{mt:2,mx:2,padding:"2px"},children:Ge.jsx(bxe,{})}):null,Ge.jsx(YE,{inputRef:g,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:E("components.organisms.chat.inputBox.input.placeholder"),disabled:b,onChange:M=>s(M.target.value),onKeyDown:R,onCompositionStart:()=>f(!0),onCompositionEnd:()=>f(!1),value:c,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:Ge.jsx(xF,{sx:{ml:1,color:"text.secondary"},position:"start",children:D}),endAdornment:Ge.jsx(Exe,{onSubmit:y,disabled:b||!c})}})]})}),DLt=bt.memo(({fileSpec:e,onFileUpload:t,onFileUploadError:r,setAutoScroll:n,autoScroll:i,projectSettings:v})=>{const l=jo(GC),{user:h}=F1(),{sendMessage:a,replyMessage:u}=nd(),g=bt.useCallback(async(_,x)=>{const p={threadId:"",id:AK(),name:(h==null?void 0:h.identifier)||"User",type:"user_message",output:_,createdAt:new Date().toISOString()};l(c=>{const d=[...c.inputs||[]];return d.push({content:_,createdAt:new Date().getTime()}),{...c,inputs:d.length>50?d.slice(d.length-50):d}});const b=x==null?void 0:x.filter(c=>!!c.serverId).map(c=>({id:c.serverId}));n(!0),a(p,b)},[h,v,a]),o=bt.useCallback(async _=>{const x={threadId:"",id:AK(),name:(h==null?void 0:h.identifier)||"User",type:"user_message",output:_,createdAt:new Date().toISOString()};u(x),n(!0)},[h,u]);return Ge.jsxs(ni,{display:"flex",position:"relative",flexDirection:"column",gap:1,p:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[i?null:Ge.jsx(yxe,{onClick:()=>n(!0)}),Ge.jsx(ni,{children:Ge.jsx(OLt,{fileSpec:e,onFileUpload:t,onFileUploadError:r,onSubmit:g,onReply:o})}),Ge.jsx(lj,{})]})}),uTe=()=>{var m,E;const{idToResume:e}=Iy(),t=ao($c),r=jo(iC),n=jo(_w),i=ao(hE),v=ao(Bp),[l,h]=bt.useState(!0),{error:a,disabled:u}=Vg(),{uploadFile:g}=nd(),o=bt.useRef(g),_=jp(),x=bt.useMemo(()=>{var y,R,A,D,w,S;return{max_size_mb:((R=(y=t==null?void 0:t.features)==null?void 0:y.multi_modal)==null?void 0:R.max_size_mb)||500,max_files:((D=(A=t==null?void 0:t.features)==null?void 0:A.multi_modal)==null?void 0:D.max_files)||20,accept:((S=(w=t==null?void 0:t.features)==null?void 0:w.multi_modal)==null?void 0:S.accept)||["*/*"]}},[t]),{t:p}=Kv();bt.useEffect(()=>{o.current=g},[g]);const b=bt.useCallback(y=>{const R=y.map(A=>{const D=AK(),{xhr:w,promise:S}=o.current(v,A,C=>{r(M=>M.map(I=>I.id===D?{...I,uploadProgress:C}:I))});return S.then(C=>{r(M=>M.map(I=>I.id===D?{...I,serverId:C.id,uploaded:!0,uploadProgress:100,cancel:void 0}:I))}).catch(C=>{cd.error(`${p("components.organisms.chat.index.failedToUpload")} ${A.name}: ${C.message}`),r(M=>M.filter(I=>I.id!==D))}),{id:D,type:A.type,name:A.name,size:A.size,uploadProgress:0,cancel:()=>{cd.info(`${p("components.organisms.chat.index.cancelledUploadOf")} ${A.name}`),w.abort(),r(C=>C.filter(M=>M.id!==D))},remove:()=>{r(C=>C.filter(M=>M.id!==D))}}});r(A=>A.concat(R))},[g]),c=bt.useCallback(y=>cd.error(y),[cd]),s=t8({spec:x,onResolved:b,onError:c,options:{noClick:!0}}),{threadId:d}=s1();bt.useEffect(()=>{const y=new URL(window.location.href);t!=null&&t.dataPersistence&&d&&y.pathname==="/"?_(`/thread/${d}`):n(R=>({...R,currentThreadId:d}))},[]);const f=!u&&((E=(m=t==null?void 0:t.features)==null?void 0:m.multi_modal)==null?void 0:E.enabled);return Ge.jsxs(ni,{...f?s==null?void 0:s.getRootProps({className:"dropzone"}):{},onBlur:void 0,onFocus:void 0,display:"flex",width:"100%",flexGrow:1,position:"relative",children:[s?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx("input",{id:"#upload-drop-input",...s.getInputProps()}),s!=null&&s.isDragActive?Ge.jsx(Vfe,{}):null]}):null,Ge.jsxs($Se,{children:[Ge.jsx(ni,{my:1}),a?Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsx(z0,{sx:{mx:2},id:"session-error",severity:"error",children:Ge.jsx(io,{path:"components.organisms.chat.index.couldNotReachServer"})})}):null,e?Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsx(z0,{sx:{mx:2},severity:"info",children:Ge.jsx(io,{path:"components.organisms.chat.index.continuingChat"})})}):null,Ge.jsx(Yz,{isMobile:!0}),Ge.jsxs(MF,{children:[Ge.jsx(l8t,{}),Ge.jsx(c8t,{autoScroll:l,projectSettings:t,setAutoScroll:h}),Ge.jsx(DLt,{fileSpec:x,onFileUpload:b,onFileUploadError:c,autoScroll:l,setAutoScroll:h,projectSettings:t})]})]}),i?null:Ge.jsx(Yz,{isMobile:!1})]})};function NLt(){return Ge.jsx(xD,{children:Ge.jsx(uTe,{})})}var ND=globalThis&&globalThis.__assign||function(){return ND=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ND.apply(this,arguments)},LLt=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},PLt=function(e){var t=e.className,r=e.style,n=e.rules,i=e.value,v=e.valueAgain,l=e.minLength,h=e.maxLength,a=e.rtl,u=e.onChange,g=e.specialCharsRegex,o=g===void 0?/[~`¿¡!#$%\^&*€£@+÷=\-\[\]\\';,/{}\(\)|\\":<>\?\.\_]/g:g,_=e.messages,x=_===void 0?{}:_,p=LLt(e,["className","style","rules","value","valueAgain","minLength","maxLength","rtl","onChange","specialCharsRegex","messages"]),b={minLength:{valid:i.length>=(l||100),message:x.minLength||"Password has at least ".concat(l," characters.")},specialChar:{valid:o.test(i),message:x.specialChar||"Password has special characters."},number:{valid:/\d/g.test(i),message:x.number||"Password has a number."},capital:{valid:function(){var f=0;if(i.length===0)return!1;for(;f<i.length;){var m=i.charAt(f);if(m!=m.toLowerCase()){if(m==m.toUpperCase())return!0}f++}return!1}(),message:x.capital||"Password has a capital letter."},match:{valid:i.length>0&&i===v,message:x.match||"Passwords match."},lowercase:{valid:function(){var f=0;if(i.length===0)return!1;for(;f<i.length;){var m=i.charAt(f);if(m!=m.toUpperCase()){if(m==m.toLowerCase())return!0}f++}return!1}(),message:x.lowercase||"Password has a lowercase letter."},letter:{valid:/[a-zA-Z]/g.test(i),message:x.letter||"Password has a letter."},maxLength:{valid:i.length<=(h||16),message:x.maxLength||"Password has no more than ".concat(h," characters.")},notEmpty:{valid:!!(i.length>0&&v&&v.length>0),message:x.notEmpty||"Password fields are not empty."}},c=bt.useMemo(function(){return n.filter(function(f){return!!b[f]})},[n]),s=c.every(function(f){return b[f].valid}),d=bt.useMemo(function(){return c.filter(function(f){return!b[f].valid})},[i,v,c]);return bt.useEffect(function(){typeof u=="function"&&u(s,d)},[s,d]),a&&(t=t?t+" rtl":"rtl"),fa.createElement("ul",{className:t,style:ND({margin:0,padding:0},r)},c.map(function(f){var m=b[f],E=m.message,y=m.valid;return fa.createElement(kLt,ND({key:f,valid:y,iconSize:18,validColor:"#4BCA81",invalidColor:"#FF0033",rtl:a},p),E)}))},kLt=function(e){var t=e.valid,r=e.iconSize,n=e.validColor,i=e.invalidColor,v=e.validTextColor,l=e.invalidTextColor,h=e.iconComponents,a=e.hideIcon,u=e.rtl,g=e.children;return fa.createElement("li",{className:t?"valid":"invalid",style:{listStyleType:"none",display:"flex",alignItems:"flex-start",margin:"2px 0"}},a?null:h?t?h.ValidIcon:h.InvalidIcon:fa.createElement("svg",{className:"checklist-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 512 512",style:{marginRight:u?0:5,marginLeft:u?5:0}},fa.createElement("path",{fill:t?n:i,d:t?"M432 64l-240 240-112-112-80 80 192 192 320-320z":"M507.331 411.33c-0.002-0.002-0.004-0.004-0.006-0.005l-155.322-155.325 155.322-155.325c0.002-0.002 0.004-0.003 0.006-0.005 1.672-1.673 2.881-3.627 3.656-5.708 2.123-5.688 0.912-12.341-3.662-16.915l-73.373-73.373c-4.574-4.573-11.225-5.783-16.914-3.66-2.080 0.775-4.035 1.984-5.709 3.655 0 0.002-0.002 0.003-0.004 0.005l-155.324 155.326-155.324-155.325c-0.002-0.002-0.003-0.003-0.005-0.005-1.673-1.671-3.627-2.88-5.707-3.655-5.69-2.124-12.341-0.913-16.915 3.66l-73.374 73.374c-4.574 4.574-5.784 11.226-3.661 16.914 0.776 2.080 1.985 4.036 3.656 5.708 0.002 0.001 0.003 0.003 0.005 0.005l155.325 155.324-155.325 155.326c-0.001 0.002-0.003 0.003-0.004 0.005-1.671 1.673-2.88 3.627-3.657 5.707-2.124 5.688-0.913 12.341 3.661 16.915l73.374 73.373c4.575 4.574 11.226 5.784 16.915 3.661 2.080-0.776 4.035-1.985 5.708-3.656 0.001-0.002 0.003-0.003 0.005-0.005l155.324-155.325 155.324 155.325c0.002 0.001 0.004 0.003 0.006 0.004 1.674 1.672 3.627 2.881 5.707 3.657 5.689 2.123 12.342 0.913 16.914-3.661l73.373-73.374c4.574-4.574 5.785-11.227 3.662-16.915-0.776-2.080-1.985-4.034-3.657-5.707z"})),fa.createElement("span",{style:{paddingTop:2,opacity:t?1:l?void 0:.5,flex:1,color:t?v:l}},g))},IK={},FLt=ko;Object.defineProperty(IK,"__esModule",{value:!0});var cTe=IK.default=void 0,BLt=FLt(Fo()),zLt=Ge,ULt=(0,BLt.default)((0,zLt.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");cTe=IK.default=ULt;var OK={},$Lt=ko;Object.defineProperty(OK,"__esModule",{value:!0});var fTe=OK.default=void 0,HLt=$Lt(Fo()),GLt=Ge,VLt=(0,HLt.default)((0,GLt.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");fTe=OK.default=VLt;const YLt=({title:e,children:t,renderLogo:r})=>Ge.jsx(to,{sx:{backgroundColor:n=>n.palette.background.default,height:"100vh",width:"100vw",alignItems:"center",justifyContent:"center"},children:Ge.jsxs(ni,{sx:n=>({backgroundColor:i=>i.palette.background.paper,border:i=>`1px solid ${i.palette.divider}`,borderRadius:1,padding:n.spacing(5,5),maxWidth:"400px",height:"auto",maxHeight:"90%",[n.breakpoints.down("sm")]:{maxWidth:"unset",width:"100%",height:"100%"}}),children:[Ge.jsxs(to,{sx:{alignItems:"center",gap:3,marginBottom:3},children:[r,e?Ge.jsx(Ko,{textAlign:"center",color:"text.primary",children:e}):null]}),Ge.jsx(to,{gap:1,paddingX:3,children:t})]})});var DK={},WLt=ko;Object.defineProperty(DK,"__esModule",{value:!0});var dTe=DK.default=void 0;XLt(bt);var jLt=WLt(Fo()),KLt=Ge;function hTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(hTe=function(n){return n?r:t})(e)}function XLt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=hTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var QLt=(0,jLt.default)((0,KLt.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");dTe=DK.default=QLt;var NK={},ZLt=ko;Object.defineProperty(NK,"__esModule",{value:!0});var pTe=NK.default=void 0;ePt(bt);var JLt=ZLt(Fo()),qLt=Ge;function vTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(vTe=function(n){return n?r:t})(e)}function ePt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=vTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var tPt=(0,JLt.default)((0,qLt.jsx)("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google");pTe=NK.default=tPt;var LK={},rPt=ko;Object.defineProperty(LK,"__esModule",{value:!0});var gTe=LK.default=void 0;iPt(bt);var nPt=rPt(Fo()),aPt=Ge;function mTe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(mTe=function(n){return n?r:t})(e)}function iPt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=mTe(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in e)if(v!=="default"&&Object.prototype.hasOwnProperty.call(e,v)){var l=i?Object.getOwnPropertyDescriptor(e,v):null;l&&(l.get||l.set)?Object.defineProperty(n,v,l):n[v]=e[v]}return n.default=e,r&&r.set(e,n),n}var oPt=(0,nPt.default)((0,aPt.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");gTe=LK.default=oPt;const sPt=()=>Ge.jsx("svg",{width:"24",height:"24",viewBox:"0 0 256 287",style:{fill:"inherit"},xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet",children:Ge.jsx("path",{d:"M203.24 231.531l-28.73-88.434 75.208-54.64h-92.966L128.019.025l-.009-.024h92.98l28.74 88.446.002-.002.024-.013c16.69 51.31-.5 109.67-46.516 143.098zm-150.45 0l-.023.017 75.228 54.655 75.245-54.67-75.221-54.656-75.228 54.654zM6.295 88.434c-17.57 54.088 2.825 111.4 46.481 143.108l.007-.028 28.735-88.429-75.192-54.63h92.944L128.004.024 128.01 0H35.025L6.294 88.434z"})}),lPt=()=>Ge.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 256 299",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",children:[Ge.jsx("path",{d:"M208.752 58.061l25.771-6.636.192.283.651 155.607-.843.846-5.31.227-20.159-3.138-.302-.794V58.061M59.705 218.971l.095.007 68.027 19.767.173.133.296.236-.096 59.232-.2.252-68.295-33.178v-46.449",fill:"#7A3E65"}),Ge.jsx("path",{d:"M208.752 204.456l-80.64 19.312-40.488-9.773-27.919 4.976L128 238.878l105.405-28.537 1.118-2.18-25.771-3.705",fill:"#CFB2C1"}),Ge.jsx("path",{d:"M196.295 79.626l-.657-.749-66.904-19.44-.734.283-.672-.343L22.052 89.734l-.575.703.845.463 24.075 3.53.851-.289 80.64-19.311 40.488 9.773 27.919-4.977",fill:"#512843"}),Ge.jsx("path",{d:"M47.248 240.537l-25.771 6.221-.045-.149-1.015-155.026 1.06-1.146 25.771 3.704v146.396",fill:"#C17B9E"}),Ge.jsx("path",{d:"M82.04 180.403l45.96 5.391.345-.515.187-71.887-.532-.589-45.96 5.392v62.208",fill:"#7A3E65"}),Ge.jsx("path",{d:"M173.96 180.403L128 185.794v-72.991l45.96 5.392v62.208M196.295 79.626L128 59.72V0l68.295 33.177v46.449",fill:"#C17B9E"}),Ge.jsx("path",{d:"M128 0L0 61.793v175.011l21.477 9.954V90.437L128 59.72V0",fill:"#7A3E65"}),Ge.jsx("path",{d:"M234.523 51.425v156.736L128 238.878v59.72l128-61.794V61.793l-21.477-10.368",fill:"#C17B9E"})]}),uPt=()=>Ge.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",version:"1.1",viewBox:"0 0 196 216",xmlSpace:"preserve",children:[Ge.jsx("path",{fill:"#0198B8",d:"M66.841 183.009c.049 4.355.097 8.71-.27 13.485-11.818-6.767-23.167-14.04-34.66-21.077-3.023-1.85-6.494-2.968-9.759-4.421-1.994-5.399-3.99-10.797-5.564-16.59 2.378.369 4.526.837 6.264 1.947 12.42 7.933 24.72 16.054 37.157 23.961 2.028 1.29 4.543 1.816 6.832 2.695z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M56.298 102c.85-.912 1.624-2.505 2.565-2.611 3.038-.343 6.137-.139 9.679.29 1.212 1.44 1.753 2.758 2.736 3.396 17.255 11.216 34.541 22.386 51.898 33.444 1.855 1.182 4.195 1.604 6.31 2.38-.19 1.28.077 3.15-.662 3.723-1.792 1.39-4.052 2.174-6.483 2.884-1.164-1.446-1.731-2.93-2.809-3.643-7.175-4.742-14.43-9.367-21.72-13.934-4.877-3.057-9.855-5.954-14.788-8.923-1.091-.413-2.182-.827-3.71-1.653-7.963-5.393-15.49-10.373-23.016-15.353z",opacity:"1"}),Ge.jsx("path",{fill:"#13E5D1",d:"M129.377 138.545c-2.006-.422-4.346-.844-6.201-2.026-17.357-11.058-34.643-22.228-51.898-33.444-.983-.638-1.524-1.957-2.285-3.3 3.358-.406 6.73-.473 10.563-.1 1.243 1.615 1.78 3.14 2.856 3.903 3.597 2.547 7.509 4.656 11.063 7.256 2.387 1.748 4.374 4.043 6.254 6.143-.431.113-.606.145-.713.247-.096.092-.118.261-.172.397l5.186 1.336c1.656.136 3.312.279 4.968.406 7.268.557 12.628 3.671 15.482 10.766 1.153 2.866 3.167 5.386 4.897 8.416z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M82.727 119.17a257.804 257.804 0 0115.086 8.759c7.29 4.567 14.544 9.192 21.719 13.934 1.078.713 1.645 2.197 2.45 3.691-2.826 1.962-5.652 3.557-9.194 5.557-2.288-4.191-4.438-7.98-6.446-11.841-3.98-7.655-7.928-7.877-13.248-.74-5.877-3.234-11.26-6.38-16.642-9.524 1.993-3.225 3.986-6.449 6.275-9.837z",opacity:"1"}),Ge.jsx("path",{fill:"#57DB45",d:"M180.423 56.014c.762 2.732 1.524 5.464 1.853 8.58-1.646-.019-3-.2-4.05-.863-9.341-5.915-18.569-12.013-27.954-17.857-6.12-3.811-12.448-7.29-18.682-10.92-.078-2.364-.156-4.729.227-7.511 11.469 6.52 22.417 13.556 33.511 20.353 4.879 2.989 10.054 5.493 15.095 8.218z",opacity:"1"}),Ge.jsx("path",{fill:"#06A3BE",d:"M66.914 182.573c-2.362-.443-4.877-.97-6.905-2.259-12.437-7.907-24.737-16.028-37.157-23.96-1.738-1.11-3.886-1.58-6.217-2.344-.464-.472-.555-.944-.662-2.2.014-2.802.045-4.819.445-6.821 4.9 2.647 9.35 5.428 13.983 7.865 3.738 1.966 7.696 3.516 11.557 5.25 5.502 9.625 13.99 15.097 25.029 17.64 0 2.146 0 4.27-.073 6.83z",opacity:"1"}),Ge.jsx("path",{fill:"#088FB2",d:"M22.181 171.339c3.236 1.11 6.707 2.227 9.73 4.078 11.493 7.036 22.842 14.31 34.591 21.536.346 1.483.346 2.924.346 4.552-19.021-2.271-32.731-12.099-42.868-27.5-.534-.811-1.177-1.55-1.799-2.666z",opacity:"1"}),Ge.jsx("path",{fill:"#5CDB3C",d:"M180.408 55.677c-5.026-2.388-10.201-4.892-15.08-7.881-11.094-6.797-22.042-13.833-33.376-20.778-.418-2.055-.51-4.103-.145-6.568 1.673.084 3 .414 4.09 1.112 10.474 6.71 20.862 13.554 31.389 20.18 2.318 1.459 5.084 2.206 7.644 3.281 1.821 3.44 3.642 6.878 5.478 10.654z",opacity:"1"}),Ge.jsx("path",{fill:"#59DD55",d:"M131.458 35.376c6.366 3.207 12.693 6.687 18.814 10.498 9.385 5.844 18.613 11.942 27.954 17.857 1.05.664 2.404.844 3.974 1.244.501 2.046.646 4.098.38 6.545-7.279-3.892-14.065-8.316-21.058-12.385-2.192-1.275-4.942-1.59-7.436-2.346-5.384-3.857-10.328-8.777-16.286-11.25-5.178-2.148-7.703-4.195-6.342-10.163z",opacity:"1"}),Ge.jsx("path",{fill:"#01E3E3",d:"M15.447 90.994c-.065-4.355-.131-8.71.255-13.521 2.615.575 4.824 1.524 6.932 2.657 5.425 2.916 10.805 5.913 16.203 8.878.046 4.358.092 8.716-.295 13.527-3.835-1.435-7.207-3.382-10.647-5.197-4.118-2.173-8.296-4.234-12.448-6.344z",opacity:"1"}),Ge.jsx("path",{fill:"#22E3B4",d:"M100.982 92.49c-5.371.802-10.758 1.513-16.107 2.443-2.781.484-4.543-.264-5.988-2.802-3.166-5.56-6.618-10.957-10.33-17.038 2.094-1.064 3.92-1.994 6.137-2.627 1.35 1.37 2.138 2.71 3.302 3.476 6.054 3.99 12.27 7.737 18.282 11.79 1.813 1.222 3.15 3.153 4.704 4.759z",opacity:"1"}),Ge.jsx("path",{fill:"#66DB3A",d:"M174.883 44.68c-2.513-.732-5.279-1.48-7.597-2.938-10.527-6.626-20.915-13.47-31.39-20.18-1.09-.698-2.416-1.028-3.964-1.533-1.176-3.157-.493-4.067 3.096-3.379 17.434 3.343 30.305 13.045 39.855 28.03z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M173.516 175.205c-2.971 3.499-5.943 6.998-9.27 10.29-4.452-3.19-8.447-6.328-12.682-9.1-2.676-1.75-5.71-2.954-8.585-4.403 3.165-2.552 6.33-5.105 10.158-7.814 2.674.924 4.708 1.962 6.688 3.095 4.578 2.62 9.13 5.285 13.691 7.932z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M128.157 117.563c-5.08.066-10.162.133-15.708-.24-1.486-1.621-2.32-3.067-3.56-3.937-4.746-3.333-9.7-6.372-14.403-9.762-1.448-1.044-2.341-2.857-3.488-4.318 5.015-.057 10.03-.114 15.524.242 1.13 1.272 1.615 2.373 2.46 2.95 4.987 3.41 10.154 6.566 15.047 10.101 1.69 1.22 2.77 3.285 4.128 4.964z",opacity:"1"}),Ge.jsx("path",{fill:"#26E2A8",d:"M101.374 92.561c-1.947-1.676-3.283-3.607-5.096-4.83-6.011-4.052-12.228-7.798-18.282-11.789-1.164-.767-1.951-2.106-2.947-3.525 2.391-1.668 4.817-2.992 7.748-4.059 2.898 1.398 5.29 2.537 7.683 3.677 1.158 2.159 2.405 4.276 3.453 6.487 1.481 3.128 3.688 4.935 8.075 4.528 3.838 2.53 6.91 5.09 9.981 7.649-3.408.644-6.815 1.289-10.615 1.862z",opacity:"1"}),Ge.jsx("path",{fill:"#52DD5A",d:"M154.217 57.132c2.363.412 5.113.728 7.305 2.003 6.993 4.069 13.78 8.493 20.991 12.823.386 3.074.426 6.106.057 9.544-8.285-4.232-16.162-8.87-24.038-13.508a10797.74 10797.74 0 01-4.315-10.862z",opacity:"1"}),Ge.jsx("path",{fill:"#00CFD8",d:"M16.05 144.975c-.032 2.016-.063 4.033-.11 6.474-.266-1.494-.726-3.41-.731-5.328-.036-15.064.016-30.13.484-45.645 2.058.335 3.731 1.02 5.277 1.925 5.976 3.495 11.912 7.06 17.863 10.6.047 2.703.095 5.406-.273 8.51-7.515-3.888-14.615-8.178-22.472-12.926 0 3.858 0 6.64-.026 9.87-.011 3.147.004 5.844-.011 8.991-.014 3.152.002 5.853-.008 9.004-.015 3.14-.004 5.833.006 8.525z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M112.026 99.266c3.355-.08 6.71-.16 10.58.153 7.661 4.795 14.808 9.196 21.955 13.596v4.757c-3.706 0-7.16 0-11.087-.418-1.152-1.264-1.678-2.334-2.536-2.918-5.006-3.407-10.197-6.553-15.088-10.114-1.635-1.19-2.57-3.343-3.824-5.056z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M38.909 88.559c-5.47-2.516-10.85-5.513-16.275-8.429-2.108-1.133-4.317-2.082-6.836-3.111-.392-3.025-.428-6.053-.01-9.536 2.605.583 4.8 1.543 6.903 2.674 5.414 2.913 10.786 5.902 16.176 8.86.038 3.03.076 6.062.042 9.542z",opacity:"1"}),Ge.jsx("path",{fill:"#04D9DF",d:"M142.637 172.105c3.216 1.336 6.251 2.54 8.927 4.29 4.235 2.772 8.23 5.91 12.376 9.23-1.94 2.225-3.928 4.112-6.416 5.68-2.805-2.126-5.087-3.967-7.423-5.736-4.688-3.55-9.406-7.062-14.111-10.59 2.101-.92 4.203-1.841 6.647-2.874z",opacity:"1"}),Ge.jsx("path",{fill:"#07E4E3",d:"M56.216 102.46c7.609 4.52 15.135 9.5 22.722 14.795-7.345.314-14.751.314-22.804.314 0-4.869 0-9.758.082-15.108z",opacity:"1"}),Ge.jsx("path",{fill:"#00D9DE",d:"M38.904 112.552c-6.022-3.09-11.958-6.656-17.934-10.151-1.546-.904-3.22-1.59-5.178-2.382-.41-2.718-.475-5.43-.443-8.582 4.25 1.667 8.428 3.728 12.546 5.9 3.44 1.816 6.812 3.763 10.576 5.658.41 3.04.456 6.074.433 9.557z",opacity:"1"}),Ge.jsx("path",{fill:"#02ABC3",d:"M16.418 144.989c-.38-2.706-.39-5.398-.012-8.534 2.24.512 4.135 1.395 5.936 2.439 5.769 3.34 11.503 6.74 17.25 10.117.75 2.772 1.498 5.544 2.306 8.705-3.801-1.346-7.759-2.896-11.497-4.862-4.633-2.437-9.084-5.218-13.983-7.865z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M90.544 99.234c1.6 1.533 2.494 3.346 3.942 4.39 4.703 3.39 9.657 6.43 14.404 9.762 1.239.87 2.073 2.316 3.106 3.838-2.395.419-4.804.497-7.903.314-1.82-.378-2.949-.495-4.078-.611-2.166-2.05-4.153-4.345-6.54-6.093-3.554-2.6-7.466-4.71-11.063-7.256-1.077-.763-1.613-2.288-2.409-3.804 3.355-.43 6.722-.521 10.541-.54z",opacity:"1"}),Ge.jsx("path",{fill:"#00BDCD",d:"M16.08 126.997c-.014-2.698-.029-5.395.343-8.539 2.267.537 4.164 1.488 6.024 2.508 5.47 2.998 10.925 6.023 16.386 9.038.048 3.032.096 6.064-.268 9.501-7.769-3.9-15.127-8.204-22.484-12.508z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M39.985 66.998c-.326 2.73-.653 5.46-1.395 8.557-1.717-.33-3.022-1.016-4.317-1.721-6.023-3.282-12.043-6.569-18.064-9.854.57-2.436 1.14-4.873 2.25-7.643a29.74 29.74 0 017.06 2.707c4.853 2.594 9.648 5.296 14.466 7.954z",opacity:"1"}),Ge.jsx("path",{fill:"#02B4C8",d:"M16.05 127.446c7.388 3.855 14.746 8.16 22.445 12.509.642 2.778.942 5.511 1.17 8.65-5.82-2.971-11.554-6.371-17.323-9.711-1.801-1.044-3.695-1.927-5.91-2.888-.379-2.707-.395-5.408-.381-8.56z",opacity:"1"}),Ge.jsx("path",{fill:"#00C6D3",d:"M38.904 129.564c-5.532-2.575-10.987-5.6-16.457-8.598a74.807 74.807 0 00-5.998-2.956c-.36-2.785-.36-5.567-.36-9.425 7.856 4.748 14.956 9.038 22.4 13.372.391 2.418.439 4.792.415 7.607z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M159.333 145.996c0-2.371 0-4.742.456-7.537 2.769.814 5.081 2.052 7.395 3.286 5.17 2.758 10.34 5.513 15.511 8.27-.218 2.093-.435 4.186-1.201 6.632-2.487-.413-4.517-1.009-6.349-1.978-5.313-2.81-10.547-5.771-15.812-8.673z",opacity:"1"}),Ge.jsx("path",{fill:"#36E087",d:"M43.012 25.04c1.452-.952 2.904-1.903 4.846-2.6 6.652 4.024 12.816 7.791 18.98 11.558-.346 3.21-.692 6.42-1.446 9.266-1.63-1.61-2.685-3.108-4.105-4.06-4.952-3.319-10.12-6.323-15.008-9.73-1.426-.994-2.196-2.93-3.267-4.434z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M182.848 137.005c.043 2.042.085 4.084-.298 6.554-5.814-2.777-11.152-6.073-16.617-9.141-1.954-1.097-4.217-1.646-6.338-2.445-.083-2.362-.166-4.724.204-7.511 1.925.273 3.46.865 4.857 1.688 6.086 3.582 12.132 7.23 18.192 10.855z",opacity:"1"}),Ge.jsx("path",{fill:"#10D2DA",d:"M135.591 174.997c5.104 3.51 9.822 7.021 14.51 10.572 2.336 1.769 4.618 3.61 7.07 5.788-1.752 1.637-3.65 2.903-5.878 3.865-6.792-4.604-13.253-8.903-19.714-13.201-.304-3.114-1.881-6.883 4.012-7.024z",opacity:"1"}),Ge.jsx("path",{fill:"#2EE29A",d:"M182.85 123.001c.044 2.044.088 4.087-.298 6.559-2.865-.817-5.323-2.023-7.734-3.316-5.092-2.732-10.158-5.51-15.235-8.268-.083-2.367-.165-4.733.205-7.523 1.196-.108 1.986.128 2.677.533 6.804 3.99 13.593 8.006 20.386 12.015z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M42.672 25.09c1.41 1.454 2.181 3.39 3.607 4.384 4.889 3.407 10.056 6.411 15.008 9.73 1.42.952 2.475 2.45 3.713 4.031a22.66 22.66 0 01-6.684 2.299c-1.223-1.3-1.863-2.572-2.894-3.245-6.364-4.15-12.816-8.163-19.239-12.223 2.05-1.641 4.1-3.283 6.489-4.975z",opacity:"1"}),Ge.jsx("path",{fill:"#2EE29A",d:"M35.89 30.195a473.368 473.368 0 0119.532 12.094c1.031.673 1.67 1.946 2.525 3.284-1.092.995-2.22 1.647-4.042 2.354a312.328 312.328 0 01-19.87-11.69c-.703-.449-.679-2.038-.991-3.097.85-.94 1.7-1.878 2.845-2.945z",opacity:"1"}),Ge.jsx("path",{fill:"#3CDF74",d:"M182.838 95.002c.044 2.044.087 4.087-.3 6.558-3.87-1.491-7.28-3.461-10.755-5.314-4.021-2.144-8.098-4.185-12.151-6.27-.091-2.039-.182-4.078.203-6.542a33.016 33.016 0 018.01 3.094c5.042 2.744 10 5.64 14.993 8.474z",opacity:"1"}),Ge.jsx("path",{fill:"#38DF7C",d:"M159.495 90.398c4.19 1.663 8.267 3.704 12.288 5.848 3.474 1.853 6.886 3.823 10.687 5.747.41 2.048.456 4.09.076 6.562-3.872-1.488-7.29-3.459-10.77-5.313-4.032-2.148-8.117-4.193-12.179-6.283-.08-2.046-.159-4.092-.102-6.56z",opacity:"1"}),Ge.jsx("path",{fill:"#04D9DF",d:"M76.254 129.3c5.58 2.85 10.963 5.996 16.54 9.41-.633 2.14-1.462 4.01-2.936 6.076-6.049-3.127-11.451-6.45-16.854-9.775a537.765 537.765 0 013.25-5.712z",opacity:"1"}),Ge.jsx("path",{fill:"#44DE6C",d:"M182.906 94.568c-5.06-2.4-10.019-5.296-15.06-8.04-2.43-1.322-5.018-2.355-7.879-3.514-.47-2.047-.597-4.1-.263-6.583 3.218.886 6.032 2.098 8.72 3.542 4.845 2.602 9.615 5.343 14.416 8.026.045 2.045.09 4.09.066 6.57z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M182.917 122.567c-6.86-3.575-13.648-7.592-20.452-11.581-.691-.405-1.48-.641-2.552-.96-.413-1.73-.498-3.454-.111-5.598 3.012.683 5.653 1.602 8.073 2.927 5.055 2.769 9.993 5.751 14.98 8.646.043 2.044.086 4.088.062 6.566z",opacity:"1"}),Ge.jsx("path",{fill:"#0BE5DA",d:"M173.79 175.063c-4.836-2.505-9.387-5.17-13.965-7.79a75.774 75.774 0 00-6.388-3.251 24.082 24.082 0 013.526-6.486c6.92 4.175 13.374 8.288 19.829 12.401-.91 1.662-1.818 3.323-3.001 5.126z",opacity:"1"}),Ge.jsx("path",{fill:"#00C6D3",d:"M131.465 182.46c6.575 3.86 13.036 8.158 19.505 12.8-2.413 1.401-4.832 2.458-7.663 3.16-4.167-2.713-7.922-5.073-11.677-7.433-.093-2.696-.186-5.393-.165-8.528z",opacity:"1"}),Ge.jsx("path",{fill:"#14E4C7",d:"M159.236 146.383c5.362 2.515 10.596 5.475 15.909 8.286 1.832.97 3.862 1.565 6.17 2.331-.242 2.213-.853 4.426-2.005 6.782-4.846-2.523-9.07-5.332-13.486-7.796-2.34-1.306-5.014-2.011-7.537-2.988.284-2.076.568-4.152.949-6.615z",opacity:"1"}),Ge.jsx("path",{fill:"#48DD63",d:"M182.907 87.574c-4.868-2.258-9.638-5-14.482-7.601-2.69-1.444-5.503-2.656-8.62-3.972-.713-2.409-1.067-4.818-1.347-7.617 7.95 4.248 15.827 8.886 24.044 13.568.385 1.761.428 3.479.405 5.622z",opacity:"1"}),Ge.jsx("path",{fill:"#3BE189",d:"M182.921 115.566c-5.053-2.46-9.99-5.442-15.046-8.21-2.42-1.326-5.061-2.245-7.952-3.343-.431-2.064-.513-4.132-.46-6.628 4.196 1.664 8.281 3.71 12.312 5.857 3.48 1.854 6.899 3.825 10.708 5.747.41 2.05.457 4.096.438 6.577z",opacity:"1"}),Ge.jsx("path",{fill:"#22E2AA",d:"M47.885 52.757c-.817.965-1.634 1.931-3.08 3.02-7.014-4.162-13.399-8.447-19.784-12.732.813-1.245 1.626-2.49 3.083-3.849 4.956 2.48 9.387 4.9 13.535 7.734 2.324 1.588 4.18 3.862 6.246 5.827z",opacity:"1"}),Ge.jsx("path",{fill:"#19E3BC",d:"M40.25 66.76c-5.083-2.42-9.878-5.122-14.731-7.716-2.112-1.129-4.343-2.034-6.888-3.041.25-1.793.87-3.585 2.047-5.683 2.473.551 4.455 1.287 6.292 2.287 5.016 2.732 9.972 5.576 14.952 8.376-.47 1.846-.939 3.692-1.673 5.776z",opacity:"1"}),Ge.jsx("path",{fill:"#22E3B4",d:"M42.186 60.792c-5.244-2.609-10.2-5.453-15.216-8.185-1.837-1-3.819-1.736-6.082-2.585.951-2.219 2.25-4.445 3.84-6.824 6.678 4.132 13.063 8.417 19.794 12.73-.46 1.576-1.266 3.124-2.336 4.864zM159.464 132.392c2.252.38 4.515.929 6.469 2.026 5.465 3.068 10.803 6.364 16.552 9.575.379 1.73.397 3.455.313 5.601-5.273-2.336-10.444-5.091-15.614-7.849-2.314-1.234-4.626-2.472-7.27-3.712-.414-1.743-.497-3.483-.45-5.641z",opacity:"1"}),Ge.jsx("path",{fill:"#2CE2A4",d:"M159.455 118.395c5.205 2.34 10.271 5.117 15.363 7.849a115.926 115.926 0 007.67 3.75c.408 2.051.453 4.097.429 6.578-6.13-3.191-12.175-6.84-18.26-10.422-1.399-.823-2.933-1.415-4.735-2.115-.418-1.742-.506-3.481-.467-5.64z",opacity:"1"}),Ge.jsx("path",{fill:"#34E192",d:"M107.005 77c.83-1.862 1.66-3.724 3.114-5.754 6.028 3.442 11.431 7.05 16.835 10.66-.85 1.562-1.7 3.124-3.171 4.838-6.008-3.147-11.393-6.445-16.778-9.743z",opacity:"1"}),Ge.jsx("path",{fill:"#13E5D1",d:"M158.124 153.32c2.686.655 5.36 1.36 7.7 2.666 4.416 2.464 8.64 5.273 13.304 8.085-.331 1.922-1.024 3.697-2.027 5.67-6.764-3.917-13.219-8.03-19.872-12.406.112-1.406.422-2.55.895-4.015z",opacity:"1"}),Ge.jsx("path",{fill:"#10D2DA",d:"M72.707 135.176c5.7 3.16 11.102 6.483 16.876 9.808-.464 1.924-1.298 3.846-2.388 6.357l-18.676-9.997c1.469-2.266 2.68-4.134 4.188-6.168z",opacity:"1"}),Ge.jsx("path",{fill:"#40E28D",d:"M127.235 81.727c-5.685-3.43-11.088-7.04-16.845-10.681.36-1.67 1.074-3.307 2.092-5.642l18.892 9.704c-1.531 2.556-2.695 4.498-4.14 6.619z",opacity:"1"}),Ge.jsx("path",{fill:"#32E29F",d:"M106.734 77.187c5.656 3.112 11.04 6.41 16.77 9.736-2.041 4.98-6.953 2.77-11.099 3.845-3.487-2.629-6.559-5.188-9.995-7.75 1.108-1.883 2.581-3.764 4.324-5.83z",opacity:"1"}),Ge.jsx("path",{fill:"#26E2A8",d:"M144.662 112.586c-7.248-3.971-14.395-8.372-21.603-13.101 3.302-.374 6.663-.42 10.541-.073 4.004 2.466 7.492 4.54 10.98 6.613.06 2.044.121 4.088.082 6.561z",opacity:"1"}),Ge.jsx("path",{fill:"#2CE2A4",d:"M48.197 52.661c-2.379-1.87-4.234-4.143-6.558-5.731-4.148-2.835-8.579-5.255-13.244-7.882 1.117-1.9 2.587-3.768 4.353-5.772.608.923.584 2.512 1.287 2.96 6.318 4.029 12.765 7.857 19.54 11.745-1.446 1.528-3.256 3.057-5.378 4.68z",opacity:"1"}),Ge.jsx("path",{fill:"#38DF7C",d:"M66.904 33.565c-6.23-3.334-12.394-7.101-18.71-11.163a27.463 27.463 0 017.47-3.006c3.998 2.755 7.584 5.18 11.17 7.604.045 2.043.09 4.087.07 6.565z",opacity:"1"}),Ge.jsx("path",{fill:"#00BDCD",d:"M131.497 191.427c3.888 1.92 7.643 4.28 11.448 6.969-3.55 1.412-7.15 2.496-11.582 3.83 0-3.906 0-7.133.134-10.8z",opacity:"1"}),Ge.jsx("path",{fill:"#32E6BE",d:"M111.61 99.179c1.67 1.8 2.605 3.952 4.24 5.143 4.89 3.56 10.082 6.707 15.088 10.114.858.584 1.384 1.654 2.086 2.837-1.387.386-2.797.437-4.537.388-1.688-1.777-2.768-3.841-4.458-5.062-4.893-3.535-10.06-6.69-15.047-10.1-.845-.578-1.33-1.68-2-2.884 1.392-.404 2.802-.464 4.628-.436z",opacity:"1"}),Ge.jsx("path",{fill:"#3CDF74",d:"M66.901 26.546c-3.653-1.97-7.239-4.395-10.86-7.165 3.35-1.367 6.735-2.387 10.928-3.65 0 3.915 0 7.138-.068 10.815z",opacity:"1"}),Ge.jsx("path",{fill:"#23E0D5",d:"M16.109 64.287c6.121 2.978 12.14 6.265 18.164 9.547 1.295.705 2.6 1.392 4.249 2.12.395.793.442 1.553.417 2.688-5.462-2.583-10.834-5.572-16.248-8.485-2.103-1.131-4.298-2.09-6.798-3.113-.193-.806-.039-1.628.216-2.757z",opacity:"1"}),Ge.jsx("path",{fill:"#32E29F",d:"M144.68 105.59c-3.588-1.639-7.076-3.712-10.626-6.115 3.355-.33 6.772-.33 10.726-.33 0 2.18 0 4.094-.1 6.444zM90.45 71.705c-2.363-.81-4.755-1.95-7.3-3.396.974-1.133 2.102-1.96 3.466-2.96 1.41 2.235 2.607 4.13 3.834 6.356z",opacity:"1"}),Ge.jsx("path",{fill:"#32E6BE",d:"M99.73 116.977c1.414.066 2.543.183 3.91.537.249.441.26.644.33 1.145-1.669-.147-3.397-.593-5.126-1.038.054-.136.076-.305.172-.397.107-.102.282-.134.713-.247z",opacity:"1"})]}),cPt=()=>Ge.jsx("svg",{version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1594 1595",width:"24",height:"24",style:{fill:"inherit"},children:Ge.jsx("path",{fillRule:"evenodd",d:"m877 11.5l-32.8 403.8c-15.5-1.8-31-2.7-46.9-2.7-19.9 0-39.4 1.3-58.5 4.4l-18.6-195.6c-0.4-6.2 4.5-11.6 10.7-11.6h33.2l-16-197.8c-0.4-6.2 4.5-11.6 10.2-11.6h108.5c6.2 0 11.1 5.4 10.2 11.1zm-166.1 410.4c-35 8-68.2 20.8-98.8 37.6l-84.6-177.5c-2.6-5.3 0-11.9 5.8-14.2l31.4-11.5-82.8-180.6c-2.6-5.3 0-11.9 5.8-14.2l101.9-37.2c5.7-2.2 11.9 1.4 13.7 7.1 0.4 0 107.6 390.5 107.6 390.5zm-357.4-278l234.3 330.2c-29.7 19.5-56.7 42.5-79.7 69.1l-140.5-138.1c-4.4-4.4-3.9-11.5 0.5-15.5l25.7-21.3-139.6-141.2c-4.4-4.4-3.9-11.5 0.9-15.5l82.9-69.5c4.8-4 11.5-3.1 15 1.8zm136.9 421.4c-21.3 27.9-38.5 58.9-51.4 92.1l-178.9-81.9c-5.8-2.2-8-9.3-4.9-14.6l16.8-28.8-179.8-85c-5.3-2.6-7.5-9.3-4.4-14.6l54-93.8c3.1-5.3 10.2-7.1 15.1-3.6zm-466 24.8c0.9-6.2 7.1-9.7 12.8-8.4l392 102.3c-10.2 33.2-15.9 68.2-16.8 104.5l-196.2-16c-6.2-0.4-10.7-6.2-9.3-12.4l5.7-32.7-198-18.6c-6.2-0.5-10.1-6.2-9.3-12.4l18.6-106.7zm-15 264.7l403.5-37.2c1.8 35.9 8.9 70.9 19.9 103.6l-189.5 52.3c-5.8 1.3-12-2.2-12.9-8.4l-5.7-32.8-192.3 50c-5.7 1.4-11.9-2.2-12.8-8.4l-19.1-106.7c-0.9-6.2 3.1-11.9 9.3-12.4zm63.4 280.7c-3.1-5.3-0.9-11.9 4.4-14.6l365.9-173.5c13.7 32.7 32.3 63.3 54.4 90.7l-160.3 114.2c-4.9 3.6-12 2.2-15.1-3.1l-16.8-29.2-163.4 112.9c-4.9 3.5-12 1.8-15.1-3.5 0 0-54.5-93.9-54-93.9zm525.7-9.3l-111.6 162c-3.5 5.4-10.6 6.2-15.5 2.3l-25.7-21.7-115.1 162c-3.6 4.9-10.2 5.8-15.1 1.8l-83.3-69.5c-4.8-4-5.3-11.1-0.9-15.5l284.8-288.2c24.4 25.6 52.3 48.2 82.4 66.8zm-138.6 395.8c-5.8-2.2-8.4-8.9-5.8-14.2l168.8-368.3c31 15.9 64.7 27.9 99.7 34.5l-49.7 190.4c-1.3 5.7-7.9 9.3-13.7 7.1l-31.4-11.5-52.7 191.7c-1.8 5.7-8 9.3-13.8 7l-101.8-37.1zm337.5-340c19.9 0 39.4-1.4 58.4-4.5l18.6 195.7c0.5 6.2-4.4 11.5-10.6 11.5h-33.2l15.9 197.9c0.9 6.2-3.9 11.5-10.1 11.5h-108.6c-5.7 0-10.6-5.3-10.2-11.5l32.8-403.7c15.5 2.2 31 3.1 47 3.1zm174.5-728.3c-31-15.5-64.2-27.5-99.7-34.5l49.6-190.4c1.8-5.8 8-9.3 13.8-7.1l31.4 11.5 52.7-191.7c1.8-5.7 8-9.3 13.8-7.1l101.8 37.2c5.8 2.2 8.5 8.4 5.8 14.2zm391.6-207.2l-284.9 288.2c-23.9-25.7-51.3-48.2-81.9-66.8l111.6-162.1c3.6-4.8 10.7-6.2 15.5-2.2l25.7 21.7 115.2-162c3.5-4.9 10.6-5.8 15-1.8l83.3 69.5c4.9 4 4.9 11.1 0.5 15.5zm153.7 227.1l-365.9 173.6c-14.2-32.8-32.3-63.4-54.5-90.8l160.3-114.2c4.9-4 12-2.2 15.1 3.1l16.8 28.8 163.5-112.9c4.9-3.1 11.9-1.8 15 3.5l54.5 93.9c3.1 5.3 1.4 11.9-4.4 14.6zm58 146.5l18.6 106.7c0.9 6.2-3.1 11.5-9.3 12.4l-403.5 37.6c-1.8-36.3-8.9-70.8-19.9-103.6l189.6-52.2c5.7-1.8 11.9 2.2 12.8 8.4l5.8 32.8 192.2-50.1c5.8-1.3 12 2.3 12.8 8.5zm-18.6 391.3l-392-102.3c10.2-33.2 16-68.1 16.9-104.4l196.2 15.9c6.2 0.9 10.2 6.2 9.3 12.4l-5.8 32.8 198 18.6c6.2 0.8 10.2 6.1 9.3 12.3l-18.6 106.7c-0.9 6.2-7.1 9.8-12.8 8.5zm-104.1 243.9c-3.1 5.3-10.2 6.6-15.1 3.5l-333.5-230.2c21.3-27.9 38.5-58.9 51.4-92.1l178.9 81.9c5.8 2.7 8 9.3 4.9 14.6l-16.8 28.8 179.8 85c5.3 2.7 7.5 9.3 4.4 14.6zm-446.5-135.9c29.7-19 56.3-42.5 79.8-69l140.4 138.1c4.4 4.4 4.4 11.5-0.5 15.5l-25.7 21.2 139.6 141.3c4 4.4 4 11.5-0.9 15.4l-82.8 69.6c-4.5 3.9-11.6 3.1-15.1-1.8l-234.3-330.3zm-1.8 449.8c-5.7 2.2-11.9-1.3-13.7-7.1l-107.2-390.4c35-8 68.2-20.8 98.8-37.7l84.6 177.6c2.6 5.7 0 12.4-5.8 14.1l-31.4 11.5 82.8 180.7c2.6 5.7 0 11.9-5.8 14.1l-101.8 37.2z"})});function fPt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yTe(e){switch(e){case"azure-ad":return"Microsoft";case"github":return"GitHub";case"okta":return"Okta";case"descope":return"Descope";case"aws-cognito":return"Cognito";default:return fPt(e)}}function dPt(e){switch(e){case"google":return Ge.jsx(pTe,{});case"github":return Ge.jsx(dTe,{});case"azure-ad":return Ge.jsx(gTe,{});case"okta":return Ge.jsx(cPt,{});case"auth0":return Ge.jsx(sPt,{});case"descope":return Ge.jsx(uPt,{});case"aws-cognito":return Ge.jsx(lPt,{});default:return null}}const hPt=({provider:e,onClick:t,isSignIn:r})=>{const{t:n}=Kv();return Ge.jsx(Ah,{variant:"outlined",color:"inherit",startIcon:dPt(e.toLowerCase()),onClick:t,sx:{width:"100%",textTransform:"none",borderColor:ro[400],padding:1.5,paddingLeft:3,justifyContent:"flex-start"},children:r?n("components.molecules.auth.providerButton.continue",{provider:yTe(e)}):n("components.molecules.auth.providerButton.signup",{provider:yTe(e)})})},pPt=({title:e,error:t,providers:r,callbackUrl:n,onPasswordSignIn:i,onOAuthSignIn:v,onForgotPassword:l,onSignUp:h,renderLogo:a,passwordChecklistSettings:u})=>{const[g,o]=bt.useState(!1),[_,x]=bt.useState(!u),[p,b]=WW(!0),[c,s]=WW(),[d,f]=bt.useState(t),{t:m}=Kv(),E=v&&r.length;bt.useEffect(()=>{f(void 0),y.resetForm()},[p]),bt.useEffect(()=>{f(t)},[t]);const y=dU({initialValues:{email:"",password:""},validationSchema:wK({email:CD().required(m("components.molecules.auth.authLogin.form.emailRequired")),password:CD().required(m("components.molecules.auth.authLogin.form.passwordRequired"))}),onSubmit:async({email:R,password:A})=>{if(o(!0),!!i)try{p?await i(R,A,n):h&&await h(R,A,n)}catch(D){D instanceof Error&&f(D.message)}finally{o(!1)}},validateOnBlur:!0});return Ge.jsxs(YLt,{title:e,renderLogo:a,children:[d?Ge.jsx(z0,{sx:{my:1},severity:"error",children:m([`components.molecules.auth.authLogin.error.${d.toLowerCase()}`,"components.molecules.auth.authLogin.error.default"])}):null,i?Ge.jsxs("form",{onSubmit:y.handleSubmit,children:[Ge.jsx(DS,{id:"email",placeholder:m("components.molecules.auth.authLogin.form.email"),size:"medium",value:y.values.email,hasError:!!y.errors.email,description:y.touched.email?y.errors.email:void 0,onBlur:y.handleBlur,onChange:R=>y.setFieldValue("email",R.target.value)}),Ge.jsx(DS,{id:"password",placeholder:m("components.molecules.auth.authLogin.form.password"),value:y.values.password,hasError:!!y.errors.password,description:y.touched.password?y.errors.password:void 0,onBlur:y.handleBlur,onChange:R=>y.setFieldValue("password",R.target.value),type:c?"text":"password",size:"medium",endAdornment:Ge.jsx(xF,{position:"end",children:Ge.jsx(Ts,{"aria-label":"toggle password visibility",onClick:s,children:c?Ge.jsx(fTe,{}):Ge.jsx(cTe,{})})})}),!p&&y.values.password.length&&u?Ge.jsxs(ni,{sx:{border:1,marginTop:1,padding:1.5,borderRadius:1,borderColor:"grey.400","& .checklist-icon":{marginTop:.5},fontSize:14},children:[Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.passwordMustContain"}),Ge.jsx(PLt,{rules:u.rules,minLength:u.minLength,maxLength:u.maxLength,value:y.values.password,messages:u.messages,onChange:x})]}):null,p&&l?Ge.jsx($E,{href:"#",marginTop:1,onClick:l,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.forgotPassword"})}):null,Ge.jsx(Ah,{type:"submit",disabled:g||!p&&!_,variant:"contained",sx:{marginTop:3,width:"100%"},children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.continue"})})]}):null,h?Ge.jsx(to,{direction:"row",alignItems:"center",gap:.5,marginTop:1,children:p?Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Ko,{color:"text.primary",children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.noAccount"})}),Ge.jsx($E,{component:"button",onClick:b,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.signup"})})]}):Ge.jsxs(Ge.Fragment,{children:[Ge.jsx(Ko,{color:"text.primary",children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.alreadyHaveAccount"})}),Ge.jsx($E,{component:"button",onClick:b,children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.signin"})})]})}):null,i&&E?Ge.jsx(Ko,{color:"text.primary",sx:{alignItems:"center",direction:"row",display:"flex",gap:2,marginTop:1,width:"100%",":before, :after":{content:'""',borderBottom:`1px solid ${ro[400]}`,height:"0.5px",flex:"1 0 auto"}},children:Ge.jsx(io,{path:"components.molecules.auth.authLogin.form.or"})}):null,E?Ge.jsx(to,{color:"text.primary",marginTop:1,gap:1,children:r.map((R,A)=>Ge.jsx(hPt,{isSignIn:p,provider:R,onClick:()=>v(R,n)},`provider-${A}`))}):null]})};var PK={},vPt=ko;Object.defineProperty(PK,"__esModule",{value:!0}),PK.default=void 0;var gPt=vPt(Fo()),mPt=Ge,yPt=(0,gPt.default)((0,mPt.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutline");PK.default=yPt;function bPt(){const e=Jj(),{data:t,setAccessToken:r,user:n}=F1(),[i,v]=bt.useState(""),l=ao(Bp),h=jp(),a=async()=>{try{const g=await l.headerAuth();r(g.access_token),h("/")}catch(g){v(g.message)}},u=async(g,o,_)=>{const x=new FormData;x.append("username",g),x.append("password",o);try{const p=await l.passwordAuth(x);r(p.access_token),h(_)}catch(p){v(p.message)}};return bt.useEffect(()=>{v(e.get("error")||"")},[e]),bt.useEffect(()=>{t&&(t.requireLogin||h("/"),t.headerAuth&&a(),n&&h("/"))},[t,n]),Ge.jsx(pPt,{title:Ge.jsx(io,{path:"components.molecules.auth.authLogin.title"}),error:i,callbackUrl:"/",providers:(t==null?void 0:t.oauthProviders)||[],onPasswordSignIn:t!=null&&t.passwordAuth?u:void 0,onOAuthSignIn:async g=>{window.location.href=l.getOAuthEndpoint(g)},renderLogo:Ge.jsx(Fj,{style:{maxWidth:"60%",maxHeight:"90px"}})})}function _Pt(){var t,r;const e=ao($c);return Ge.jsx(xD,{children:Ge.jsx(ni,{my:2,display:"flex",flexGrow:1,children:Ge.jsx(uj,{variant:"app",markdown:e==null?void 0:e.markdown,allowHtml:(t=e==null?void 0:e.features)==null?void 0:t.unsafe_allow_html,latex:(r=e==null?void 0:e.features)==null?void 0:r.latex})})})}const xPt=({thread:e,error:t,isLoading:r})=>{const n=ao(Ib),[i,v]=bt.useState([]),l=ao(Bp),{t:h}=NF(),{threadId:a}=s1();bt.useEffect(()=>{e&&v(e.steps)},[e]);const u=bt.useCallback(async(p,b,c)=>{try{cd.promise(l.setFeedback(c,n),{loading:"Updating",success:s=>(v(d=>d.map(f=>f.id===p.id?{...f,feedback:{...c,id:s.feedbackId}}:f)),b(),"Feedback updated!"),error:s=>Ge.jsx("span",{children:s.message})})}catch(s){console.log(s)}},[]),g=bt.useCallback(async(p,b,c)=>{try{cd.promise(l.deleteFeedback(c,n),{loading:h("components.organisms.chat.Messages.index.updating"),success:()=>(v(s=>s.map(d=>d.id===p.id?{...d,feedback:void 0}:d)),b(),h("components.organisms.chat.Messages.index.feedbackUpdated")),error:s=>Ge.jsx("span",{children:s.message})})}catch(s){console.log(s)}},[]);if(r)return Ge.jsx(Ge.Fragment,{children:[1,2,3].map(p=>Ge.jsxs(to,{sx:{px:2,gap:4,mt:5,flexDirection:"row",justifyContent:"center"},children:[Ge.jsxs(to,{children:[Ge.jsx(By,{width:50}),Ge.jsx(By,{width:50})]}),Ge.jsx(By,{variant:"rounded",sx:{maxWidth:"60rem",width:"100%",height:100}})]},`thread-skeleton-${p}`))});if(!e||t)return null;const o=e.elements,_=[],x=N7e(i);return Ge.jsx(to,{direction:"row",flexGrow:1,width:"100%",height:"100%",children:Ge.jsxs($Se,{children:[Ge.jsx(ni,{sx:{width:"100%",maxWidth:"60rem",mx:"auto",my:2},children:Ge.jsxs(z0,{sx:{mx:2},id:"thread-info",severity:"info",action:Ge.jsx(Ah,{component:a4,color:"inherit",size:"small",to:a?`/thread/${a}`:"/",children:Ge.jsx(io,{path:"components.organisms.threadHistory.Thread.backToChat"})}),children:[Ge.jsx(io,{path:"components.organisms.threadHistory.Thread.chatCreatedOn"})," ",new Intl.DateTimeFormat(void 0,{day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(e.createdAt)),"."]})}),Ge.jsx(HSe,{loading:!1,avatars:[],actions:_,elements:o||[],onFeedbackUpdated:u,onFeedbackDeleted:g,messages:x,autoScroll:!0})]})})};function EPt({threadId:e}){const t=jp(),r=ao($c),{clear:n,setIdToResume:i}=nd();if(!e||!(r!=null&&r.threadResumable))return null;const v=()=>{n(),i(e),cd.success("Chat resumed!"),r!=null&&r.dataPersistence||t("/")};return Ge.jsxs(ni,{display:"flex",flexDirection:"column",gap:1,p:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[Ge.jsx(Ah,{id:"resumeThread",onClick:v,variant:"contained",children:Ge.jsx(io,{path:"pages.ResumeButton.resumeChat"})}),Ge.jsx(lj,{})]})}function SPt(){const{id:e}=jEe(),t=ao(Bp),{data:r,error:n,isLoading:i}=U6(t,e?`/project/thread/${e}`:null,{revalidateOnFocus:!1}),[v,l]=tc(_w),{threadId:h}=s1(),a=h===e;return bt.useEffect(()=>{(v==null?void 0:v.currentThreadId)!==e&&l(u=>({...u,currentThreadId:e}))},[e]),Ge.jsx(xD,{children:Ge.jsxs(Ge.Fragment,{children:[a&&Ge.jsx(uTe,{}),!a&&Ge.jsxs(ni,{sx:{display:"flex",flexDirection:"column",flexGrow:1,gap:2},children:[Ge.jsx(ni,{sx:{width:"100%",flexGrow:1,overflow:"auto"},children:Ge.jsx(xPt,{thread:r,error:n,isLoading:i})}),Ge.jsx(EPt,{threadId:e})]})]})})}P5t([{path:"/",element:Ge.jsx(NLt,{})},{path:"/readme",element:Ge.jsx(_Pt,{})},{path:"/env",element:Ge.jsx(a8t,{})},{path:"/thread/:id?",element:Ge.jsx(SPt,{})},{path:"/element/:id",element:Ge.jsx(bOt,{})},{path:"/login",element:Ge.jsx(bPt,{})},{path:"/login/callback",element:Ge.jsx($5t,{})},{path:"*",element:Ge.jsx(Zj,{replace:!0,to:"/"})}]);var TPt=["shift","alt","meta","mod","ctrl"],wPt={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function LD(e){return(wPt[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function APt(e){return TPt.includes(e)}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&CPt([LD(e.key),LD(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&RPt([LD(e.key),LD(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){U_.clear()})})();var U_=new Set;function CPt(e){var t=Array.isArray(e)?e:[e];U_.has("meta")&&U_.forEach(function(r){return!APt(r)&&U_.delete(r.toLowerCase())}),t.forEach(function(r){return U_.add(r.toLowerCase())})}function RPt(e){var t=Array.isArray(e)?e:[e];e==="meta"?U_.clear():t.forEach(function(r){return U_.delete(r.toLowerCase())})}var kK={},MPt=ko;Object.defineProperty(kK,"__esModule",{value:!0}),kK.default=void 0;var IPt=MPt(Fo()),OPt=Ge,DPt=(0,IPt.default)((0,OPt.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");kK.default=DPt;var FK={},NPt=ko;Object.defineProperty(FK,"__esModule",{value:!0}),FK.default=void 0;var LPt=NPt(Fo()),PPt=Ge,kPt=(0,LPt.default)((0,PPt.jsx)("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}),"EmojiObjects");FK.default=kPt;var BK={},FPt=ko;Object.defineProperty(BK,"__esModule",{value:!0}),BK.default=void 0;var BPt=FPt(Fo()),zPt=Ge,UPt=(0,BPt.default)((0,zPt.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");BK.default=UPt;const $Pt={setVariableName:()=>{},setFunctionIndex:()=>{},setPromptMode:()=>{},setPlayground:()=>{},onNotification:()=>{},promptMode:"Formatted"},zK=bt.createContext($Pt);var UK={},HPt=ko;Object.defineProperty(UK,"__esModule",{value:!0}),UK.default=void 0;var GPt=HPt(Fo()),VPt=Ge,YPt=(0,GPt.default)((0,VPt.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");UK.default=YPt;var bTe={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ol,function(){var r=Array.prototype.slice;function n(Be,yt){yt&&(Be.prototype=Object.create(yt.prototype)),Be.prototype.constructor=Be}function i(Be){return a(Be)?Be:oe(Be)}n(v,i);function v(Be){return u(Be)?Be:he(Be)}n(l,i);function l(Be){return g(Be)?Be:q(Be)}n(h,i);function h(Be){return a(Be)&&!o(Be)?Be:J(Be)}function a(Be){return!!(Be&&Be[x])}function u(Be){return!!(Be&&Be[p])}function g(Be){return!!(Be&&Be[b])}function o(Be){return u(Be)||g(Be)}function _(Be){return!!(Be&&Be[c])}i.isIterable=a,i.isKeyed=u,i.isIndexed=g,i.isAssociative=o,i.isOrdered=_,i.Keyed=v,i.Indexed=l,i.Set=h;var x="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",b="@@__IMMUTABLE_INDEXED__@@",c="@@__IMMUTABLE_ORDERED__@@",s="delete",d=5,f=1<<d,m=f-1,E={},y={value:!1},R={value:!1};function A(Be){return Be.value=!1,Be}function D(Be){Be&&(Be.value=!0)}function w(){}function S(Be,yt){yt=yt||0;for(var Zt=Math.max(0,Be.length-yt),ur=new Array(Zt),_r=0;_r<Zt;_r++)ur[_r]=Be[_r+yt];return ur}function C(Be){return Be.size===void 0&&(Be.size=Be.__iterate(I)),Be.size}function M(Be,yt){if(typeof yt!="number"){var Zt=yt>>>0;if(""+Zt!==yt||Zt===4294967295)return NaN;yt=Zt}return yt<0?C(Be)+yt:yt}function I(){return!0}function F(Be,yt,Zt){return(Be===0||Zt!==void 0&&Be<=-Zt)&&(yt===void 0||Zt!==void 0&&yt>=Zt)}function N(Be,yt){return O(Be,yt,0)}function k(Be,yt){return O(Be,yt,yt)}function O(Be,yt,Zt){return Be===void 0?Zt:Be<0?Math.max(0,yt+Be):yt===void 0?Be:Math.min(yt,Be)}var T=0,P=1,L=2,z=typeof Symbol=="function"&&Symbol.iterator,B="@@iterator",Y=z||B;function H(Be){this.next=Be}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=T,H.VALUES=P,H.ENTRIES=L,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[Y]=function(){return this};function G(Be,yt,Zt,ur){var _r=Be===0?yt:Be===1?Zt:[yt,Zt];return ur?ur.value=_r:ur={value:_r,done:!1},ur}function W(){return{value:void 0,done:!0}}function V(Be){return!!ee(Be)}function j(Be){return Be&&typeof Be.next=="function"}function X(Be){var yt=ee(Be);return yt&&yt.call(Be)}function ee(Be){var yt=Be&&(z&&Be[z]||Be[B]);if(typeof yt=="function")return yt}function ae(Be){return Be&&typeof Be.length=="number"}n(oe,i);function oe(Be){return Be==null?ie():a(Be)?Be.toSeq():Ee(Be)}oe.of=function(){return oe(arguments)},oe.prototype.toSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq {","}")},oe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},oe.prototype.__iterate=function(Be,yt){return Pe(this,Be,yt,!0)},oe.prototype.__iterator=function(Be,yt){return we(this,Be,yt,!0)},n(he,oe);function he(Be){return Be==null?ie().toKeyedSeq():a(Be)?u(Be)?Be.toSeq():Be.fromEntrySeq():ce(Be)}he.prototype.toKeyedSeq=function(){return this},n(q,oe);function q(Be){return Be==null?ie():a(Be)?u(Be)?Be.entrySeq():Be.toIndexedSeq():ge(Be)}q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(Be,yt){return Pe(this,Be,yt,!1)},q.prototype.__iterator=function(Be,yt){return we(this,Be,yt,!1)},n(J,oe);function J(Be){return(Be==null?ie():a(Be)?u(Be)?Be.entrySeq():Be:ge(Be)).toSetSeq()}J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},oe.isSeq=Q,oe.Keyed=he,oe.Set=J,oe.Indexed=q;var le="@@__IMMUTABLE_SEQ__@@";oe.prototype[le]=!0,n(Z,q);function Z(Be){this._array=Be,this.size=Be.length}Z.prototype.get=function(Be,yt){return this.has(Be)?this._array[M(this,Be)]:yt},Z.prototype.__iterate=function(Be,yt){for(var Zt=this._array,ur=Zt.length-1,_r=0;_r<=ur;_r++)if(Be(Zt[yt?ur-_r:_r],_r,this)===!1)return _r+1;return _r},Z.prototype.__iterator=function(Be,yt){var Zt=this._array,ur=Zt.length-1,_r=0;return new H(function(){return _r>ur?W():G(Be,_r,Zt[yt?ur-_r++:_r++])})},n(re,he);function re(Be){var yt=Object.keys(Be);this._object=Be,this._keys=yt,this.size=yt.length}re.prototype.get=function(Be,yt){return yt!==void 0&&!this.has(Be)?yt:this._object[Be]},re.prototype.has=function(Be){return this._object.hasOwnProperty(Be)},re.prototype.__iterate=function(Be,yt){for(var Zt=this._object,ur=this._keys,_r=ur.length-1,nn=0;nn<=_r;nn++){var Sn=ur[yt?_r-nn:nn];if(Be(Zt[Sn],Sn,this)===!1)return nn+1}return nn},re.prototype.__iterator=function(Be,yt){var Zt=this._object,ur=this._keys,_r=ur.length-1,nn=0;return new H(function(){var Sn=ur[yt?_r-nn:nn];return nn++>_r?W():G(Be,Sn,Zt[Sn])})},re.prototype[c]=!0,n(fe,q);function fe(Be){this._iterable=Be,this.size=Be.length||Be.size}fe.prototype.__iterateUncached=function(Be,yt){if(yt)return this.cacheResult().__iterate(Be,yt);var Zt=this._iterable,ur=X(Zt),_r=0;if(j(ur))for(var nn;!(nn=ur.next()).done&&Be(nn.value,_r++,this)!==!1;);return _r},fe.prototype.__iteratorUncached=function(Be,yt){if(yt)return this.cacheResult().__iterator(Be,yt);var Zt=this._iterable,ur=X(Zt);if(!j(ur))return new H(W);var _r=0;return new H(function(){var nn=ur.next();return nn.done?nn:G(Be,_r++,nn.value)})},n(ne,q);function ne(Be){this._iterator=Be,this._iteratorCache=[]}ne.prototype.__iterateUncached=function(Be,yt){if(yt)return this.cacheResult().__iterate(Be,yt);for(var Zt=this._iterator,ur=this._iteratorCache,_r=0;_r<ur.length;)if(Be(ur[_r],_r++,this)===!1)return _r;for(var nn;!(nn=Zt.next()).done;){var Sn=nn.value;if(ur[_r]=Sn,Be(Sn,_r++,this)===!1)break}return _r},ne.prototype.__iteratorUncached=function(Be,yt){if(yt)return this.cacheResult().__iterator(Be,yt);var Zt=this._iterator,ur=this._iteratorCache,_r=0;return new H(function(){if(_r>=ur.length){var nn=Zt.next();if(nn.done)return nn;ur[_r]=nn.value}return G(Be,_r,ur[_r++])})};function Q(Be){return!!(Be&&Be[le])}var de;function ie(){return de||(de=new Z([]))}function ce(Be){var yt=Array.isArray(Be)?new Z(Be).fromEntrySeq():j(Be)?new ne(Be).fromEntrySeq():V(Be)?new fe(Be).fromEntrySeq():typeof Be=="object"?new re(Be):void 0;if(!yt)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+Be);return yt}function ge(Be){var yt=Se(Be);if(!yt)throw new TypeError("Expected Array or iterable object of values: "+Be);return yt}function Ee(Be){var yt=Se(Be)||typeof Be=="object"&&new re(Be);if(!yt)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+Be);return yt}function Se(Be){return ae(Be)?new Z(Be):j(Be)?new ne(Be):V(Be)?new fe(Be):void 0}function Pe(Be,yt,Zt,ur){var _r=Be._cache;if(_r){for(var nn=_r.length-1,Sn=0;Sn<=nn;Sn++){var ea=_r[Zt?nn-Sn:Sn];if(yt(ea[1],ur?ea[0]:Sn,Be)===!1)return Sn+1}return Sn}return Be.__iterateUncached(yt,Zt)}function we(Be,yt,Zt,ur){var _r=Be._cache;if(_r){var nn=_r.length-1,Sn=0;return new H(function(){var ea=_r[Zt?nn-Sn:Sn];return Sn++>nn?W():G(yt,ur?ea[0]:Sn-1,ea[1])})}return Be.__iteratorUncached(yt,Zt)}function Ce(Be,yt){return yt?_e(yt,Be,"",{"":Be}):Le(Be)}function _e(Be,yt,Zt,ur){return Array.isArray(yt)?Be.call(ur,Zt,q(yt).map(function(_r,nn){return _e(Be,_r,nn,yt)})):Fe(yt)?Be.call(ur,Zt,he(yt).map(function(_r,nn){return _e(Be,_r,nn,yt)})):yt}function Le(Be){return Array.isArray(Be)?q(Be).map(Le).toList():Fe(Be)?he(Be).map(Le).toMap():Be}function Fe(Be){return Be&&(Be.constructor===Object||Be.constructor===void 0)}function Re(Be,yt){if(Be===yt||Be!==Be&&yt!==yt)return!0;if(!Be||!yt)return!1;if(typeof Be.valueOf=="function"&&typeof yt.valueOf=="function"){if(Be=Be.valueOf(),yt=yt.valueOf(),Be===yt||Be!==Be&&yt!==yt)return!0;if(!Be||!yt)return!1}return!!(typeof Be.equals=="function"&&typeof yt.equals=="function"&&Be.equals(yt))}function Me(Be,yt){if(Be===yt)return!0;if(!a(yt)||Be.size!==void 0&&yt.size!==void 0&&Be.size!==yt.size||Be.__hash!==void 0&&yt.__hash!==void 0&&Be.__hash!==yt.__hash||u(Be)!==u(yt)||g(Be)!==g(yt)||_(Be)!==_(yt))return!1;if(Be.size===0&&yt.size===0)return!0;var Zt=!o(Be);if(_(Be)){var ur=Be.entries();return yt.every(function(Ta,Ra){var en=ur.next().value;return en&&Re(en[1],Ta)&&(Zt||Re(en[0],Ra))})&&ur.next().done}var _r=!1;if(Be.size===void 0)if(yt.size===void 0)typeof Be.cacheResult=="function"&&Be.cacheResult();else{_r=!0;var nn=Be;Be=yt,yt=nn}var Sn=!0,ea=yt.__iterate(function(Ta,Ra){if(Zt?!Be.has(Ta):_r?!Re(Ta,Be.get(Ra,E)):!Re(Be.get(Ra,E),Ta))return Sn=!1,!1});return Sn&&Be.size===ea}n(ze,q);function ze(Be,yt){if(!(this instanceof ze))return new ze(Be,yt);if(this._value=Be,this.size=yt===void 0?1/0:Math.max(0,yt),this.size===0){if(et)return et;et=this}}ze.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ze.prototype.get=function(Be,yt){return this.has(Be)?this._value:yt},ze.prototype.includes=function(Be){return Re(this._value,Be)},ze.prototype.slice=function(Be,yt){var Zt=this.size;return F(Be,yt,Zt)?this:new ze(this._value,k(yt,Zt)-N(Be,Zt))},ze.prototype.reverse=function(){return this},ze.prototype.indexOf=function(Be){return Re(this._value,Be)?0:-1},ze.prototype.lastIndexOf=function(Be){return Re(this._value,Be)?this.size:-1},ze.prototype.__iterate=function(Be,yt){for(var Zt=0;Zt<this.size;Zt++)if(Be(this._value,Zt,this)===!1)return Zt+1;return Zt},ze.prototype.__iterator=function(Be,yt){var Zt=this,ur=0;return new H(function(){return ur<Zt.size?G(Be,ur++,Zt._value):W()})},ze.prototype.equals=function(Be){return Be instanceof ze?Re(this._value,Be._value):Me(Be)};var et;function lt(Be,yt){if(!Be)throw new Error(yt)}n(Je,q);function Je(Be,yt,Zt){if(!(this instanceof Je))return new Je(Be,yt,Zt);if(lt(Zt!==0,"Cannot step a Range by 0"),Be=Be||0,yt===void 0&&(yt=1/0),Zt=Zt===void 0?1:Math.abs(Zt),yt<Be&&(Zt=-Zt),this._start=Be,this._end=yt,this._step=Zt,this.size=Math.max(0,Math.ceil((yt-Be)/Zt-1)+1),this.size===0){if(qe)return qe;qe=this}}Je.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Je.prototype.get=function(Be,yt){return this.has(Be)?this._start+M(this,Be)*this._step:yt},Je.prototype.includes=function(Be){var yt=(Be-this._start)/this._step;return yt>=0&&yt<this.size&&yt===Math.floor(yt)},Je.prototype.slice=function(Be,yt){return F(Be,yt,this.size)?this:(Be=N(Be,this.size),yt=k(yt,this.size),yt<=Be?new Je(0,0):new Je(this.get(Be,this._end),this.get(yt,this._end),this._step))},Je.prototype.indexOf=function(Be){var yt=Be-this._start;if(yt%this._step===0){var Zt=yt/this._step;if(Zt>=0&&Zt<this.size)return Zt}return-1},Je.prototype.lastIndexOf=function(Be){return this.indexOf(Be)},Je.prototype.__iterate=function(Be,yt){for(var Zt=this.size-1,ur=this._step,_r=yt?this._start+Zt*ur:this._start,nn=0;nn<=Zt;nn++){if(Be(_r,nn,this)===!1)return nn+1;_r+=yt?-ur:ur}return nn},Je.prototype.__iterator=function(Be,yt){var Zt=this.size-1,ur=this._step,_r=yt?this._start+Zt*ur:this._start,nn=0;return new H(function(){var Sn=_r;return _r+=yt?-ur:ur,nn>Zt?W():G(Be,nn++,Sn)})},Je.prototype.equals=function(Be){return Be instanceof Je?this._start===Be._start&&this._end===Be._end&&this._step===Be._step:Me(this,Be)};var qe;n(ct,i);function ct(){throw TypeError("Abstract")}n(ht,ct);function ht(){}n(mt,ct);function mt(){}n(_t,ct);function _t(){}ct.Keyed=ht,ct.Indexed=mt,ct.Set=_t;var Mt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(yt,Zt){yt=yt|0,Zt=Zt|0;var ur=yt&65535,_r=Zt&65535;return ur*_r+((yt>>>16)*_r+ur*(Zt>>>16)<<16>>>0)|0};function it(Be){return Be>>>1&1073741824|Be&3221225471}function He(Be){if(Be===!1||Be===null||Be===void 0||typeof Be.valueOf=="function"&&(Be=Be.valueOf(),Be===!1||Be===null||Be===void 0))return 0;if(Be===!0)return 1;var yt=typeof Be;if(yt==="number"){var Zt=Be|0;for(Zt!==Be&&(Zt^=Be*4294967295);Be>4294967295;)Be/=4294967295,Zt^=Be;return it(Zt)}if(yt==="string")return Be.length>ut?Xe(Be):tt(Be);if(typeof Be.hashCode=="function")return Be.hashCode();if(yt==="object")return je(Be);if(typeof Be.toString=="function")return tt(Be.toString());throw new Error("Value type "+yt+" cannot be hashed.")}function Xe(Be){var yt=tr[Be];return yt===void 0&&(yt=tt(Be),St===xt&&(St=0,tr={}),St++,tr[Be]=yt),yt}function tt(Be){for(var yt=0,Zt=0;Zt<Be.length;Zt++)yt=31*yt+Be.charCodeAt(Zt)|0;return it(yt)}function je(Be){var yt;if(Ne&&(yt=Oe.get(Be),yt!==void 0)||(yt=Be[Qe],yt!==void 0)||!Ae&&(yt=Be.propertyIsEnumerable&&Be.propertyIsEnumerable[Qe],yt!==void 0||(yt=Te(Be),yt!==void 0)))return yt;if(yt=++Ye,Ye&1073741824&&(Ye=0),Ne)Oe.set(Be,yt);else{if($e!==void 0&&$e(Be)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(Be,Qe,{enumerable:!1,configurable:!1,writable:!1,value:yt});else if(Be.propertyIsEnumerable!==void 0&&Be.propertyIsEnumerable===Be.constructor.prototype.propertyIsEnumerable)Be.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},Be.propertyIsEnumerable[Qe]=yt;else if(Be.nodeType!==void 0)Be[Qe]=yt;else throw new Error("Unable to set a non-enumerable property on object.")}return yt}var $e=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Te(Be){if(Be&&Be.nodeType>0)switch(Be.nodeType){case 1:return Be.uniqueID;case 9:return Be.documentElement&&Be.documentElement.uniqueID}}var Ne=typeof WeakMap=="function",Oe;Ne&&(Oe=new WeakMap);var Ye=0,Qe="__immutablehash__";typeof Symbol=="function"&&(Qe=Symbol(Qe));var ut=16,xt=255,St=0,tr={};function nr(Be){lt(Be!==1/0,"Cannot perform this action with an infinite size.")}n(Rt,ht);function Rt(Be){return Be==null?Ft():zt(Be)&&!_(Be)?Be:Ft().withMutations(function(yt){var Zt=v(Be);nr(Zt.size),Zt.forEach(function(ur,_r){return yt.set(_r,ur)})})}Rt.prototype.toString=function(){return this.__toString("Map {","}")},Rt.prototype.get=function(Be,yt){return this._root?this._root.get(0,void 0,Be,yt):yt},Rt.prototype.set=function(Be,yt){return Qt(this,Be,yt)},Rt.prototype.setIn=function(Be,yt){return this.updateIn(Be,E,function(){return yt})},Rt.prototype.remove=function(Be){return Qt(this,Be,E)},Rt.prototype.deleteIn=function(Be){return this.updateIn(Be,function(){return E})},Rt.prototype.update=function(Be,yt,Zt){return arguments.length===1?Be(this):this.updateIn([Be],yt,Zt)},Rt.prototype.updateIn=function(Be,yt,Zt){Zt||(Zt=yt,yt=void 0);var ur=hr(this,ui(Be),yt,Zt);return ur===E?void 0:ur},Rt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ft()},Rt.prototype.merge=function(){return Ke(this,void 0,arguments)},Rt.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return Ke(this,Be,yt)},Rt.prototype.mergeIn=function(Be){var yt=r.call(arguments,1);return this.updateIn(Be,Ft(),function(Zt){return typeof Zt.merge=="function"?Zt.merge.apply(Zt,yt):yt[yt.length-1]})},Rt.prototype.mergeDeep=function(){return Ke(this,Yt,arguments)},Rt.prototype.mergeDeepWith=function(Be){var yt=r.call(arguments,1);return Ke(this,Vt(Be),yt)},Rt.prototype.mergeDeepIn=function(Be){var yt=r.call(arguments,1);return this.updateIn(Be,Ft(),function(Zt){return typeof Zt.mergeDeep=="function"?Zt.mergeDeep.apply(Zt,yt):yt[yt.length-1]})},Rt.prototype.sort=function(Be){return $a(Vr(this,Be))},Rt.prototype.sortBy=function(Be,yt){return $a(Vr(this,yt,Be))},Rt.prototype.withMutations=function(Be){var yt=this.asMutable();return Be(yt),yt.wasAltered()?yt.__ensureOwner(this.__ownerID):this},Rt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Rt.prototype.asImmutable=function(){return this.__ensureOwner()},Rt.prototype.wasAltered=function(){return this.__altered},Rt.prototype.__iterator=function(Be,yt){return new Ct(this,Be,yt)},Rt.prototype.__iterate=function(Be,yt){var Zt=this,ur=0;return this._root&&this._root.iterate(function(_r){return ur++,Be(_r[1],_r[0],Zt)},yt),ur},Rt.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Pt(this.size,this._root,Be,this.__hash):(this.__ownerID=Be,this.__altered=!1,this)};function zt(Be){return!!(Be&&Be[dr])}Rt.isMap=zt;var dr="@@__IMMUTABLE_MAP__@@",Mr=Rt.prototype;Mr[dr]=!0,Mr[s]=Mr.remove,Mr.removeIn=Mr.deleteIn;function Tt(Be,yt){this.ownerID=Be,this.entries=yt}Tt.prototype.get=function(Be,yt,Zt,ur){for(var _r=this.entries,nn=0,Sn=_r.length;nn<Sn;nn++)if(Re(Zt,_r[nn][0]))return _r[nn][1];return ur},Tt.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){for(var ea=_r===E,Ta=this.entries,Ra=0,en=Ta.length;Ra<en&&!Re(ur,Ta[Ra][0]);Ra++);var Xn=Ra<en;if(Xn?Ta[Ra][1]===_r:ea)return this;if(D(Sn),(ea||!Xn)&&D(nn),!(ea&&Ta.length===1)){if(!Xn&&!ea&&Ta.length>=Lr)return Cr(Be,Ta,ur,_r);var Un=Be&&Be===this.ownerID,Ba=Un?Ta:S(Ta);return Xn?ea?Ra===en-1?Ba.pop():Ba[Ra]=Ba.pop():Ba[Ra]=[ur,_r]:Ba.push([ur,_r]),Un?(this.entries=Ba,this):new Tt(Be,Ba)}};function ir(Be,yt,Zt){this.ownerID=Be,this.bitmap=yt,this.nodes=Zt}ir.prototype.get=function(Be,yt,Zt,ur){yt===void 0&&(yt=He(Zt));var _r=1<<((Be===0?yt:yt>>>Be)&m),nn=this.bitmap;return nn&_r?this.nodes[Er(nn&_r-1)].get(Be+d,yt,Zt,ur):ur},ir.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=(yt===0?Zt:Zt>>>yt)&m,Ta=1<<ea,Ra=this.bitmap,en=(Ra&Ta)!==0;if(!en&&_r===E)return this;var Xn=Er(Ra&Ta-1),Un=this.nodes,Ba=en?Un[Xn]:void 0,ci=Kt(Ba,Be,yt+d,Zt,ur,_r,nn,Sn);if(ci===Ba)return this;if(!en&&ci&&Un.length>=kr)return Ze(Be,Un,Ra,ea,ci);if(en&&!ci&&Un.length===2&&sr(Un[Xn^1]))return Un[Xn^1];if(en&&ci&&Un.length===1&&sr(ci))return ci;var Vi=Be&&Be===this.ownerID,Bo=en?ci?Ra:Ra^Ta:Ra|Ta,wo=en?ci?vr(Un,Xn,ci,Vi):Ir(Un,Xn,Vi):jt(Un,Xn,ci,Vi);return Vi?(this.bitmap=Bo,this.nodes=wo,this):new ir(Be,Bo,wo)};function fr(Be,yt,Zt){this.ownerID=Be,this.count=yt,this.nodes=Zt}fr.prototype.get=function(Be,yt,Zt,ur){yt===void 0&&(yt=He(Zt));var _r=(Be===0?yt:yt>>>Be)&m,nn=this.nodes[_r];return nn?nn.get(Be+d,yt,Zt,ur):ur},fr.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=(yt===0?Zt:Zt>>>yt)&m,Ta=_r===E,Ra=this.nodes,en=Ra[ea];if(Ta&&!en)return this;var Xn=Kt(en,Be,yt+d,Zt,ur,_r,nn,Sn);if(Xn===en)return this;var Un=this.count;if(!en)Un++;else if(!Xn&&(Un--,Un<Rr))return Or(Be,Ra,Un,ea);var Ba=Be&&Be===this.ownerID,ci=vr(Ra,ea,Xn,Ba);return Ba?(this.count=Un,this.nodes=ci,this):new fr(Be,Un,ci)};function Nr(Be,yt,Zt){this.ownerID=Be,this.keyHash=yt,this.entries=Zt}Nr.prototype.get=function(Be,yt,Zt,ur){for(var _r=this.entries,nn=0,Sn=_r.length;nn<Sn;nn++)if(Re(Zt,_r[nn][0]))return _r[nn][1];return ur},Nr.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){Zt===void 0&&(Zt=He(ur));var ea=_r===E;if(Zt!==this.keyHash)return ea?this:(D(Sn),D(nn),Tr(this,Be,yt,Zt,[ur,_r]));for(var Ta=this.entries,Ra=0,en=Ta.length;Ra<en&&!Re(ur,Ta[Ra][0]);Ra++);var Xn=Ra<en;if(Xn?Ta[Ra][1]===_r:ea)return this;if(D(Sn),(ea||!Xn)&&D(nn),ea&&en===2)return new br(Be,this.keyHash,Ta[Ra^1]);var Un=Be&&Be===this.ownerID,Ba=Un?Ta:S(Ta);return Xn?ea?Ra===en-1?Ba.pop():Ba[Ra]=Ba.pop():Ba[Ra]=[ur,_r]:Ba.push([ur,_r]),Un?(this.entries=Ba,this):new Nr(Be,this.keyHash,Ba)};function br(Be,yt,Zt){this.ownerID=Be,this.keyHash=yt,this.entry=Zt}br.prototype.get=function(Be,yt,Zt,ur){return Re(Zt,this.entry[0])?this.entry[1]:ur},br.prototype.update=function(Be,yt,Zt,ur,_r,nn,Sn){var ea=_r===E,Ta=Re(ur,this.entry[0]);if(Ta?_r===this.entry[1]:ea)return this;if(D(Sn),ea){D(nn);return}return Ta?Be&&Be===this.ownerID?(this.entry[1]=_r,this):new br(Be,this.keyHash,[ur,_r]):(D(nn),Tr(this,Be,yt,He(ur),[ur,_r]))},Tt.prototype.iterate=Nr.prototype.iterate=function(Be,yt){for(var Zt=this.entries,ur=0,_r=Zt.length-1;ur<=_r;ur++)if(Be(Zt[yt?_r-ur:ur])===!1)return!1},ir.prototype.iterate=fr.prototype.iterate=function(Be,yt){for(var Zt=this.nodes,ur=0,_r=Zt.length-1;ur<=_r;ur++){var nn=Zt[yt?_r-ur:ur];if(nn&&nn.iterate(Be,yt)===!1)return!1}},br.prototype.iterate=function(Be,yt){return Be(this.entry)},n(Ct,H);function Ct(Be,yt,Zt){this._type=yt,this._reverse=Zt,this._stack=Be._root&&Ot(Be._root)}Ct.prototype.next=function(){for(var Be=this._type,yt=this._stack;yt;){var Zt=yt.node,ur=yt.index++,_r;if(Zt.entry){if(ur===0)return pt(Be,Zt.entry)}else if(Zt.entries){if(_r=Zt.entries.length-1,ur<=_r)return pt(Be,Zt.entries[this._reverse?_r-ur:ur])}else if(_r=Zt.nodes.length-1,ur<=_r){var nn=Zt.nodes[this._reverse?_r-ur:ur];if(nn){if(nn.entry)return pt(Be,nn.entry);yt=this._stack=Ot(nn,yt)}continue}yt=this._stack=this._stack.__prev}return W()};function pt(Be,yt){return G(Be,yt[0],yt[1])}function Ot(Be,yt){return{node:Be,index:0,__prev:yt}}function Pt(Be,yt,Zt,ur){var _r=Object.create(Mr);return _r.size=Be,_r._root=yt,_r.__ownerID=Zt,_r.__hash=ur,_r.__altered=!1,_r}var $t;function Ft(){return $t||($t=Pt(0))}function Qt(Be,yt,Zt){var ur,_r;if(Be._root){var nn=A(y),Sn=A(R);if(ur=Kt(Be._root,Be.__ownerID,0,void 0,yt,Zt,nn,Sn),!Sn.value)return Be;_r=Be.size+(nn.value?Zt===E?-1:1:0)}else{if(Zt===E)return Be;_r=1,ur=new Tt(Be.__ownerID,[[yt,Zt]])}return Be.__ownerID?(Be.size=_r,Be._root=ur,Be.__hash=void 0,Be.__altered=!0,Be):ur?Pt(_r,ur):Ft()}function Kt(Be,yt,Zt,ur,_r,nn,Sn,ea){return Be?Be.update(yt,Zt,ur,_r,nn,Sn,ea):nn===E?Be:(D(ea),D(Sn),new br(yt,ur,[_r,nn]))}function sr(Be){return Be.constructor===br||Be.constructor===Nr}function Tr(Be,yt,Zt,ur,_r){if(Be.keyHash===ur)return new Nr(yt,ur,[Be.entry,_r]);var nn=(Zt===0?Be.keyHash:Be.keyHash>>>Zt)&m,Sn=(Zt===0?ur:ur>>>Zt)&m,ea,Ta=nn===Sn?[Tr(Be,yt,Zt+d,ur,_r)]:(ea=new br(yt,ur,_r),nn<Sn?[Be,ea]:[ea,Be]);return new ir(yt,1<<nn|1<<Sn,Ta)}function Cr(Be,yt,Zt,ur){Be||(Be=new w);for(var _r=new br(Be,He(Zt),[Zt,ur]),nn=0;nn<yt.length;nn++){var Sn=yt[nn];_r=_r.update(Be,0,void 0,Sn[0],Sn[1])}return _r}function Or(Be,yt,Zt,ur){for(var _r=0,nn=0,Sn=new Array(Zt),ea=0,Ta=1,Ra=yt.length;ea<Ra;ea++,Ta<<=1){var en=yt[ea];en!==void 0&&ea!==ur&&(_r|=Ta,Sn[nn++]=en)}return new ir(Be,_r,Sn)}function Ze(Be,yt,Zt,ur,_r){for(var nn=0,Sn=new Array(f),ea=0;Zt!==0;ea++,Zt>>>=1)Sn[ea]=Zt&1?yt[nn++]:void 0;return Sn[ur]=_r,new fr(Be,nn+1,Sn)}function Ke(Be,yt,Zt){for(var ur=[],_r=0;_r<Zt.length;_r++){var nn=Zt[_r],Sn=v(nn);a(nn)||(Sn=Sn.map(function(ea){return Ce(ea)})),ur.push(Sn)}return or(Be,yt,ur)}function Yt(Be,yt,Zt){return Be&&Be.mergeDeep&&a(yt)?Be.mergeDeep(yt):Re(Be,yt)?Be:yt}function Vt(Be){return function(yt,Zt,ur){if(yt&&yt.mergeDeepWith&&a(Zt))return yt.mergeDeepWith(Be,Zt);var _r=Be(yt,Zt,ur);return Re(yt,_r)?yt:_r}}function or(Be,yt,Zt){return Zt=Zt.filter(function(ur){return ur.size!==0}),Zt.length===0?Be:Be.size===0&&!Be.__ownerID&&Zt.length===1?Be.constructor(Zt[0]):Be.withMutations(function(ur){for(var _r=yt?function(Sn,ea){ur.update(ea,E,function(Ta){return Ta===E?Sn:yt(Ta,Sn,ea)})}:function(Sn,ea){ur.set(ea,Sn)},nn=0;nn<Zt.length;nn++)Zt[nn].forEach(_r)})}function hr(Be,yt,Zt,ur){var _r=Be===E,nn=yt.next();if(nn.done){var Sn=_r?Zt:Be,ea=ur(Sn);return ea===Sn?Be:ea}lt(_r||Be&&Be.set,"invalid keyPath");var Ta=nn.value,Ra=_r?E:Be.get(Ta,E),en=hr(Ra,yt,Zt,ur);return en===Ra?Be:en===E?Be.remove(Ta):(_r?Ft():Be).set(Ta,en)}function Er(Be){return Be=Be-(Be>>1&1431655765),Be=(Be&858993459)+(Be>>2&858993459),Be=Be+(Be>>4)&252645135,Be=Be+(Be>>8),Be=Be+(Be>>16),Be&127}function vr(Be,yt,Zt,ur){var _r=ur?Be:S(Be);return _r[yt]=Zt,_r}function jt(Be,yt,Zt,ur){var _r=Be.length+1;if(ur&&yt+1===_r)return Be[yt]=Zt,Be;for(var nn=new Array(_r),Sn=0,ea=0;ea<_r;ea++)ea===yt?(nn[ea]=Zt,Sn=-1):nn[ea]=Be[ea+Sn];return nn}function Ir(Be,yt,Zt){var ur=Be.length-1;if(Zt&&yt===ur)return Be.pop(),Be;for(var _r=new Array(ur),nn=0,Sn=0;Sn<ur;Sn++)Sn===yt&&(nn=1),_r[Sn]=Be[Sn+nn];return _r}var Lr=f/4,kr=f/2,Rr=f/4;n(an,mt);function an(Be){var yt=vn();if(Be==null)return yt;if(Zr(Be))return Be;var Zt=l(Be),ur=Zt.size;return ur===0?yt:(nr(ur),ur>0&&ur<f?Br(0,ur,d,null,new An(Zt.toArray())):yt.withMutations(function(_r){_r.setSize(ur),Zt.forEach(function(nn,Sn){return _r.set(Sn,nn)})}))}an.of=function(){return this(arguments)},an.prototype.toString=function(){return this.__toString("List [","]")},an.prototype.get=function(Be,yt){if(Be=M(this,Be),Be>=0&&Be<this.size){Be+=this._origin;var Zt=Kn(this,Be);return Zt&&Zt.array[Be&m]}return yt},an.prototype.set=function(Be,yt){return un(this,Be,yt)},an.prototype.remove=function(Be){return this.has(Be)?Be===0?this.shift():Be===this.size-1?this.pop():this.splice(Be,1):this},an.prototype.insert=function(Be,yt){return this.splice(Be,0,yt)},an.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=d,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):vn()},an.prototype.push=function(){var Be=arguments,yt=this.size;return this.withMutations(function(Zt){ia(Zt,0,yt+Be.length);for(var ur=0;ur<Be.length;ur++)Zt.set(yt+ur,Be[ur])})},an.prototype.pop=function(){return ia(this,0,-1)},an.prototype.unshift=function(){var Be=arguments;return this.withMutations(function(yt){ia(yt,-Be.length);for(var Zt=0;Zt<Be.length;Zt++)yt.set(Zt,Be[Zt])})},an.prototype.shift=function(){return ia(this,1)},an.prototype.merge=function(){return xa(this,void 0,arguments)},an.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return xa(this,Be,yt)},an.prototype.mergeDeep=function(){return xa(this,Yt,arguments)},an.prototype.mergeDeepWith=function(Be){var yt=r.call(arguments,1);return xa(this,Vt(Be),yt)},an.prototype.setSize=function(Be){return ia(this,0,Be)},an.prototype.slice=function(Be,yt){var Zt=this.size;return F(Be,yt,Zt)?this:ia(this,N(Be,Zt),k(yt,Zt))},an.prototype.__iterator=function(Be,yt){var Zt=0,ur=la(this,yt);return new H(function(){var _r=ur();return _r===sa?W():G(Be,Zt++,_r)})},an.prototype.__iterate=function(Be,yt){for(var Zt=0,ur=la(this,yt),_r;(_r=ur())!==sa&&Be(_r,Zt++,this)!==!1;);return Zt},an.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Br(this._origin,this._capacity,this._level,this._root,this._tail,Be,this.__hash):(this.__ownerID=Be,this)};function Zr(Be){return!!(Be&&Be[Jr])}an.isList=Zr;var Jr="@@__IMMUTABLE_LIST__@@",Pn=an.prototype;Pn[Jr]=!0,Pn[s]=Pn.remove,Pn.setIn=Mr.setIn,Pn.deleteIn=Pn.removeIn=Mr.removeIn,Pn.update=Mr.update,Pn.updateIn=Mr.updateIn,Pn.mergeIn=Mr.mergeIn,Pn.mergeDeepIn=Mr.mergeDeepIn,Pn.withMutations=Mr.withMutations,Pn.asMutable=Mr.asMutable,Pn.asImmutable=Mr.asImmutable,Pn.wasAltered=Mr.wasAltered;function An(Be,yt){this.array=Be,this.ownerID=yt}An.prototype.removeBefore=function(Be,yt,Zt){if(Zt===yt?1<<yt:this.array.length===0)return this;var ur=Zt>>>yt&m;if(ur>=this.array.length)return new An([],Be);var _r=ur===0,nn;if(yt>0){var Sn=this.array[ur];if(nn=Sn&&Sn.removeBefore(Be,yt-d,Zt),nn===Sn&&_r)return this}if(_r&&!nn)return this;var ea=Yn(this,Be);if(!_r)for(var Ta=0;Ta<ur;Ta++)ea.array[Ta]=void 0;return nn&&(ea.array[ur]=nn),ea},An.prototype.removeAfter=function(Be,yt,Zt){if(Zt===(yt?1<<yt:0)||this.array.length===0)return this;var ur=Zt-1>>>yt&m;if(ur>=this.array.length)return this;var _r;if(yt>0){var nn=this.array[ur];if(_r=nn&&nn.removeAfter(Be,yt-d,Zt),_r===nn&&ur===this.array.length-1)return this}var Sn=Yn(this,Be);return Sn.array.splice(ur+1),_r&&(Sn.array[ur]=_r),Sn};var sa={};function la(Be,yt){var Zt=Be._origin,ur=Be._capacity,_r=Xa(ur),nn=Be._tail;return Sn(Be._root,Be._level,0);function Sn(Ra,en,Xn){return en===0?ea(Ra,Xn):Ta(Ra,en,Xn)}function ea(Ra,en){var Xn=en===_r?nn&&nn.array:Ra&&Ra.array,Un=en>Zt?0:Zt-en,Ba=ur-en;return Ba>f&&(Ba=f),function(){if(Un===Ba)return sa;var ci=yt?--Ba:Un++;return Xn&&Xn[ci]}}function Ta(Ra,en,Xn){var Un,Ba=Ra&&Ra.array,ci=Xn>Zt?0:Zt-Xn>>en,Vi=(ur-Xn>>en)+1;return Vi>f&&(Vi=f),function(){do{if(Un){var Bo=Un();if(Bo!==sa)return Bo;Un=null}if(ci===Vi)return sa;var wo=yt?--Vi:ci++;Un=Sn(Ba&&Ba[wo],en-d,Xn+(wo<<en))}while(!0)}}}function Br(Be,yt,Zt,ur,_r,nn,Sn){var ea=Object.create(Pn);return ea.size=yt-Be,ea._origin=Be,ea._capacity=yt,ea._level=Zt,ea._root=ur,ea._tail=_r,ea.__ownerID=nn,ea.__hash=Sn,ea.__altered=!1,ea}var Wr;function vn(){return Wr||(Wr=Br(0,0,d))}function un(Be,yt,Zt){if(yt=M(Be,yt),yt!==yt)return Be;if(yt>=Be.size||yt<0)return Be.withMutations(function(Sn){yt<0?ia(Sn,yt).set(0,Zt):ia(Sn,0,yt+1).set(yt,Zt)});yt+=Be._origin;var ur=Be._tail,_r=Be._root,nn=A(R);return yt>=Xa(Be._capacity)?ur=Nn(ur,Be.__ownerID,0,yt,Zt,nn):_r=Nn(_r,Be.__ownerID,Be._level,yt,Zt,nn),nn.value?Be.__ownerID?(Be._root=_r,Be._tail=ur,Be.__hash=void 0,Be.__altered=!0,Be):Br(Be._origin,Be._capacity,Be._level,_r,ur):Be}function Nn(Be,yt,Zt,ur,_r,nn){var Sn=ur>>>Zt&m,ea=Be&&Sn<Be.array.length;if(!ea&&_r===void 0)return Be;var Ta;if(Zt>0){var Ra=Be&&Be.array[Sn],en=Nn(Ra,yt,Zt-d,ur,_r,nn);return en===Ra?Be:(Ta=Yn(Be,yt),Ta.array[Sn]=en,Ta)}return ea&&Be.array[Sn]===_r?Be:(D(nn),Ta=Yn(Be,yt),_r===void 0&&Sn===Ta.array.length-1?Ta.array.pop():Ta.array[Sn]=_r,Ta)}function Yn(Be,yt){return yt&&Be&&yt===Be.ownerID?Be:new An(Be?Be.array.slice():[],yt)}function Kn(Be,yt){if(yt>=Xa(Be._capacity))return Be._tail;if(yt<1<<Be._level+d){for(var Zt=Be._root,ur=Be._level;Zt&&ur>0;)Zt=Zt.array[yt>>>ur&m],ur-=d;return Zt}}function ia(Be,yt,Zt){yt!==void 0&&(yt=yt|0),Zt!==void 0&&(Zt=Zt|0);var ur=Be.__ownerID||new w,_r=Be._origin,nn=Be._capacity,Sn=_r+yt,ea=Zt===void 0?nn:Zt<0?nn+Zt:_r+Zt;if(Sn===_r&&ea===nn)return Be;if(Sn>=ea)return Be.clear();for(var Ta=Be._level,Ra=Be._root,en=0;Sn+en<0;)Ra=new An(Ra&&Ra.array.length?[void 0,Ra]:[],ur),Ta+=d,en+=1<<Ta;en&&(Sn+=en,_r+=en,ea+=en,nn+=en);for(var Xn=Xa(nn),Un=Xa(ea);Un>=1<<Ta+d;)Ra=new An(Ra&&Ra.array.length?[Ra]:[],ur),Ta+=d;var Ba=Be._tail,ci=Un<Xn?Kn(Be,ea-1):Un>Xn?new An([],ur):Ba;if(Ba&&Un>Xn&&Sn<nn&&Ba.array.length){Ra=Yn(Ra,ur);for(var Vi=Ra,Bo=Ta;Bo>d;Bo-=d){var wo=Xn>>>Bo&m;Vi=Vi.array[wo]=Yn(Vi.array[wo],ur)}Vi.array[Xn>>>d&m]=Ba}if(ea<nn&&(ci=ci&&ci.removeAfter(ur,0,ea)),Sn>=Un)Sn-=Un,ea-=Un,Ta=d,Ra=null,ci=ci&&ci.removeBefore(ur,0,Sn);else if(Sn>_r||Un<Xn){for(en=0;Ra;){var Ou=Sn>>>Ta&m;if(Ou!==Un>>>Ta&m)break;Ou&&(en+=(1<<Ta)*Ou),Ta-=d,Ra=Ra.array[Ou]}Ra&&Sn>_r&&(Ra=Ra.removeBefore(ur,Ta,Sn-en)),Ra&&Un<Xn&&(Ra=Ra.removeAfter(ur,Ta,Un-en)),en&&(Sn-=en,ea-=en)}return Be.__ownerID?(Be.size=ea-Sn,Be._origin=Sn,Be._capacity=ea,Be._level=Ta,Be._root=Ra,Be._tail=ci,Be.__hash=void 0,Be.__altered=!0,Be):Br(Sn,ea,Ta,Ra,ci)}function xa(Be,yt,Zt){for(var ur=[],_r=0,nn=0;nn<Zt.length;nn++){var Sn=Zt[nn],ea=l(Sn);ea.size>_r&&(_r=ea.size),a(Sn)||(ea=ea.map(function(Ta){return Ce(Ta)})),ur.push(ea)}return _r>Be.size&&(Be=Be.setSize(_r)),or(Be,yt,ur)}function Xa(Be){return Be<f?0:Be-1>>>d<<d}n($a,Rt);function $a(Be){return Be==null?Fr():hi(Be)?Be:Fr().withMutations(function(yt){var Zt=v(Be);nr(Zt.size),Zt.forEach(function(ur,_r){return yt.set(_r,ur)})})}$a.of=function(){return this(arguments)},$a.prototype.toString=function(){return this.__toString("OrderedMap {","}")},$a.prototype.get=function(Be,yt){var Zt=this._map.get(Be);return Zt!==void 0?this._list.get(Zt)[1]:yt},$a.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Fr()},$a.prototype.set=function(Be,yt){return bn(this,Be,yt)},$a.prototype.remove=function(Be){return bn(this,Be,E)},$a.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},$a.prototype.__iterate=function(Be,yt){var Zt=this;return this._list.__iterate(function(ur){return ur&&Be(ur[1],ur[0],Zt)},yt)},$a.prototype.__iterator=function(Be,yt){return this._list.fromEntrySeq().__iterator(Be,yt)},$a.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map.__ensureOwner(Be),Zt=this._list.__ensureOwner(Be);return Be?oi(yt,Zt,Be,this.__hash):(this.__ownerID=Be,this._map=yt,this._list=Zt,this)};function hi(Be){return zt(Be)&&_(Be)}$a.isOrderedMap=hi,$a.prototype[c]=!0,$a.prototype[s]=$a.prototype.remove;function oi(Be,yt,Zt,ur){var _r=Object.create($a.prototype);return _r.size=Be?Be.size:0,_r._map=Be,_r._list=yt,_r.__ownerID=Zt,_r.__hash=ur,_r}var Ja;function Fr(){return Ja||(Ja=oi(Ft(),vn()))}function bn(Be,yt,Zt){var ur=Be._map,_r=Be._list,nn=ur.get(yt),Sn=nn!==void 0,ea,Ta;if(Zt===E){if(!Sn)return Be;_r.size>=f&&_r.size>=ur.size*2?(Ta=_r.filter(function(Ra,en){return Ra!==void 0&&nn!==en}),ea=Ta.toKeyedSeq().map(function(Ra){return Ra[0]}).flip().toMap(),Be.__ownerID&&(ea.__ownerID=Ta.__ownerID=Be.__ownerID)):(ea=ur.remove(yt),Ta=nn===_r.size-1?_r.pop():_r.set(nn,void 0))}else if(Sn){if(Zt===_r.get(nn)[1])return Be;ea=ur,Ta=_r.set(nn,[yt,Zt])}else ea=ur.set(yt,_r.size),Ta=_r.set(_r.size,[yt,Zt]);return Be.__ownerID?(Be.size=ea.size,Be._map=ea,Be._list=Ta,Be.__hash=void 0,Be):oi(ea,Ta)}n(fn,he);function fn(Be,yt){this._iter=Be,this._useKeys=yt,this.size=Be.size}fn.prototype.get=function(Be,yt){return this._iter.get(Be,yt)},fn.prototype.has=function(Be){return this._iter.has(Be)},fn.prototype.valueSeq=function(){return this._iter.valueSeq()},fn.prototype.reverse=function(){var Be=this,yt=Ha(this,!0);return this._useKeys||(yt.valueSeq=function(){return Be._iter.toSeq().reverse()}),yt},fn.prototype.map=function(Be,yt){var Zt=this,ur=wa(this,Be,yt);return this._useKeys||(ur.valueSeq=function(){return Zt._iter.toSeq().map(Be,yt)}),ur},fn.prototype.__iterate=function(Be,yt){var Zt=this,ur;return this._iter.__iterate(this._useKeys?function(_r,nn){return Be(_r,nn,Zt)}:(ur=yt?aa(this):0,function(_r){return Be(_r,yt?--ur:ur++,Zt)}),yt)},fn.prototype.__iterator=function(Be,yt){if(this._useKeys)return this._iter.__iterator(Be,yt);var Zt=this._iter.__iterator(P,yt),ur=yt?aa(this):0;return new H(function(){var _r=Zt.next();return _r.done?_r:G(Be,yt?--ur:ur++,_r.value,_r)})},fn.prototype[c]=!0,n(Wn,q);function Wn(Be){this._iter=Be,this.size=Be.size}Wn.prototype.includes=function(Be){return this._iter.includes(Be)},Wn.prototype.__iterate=function(Be,yt){var Zt=this,ur=0;return this._iter.__iterate(function(_r){return Be(_r,ur++,Zt)},yt)},Wn.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt),ur=0;return new H(function(){var _r=Zt.next();return _r.done?_r:G(Be,ur++,_r.value,_r)})},n(Ca,J);function Ca(Be){this._iter=Be,this.size=Be.size}Ca.prototype.has=function(Be){return this._iter.includes(Be)},Ca.prototype.__iterate=function(Be,yt){var Zt=this;return this._iter.__iterate(function(ur){return Be(ur,ur,Zt)},yt)},Ca.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt);return new H(function(){var ur=Zt.next();return ur.done?ur:G(Be,ur.value,ur.value,ur)})},n(oa,he);function oa(Be){this._iter=Be,this.size=Be.size}oa.prototype.entrySeq=function(){return this._iter.toSeq()},oa.prototype.__iterate=function(Be,yt){var Zt=this;return this._iter.__iterate(function(ur){if(ur){da(ur);var _r=a(ur);return Be(_r?ur.get(1):ur[1],_r?ur.get(0):ur[0],Zt)}},yt)},oa.prototype.__iterator=function(Be,yt){var Zt=this._iter.__iterator(P,yt);return new H(function(){for(;;){var ur=Zt.next();if(ur.done)return ur;var _r=ur.value;if(_r){da(_r);var nn=a(_r);return G(Be,nn?_r.get(0):_r[0],nn?_r.get(1):_r[1],ur)}}})},Wn.prototype.cacheResult=fn.prototype.cacheResult=Ca.prototype.cacheResult=oa.prototype.cacheResult=ri;function ua(Be){var yt=ba(Be);return yt._iter=Be,yt.size=Be.size,yt.flip=function(){return Be},yt.reverse=function(){var Zt=Be.reverse.apply(this);return Zt.flip=function(){return Be.reverse()},Zt},yt.has=function(Zt){return Be.includes(Zt)},yt.includes=function(Zt){return Be.has(Zt)},yt.cacheResult=ri,yt.__iterateUncached=function(Zt,ur){var _r=this;return Be.__iterate(function(nn,Sn){return Zt(Sn,nn,_r)!==!1},ur)},yt.__iteratorUncached=function(Zt,ur){if(Zt===L){var _r=Be.__iterator(Zt,ur);return new H(function(){var nn=_r.next();if(!nn.done){var Sn=nn.value[0];nn.value[0]=nn.value[1],nn.value[1]=Sn}return nn})}return Be.__iterator(Zt===P?T:P,ur)},yt}function wa(Be,yt,Zt){var ur=ba(Be);return ur.size=Be.size,ur.has=function(_r){return Be.has(_r)},ur.get=function(_r,nn){var Sn=Be.get(_r,E);return Sn===E?nn:yt.call(Zt,Sn,_r,Be)},ur.__iterateUncached=function(_r,nn){var Sn=this;return Be.__iterate(function(ea,Ta,Ra){return _r(yt.call(Zt,ea,Ta,Ra),Ta,Sn)!==!1},nn)},ur.__iteratorUncached=function(_r,nn){var Sn=Be.__iterator(L,nn);return new H(function(){var ea=Sn.next();if(ea.done)return ea;var Ta=ea.value,Ra=Ta[0];return G(_r,Ra,yt.call(Zt,Ta[1],Ra,Be),ea)})},ur}function Ha(Be,yt){var Zt=ba(Be);return Zt._iter=Be,Zt.size=Be.size,Zt.reverse=function(){return Be},Be.flip&&(Zt.flip=function(){var ur=ua(Be);return ur.reverse=function(){return Be.flip()},ur}),Zt.get=function(ur,_r){return Be.get(yt?ur:-1-ur,_r)},Zt.has=function(ur){return Be.has(yt?ur:-1-ur)},Zt.includes=function(ur){return Be.includes(ur)},Zt.cacheResult=ri,Zt.__iterate=function(ur,_r){var nn=this;return Be.__iterate(function(Sn,ea){return ur(Sn,ea,nn)},!_r)},Zt.__iterator=function(ur,_r){return Be.__iterator(ur,!_r)},Zt}function pi(Be,yt,Zt,ur){var _r=ba(Be);return ur&&(_r.has=function(nn){var Sn=Be.get(nn,E);return Sn!==E&&!!yt.call(Zt,Sn,nn,Be)},_r.get=function(nn,Sn){var ea=Be.get(nn,E);return ea!==E&&yt.call(Zt,ea,nn,Be)?ea:Sn}),_r.__iterateUncached=function(nn,Sn){var ea=this,Ta=0;return Be.__iterate(function(Ra,en,Xn){if(yt.call(Zt,Ra,en,Xn))return Ta++,nn(Ra,ur?en:Ta-1,ea)},Sn),Ta},_r.__iteratorUncached=function(nn,Sn){var ea=Be.__iterator(L,Sn),Ta=0;return new H(function(){for(;;){var Ra=ea.next();if(Ra.done)return Ra;var en=Ra.value,Xn=en[0],Un=en[1];if(yt.call(Zt,Un,Xn,Be))return G(nn,ur?Xn:Ta++,Un,Ra)}})},_r}function $i(Be,yt,Zt){var ur=Rt().asMutable();return Be.__iterate(function(_r,nn){ur.update(yt.call(Zt,_r,nn,Be),0,function(Sn){return Sn+1})}),ur.asImmutable()}function zr(Be,yt,Zt){var ur=u(Be),_r=(_(Be)?$a():Rt()).asMutable();Be.__iterate(function(Sn,ea){_r.update(yt.call(Zt,Sn,ea,Be),function(Ta){return Ta=Ta||[],Ta.push(ur?[ea,Sn]:Sn),Ta})});var nn=Aa(Be);return _r.map(function(Sn){return Fn(Be,nn(Sn))})}function sn(Be,yt,Zt,ur){var _r=Be.size;if(yt!==void 0&&(yt=yt|0),Zt!==void 0&&(Zt=Zt|0),F(yt,Zt,_r))return Be;var nn=N(yt,_r),Sn=k(Zt,_r);if(nn!==nn||Sn!==Sn)return sn(Be.toSeq().cacheResult(),yt,Zt,ur);var ea=Sn-nn,Ta;ea===ea&&(Ta=ea<0?0:ea);var Ra=ba(Be);return Ra.size=Ta===0?Ta:Be.size&&Ta||void 0,!ur&&Q(Be)&&Ta>=0&&(Ra.get=function(en,Xn){return en=M(this,en),en>=0&&en<Ta?Be.get(en+nn,Xn):Xn}),Ra.__iterateUncached=function(en,Xn){var Un=this;if(Ta===0)return 0;if(Xn)return this.cacheResult().__iterate(en,Xn);var Ba=0,ci=!0,Vi=0;return Be.__iterate(function(Bo,wo){if(!(ci&&(ci=Ba++<nn)))return Vi++,en(Bo,ur?wo:Vi-1,Un)!==!1&&Vi!==Ta}),Vi},Ra.__iteratorUncached=function(en,Xn){if(Ta!==0&&Xn)return this.cacheResult().__iterator(en,Xn);var Un=Ta!==0&&Be.__iterator(en,Xn),Ba=0,ci=0;return new H(function(){for(;Ba++<nn;)Un.next();if(++ci>Ta)return W();var Vi=Un.next();return ur||en===P?Vi:en===T?G(en,ci-1,void 0,Vi):G(en,ci-1,Vi.value[1],Vi)})},Ra}function $r(Be,yt,Zt){var ur=ba(Be);return ur.__iterateUncached=function(_r,nn){var Sn=this;if(nn)return this.cacheResult().__iterate(_r,nn);var ea=0;return Be.__iterate(function(Ta,Ra,en){return yt.call(Zt,Ta,Ra,en)&&++ea&&_r(Ta,Ra,Sn)}),ea},ur.__iteratorUncached=function(_r,nn){var Sn=this;if(nn)return this.cacheResult().__iterator(_r,nn);var ea=Be.__iterator(L,nn),Ta=!0;return new H(function(){if(!Ta)return W();var Ra=ea.next();if(Ra.done)return Ra;var en=Ra.value,Xn=en[0],Un=en[1];return yt.call(Zt,Un,Xn,Sn)?_r===L?Ra:G(_r,Xn,Un,Ra):(Ta=!1,W())})},ur}function ln(Be,yt,Zt,ur){var _r=ba(Be);return _r.__iterateUncached=function(nn,Sn){var ea=this;if(Sn)return this.cacheResult().__iterate(nn,Sn);var Ta=!0,Ra=0;return Be.__iterate(function(en,Xn,Un){if(!(Ta&&(Ta=yt.call(Zt,en,Xn,Un))))return Ra++,nn(en,ur?Xn:Ra-1,ea)}),Ra},_r.__iteratorUncached=function(nn,Sn){var ea=this;if(Sn)return this.cacheResult().__iterator(nn,Sn);var Ta=Be.__iterator(L,Sn),Ra=!0,en=0;return new H(function(){var Xn,Un,Ba;do{if(Xn=Ta.next(),Xn.done)return ur||nn===P?Xn:nn===T?G(nn,en++,void 0,Xn):G(nn,en++,Xn.value[1],Xn);var ci=Xn.value;Un=ci[0],Ba=ci[1],Ra&&(Ra=yt.call(Zt,Ba,Un,ea))}while(Ra);return nn===L?Xn:G(nn,Un,Ba,Xn)})},_r}function qn(Be,yt){var Zt=u(Be),ur=[Be].concat(yt).map(function(Sn){return a(Sn)?Zt&&(Sn=v(Sn)):Sn=Zt?ce(Sn):ge(Array.isArray(Sn)?Sn:[Sn]),Sn}).filter(function(Sn){return Sn.size!==0});if(ur.length===0)return Be;if(ur.length===1){var _r=ur[0];if(_r===Be||Zt&&u(_r)||g(Be)&&g(_r))return _r}var nn=new Z(ur);return Zt?nn=nn.toKeyedSeq():g(Be)||(nn=nn.toSetSeq()),nn=nn.flatten(!0),nn.size=ur.reduce(function(Sn,ea){if(Sn!==void 0){var Ta=ea.size;if(Ta!==void 0)return Sn+Ta}},0),nn}function ca(Be,yt,Zt){var ur=ba(Be);return ur.__iterateUncached=function(_r,nn){var Sn=0,ea=!1;function Ta(Ra,en){var Xn=this;Ra.__iterate(function(Un,Ba){return(!yt||en<yt)&&a(Un)?Ta(Un,en+1):_r(Un,Zt?Ba:Sn++,Xn)===!1&&(ea=!0),!ea},nn)}return Ta(Be,0),Sn},ur.__iteratorUncached=function(_r,nn){var Sn=Be.__iterator(_r,nn),ea=[],Ta=0;return new H(function(){for(;Sn;){var Ra=Sn.next();if(Ra.done!==!1){Sn=ea.pop();continue}var en=Ra.value;if(_r===L&&(en=en[1]),(!yt||ea.length<yt)&&a(en))ea.push(Sn),Sn=en.__iterator(_r,nn);else return Zt?Ra:G(_r,Ta++,en,Ra)}return W()})},ur}function Gn(Be,yt,Zt){var ur=Aa(Be);return Be.toSeq().map(function(_r,nn){return ur(yt.call(Zt,_r,nn,Be))}).flatten(!0)}function Bn(Be,yt){var Zt=ba(Be);return Zt.size=Be.size&&Be.size*2-1,Zt.__iterateUncached=function(ur,_r){var nn=this,Sn=0;return Be.__iterate(function(ea,Ta){return(!Sn||ur(yt,Sn++,nn)!==!1)&&ur(ea,Sn++,nn)!==!1},_r),Sn},Zt.__iteratorUncached=function(ur,_r){var nn=Be.__iterator(P,_r),Sn=0,ea;return new H(function(){return(!ea||Sn%2)&&(ea=nn.next(),ea.done)?ea:Sn%2?G(ur,Sn++,yt):G(ur,Sn++,ea.value,ea)})},Zt}function Vr(Be,yt,Zt){yt||(yt=qa);var ur=u(Be),_r=0,nn=Be.toSeq().map(function(Sn,ea){return[ea,Sn,_r++,Zt?Zt(Sn,ea,Be):Sn]}).toArray();return nn.sort(function(Sn,ea){return yt(Sn[3],ea[3])||Sn[2]-ea[2]}).forEach(ur?function(Sn,ea){nn[ea].length=2}:function(Sn,ea){nn[ea]=Sn[1]}),ur?he(nn):g(Be)?q(nn):J(nn)}function mn(Be,yt,Zt){if(yt||(yt=qa),Zt){var ur=Be.toSeq().map(function(_r,nn){return[_r,Zt(_r,nn,Be)]}).reduce(function(_r,nn){return pn(yt,_r[1],nn[1])?nn:_r});return ur&&ur[0]}else return Be.reduce(function(_r,nn){return pn(yt,_r,nn)?nn:_r})}function pn(Be,yt,Zt){var ur=Be(Zt,yt);return ur===0&&Zt!==yt&&(Zt==null||Zt!==Zt)||ur>0}function En(Be,yt,Zt){var ur=ba(Be);return ur.size=new Z(Zt).map(function(_r){return _r.size}).min(),ur.__iterate=function(_r,nn){for(var Sn=this.__iterator(P,nn),ea,Ta=0;!(ea=Sn.next()).done&&_r(ea.value,Ta++,this)!==!1;);return Ta},ur.__iteratorUncached=function(_r,nn){var Sn=Zt.map(function(Ra){return Ra=i(Ra),X(nn?Ra.reverse():Ra)}),ea=0,Ta=!1;return new H(function(){var Ra;return Ta||(Ra=Sn.map(function(en){return en.next()}),Ta=Ra.some(function(en){return en.done})),Ta?W():G(_r,ea++,yt.apply(null,Ra.map(function(en){return en.value})))})},ur}function Fn(Be,yt){return Q(Be)?yt:Be.constructor(yt)}function da(Be){if(Be!==Object(Be))throw new TypeError("Expected [K, V] tuple: "+Be)}function aa(Be){return nr(Be.size),C(Be)}function Aa(Be){return u(Be)?v:g(Be)?l:h}function ba(Be){return Object.create((u(Be)?he:g(Be)?q:J).prototype)}function ri(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):oe.prototype.cacheResult.call(this)}function qa(Be,yt){return Be>yt?1:Be<yt?-1:0}function ui(Be){var yt=X(Be);if(!yt){if(!ae(Be))throw new TypeError("Expected iterable or array-like: "+Be);yt=X(i(Be))}return yt}n(Qa,ht);function Qa(Be,yt){var Zt,ur=function(Sn){if(Sn instanceof ur)return Sn;if(!(this instanceof ur))return new ur(Sn);if(!Zt){Zt=!0;var ea=Object.keys(Be);Bl(_r,ea),_r.size=ea.length,_r._name=yt,_r._keys=ea,_r._defaultValues=Be}this._map=Rt(Sn)},_r=ur.prototype=Object.create(so);return _r.constructor=ur,ur}Qa.prototype.toString=function(){return this.__toString(yu(this)+" {","}")},Qa.prototype.has=function(Be){return this._defaultValues.hasOwnProperty(Be)},Qa.prototype.get=function(Be,yt){if(!this.has(Be))return yt;var Zt=this._defaultValues[Be];return this._map?this._map.get(Be,Zt):Zt},Qa.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var Be=this.constructor;return Be._empty||(Be._empty=To(this,Ft()))},Qa.prototype.set=function(Be,yt){if(!this.has(Be))throw new Error('Cannot set unknown key "'+Be+'" on '+yu(this));var Zt=this._map&&this._map.set(Be,yt);return this.__ownerID||Zt===this._map?this:To(this,Zt)},Qa.prototype.remove=function(Be){if(!this.has(Be))return this;var yt=this._map&&this._map.remove(Be);return this.__ownerID||yt===this._map?this:To(this,yt)},Qa.prototype.wasAltered=function(){return this._map.wasAltered()},Qa.prototype.__iterator=function(Be,yt){var Zt=this;return v(this._defaultValues).map(function(ur,_r){return Zt.get(_r)}).__iterator(Be,yt)},Qa.prototype.__iterate=function(Be,yt){var Zt=this;return v(this._defaultValues).map(function(ur,_r){return Zt.get(_r)}).__iterate(Be,yt)},Qa.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map&&this._map.__ensureOwner(Be);return Be?To(this,yt,Be):(this.__ownerID=Be,this._map=yt,this)};var so=Qa.prototype;so[s]=so.remove,so.deleteIn=so.removeIn=Mr.removeIn,so.merge=Mr.merge,so.mergeWith=Mr.mergeWith,so.mergeIn=Mr.mergeIn,so.mergeDeep=Mr.mergeDeep,so.mergeDeepWith=Mr.mergeDeepWith,so.mergeDeepIn=Mr.mergeDeepIn,so.setIn=Mr.setIn,so.update=Mr.update,so.updateIn=Mr.updateIn,so.withMutations=Mr.withMutations,so.asMutable=Mr.asMutable,so.asImmutable=Mr.asImmutable;function To(Be,yt,Zt){var ur=Object.create(Object.getPrototypeOf(Be));return ur._map=yt,ur.__ownerID=Zt,ur}function yu(Be){return Be._name||Be.constructor.name||"Record"}function Bl(Be,yt){try{yt.forEach(Tl.bind(void 0,Be))}catch{}}function Tl(Be,yt){Object.defineProperty(Be,yt,{get:function(){return this.get(yt)},set:function(Zt){lt(this.__ownerID,"Cannot set on an immutable record."),this.set(yt,Zt)}})}n(fs,_t);function fs(Be){return Be==null?ml():Wd(Be)&&!_(Be)?Be:ml().withMutations(function(yt){var Zt=h(Be);nr(Zt.size),Zt.forEach(function(ur){return yt.add(ur)})})}fs.of=function(){return this(arguments)},fs.fromKeys=function(Be){return this(v(Be).keySeq())},fs.prototype.toString=function(){return this.__toString("Set {","}")},fs.prototype.has=function(Be){return this._map.has(Be)},fs.prototype.add=function(Be){return Gu(this,this._map.set(Be,!0))},fs.prototype.remove=function(Be){return Gu(this,this._map.remove(Be))},fs.prototype.clear=function(){return Gu(this,this._map.clear())},fs.prototype.union=function(){var Be=r.call(arguments,0);return Be=Be.filter(function(yt){return yt.size!==0}),Be.length===0?this:this.size===0&&!this.__ownerID&&Be.length===1?this.constructor(Be[0]):this.withMutations(function(yt){for(var Zt=0;Zt<Be.length;Zt++)h(Be[Zt]).forEach(function(ur){return yt.add(ur)})})},fs.prototype.intersect=function(){var Be=r.call(arguments,0);if(Be.length===0)return this;Be=Be.map(function(Zt){return h(Zt)});var yt=this;return this.withMutations(function(Zt){yt.forEach(function(ur){Be.every(function(_r){return _r.includes(ur)})||Zt.remove(ur)})})},fs.prototype.subtract=function(){var Be=r.call(arguments,0);if(Be.length===0)return this;Be=Be.map(function(Zt){return h(Zt)});var yt=this;return this.withMutations(function(Zt){yt.forEach(function(ur){Be.some(function(_r){return _r.includes(ur)})&&Zt.remove(ur)})})},fs.prototype.merge=function(){return this.union.apply(this,arguments)},fs.prototype.mergeWith=function(Be){var yt=r.call(arguments,1);return this.union.apply(this,yt)},fs.prototype.sort=function(Be){return wl(Vr(this,Be))},fs.prototype.sortBy=function(Be,yt){return wl(Vr(this,yt,Be))},fs.prototype.wasAltered=function(){return this._map.wasAltered()},fs.prototype.__iterate=function(Be,yt){var Zt=this;return this._map.__iterate(function(ur,_r){return Be(_r,_r,Zt)},yt)},fs.prototype.__iterator=function(Be,yt){return this._map.map(function(Zt,ur){return ur}).__iterator(Be,yt)},fs.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var yt=this._map.__ensureOwner(Be);return Be?this.__make(yt,Be):(this.__ownerID=Be,this._map=yt,this)};function Wd(Be){return!!(Be&&Be[Wh])}fs.isSet=Wd;var Wh="@@__IMMUTABLE_SET__@@",co=fs.prototype;co[Wh]=!0,co[s]=co.remove,co.mergeDeep=co.merge,co.mergeDeepWith=co.mergeWith,co.withMutations=Mr.withMutations,co.asMutable=Mr.asMutable,co.asImmutable=Mr.asImmutable,co.__empty=ml,co.__make=jh;function Gu(Be,yt){return Be.__ownerID?(Be.size=yt.size,Be._map=yt,Be):yt===Be._map?Be:yt.size===0?Be.__empty():Be.__make(yt)}function jh(Be,yt){var Zt=Object.create(co);return Zt.size=Be?Be.size:0,Zt._map=Be,Zt.__ownerID=yt,Zt}var rl;function ml(){return rl||(rl=jh(Ft()))}n(wl,fs);function wl(Be){return Be==null?Bs():Bf(Be)?Be:Bs().withMutations(function(yt){var Zt=h(Be);nr(Zt.size),Zt.forEach(function(ur){return yt.add(ur)})})}wl.of=function(){return this(arguments)},wl.fromKeys=function(Be){return this(v(Be).keySeq())},wl.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Bf(Be){return Wd(Be)&&_(Be)}wl.isOrderedSet=Bf;var bs=wl.prototype;bs[c]=!0,bs.__empty=Bs,bs.__make=zf;function zf(Be,yt){var Zt=Object.create(bs);return Zt.size=Be?Be.size:0,Zt._map=Be,Zt.__ownerID=yt,Zt}var Is;function Bs(){return Is||(Is=zf(Fr()))}n(As,mt);function As(Be){return Be==null?Kh():fl(Be)?Be:Kh().unshiftAll(Be)}As.of=function(){return this(arguments)},As.prototype.toString=function(){return this.__toString("Stack [","]")},As.prototype.get=function(Be,yt){var Zt=this._head;for(Be=M(this,Be);Zt&&Be--;)Zt=Zt.next;return Zt?Zt.value:yt},As.prototype.peek=function(){return this._head&&this._head.value},As.prototype.push=function(){if(arguments.length===0)return this;for(var Be=this.size+arguments.length,yt=this._head,Zt=arguments.length-1;Zt>=0;Zt--)yt={value:arguments[Zt],next:yt};return this.__ownerID?(this.size=Be,this._head=yt,this.__hash=void 0,this.__altered=!0,this):Cc(Be,yt)},As.prototype.pushAll=function(Be){if(Be=l(Be),Be.size===0)return this;nr(Be.size);var yt=this.size,Zt=this._head;return Be.reverse().forEach(function(ur){yt++,Zt={value:ur,next:Zt}}),this.__ownerID?(this.size=yt,this._head=Zt,this.__hash=void 0,this.__altered=!0,this):Cc(yt,Zt)},As.prototype.pop=function(){return this.slice(1)},As.prototype.unshift=function(){return this.push.apply(this,arguments)},As.prototype.unshiftAll=function(Be){return this.pushAll(Be)},As.prototype.shift=function(){return this.pop.apply(this,arguments)},As.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kh()},As.prototype.slice=function(Be,yt){if(F(Be,yt,this.size))return this;var Zt=N(Be,this.size),ur=k(yt,this.size);if(ur!==this.size)return mt.prototype.slice.call(this,Be,yt);for(var _r=this.size-Zt,nn=this._head;Zt--;)nn=nn.next;return this.__ownerID?(this.size=_r,this._head=nn,this.__hash=void 0,this.__altered=!0,this):Cc(_r,nn)},As.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Cc(this.size,this._head,Be,this.__hash):(this.__ownerID=Be,this.__altered=!1,this)},As.prototype.__iterate=function(Be,yt){if(yt)return this.reverse().__iterate(Be);for(var Zt=0,ur=this._head;ur&&Be(ur.value,Zt++,this)!==!1;)ur=ur.next;return Zt},As.prototype.__iterator=function(Be,yt){if(yt)return this.reverse().__iterator(Be);var Zt=0,ur=this._head;return new H(function(){if(ur){var _r=ur.value;return ur=ur.next,G(Be,Zt++,_r)}return W()})};function fl(Be){return!!(Be&&Be[is])}As.isStack=fl;var is="@@__IMMUTABLE_STACK__@@",nl=As.prototype;nl[is]=!0,nl.withMutations=Mr.withMutations,nl.asMutable=Mr.asMutable,nl.asImmutable=Mr.asImmutable,nl.wasAltered=Mr.wasAltered;function Cc(Be,yt,Zt,ur){var _r=Object.create(nl);return _r.size=Be,_r._head=yt,_r.__ownerID=Zt,_r.__hash=ur,_r.__altered=!1,_r}var zl;function Kh(){return zl||(zl=Cc(0))}function dl(Be,yt){var Zt=function(ur){Be.prototype[ur]=yt[ur]};return Object.keys(yt).forEach(Zt),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(yt).forEach(Zt),Be}i.Iterator=H,dl(i,{toArray:function(){nr(this.size);var Be=new Array(this.size||0);return this.valueSeq().__iterate(function(yt,Zt){Be[Zt]=yt}),Be},toIndexedSeq:function(){return new Wn(this)},toJS:function(){return this.toSeq().map(function(Be){return Be&&typeof Be.toJS=="function"?Be.toJS():Be}).__toJS()},toJSON:function(){return this.toSeq().map(function(Be){return Be&&typeof Be.toJSON=="function"?Be.toJSON():Be}).__toJS()},toKeyedSeq:function(){return new fn(this,!0)},toMap:function(){return Rt(this.toKeyedSeq())},toObject:function(){nr(this.size);var Be={};return this.__iterate(function(yt,Zt){Be[Zt]=yt}),Be},toOrderedMap:function(){return $a(this.toKeyedSeq())},toOrderedSet:function(){return wl(u(this)?this.valueSeq():this)},toSet:function(){return fs(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Ca(this)},toSeq:function(){return g(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return As(u(this)?this.valueSeq():this)},toList:function(){return an(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(Be,yt){return this.size===0?Be+yt:Be+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+yt},concat:function(){var Be=r.call(arguments,0);return Fn(this,qn(this,Be))},includes:function(Be){return this.some(function(yt){return Re(yt,Be)})},entries:function(){return this.__iterator(L)},every:function(Be,yt){nr(this.size);var Zt=!0;return this.__iterate(function(ur,_r,nn){if(!Be.call(yt,ur,_r,nn))return Zt=!1,!1}),Zt},filter:function(Be,yt){return Fn(this,pi(this,Be,yt,!0))},find:function(Be,yt,Zt){var ur=this.findEntry(Be,yt);return ur?ur[1]:Zt},findEntry:function(Be,yt){var Zt;return this.__iterate(function(ur,_r,nn){if(Be.call(yt,ur,_r,nn))return Zt=[_r,ur],!1}),Zt},findLastEntry:function(Be,yt){return this.toSeq().reverse().findEntry(Be,yt)},forEach:function(Be,yt){return nr(this.size),this.__iterate(yt?Be.bind(yt):Be)},join:function(Be){nr(this.size),Be=Be!==void 0?""+Be:",";var yt="",Zt=!0;return this.__iterate(function(ur){Zt?Zt=!1:yt+=Be,yt+=ur!=null?ur.toString():""}),yt},keys:function(){return this.__iterator(T)},map:function(Be,yt){return Fn(this,wa(this,Be,yt))},reduce:function(Be,yt,Zt){nr(this.size);var ur,_r;return arguments.length<2?_r=!0:ur=yt,this.__iterate(function(nn,Sn,ea){_r?(_r=!1,ur=nn):ur=Be.call(Zt,ur,nn,Sn,ea)}),ur},reduceRight:function(Be,yt,Zt){var ur=this.toKeyedSeq().reverse();return ur.reduce.apply(ur,arguments)},reverse:function(){return Fn(this,Ha(this,!0))},slice:function(Be,yt){return Fn(this,sn(this,Be,yt,!0))},some:function(Be,yt){return!this.every(cc(Be),yt)},sort:function(Be){return Fn(this,Vr(this,Be))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(Be,yt){return C(Be?this.toSeq().filter(Be,yt):this)},countBy:function(Be,yt){return $i(this,Be,yt)},equals:function(Be){return Me(this,Be)},entrySeq:function(){var Be=this;if(Be._cache)return new Z(Be._cache);var yt=Be.toSeq().map(Rc).toIndexedSeq();return yt.fromEntrySeq=function(){return Be.toSeq()},yt},filterNot:function(Be,yt){return this.filter(cc(Be),yt)},findLast:function(Be,yt,Zt){return this.toKeyedSeq().reverse().find(Be,yt,Zt)},first:function(){return this.find(I)},flatMap:function(Be,yt){return Fn(this,Gn(this,Be,yt))},flatten:function(Be){return Fn(this,ca(this,Be,!0))},fromEntrySeq:function(){return new oa(this)},get:function(Be,yt){return this.find(function(Zt,ur){return Re(ur,Be)},void 0,yt)},getIn:function(Be,yt){for(var Zt=this,ur=ui(Be),_r;!(_r=ur.next()).done;){var nn=_r.value;if(Zt=Zt&&Zt.get?Zt.get(nn,E):E,Zt===E)return yt}return Zt},groupBy:function(Be,yt){return zr(this,Be,yt)},has:function(Be){return this.get(Be,E)!==E},hasIn:function(Be){return this.getIn(Be,E)!==E},isSubset:function(Be){return Be=typeof Be.includes=="function"?Be:i(Be),this.every(function(yt){return Be.includes(yt)})},isSuperset:function(Be){return Be=typeof Be.isSubset=="function"?Be:i(Be),Be.isSubset(this)},keySeq:function(){return this.toSeq().map(df).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(Be){return mn(this,Be)},maxBy:function(Be,yt){return mn(this,yt,Be)},min:function(Be){return mn(this,Be?qp(Be):e0)},minBy:function(Be,yt){return mn(this,yt?qp(yt):e0,Be)},rest:function(){return this.slice(1)},skip:function(Be){return this.slice(Math.max(0,Be))},skipLast:function(Be){return Fn(this,this.toSeq().reverse().skip(Be).reverse())},skipWhile:function(Be,yt){return Fn(this,ln(this,Be,yt,!0))},skipUntil:function(Be,yt){return this.skipWhile(cc(Be),yt)},sortBy:function(Be,yt){return Fn(this,Vr(this,yt,Be))},take:function(Be){return this.slice(0,Math.max(0,Be))},takeLast:function(Be){return Fn(this,this.toSeq().reverse().take(Be).reverse())},takeWhile:function(Be,yt){return Fn(this,$r(this,Be,yt))},takeUntil:function(Be,yt){return this.takeWhile(cc(Be),yt)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hf(this))}});var $o=i.prototype;$o[x]=!0,$o[Y]=$o.values,$o.__toJS=$o.toArray,$o.__toStringMapper=pv,$o.inspect=$o.toSource=function(){return this.toString()},$o.chain=$o.flatMap,$o.contains=$o.includes,function(){try{Object.defineProperty($o,"length",{get:function(){if(!i.noLengthWarning){var Be;try{throw new Error}catch(yt){Be=yt.stack}if(Be.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+Be),this.size}}})}catch{}}(),dl(v,{flip:function(){return Fn(this,ua(this))},findKey:function(Be,yt){var Zt=this.findEntry(Be,yt);return Zt&&Zt[0]},findLastKey:function(Be,yt){return this.toSeq().reverse().findKey(Be,yt)},keyOf:function(Be){return this.findKey(function(yt){return Re(yt,Be)})},lastKeyOf:function(Be){return this.findLastKey(function(yt){return Re(yt,Be)})},mapEntries:function(Be,yt){var Zt=this,ur=0;return Fn(this,this.toSeq().map(function(_r,nn){return Be.call(yt,[nn,_r],ur++,Zt)}).fromEntrySeq())},mapKeys:function(Be,yt){var Zt=this;return Fn(this,this.toSeq().flip().map(function(ur,_r){return Be.call(yt,ur,_r,Zt)}).flip())}});var md=v.prototype;md[p]=!0,md[Y]=$o.entries,md.__toJS=$o.toObject,md.__toStringMapper=function(Be,yt){return JSON.stringify(yt)+": "+pv(Be)},dl(l,{toKeyedSeq:function(){return new fn(this,!1)},filter:function(Be,yt){return Fn(this,pi(this,Be,yt,!1))},findIndex:function(Be,yt){var Zt=this.findEntry(Be,yt);return Zt?Zt[0]:-1},indexOf:function(Be){var yt=this.toKeyedSeq().keyOf(Be);return yt===void 0?-1:yt},lastIndexOf:function(Be){var yt=this.toKeyedSeq().reverse().keyOf(Be);return yt===void 0?-1:yt},reverse:function(){return Fn(this,Ha(this,!1))},slice:function(Be,yt){return Fn(this,sn(this,Be,yt,!1))},splice:function(Be,yt){var Zt=arguments.length;if(yt=Math.max(yt|0,0),Zt===0||Zt===2&&!yt)return this;Be=N(Be,Be<0?this.count():this.size);var ur=this.slice(0,Be);return Fn(this,Zt===1?ur:ur.concat(S(arguments,2),this.slice(Be+yt)))},findLastIndex:function(Be,yt){var Zt=this.toKeyedSeq().findLastKey(Be,yt);return Zt===void 0?-1:Zt},first:function(){return this.get(0)},flatten:function(Be){return Fn(this,ca(this,Be,!1))},get:function(Be,yt){return Be=M(this,Be),Be<0||this.size===1/0||this.size!==void 0&&Be>this.size?yt:this.find(function(Zt,ur){return ur===Be},void 0,yt)},has:function(Be){return Be=M(this,Be),Be>=0&&(this.size!==void 0?this.size===1/0||Be<this.size:this.indexOf(Be)!==-1)},interpose:function(Be){return Fn(this,Bn(this,Be))},interleave:function(){var Be=[this].concat(S(arguments)),yt=En(this.toSeq(),q.of,Be),Zt=yt.flatten(!0);return yt.size&&(Zt.size=yt.size*Be.length),Fn(this,Zt)},last:function(){return this.get(-1)},skipWhile:function(Be,yt){return Fn(this,ln(this,Be,yt,!1))},zip:function(){var Be=[this].concat(S(arguments));return Fn(this,En(this,yd,Be))},zipWith:function(Be){var yt=S(arguments);return yt[0]=this,Fn(this,En(this,Be,yt))}}),l.prototype[b]=!0,l.prototype[c]=!0,dl(h,{get:function(Be,yt){return this.has(Be)?Be:yt},includes:function(Be){return this.has(Be)},keySeq:function(){return this.valueSeq()}}),h.prototype.has=$o.includes,dl(he,v.prototype),dl(q,l.prototype),dl(J,h.prototype),dl(ht,v.prototype),dl(mt,l.prototype),dl(_t,h.prototype);function df(Be,yt){return yt}function Rc(Be,yt){return[yt,Be]}function cc(Be){return function(){return!Be.apply(this,arguments)}}function qp(Be){return function(){return-Be.apply(this,arguments)}}function pv(Be){return typeof Be=="string"?JSON.stringify(Be):Be}function yd(){return S(arguments)}function e0(Be,yt){return Be<yt?1:Be>yt?-1:0}function hf(Be){if(Be.size===1/0)return 0;var yt=_(Be),Zt=u(Be),ur=yt?1:0,_r=Be.__iterate(Zt?yt?function(nn,Sn){ur=31*ur+Qh(He(nn),He(Sn))|0}:function(nn,Sn){ur=ur+Qh(He(nn),He(Sn))|0}:yt?function(nn){ur=31*ur+He(nn)|0}:function(nn){ur=ur+He(nn)|0});return Xh(_r,ur)}function Xh(Be,yt){return yt=Mt(yt,3432918353),yt=Mt(yt<<15|yt>>>-15,461845907),yt=Mt(yt<<13|yt>>>-13,5),yt=(yt+3864292196|0)^Be,yt=Mt(yt^yt>>>16,2246822507),yt=Mt(yt^yt>>>13,3266489909),yt=it(yt^yt>>>16),yt}function Qh(Be,yt){return Be^yt+2654435769+(Be<<6)+(Be>>2)|0}var mg={Iterable:i,Seq:oe,Collection:ct,Map:Rt,OrderedMap:$a,List:an,Stack:As,Set:fs,OrderedSet:wl,Record:Qa,Range:Je,Repeat:ze,is:Re,fromJS:Ce};return mg})})(bTe);var Ys=bTe.exports,WPt=Ys,jPt=WPt.OrderedMap,KPt={createFromArray:function(t){return jPt(t.map(function(r){return[r.getKey(),r]}))}},s4=KPt;function XPt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $K=Ys,HK=$K.Map,GK=$K.OrderedSet,QPt=$K.Record,_Te=GK(),xTe={style:_Te,entity:null},ZPt=QPt(xTe),VK=function(e){XPt(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(i){return this.getStyle().includes(i)},t.applyStyle=function(i,v){var l=i.set("style",i.getStyle().add(v));return t.create(l)},t.removeStyle=function(i,v){var l=i.set("style",i.getStyle().remove(v));return t.create(l)},t.applyEntity=function(i,v){var l=i.getEntity()===v?i:i.set("entity",v);return t.create(l)},t.create=function(i){if(!i)return YK;var v={style:_Te,entity:null},l=HK(v).merge(i),h=WK.get(l);if(h)return h;var a=new t(l);return WK=WK.set(l,a),a},t.fromJS=function(i){var v=i.style,l=i.entity;return new t({style:Array.isArray(v)?GK(v):v,entity:Array.isArray(l)?GK(l):l})},t}(ZPt),YK=new VK,WK=HK([[HK(xTe),YK]]);VK.EMPTY=YK;var ov=VK;function JPt(e,t,r,n){if(e.size){var i=0;e.reduce(function(v,l,h){return t(v,l)||(r(v)&&n(i,h),i=h),l}),r(e.last())&&n(i,e.count())}}var l4=JPt;function qPt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var e7t=ov,ETe=l4,u4=Ys,STe=u4.List,t7t=u4.Map,r7t=u4.OrderedSet,n7t=u4.Record,a7t=u4.Repeat,i7t=r7t(),o7t={key:"",type:"unstyled",text:"",characterList:STe(),depth:0,data:t7t()},s7t=n7t(o7t),l7t=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=STe(a7t(e7t.EMPTY,n.length))),t},u7t=function(e){qPt(t,e);function t(n){return e.call(this,l7t(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(i){var v=this.getCharacterList().get(i);return v?v.getStyle():i7t},r.getEntityAt=function(i){var v=this.getCharacterList().get(i);return v?v.getEntity():null},r.findStyleRanges=function(i,v){ETe(this.getCharacterList(),c7t,i,v)},r.findEntityRanges=function(i,v){ETe(this.getCharacterList(),f7t,i,v)},t}(s7t);function c7t(e,t){return e.getStyle()===t.getStyle()}function f7t(e,t){return e.getEntity()===t.getEntity()}var $_=u7t;function d7t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h7t=ov,TTe=l4,c4=Ys,jK=c4.List,p7t=c4.Map,v7t=c4.OrderedSet,g7t=c4.Record,m7t=c4.Repeat,y7t=v7t(),wTe={parent:null,characterList:jK(),data:p7t(),depth:0,key:"",text:"",type:"unstyled",children:jK(),prevSibling:null,nextSibling:null},b7t=function(t,r){return t.getStyle()===r.getStyle()},_7t=function(t,r){return t.getEntity()===r.getEntity()},x7t=function(t){if(!t)return t;var r=t.characterList,n=t.text;return n&&!r&&(t.characterList=jK(m7t(h7t.EMPTY,n.length))),t},E7t=function(e){d7t(t,e);function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wTe;return e.call(this,x7t(n))||this}var r=t.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(i){var v=this.getCharacterList().get(i);return v?v.getStyle():y7t},r.getEntityAt=function(i){var v=this.getCharacterList().get(i);return v?v.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(i,v){TTe(this.getCharacterList(),b7t,i,v)},r.findEntityRanges=function(i,v){TTe(this.getCharacterList(),_7t,i,v)},t}(g7t(wTe)),sv=E7t,ATe=ov,S7t=Ys,T7t=S7t.Map,w7t={add:function(t,r,n){return CTe(t,r,n,!0)},remove:function(t,r,n){return CTe(t,r,n,!1)}};function CTe(e,t,r,n){var i=e.getBlockMap(),v=t.getStartKey(),l=t.getStartOffset(),h=t.getEndKey(),a=t.getEndOffset(),u=i.skipUntil(function(g,o){return o===v}).takeUntil(function(g,o){return o===h}).concat(T7t([[h,i.get(h)]])).map(function(g,o){var _,x;v===h?(_=l,x=a):(_=o===v?l:0,x=o===h?a:g.getLength());for(var p=g.getCharacterList(),b;_<x;)b=p.get(_),p=p.set(_,n?ATe.applyStyle(b,r):ATe.removeStyle(b,r)),_++;return g.set("characterList",p)});return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var A7t=w7t,C7t=ov;function R7t(e,t,r,n){for(var i=t,v=e.getCharacterList();i<r;)v=v.set(i,C7t.applyEntity(v.get(i),n)),i++;return e.set("characterList",v)}var M7t=R7t,I7t=M7t,O7t=Ys;function D7t(e,t,r){var n=e.getBlockMap(),i=t.getStartKey(),v=t.getStartOffset(),l=t.getEndKey(),h=t.getEndOffset(),a=n.skipUntil(function(u,g){return g===i}).takeUntil(function(u,g){return g===l}).toOrderedMap().merge(O7t.OrderedMap([[l,n.get(l)]])).map(function(u,g){var o=g===i?v:0,_=g===l?h:u.getLength();return I7t(u,o,_,r)});return e.merge({blockMap:n.merge(a),selectionBefore:t,selectionAfter:t})}var N7t=D7t,L7t={getRemovalRange:function(t,r,n,i,v){var l=n.split(" ");l=l.map(function(c,s){if(v==="forward"){if(s>0)return" "+c}else if(s<l.length-1)return c+" ";return c});for(var h=i,a,u,g=null,o=null,_=0;_<l.length;_++){if(u=l[_],a=h+u.length,t<a&&h<r)g!==null||(g=h),o=a;else if(g!==null)break;h=a}var x=i+n.length,p=g===i,b=o===x;return(!p&&b||p&&!b)&&(v==="forward"?o!==x&&o++:g!==i&&g--),{start:g,end:o}}},P7t=L7t;function k7t(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(!e){var v;if(t===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;v=new Error(t.replace(/%s/g,function(){return String(n[l++])})),v.name="Invariant Violation"}throw v.framesToPop=1,v}}var Qs=k7t,F7t=Qs;function B7t(e,t){var r=[];return e.findEntityRanges(function(n){return n.getEntity()===t},function(n,i){r.push({start:n,end:i})}),r.length||F7t(!1),r}var z7t=B7t,U7t=P7t,$7t=z7t,H7t=Qs;function G7t(e,t,r,n,i){var v=n.getStartOffset(),l=n.getEndOffset(),h=t.getEntityAt(v),a=r.getEntityAt(l-1);if(!h&&!a)return n;var u=n;if(h&&h===a)u=f4(e,t,u,i,h,!0,!0);else if(h&&a){var g=f4(e,t,u,i,h,!1,!0),o=f4(e,r,u,i,a,!1,!1);u=u.merge({anchorOffset:g.getAnchorOffset(),focusOffset:o.getFocusOffset(),isBackward:!1})}else if(h){var _=f4(e,t,u,i,h,!1,!0);u=u.merge({anchorOffset:_.getStartOffset(),isBackward:!1})}else if(a){var x=f4(e,r,u,i,a,!1,!1);u=u.merge({focusOffset:x.getEndOffset(),isBackward:!1})}return u}function f4(e,t,r,n,i,v,l){var h=r.getStartOffset(),a=r.getEndOffset(),u=e.__get(i),g=u.getMutability(),o=l?h:a;if(g==="MUTABLE")return r;var _=$7t(t,i).filter(function(b){return o<=b.end&&o>=b.start});_.length!=1&&H7t(!1);var x=_[0];if(g==="IMMUTABLE")return r.merge({anchorOffset:x.start,focusOffset:x.end,isBackward:!1});v||(l?a=x.end:h=x.start);var p=U7t.getRemovalRange(h,a,t.getText().slice(x.start,x.end),x.start,n);return r.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var V7t=G7t,RTe={},Y7t=Math.pow(2,24);function W7t(){for(var e;e===void 0||RTe.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*Y7t).toString(32);return RTe[e]=!0,e}var xm=W7t,j7t=sv,MTe=xm,K7t=Ys,ITe=K7t.OrderedMap,X7t=function(t){var r={},n;return ITe(t.withMutations(function(i){i.forEach(function(v,l){var h=v.getKey(),a=v.getNextSiblingKey(),u=v.getPrevSiblingKey(),g=v.getChildKeys(),o=v.getParentKey(),_=MTe();if(r[h]=_,a){var x=i.get(a);x?i.setIn([a,"prevSibling"],_):i.setIn([h,"nextSibling"],null)}if(u){var p=i.get(u);p?i.setIn([u,"nextSibling"],_):i.setIn([h,"prevSibling"],null)}if(o&&i.get(o)){var b=i.get(o),c=b.getChildKeys();i.setIn([o,"children"],c.set(c.indexOf(v.getKey()),_))}else i.setIn([h,"parent"],null),n&&(i.setIn([n.getKey(),"nextSibling"],_),i.setIn([h,"prevSibling"],r[n.getKey()])),n=i.get(h);g.forEach(function(s){var d=i.get(s);d?i.setIn([s,"parent"],_):i.setIn([h,"children"],v.getChildKeys().filter(function(f){return f!==s}))})})}).toArray().map(function(i){return[r[i.getKey()],i.set("key",r[i.getKey()])]}))},Q7t=function(t){return ITe(t.toArray().map(function(r){var n=MTe();return[n,r.set("key",n)]}))},Z7t=function(t){var r=t.first()instanceof j7t;return r?X7t(t):Q7t(t)},OTe=Z7t,J7t=ov,q7t=l4,ekt=Qs;function tkt(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),i={},v=t.getStartKey(),l=t.getStartOffset(),h=r.get(v),a=DTe(n,h,l);a!==h&&(i[v]=a);var u=t.getEndKey(),g=t.getEndOffset(),o=r.get(u);v===u&&(o=a);var _=DTe(n,o,g);return _!==o&&(i[u]=_),Object.keys(i).length?e.merge({blockMap:r.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}function rkt(e,t,r){var n;return q7t(e,function(i,v){return i.getEntity()===v.getEntity()},function(i){return i.getEntity()===t},function(i,v){i<=r&&v>=r&&(n={start:i,end:v})}),typeof n!="object"&&ekt(!1),n}function DTe(e,t,r){var n=t.getCharacterList(),i=r>0?n.get(r-1):void 0,v=r<n.count()?n.get(r):void 0,l=i?i.getEntity():void 0,h=v?v.getEntity():void 0;if(h&&h===l){var a=e.__get(h);if(a.getMutability()!=="MUTABLE"){for(var u=rkt(n,h,r),g=u.start,o=u.end,_;g<o;)_=n.get(g),n=n.set(g,J7t.applyEntity(_,null)),g++;return t.set("characterList",n)}}return t}var NTe=tkt,nkt=OTe,akt=NTe,ikt=function(t,r){var n=r.getStartKey(),i=r.getStartOffset(),v=r.getEndKey(),l=r.getEndOffset(),h=akt(t,r),a=h.getBlockMap(),u=a.keySeq(),g=u.indexOf(n),o=u.indexOf(v)+1;return nkt(a.slice(g,o).map(function(_,x){var p=_.getText(),b=_.getCharacterList();return n===v?_.merge({text:p.slice(i,l),characterList:b.slice(i,l)}):x===n?_.merge({text:p.slice(i),characterList:b.slice(i)}):x===v?_.merge({text:p.slice(0,l),characterList:b.slice(0,l)}):_}))},PD=ikt;function okt(e,t,r){var n=e;if(r===n.count())t.forEach(function(l){n=n.push(l)});else if(r===0)t.reverse().forEach(function(l){n=n.unshift(l)});else{var i=n.slice(0,r),v=n.slice(r);n=i.concat(t,v).toList()}return n}var LTe=okt,skt=s4,PTe=sv,lkt=Ys,ukt=LTe,kTe=Qs,ckt=OTe,fkt=lkt.List,dkt=function(t,r,n,i,v,l){var h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",a=n.get(v),u=a.getText(),g=a.getCharacterList(),o=v,_=l+i.getText().length,x=null;switch(h){case"MERGE_OLD_DATA_TO_NEW_DATA":x=i.getData().merge(a.getData());break;case"REPLACE_WITH_NEW_DATA":x=i.getData();break}var p=a.getType();u&&p==="unstyled"&&(p=i.getType());var b=a.merge({text:u.slice(0,l)+i.getText()+u.slice(l),characterList:ukt(g,i.getCharacterList(),l),type:p,data:x});return t.merge({blockMap:n.set(v,b),selectionBefore:r,selectionAfter:r.merge({anchorKey:o,anchorOffset:_,focusKey:o,focusOffset:_,isBackward:!1})})},hkt=function(t,r,n){var i=t.getText(),v=t.getCharacterList(),l=i.slice(0,r),h=v.slice(0,r),a=n.first();return t.merge({text:l+a.getText(),characterList:h.concat(a.getCharacterList()),type:l?t.getType():a.getType(),data:a.getData()})},pkt=function(t,r,n){var i=t.getText(),v=t.getCharacterList(),l=i.length,h=i.slice(r,l),a=v.slice(r,l),u=n.last();return u.merge({text:u.getText()+h,characterList:u.getCharacterList().concat(a),data:u.getData()})},vkt=function(t,r){var n=t.getKey(),i=t,v=[];for(r.get(n)&&v.push(n);i&&i.getNextSiblingKey();){var l=i.getNextSiblingKey();if(!l)break;v.push(l),i=r.get(l)}return v},gkt=function(t,r,n,i){return t.withMutations(function(v){var l=n.getKey(),h=i.getKey(),a=n.getNextSiblingKey(),u=n.getParentKey(),g=vkt(i,t),o=g[g.length-1];if(v.get(h)?(v.setIn([l,"nextSibling"],h),v.setIn([h,"prevSibling"],l)):(v.setIn([l,"nextSibling"],i.getNextSiblingKey()),v.setIn([i.getNextSiblingKey(),"prevSibling"],l)),v.setIn([o,"nextSibling"],a),a&&v.setIn([a,"prevSibling"],o),g.forEach(function(s){return v.setIn([s,"parent"],u)}),u){var _=t.get(u),x=_.getChildKeys(),p=x.indexOf(l),b=p+1,c=x.toArray();c.splice.apply(c,[b,0].concat(g)),v.setIn([u,"children"],fkt(c))}})},mkt=function(t,r,n,i,v,l){var h=n.first()instanceof PTe,a=[],u=i.size,g=n.get(v),o=i.first(),_=i.last(),x=_.getLength(),p=_.getKey(),b=h&&(!g.getChildKeys().isEmpty()||!o.getChildKeys().isEmpty());n.forEach(function(s,d){if(d!==v){a.push(s);return}b?a.push(s):a.push(hkt(s,l,i)),i.slice(b?0:1,u-1).forEach(function(f){return a.push(f)}),a.push(pkt(s,l,i))});var c=skt.createFromArray(a);return h&&(c=gkt(c,n,g,o)),t.merge({blockMap:c,selectionBefore:r,selectionAfter:r.merge({anchorKey:p,anchorOffset:x,focusKey:p,focusOffset:x,isBackward:!1})})},ykt=function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";r.isCollapsed()||kTe(!1);var v=t.getBlockMap(),l=ckt(n),h=r.getStartKey(),a=r.getStartOffset(),u=v.get(h);return u instanceof PTe&&(u.getChildKeys().isEmpty()||kTe(!1)),l.size===1?dkt(t,r,v,l.first(),h,a,i):mkt(t,r,v,l,h,a)},bkt=ykt,_kt=Ys,xkt=LTe,Ekt=Qs,Skt=_kt.Repeat;function Tkt(e,t,r,n){t.isCollapsed()||Ekt(!1);var i=null;if(r!=null&&(i=r.length),i==null||i===0)return e;var v=e.getBlockMap(),l=t.getStartKey(),h=t.getStartOffset(),a=v.get(l),u=a.getText(),g=a.merge({text:u.slice(0,h)+r+u.slice(h,a.getLength()),characterList:xkt(a.getCharacterList(),Skt(n,i).toList(),h)}),o=h+i;return e.merge({blockMap:v.set(l,g),selectionAfter:t.merge({anchorOffset:o,focusOffset:o})})}var wkt=Tkt,Akt=Ys,Ckt=Akt.Map;function Rkt(e,t,r){var n=t.getStartKey(),i=t.getEndKey(),v=e.getBlockMap(),l=v.toSeq().skipUntil(function(h,a){return a===n}).takeUntil(function(h,a){return a===i}).concat(Ckt([[i,v.get(i)]])).map(r);return e.merge({blockMap:v.merge(l),selectionBefore:t,selectionAfter:t})}var FTe=Rkt,Mkt=sv,Ikt=function(t,r){var n=t instanceof Mkt;if(!n)return null;var i=t.getNextSiblingKey();if(i)return i;var v=t.getParentKey();if(!v)return null;for(var l=r.get(v);l&&!l.getNextSiblingKey();){var h=l.getParentKey();l=h?r.get(h):null}return l?l.getNextSiblingKey():null},BTe=Ikt,Okt=sv,KK=BTe,zTe=Ys;zTe.List;var UTe=zTe.Map,zh=function(t,r,n){if(t){var i=r.get(t);i&&r.set(t,n(i))}},kD=function(t,r){var n=[];if(!t)return n;for(var i=r.get(t);i&&i.getParentKey();){var v=i.getParentKey();v&&n.push(v),i=v?r.get(v):null}return n},Dkt=function(t,r){var n=[];if(!t)return n;for(var i=KK(t,r);i&&r.get(i);){var v=r.get(i);n.push(i),i=v.getParentKey()?KK(v,r):null}return n},cT=function(t,r,n){if(!t)return null;for(var i=n.get(t.getKey()).getNextSiblingKey();i&&!r.get(i);)i=n.get(i).getNextSiblingKey()||null;return i},fT=function(t,r,n){if(!t)return null;for(var i=n.get(t.getKey()).getPrevSiblingKey();i&&!r.get(i);)i=n.get(i).getPrevSiblingKey()||null;return i},Nkt=function(t,r,n,i){return t.withMutations(function(v){if(zh(r.getKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i),prevSibling:fT(g,v,i)})}),zh(n.getKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i),prevSibling:fT(g,v,i)})}),kD(r.getKey(),i).forEach(function(g){return zh(g,v,function(o){return o.merge({children:o.getChildKeys().filter(function(_){return v.get(_)}),nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),zh(r.getNextSiblingKey(),v,function(g){return g.merge({prevSibling:r.getPrevSiblingKey()})}),zh(r.getPrevSiblingKey(),v,function(g){return g.merge({nextSibling:cT(g,v,i)})}),zh(n.getNextSiblingKey(),v,function(g){return g.merge({prevSibling:fT(g,v,i)})}),zh(n.getPrevSiblingKey(),v,function(g){return g.merge({nextSibling:n.getNextSiblingKey()})}),kD(n.getKey(),i).forEach(function(g){zh(g,v,function(o){return o.merge({children:o.getChildKeys().filter(function(_){return v.get(_)}),nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),Dkt(n,i).forEach(function(g){return zh(g,v,function(o){return o.merge({nextSibling:cT(o,v,i),prevSibling:fT(o,v,i)})})}),t.get(r.getKey())==null&&t.get(n.getKey())!=null&&n.getParentKey()===r.getKey()&&n.getPrevSiblingKey()==null){var l=r.getPrevSiblingKey();zh(n.getKey(),v,function(g){return g.merge({prevSibling:l})}),zh(l,v,function(g){return g.merge({nextSibling:n.getKey()})});var h=l?t.get(l):null,a=h?h.getParentKey():null;if(r.getChildKeys().forEach(function(g){zh(g,v,function(o){return o.merge({parent:a})})}),a!=null){var u=t.get(a);zh(a,v,function(g){return g.merge({children:u.getChildKeys().concat(r.getChildKeys())})})}zh(r.getChildKeys().find(function(g){var o=t.get(g);return o.getNextSiblingKey()===null}),v,function(g){return g.merge({nextSibling:r.getNextSiblingKey()})})}})},Lkt=function(t,r){if(r.isCollapsed())return t;var n=t.getBlockMap(),i=r.getStartKey(),v=r.getStartOffset(),l=r.getEndKey(),h=r.getEndOffset(),a=n.get(i),u=n.get(l),g=a instanceof Okt,o=[];if(g){var _=u.getChildKeys(),x=kD(l,n);u.getNextSiblingKey()&&(o=o.concat(x)),_.isEmpty()||(o=o.concat(x.concat([l]))),o=o.concat(kD(KK(u,n),n))}var p;a===u?p=Pkt(a.getCharacterList(),v,h):p=a.getCharacterList().slice(0,v).concat(u.getCharacterList().slice(h));var b=a.merge({text:a.getText().slice(0,v)+u.getText().slice(h),characterList:p}),c=g&&v===0&&h===0&&u.getParentKey()===i&&u.getPrevSiblingKey()==null,s=c?UTe([[i,null]]):n.toSeq().skipUntil(function(f,m){return m===i}).takeUntil(function(f,m){return m===l}).filter(function(f,m){return o.indexOf(m)===-1}).concat(UTe([[l,null]])).map(function(f,m){return m===i?b:null}),d=n.merge(s).filter(function(f){return!!f});return g&&a!==u&&(d=Nkt(d,a,u,n)),t.merge({blockMap:d,selectionBefore:r,selectionAfter:r.merge({anchorKey:i,anchorOffset:v,focusKey:i,focusOffset:v,isBackward:!1})})},Pkt=function(t,r,n){if(r===0)for(;r<n;)t=t.shift(),r++;else if(n===t.count())for(;n>r;)t=t.pop(),n--;else{var i=t.slice(0,r),v=t.slice(n);t=i.concat(v).toList()}return t},kkt=Lkt,Fkt=sv,Bkt=xm,$Te=Ys,HTe=Qs,zkt=FTe,Ukt=$Te.List,$kt=$Te.Map,FD=function(t,r,n){if(t){var i=r.get(t);i&&r.set(t,n(i))}},Hkt=function(t,r,n){return t.withMutations(function(i){var v=r.getKey(),l=n.getKey();FD(r.getParentKey(),i,function(h){var a=h.getChildKeys(),u=a.indexOf(v)+1,g=a.toArray();return g.splice(u,0,l),h.merge({children:Ukt(g)})}),FD(r.getNextSiblingKey(),i,function(h){return h.merge({prevSibling:l})}),FD(v,i,function(h){return h.merge({nextSibling:l})}),FD(l,i,function(h){return h.merge({prevSibling:v})})})},Gkt=function(t,r){r.isCollapsed()||HTe(!1);var n=r.getAnchorKey(),i=t.getBlockMap(),v=i.get(n),l=v.getText();if(!l){var h=v.getType();if(h==="unordered-list-item"||h==="ordered-list-item")return zkt(t,r,function(s){return s.merge({type:"unstyled",depth:0})})}var a=r.getAnchorOffset(),u=v.getCharacterList(),g=Bkt(),o=v instanceof Fkt,_=v.merge({text:l.slice(0,a),characterList:u.slice(0,a)}),x=_.merge({key:g,text:l.slice(a),characterList:u.slice(a),data:$kt()}),p=i.toSeq().takeUntil(function(s){return s===v}),b=i.toSeq().skipUntil(function(s){return s===v}).rest(),c=p.concat([[n,_],[g,x]],b).toOrderedMap();return o&&(v.getChildKeys().isEmpty()||HTe(!1),c=Hkt(c,_,x)),t.merge({blockMap:c,selectionBefore:r,selectionAfter:r.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})},Vkt=Gkt,Ykt=ov,GTe=A7t,Wkt=N7t,jkt=V7t,Kkt=PD,Xkt=Ys,Qkt=bkt,Zkt=wkt,Jkt=Qs,XK=FTe,d4=NTe,h4=kkt,qkt=Vkt,e9t=Xkt.OrderedSet,BD={replaceText:function(t,r,n,i,v){var l=d4(t,r),h=h4(l,r),a=Ykt.create({style:i||e9t(),entity:v||null});return Zkt(h,h.getSelectionAfter(),n,a)},insertText:function(t,r,n,i,v){return r.isCollapsed()||Jkt(!1),BD.replaceText(t,r,n,i,v)},moveText:function(t,r,n){var i=Kkt(t,r),v=BD.removeRange(t,r,"backward");return BD.replaceWithFragment(v,n,i)},replaceWithFragment:function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",v=d4(t,r),l=h4(v,r);return Qkt(l,l.getSelectionAfter(),n,i)},removeRange:function(t,r,n){var i,v,l,h;r.getIsBackward()&&(r=r.merge({anchorKey:r.getFocusKey(),anchorOffset:r.getFocusOffset(),focusKey:r.getAnchorKey(),focusOffset:r.getAnchorOffset(),isBackward:!1})),i=r.getAnchorKey(),v=r.getFocusKey(),l=t.getBlockForKey(i),h=t.getBlockForKey(v);var a=r.getStartOffset(),u=r.getEndOffset(),g=l.getEntityAt(a),o=h.getEntityAt(u-1);if(i===v&&g&&g===o){var _=jkt(t.getEntityMap(),l,h,r,n);return h4(t,_)}var x=d4(t,r);return h4(x,r)},splitBlock:function(t,r){var n=d4(t,r),i=h4(n,r);return qkt(i,i.getSelectionAfter())},applyInlineStyle:function(t,r,n){return GTe.add(t,r,n)},removeInlineStyle:function(t,r,n){return GTe.remove(t,r,n)},setBlockType:function(t,r,n){return XK(t,r,function(i){return i.merge({type:n,depth:0})})},setBlockData:function(t,r,n){return XK(t,r,function(i){return i.merge({data:n})})},mergeBlockData:function(t,r,n){return XK(t,r,function(i){return i.merge({data:i.getData().merge(n)})})},applyEntity:function(t,r,n){var i=d4(t,r);return Wkt(i,r,n)}},Uh=BD;function t9t(e){return Object.keys(e).map(function(t){return e[t]})}var VTe=t9t;function r9t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){n9t(e,i,r[i])})}return e}function n9t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9t(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,v;for(v=0;v<n.length;v++)i=n[v],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var YTe=l4,i9t=VTe,QK=Ys,dT=QK.List,o9t=QK.Repeat,WTe=QK.Record,jTe=function(){return!0},s9t={start:null,end:null},ZK=WTe(s9t),l9t={start:null,end:null,decoratorKey:null,leaves:null},JK=WTe(l9t),u9t={generate:function(t,r,n){var i=r.getLength();if(!i)return dT.of(new JK({start:0,end:0,decoratorKey:null,leaves:dT.of(new ZK({start:0,end:0}))}));var v=[],l=n?n.getDecorations(r,t):dT(o9t(null,i)),h=r.getCharacterList();return YTe(l,KTe,jTe,function(a,u){v.push(new JK({start:a,end:u,decoratorKey:l.get(a),leaves:c9t(h.slice(a,u).toList(),a)}))}),dT(v)},fromJS:function(t){var r=t.leaves,n=a9t(t,["leaves"]);return new JK(r9t({},n,{leaves:r!=null?dT(Array.isArray(r)?r:i9t(r)).map(function(i){return ZK(i)}):null}))}};function c9t(e,t){var r=[],n=e.map(function(i){return i.getStyle()}).toList();return YTe(n,KTe,jTe,function(i,v){r.push(new ZK({start:i+t,end:v+t}))}),dT(r)}function KTe(e,t){return e===t}var f9t=u9t;function d9t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h9t=Ys,p9t=h9t.Record,v9t=p9t({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),g9t=function(e){d9t(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},t}(v9t),XTe=g9t;function m9t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})}var y9t=m9t;function b9t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_9t(e,i,r[i])})}return e}function _9t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x9t=XTe,E9t=Ys,S9t=Qs,qK=y9t,T9t=E9t.Map,U1=T9t(),p4=qK();function hT(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
703
703
  Please use "`+t+'" instead.')}var Em={getLastCreatedEntityKey:function(){return hT("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Em.__getLastCreatedEntityKey()},create:function(t,r,n){return hT("DraftEntity.create","contentState.createEntity"),Em.__create(t,r,n)},add:function(t){return hT("DraftEntity.add","contentState.addEntity"),Em.__add(t)},get:function(t){return hT("DraftEntity.get","contentState.getEntity"),Em.__get(t)},__getAll:function(){return U1},__loadWithEntities:function(t){U1=t,p4=qK()},mergeData:function(t,r){return hT("DraftEntity.mergeData","contentState.mergeEntityData"),Em.__mergeData(t,r)},replaceData:function(t,r){return hT("DraftEntity.replaceData","contentState.replaceEntityData"),Em.__replaceData(t,r)},__getLastCreatedEntityKey:function(){return p4},__create:function(t,r,n){return Em.__add(new x9t({type:t,mutability:r,data:n||{}}))},__add:function(t){return p4=qK(),U1=U1.set(p4,t),p4},__get:function(t){var r=U1.get(t);return r||S9t(!1),r},__mergeData:function(t,r){var n=Em.__get(t),i=b9t({},n.getData(),r),v=n.set("data",i);return U1=U1.set(t,v),v},__replaceData:function(t,r){var n=Em.__get(t),i=n.set("data",r);return U1=U1.set(t,i),i}},zD=Em;function w9t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var A9t=Ys,C9t=A9t.Record,R9t={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},M9t=C9t(R9t),I9t=function(e){w9t(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(i,v,l){var h=this.getAnchorKey(),a=this.getFocusKey();if(h===a&&h===i){var u=this.getStartOffset(),g=this.getEndOffset();return v<=u&&u<=l||v<=g&&g<=l}if(i!==h&&i!==a)return!1;var o=i===h?this.getAnchorOffset():this.getFocusOffset();return v<=o&&l>=o},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(i){return new t({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(M9t),UD=I9t,R2=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},O9t=new RegExp("\r","g");function D9t(e){return e.replace(O9t,"")}var QTe=D9t;function ZTe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){N9t(e,i,r[i])})}return e}function N9t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var P9t=s4,JTe=ov,k9t=$_,F9t=sv,Sm=zD,$D=UD,B9t=xm,z9t=VTe,U9t=R2,v4=Ys,$9t=QTe,qTe=v4.List,H9t=v4.Record,G9t=v4.Repeat,V9t=v4.Map,Y9t=v4.OrderedMap,W9t={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},j9t=H9t(W9t),e3e=U9t("draft_tree_data_support")?F9t:k9t,K9t=function(e){L9t(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getEntityMap=function(){return Sm},r.getBlockMap=function(){return this.get("blockMap")},r.getSelectionBefore=function(){return this.get("selectionBefore")},r.getSelectionAfter=function(){return this.get("selectionAfter")},r.getBlockForKey=function(i){var v=this.getBlockMap().get(i);return v},r.getKeyBefore=function(i){return this.getBlockMap().reverse().keySeq().skipUntil(function(v){return v===i}).skip(1).first()},r.getKeyAfter=function(i){return this.getBlockMap().keySeq().skipUntil(function(v){return v===i}).skip(1).first()},r.getBlockAfter=function(i){return this.getBlockMap().skipUntil(function(v,l){return l===i}).skip(1).first()},r.getBlockBefore=function(i){return this.getBlockMap().reverse().skipUntil(function(v,l){return l===i}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(i){return this.getBlockMap().map(function(v){return v?v.getText():""}).join(i||`
704
704
  `)},r.getLastCreatedEntityKey=function(){return Sm.__getLastCreatedEntityKey()},r.hasText=function(){var i=this.getBlockMap();return i.size>1||escape(i.first().getText()).replace(/%u200B/g,"").length>0},r.createEntity=function(i,v,l){return Sm.__create(i,v,l),this},r.mergeEntityData=function(i,v){return Sm.__mergeData(i,v),this},r.replaceEntityData=function(i,v){return Sm.__replaceData(i,v),this},r.addEntity=function(i){return Sm.__add(i),this},r.getEntity=function(i){return Sm.__get(i)},r.getAllEntities=function(){return Sm.__getAll()},r.loadWithEntities=function(i){return Sm.__loadWithEntities(i)},t.createFromBlockArray=function(i,v){var l=Array.isArray(i)?i:i.contentBlocks,h=P9t.createFromArray(l),a=h.isEmpty()?new $D:$D.createEmpty(h.first().getKey());return new t({blockMap:h,entityMap:v||Sm,selectionBefore:a,selectionAfter:a})},t.createFromText=function(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,l=i.split(v),h=l.map(function(a){return a=$9t(a),new e3e({key:B9t(),text:a,type:"unstyled",characterList:qTe(G9t(JTe.EMPTY,a.length))})});return t.createFromBlockArray(h)},t.fromJS=function(i){return new t(ZTe({},i,{blockMap:Y9t(i.blockMap).map(t.createContentBlockFromJS),selectionBefore:new $D(i.selectionBefore),selectionAfter:new $D(i.selectionAfter)}))},t.createContentBlockFromJS=function(i){var v=i.characterList;return new e3e(ZTe({},i,{data:V9t(i.data),characterList:v!=null?qTe((Array.isArray(v)?v:z9t(v)).map(function(l){return JTe.fromJS(l)})):void 0}))},t}(j9t),eX=K9t,HD=Qs,X9t="NEUTRAL",GD="LTR",t3e="RTL",VD=null;function YD(e){return e===GD||e===t3e}function r3e(e){return YD(e)||HD(!1),e===GD?"ltr":"rtl"}function Q9t(e,t){return YD(e)||HD(!1),YD(t)||HD(!1),e===t?null:r3e(e)}function n3e(e){VD=e}function Z9t(){n3e(GD)}function J9t(){return VD||this.initGlobalDir(),VD||HD(!1),VD}var q9t={NEUTRAL:X9t,LTR:GD,RTL:t3e,isStrong:YD,getHTMLDir:r3e,getHTMLDirIfDifferent:Q9t,setGlobalDir:n3e,initGlobalDir:Z9t,getGlobalDir:J9t},WD=q9t,$1=WD,eFt=Qs,g4={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},tFt=new RegExp("["+g4.L+g4.R+g4.AL+"]"),rFt=new RegExp("["+g4.R+g4.AL+"]");function a3e(e){var t=tFt.exec(e);return t==null?null:t[0]}function i3e(e){var t=a3e(e);return t==null?$1.NEUTRAL:rFt.exec(t)?$1.RTL:$1.LTR}function o3e(e,t){if(t=t||$1.NEUTRAL,!e.length)return t;var r=i3e(e);return r===$1.NEUTRAL?t:r}function tX(e,t){return t||(t=$1.getGlobalDir()),$1.isStrong(t)||eFt(!1),o3e(e,t)}function nFt(e,t){return tX(e,t)===$1.LTR}function aFt(e,t){return tX(e,t)===$1.RTL}var iFt={firstStrongChar:a3e,firstStrongCharDir:i3e,resolveBlockDir:o3e,getDirection:tX,isDirectionLTR:nFt,isDirectionRTL:aFt},rX=iFt;function s3e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oFt=rX,l3e=WD,sFt=Qs,lFt=function(){function e(r){s3e(this,"_defaultDir",void 0),s3e(this,"_lastDir",void 0),r?l3e.isStrong(r)||sFt(!1):r=l3e.getGlobalDir(),this._defaultDir=r,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(n){return this._lastDir=oFt.getDirection(n,this._lastDir),this._lastDir},e}(),uFt=lFt,cFt=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},$h=cFt,fFt=uFt,u3e=Ys,dFt=$h,hFt=u3e.OrderedMap,jD,pFt={getDirectionMap:function(t,r){jD?jD.reset():jD=new fFt;var n=t.getBlockMap(),i=n.valueSeq().map(function(l){return dFt(jD).getDirection(l.getText())}),v=hFt(n.keySeq().zip(i));return r!=null&&u3e.is(r,v)?r:v}},vFt=pFt;function c3e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){f3e(e,i,r[i])})}return e}function f3e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var KD=f9t,m4=eX,XD=vFt,nX=UD,y4=Ys,d3e=y4.OrderedSet,gFt=y4.Record,H_=y4.Stack,h3e=y4.OrderedMap,mFt=y4.List,yFt={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:H_(),selection:null,treeMap:null,undoStack:H_()},p3e=gFt(yFt),v3e=function(){t.createEmpty=function(n){return this.createWithText("",n)},t.createWithText=function(n,i){return t.createWithContent(m4.createFromText(n),i)},t.createWithContent=function(n,i){if(n.getBlockMap().count()===0)return t.createEmpty(i);var v=n.getBlockMap().first().getKey();return t.create({currentContent:n,undoStack:H_(),redoStack:H_(),decorator:i||null,selection:nX.createEmpty(v)})},t.create=function(n){var i=n.currentContent,v=n.decorator,l=c3e({},n,{treeMap:m3e(i,v),directionMap:XD.getDirectionMap(i)});return new t(new p3e(l))},t.fromJS=function(n){return new t(new p3e(c3e({},n,{directionMap:n.directionMap!=null?h3e(n.directionMap):n.directionMap,inlineStyleOverride:n.inlineStyleOverride!=null?d3e(n.inlineStyleOverride):n.inlineStyleOverride,nativelyRenderedContent:n.nativelyRenderedContent!=null?m4.fromJS(n.nativelyRenderedContent):n.nativelyRenderedContent,redoStack:n.redoStack!=null?H_(n.redoStack.map(function(i){return m4.fromJS(i)})):n.redoStack,selection:n.selection!=null?new nX(n.selection):n.selection,treeMap:n.treeMap!=null?h3e(n.treeMap).map(function(i){return mFt(i).map(function(v){return KD.fromJS(v)})}):n.treeMap,undoStack:n.undoStack!=null?H_(n.undoStack.map(function(i){return m4.fromJS(i)})):n.undoStack,currentContent:m4.fromJS(n.currentContent)})))},t.set=function(n,i){var v=n.getImmutable().withMutations(function(l){var h=l.get("decorator"),a=h;i.decorator===null?a=null:i.decorator&&(a=i.decorator);var u=i.currentContent||n.getCurrentContent();if(a!==h){var g=l.get("treeMap"),o;a&&h?o=_Ft(u,u.getBlockMap(),g,a,h):o=m3e(u,a),l.merge({decorator:a,treeMap:o,nativelyRenderedContent:null});return}var _=n.getCurrentContent();u!==_&&l.set("treeMap",bFt(n,u.getBlockMap(),u.getEntityMap(),a)),l.merge(i)});return new t(v)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(n,i){return t.set(n,{inlineStyleOverride:i})},e.getCurrentInlineStyle=function(){var n=this.getInlineStyleOverride();if(n!=null)return n;var i=this.getCurrentContent(),v=this.getSelection();return v.isCollapsed()?EFt(i,v):SFt(i,v)},e.getBlockTree=function(n){return this.getImmutable().getIn(["treeMap",n])},e.isSelectionAtStartOfContent=function(){var n=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(n,0,0)},e.isSelectionAtEndOfContent=function(){var n=this.getCurrentContent(),i=n.getBlockMap(),v=i.last(),l=v.getLength();return this.getSelection().hasEdgeWithin(v.getKey(),l,l)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(n,i){return g3e(n,i,!1)},t.forceSelection=function(n,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),g3e(n,i,!0)},t.moveSelectionToEnd=function(n){var i=n.getCurrentContent(),v=i.getLastBlock(),l=v.getKey(),h=v.getLength();return t.acceptSelection(n,new nX({anchorKey:l,anchorOffset:h,focusKey:l,focusOffset:h,isBackward:!1}))},t.moveFocusToEnd=function(n){var i=t.moveSelectionToEnd(n);return t.forceSelection(i,i.getSelection())},t.push=function(n,i,v){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(n.getCurrentContent()===i)return n;var h=XD.getDirectionMap(i,n.getDirectionMap());if(!n.getAllowUndo())return t.set(n,{currentContent:i,directionMap:h,lastChangeType:v,selection:i.getSelectionAfter(),forceSelection:l,inlineStyleOverride:null});var a=n.getSelection(),u=n.getCurrentContent(),g=n.getUndoStack(),o=i;a!==u.getSelectionAfter()||xFt(n,v)?(g=g.push(u),o=o.set("selectionBefore",a)):(v==="insert-characters"||v==="backspace-character"||v==="delete-character")&&(o=o.set("selectionBefore",u.getSelectionBefore()));var _=n.getInlineStyleOverride(),x=["adjust-depth","change-block-type","split-block"];x.indexOf(v)===-1&&(_=null);var p={currentContent:o,directionMap:h,undoStack:g,redoStack:H_(),lastChangeType:v,selection:i.getSelectionAfter(),forceSelection:l,inlineStyleOverride:_};return t.set(n,p)},t.undo=function(n){if(!n.getAllowUndo())return n;var i=n.getUndoStack(),v=i.peek();if(!v)return n;var l=n.getCurrentContent(),h=XD.getDirectionMap(v,n.getDirectionMap());return t.set(n,{currentContent:v,directionMap:h,undoStack:i.shift(),redoStack:n.getRedoStack().push(l),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:l.getSelectionBefore()})},t.redo=function(n){if(!n.getAllowUndo())return n;var i=n.getRedoStack(),v=i.peek();if(!v)return n;var l=n.getCurrentContent(),h=XD.getDirectionMap(v,n.getDirectionMap());return t.set(n,{currentContent:v,directionMap:h,undoStack:n.getUndoStack().push(l),redoStack:i.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:v.getSelectionAfter()})};function t(r){f3e(this,"_immutable",void 0),this._immutable=r}return e.getImmutable=function(){return this._immutable},t}();function g3e(e,t,r){return v3e.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function m3e(e,t){return e.getBlockMap().map(function(r){return KD.generate(e,r,t)}).toOrderedMap()}function bFt(e,t,r,n){var i=e.getCurrentContent().set("entityMap",r),v=i.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter(function(h,a){return h!==v.get(a)}).map(function(h){return KD.generate(i,h,n)}))}function _Ft(e,t,r,n,i){return r.merge(t.toSeq().filter(function(v){return n.getDecorations(v,e)!==i.getDecorations(v,e)}).map(function(v){return KD.generate(e,v,n)}))}function xFt(e,t){var r=e.getLastChangeType();return t!==r||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function EFt(e,t){var r=t.getStartKey(),n=t.getStartOffset(),i=e.getBlockForKey(r);return n>0?i.getInlineStyleAt(n-1):i.getLength()?i.getInlineStyleAt(0):y3e(e,r)}function SFt(e,t){var r=t.getStartKey(),n=t.getStartOffset(),i=e.getBlockForKey(r);return n<i.getLength()?i.getInlineStyleAt(n):n>0?i.getInlineStyleAt(n-1):y3e(e,r)}function y3e(e,t){var r=e.getBlockMap().reverse().skipUntil(function(n,i){return i===t}).skip(1).skipUntil(function(n,i){return n.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):d3e()}var kl=v3e,TFt=sv,wFt=BTe,b3e=Ys,QD=Qs,AFt=b3e.OrderedMap,CFt=b3e.List,G_=function(t,r,n){if(t){var i=r.get(t);i&&r.set(t,n(i))}},RFt=function(t,r,n,i,v){if(!v)return t;var l=i==="after",h=r.getKey(),a=n.getKey(),u=r.getParentKey(),g=r.getNextSiblingKey(),o=r.getPrevSiblingKey(),_=n.getParentKey(),x=l?n.getNextSiblingKey():a,p=l?a:n.getPrevSiblingKey();return t.withMutations(function(b){G_(u,b,function(c){var s=c.getChildKeys();return c.merge({children:s.delete(s.indexOf(h))})}),G_(o,b,function(c){return c.merge({nextSibling:g})}),G_(g,b,function(c){return c.merge({prevSibling:o})}),G_(x,b,function(c){return c.merge({prevSibling:h})}),G_(p,b,function(c){return c.merge({nextSibling:h})}),G_(_,b,function(c){var s=c.getChildKeys(),d=s.indexOf(a),f=l?d+1:d!==0?d-1:0,m=s.toArray();return m.splice(f,0,h),c.merge({children:CFt(m)})}),G_(h,b,function(c){return c.merge({nextSibling:x,prevSibling:p,parent:_})})})},MFt=function(t,r,n,i){i==="replace"&&QD(!1);var v=n.getKey(),l=r.getKey();l===v&&QD(!1);var h=t.getBlockMap(),a=r instanceof TFt,u=[r],g=h.delete(l);a&&(u=[],g=h.withMutations(function(s){var d=r.getNextSiblingKey(),f=wFt(r,s);s.toSeq().skipUntil(function(m){return m.getKey()===l}).takeWhile(function(m){var E=m.getKey(),y=E===l,R=d&&E!==d,A=!d&&m.getParentKey()&&(!f||E!==f);return!!(y||R||A)}).forEach(function(m){u.push(m),s.delete(m.getKey())})}));var o=g.toSeq().takeUntil(function(s){return s===n}),_=g.toSeq().skipUntil(function(s){return s===n}).skip(1),x=u.map(function(s){return[s.getKey(),s]}),p=AFt();if(i==="before"){var b=t.getBlockBefore(v);!b||b.getKey()!==r.getKey()||QD(!1),p=o.concat([].concat(x,[[v,n]]),_).toOrderedMap()}else if(i==="after"){var c=t.getBlockAfter(v);!c||c.getKey()!==l||QD(!1),p=o.concat([[v,n]].concat(x),_).toOrderedMap()}return t.merge({blockMap:RFt(p,r,n,i,a),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:l,focusKey:l})})},IFt=MFt;function _3e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){OFt(e,i,r[i])})}return e}function OFt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var DFt=s4,NFt=ov,LFt=$_,PFt=sv,pT=Uh,x3e=kl,E3e=xm,kFt=R2,S3e=Ys,ZD=IFt,T3e=kFt("draft_tree_data_support"),w3e=T3e?PFt:LFt,FFt=S3e.List,BFt=S3e.Repeat,zFt={insertAtomicBlock:function(t,r,n){var i=t.getCurrentContent(),v=t.getSelection(),l=pT.removeRange(i,v,"backward"),h=l.getSelectionAfter(),a=pT.splitBlock(l,h),u=a.getSelectionAfter(),g=pT.setBlockType(a,u,"atomic"),o=NFt.create({entity:r}),_={key:E3e(),type:"atomic",text:n,characterList:FFt(BFt(o,n.length))},x={key:E3e(),type:"unstyled"};T3e&&(_=_3e({},_,{nextSibling:x.key}),x=_3e({},x,{prevSibling:_.key}));var p=[new w3e(_),new w3e(x)],b=DFt.createFromArray(p),c=pT.replaceWithFragment(g,u,b),s=c.merge({selectionBefore:v,selectionAfter:c.getSelectionAfter().set("hasFocus",!0)});return x3e.push(t,s,"insert-fragment")},moveAtomicBlock:function(t,r,n,i){var v=t.getCurrentContent(),l=t.getSelection(),h;if(i==="before"||i==="after"){var a=v.getBlockForKey(i==="before"?n.getStartKey():n.getEndKey());h=ZD(v,r,a,i)}else{var u=pT.removeRange(v,n,"backward"),g=u.getSelectionAfter(),o=u.getBlockForKey(g.getFocusKey());if(g.getStartOffset()===0)h=ZD(u,r,o,"before");else if(g.getEndOffset()===o.getLength())h=ZD(u,r,o,"after");else{var _=pT.splitBlock(u,g),x=_.getSelectionAfter(),p=_.getBlockForKey(x.getFocusKey());h=ZD(_,r,p,"before")}}var b=h.merge({selectionBefore:l,selectionAfter:h.getSelectionAfter().set("hasFocus",!0)});return x3e.push(t,b,"move-block")}},UFt=zFt;function $Ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var HFt=Ys,GFt=HFt.List,aX=".",VFt=function(){function e(r){$Ft(this,"_decorators",void 0),this._decorators=r.slice()}var t=e.prototype;return t.getDecorations=function(n,i){var v=Array(n.getText().length).fill(null);return this._decorators.forEach(function(l,h){var a=0,u=l.strategy,g=function(_,x){YFt(v,_,x)&&(WFt(v,_,x,h+aX+a),a++)};u(n,g,i)}),GFt(v)},t.getComponentForKey=function(n){var i=parseInt(n.split(aX)[0],10);return this._decorators[i].component},t.getPropsForKey=function(n){var i=parseInt(n.split(aX)[0],10);return this._decorators[i].props},e}();function YFt(e,t,r){for(var n=t;n<r;n++)if(e[n]!=null)return!1;return!0}function WFt(e,t,r,n){for(var i=t;i<r;i++)e[i]=n}var jFt=VFt;function KFt(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(A3e).join(" "):Array.prototype.map.call(arguments,A3e).join(" ")}function A3e(e){return e.replace(/\//g,"-")}var V_=KFt,iX=bt,oX=V_,XFt=Ys,QFt=XFt.Map,ZFt=iX.createElement("ul",{className:oX("public/DraftStyleDefault/ul")}),JFt=iX.createElement("ol",{className:oX("public/DraftStyleDefault/ol")}),qFt=iX.createElement("pre",{className:oX("public/DraftStyleDefault/pre")}),eBt=QFt({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:ZFt},"ordered-list-item":{element:"li",wrapper:JFt},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:qFt},unstyled:{element:"div",aliasedElements:["p"]}}),sX=eBt,C3e={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
705
705
  object-assign