buddy-workbench 0.1.95 → 0.1.96
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.
|
@@ -493,7 +493,7 @@ html body {
|
|
|
493
493
|
${n}-eye,
|
|
494
494
|
${n}-download,
|
|
495
495
|
${n}-delete
|
|
496
|
-
`]:{zIndex:10,width:r,margin:`0 ${ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ce(i(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ce(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Ule=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Kle=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},bn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},qle=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Gle=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:i}=e,c=an(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Kle(c),Ble(c),Vle(c),Wle(c),Hle(c),Fle(c),Ule(c),fm(c)]},qle);var Xle={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Yle=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Xle}))},Jle=o.forwardRef(Yle),Qle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Zle=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Qle}))},ese=o.forwardRef(Zle),tse={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},nse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:tse}))},rse=o.forwardRef(nse);function cp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function up(e,t){const n=Ue(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function Wy(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function ase(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const ose=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},v7=e=>e.indexOf("image/")===0,ise=e=>{if(e.type&&!e.thumbUrl)return v7(e.type);const t=e.thumbUrl||e.url||"",n=ose(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},zl=200;function lse(e){return new Promise(t=>{if(!e.type||!v7(e.type)){t("");return}const n=document.createElement("canvas");n.width=zl,n.height=zl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${zl}px; height: ${zl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:c}=a;let u=zl,f=zl,m=0,v=0;i>c?(f=c*(zl/i),v=-(f-u)/2):(u=i*(zl/c),m=-(u-f)/2),r.drawImage(a,m,v,u,f);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(p)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var sse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},cse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sse}))},oi=o.forwardRef(cse);const use=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:c,progress:u,iconRender:f,actionIconRender:m,itemRender:v,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:C,removeIcon:y,downloadIcon:w,extra:$,onPreview:E,onDownload:O,onClose:N},R)=>{var I,j;const{status:M}=i,[T,P]=o.useState(M);o.useEffect(()=>{M!=="removed"&&P(M)},[M]);const[A,L]=o.useState(!1);o.useEffect(()=>{const Q=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(Q)}},[]);const D=f(i);let V=o.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!i.thumbUrl&&!i.url){const Q=fe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});V=o.createElement("div",{className:Q},D)}else{const Q=p!=null&&p(i)?o.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):D,J=fe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(i)});V=o.createElement("a",{className:J,onClick:ae=>E(i,ae),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const z=fe(`${e}-list-item`,`${e}-list-item-${T}`),B=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,_=(typeof b=="function"?b(i):b)?m((typeof y=="function"?y(i):y)||o.createElement(Kn,null),()=>N(i),e,r.removeFile,!0):null,W=(typeof x=="function"?x(i):x)&&T==="done"?m((typeof w=="function"?w(i):w)||o.createElement(oi,null),()=>O(i),e,r.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:fe(`${e}-list-item-actions`,{picture:a==="picture"})},W,_),F=typeof $=="function"?$(i):$,q=F&&o.createElement("span",{className:`${e}-list-item-extra`},F),U=fe(`${e}-list-item-name`),G=i.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:i.name},B,{href:i.url,onClick:Q=>E(i,Q)}),i.name,q):o.createElement("span",{key:"view",className:U,onClick:Q=>E(i,Q),title:i.name},i.name,q),Y=(typeof h=="function"?h(i):h)&&(i.url||i.thumbUrl)?o.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>E(i,Q),title:r.previewFile},typeof C=="function"?C(i):C||o.createElement(od,null)):null,Z=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Y,T==="done"&&W,_),{getPrefixCls:ie}=o.useContext(Mt),re=ie(),X=o.createElement("div",{className:z},V,G,K,Z,A&&o.createElement(Vr,{motionName:`${re}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:Q})=>{const J="percent"in i?o.createElement(Rm,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},u)):null;return o.createElement("div",{className:fe(`${e}-list-item-progress`,Q)},J)})),ee=i.response&&typeof i.response=="string"?i.response:((I=i.error)===null||I===void 0?void 0:I.statusText)||((j=i.error)===null||j===void 0?void 0:j.message)||r.uploadError,ne=T==="error"?o.createElement(un,{title:ee,getPopupContainer:Q=>Q.parentNode},X):X;return o.createElement("div",{className:fe(`${e}-list-item-container`,t),style:n,ref:R},v?v(ne,i,c,{download:O.bind(null,i),preview:E.bind(null,i),remove:N.bind(null,i)}):ne)}),dse=(e,t)=>{const{listType:n="text",previewFile:r=lse,onPreview:a,onDownload:i,onRemove:c,locale:u,iconRender:f,isImageUrl:m=ise,prefixCls:v,items:p=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:x=!1,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:N=!0,itemRender:R,disabled:I}=e,[,j]=uC(),[M,T]=o.useState(!1),P=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(G=>{U.thumbUrl=G||"",j()}))})},[n,p,r]),o.useEffect(()=>{T(!0)},[]);const A=(U,G)=>{if(a)return G==null||G.preventDefault(),a(U)},L=U=>{typeof i=="function"?i(U):U.url&&window.open(U.url)},D=U=>{c==null||c(U)},V=U=>{if(f)return f(U,n);const G=U.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?o.createElement(go,null):u.uploading,Z=m!=null&&m(U)?o.createElement(rse,null):o.createElement(Jle,null);return G?Y:Z}return G?o.createElement(go,null):o.createElement(ese,null)},z=(U,G,Y,Z,ie)=>{const re={type:"text",size:"small",title:Z,onClick:X=>{var ee,ne;G(),o.isValidElement(U)&&((ne=(ee=U.props).onClick)===null||ne===void 0||ne.call(ee,X))},className:`${Y}-list-item-action`,disabled:ie?I:!1};return o.isValidElement(U)?o.createElement(Re,Object.assign({},re,{icon:zr(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):o.createElement(Re,Object.assign({},re),o.createElement("span",null,U))};o.useImperativeHandle(t,()=>({handlePreview:A,handleDownload:L}));const{getPrefixCls:B}=o.useContext(Mt),_=B("upload",v),W=B(),K=fe(`${_}-list`,`${_}-list-${n}`),F=o.useMemo(()=>kn(Du(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),q=Object.assign(Object.assign({},P?{}:F),{motionDeadline:2e3,motionName:`${_}-${P?"animate-inline":"animate"}`,keys:Ue(p.map(U=>({key:U.uid,file:U}))),motionAppear:M});return o.createElement("div",{className:K},o.createElement(lC,Object.assign({},q,{component:!1}),({key:U,file:G,className:Y,style:Z})=>o.createElement(use,{key:U,locale:u,prefixCls:_,className:Y,style:Z,file:G,items:p,progress:E,listType:n,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,iconRender:V,actionIconRender:z,itemRender:R,onPreview:A,onDownload:L,onClose:D})),O&&o.createElement(Vr,Object.assign({},q,{visible:N,forceRender:!0}),({className:U,style:G})=>zr(O,Y=>({className:fe(Y.className,U),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:U?"none":void 0}),Y.style)}))))},fse=o.forwardRef(dse);var mse=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function u(v){try{m(r.next(v))}catch(p){c(p)}}function f(v){try{m(r.throw(v))}catch(p){c(p)}}function m(v){v.done?i(v.value):a(v.value).then(u,f)}m((r=r.apply(e,[])).next())})};const Cf=`__LIST_IGNORE_${Date.now()}__`,vse=(e,t)=>{const n=cr("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:c=!0,listType:u="text",onPreview:f,onDownload:m,onChange:v,onDrop:p,previewFile:h,disabled:b,locale:x,iconRender:C,isImageUrl:y,progress:w,prefixCls:$,className:E,type:O="select",children:N,style:R,itemRender:I,maxCount:j,data:M={},multiple:T=!1,hasControlInside:P=!0,action:A="",accept:L="",supportServerRender:D=!0,rootClassName:V}=e,z=o.useContext(la),B=b??z,_=e.customRequest||n.customRequest,[W,K]=Sn(a||[],{value:r,postState:Ie=>Ie??[]}),[F,q]=o.useState("drop"),U=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const Ie=Date.now();(r||[]).forEach((Pe,Fe)=>{!Pe.uid&&!Object.isFrozen(Pe)&&(Pe.uid=`__AUTO__${Ie}_${Fe}__`)})},[r]);const Y=(Ie,Pe,Fe)=>{let Xe=Ue(Pe),we=!1;j===1?Xe=Xe.slice(-1):j&&(we=Xe.length>j,Xe=Xe.slice(0,j)),Bo.flushSync(()=>{K(Xe)});const Se={file:Ie,fileList:Xe};Fe&&(Se.event=Fe),(!we||Ie.status==="removed"||Xe.some(ke=>ke.uid===Ie.uid))&&Bo.flushSync(()=>{v==null||v(Se)})},Z=(Ie,Pe)=>mse(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:Xe}=e;let we=Ie;if(Fe){const Se=yield Fe(Ie,Pe);if(Se===!1)return!1;if(delete Ie[Cf],Se===Cf)return Object.defineProperty(Ie,Cf,{value:!0,configurable:!0}),!1;typeof Se=="object"&&Se&&(we=Se)}return Xe&&(we=yield Xe(we)),we}),ie=Ie=>{const Pe=Ie.filter(we=>!we.file[Cf]);if(!Pe.length)return;const Fe=Pe.map(we=>cp(we.file));let Xe=Ue(W);Fe.forEach(we=>{Xe=up(we,Xe)}),Fe.forEach((we,Se)=>{let ke=we;if(Pe[Se].parsedFile)we.status="uploading";else{const{originFileObj:Ye}=we;let ot;try{ot=new File([Ye],Ye.name,{type:Ye.type})}catch{ot=new Blob([Ye],{type:Ye.type}),ot.name=Ye.name,ot.lastModifiedDate=new Date,ot.lastModified=new Date().getTime()}ot.uid=we.uid,ke=ot}Y(ke,Xe)})},re=(Ie,Pe,Fe)=>{try{typeof Ie=="string"&&(Ie=JSON.parse(Ie))}catch{}if(!Wy(Pe,W))return;const Xe=cp(Pe);Xe.status="done",Xe.percent=100,Xe.response=Ie,Xe.xhr=Fe;const we=up(Xe,W);Y(Xe,we)},X=(Ie,Pe)=>{if(!Wy(Pe,W))return;const Fe=cp(Pe);Fe.status="uploading",Fe.percent=Ie.percent;const Xe=up(Fe,W);Y(Fe,Xe,Ie)},ee=(Ie,Pe,Fe)=>{if(!Wy(Fe,W))return;const Xe=cp(Fe);Xe.error=Ie,Xe.response=Pe,Xe.status="error";const we=up(Xe,W);Y(Xe,we)},ne=Ie=>{let Pe;Promise.resolve(typeof i=="function"?i(Ie):i).then(Fe=>{var Xe;if(Fe===!1)return;const we=ase(Ie,W);we&&(Pe=Object.assign(Object.assign({},Ie),{status:"removed"}),W==null||W.forEach(Se=>{const ke=Pe.uid!==void 0?"uid":"name";Se[ke]===Pe[ke]&&!Object.isFrozen(Se)&&(Se.status="removed")}),(Xe=U.current)===null||Xe===void 0||Xe.abort(Pe),Y(Pe,we))})},Q=Ie=>{q(Ie.type),Ie.type==="drop"&&(p==null||p(Ie))};o.useImperativeHandle(t,()=>({onBatchStart:ie,onSuccess:re,onProgress:X,onError:ee,fileList:W,upload:U.current,nativeElement:G.current}));const{getPrefixCls:J,direction:ae,upload:se}=o.useContext(Mt),te=J("upload",$),de=Object.assign(Object.assign({onBatchStart:ie,onError:ee,onProgress:X,onSuccess:re},e),{customRequest:_,data:M,multiple:T,action:A,accept:L,supportServerRender:D,prefixCls:te,disabled:B,beforeUpload:Z,onChange:void 0,hasControlInside:P});delete de.className,delete de.style,(!N||B)&&delete de.id;const ge=`${te}-wrapper`,[Oe,Me,Ce]=Gle(te,ge),[me]=Wa("Upload",Vo.Upload),{showRemoveIcon:ye,showPreviewIcon:ve,showDownloadIcon:he,removeIcon:Ee,previewIcon:Le,downloadIcon:Be,extra:Ve}=typeof c=="boolean"?{}:c,qe=typeof ye>"u"?!B:ye,$e=(Ie,Pe)=>c?o.createElement(fse,{prefixCls:te,listType:u,items:W,previewFile:h,onPreview:f,onDownload:m,onRemove:ne,showRemoveIcon:qe,showPreviewIcon:ve,showDownloadIcon:he,removeIcon:Ee,previewIcon:Le,downloadIcon:Be,iconRender:C,extra:Ve,locale:Object.assign(Object.assign({},me),x),isImageUrl:y,progress:w,appendAction:Ie,appendActionVisible:Pe,itemRender:I,disabled:B}):Ie,je=fe(ge,E,V,Me,Ce,se==null?void 0:se.className,{[`${te}-rtl`]:ae==="rtl",[`${te}-picture-card-wrapper`]:u==="picture-card",[`${te}-picture-circle-wrapper`]:u==="picture-circle"}),Ae=Object.assign(Object.assign({},se==null?void 0:se.style),R);if(O==="drag"){const Ie=fe(Me,te,`${te}-drag`,{[`${te}-drag-uploading`]:W.some(Pe=>Pe.status==="uploading"),[`${te}-drag-hover`]:F==="dragover",[`${te}-disabled`]:B,[`${te}-rtl`]:ae==="rtl"});return Oe(o.createElement("span",{className:je,ref:G},o.createElement("div",{className:Ie,style:Ae,onDrop:Q,onDragOver:Q,onDragLeave:Q},o.createElement(Hx,Object.assign({},de,{ref:U,className:`${te}-btn`}),o.createElement("div",{className:`${te}-drag-container`},N))),$e()))}const De=fe(te,`${te}-select`,{[`${te}-disabled`]:B,[`${te}-hidden`]:!N}),We=o.createElement("div",{className:De,style:Ae},o.createElement(Hx,Object.assign({},de,{ref:U})));return Oe(u==="picture-card"||u==="picture-circle"?o.createElement("span",{className:je,ref:G},$e(We,!!N)):o.createElement("span",{className:je,ref:G},We,$e()))},p7=o.forwardRef(vse);var pse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gse=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:i}=e,c=pse(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return o.createElement(p7,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),i)}),wh=p7;wh.Dragger=gse;wh.LIST_IGNORE=Cf;var hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},bse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hse}))},Fu=o.forwardRef(bse),yse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},xse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:yse}))},Cse=o.forwardRef(xse),Sse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},wse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Sse}))},$se=o.forwardRef(wse),Ese={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},jse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ese}))},g7=o.forwardRef(jse),Nse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Ose=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Nse}))},Rse=o.forwardRef(Ose),Ise={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Mse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ise}))},os=o.forwardRef(Mse),Tse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},kse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Tse}))},Ys=o.forwardRef(kse),Pse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Dse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Pse}))},zse=o.forwardRef(Dse),Ase={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},_se=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ase}))},h7=o.forwardRef(_se),Lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},Bse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Lse}))},Bp=o.forwardRef(Bse),Hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},Fse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Hse}))},Zf=o.forwardRef(Fse),Vse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},Wse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Vse}))},Uy=o.forwardRef(Wse),Use={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},Kse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Use}))},Ri=o.forwardRef(Kse),qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"},Gse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:qse}))},sc=o.forwardRef(Gse),Xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},Yse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Xse}))},Jse=o.forwardRef(Yse),Qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Zse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Qse}))},b7=o.forwardRef(Zse),ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},tce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ece}))},nce=o.forwardRef(tce),rce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},ace=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:rce}))},Aj=o.forwardRef(ace),oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},ice=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:oce}))},lce=o.forwardRef(ice),sce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},cce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sce}))},Ea=o.forwardRef(cce),uce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},dce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:uce}))},Ky=o.forwardRef(dce),fce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},mce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:fce}))},vce=o.forwardRef(mce),pce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},gce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:pce}))},Fx=o.forwardRef(gce),hce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},bce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hce}))},yce=o.forwardRef(bce),xce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},Cce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:xce}))},Sce=o.forwardRef(Cce),wce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},$ce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wce}))},Ece=o.forwardRef($ce),jce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Nce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:jce}))},Oce=o.forwardRef(Nce),Rce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ice=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Rce}))},mg=o.forwardRef(Ice),Mce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},Tce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mce}))},$h=o.forwardRef(Tce),kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Pce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:kce}))},Eh=o.forwardRef(Pce),Dce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},zce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Dce}))},_j=o.forwardRef(zce),Ace={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},_ce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ace}))},Lce=o.forwardRef(_ce),Bce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},Hce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Bce}))},Fce=o.forwardRef(Hce),Vce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"},Wce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Vce}))},Uce=o.forwardRef(Wce),Kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},qce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Kce}))},y7=o.forwardRef(qce),Gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},Xce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Gce}))},x7=o.forwardRef(Xce),Yce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},Jce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Yce}))},Qce=o.forwardRef(Jce),Zce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},eue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Zce}))},tue=o.forwardRef(eue),nue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},rue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:nue}))},vg=o.forwardRef(rue),aue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},oue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:aue}))},ud=o.forwardRef(oue),iue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},lue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:iue}))},sue=o.forwardRef(lue),cue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},uue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:cue}))},due=o.forwardRef(uue),fue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},mue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:fue}))},em=o.forwardRef(mue),vue={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},pue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:vue}))},jS=o.forwardRef(pue),gue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},hue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:gue}))},tm=o.forwardRef(hue),bue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},yue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:bue}))},jh=o.forwardRef(yue),xue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Cue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:xue}))},Sue=o.forwardRef(Cue),wue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},$ue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wue}))},wi=o.forwardRef($ue),Eue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},jue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Eue}))},Nue=o.forwardRef(jue),Oue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Rue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Oue}))},Iue=o.forwardRef(Rue),Mue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},Tue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mue}))},kue=o.forwardRef(Tue),Pue={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Due=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Pue}))},zue=o.forwardRef(Due),Aue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},_ue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Aue}))},Hp=o.forwardRef(_ue),Lue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"},Bue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Lue}))},Hue=o.forwardRef(Bue),Fue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Vue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Fue}))},Wue=o.forwardRef(Vue),Uue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},Kue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Uue}))},Lj=o.forwardRef(Kue),que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},Gue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:que}))},Xue=o.forwardRef(Gue),Yue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Jue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Yue}))},cc=o.forwardRef(Jue),Que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"},Zue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Que}))},nm=o.forwardRef(Zue),ede={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},tde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ede}))},nde=o.forwardRef(tde),rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},ade=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:rde}))},ode=o.forwardRef(ade),ide={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},lde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ide}))},ho=o.forwardRef(lde),sde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},cde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sde}))},ude=o.forwardRef(cde),dde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},fde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:dde}))},NS=o.forwardRef(fde),mde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},vde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:mde}))},Bj=o.forwardRef(vde),pde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},gde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:pde}))},uc=o.forwardRef(gde),hde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},bde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hde}))},is=o.forwardRef(bde),yde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},xde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:yde}))},pg=o.forwardRef(xde),Cde={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},Sde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Cde}))},Hj=o.forwardRef(Sde),wde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},$de=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wde}))},rm=o.forwardRef($de),Ede={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},jde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ede}))},C7=o.forwardRef(jde),Nde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Ode=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Nde}))},OS=o.forwardRef(Ode),Rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},Ide=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Rde}))},S7=o.forwardRef(Ide),Mde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Tde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mde}))},Vx=o.forwardRef(Tde),kde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},Pde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:kde}))},Dde=o.forwardRef(Pde),zde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Ade=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:zde}))},_de=o.forwardRef(Ade);const Lde="0.1.95",su={version:Lde};async function tt(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const Or={list:()=>tt("/api/launchers"),running:()=>tt("/api/launchers/running"),create:e=>tt("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>tt(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>tt(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>tt(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await tt(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return tt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>tt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>tt(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Fj={get:()=>tt("/api/overview"),notifications:()=>tt("/api/overview/notifications")},Bde={list:()=>tt("/api/plugins")},Gi={list:e=>tt(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>tt("/api/clipboard/tagged"),remove:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>tt("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"}),copyImage:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copy-image`,{method:"POST"})},Xi={list:()=>tt("/api/group-tasks"),catalog:()=>tt("/api/group-tasks/catalog"),create:e=>tt("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>tt(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>tt(`/api/group-tasks/${e}/stop`,{method:"POST"})},qy={list:()=>tt("/api/port-diagnostics"),get:e=>tt(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>tt("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},w7={open:e=>tt("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>tt("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>tt("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Jn={status:()=>tt("/api/settings"),devConfigurations:()=>tt("/api/settings/dev-configurations"),selectDirectory:()=>tt("/api/settings/select-directory",{method:"POST"}),selectFile:()=>tt("/api/settings/select-file",{method:"POST"}),openDataDir:()=>tt("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>tt("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>tt("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveAiApiHost:e=>tt("/api/settings/ai-api-host",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({aiApiHost:e})}),saveJiraIssuePrefix:e=>tt("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>tt("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>tt("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>tt("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>tt("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>tt(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>tt("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>tt("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>tt("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},Vj={status:(e=!1)=>tt(`/api/updates${e?"?refresh=1":""}`),selfUpdate:(e="latest")=>tt("/api/updates/self-update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Hde={install:e=>tt("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Us={manage:(e,t)=>tt(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>tt("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})}),useSuggestedPrefix:()=>tt("/api/settings/dev-configurations/npm/use-prefix-suggestion",{method:"POST"})};Us.search=e=>tt("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const Gy={stats:()=>tt("/api/data-backup/stats"),export:async()=>{var r;const e=await fetch("/api/data-backup/export");if(!e.ok)throw new Error((await e.json().catch(()=>({}))).error||"Unable to export data backup.");const n=((r=(e.headers.get("Content-Disposition")||"").match(/filename="([^"]+)"/))==null?void 0:r[1])||"devbuddy-data-backup.tar.gz";return{blob:await e.blob(),filename:n}},import:e=>tt("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},Tf={get:()=>tt("/api/presentations"),save:e=>tt("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>tt("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},ks={check:e=>tt("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),aiReview:e=>tt(`/api/pr-review/ai-review/${encodeURIComponent(e)}`),rules:()=>tt("/api/pr-review/rules"),saveRules:(e,t,n)=>tt("/api/pr-review/rules",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({rules:e,customRules:t,fileFilters:n})}),myPrs:()=>tt("/api/pr-review/my-prs"),reviewPrs:()=>tt("/api/pr-review/review-prs"),comment:e=>tt("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},dp={load:e=>tt("/api/pr-conflicts/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:e})}),myConflicts:()=>tt("/api/pr-conflicts/my-conflicts"),resolve:e=>tt("/api/pr-conflicts/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),checkBranch:e=>tt("/api/pr-conflicts/check-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ra={list:()=>tt("/api/jira-filters"),create:e=>tt("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>tt(`/api/jira-filters/${e}/issues`),cloneIssue:e=>tt("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),templates:{list:()=>tt("/api/jira-filters/templates"),create:e=>tt("/api/jira-filters/templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/jira-filters/templates/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/jira-filters/templates/${e}`,{method:"DELETE"})},recentlyCreated:()=>tt("/api/jira-filters/recently-created"),recentlyCommented:()=>tt("/api/jira-filters/recently-commented"),recentlyMentioned:()=>tt("/api/jira-filters/recently-mentioned"),recentlyUpdated:()=>tt("/api/jira-filters/recently-updated")},Ma={list:()=>tt("/api/todos"),create:e=>tt("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>tt(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>tt(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>tt("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},fp={list:()=>tt("/api/memos"),create:e=>tt("/api/memos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/memos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/memos/${e}`,{method:"DELETE"})},Si={list:()=>tt("/api/mind-maps"),get:e=>tt(`/api/mind-maps/${encodeURIComponent(e)}`),resolveJiraIssue:e=>tt("/api/mind-maps/jira-issues/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),create:e=>tt("/api/mind-maps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/mind-maps/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/mind-maps/${encodeURIComponent(e)}`,{method:"DELETE"})},Ks={list:()=>tt("/api/static-pages"),create:e=>tt("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/static-pages/${e}`,{method:"DELETE"})},Eu={list:()=>tt("/api/errors"),log:e=>tt("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>tt("/api/errors",{method:"DELETE"}),remove:e=>tt(`/api/errors/${e}`,{method:"DELETE"})},Al={getData:()=>tt("/api/postman"),importCollection:e=>tt("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>tt("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>tt(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>tt(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>tt("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>tt("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Xy={status:()=>tt("/api/bookmark-sync/status"),preview:e=>tt(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>tt("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},Sf={scan:e=>tt("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>tt("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>tt("/api/file-organizer/history"),undo:e=>tt("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>tt("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Yi={listApps:()=>tt("/api/branch-sync/apps"),createApp:e=>tt("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>tt(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>tt(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>tt("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>tt("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>tt("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>tt(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},vo={config:()=>tt("/api/package-upgrade/config"),dependencyScan:()=>tt("/api/package-upgrade/dependency-scan"),dependencyRepositories:()=>tt("/api/package-upgrade/dependency-repositories"),saveDependencyRepositories:e=>tt("/api/package-upgrade/dependency-repositories",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({directories:e})}),saveConfig:e=>tt("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>tt("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),packageNames:e=>tt("/api/package-upgrade/repos/packages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),branches:e=>tt("/api/package-upgrade/repos/branches",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),cloneRepo:e=>tt(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>tt(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>tt("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Fde="modulepreload",Vde=function(e){return"/"+e},Wj={},Vu=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(m=>{if(m=Vde(m),m in Wj)return;Wj[m]=!0;const v=m.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${p}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Fde,v||(h.as="script"),h.crossOrigin="",h.href=m,f&&h.setAttribute("nonce",f),document.head.appendChild(h),v)return new Promise((b,x)=>{h.addEventListener("load",b),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function i(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};async function $7(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((m,v)=>{const p=new Image;p.onload=()=>m(p),p.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),p.src=r}),i=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),i.width=Math.max(1,Math.round(a.naturalWidth*u)),i.height=Math.max(1,Math.round(a.naturalHeight*u));const f=i.getContext("2d",{willReadFrequently:!0});return f.drawImage(a,0,0,i.width,i.height),{imageData:f.getImageData(0,0,i.width,i.height),width:i.width,height:i.height}}finally{URL.revokeObjectURL(r)}}async function Wde(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:i=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([Vu(()=>import("./index-_vMuByUV.js"),[]),$7(e)]),f=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:i}),m=new Blob([f],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([m],v,{type:"image/jpeg"})}const{Paragraph:Ude,Text:Kde,Title:qde}=Nn;function Ur({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:i="WORKBENCH",title:c,titleClassName:u="",titlePrefix:f,titleRowClassName:m=""}){const v=s.jsx(qde,{className:u||void 0,level:2,children:c});return s.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[s.jsxs("div",{className:n||void 0,children:[s.jsx(Kde,{className:"workspace-page-eyebrow",children:i}),f?s.jsxs("div",{className:m||void 0,children:[f,v]}):v,r?s.jsx(Ude,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const Uj=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Gde(e=!0){return e?Uj:Uj.filter(t=>t.value!=="safari")}function ir(e){e&&w7.open(e).catch(()=>{window.open(e,"_blank")})}function Nh(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Xde(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Text:sf}=Nn,cu=()=>new Intl.DateTimeFormat("en-CA").format(new Date),Yde=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function Jde({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let i=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,f=(m,v)=>{if(!u||!t)return m;const p=[];let h=0;u.lastIndex=0;for(const b of m.matchAll(u)){b.index>h&&p.push(m.slice(h,b.index));const x=b[0],C=Nh(t,x);p.push(s.jsx("a",{href:C,target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),ir(C)},children:x},`${v}-${b.index}`)),h=b.index+x.length}return h<m.length&&p.push(m.slice(h)),p};for(const m of e.matchAll(a)){m.index>i&&r.push(...f(e.slice(i,m.index),`txt-${m.index}`));const v=m[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(s.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),ir(v[2])},children:v[1]},m.index));else{const p=m[0].replace(/[),.;:!?]+$/,"");r.push(s.jsx("a",{href:p,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),ir(p)},children:p},m.index)),m[0].length>p.length&&r.push(m[0].slice(p.length))}i=m.index+m[0].length}return i<e.length&&r.push(...f(e.slice(i),"txt-end")),r}const Kj=e=>e.text||e.preview||"",qj=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;async function Qde(e){if(e.type==="image/png")return e;const t=URL.createObjectURL(e);try{const n=await new Promise((i,c)=>{const u=new window.Image;u.onload=()=>i(u),u.onerror=()=>c(new Error("Unable to decode clipboard image.")),u.src=t}),r=document.createElement("canvas");r.width=n.naturalWidth,r.height=n.naturalHeight;const a=r.getContext("2d");if(!a)throw new Error("Image canvas is unavailable.");return a.drawImage(n,0,0),await new Promise((i,c)=>{r.toBlob(u=>{u?i(u):c(new Error("Unable to encode clipboard image as PNG."))},"image/png")})}finally{URL.revokeObjectURL(t)}}function Ps(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function Zde({children:e}){const t=o.useRef(null),[n,r]=o.useState(!1);return o.useEffect(()=>{const a=t.current;if(!a)return;const i=()=>{r(a.scrollTop+a.clientHeight<a.scrollHeight-1)};i(),a.addEventListener("scroll",i,{passive:!0});const c=typeof ResizeObserver<"u"?new ResizeObserver(i):null;return c==null||c.observe(a),()=>{a.removeEventListener("scroll",i),c==null||c.disconnect()}},[e]),s.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[s.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),s.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function efe(){const{message:e}=_r.useApp(),[t,n]=o.useState(()=>{const X=localStorage.getItem("buddy_clipboard_enabled");return X!==null?X==="true":!0}),[r,a]=o.useState(!0),[i,c]=o.useState([]),[u,f]=o.useState(cu()),[m,v]=o.useState([]),[p,h]=o.useState([]),[b,x]=o.useState(null),[C,y]=o.useState(""),[w,$]=o.useState("all"),[E,O]=o.useState(null),[N,R]=o.useState(""),[I,j]=o.useState(""),[M,T]=o.useState(60),[P,A]=o.useState(!1),[L,D]=o.useState(!0);o.useEffect(()=>{Jn.status().then(X=>{if(X){if(X.isMac!==void 0&&A(X.isMac),X.clipboardEnabled!==void 0){const ee=X.clipboardEnabled!==!1;n(ee),localStorage.setItem("buddy_clipboard_enabled",String(ee))}X.clipboardImageEnabled!==void 0&&D(X.clipboardImageEnabled!==!1),X.clipboardDeduplicateMinutes!==void 0&&T(X.clipboardDeduplicateMinutes),X.domain&&R(X.domain),X.jiraIssuePrefix&&j(X.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const V=async X=>{n(X),localStorage.setItem("buddy_clipboard_enabled",String(X));try{const ne=(await Jn.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(ne),localStorage.setItem("buddy_clipboard_enabled",String(ne)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(ee){e.error(ee.message)}},z=async X=>{D(X);try{const ee=await Jn.saveClipboardImageEnabled(X);ee&&ee.clipboardImageEnabled!==void 0&&D(ee.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(ee){e.error(ee.message)}},B=async X=>{T(X);try{await Jn.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(ee){e.error(ee.message)}},_=async X=>{try{const[ee,ne]=await Promise.all([Gi.list(X),Gi.tagged().catch(()=>({items:[]}))]);c(ee.dates),v(ee.items),h(ne.items||[])}catch(ee){e.error(ee.message)}},W=async(X,ee)=>{const ne=(ee||"").trim();if(!ne)return;const Q=X.tags||[];if(Q.includes(ne)){x(null);return}const J=[...Q,ne],ae=X.date||u;try{await Gi.updateTags(ae,X.id,J),v(se=>se.map(te=>te.id===X.id?{...te,tags:J}:te)),h(se=>se.some(de=>de.id===X.id)?se.map(de=>de.id===X.id?{...de,tags:J}:de):[{...X,tags:J,date:ae},...se]),e.success("Tag added")}catch(se){e.error(se.message)}finally{x(null),y("")}},K=async(X,ee)=>{const Q=(X.tags||[]).filter(ae=>ae!==ee),J=X.date||u;try{await Gi.updateTags(J,X.id,Q),v(ae=>ae.map(se=>se.id===X.id?{...se,tags:Q}:se)),h(ae=>Q.length===0?ae.filter(se=>se.id!==X.id):ae.map(se=>se.id===X.id?{...se,tags:Q}:se)),e.success("Tag removed")}catch(ae){e.error(ae.message)}},F=o.useRef(cu());o.useEffect(()=>{if(!t)return;const X=()=>{const J=cu();if(J!==F.current){const ae=F.current;if(F.current=J,u===ae)return f(J),!0}return!1};X()||_(u);const ne=()=>{X()||_(u)};window.addEventListener("visibilitychange",ne),window.addEventListener("focus",ne);let Q=null;return u===cu()&&(Q=setInterval(()=>{document.visibilityState==="visible"&&_(u)},3e3)),()=>{window.removeEventListener("visibilitychange",ne),window.removeEventListener("focus",ne),Q&&clearInterval(Q)}},[u,t]);const q=async X=>{try{await Gi.remove(u,X),await _(u),e.success("Clipboard entry deleted.")}catch(ee){e.error(ee.message)}},U=async X=>{var ne;const ee=X.date||u;if(X.imageFile)try{if(!((ne=navigator.clipboard)!=null&&ne.write)||typeof window.ClipboardItem>"u")throw new Error("Image clipboard is not supported by this browser.");await Gi.copied(ee,X.id);const Q=await fetch(qj(X.imageFile));if(!Q.ok)throw new Error("Unable to load image.");const J=await Qde(await Q.blob());try{await navigator.clipboard.write([new ClipboardItem({"image/png":J})])}catch(ae){await Gi.copyImage(ee,X.id).catch(()=>{throw ae})}O(X.id),setTimeout(()=>{O(ae=>ae===X.id?null:ae)},1e3)}catch(Q){e.error("Failed to copy image: "+Q.message)}else navigator.clipboard.writeText(X.text||X.preview),Gi.copied(ee,X.id).catch(()=>{}),O(X.id),setTimeout(()=>{O(Q=>Q===X.id?null:Q)},1e3)},G=o.useMemo(()=>[...new Set([cu(),...i,u])],[i,u]);o.useEffect(()=>{if(!t)return;const X=ee=>{const ne=document.activeElement;if(ne&&(ne.tagName==="INPUT"||ne.tagName==="TEXTAREA"||ne.isContentEditable||ne.closest(".clipboard-tabs")))return;const Q=[...G].sort(),J=Q.indexOf(u);ee.key==="ArrowLeft"?J>0&&f(Q[J-1]):ee.key==="ArrowRight"&&J<Q.length-1&&J!==-1&&f(Q[J+1])};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[G,u,t]),o.useEffect(()=>{if(!t)return;const X=async ee=>{var J;const ne=document.activeElement;if(ne&&(ne.tagName==="INPUT"||ne.tagName==="TEXTAREA"||ne.isContentEditable))return;const Q=(J=ee.clipboardData)==null?void 0:J.items;if(Q){for(const ae of Q)if(ae.type.startsWith("image/")){const se=ae.getAsFile();if(se){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const te=await Wde(se);await Gi.uploadImage(te);const de=cu();f(de),await _(de),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(te){e.error({content:"Failed to save pasted image: "+te.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const Y=G.reduce((X,ee)=>{var ae;const[ne,Q,J]=ee.split("-");return X[ne]||(X[ne]={}),(ae=X[ne])[Q]||(ae[Q]=[]),X[ne][Q].includes(J)||X[ne][Q].push(J),X},{}),Z=Object.entries(Y).sort(([X],[ee])=>ee.localeCompare(X)).map(([X,ee])=>({value:X,label:X,children:Object.entries(ee).sort(([ne],[Q])=>Q.localeCompare(ne)).map(([ne,Q])=>({value:ne,label:ne,children:Q.sort().reverse().map(J=>({value:J,label:J}))}))})),ie=o.useMemo(()=>w==="tagged"?p:w==="all"?m:w==="image"?m.filter(X=>!!X.imageFile):m.filter(X=>!X.imageFile&&Ps(Kj(X),w,I)),[w,m,p,I]),re=o.useMemo(()=>{const X={all:m.length,tagged:p.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const ne of m)if(ne.imageFile)X.image++;else{const Q=Kj(ne);Ps(Q,"jira",I)&&X.jira++,Ps(Q,"account")&&X.account++,Ps(Q,"id")&&X.id++,Ps(Q,"url")&&X.url++,Ps(Q,"json")&&X.json++,Ps(Q,"code")&&X.code++}const ee=[{key:"all",label:`All (${X.all})`},{key:"tagged",label:`Tagged (${X.tagged})`},{key:"jira",label:`Jira (${X.jira})`},{key:"account",label:`Account (${X.account})`},{key:"id",label:`ID (${X.id})`},{key:"url",label:`Url (${X.url})`},{key:"json",label:`JSON (${X.json})`},{key:"code",label:`Code (${X.code})`}];return P&&ee.push({key:"image",label:`Img (${X.image})`}),ee},[m,p,I,P]);return o.useEffect(()=>{!P&&w==="image"&&$("all")},[P,w]),s.jsxs("div",{className:"clipboard-page",children:[s.jsx(Ur,{actions:s.jsxs("div",{className:"clipboard-controls",children:[s.jsxs(at,{size:16,align:"center",children:[s.jsx(Oi,{loading:r,checked:t,onChange:V,checkedChildren:"On",unCheckedChildren:"Off"}),s.jsx(cl,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:X=>(X==null?void 0:X.length)===3&&f(X.join("-")),placeholder:"Select date"})]}),s.jsxs("div",{className:"clipboard-settings",children:[s.jsxs("div",{className:"clipboard-setting-row",children:[s.jsx(sf,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),s.jsx(Tn,{size:"small",disabled:!t||r,value:M,onChange:B,className:"clipboard-deduplicate-select",options:Yde})]}),P&&s.jsxs("div",{className:"clipboard-setting-row",children:[s.jsx(sf,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),s.jsx(Oi,{size:"small",disabled:!t||r,checked:L,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard History"}),t?s.jsxs(s.Fragment,{children:[s.jsx(Aa,{className:"clipboard-tabs",activeKey:w,onChange:X=>{$(X),requestAnimationFrame(()=>{var ee;return(ee=document.activeElement)==null?void 0:ee.blur()})},onKeyDown:X=>{var ee;["ArrowLeft","ArrowRight"].includes(X.key)&&(X.preventDefault(),(ee=document.activeElement)==null||ee.blur())},items:re}),ie.length?s.jsx("div",{className:"clipboard-list",children:ie.map(X=>{const ee=X.date||u,ne=`/api/clipboard/${encodeURIComponent(ee)}/${encodeURIComponent(X.id)}`,Q=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return s.jsxs(At,{size:"small",className:"clipboard-item",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"clipboard-item-meta",children:[s.jsx(sf,{type:"secondary",children:Q}),X.date&&X.date!==u&&s.jsx(Nt,{style:{margin:0},children:X.date}),(X.tags||[]).map(J=>s.jsx(Nt,{color:"purple",closable:!0,onClose:ae=>{ae.preventDefault(),K(X,J)},style:{margin:0},children:J},J)),s.jsx(TC,{content:s.jsxs(at.Compact,{style:{width:200},children:[s.jsx(wt,{size:"small",placeholder:"Tag name",value:C,onChange:J=>y(J.target.value),onPressEnter:()=>W(X,C)}),s.jsx(Re,{size:"small",type:"primary",onClick:()=>W(X,C),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===X.id,onOpenChange:J=>{x(J?X.id:null),y("")},children:s.jsxs(Nt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[s.jsx(Gn,{})," Tag"]})})]}),X.imageFile?s.jsx("div",{className:"clipboard-image-wrap",children:s.jsx(yM,{src:qj(X.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):s.jsxs(s.Fragment,{children:[s.jsx(Zde,{children:s.jsx(Jde,{value:X.preview||X.text,domain:N,jiraIssuePrefix:I})}),X.contentFile&&s.jsxs("span",{className:"clipboard-original",children:[s.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",children:"View original content"}),s.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),s.jsxs("span",{className:"clipboard-actions",children:[s.jsx(un,{title:E===X.id?"Copied!":"Copy",children:s.jsx(Re,{type:"text",icon:E===X.id?s.jsx(il,{style:{color:"#52c41a"}}):s.jsx(xo,{}),onClick:()=>U(X)})}),s.jsx(un,{title:"Delete",children:s.jsx(Re,{type:"text",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>q(X.id)})})]})]},X.id)})}):s.jsx(Qt,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${u}.`}`})]}):s.jsx(At,{className:"clipboard-disabled-card",children:s.jsx(Qt,{image:s.jsx(pg,{style:{fontSize:48,color:"#9ca3af"}}),description:s.jsxs("div",{className:"clipboard-disabled-copy",children:[s.jsx(sf,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),s.jsx(sf,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),s.jsx(fs.BackTop,{visibilityHeight:240})]})}const E7=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function j7(e="vscode"){const t=E7.find(n=>n.value===e);return t?t.label:"VS Code"}function N7(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let i="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(i=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return i&&(u+=`&line=${i}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:Yy}=Nn;function tfe({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:i,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:f=>s.jsx(Yy,{strong:!0,children:f})},{title:"Scripts",dataIndex:"items",width:110,render:f=>s.jsxs(Yy,{type:"secondary",children:[f.length," scripts"]})},{title:"Actions",width:236,render:(f,m)=>{const v=m.items.every(p=>t.has(`${p.launcherId}:${p.scriptId}`));return s.jsxs(at,{children:[s.jsx(Re,{size:"small",danger:v,icon:v?s.jsx(pg,{}):s.jsx(cc,{}),onClick:()=>v?i(m):a(m),children:v?"Stop":"Start"}),s.jsx(Re,{size:"small",onClick:()=>r(m),children:"Edit"}),s.jsx(Re,{size:"small",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>c(m),children:"Delete"})]})}}];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"group-task-header",children:[s.jsx(Yy,{type:"secondary",children:"Start selected scripts across multiple services."}),s.jsx(Re,{type:"primary",icon:s.jsx(Gn,{}),onClick:n,children:"Add quick launch"})]}),e.length?s.jsx(er,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):s.jsx(Qt,{description:"No quick launches yet.",className:"group-task-empty"})]})}function am({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory",selectionType:i="directory"}){const{message:c}=_r.useApp(),[u,f]=o.useState(t),[m,v]=o.useState(null),[p,h]=o.useState(!1),b=async x=>{h(!0);try{const C=await Sf.browse(x||"~");v(C),f(C.currentPath)}catch(C){c.error(C.message||"Failed to read directory")}finally{h(!1)}};return o.useEffect(()=>{e&&b(t||"~")},[e,t]),s.jsx(xn,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:s.jsxs(Cr,{spinning:p,children:[s.jsx("div",{className:"file-browser-path-row",children:s.jsx(wt,{value:u,onChange:x=>f(x.target.value),onPressEnter:()=>b(u),addonAfter:s.jsx(Re,{size:"small",type:"text",onClick:()=>b(u),children:"Go"})})}),m&&s.jsxs("div",{children:[s.jsx("div",{className:"file-browser-parent-row",children:s.jsxs(Re,{size:"small",onClick:()=>b(m.parentPath),disabled:m.currentPath===m.parentPath,children:[s.jsx(os,{}),"Parent Directory"]})}),s.jsx("div",{className:"file-browser-list",children:m.subdirectories.length===0&&(i!=="file"||(m.files||[]).length===0)?s.jsx("div",{className:"file-browser-empty",children:"No items found"}):s.jsxs(s.Fragment,{children:[m.subdirectories.map(x=>s.jsxs("div",{className:"file-browser-item",onClick:()=>b(x.fullPath),children:[s.jsxs("span",{children:[s.jsx(oa,{className:"file-browser-icon"}),x.name]}),i==="directory"&&s.jsx(Re,{size:"small",type:"link",onClick:C=>{C.stopPropagation(),r(x.fullPath)},children:"Select Folder"})]},x.fullPath)),i==="file"&&(m.files||[]).map(x=>s.jsxs("div",{className:"file-browser-item",onClick:()=>r(x.fullPath),children:[s.jsxs("span",{children:[s.jsx(as,{className:"file-browser-icon"}),x.name]}),s.jsx(Re,{size:"small",type:"link",onClick:C=>{C.stopPropagation(),r(x.fullPath)},children:"Select File"})]},x.fullPath))]})}),i==="directory"&&s.jsx("div",{className:"file-browser-confirm-row",children:s.jsxs(Re,{type:"primary",onClick:()=>r(m.currentPath),children:["Confirm Path: ",m.currentPath]})})]})]})})}const{Text:Ds}=Nn,cf=(e,t)=>`${e}:${t}`,nfe=()=>s.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function rfe({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:i,onRun:c,onRunInstall:u,onRunPackage:f,onStop:m,onLogs:v,onPackageLogs:p}){const h=!!(t&&[...r].some(C=>C.startsWith(`${t.id}:`))),[b,x]=o.useState(()=>h);return o.useEffect(()=>{h&&x(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||x(!1)},[h]),s.jsx(bt.List,{name:"scripts",children:(C,{add:y,remove:w})=>{const $=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...C.map(R=>({...R,key:`custom-${R.key}`,kind:"custom"})),...$?[{key:"install",kind:"install",script:$}]:[],...(i||[]).map(R=>({key:`package-${R.id}`,kind:"package",script:R}))],O=b?E.filter(R=>{const I=R.kind==="custom"?e.getFieldValue(["scripts",R.name]):R.script;return t&&(I==null?void 0:I.id)&&r.has(cf(t.id,I.id))}):E,N=[{title:"Source",width:100,render:(R,I)=>s.jsx(Nt,{color:I.kind==="package"?"purple":I.kind==="install"?"green":"default",children:I.kind==="package"?"Package":I.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(R,I)=>{var P;const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=(j==null?void 0:j.name)===e.getFieldValue("startCommand"),T=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id));return s.jsxs(at,{direction:"vertical",size:1,style:{width:"100%"},children:[I.kind!=="custom"||T?s.jsxs(at,{size:4,children:[s.jsx(Ds,{strong:!0,children:(j==null?void 0:j.name)||((P=I.script)==null?void 0:P.name)}),M&&s.jsx(ho,{className:"start-script-icon"})]}):s.jsx(bt.Item,{noStyle:!0,name:[I.name,"name"],rules:[{required:!0,message:"Required"}],children:s.jsx(wt,{placeholder:"serve",allowClear:!0,suffix:M?s.jsx(ho,{className:"start-script-icon"}):null})}),T&&s.jsx(Jr,{status:"success",text:s.jsx(Ds,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(R,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id));return I.kind==="package"?s.jsxs(at,{direction:"vertical",size:0,children:[s.jsxs(Ds,{code:!0,children:[n," run ",I.script.name]}),s.jsx(Ds,{type:"secondary",style:{fontSize:12},children:I.script.command})]}):I.kind==="install"?s.jsx(Ds,{code:!0,children:I.script.command}):M?s.jsx(Ds,{code:!0,children:j==null?void 0:j.command}):s.jsx(bt.Item,{noStyle:!0,name:[I.name,"command"],rules:[{required:!0,message:"Required"}],children:s.jsx(wt,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(R,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id)),T=t&&(j!=null&&j.id)&&a[cf(t.id,j.id)]||0;return s.jsxs(at,{size:2,children:[t&&s.jsx(un,{title:M?"Stop":"Start",children:s.jsx(Re,{type:"text",danger:M,icon:M?s.jsx(nfe,{}):s.jsx(Xue,{}),onClick:()=>M?m(j):I.kind==="package"?f(j):I.kind==="install"?u(j):c(j),disabled:!(j!=null&&j.id)})}),s.jsx(un,{title:"Logs",children:s.jsx(Jr,{count:T,size:"small",offset:[-2,2],children:s.jsx(Re,{type:"text",icon:s.jsx(vi,{}),onClick:()=>I.kind==="package"?p(j):v(j),disabled:!t||!(j!=null&&j.id)})})}),I.kind==="custom"&&!M&&s.jsx(un,{title:"Remove",children:s.jsx(Re,{type:"text",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>w(I.name)})})]})}}];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"script-header",children:[s.jsx(Em,{orientation:"left",children:"Scripts"}),s.jsxs(at,{size:"middle",align:"center",children:[s.jsxs("label",{className:"script-running-filter",children:[s.jsx(Oi,{size:"small",checked:b,onChange:x,disabled:!t}),s.jsx(Ds,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:()=>{x(!1),y({name:"",command:""})},children:"Add script"})]})]}),s.jsx(er,{size:"small",rowKey:"key",pagination:!1,loading:i===null,dataSource:O,columns:N})]})}})}const afe=e=>s.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function ofe(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?s.jsx(afe,{style:{color:"#2584FF"}}):t.includes("github")?s.jsx(tue,{style:{color:"#24292e"}}):t.includes("gitlab")?s.jsx(vg,{style:{color:"#fc6d26"}}):s.jsx(ud,{className:"repo-generic-icon"})}function O7({repoUrl:e,style:t}){if(!e)return null;const n=ofe(e);return n?s.jsx(un,{title:"Open repository in browser",children:s.jsx(Re,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),ir(e)},style:t})}):null}const ife=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function lfe({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:i,onSave:c,onRun:u,onRunInstall:f,onRunPackage:m,onStop:v,onLogs:p,onDelete:h}){const{message:b,modal:x}=_r.useApp(),[C]=bt.useForm(),[y,w]=o.useState(null),[$,E]=o.useState(!1),O=j=>{if(j&&(C.setFieldValue("folder",j),!C.getFieldValue("alias"))){const T=j.split(/[/\\]/).filter(Boolean);T.length>0&&C.setFieldValue("alias",T[T.length-1])}E(!1)},N=async()=>{const j=String(C.getFieldValue("folder")||"").trim();if(!j){b.warning("Set a project folder first.");return}try{await Jn.openFolder(j)}catch(M){b.error(M.message)}},R=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await h(t)}catch(j){b.error(j.message)}}})};o.useEffect(()=>{e&&(C.resetFields(),C.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ife()),w(t?null:[]),t&&Or.packageScripts(t.id).then(j=>w(j.scripts)).catch(()=>w([])))},[e,t,C]);const I=async()=>{try{const j=(C.getFieldValue("scripts")||[]).filter(P=>{var A,L;return((A=P==null?void 0:P.name)==null?void 0:A.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});C.setFieldValue("scripts",j);const M=await C.validateFields(["alias","folder","groupName","startCommand"]),T={...C.getFieldsValue(!0),...M,scripts:j};await c(T)}catch(j){if(j!=null&&j.errorFields)return;b.error(j.message)}};return s.jsxs(xn,{title:t?s.jsxs(at,{align:"center",size:6,children:[s.jsxs("span",{children:["Service details · ",t.alias]}),s.jsx(O7,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:i,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:s.jsxs("div",{className:"service-modal-footer",children:[t?s.jsx(Re,{type:"primary",danger:!0,onClick:R,children:"Delete service"}):s.jsx("div",{}),s.jsxs(at,{children:[s.jsx(Re,{onClick:i,children:"Cancel"}),s.jsx(Re,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:[s.jsxs(bt,{form:C,layout:"vertical",children:[s.jsx(_g,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:s.jsxs(_o,{gutter:[16,0],children:[s.jsx(Zn,{xs:24,sm:12,children:s.jsx(bt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:s.jsx(wt,{placeholder:"Service name",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:12,children:s.jsx(bt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:s.jsx(wt,{prefix:s.jsx(Re,{type:"text",htmlType:"button",icon:s.jsx(oa,{}),onClick:N,"aria-label":"Open project folder",title:"Open project folder",style:{color:"#8c8c8c",padding:"0 4px"}}),suffix:s.jsx(Re,{type:"text",size:"small",icon:s.jsx(oa,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{label:"Group",name:"groupName",children:s.jsx(Au,{options:n.map(j=>({value:j})),placeholder:"Group name",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:s.jsx(Au,{options:["npm","pnpm","yarn"].map(j=>({value:j})),placeholder:"npm",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.scripts!==M.scripts,children:()=>{const j=(C.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(y||[]).map(P=>P.name),T=[...new Set([...j,...M])].map(P=>({label:P,value:P}));return s.jsx(bt.Item,{label:"Start script name",name:"startCommand",children:s.jsx(Tn,{placeholder:"Select start script",allowClear:!0,options:T})})}})})]})}]}),s.jsx(bt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.executor!==M.executor||j.startCommand!==M.startCommand||j.scripts!==M.scripts,children:()=>s.jsx(rfe,{form:C,editing:t,executor:C.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:y,onRun:j=>u(t,j),onRunInstall:()=>f(t),onRunPackage:j=>m(t,j),onStop:j=>v(t,j.id),onLogs:j=>p(t,j),onPackageLogs:j=>p(t,j,!0)})})]}),s.jsx(am,{open:$,initialPath:C.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:O,title:"Select Project Directory"})]})}const{Text:sfe}=Nn;function cfe({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:i}=_r.useApp(),[c]=bt.useForm();o.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(m=>`${m.launcherId}|${m.scriptId}`))||[]}))},[e,t,c]);const u=o.useMemo(()=>Object.entries(n.reduce((m,v)=>{const p=v.groupName||"Ungrouped";return(m[p]||(m[p]=[])).push(v),m},{})).sort(([m],[v])=>m.localeCompare(v)).map(([m,v])=>({key:m,label:m,children:s.jsx("div",{className:"group-task-projects",children:v.map(p=>s.jsx(At,{size:"small",title:p.alias,children:s.jsx(at,{direction:"vertical",children:p.scripts.map(h=>s.jsxs(sr,{value:`${p.id}|${h.id}`,children:[h.name," ",s.jsxs(sfe,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},p.id))})})),[n]),f=async()=>{try{const m=await c.validateFields(),v={name:m.name,items:m.items.map(p=>{const[h,b]=p.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(m){m!=null&&m.errorFields||i.error(m.message)}};return s.jsx(xn,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:f,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:s.jsxs(bt,{form:c,layout:"vertical",children:[s.jsx(bt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:s.jsx(wt,{placeholder:"Start local stack",allowClear:!0})}),s.jsx(bt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:s.jsx(sr.Group,{className:"group-task-selector",children:s.jsx(Aa,{items:u})})})]})})}const Gj={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function Wx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,i]=o.useState(""),[c,u]=o.useState("");o.useEffect(()=>{t&&r(t),Jn.status().then(p=>{p!=null&&p.defaultEditor&&!t&&r(p.defaultEditor),p!=null&&p.domain&&i(p.domain),p!=null&&p.jiraIssuePrefix&&u(p.jiraIssuePrefix)}).catch(()=>{})},[t]);const f=(c||"").split(/[\s,]+/).filter(Boolean).map(p=>p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),m=f.length>0&&a?new RegExp(`\\b(?:${f.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(p,h)=>{let b="";const x=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((N,R)=>{const I=N.match(/^\u001b\[([0-9;]*)m$/);if(I){const M=I[1].split(";").map(Number);return b=M.includes(0)?"":Gj[M.find(T=>Gj[T])]||b,null}if(!N)return null;const j=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(N)?"log-error":/\b(warn|warning)\b/i.test(N)?"log-warning":/\b(success|ready|started|listening)\b/i.test(N)?"log-success":"");return s.jsx("span",{className:j,children:N},`${E}-${R}`)}),C=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,y=m&&m.test(p);return!p.includes("http")&&!p.includes("/")&&!y?x(p,`${h}-0`):p.split(C).map(($,E)=>{if(!$)return null;const O=`${h}-${E}`;if(/^https?:\/\//.test($.replace(/\u001b\[[0-9;]*m/g,""))){const R=$.replace(/\u001b\[[0-9;]*m/g,""),I=R.replace(/[),.;:!?]+$/,""),j=R.slice(I.length);return s.jsxs("span",{children:[s.jsx("a",{className:"log-link",href:I,target:"_blank",rel:"noreferrer",onClick:M=>{M.preventDefault(),ir(I)},children:x($.slice(0,$.length-j.length),`${O}-url`)}),j&&x(j,`${O}-suf`)]},O)}const N=$.replace(/\u001b\[[0-9;]*m/g,"");if(N.startsWith("/")){const[,R,I=""]=N.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(R){const j=N7(n,R,I);return s.jsx("a",{className:"log-link",href:j,target:"_blank",rel:"noreferrer",title:`Open in ${j7(n)}`,children:x($,O)},O)}}if(m&&a&&(m.lastIndex=0,m.test(N))){const R=[];let I=0;m.lastIndex=0;for(const j of N.matchAll(m)){j.index>I&&R.push(x(N.slice(I,j.index),`${O}-sub-${j.index}`));const M=j[0],T=Nh(a,M);R.push(s.jsx("a",{className:"log-link",href:T,target:"_blank",rel:"noreferrer",onClick:P=>{P.preventDefault(),ir(T)},children:M},`${O}-jira-${j.index}`)),I=j.index+M.length}return I<N.length&&R.push(x(N.slice(I),`${O}-sub-end`)),s.jsx("span",{children:R},O)}return x($,O)})};return s.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
496
|
+
`]:{zIndex:10,width:r,margin:`0 ${ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${u}-thumbnail, ${u}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${u}-name`]:{display:"none",textAlign:"center"},[`${u}-file + ${u}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ce(i(e.paddingXS).mul(2).equal())})`},[`${u}-uploading`]:{[`&${u}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${u}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ce(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Ule=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Kle=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},bn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},qle=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Gle=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:i}=e,c=an(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Kle(c),Ble(c),Vle(c),Wle(c),Hle(c),Fle(c),Ule(c),fm(c)]},qle);var Xle={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Yle=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Xle}))},Jle=o.forwardRef(Yle),Qle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Zle=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Qle}))},ese=o.forwardRef(Zle),tse={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},nse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:tse}))},rse=o.forwardRef(nse);function cp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function up(e,t){const n=Ue(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function Wy(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function ase(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const ose=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},v7=e=>e.indexOf("image/")===0,ise=e=>{if(e.type&&!e.thumbUrl)return v7(e.type);const t=e.thumbUrl||e.url||"",n=ose(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},zl=200;function lse(e){return new Promise(t=>{if(!e.type||!v7(e.type)){t("");return}const n=document.createElement("canvas");n.width=zl,n.height=zl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${zl}px; height: ${zl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:c}=a;let u=zl,f=zl,m=0,v=0;i>c?(f=c*(zl/i),v=-(f-u)/2):(u=i*(zl/c),m=-(u-f)/2),r.drawImage(a,m,v,u,f);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(p)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var sse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},cse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sse}))},oi=o.forwardRef(cse);const use=o.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:c,progress:u,iconRender:f,actionIconRender:m,itemRender:v,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:C,removeIcon:y,downloadIcon:w,extra:$,onPreview:E,onDownload:O,onClose:N},R)=>{var I,j;const{status:M}=i,[T,P]=o.useState(M);o.useEffect(()=>{M!=="removed"&&P(M)},[M]);const[A,L]=o.useState(!1);o.useEffect(()=>{const Q=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(Q)}},[]);const D=f(i);let V=o.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!i.thumbUrl&&!i.url){const Q=fe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});V=o.createElement("div",{className:Q},D)}else{const Q=p!=null&&p(i)?o.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):D,J=fe(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(i)});V=o.createElement("a",{className:J,onClick:ae=>E(i,ae),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const z=fe(`${e}-list-item`,`${e}-list-item-${T}`),B=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,_=(typeof b=="function"?b(i):b)?m((typeof y=="function"?y(i):y)||o.createElement(Kn,null),()=>N(i),e,r.removeFile,!0):null,W=(typeof x=="function"?x(i):x)&&T==="done"?m((typeof w=="function"?w(i):w)||o.createElement(oi,null),()=>O(i),e,r.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:fe(`${e}-list-item-actions`,{picture:a==="picture"})},W,_),F=typeof $=="function"?$(i):$,q=F&&o.createElement("span",{className:`${e}-list-item-extra`},F),U=fe(`${e}-list-item-name`),G=i.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:i.name},B,{href:i.url,onClick:Q=>E(i,Q)}),i.name,q):o.createElement("span",{key:"view",className:U,onClick:Q=>E(i,Q),title:i.name},i.name,q),Y=(typeof h=="function"?h(i):h)&&(i.url||i.thumbUrl)?o.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>E(i,Q),title:r.previewFile},typeof C=="function"?C(i):C||o.createElement(od,null)):null,Z=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&o.createElement("span",{className:`${e}-list-item-actions`},Y,T==="done"&&W,_),{getPrefixCls:ie}=o.useContext(Mt),re=ie(),X=o.createElement("div",{className:z},V,G,K,Z,A&&o.createElement(Vr,{motionName:`${re}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:Q})=>{const J="percent"in i?o.createElement(Rm,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},u)):null;return o.createElement("div",{className:fe(`${e}-list-item-progress`,Q)},J)})),ee=i.response&&typeof i.response=="string"?i.response:((I=i.error)===null||I===void 0?void 0:I.statusText)||((j=i.error)===null||j===void 0?void 0:j.message)||r.uploadError,ne=T==="error"?o.createElement(un,{title:ee,getPopupContainer:Q=>Q.parentNode},X):X;return o.createElement("div",{className:fe(`${e}-list-item-container`,t),style:n,ref:R},v?v(ne,i,c,{download:O.bind(null,i),preview:E.bind(null,i),remove:N.bind(null,i)}):ne)}),dse=(e,t)=>{const{listType:n="text",previewFile:r=lse,onPreview:a,onDownload:i,onRemove:c,locale:u,iconRender:f,isImageUrl:m=ise,prefixCls:v,items:p=[],showPreviewIcon:h=!0,showRemoveIcon:b=!0,showDownloadIcon:x=!1,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:N=!0,itemRender:R,disabled:I}=e,[,j]=uC(),[M,T]=o.useState(!1),P=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(G=>{U.thumbUrl=G||"",j()}))})},[n,p,r]),o.useEffect(()=>{T(!0)},[]);const A=(U,G)=>{if(a)return G==null||G.preventDefault(),a(U)},L=U=>{typeof i=="function"?i(U):U.url&&window.open(U.url)},D=U=>{c==null||c(U)},V=U=>{if(f)return f(U,n);const G=U.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?o.createElement(go,null):u.uploading,Z=m!=null&&m(U)?o.createElement(rse,null):o.createElement(Jle,null);return G?Y:Z}return G?o.createElement(go,null):o.createElement(ese,null)},z=(U,G,Y,Z,ie)=>{const re={type:"text",size:"small",title:Z,onClick:X=>{var ee,ne;G(),o.isValidElement(U)&&((ne=(ee=U.props).onClick)===null||ne===void 0||ne.call(ee,X))},className:`${Y}-list-item-action`,disabled:ie?I:!1};return o.isValidElement(U)?o.createElement(Re,Object.assign({},re,{icon:zr(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):o.createElement(Re,Object.assign({},re),o.createElement("span",null,U))};o.useImperativeHandle(t,()=>({handlePreview:A,handleDownload:L}));const{getPrefixCls:B}=o.useContext(Mt),_=B("upload",v),W=B(),K=fe(`${_}-list`,`${_}-list-${n}`),F=o.useMemo(()=>kn(Du(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),q=Object.assign(Object.assign({},P?{}:F),{motionDeadline:2e3,motionName:`${_}-${P?"animate-inline":"animate"}`,keys:Ue(p.map(U=>({key:U.uid,file:U}))),motionAppear:M});return o.createElement("div",{className:K},o.createElement(lC,Object.assign({},q,{component:!1}),({key:U,file:G,className:Y,style:Z})=>o.createElement(use,{key:U,locale:u,prefixCls:_,className:Y,style:Z,file:G,items:p,progress:E,listType:n,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,iconRender:V,actionIconRender:z,itemRender:R,onPreview:A,onDownload:L,onClose:D})),O&&o.createElement(Vr,Object.assign({},q,{visible:N,forceRender:!0}),({className:U,style:G})=>zr(O,Y=>({className:fe(Y.className,U),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:U?"none":void 0}),Y.style)}))))},fse=o.forwardRef(dse);var mse=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(c){c(i)})}return new(n||(n=Promise))(function(i,c){function u(v){try{m(r.next(v))}catch(p){c(p)}}function f(v){try{m(r.throw(v))}catch(p){c(p)}}function m(v){v.done?i(v.value):a(v.value).then(u,f)}m((r=r.apply(e,[])).next())})};const Cf=`__LIST_IGNORE_${Date.now()}__`,vse=(e,t)=>{const n=cr("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:c=!0,listType:u="text",onPreview:f,onDownload:m,onChange:v,onDrop:p,previewFile:h,disabled:b,locale:x,iconRender:C,isImageUrl:y,progress:w,prefixCls:$,className:E,type:O="select",children:N,style:R,itemRender:I,maxCount:j,data:M={},multiple:T=!1,hasControlInside:P=!0,action:A="",accept:L="",supportServerRender:D=!0,rootClassName:V}=e,z=o.useContext(la),B=b??z,_=e.customRequest||n.customRequest,[W,K]=Sn(a||[],{value:r,postState:Ie=>Ie??[]}),[F,q]=o.useState("drop"),U=o.useRef(null),G=o.useRef(null);o.useMemo(()=>{const Ie=Date.now();(r||[]).forEach((Pe,Fe)=>{!Pe.uid&&!Object.isFrozen(Pe)&&(Pe.uid=`__AUTO__${Ie}_${Fe}__`)})},[r]);const Y=(Ie,Pe,Fe)=>{let Xe=Ue(Pe),we=!1;j===1?Xe=Xe.slice(-1):j&&(we=Xe.length>j,Xe=Xe.slice(0,j)),Bo.flushSync(()=>{K(Xe)});const Se={file:Ie,fileList:Xe};Fe&&(Se.event=Fe),(!we||Ie.status==="removed"||Xe.some(ke=>ke.uid===Ie.uid))&&Bo.flushSync(()=>{v==null||v(Se)})},Z=(Ie,Pe)=>mse(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:Xe}=e;let we=Ie;if(Fe){const Se=yield Fe(Ie,Pe);if(Se===!1)return!1;if(delete Ie[Cf],Se===Cf)return Object.defineProperty(Ie,Cf,{value:!0,configurable:!0}),!1;typeof Se=="object"&&Se&&(we=Se)}return Xe&&(we=yield Xe(we)),we}),ie=Ie=>{const Pe=Ie.filter(we=>!we.file[Cf]);if(!Pe.length)return;const Fe=Pe.map(we=>cp(we.file));let Xe=Ue(W);Fe.forEach(we=>{Xe=up(we,Xe)}),Fe.forEach((we,Se)=>{let ke=we;if(Pe[Se].parsedFile)we.status="uploading";else{const{originFileObj:Ye}=we;let ot;try{ot=new File([Ye],Ye.name,{type:Ye.type})}catch{ot=new Blob([Ye],{type:Ye.type}),ot.name=Ye.name,ot.lastModifiedDate=new Date,ot.lastModified=new Date().getTime()}ot.uid=we.uid,ke=ot}Y(ke,Xe)})},re=(Ie,Pe,Fe)=>{try{typeof Ie=="string"&&(Ie=JSON.parse(Ie))}catch{}if(!Wy(Pe,W))return;const Xe=cp(Pe);Xe.status="done",Xe.percent=100,Xe.response=Ie,Xe.xhr=Fe;const we=up(Xe,W);Y(Xe,we)},X=(Ie,Pe)=>{if(!Wy(Pe,W))return;const Fe=cp(Pe);Fe.status="uploading",Fe.percent=Ie.percent;const Xe=up(Fe,W);Y(Fe,Xe,Ie)},ee=(Ie,Pe,Fe)=>{if(!Wy(Fe,W))return;const Xe=cp(Fe);Xe.error=Ie,Xe.response=Pe,Xe.status="error";const we=up(Xe,W);Y(Xe,we)},ne=Ie=>{let Pe;Promise.resolve(typeof i=="function"?i(Ie):i).then(Fe=>{var Xe;if(Fe===!1)return;const we=ase(Ie,W);we&&(Pe=Object.assign(Object.assign({},Ie),{status:"removed"}),W==null||W.forEach(Se=>{const ke=Pe.uid!==void 0?"uid":"name";Se[ke]===Pe[ke]&&!Object.isFrozen(Se)&&(Se.status="removed")}),(Xe=U.current)===null||Xe===void 0||Xe.abort(Pe),Y(Pe,we))})},Q=Ie=>{q(Ie.type),Ie.type==="drop"&&(p==null||p(Ie))};o.useImperativeHandle(t,()=>({onBatchStart:ie,onSuccess:re,onProgress:X,onError:ee,fileList:W,upload:U.current,nativeElement:G.current}));const{getPrefixCls:J,direction:ae,upload:se}=o.useContext(Mt),te=J("upload",$),de=Object.assign(Object.assign({onBatchStart:ie,onError:ee,onProgress:X,onSuccess:re},e),{customRequest:_,data:M,multiple:T,action:A,accept:L,supportServerRender:D,prefixCls:te,disabled:B,beforeUpload:Z,onChange:void 0,hasControlInside:P});delete de.className,delete de.style,(!N||B)&&delete de.id;const ge=`${te}-wrapper`,[Oe,Me,Ce]=Gle(te,ge),[me]=Wa("Upload",Vo.Upload),{showRemoveIcon:ye,showPreviewIcon:ve,showDownloadIcon:he,removeIcon:Ee,previewIcon:Le,downloadIcon:Be,extra:Ve}=typeof c=="boolean"?{}:c,qe=typeof ye>"u"?!B:ye,$e=(Ie,Pe)=>c?o.createElement(fse,{prefixCls:te,listType:u,items:W,previewFile:h,onPreview:f,onDownload:m,onRemove:ne,showRemoveIcon:qe,showPreviewIcon:ve,showDownloadIcon:he,removeIcon:Ee,previewIcon:Le,downloadIcon:Be,iconRender:C,extra:Ve,locale:Object.assign(Object.assign({},me),x),isImageUrl:y,progress:w,appendAction:Ie,appendActionVisible:Pe,itemRender:I,disabled:B}):Ie,je=fe(ge,E,V,Me,Ce,se==null?void 0:se.className,{[`${te}-rtl`]:ae==="rtl",[`${te}-picture-card-wrapper`]:u==="picture-card",[`${te}-picture-circle-wrapper`]:u==="picture-circle"}),Ae=Object.assign(Object.assign({},se==null?void 0:se.style),R);if(O==="drag"){const Ie=fe(Me,te,`${te}-drag`,{[`${te}-drag-uploading`]:W.some(Pe=>Pe.status==="uploading"),[`${te}-drag-hover`]:F==="dragover",[`${te}-disabled`]:B,[`${te}-rtl`]:ae==="rtl"});return Oe(o.createElement("span",{className:je,ref:G},o.createElement("div",{className:Ie,style:Ae,onDrop:Q,onDragOver:Q,onDragLeave:Q},o.createElement(Hx,Object.assign({},de,{ref:U,className:`${te}-btn`}),o.createElement("div",{className:`${te}-drag-container`},N))),$e()))}const De=fe(te,`${te}-select`,{[`${te}-disabled`]:B,[`${te}-hidden`]:!N}),We=o.createElement("div",{className:De,style:Ae},o.createElement(Hx,Object.assign({},de,{ref:U})));return Oe(u==="picture-card"||u==="picture-circle"?o.createElement("span",{className:je,ref:G},$e(We,!!N)):o.createElement("span",{className:je,ref:G},We,$e()))},p7=o.forwardRef(vse);var pse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gse=o.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:i}=e,c=pse(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return o.createElement(p7,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),i)}),wh=p7;wh.Dragger=gse;wh.LIST_IGNORE=Cf;var hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},bse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hse}))},Fu=o.forwardRef(bse),yse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},xse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:yse}))},Cse=o.forwardRef(xse),Sse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},wse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Sse}))},$se=o.forwardRef(wse),Ese={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},jse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ese}))},g7=o.forwardRef(jse),Nse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Ose=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Nse}))},Rse=o.forwardRef(Ose),Ise={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Mse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ise}))},os=o.forwardRef(Mse),Tse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},kse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Tse}))},Ys=o.forwardRef(kse),Pse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Dse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Pse}))},zse=o.forwardRef(Dse),Ase={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},_se=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ase}))},h7=o.forwardRef(_se),Lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},Bse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Lse}))},Bp=o.forwardRef(Bse),Hse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},Fse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Hse}))},Zf=o.forwardRef(Fse),Vse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},Wse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Vse}))},Uy=o.forwardRef(Wse),Use={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},Kse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Use}))},Ri=o.forwardRef(Kse),qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"},Gse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:qse}))},sc=o.forwardRef(Gse),Xse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},Yse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Xse}))},Jse=o.forwardRef(Yse),Qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Zse=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Qse}))},b7=o.forwardRef(Zse),ece={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},tce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ece}))},nce=o.forwardRef(tce),rce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},ace=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:rce}))},Aj=o.forwardRef(ace),oce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},ice=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:oce}))},lce=o.forwardRef(ice),sce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},cce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sce}))},Ea=o.forwardRef(cce),uce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},dce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:uce}))},Ky=o.forwardRef(dce),fce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},mce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:fce}))},vce=o.forwardRef(mce),pce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},gce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:pce}))},Fx=o.forwardRef(gce),hce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},bce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hce}))},yce=o.forwardRef(bce),xce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},Cce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:xce}))},Sce=o.forwardRef(Cce),wce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},$ce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wce}))},Ece=o.forwardRef($ce),jce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Nce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:jce}))},Oce=o.forwardRef(Nce),Rce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ice=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Rce}))},mg=o.forwardRef(Ice),Mce={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},Tce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mce}))},$h=o.forwardRef(Tce),kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Pce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:kce}))},Eh=o.forwardRef(Pce),Dce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},zce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Dce}))},_j=o.forwardRef(zce),Ace={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},_ce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ace}))},Lce=o.forwardRef(_ce),Bce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},Hce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Bce}))},Fce=o.forwardRef(Hce),Vce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"},Wce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Vce}))},Uce=o.forwardRef(Wce),Kce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},qce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Kce}))},y7=o.forwardRef(qce),Gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},Xce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Gce}))},x7=o.forwardRef(Xce),Yce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},Jce=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Yce}))},Qce=o.forwardRef(Jce),Zce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},eue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Zce}))},tue=o.forwardRef(eue),nue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},rue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:nue}))},vg=o.forwardRef(rue),aue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},oue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:aue}))},ud=o.forwardRef(oue),iue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},lue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:iue}))},sue=o.forwardRef(lue),cue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},uue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:cue}))},due=o.forwardRef(uue),fue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},mue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:fue}))},em=o.forwardRef(mue),vue={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},pue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:vue}))},jS=o.forwardRef(pue),gue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},hue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:gue}))},tm=o.forwardRef(hue),bue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},yue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:bue}))},jh=o.forwardRef(yue),xue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Cue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:xue}))},Sue=o.forwardRef(Cue),wue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},$ue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wue}))},wi=o.forwardRef($ue),Eue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},jue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Eue}))},Nue=o.forwardRef(jue),Oue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Rue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Oue}))},Iue=o.forwardRef(Rue),Mue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},Tue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mue}))},kue=o.forwardRef(Tue),Pue={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Due=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Pue}))},zue=o.forwardRef(Due),Aue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},_ue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Aue}))},Hp=o.forwardRef(_ue),Lue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"},Bue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Lue}))},Hue=o.forwardRef(Bue),Fue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Vue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Fue}))},Wue=o.forwardRef(Vue),Uue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},Kue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Uue}))},Lj=o.forwardRef(Kue),que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},Gue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:que}))},Xue=o.forwardRef(Gue),Yue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Jue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Yue}))},cc=o.forwardRef(Jue),Que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"},Zue=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Que}))},nm=o.forwardRef(Zue),ede={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},tde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ede}))},nde=o.forwardRef(tde),rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},ade=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:rde}))},ode=o.forwardRef(ade),ide={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},lde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:ide}))},ho=o.forwardRef(lde),sde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},cde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:sde}))},ude=o.forwardRef(cde),dde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},fde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:dde}))},NS=o.forwardRef(fde),mde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},vde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:mde}))},Bj=o.forwardRef(vde),pde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},gde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:pde}))},uc=o.forwardRef(gde),hde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},bde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:hde}))},is=o.forwardRef(bde),yde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},xde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:yde}))},pg=o.forwardRef(xde),Cde={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},Sde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Cde}))},Hj=o.forwardRef(Sde),wde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},$de=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:wde}))},rm=o.forwardRef($de),Ede={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},jde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Ede}))},C7=o.forwardRef(jde),Nde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Ode=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Nde}))},OS=o.forwardRef(Ode),Rde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},Ide=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Rde}))},S7=o.forwardRef(Ide),Mde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Tde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:Mde}))},Vx=o.forwardRef(Tde),kde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},Pde=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:kde}))},Dde=o.forwardRef(Pde),zde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Ade=function(t,n){return o.createElement(ut,Ne({},t,{ref:n,icon:zde}))},_de=o.forwardRef(Ade);const Lde="0.1.96",su={version:Lde};async function tt(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const Or={list:()=>tt("/api/launchers"),running:()=>tt("/api/launchers/running"),create:e=>tt("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>tt(`/api/launchers/${e}/start`,{method:"POST"}),openTerminal:e=>tt(`/api/launchers/${e}/open-terminal`,{method:"POST"}),run:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>tt(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await tt(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return tt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>tt(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>tt(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>tt(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>tt(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},Fj={get:()=>tt("/api/overview"),notifications:()=>tt("/api/overview/notifications")},Bde={list:()=>tt("/api/plugins")},Gi={list:e=>tt(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>tt("/api/clipboard/tagged"),remove:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>tt("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"}),copyImage:(e,t)=>tt(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copy-image`,{method:"POST"})},Xi={list:()=>tt("/api/group-tasks"),catalog:()=>tt("/api/group-tasks/catalog"),create:e=>tt("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>tt(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>tt(`/api/group-tasks/${e}/stop`,{method:"POST"})},qy={list:()=>tt("/api/port-diagnostics"),get:e=>tt(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>tt("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},w7={open:e=>tt("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>tt("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})}),openFolder:e=>tt("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Jn={status:()=>tt("/api/settings"),devConfigurations:()=>tt("/api/settings/dev-configurations"),selectDirectory:()=>tt("/api/settings/select-directory",{method:"POST"}),selectFile:()=>tt("/api/settings/select-file",{method:"POST"}),openDataDir:()=>tt("/api/settings/open-data-dir",{method:"POST"}),openFolder:e=>tt("/api/settings/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),saveDomain:e=>tt("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveAiApiHost:e=>tt("/api/settings/ai-api-host",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({aiApiHost:e})}),saveJiraIssuePrefix:e=>tt("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>tt("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>tt("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveTheme:e=>tt("/api/settings/theme",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({theme:e})}),saveDevConfigurations:e=>tt("/api/settings/dev-configurations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),saveAccessToken:(e,t)=>tt(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>tt("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>tt("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>tt("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},Vj={status:(e=!1)=>tt(`/api/updates${e?"?refresh=1":""}`),selfUpdate:(e="latest")=>tt("/api/updates/self-update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Hde={install:e=>tt("/api/settings/dev-configurations/nvm/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:e})})},Us={manage:(e,t)=>tt(`/api/settings/dev-configurations/npm/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:t})}),versions:e=>tt("/api/settings/dev-configurations/npm/versions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({packageName:e})}),useSuggestedPrefix:()=>tt("/api/settings/dev-configurations/npm/use-prefix-suggestion",{method:"POST"})};Us.search=e=>tt("/api/settings/dev-configurations/npm/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e})});const Gy={stats:()=>tt("/api/data-backup/stats"),export:async()=>{var r;const e=await fetch("/api/data-backup/export");if(!e.ok)throw new Error((await e.json().catch(()=>({}))).error||"Unable to export data backup.");const n=((r=(e.headers.get("Content-Disposition")||"").match(/filename="([^"]+)"/))==null?void 0:r[1])||"devbuddy-data-backup.tar.gz";return{blob:await e.blob(),filename:n}},import:e=>tt("/api/data-backup/import",{method:"POST",headers:{"Content-Type":"application/gzip"},body:e})},Tf={get:()=>tt("/api/presentations"),save:e=>tt("/api/presentations",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plans:e})}),setActive:e=>tt("/api/presentations/active",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})})},ks={check:e=>tt("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),aiReview:e=>tt(`/api/pr-review/ai-review/${encodeURIComponent(e)}`),rules:()=>tt("/api/pr-review/rules"),saveRules:(e,t,n)=>tt("/api/pr-review/rules",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({rules:e,customRules:t,fileFilters:n})}),myPrs:()=>tt("/api/pr-review/my-prs"),reviewPrs:()=>tt("/api/pr-review/review-prs"),comment:e=>tt("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},dp={load:e=>tt("/api/pr-conflicts/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:e})}),myConflicts:()=>tt("/api/pr-conflicts/my-conflicts"),resolve:e=>tt("/api/pr-conflicts/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),checkBranch:e=>tt("/api/pr-conflicts/check-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Ra={list:()=>tt("/api/jira-filters"),create:e=>tt("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>tt(`/api/jira-filters/${e}/issues`),cloneIssue:e=>tt("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),templates:{list:()=>tt("/api/jira-filters/templates"),create:e=>tt("/api/jira-filters/templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/jira-filters/templates/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/jira-filters/templates/${e}`,{method:"DELETE"})},recentlyCreated:()=>tt("/api/jira-filters/recently-created"),recentlyCommented:()=>tt("/api/jira-filters/recently-commented"),recentlyMentioned:()=>tt("/api/jira-filters/recently-mentioned"),recentlyUpdated:()=>tt("/api/jira-filters/recently-updated")},Ma={list:()=>tt("/api/todos"),create:e=>tt("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>tt(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>tt(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>tt("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},fp={list:()=>tt("/api/memos"),create:e=>tt("/api/memos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/memos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/memos/${e}`,{method:"DELETE"})},Si={list:()=>tt("/api/mind-maps"),get:e=>tt(`/api/mind-maps/${encodeURIComponent(e)}`),resolveJiraIssue:e=>tt("/api/mind-maps/jira-issues/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),create:e=>tt("/api/mind-maps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/mind-maps/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/mind-maps/${encodeURIComponent(e)}`,{method:"DELETE"})},Ks={list:()=>tt("/api/static-pages"),create:e=>tt("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>tt(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>tt(`/api/static-pages/${e}`,{method:"DELETE"})},Eu={list:()=>tt("/api/errors"),log:e=>tt("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>tt("/api/errors",{method:"DELETE"}),remove:e=>tt(`/api/errors/${e}`,{method:"DELETE"})},Al={getData:()=>tt("/api/postman"),importCollection:e=>tt("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>tt("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>tt(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>tt(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>tt("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>tt("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Xy={status:()=>tt("/api/bookmark-sync/status"),preview:e=>tt(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>tt("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},Sf={scan:e=>tt("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>tt("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>tt("/api/file-organizer/history"),undo:e=>tt("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>tt("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},Yi={listApps:()=>tt("/api/branch-sync/apps"),createApp:e=>tt("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>tt(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>tt(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>tt("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>tt("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>tt("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>tt(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},vo={config:()=>tt("/api/package-upgrade/config"),dependencyScan:()=>tt("/api/package-upgrade/dependency-scan"),dependencyRepositories:()=>tt("/api/package-upgrade/dependency-repositories"),saveDependencyRepositories:e=>tt("/api/package-upgrade/dependency-repositories",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({directories:e})}),saveConfig:e=>tt("/api/package-upgrade/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspaceDir:e})}),addRepo:e=>tt("/api/package-upgrade/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),packageNames:e=>tt("/api/package-upgrade/repos/packages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),branches:e=>tt("/api/package-upgrade/repos/branches",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({repoIds:e})}),cloneRepo:e=>tt(`/api/package-upgrade/repos/${e}/clone`,{method:"POST"}),removeRepo:e=>tt(`/api/package-upgrade/repos/${e}`,{method:"DELETE"}),createTask:e=>tt("/api/package-upgrade/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},Fde="modulepreload",Vde=function(e){return"/"+e},Wj={},Vu=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(m=>{if(m=Vde(m),m in Wj)return;Wj[m]=!0;const v=m.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${p}`))return;const h=document.createElement("link");if(h.rel=v?"stylesheet":Fde,v||(h.as="script"),h.crossOrigin="",h.href=m,f&&h.setAttribute("nonce",f),document.head.appendChild(h),v)return new Promise((b,x)=>{h.addEventListener("load",b),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function i(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};async function $7(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((m,v)=>{const p=new Image;p.onload=()=>m(p),p.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),p.src=r}),i=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),i.width=Math.max(1,Math.round(a.naturalWidth*u)),i.height=Math.max(1,Math.round(a.naturalHeight*u));const f=i.getContext("2d",{willReadFrequently:!0});return f.drawImage(a,0,0,i.width,i.height),{imageData:f.getImageData(0,0,i.width,i.height),width:i.width,height:i.height}}finally{URL.revokeObjectURL(r)}}async function Wde(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:i=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([Vu(()=>import("./index-_vMuByUV.js"),[]),$7(e)]),f=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:i}),m=new Blob([f],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([m],v,{type:"image/jpeg"})}const{Paragraph:Ude,Text:Kde,Title:qde}=Nn;function Ur({actions:e,className:t="",copyClassName:n="",description:r,descriptionClassName:a="",eyebrow:i="WORKBENCH",title:c,titleClassName:u="",titlePrefix:f,titleRowClassName:m=""}){const v=s.jsx(qde,{className:u||void 0,level:2,children:c});return s.jsxs("header",{className:["page-header","workspace-page-header",t].filter(Boolean).join(" "),children:[s.jsxs("div",{className:n||void 0,children:[s.jsx(Kde,{className:"workspace-page-eyebrow",children:i}),f?s.jsxs("div",{className:m||void 0,children:[f,v]}):v,r?s.jsx(Ude,{className:["workspace-page-description",a].filter(Boolean).join(" "),type:"secondary",children:r}):null]}),e||null]})}const Uj=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Gde(e=!0){return e?Uj:Uj.filter(t=>t.value!=="safari")}function ir(e){e&&w7.open(e).catch(()=>{window.open(e,"_blank")})}function Nh(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Xde(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Text:sf}=Nn,cu=()=>new Intl.DateTimeFormat("en-CA").format(new Date),Yde=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function Jde({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let i=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,f=(m,v)=>{if(!u||!t)return m;const p=[];let h=0;u.lastIndex=0;for(const b of m.matchAll(u)){b.index>h&&p.push(m.slice(h,b.index));const x=b[0],C=Nh(t,x);p.push(s.jsx("a",{href:C,target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),ir(C)},children:x},`${v}-${b.index}`)),h=b.index+x.length}return h<m.length&&p.push(m.slice(h)),p};for(const m of e.matchAll(a)){m.index>i&&r.push(...f(e.slice(i,m.index),`txt-${m.index}`));const v=m[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push(s.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),ir(v[2])},children:v[1]},m.index));else{const p=m[0].replace(/[),.;:!?]+$/,"");r.push(s.jsx("a",{href:p,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),ir(p)},children:p},m.index)),m[0].length>p.length&&r.push(m[0].slice(p.length))}i=m.index+m[0].length}return i<e.length&&r.push(...f(e.slice(i),"txt-end")),r}const Kj=e=>e.text||e.preview||"",qj=e=>`/api/clipboard/image/${encodeURIComponent(e)}`;async function Qde(e){if(e.type==="image/png")return e;const t=URL.createObjectURL(e);try{const n=await new Promise((i,c)=>{const u=new window.Image;u.onload=()=>i(u),u.onerror=()=>c(new Error("Unable to decode clipboard image.")),u.src=t}),r=document.createElement("canvas");r.width=n.naturalWidth,r.height=n.naturalHeight;const a=r.getContext("2d");if(!a)throw new Error("Image canvas is unavailable.");return a.drawImage(n,0,0),await new Promise((i,c)=>{r.toBlob(u=>{u?i(u):c(new Error("Unable to encode clipboard image as PNG."))},"image/png")})}finally{URL.revokeObjectURL(t)}}function Ps(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function Zde({children:e}){const t=o.useRef(null),[n,r]=o.useState(!1);return o.useEffect(()=>{const a=t.current;if(!a)return;const i=()=>{r(a.scrollTop+a.clientHeight<a.scrollHeight-1)};i(),a.addEventListener("scroll",i,{passive:!0});const c=typeof ResizeObserver<"u"?new ResizeObserver(i):null;return c==null||c.observe(a),()=>{a.removeEventListener("scroll",i),c==null||c.disconnect()}},[e]),s.jsxs("div",{className:`clipboard-preview-wrap${n?" has-more":""}`,children:[s.jsx("pre",{ref:t,className:"clipboard-preview",children:e}),s.jsx("span",{className:"clipboard-preview-fade","aria-hidden":"true"})]})}function efe(){const{message:e}=_r.useApp(),[t,n]=o.useState(()=>{const X=localStorage.getItem("buddy_clipboard_enabled");return X!==null?X==="true":!0}),[r,a]=o.useState(!0),[i,c]=o.useState([]),[u,f]=o.useState(cu()),[m,v]=o.useState([]),[p,h]=o.useState([]),[b,x]=o.useState(null),[C,y]=o.useState(""),[w,$]=o.useState("all"),[E,O]=o.useState(null),[N,R]=o.useState(""),[I,j]=o.useState(""),[M,T]=o.useState(60),[P,A]=o.useState(!1),[L,D]=o.useState(!0);o.useEffect(()=>{Jn.status().then(X=>{if(X){if(X.isMac!==void 0&&A(X.isMac),X.clipboardEnabled!==void 0){const ee=X.clipboardEnabled!==!1;n(ee),localStorage.setItem("buddy_clipboard_enabled",String(ee))}X.clipboardImageEnabled!==void 0&&D(X.clipboardImageEnabled!==!1),X.clipboardDeduplicateMinutes!==void 0&&T(X.clipboardDeduplicateMinutes),X.domain&&R(X.domain),X.jiraIssuePrefix&&j(X.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const V=async X=>{n(X),localStorage.setItem("buddy_clipboard_enabled",String(X));try{const ne=(await Jn.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(ne),localStorage.setItem("buddy_clipboard_enabled",String(ne)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(ee){e.error(ee.message)}},z=async X=>{D(X);try{const ee=await Jn.saveClipboardImageEnabled(X);ee&&ee.clipboardImageEnabled!==void 0&&D(ee.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(ee){e.error(ee.message)}},B=async X=>{T(X);try{await Jn.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(ee){e.error(ee.message)}},_=async X=>{try{const[ee,ne]=await Promise.all([Gi.list(X),Gi.tagged().catch(()=>({items:[]}))]);c(ee.dates),v(ee.items),h(ne.items||[])}catch(ee){e.error(ee.message)}},W=async(X,ee)=>{const ne=(ee||"").trim();if(!ne)return;const Q=X.tags||[];if(Q.includes(ne)){x(null);return}const J=[...Q,ne],ae=X.date||u;try{await Gi.updateTags(ae,X.id,J),v(se=>se.map(te=>te.id===X.id?{...te,tags:J}:te)),h(se=>se.some(de=>de.id===X.id)?se.map(de=>de.id===X.id?{...de,tags:J}:de):[{...X,tags:J,date:ae},...se]),e.success("Tag added")}catch(se){e.error(se.message)}finally{x(null),y("")}},K=async(X,ee)=>{const Q=(X.tags||[]).filter(ae=>ae!==ee),J=X.date||u;try{await Gi.updateTags(J,X.id,Q),v(ae=>ae.map(se=>se.id===X.id?{...se,tags:Q}:se)),h(ae=>Q.length===0?ae.filter(se=>se.id!==X.id):ae.map(se=>se.id===X.id?{...se,tags:Q}:se)),e.success("Tag removed")}catch(ae){e.error(ae.message)}},F=o.useRef(cu());o.useEffect(()=>{if(!t)return;const X=()=>{const J=cu();if(J!==F.current){const ae=F.current;if(F.current=J,u===ae)return f(J),!0}return!1};X()||_(u);const ne=()=>{X()||_(u)};window.addEventListener("visibilitychange",ne),window.addEventListener("focus",ne);let Q=null;return u===cu()&&(Q=setInterval(()=>{document.visibilityState==="visible"&&_(u)},3e3)),()=>{window.removeEventListener("visibilitychange",ne),window.removeEventListener("focus",ne),Q&&clearInterval(Q)}},[u,t]);const q=async X=>{try{await Gi.remove(u,X),await _(u),e.success("Clipboard entry deleted.")}catch(ee){e.error(ee.message)}},U=async X=>{var ne;const ee=X.date||u;if(X.imageFile)try{if(!((ne=navigator.clipboard)!=null&&ne.write)||typeof window.ClipboardItem>"u")throw new Error("Image clipboard is not supported by this browser.");await Gi.copied(ee,X.id);const Q=await fetch(qj(X.imageFile));if(!Q.ok)throw new Error("Unable to load image.");const J=await Qde(await Q.blob());try{await navigator.clipboard.write([new ClipboardItem({"image/png":J})])}catch(ae){await Gi.copyImage(ee,X.id).catch(()=>{throw ae})}O(X.id),setTimeout(()=>{O(ae=>ae===X.id?null:ae)},1e3)}catch(Q){e.error("Failed to copy image: "+Q.message)}else navigator.clipboard.writeText(X.text||X.preview),Gi.copied(ee,X.id).catch(()=>{}),O(X.id),setTimeout(()=>{O(Q=>Q===X.id?null:Q)},1e3)},G=o.useMemo(()=>[...new Set([cu(),...i,u])],[i,u]);o.useEffect(()=>{if(!t)return;const X=ee=>{const ne=document.activeElement;if(ne&&(ne.tagName==="INPUT"||ne.tagName==="TEXTAREA"||ne.isContentEditable||ne.closest(".clipboard-tabs")))return;const Q=[...G].sort(),J=Q.indexOf(u);ee.key==="ArrowLeft"?J>0&&f(Q[J-1]):ee.key==="ArrowRight"&&J<Q.length-1&&J!==-1&&f(Q[J+1])};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[G,u,t]),o.useEffect(()=>{if(!t)return;const X=async ee=>{var J;const ne=document.activeElement;if(ne&&(ne.tagName==="INPUT"||ne.tagName==="TEXTAREA"||ne.isContentEditable))return;const Q=(J=ee.clipboardData)==null?void 0:J.items;if(Q){for(const ae of Q)if(ae.type.startsWith("image/")){const se=ae.getAsFile();if(se){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const te=await Wde(se);await Gi.uploadImage(te);const de=cu();f(de),await _(de),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(te){e.error({content:"Failed to save pasted image: "+te.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const Y=G.reduce((X,ee)=>{var ae;const[ne,Q,J]=ee.split("-");return X[ne]||(X[ne]={}),(ae=X[ne])[Q]||(ae[Q]=[]),X[ne][Q].includes(J)||X[ne][Q].push(J),X},{}),Z=Object.entries(Y).sort(([X],[ee])=>ee.localeCompare(X)).map(([X,ee])=>({value:X,label:X,children:Object.entries(ee).sort(([ne],[Q])=>Q.localeCompare(ne)).map(([ne,Q])=>({value:ne,label:ne,children:Q.sort().reverse().map(J=>({value:J,label:J}))}))})),ie=o.useMemo(()=>w==="tagged"?p:w==="all"?m:w==="image"?m.filter(X=>!!X.imageFile):m.filter(X=>!X.imageFile&&Ps(Kj(X),w,I)),[w,m,p,I]),re=o.useMemo(()=>{const X={all:m.length,tagged:p.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const ne of m)if(ne.imageFile)X.image++;else{const Q=Kj(ne);Ps(Q,"jira",I)&&X.jira++,Ps(Q,"account")&&X.account++,Ps(Q,"id")&&X.id++,Ps(Q,"url")&&X.url++,Ps(Q,"json")&&X.json++,Ps(Q,"code")&&X.code++}const ee=[{key:"all",label:`All (${X.all})`},{key:"tagged",label:`Tagged (${X.tagged})`},{key:"jira",label:`Jira (${X.jira})`},{key:"account",label:`Account (${X.account})`},{key:"id",label:`ID (${X.id})`},{key:"url",label:`Url (${X.url})`},{key:"json",label:`JSON (${X.json})`},{key:"code",label:`Code (${X.code})`}];return P&&ee.push({key:"image",label:`Img (${X.image})`}),ee},[m,p,I,P]);return o.useEffect(()=>{!P&&w==="image"&&$("all")},[P,w]),s.jsxs("div",{className:"clipboard-page",children:[s.jsx(Ur,{actions:s.jsxs("div",{className:"clipboard-controls",children:[s.jsxs(at,{size:16,align:"center",children:[s.jsx(Oi,{loading:r,checked:t,onChange:V,checkedChildren:"On",unCheckedChildren:"Off"}),s.jsx(cl,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:X=>(X==null?void 0:X.length)===3&&f(X.join("-")),placeholder:"Select date"})]}),s.jsxs("div",{className:"clipboard-settings",children:[s.jsxs("div",{className:"clipboard-setting-row",children:[s.jsx(sf,{type:"secondary",className:"clipboard-setting-label",children:"Deduplicate filter:"}),s.jsx(Tn,{size:"small",disabled:!t||r,value:M,onChange:B,className:"clipboard-deduplicate-select",options:Yde})]}),P&&s.jsxs("div",{className:"clipboard-setting-row",children:[s.jsx(sf,{type:"secondary",className:"clipboard-setting-label",children:"Monitor image clipboard:"}),s.jsx(Oi,{size:"small",disabled:!t||r,checked:L,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]}),description:"Saved locally and archived by date.",title:"Clipboard History"}),t?s.jsxs(s.Fragment,{children:[s.jsx(Aa,{className:"clipboard-tabs",activeKey:w,onChange:X=>{$(X),requestAnimationFrame(()=>{var ee;return(ee=document.activeElement)==null?void 0:ee.blur()})},onKeyDown:X=>{var ee;["ArrowLeft","ArrowRight"].includes(X.key)&&(X.preventDefault(),(ee=document.activeElement)==null||ee.blur())},items:re}),ie.length?s.jsx("div",{className:"clipboard-list",children:ie.map(X=>{const ee=X.date||u,ne=`/api/clipboard/${encodeURIComponent(ee)}/${encodeURIComponent(X.id)}`,Q=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return s.jsxs(At,{size:"small",className:"clipboard-item",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"clipboard-item-meta",children:[s.jsx(sf,{type:"secondary",children:Q}),X.date&&X.date!==u&&s.jsx(Nt,{style:{margin:0},children:X.date}),(X.tags||[]).map(J=>s.jsx(Nt,{color:"purple",closable:!0,onClose:ae=>{ae.preventDefault(),K(X,J)},style:{margin:0},children:J},J)),s.jsx(TC,{content:s.jsxs(at.Compact,{style:{width:200},children:[s.jsx(wt,{size:"small",placeholder:"Tag name",value:C,onChange:J=>y(J.target.value),onPressEnter:()=>W(X,C)}),s.jsx(Re,{size:"small",type:"primary",onClick:()=>W(X,C),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===X.id,onOpenChange:J=>{x(J?X.id:null),y("")},children:s.jsxs(Nt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[s.jsx(Gn,{})," Tag"]})})]}),X.imageFile?s.jsx("div",{className:"clipboard-image-wrap",children:s.jsx(yM,{src:qj(X.imageFile),alt:"Clipboard entry",className:"clipboard-image",preview:!0,onError:()=>e.error("Unable to load clipboard image.")})}):s.jsxs(s.Fragment,{children:[s.jsx(Zde,{children:s.jsx(Jde,{value:X.preview||X.text,domain:N,jiraIssuePrefix:I})}),X.contentFile&&s.jsxs("span",{className:"clipboard-original",children:[s.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",children:"View original content"}),s.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),s.jsxs("span",{className:"clipboard-actions",children:[s.jsx(un,{title:E===X.id?"Copied!":"Copy",children:s.jsx(Re,{type:"text",icon:E===X.id?s.jsx(il,{style:{color:"#52c41a"}}):s.jsx(xo,{}),onClick:()=>U(X)})}),s.jsx(un,{title:"Delete",children:s.jsx(Re,{type:"text",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>q(X.id)})})]})]},X.id)})}):s.jsx(Qt,{description:`No ${w==="all"?"clipboard entries":`${w==="id"?"ID":w} entries`}${w==="tagged"?".":` for ${u}.`}`})]}):s.jsx(At,{className:"clipboard-disabled-card",children:s.jsx(Qt,{image:s.jsx(pg,{style:{fontSize:48,color:"#9ca3af"}}),description:s.jsxs("div",{className:"clipboard-disabled-copy",children:[s.jsx(sf,{strong:!0,className:"clipboard-disabled-title",children:"Clipboard history is disabled"}),s.jsx(sf,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),s.jsx(fs.BackTop,{visibilityHeight:240})]})}const E7=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function j7(e="vscode"){const t=E7.find(n=>n.value===e);return t?t.label:"VS Code"}function N7(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let i="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(i=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return i&&(u+=`&line=${i}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:Yy}=Nn;function tfe({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:i,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:f=>s.jsx(Yy,{strong:!0,children:f})},{title:"Scripts",dataIndex:"items",width:110,render:f=>s.jsxs(Yy,{type:"secondary",children:[f.length," scripts"]})},{title:"Actions",width:236,render:(f,m)=>{const v=m.items.every(p=>t.has(`${p.launcherId}:${p.scriptId}`));return s.jsxs(at,{children:[s.jsx(Re,{size:"small",danger:v,icon:v?s.jsx(pg,{}):s.jsx(cc,{}),onClick:()=>v?i(m):a(m),children:v?"Stop":"Start"}),s.jsx(Re,{size:"small",onClick:()=>r(m),children:"Edit"}),s.jsx(Re,{size:"small",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>c(m),children:"Delete"})]})}}];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"group-task-header",children:[s.jsx(Yy,{type:"secondary",children:"Start selected scripts across multiple services."}),s.jsx(Re,{type:"primary",icon:s.jsx(Gn,{}),onClick:n,children:"Add quick launch"})]}),e.length?s.jsx(er,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):s.jsx(Qt,{description:"No quick launches yet.",className:"group-task-empty"})]})}function am({open:e,initialPath:t="~",onCancel:n,onSelect:r,title:a="Browse Directory",selectionType:i="directory"}){const{message:c}=_r.useApp(),[u,f]=o.useState(t),[m,v]=o.useState(null),[p,h]=o.useState(!1),b=async x=>{h(!0);try{const C=await Sf.browse(x||"~");v(C),f(C.currentPath)}catch(C){c.error(C.message||"Failed to read directory")}finally{h(!1)}};return o.useEffect(()=>{e&&b(t||"~")},[e,t]),s.jsx(xn,{title:a,open:e,onCancel:n,footer:null,width:640,destroyOnClose:!0,children:s.jsxs(Cr,{spinning:p,children:[s.jsx("div",{className:"file-browser-path-row",children:s.jsx(wt,{value:u,onChange:x=>f(x.target.value),onPressEnter:()=>b(u),addonAfter:s.jsx(Re,{size:"small",type:"text",onClick:()=>b(u),children:"Go"})})}),m&&s.jsxs("div",{children:[s.jsx("div",{className:"file-browser-parent-row",children:s.jsxs(Re,{size:"small",onClick:()=>b(m.parentPath),disabled:m.currentPath===m.parentPath,children:[s.jsx(os,{}),"Parent Directory"]})}),s.jsx("div",{className:"file-browser-list",children:m.subdirectories.length===0&&(i!=="file"||(m.files||[]).length===0)?s.jsx("div",{className:"file-browser-empty",children:"No items found"}):s.jsxs(s.Fragment,{children:[m.subdirectories.map(x=>s.jsxs("div",{className:"file-browser-item",onClick:()=>b(x.fullPath),children:[s.jsxs("span",{children:[s.jsx(oa,{className:"file-browser-icon"}),x.name]}),i==="directory"&&s.jsx(Re,{size:"small",type:"link",onClick:C=>{C.stopPropagation(),r(x.fullPath)},children:"Select Folder"})]},x.fullPath)),i==="file"&&(m.files||[]).map(x=>s.jsxs("div",{className:"file-browser-item",onClick:()=>r(x.fullPath),children:[s.jsxs("span",{children:[s.jsx(as,{className:"file-browser-icon"}),x.name]}),s.jsx(Re,{size:"small",type:"link",onClick:C=>{C.stopPropagation(),r(x.fullPath)},children:"Select File"})]},x.fullPath))]})}),i==="directory"&&s.jsx("div",{className:"file-browser-confirm-row",children:s.jsxs(Re,{type:"primary",onClick:()=>r(m.currentPath),children:["Confirm Path: ",m.currentPath]})})]})]})})}const{Text:Ds}=Nn,cf=(e,t)=>`${e}:${t}`,nfe=()=>s.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function rfe({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:i,onRun:c,onRunInstall:u,onRunPackage:f,onStop:m,onLogs:v,onPackageLogs:p}){const h=!!(t&&[...r].some(C=>C.startsWith(`${t.id}:`))),[b,x]=o.useState(()=>h);return o.useEffect(()=>{h&&x(!0)},[t==null?void 0:t.id]),o.useEffect(()=>{h||x(!1)},[h]),s.jsx(bt.List,{name:"scripts",children:(C,{add:y,remove:w})=>{const $=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...C.map(R=>({...R,key:`custom-${R.key}`,kind:"custom"})),...$?[{key:"install",kind:"install",script:$}]:[],...(i||[]).map(R=>({key:`package-${R.id}`,kind:"package",script:R}))],O=b?E.filter(R=>{const I=R.kind==="custom"?e.getFieldValue(["scripts",R.name]):R.script;return t&&(I==null?void 0:I.id)&&r.has(cf(t.id,I.id))}):E,N=[{title:"Source",width:100,render:(R,I)=>s.jsx(Nt,{color:I.kind==="package"?"purple":I.kind==="install"?"green":"default",children:I.kind==="package"?"Package":I.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(R,I)=>{var P;const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=(j==null?void 0:j.name)===e.getFieldValue("startCommand"),T=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id));return s.jsxs(at,{direction:"vertical",size:1,style:{width:"100%"},children:[I.kind!=="custom"||T?s.jsxs(at,{size:4,children:[s.jsx(Ds,{strong:!0,children:(j==null?void 0:j.name)||((P=I.script)==null?void 0:P.name)}),M&&s.jsx(ho,{className:"start-script-icon"})]}):s.jsx(bt.Item,{noStyle:!0,name:[I.name,"name"],rules:[{required:!0,message:"Required"}],children:s.jsx(wt,{placeholder:"serve",allowClear:!0,suffix:M?s.jsx(ho,{className:"start-script-icon"}):null})}),T&&s.jsx(Jr,{status:"success",text:s.jsx(Ds,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(R,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id));return I.kind==="package"?s.jsxs(at,{direction:"vertical",size:0,children:[s.jsxs(Ds,{code:!0,children:[n," run ",I.script.name]}),s.jsx(Ds,{type:"secondary",style:{fontSize:12},children:I.script.command})]}):I.kind==="install"?s.jsx(Ds,{code:!0,children:I.script.command}):M?s.jsx(Ds,{code:!0,children:j==null?void 0:j.command}):s.jsx(bt.Item,{noStyle:!0,name:[I.name,"command"],rules:[{required:!0,message:"Required"}],children:s.jsx(wt,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(R,I)=>{const j=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script,M=t&&(j==null?void 0:j.id)&&r.has(cf(t.id,j.id)),T=t&&(j!=null&&j.id)&&a[cf(t.id,j.id)]||0;return s.jsxs(at,{size:2,children:[t&&s.jsx(un,{title:M?"Stop":"Start",children:s.jsx(Re,{type:"text",danger:M,icon:M?s.jsx(nfe,{}):s.jsx(Xue,{}),onClick:()=>M?m(j):I.kind==="package"?f(j):I.kind==="install"?u(j):c(j),disabled:!(j!=null&&j.id)})}),s.jsx(un,{title:"Logs",children:s.jsx(Jr,{count:T,size:"small",offset:[-2,2],children:s.jsx(Re,{type:"text",icon:s.jsx(vi,{}),onClick:()=>I.kind==="package"?p(j):v(j),disabled:!t||!(j!=null&&j.id)})})}),I.kind==="custom"&&!M&&s.jsx(un,{title:"Remove",children:s.jsx(Re,{type:"text",danger:!0,icon:s.jsx(Kn,{}),onClick:()=>w(I.name)})})]})}}];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"script-header",children:[s.jsx(Em,{orientation:"left",children:"Scripts"}),s.jsxs(at,{size:"middle",align:"center",children:[s.jsxs("label",{className:"script-running-filter",children:[s.jsx(Oi,{size:"small",checked:b,onChange:x,disabled:!t}),s.jsx(Ds,{type:"secondary",className:"script-running-filter-label",children:"Show running only"})]}),s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:()=>{x(!1),y({name:"",command:""})},children:"Add script"})]})]}),s.jsx(er,{size:"small",rowKey:"key",pagination:!1,loading:i===null,dataSource:O,columns:N})]})}})}const afe=e=>s.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function ofe(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?s.jsx(afe,{style:{color:"#2584FF"}}):t.includes("github")?s.jsx(tue,{style:{color:"#24292e"}}):t.includes("gitlab")?s.jsx(vg,{style:{color:"#fc6d26"}}):s.jsx(ud,{className:"repo-generic-icon"})}function O7({repoUrl:e,style:t}){if(!e)return null;const n=ofe(e);return n?s.jsx(un,{title:"Open repository in browser",children:s.jsx(Re,{className:"repo-icon-button",type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),ir(e)},style:t})}):null}const ife=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function lfe({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:i,onSave:c,onRun:u,onRunInstall:f,onRunPackage:m,onStop:v,onLogs:p,onDelete:h}){const{message:b,modal:x}=_r.useApp(),[C]=bt.useForm(),[y,w]=o.useState(null),[$,E]=o.useState(!1),O=j=>{if(j&&(C.setFieldValue("folder",j),!C.getFieldValue("alias"))){const T=j.split(/[/\\]/).filter(Boolean);T.length>0&&C.setFieldValue("alias",T[T.length-1])}E(!1)},N=async()=>{const j=String(C.getFieldValue("folder")||"").trim();if(!j){b.warning("Set a project folder first.");return}try{await Jn.openFolder(j)}catch(M){b.error(M.message)}},R=()=>{x.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await h(t)}catch(j){b.error(j.message)}}})};o.useEffect(()=>{e&&(C.resetFields(),C.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ife()),w(t?null:[]),t&&Or.packageScripts(t.id).then(j=>w(j.scripts)).catch(()=>w([])))},[e,t,C]);const I=async()=>{try{const j=(C.getFieldValue("scripts")||[]).filter(P=>{var A,L;return((A=P==null?void 0:P.name)==null?void 0:A.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});C.setFieldValue("scripts",j);const M=await C.validateFields(["alias","folder","groupName","startCommand"]),T={...C.getFieldsValue(!0),...M,scripts:j};await c(T)}catch(j){if(j!=null&&j.errorFields)return;b.error(j.message)}};return s.jsxs(xn,{title:t?s.jsxs(at,{align:"center",size:6,children:[s.jsxs("span",{children:["Service details · ",t.alias]}),s.jsx(O7,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:i,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:s.jsxs("div",{className:"service-modal-footer",children:[t?s.jsx(Re,{type:"primary",danger:!0,onClick:R,children:"Delete service"}):s.jsx("div",{}),s.jsxs(at,{children:[s.jsx(Re,{onClick:i,children:"Cancel"}),s.jsx(Re,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:[s.jsxs(bt,{form:C,layout:"vertical",children:[s.jsx(_g,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:s.jsxs(_o,{gutter:[16,0],children:[s.jsx(Zn,{xs:24,sm:12,children:s.jsx(bt.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:s.jsx(wt,{placeholder:"Service name",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:12,children:s.jsx(bt.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:s.jsx(wt,{prefix:s.jsx(Re,{type:"text",htmlType:"button",icon:s.jsx(oa,{}),onClick:N,"aria-label":"Open project folder",title:"Open project folder",style:{color:"#8c8c8c",padding:"0 4px"}}),suffix:s.jsx(Re,{type:"text",size:"small",icon:s.jsx(oa,{}),onClick:()=>E(!0),style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{label:"Group",name:"groupName",children:s.jsx(Au,{options:n.map(j=>({value:j})),placeholder:"Group name",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:s.jsx(Au,{options:["npm","pnpm","yarn"].map(j=>({value:j})),placeholder:"npm",allowClear:!0})})}),s.jsx(Zn,{xs:24,sm:8,children:s.jsx(bt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.scripts!==M.scripts,children:()=>{const j=(C.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(y||[]).map(P=>P.name),T=[...new Set([...j,...M])].map(P=>({label:P,value:P}));return s.jsx(bt.Item,{label:"Start script name",name:"startCommand",children:s.jsx(Tn,{placeholder:"Select start script",allowClear:!0,options:T})})}})})]})}]}),s.jsx(bt.Item,{noStyle:!0,shouldUpdate:(j,M)=>j.executor!==M.executor||j.startCommand!==M.startCommand||j.scripts!==M.scripts,children:()=>s.jsx(rfe,{form:C,editing:t,executor:C.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:y,onRun:j=>u(t,j),onRunInstall:()=>f(t),onRunPackage:j=>m(t,j),onStop:j=>v(t,j.id),onLogs:j=>p(t,j),onPackageLogs:j=>p(t,j,!0)})})]}),s.jsx(am,{open:$,initialPath:C.getFieldValue("folder")||"~",onCancel:()=>E(!1),onSelect:O,title:"Select Project Directory"})]})}const{Text:sfe}=Nn;function cfe({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:i}=_r.useApp(),[c]=bt.useForm();o.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(m=>`${m.launcherId}|${m.scriptId}`))||[]}))},[e,t,c]);const u=o.useMemo(()=>Object.entries(n.reduce((m,v)=>{const p=v.groupName||"Ungrouped";return(m[p]||(m[p]=[])).push(v),m},{})).sort(([m],[v])=>m.localeCompare(v)).map(([m,v])=>({key:m,label:m,children:s.jsx("div",{className:"group-task-projects",children:v.map(p=>s.jsx(At,{size:"small",title:p.alias,children:s.jsx(at,{direction:"vertical",children:p.scripts.map(h=>s.jsxs(sr,{value:`${p.id}|${h.id}`,children:[h.name," ",s.jsxs(sfe,{type:"secondary",children:["(",h.source,")"]})]},h.id))})},p.id))})})),[n]),f=async()=>{try{const m=await c.validateFields(),v={name:m.name,items:m.items.map(p=>{const[h,b]=p.split("|");return{launcherId:h,scriptId:b}})};await a(v)}catch(m){m!=null&&m.errorFields||i.error(m.message)}};return s.jsx(xn,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:f,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:s.jsxs(bt,{form:c,layout:"vertical",children:[s.jsx(bt.Item,{label:"Name",name:"name",rules:[{required:!0}],children:s.jsx(wt,{placeholder:"Start local stack",allowClear:!0})}),s.jsx(bt.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:s.jsx(sr.Group,{className:"group-task-selector",children:s.jsx(Aa,{items:u})})})]})})}const Gj={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function Wx({value:e,editor:t}){const[n,r]=o.useState(t||"vscode"),[a,i]=o.useState(""),[c,u]=o.useState("");o.useEffect(()=>{t&&r(t),Jn.status().then(p=>{p!=null&&p.defaultEditor&&!t&&r(p.defaultEditor),p!=null&&p.domain&&i(p.domain),p!=null&&p.jiraIssuePrefix&&u(p.jiraIssuePrefix)}).catch(()=>{})},[t]);const f=(c||"").split(/[\s,]+/).filter(Boolean).map(p=>p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),m=f.length>0&&a?new RegExp(`\\b(?:${f.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(p,h)=>{let b="";const x=($,E)=>$.split(/(\u001b\[[0-9;]*m)/g).map((N,R)=>{const I=N.match(/^\u001b\[([0-9;]*)m$/);if(I){const M=I[1].split(";").map(Number);return b=M.includes(0)?"":Gj[M.find(T=>Gj[T])]||b,null}if(!N)return null;const j=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(N)?"log-error":/\b(warn|warning)\b/i.test(N)?"log-warning":/\b(success|ready|started|listening)\b/i.test(N)?"log-success":"");return s.jsx("span",{className:j,children:N},`${E}-${R}`)}),C=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,y=m&&m.test(p);return!p.includes("http")&&!p.includes("/")&&!y?x(p,`${h}-0`):p.split(C).map(($,E)=>{if(!$)return null;const O=`${h}-${E}`;if(/^https?:\/\//.test($.replace(/\u001b\[[0-9;]*m/g,""))){const R=$.replace(/\u001b\[[0-9;]*m/g,""),I=R.replace(/[),.;:!?]+$/,""),j=R.slice(I.length);return s.jsxs("span",{children:[s.jsx("a",{className:"log-link",href:I,target:"_blank",rel:"noreferrer",onClick:M=>{M.preventDefault(),ir(I)},children:x($.slice(0,$.length-j.length),`${O}-url`)}),j&&x(j,`${O}-suf`)]},O)}const N=$.replace(/\u001b\[[0-9;]*m/g,"");if(N.startsWith("/")){const[,R,I=""]=N.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(R){const j=N7(n,R,I);return s.jsx("a",{className:"log-link",href:j,target:"_blank",rel:"noreferrer",title:`Open in ${j7(n)}`,children:x($,O)},O)}}if(m&&a&&(m.lastIndex=0,m.test(N))){const R=[];let I=0;m.lastIndex=0;for(const j of N.matchAll(m)){j.index>I&&R.push(x(N.slice(I,j.index),`${O}-sub-${j.index}`));const M=j[0],T=Nh(a,M);R.push(s.jsx("a",{className:"log-link",href:T,target:"_blank",rel:"noreferrer",onClick:P=>{P.preventDefault(),ir(T)},children:M},`${O}-jira-${j.index}`)),I=j.index+M.length}return I<N.length&&R.push(x(N.slice(I),`${O}-sub-end`)),s.jsx("span",{children:R},O)}return x($,O)})};return s.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
497
|
`).map((p,h)=>s.jsx("div",{className:"log-line",children:s.jsx("code",{children:v(p,h)})},h))})}function ufe({open:e,logTarget:t,onCancel:n}){var f;const[r,a]=o.useState("output"),[i,c]=o.useState("");o.useEffect(()=>{e&&(a("output"),c("Loading…"))},[e,t]),o.useEffect(()=>{if(!e||!t)return;const m=async()=>{try{const p=t.package?r==="error"?await Or.packageScriptErrorLogs(t.launcher.id,t.script.name):await Or.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await Or.errorLogs(t.launcher.id,t.script.id):await Or.logs(t.launcher.id,t.script.id);c(p.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(p){c(p.message)}};m();const v=setInterval(m,1e3);return()=>clearInterval(v)},[e,t,r]);const u=async()=>{if(t)try{t.package?await Or.clearPackageScriptLogs(t.launcher.id,t.script.name):await Or.clearLogs(t.launcher.id,t.script.id),c(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return s.jsx(xn,{title:t?`${(f=t.launcher)!=null&&f.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:s.jsx(Aa,{activeKey:r,onChange:a,tabBarExtraContent:t&&s.jsxs(at,{children:[s.jsx(Re,{icon:s.jsx(b7,{}),onClick:u,children:"Clear log"}),s.jsx(Re,{icon:s.jsx(ud,{}),onClick:()=>{const m=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(m,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:s.jsx(Wx,{value:i})},{key:"error",label:"Error logs",children:s.jsx(Wx,{value:i})}]})})}const{Text:dfe}=Nn,ffe=(e,t)=>{const n=e.scripts.find(r=>r.id===t);return n?n.name:t==="install"?"Install":t.startsWith("package:")?t.slice(8):t};function mfe({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:i}=_r.useApp(),[c,u]=o.useState("all"),[f,m]=o.useState([]),[v,p]=o.useState([]),[h,b]=o.useState(!1),[x,C]=o.useState(!1),[y,w]=o.useState(null),[$,E]=o.useState(!1),[O,N]=o.useState(null),[R,I]=o.useState(!1),[j,M]=o.useState(null),[T,P]=o.useState("vscode"),A=o.useRef(null);o.useEffect(()=>{Xi.list().then(m).catch(Q=>i.error(Q.message)),Jn.status().then(Q=>{Q!=null&&Q.defaultEditor&&P(Q.defaultEditor)}).catch(()=>{})},[]);const L=o.useMemo(()=>[...new Set(e.map(Q=>Q.groupName).filter(Boolean))].sort((Q,J)=>Q.localeCompare(J)),[e]),D=c==="all"?e:e.filter(Q=>Q.groupName===c);o.useLayoutEffect(()=>{var J;[...((J=A.current)==null?void 0:J.querySelectorAll("[tabindex]"))||[],...document.querySelectorAll(".launcher-table, .launcher-table [tabindex]")].forEach(ae=>{document.activeElement===ae&&ae.blur(),ae.tabIndex=-1})},[c,L,e.length]);const V=(Q=null)=>{N(Q),E(!0)},z=async Q=>{if(O){const J=await Or.update(O.id,Q);N(J)}else await Or.create(Q),E(!1);i.success("Saved"),await r()},B=async Q=>{try{const J=[...t].filter(ae=>ae.startsWith(`${Q.id}:`));if(J.length>0){const ae=J.map(se=>se.slice(`${Q.id}:`.length));await Promise.all(ae.map(se=>Or.stop(Q.id,se)))}await Or.remove(Q.id),E(!1),i.success("Deleted"),await r()}catch(J){i.error(J.message)}},_=async(Q,J)=>{try{await Or.run(Q.id,J.id),await r()}catch(ae){i.error(ae.message)}},W=async Q=>{try{await Or.runInstall(Q.id),await r()}catch(J){i.error(J.message)}},K=async(Q,J)=>{try{await Or.runPackageScript(Q.id,J.name),await r()}catch(ae){i.error(ae.message)}},F=(Q,J,ae=!1)=>{M({launcher:Q,script:J,package:ae}),I(!0)},q=async Q=>{try{await Or.start(Q.id),await r()}catch(J){i.warning(J.message)}},U=async Q=>{try{await Or.openTerminal(Q.id)}catch(J){i.error(J.message)}},G=async(Q,J)=>{try{await Or.stop(Q.id,J),await r()}catch(ae){await r(),i.error(ae.message)}},Y=async(Q,J)=>{try{await Promise.all(J.map(ae=>Or.stop(Q.id,ae))),await r()}catch(ae){await r(),i.error(ae.message)}},Z=async(Q=null)=>{if(w(Q),C(!0),!v.length)try{p(await Xi.catalog())}catch(J){i.error(J.message)}},ie=async Q=>{y?await Xi.update(y.id,Q):await Xi.create(Q),C(!1),m(await Xi.list())},re=async Q=>{const J=`group-task-${Q.id}`;i.loading({content:`Starting ${Q.name}…`,key:J,duration:0});try{const ae=await Xi.start(Q.id),se=ae.results.filter(te=>te.error);se.length?i.warning({content:`${ae.results.length-se.length} started, ${se.length} failed.`,key:J}):i.success({content:`${ae.results.length} scripts started.`,key:J}),await r()}catch(ae){i.error({content:ae.message,key:J})}},X=async Q=>{const J=`group-task-${Q.id}`;i.loading({content:`Stopping ${Q.name}…`,key:J,duration:0});try{const se=(await Xi.stop(Q.id)).results.filter(te=>te.ok).length;i.success({content:`${se} scripts stopped.`,key:J}),await r()}catch(ae){i.error({content:ae.message,key:J})}},ee=async Q=>{try{await Xi.remove(Q.id),m(await Xi.list())}catch(J){i.error(J.message)}},ne=[{title:"Service",dataIndex:"alias",render:(Q,J)=>s.jsxs(at,{size:8,align:"center",children:[s.jsx(Re,{type:"text",size:"small",className:"launcher-terminal-button",icon:s.jsx(Ea,{}),"aria-label":`Open terminal in ${J.folder}`,title:`Open Terminal in ${J.folder}`,onClick:ae=>{ae.stopPropagation(),U(J)}}),s.jsx("a",{href:N7(T,J.folder,"",{newWindow:!0}),title:`Open ${J.folder} in ${j7(T)}`,onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),w7.openPath(J.folder)},className:"launcher-service-link",children:Q}),s.jsx(O7,{repoUrl:J.repoUrl}),J.branch&&s.jsx(dfe,{code:!0,className:"launcher-branch",children:J.branch})]})},{title:"Scripts",width:170,align:"center",render:(Q,J)=>{const ae=[...t].filter(Oe=>Oe.startsWith(`${J.id}:`)),se=ae.map(Oe=>ffe(J,Oe.slice(`${J.id}:`.length))),te=J.scripts.length+(J.packageScriptCount||0),de=Object.entries(n).filter(([Oe])=>Oe.startsWith(`${J.id}:`)).reduce((Oe,[,Me])=>Oe+(Me||0),0),ge=s.jsx(Jr,{status:ae.length?"success":"default",text:`${ae.length} / ${te} running`});return s.jsxs(at,{size:8,children:[s.jsxs("span",{className:"launcher-running-status",children:[ge,se.length>0&&s.jsx("span",{className:"launcher-running-tooltip",children:se.map((Oe,Me)=>s.jsxs("span",{children:["• ",Oe]},`${Oe}-${Me}`))})]}),de>0&&s.jsx(Jr,{count:de,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(Q,J)=>{const ae=[...t].filter(te=>te.startsWith(`${J.id}:`)),se=ae.length>0;return s.jsx(Re,{size:"small",type:se?"default":"primary",danger:se,icon:se?s.jsx(pg,{}):s.jsx(cc,{}),onClick:te=>{te.stopPropagation(),se?Y(J,ae.map(de=>de.slice(`${J.id}:`.length))):q(J)},children:se?"Stop":"Start"})}}];return s.jsxs(s.Fragment,{children:[s.jsx(Ur,{actions:s.jsxs(at,{children:[s.jsx(Re,{onClick:()=>b(!0),children:"Quick Launch"}),s.jsx(Re,{type:"primary",icon:s.jsx(Gn,{}),onClick:()=>V(),children:"Add service"})]}),description:"Manage and run local project scripts.",title:"Launcher"}),a?s.jsx("div",{className:"launcher-loading",children:s.jsx(Cr,{size:"large"})}):e.length?s.jsxs(s.Fragment,{children:[f.length>0&&s.jsx("div",{className:"quick-launch-bar",children:s.jsxs(at,{wrap:!0,size:"middle",children:[s.jsx("span",{className:"quick-launch-label",children:"Quick Launch:"}),f.map(Q=>{const J=Q.items.every(ae=>t.has(`${ae.launcherId}:${ae.scriptId}`));return s.jsxs(Re,{type:J?"default":"primary",danger:J,icon:J?s.jsx(pg,{}):s.jsx(cc,{}),onClick:()=>J?X(Q):re(Q),children:[J?"Stop":"Start"," ",Q.name]},Q.id)})]})}),s.jsx("div",{ref:A,children:s.jsx(Aa,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(Q=>({key:Q,label:`${Q} (${e.filter(J=>J.groupName===Q).length})`}))]})}),D.length?s.jsx(er,{className:"launcher-table",rowKey:"id",dataSource:D,columns:ne,pagination:!1,onRow:Q=>({onClick:()=>V(Q)})}):s.jsx(Qt,{description:"No services in this group."})]}):s.jsx(Qt,{description:"No services yet"}),s.jsx(lfe,{open:$,editing:O,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:z,onRun:_,onRunInstall:W,onRunPackage:K,onStop:G,onLogs:F,onDelete:B}),s.jsx(xn,{title:"Quick Launch",open:h,onCancel:()=>b(!1),footer:null,width:760,destroyOnClose:!0,children:s.jsx(tfe,{tasks:f,running:t,onCreate:()=>Z(),onEdit:Z,onStart:re,onStop:X,onRemove:ee})}),s.jsx(cfe,{open:x,editingGroupTask:y,groupCatalog:v,onCancel:()=>C(!1),onSave:ie}),s.jsx(ufe,{open:R,logTarget:j,onCancel:()=>I(!1)})]})}const{Text:Ji}=Nn;function vfe({refreshLaunchers:e}){const[t,n]=o.useState([]),[r,a]=o.useState(!1),[i,c]=o.useState(null),[u,f]=o.useState(!1),[m,v]=o.useState(!1),[p,h]=o.useState(null),b=async()=>{a(!0);try{n((await qy.list()).ports)}catch(w){Ut.error(w.message)}finally{a(!1)}};o.useEffect(()=>{b()},[]);const x=async()=>{if(i){f(!0);try{const w=(await qy.get(i)).process;h(w),v(!0)}catch(w){Ut.error(w.message)}finally{f(!1)}}},C=async({port:w,pid:$})=>{try{await qy.kill(w,$),Ut.success(`Process on port ${w} was killed.`),await b(),e&&await e()}catch(E){Ut.error(E.message)}},y=[{title:"Port",dataIndex:"port",width:100,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:w=>s.jsx(Ji,{code:!0,children:w})},{title:"Last used",dataIndex:"launcher",render:(w,$)=>s.jsxs(at,{direction:"vertical",size:0,children:[s.jsx(Ji,{strong:!0,children:w}),s.jsx(Ji,{type:"secondary",children:$.script})]})},{title:"Process",dataIndex:"command",render:(w,$)=>s.jsxs(at,{direction:"vertical",size:0,children:[s.jsx(Ji,{code:!0,children:$.currentCommand||w}),s.jsxs(Ji,{type:"secondary",children:["PID ",$.currentPid||$.pid]})]})},{title:"Status",width:170,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:(w,$)=>$.ghost?s.jsx(Nt,{color:"error",children:"Ghost process"}):$.listening?s.jsx(Nt,{color:"success",children:"Script running"}):$.reused?s.jsx(Nt,{color:"warning",children:"Port reused"}):s.jsx(Nt,{children:"Port released"})},{title:"Action",width:100,align:"center",onHeaderCell:()=>({className:"port-diagnostic-header-center"}),render:(w,$)=>$.listening||$.reused?s.jsx(ia,{title:`Kill process on port ${$.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>C({port:$.port,pid:$.currentPid}),children:s.jsx(Re,{type:"primary",danger:!0,icon:s.jsx(Kn,{}),children:"Kill"})}):s.jsx(Re,{type:"primary",danger:!0,disabled:!0,icon:s.jsx(Kn,{}),children:"Kill"})}];return s.jsxs("div",{className:"port-diagnostic-page",children:[s.jsx(Ur,{actions:s.jsx(Re,{icon:s.jsx(yo,{}),onClick:b,loading:r,children:"Refresh"}),description:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped.",title:"Port Diagnostic"}),s.jsxs(At,{className:"port-manual-query",size:"small",children:[s.jsxs(at,{wrap:!0,children:[s.jsx(Ji,{strong:!0,children:"Query port"}),s.jsx(Xf,{min:1,max:65535,controls:!1,value:i,onChange:c,onPressEnter:x,placeholder:"e.g. 3000"}),s.jsx(Re,{type:"primary",onClick:x,loading:u,disabled:!i,children:"Query"})]}),m&&s.jsx("div",{className:"port-query-result",children:p?s.jsxs(at,{wrap:!0,children:[s.jsx(Nt,{color:"success",children:"Listening"}),s.jsxs(Ji,{code:!0,children:["PID ",p.pid]}),s.jsx(Ji,{code:!0,children:p.command}),s.jsx(ia,{title:`Kill process on port ${p.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>C(p),children:s.jsx(Re,{type:"primary",danger:!0,icon:s.jsx(Kn,{}),children:"Kill"})})]}):s.jsxs(Ji,{type:"secondary",children:["No process is listening on port ",i,"."]})})]}),s.jsx(er,{className:"port-diagnostic-table",rowKey:w=>`${w.startedAt}-${w.port}-${w.pid}`,loading:r,dataSource:t,columns:y,pagination:!1,locale:{emptyText:s.jsx(Qt,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:Yo,Paragraph:Jo,Text:Mn}=Nn,Jy=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}],uf=(e=0)=>{if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n===0?0:1)} ${t[n]}`},Xj=e=>{const t=String((e==null?void 0:e.url)||"").trim().replace(/\/+$/,"");return t==="/pages/welcome"||t==="/pages/welcome/index.html"};function pfe({theme:e,onThemeChange:t,onStaticPagesChange:n}){var Le,Be,Ve,qe;const[r]=bt.useForm(),[a]=bt.useForm(),[i,c]=o.useState({}),[u,f]=o.useState(!1),[m,v]=o.useState(!1),[p,h]=o.useState(null),[b,x]=o.useState(!0),[C,y]=o.useState(!1),[w,$]=o.useState(!1),[E,O]=o.useState(!1),[N,R]=o.useState(null),[I,j]=o.useState(!1),[M,T]=o.useState(""),[P,A]=o.useState(!1),[L,D]=o.useState(!1),V=o.useRef(null),[z,B]=o.useState([]),[_,W]=o.useState(!1),[K,F]=o.useState(!1),[q,U]=o.useState(null),[G,Y]=o.useState(!1),[Z,ie]=o.useState(null),re=async()=>{try{await Jn.openDataDir()}catch($e){Ut.error($e.message)}},X=async()=>{if(M)try{await Jn.openFolder(M)}catch($e){Ut.error($e.message)}},ee=async $e=>{const je=String($e||"").trim();if(je){A(!0);try{const Ae=await vo.saveConfig(je);T(Ae.workspaceDir||je),D(!1),Ut.success("Workspace directory saved.")}catch(Ae){Ut.error(Ae.message)}finally{A(!1)}}},ne=async $e=>{t==null||t($e);try{const je=await Jn.saveTheme($e);c(Ae=>({...Ae,...je}))}catch(je){t==null||t(e),Ut.error(je.message)}},Q=async()=>{x(!0);try{h(await Gy.stats())}catch($e){Ut.error($e.message)}finally{x(!1)}},J=async()=>{$(!0);try{const{blob:$e,filename:je}=await Gy.export(),Ae=URL.createObjectURL($e),De=document.createElement("a");De.href=Ae,De.download=je,document.body.appendChild(De),De.click(),De.remove(),setTimeout(()=>URL.revokeObjectURL(Ae),1e3),Ut.success("Data backup exported.")}catch($e){Ut.error($e.message)}finally{$(!1)}},ae=$e=>{const[je]=$e.target.files||[];$e.target.value="",je&&(j(!1),R(je))},se=async()=>{if(N){O(!0);try{const $e=await Gy.import(N);h($e),j(!0)}catch($e){Ut.error($e.message)}finally{O(!1)}}},te=async()=>{try{const $e=await Ks.list();B($e)}catch($e){Ut.error($e.message)}finally{W(!0)}};o.useEffect(()=>{Jn.status().then($e=>{c($e),r.setFieldsValue({domain:$e.domain,aiApiHost:$e.aiApiHost||"",jiraIssuePrefix:$e.jiraIssuePrefix||"",defaultEditor:$e.defaultEditor||"vscode",defaultBrowser:$e.defaultBrowser||"chrome"})}).catch($e=>Ut.error($e.message)),vo.config().then($e=>T($e.workspaceDir||"")).catch(()=>{}),te(),Q()},[r]);const de=$e=>i[`${$e}TokenConfigured`],ge=async()=>{try{await r.validateFields(["domain","aiApiHost"]),f(!0);const $e=r.getFieldsValue();if($e.domain!=null){const je=await Jn.saveDomain($e.domain);c(Ae=>({...Ae,...je})),r.setFieldValue("domain",je.domain)}if($e.aiApiHost!=null){const je=await Jn.saveAiApiHost($e.aiApiHost);c(Ae=>({...Ae,...je})),r.setFieldValue("aiApiHost",je.aiApiHost)}if($e.jiraIssuePrefix!=null){const je=await Jn.saveJiraIssuePrefix($e.jiraIssuePrefix);c(Ae=>({...Ae,...je})),r.setFieldValue("jiraIssuePrefix",je.jiraIssuePrefix)}if($e.defaultEditor!=null){const je=await Jn.saveDefaultEditor($e.defaultEditor);c(Ae=>({...Ae,...je})),r.setFieldValue("defaultEditor",je.defaultEditor)}if($e.defaultBrowser!=null){const je=await Jn.saveDefaultBrowser($e.defaultBrowser);c(Ae=>({...Ae,...je})),r.setFieldValue("defaultBrowser",je.defaultBrowser)}for(const{id:je}of Jy)if($e[je]){const Ae=await Jn.saveAccessToken(je,$e[je]);c(De=>({...De,...Ae})),r.resetFields([je])}f(!1),v(!0),setTimeout(()=>v(!1),1500)}catch($e){f(!1),$e!=null&&$e.errorFields||Ut.error($e.message)}},Oe=async $e=>{try{const je=await Jn.saveAccessToken($e,"");c(je),r.resetFields([$e]),Ut.success(`${Jy.find(Ae=>Ae.id===$e).label} Access Token removed.`)}catch(je){Ut.error(je.message)}},Me=()=>{U(null),a.resetFields(),F(!0)},Ce=async()=>{const $e="/pages/welcome";if(z.some(Xj)){Ut.info("The test demo page is already added.");return}try{await Ks.create({name:"Welcome Demo",url:$e}),Ut.success("Test demo page added."),await te(),n==null||n()}catch(je){Ut.error(je.message)}},me=$e=>{U($e),a.setFieldsValue({name:$e.name,url:$e.url}),F(!0)},ye=async $e=>{try{await Ks.remove($e),Ut.success("Static page deleted."),await te(),n==null||n()}catch(je){Ut.error(je.message)}},ve=async()=>{try{const $e=await a.validateFields();Y(!0),q?(await Ks.update(q.id,$e),Ut.success("Static page updated.")):(await Ks.create($e),Ut.success("Static page created.")),Y(!1),F(!1),await te(),n==null||n()}catch($e){Y(!1),$e!=null&&$e.errorFields||Ut.error($e.message)}},he=$e=>{var Ae,De;const je=$e.target.closest('a[href^="#settings-"]');if(je){if($e.preventDefault(),je.getAttribute("href")==="#settings-dev-configurations"){(Ae=document.querySelector(".page"))==null||Ae.scrollTo({top:0,behavior:"smooth"});return}(De=document.getElementById(je.getAttribute("href").slice(1)))==null||De.scrollIntoView({behavior:"smooth",block:"start"})}},Ee=[{id:"settings-dev-configurations",label:"Dev Configurations"},{id:"settings-error-logs",label:"Error Logs"},{id:"settings-appearance",label:"Appearance"},{id:"settings-default-applications",label:"Default Applications"},{id:"settings-workspace-directory",label:"Workspace Directory"},{id:"settings-data-directory",label:"Data Directory"},{id:"settings-static-pages",label:"Static Pages"},{id:"settings-access-tokens",label:"Access Tokens & Domain"}];return s.jsxs("div",{className:"settings-page",children:[s.jsx(Ur,{actions:s.jsx(Re,{type:"primary",color:m?"green":"primary",variant:"solid",icon:m?s.jsx(il,{}):null,loading:!m&&u,onClick:ge,children:m?"Saved":"Save"}),className:"settings-page-header",description:"Customize DevBuddy, manage integrations, and maintain your workspace data.",title:"Settings"}),s.jsxs("div",{className:"settings-layout",children:[s.jsx("nav",{className:"settings-section-nav","aria-label":"Settings sections",onClick:he,children:Ee.map(($e,je)=>{const Ae=Z==null?99:Math.abs(je-Z),De=Z==null?12:Math.max(12,52-Ae*10),We=Z===je;return s.jsxs("a",{href:`#${$e.id}`,"aria-label":$e.label,className:We?"is-active":"",style:{"--nav-width":`${De}px`},onMouseEnter:()=>ie(je),onMouseLeave:()=>ie(null),onFocus:()=>ie(je),onBlur:()=>ie(null),children:[s.jsx("span",{className:`settings-section-nav-preview ${We?"is-visible":""}`,children:$e.label}),$e.label]},$e.id)})}),s.jsxs("div",{className:"settings-content",children:[s.jsx(At,{id:"settings-dev-configurations",className:"settings-card settings-card-spaced settings-dev-config-entry",children:s.jsxs("div",{className:"settings-title settings-title-actions",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(OS,{className:"settings-icon"})}),s.jsxs("div",{className:"settings-title-copy",children:[s.jsx(Yo,{level:4,children:"Dev Configurations"}),s.jsx(Jo,{type:"secondary",children:"Read and update your system-level npm and Git configuration, including Git SSH key settings."})]}),s.jsx(Re,{onClick:()=>{window.location.hash="#/dev-configurations"},children:"Open"})]})}),s.jsx(At,{id:"settings-error-logs",className:"settings-card settings-card-spaced settings-dev-config-entry",children:s.jsxs("div",{className:"settings-title settings-title-actions",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(Fu,{className:"settings-icon"})}),s.jsxs("div",{className:"settings-title-copy",children:[s.jsx(Yo,{level:4,children:"Error Logs"}),s.jsx(Jo,{type:"secondary",children:"Review application, launcher, and frontend errors captured by DevBuddy."})]}),s.jsx(Re,{onClick:()=>{window.location.hash="#/errors"},children:"Open"})]})}),s.jsxs(bt,{form:r,layout:"vertical",children:[s.jsxs(At,{id:"settings-appearance",className:"settings-card settings-card-spaced",children:[s.jsxs("div",{className:"settings-title",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(Hj,{className:"settings-icon"})}),s.jsxs("div",{children:[s.jsx(Yo,{level:4,children:"Appearance"}),s.jsx(Jo,{type:"secondary",children:"Choose how DevBuddy looks. Theme changes are applied and saved immediately."})]})]}),s.jsxs("div",{className:"settings-appearance-row",children:[s.jsxs("div",{children:[s.jsx(Mn,{strong:!0,children:"Theme"}),s.jsx(Mn,{type:"secondary",className:"settings-appearance-hint",children:"Use the original dark navigation or the new bright workspace."})]}),s.jsx(jm,{"aria-label":"Application theme",value:e,onChange:ne,options:[{label:"Dark",value:"dark",icon:s.jsx(zue,{})},{label:"Light",value:"light",icon:s.jsx(Hj,{})}]})]})]}),s.jsxs(At,{id:"settings-default-applications",className:"settings-card settings-card-spaced",children:[s.jsxs("div",{className:"settings-title",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(Ea,{className:"settings-icon"})}),s.jsxs("div",{children:[s.jsx(Yo,{level:4,children:"Default Applications"}),s.jsx(Jo,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),s.jsxs("div",{className:"token-settings-form",children:[s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Default Editor"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),s.jsx(bt.Item,{name:"defaultEditor",children:s.jsx(Tn,{options:E7,className:"settings-app-select"})})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Default Browser"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),s.jsx(bt.Item,{name:"defaultBrowser",className:"settings-form-item-flush",children:s.jsx(Tn,{options:Gde(i.isMac!==!1),className:"settings-app-select"})})]})]})]}),s.jsxs(At,{id:"settings-workspace-directory",className:"settings-card settings-card-spaced",children:[s.jsxs("div",{className:"settings-title",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(oa,{className:"settings-icon"})}),s.jsxs("div",{children:[s.jsx(Yo,{level:4,children:"Workspace Directory"}),s.jsx(Jo,{type:"secondary",children:"Local workspace used by Package Upgrade and repository workflows."})]})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Workspace Path"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"Choose the local directory that contains your repositories"})]}),s.jsx("div",{className:"settings-data-path",children:s.jsxs(at.Compact,{className:"directory-path-control",children:[s.jsx(wt,{value:M,readOnly:!0,placeholder:"Not configured",prefix:s.jsx(Re,{type:"text",icon:s.jsx(oa,{}),onClick:X,disabled:!M||P,"aria-label":"Open workspace directory",title:"Open workspace directory"})}),s.jsx(Re,{onClick:()=>D(!0),loading:P,children:"Browse"})]})})]})]}),s.jsx(am,{open:L,initialPath:M||"~",onCancel:()=>D(!1),onSelect:ee,title:"Select Workspace Directory"}),s.jsxs(At,{id:"settings-data-directory",className:"settings-card settings-card-spaced",children:[s.jsxs("div",{className:"settings-title",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(oa,{className:"settings-icon"})}),s.jsxs("div",{children:[s.jsx(Yo,{level:4,children:"Data Directory"}),s.jsx(Jo,{type:"secondary",children:"Local directory where settings, logs, and application data are stored."})]})]}),s.jsxs("div",{className:"token-settings-form",children:[s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Data Storage Path"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"Directory location on your file system"})]}),s.jsx("div",{className:"settings-data-path",children:s.jsx(at.Compact,{className:"directory-path-control directory-path-control-readonly",children:s.jsx(wt,{value:i.dataDir||"",readOnly:!0,prefix:s.jsx(Re,{type:"text",icon:s.jsx(oa,{}),onClick:re,disabled:!i.dataDir,"aria-label":"Open data directory",title:"Open data directory"})})})})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Storage Usage"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"Total size and file count inside the data directory"})]}),s.jsxs("div",{className:"settings-data-usage",children:[s.jsx(Sce,{}),s.jsx(Mn,{strong:!0,children:b?"Calculating…":uf(p==null?void 0:p.sizeBytes)}),!b&&s.jsxs(Mn,{type:"secondary",children:["· ",(p==null?void 0:p.fileCount)||0," files"]}),s.jsx(Re,{type:"link",size:"small",onClick:()=>y(!0),children:"Details"}),s.jsx(Re,{type:"link",size:"small",onClick:Q,loading:b,children:"Refresh"})]})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Backup & Restore"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"Includes settings, access tokens, logs, clipboard files, and other local data"})]}),s.jsxs("div",{className:"settings-backup-actions",children:[s.jsx(Re,{icon:s.jsx(oi,{}),loading:w,onClick:J,children:"Export Backup"}),s.jsx(Re,{icon:s.jsx(Vx,{}),loading:E,onClick:()=>{var $e;return($e=V.current)==null?void 0:$e.click()},children:"Import Backup"}),s.jsx("input",{ref:V,className:"settings-backup-input",hidden:!0,type:"file",accept:".tar.gz,.tgz,application/gzip",onChange:ae})]})]})]})]}),s.jsx(xn,{title:I?"Backup restored":"Import data backup?",open:!!N,onCancel:()=>!E&&(R(null),j(!1)),onOk:()=>I?window.location.reload():se(),okText:I?"Reload DevBuddy":"Import Backup",okButtonProps:{danger:!I,loading:E},cancelText:"Cancel",closable:!E,maskClosable:!E,children:s.jsx("div",{className:"settings-import-confirm",children:I?s.jsxs("div",{className:"settings-import-complete",children:[s.jsx(il,{className:"settings-import-complete-icon"}),s.jsx(Yo,{level:4,children:"Import completed successfully"}),s.jsx(Jo,{children:"Backup data has been restored. Reload DevBuddy to apply the restored settings and files."}),s.jsxs(Mn,{type:"secondary",children:[(p==null?void 0:p.importedFiles)||0," files imported."]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"settings-import-file-summary",children:[s.jsx(Mn,{type:"secondary",children:"Selected file"}),s.jsx(Mn,{strong:!0,children:N==null?void 0:N.name}),s.jsx(Mn,{type:"secondary",children:uf((N==null?void 0:N.size)||0)})]}),s.jsx(Jo,{children:"This backup will be restored into the data directory. Matching files will be overwritten, while other existing files will be kept."}),s.jsx(Mn,{type:"warning",children:"Restart DevBuddy after importing so all restored settings take effect."})]})})}),s.jsxs(At,{id:"settings-static-pages",className:"settings-card settings-card-spaced",children:[s.jsxs("div",{className:"settings-title settings-title-actions",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(ud,{className:"settings-icon"})}),s.jsxs("div",{className:"settings-title-copy",children:[s.jsx(Yo,{level:4,children:"Static Pages"}),s.jsxs(Jo,{type:"secondary",children:["Configure static pages (configuration saved in data/static-pages.json). Static page files can be placed in pages/ or data/pages/ directory or use external URLs."," ",_&&!z.some(Xj)&&s.jsx("a",{href:"#add-test-demo",onClick:$e=>{$e.preventDefault(),Ce()},children:"Add test demo"})]})]}),s.jsx(Re,{type:"primary",icon:s.jsx(Gn,{}),onClick:Me,children:"Add Static Page"})]}),s.jsx(er,{dataSource:z,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:$e=>s.jsx("a",{href:$e,target:"_blank",rel:"noreferrer",children:$e})},{title:s.jsx("div",{className:"settings-action-column-title",children:"Action"}),key:"action",width:140,align:"right",render:($e,je)=>s.jsxs(at,{children:[s.jsx(Re,{type:"link",size:"small",icon:s.jsx(Lo,{}),onClick:()=>me(je),children:"Edit"}),s.jsx(ia,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>ye(je.id),okText:"Yes",cancelText:"No",children:s.jsx(Re,{type:"link",danger:!0,size:"small",icon:s.jsx(Kn,{}),children:"Delete"})})]})}]})]}),s.jsxs(At,{id:"settings-access-tokens",className:"settings-card",children:[s.jsxs("div",{className:"settings-title",children:[s.jsx("div",{className:"settings-icon-wrap",children:s.jsx(Sue,{className:"settings-icon"})}),s.jsxs("div",{children:[s.jsx(Yo,{level:4,children:"Access Tokens & Domain"}),s.jsx(Jo,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),s.jsxs("div",{className:"token-settings-form",children:[s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Domain"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),s.jsx(bt.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:s.jsx(wt,{placeholder:"abc.com",allowClear:!0})})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"AI API Host"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"e.g. https://api.openai.com/v1"})]}),s.jsx(bt.Item,{name:"aiApiHost",rules:[{validator:($e,je)=>{if(!je)return Promise.resolve();try{const Ae=new URL(je);if(!["http:","https:"].includes(Ae.protocol)||!Ae.host)throw new Error;return Promise.resolve()}catch{return Promise.reject(new Error("Enter a valid HTTP(S) API host."))}}}],children:s.jsx(wt,{placeholder:"https://api.openai.com/v1",allowClear:!0})})]}),s.jsxs("div",{className:"token-row",children:[s.jsxs("div",{className:"token-row-info",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),s.jsx(Mn,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),s.jsx(bt.Item,{name:"jiraIssuePrefix",children:s.jsx(wt,{placeholder:"PROJ",allowClear:!0})})]}),Jy.map(({id:$e,label:je})=>s.jsxs("div",{className:`token-row ${de($e)?"is-configured":""}`,children:[s.jsxs("div",{className:"token-row-info",children:[s.jsxs("div",{className:"token-row-name-line",children:[s.jsx(Mn,{strong:!0,className:"token-row-name",children:je}),de($e)&&s.jsx(Nt,{color:"success",closable:!0,onClose:Ae=>{Ae.preventDefault(),Oe($e)},className:"token-row-tag",children:"Configured"})]}),s.jsxs(Mn,{type:"secondary",className:"token-row-hint",children:[je," API access token"]})]}),s.jsx(bt.Item,{name:$e,children:s.jsx(wt.Password,{placeholder:de($e)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},$e))]})]})]})]})]}),s.jsxs(xn,{className:"settings-storage-modal",title:"Storage Usage Details",open:C,onCancel:()=>y(!1),width:760,footer:[s.jsx(Re,{onClick:Q,loading:b,children:"Refresh Analysis"},"refresh"),s.jsx(Re,{type:"primary",onClick:()=>y(!1),children:"Close"},"close")],children:[s.jsx(Jo,{type:"secondary",className:"settings-storage-description",children:"Size analysis for the DevBuddy data directory, grouped by top-level folder."}),s.jsxs("div",{className:"settings-storage-summary",children:[s.jsxs("div",{children:[s.jsx(Mn,{type:"secondary",children:"Total size"}),s.jsx(Mn,{strong:!0,children:b?"—":uf(p==null?void 0:p.sizeBytes)})]}),s.jsxs("div",{children:[s.jsx(Mn,{type:"secondary",children:"Files"}),s.jsx(Mn,{strong:!0,children:b?"—":((p==null?void 0:p.fileCount)||0).toLocaleString()})]}),s.jsxs("div",{children:[s.jsx(Mn,{type:"secondary",children:"Storage groups"}),s.jsx(Mn,{strong:!0,children:b?"—":(((Le=p==null?void 0:p.breakdown)==null?void 0:Le.length)||0).toLocaleString()})]})]}),s.jsx(Yo,{level:5,className:"settings-storage-section-title",children:"Breakdown"}),!b&&!((Be=p==null?void 0:p.breakdown)!=null&&Be.length)?s.jsx(Qt,{image:Qt.PRESENTED_IMAGE_SIMPLE,description:"The data directory is empty"}):s.jsx(er,{className:"settings-storage-table",dataSource:(p==null?void 0:p.breakdown)||[],rowKey:"path",loading:b,pagination:!1,size:"small",scroll:((Ve=p==null?void 0:p.breakdown)==null?void 0:Ve.length)>6?{y:260}:void 0,columns:[{title:"Location",dataIndex:"name",key:"name",render:($e,je)=>s.jsxs("span",{className:"settings-storage-location",children:[je.path==="."?s.jsx(as,{}):s.jsx(Mf,{}),s.jsx(Mn,{strong:!0,children:$e})]})},{title:"Usage",key:"usage",width:250,render:($e,je)=>{const Ae=p!=null&&p.sizeBytes?je.sizeBytes/p.sizeBytes*100:0;return s.jsxs("div",{className:"settings-storage-usage-cell",children:[s.jsx(Rm,{percent:Ae,showInfo:!1,size:"small"}),s.jsxs(Mn,{type:"secondary",children:[Ae<.1&&Ae>0?"<0.1":Ae.toFixed(1),"%"]})]})}},{title:"Size",dataIndex:"sizeBytes",key:"sizeBytes",width:90,align:"right",render:uf},{title:"Files",dataIndex:"fileCount",key:"fileCount",width:75,align:"right",render:$e=>$e.toLocaleString()}]}),!!((qe=p==null?void 0:p.largestFiles)!=null&&qe.length)&&s.jsxs(s.Fragment,{children:[s.jsx(Yo,{level:5,className:"settings-storage-section-title",children:"Largest files"}),s.jsx("div",{className:"settings-largest-files",children:p.largestFiles.map($e=>s.jsxs("div",{className:"settings-largest-file",children:[s.jsxs("span",{children:[s.jsx(as,{}),s.jsx(Mn,{ellipsis:{tooltip:$e.path},children:$e.path})]}),s.jsx(Mn,{strong:!0,children:uf($e.sizeBytes)})]},$e.path))})]})]}),s.jsx(xn,{title:q?"Edit Static Page":"Add Static Page",open:K,onOk:ve,onCancel:()=>F(!1),okText:"Save",confirmLoading:G,destroyOnClose:!0,children:s.jsxs(bt,{form:a,layout:"vertical",className:"settings-page-modal-form",children:[s.jsx(bt.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:s.jsx(wt,{placeholder:"e.g. test name"})}),s.jsx(bt.Item,{name:"url",label:"URL",extra:"Local pages in pages/ or data/pages/ directory can be accessed via /pages/<path> or /data/pages/<path>",rules:[{required:!0,message:"Please enter page URL"}],children:s.jsx(wt,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Paragraph:mp,Text:Dr}=Nn,zs={npm:{prefix:"",registry:"https://registry.npmjs.org/",strictSsl:!0,cache:"",proxy:"",httpsProxy:""},git:{name:"",email:"",sshKey:""},nvm:{defaultVersion:""}};function gfe(e){const t=String(e||"").replace(/^v/,""),[n="",r=""]=t.split(".");return[n,`${n}.${r}`,e]}function hfe(e=[]){const t=new Map;return e.forEach(n=>{const r=typeof n=="string"?n:n.version,a=typeof n=="string"?"":n.publishedAt,[i="",c=""]=String(r).replace(/^v/,"").split(".");t.has(i)||t.set(i,new Map);const u=t.get(i),f=`${i}.${c}`;u.has(f)||u.set(f,[]),u.get(f).push({label:s.jsxs("span",{className:"npm-version-option",children:[s.jsx("span",{children:r}),a&&s.jsx("span",{className:"npm-version-published",children:new Date(a).toLocaleDateString()})]}),value:r})}),[...t.entries()].map(([n,r])=>({label:`v${n}`,value:n,children:[...r.entries()].map(([a,i])=>({label:a,value:a,children:i}))}))}function bfe(){var we;const{message:e}=_r.useApp(),[t]=bt.useForm(),[n,r]=o.useState(!0),[a,i]=o.useState(!1),[c,u]=o.useState(!1),[f,m]=o.useState(!1),[v,p]=o.useState({nodeVersion:"",npmVersion:""}),[h,b]=o.useState({installed:!1,currentVersion:"",defaultVersion:"",nvmDir:"",nodeJsMirror:"",installedVersions:[]}),[x,C]=o.useState(""),[y,w]=o.useState(!1),[$,E]=o.useState([]),[O,N]=o.useState(!1),[R,I]=o.useState(!1),[j,M]=o.useState(""),[T,P]=o.useState(""),[A,L]=o.useState([]),[D,V]=o.useState(!1),[z,B]=o.useState(!1),[_,W]=o.useState(null),[K,F]=o.useState(""),[q,U]=o.useState([]),[G,Y]=o.useState([]),[Z,ie]=o.useState(!1),[re,X]=o.useState(""),[ee,ne]=o.useState(!1),[Q,J]=o.useState(null),[ae,se]=o.useState("~"),[te,de]=o.useState(!1),[ge,Oe]=o.useState("npm");o.useEffect(()=>{Jn.devConfigurations().then(Se=>{var ke,Ye,ot,st,vt;b(Se.nvm||zs.nvm),E(((ke=Se.npm)==null?void 0:ke.globalPackages)||[]),p({nodeVersion:((Ye=Se.npm)==null?void 0:Ye.nodeVersion)||"",npmVersion:((ot=Se.npm)==null?void 0:ot.npmVersion)||""}),t.setFieldsValue({npm:{...zs.npm,...Se.npm},git:{...zs.git,...Se.git},nvm:{defaultVersion:((st=Se.nvm)==null?void 0:st.defaultVersion)||"",nodeJsMirror:((vt=Se.nvm)==null?void 0:vt.nodeJsMirror)||""}})}).catch(Se=>Ut.error(Se.message)).finally(()=>r(!1))},[t]);const Me=async()=>{try{await t.validateFields();const ke=t.getFieldsValue(!0)[ge]||{},Ye={section:ge,[ge]:{...zs[ge],...ke}};i(!0);const ot=await Jn.saveDevConfigurations(Ye);t.setFieldsValue(ot),ot.nvm&&b(ot.nvm),m(!0),window.setTimeout(()=>m(!1),1500)}catch(Se){Se!=null&&Se.errorFields||Ut.error(Se.message)}finally{i(!1)}},Ce=async()=>{if(x.trim()){w(!0);try{const Se=await Hde.install(x.trim());b(Se),C(""),Ut.success(`Installed Node.js ${Se.currentVersion||x.trim()}.`)}catch(Se){Ut.error(Se.message)}finally{w(!1)}}},me=async()=>{var Se,ke,Ye,ot,st;N(!0);try{const vt=await Jn.devConfigurations();E(((Se=vt.npm)==null?void 0:Se.globalPackages)||[]),p({nodeVersion:((ke=vt.npm)==null?void 0:ke.nodeVersion)||"",npmVersion:((Ye=vt.npm)==null?void 0:Ye.npmVersion)||""}),vt.nvm&&b(vt.nvm),t.setFieldsValue({npm:{...zs.npm,...vt.npm},git:{...zs.git,...vt.git},nvm:{defaultVersion:((ot=vt.nvm)==null?void 0:ot.defaultVersion)||"",nodeJsMirror:((st=vt.nvm)==null?void 0:st.nodeJsMirror)||""}})}catch(vt){Ut.error(vt.message)}finally{N(!1)}},ye=async(Se,ke)=>{M(`${Se}:${ke}`);try{await Us.manage(Se,ke),await me(),e.success(`${ke} ${Se==="uninstall"?"uninstalled":"upgraded"}.`)}catch(Ye){Ut.error(Ye.message)}finally{M("")}},ve=async()=>{if(T.trim()){B(!0);try{L(await Us.search(T.trim())),V(!1)}catch(Se){Ut.error(Se.message)}finally{B(!1)}}},he=async()=>{if(_){ne(!0);try{const Se=K.trim()?`${_.name}@${K.trim()}`:_.name;await Us.manage("install",Se),await me(),W(null),L([]),P(""),e.success(`${Se} installed.`)}catch(Se){Ut.error(Se.message)}finally{ne(!1)}}},Ee=async Se=>{var ke;ie(!0),X(Se.name);try{const Ye=await Us.versions(Se.name),ot=Ye.length?Ye:Se.version?[{version:Se.version,publishedAt:""}]:[],st=Se.version||((ke=ot[0])==null?void 0:ke.version)||"";Y(ot),F(st),U(gfe(st)),W(Se)}catch(Ye){Ut.error(Ye.message)}finally{ie(!1),X("")}},Le=Se=>{se(t.getFieldValue(["npm",Se])||"~"),J(Se)},Be=Se=>{Q&&t.setFieldValue(["npm",Q],Se),J(null)},Ve=Se=>{t.setFieldValue(["git","sshKey"],Se),m(!1),de(!1)},qe=async Se=>{const ke=String(t.getFieldValue(["npm",Se])||"").trim();if(!ke){e.info(`Select a ${Se} directory first.`);return}try{await Jn.openFolder(ke)}catch(Ye){e.error(Ye.message)}},$e=async()=>{u(!0);try{const Se=await Us.useSuggestedPrefix();t.setFieldValue(["npm","prefix"],Se.prefix),m(!1),e.success(`NPM prefix set to ${Se.prefix}.`)}catch(Se){e.error(Se.message)}finally{u(!1)}},je=Se=>{t.setFieldValue(["npm",Se],zs.npm[Se]),m(!1)},Ae=(Se,ke)=>s.jsxs("span",{className:"npm-field-label",children:[s.jsx("span",{children:Se}),s.jsx(Re,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",onClick:()=>je(ke),children:"Reset"})]}),De=[{title:"Package",dataIndex:"name",key:"name",render:Se=>s.jsx(Dr,{code:!0,children:Se})},{title:"Version",dataIndex:"version",key:"version",render:Se=>s.jsx(Nt,{children:Se||"unknown"})},{title:"Actions",key:"actions",align:"right",render:(Se,ke)=>s.jsx("div",{className:"npm-package-actions",children:s.jsx(ia,{title:`Uninstall ${ke.name}?`,onConfirm:()=>ye("uninstall",ke.name),okText:"Uninstall",okButtonProps:{danger:!0},children:s.jsx(Re,{type:"primary",danger:!0,size:"small",loading:j===`uninstall:${ke.name}`,children:"Uninstall"})})})}],We=s.jsxs(At,{className:"dev-config-card",bordered:!1,children:[s.jsxs("div",{className:"dev-config-section-heading",children:[s.jsx("div",{className:"dev-config-icon npm-icon",children:s.jsx(Ea,{})}),s.jsxs("div",{children:[s.jsx(Dr,{strong:!0,children:"NPM configuration"}),s.jsx(mp,{type:"secondary",children:"Set the defaults used by npm when installing and publishing packages."})]})]}),s.jsxs("div",{className:"npm-runtime-status",children:[s.jsxs("div",{children:[s.jsx(Dr,{type:"secondary",children:"Current Node.js"}),s.jsx(Dr,{strong:!0,children:v.nodeVersion||"—"})]}),s.jsxs("div",{children:[s.jsx(Dr,{type:"secondary",children:"Current npm"}),s.jsx(Dr,{strong:!0,children:v.npmVersion||"—"})]})]}),s.jsxs("div",{className:"dev-config-grid",children:[s.jsx(bt.Item,{label:s.jsxs("span",{className:"npm-field-label",children:[s.jsx("span",{children:"Prefix"}),s.jsx(Re,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",onClick:()=>je("prefix"),children:"Reset"}),s.jsx(Re,{type:"link",size:"small",htmlType:"button",className:"npm-reset-button",loading:c,onClick:$e,children:"Use suggestion"})]}),name:["npm","prefix"],extra:"Global package installation directory.",children:s.jsx(wt,{className:"npm-directory-input",prefix:s.jsx(Re,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:s.jsx(oa,{}),onClick:()=>qe("prefix"),"aria-label":"Open Prefix Directory",title:"Open Prefix Directory"}),allowClear:!0,readOnly:!0,placeholder:"/usr/local",addonAfter:s.jsx(Re,{htmlType:"button",type:"text",onClick:()=>Le("prefix"),children:"Browse"})})}),s.jsx(bt.Item,{label:Ae("Registry","registry"),name:["npm","registry"],rules:[{type:"url",warningOnly:!0}],children:s.jsx(wt,{placeholder:"https://registry.npmjs.org/"})}),s.jsx(bt.Item,{label:Ae("Cache","cache"),name:["npm","cache"],extra:"Leave blank to use npm's default cache location.",children:s.jsx(wt,{className:"npm-directory-input",prefix:s.jsx(Re,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:s.jsx(oa,{}),onClick:()=>qe("cache"),"aria-label":"Open Cache Directory",title:"Open Cache Directory"}),allowClear:!0,readOnly:!0,placeholder:"~/.npm",addonAfter:s.jsx(Re,{htmlType:"button",type:"text",onClick:()=>Le("cache"),children:"Browse"})})}),s.jsx(bt.Item,{label:Ae("Proxy","proxy"),name:["npm","proxy"],children:s.jsx(wt,{placeholder:"http://proxy.example.com:8080"})}),s.jsx(bt.Item,{label:Ae("HTTPS Proxy","httpsProxy"),name:["npm","httpsProxy"],children:s.jsx(wt,{placeholder:"http://proxy.example.com:8080"})}),s.jsx(bt.Item,{label:"Strict SSL",name:["npm","strictSsl"],valuePropName:"checked",extra:"Verify SSL certificates when connecting to the registry.",children:s.jsx(Oi,{})})]}),s.jsx("div",{className:"npm-global-packages",children:s.jsxs("div",{className:"npm-global-packages-heading",children:[s.jsxs("div",{children:[s.jsx(Dr,{strong:!0,children:"Global packages"}),s.jsx(mp,{type:"secondary",children:"Manage packages installed globally by the system npm."})]}),s.jsxs(Re,{icon:s.jsx(yo,{}),loading:O,onClick:()=>{I(!0),me()},children:["Manage (",$.length,")"]})]})})]}),Ie=s.jsxs(At,{className:"dev-config-card",bordered:!1,children:[s.jsxs("div",{className:"dev-config-section-heading",children:[s.jsx("div",{className:"dev-config-icon git-icon",children:s.jsx(vg,{})}),s.jsxs("div",{children:[s.jsx(Dr,{strong:!0,children:"GIT identity"}),s.jsx(mp,{type:"secondary",children:"Configure the author identity Git uses for new commits."})]})]}),s.jsxs("div",{className:"dev-config-grid git-grid",children:[s.jsx(bt.Item,{label:"Name",name:["git","name"],children:s.jsx(wt,{placeholder:"Ada Lovelace"})}),s.jsx(bt.Item,{label:"Email",name:["git","email"],rules:[{type:"email",warningOnly:!0}],children:s.jsx(wt,{placeholder:"ada@example.com"})}),s.jsx(bt.Item,{className:"git-ssh-key",label:"SSH Key",name:["git","sshKey"],extra:"Enter a path directly or choose a private key file.",children:s.jsx(wt,{className:"npm-directory-input",placeholder:"~/.ssh/id_ed25519",prefix:s.jsx(Re,{htmlType:"button",type:"text",className:"npm-directory-picker",icon:s.jsx(as,{}),"aria-label":"Select SSH Key File",onClick:()=>de(!0)})})})]})]}),Pe=s.jsxs(At,{className:"dev-config-card",bordered:!1,children:[s.jsxs("div",{className:"dev-config-section-heading",children:[s.jsx("div",{className:"dev-config-icon nvm-icon",children:s.jsx(Ea,{})}),s.jsxs("div",{children:[s.jsx(Dr,{strong:!0,children:"NVM configuration"}),s.jsx(mp,{type:"secondary",children:"Manage Node.js versions through the system NVM installation."})]})]}),s.jsxs("div",{className:"nvm-status-grid",children:[s.jsxs("div",{children:[s.jsx(Dr,{type:"secondary",children:"NVM version"}),s.jsx(Dr,{strong:!0,children:h.version||"—"})]}),s.jsxs("div",{children:[s.jsx(Dr,{type:"secondary",children:"Current using version"}),s.jsx(Dr,{strong:!0,children:h.currentVersion||"—"})]}),s.jsxs("div",{children:[s.jsx(Dr,{type:"secondary",children:"NVM directory"}),s.jsx(Dr,{strong:!0,children:h.nvmDir||"—"})]})]}),s.jsxs("div",{className:"dev-config-grid nvm-grid",children:[s.jsx(bt.Item,{label:"Node.js download mirror",name:["nvm","nodeJsMirror"],extra:"Saved as NVM_NODEJS_ORG_MIRROR in your shell profile.",children:s.jsx(wt,{placeholder:"https://nodejs.org/dist"})}),s.jsx(bt.Item,{label:"Default Node.js version",name:["nvm","defaultVersion"],extra:"Applied through nvm alias default when you save.",children:s.jsx(wt,{placeholder:"20"})}),s.jsx(bt.Item,{label:"Install Node.js version",extra:"Examples: 20, 20.11.1, lts/*",children:s.jsx(wt,{value:x,onChange:Se=>C(Se.target.value),addonAfter:s.jsx(Re,{type:"link",loading:y,onClick:Ce,children:"Install"}),placeholder:"22"})})]}),s.jsxs("div",{className:"nvm-installed-versions",children:[s.jsx(Dr,{type:"secondary",children:"Installed versions"}),s.jsx("div",{children:(we=h.installedVersions)!=null&&we.length?h.installedVersions.map(Se=>s.jsx(Nt,{children:Se},Se)):s.jsx(Dr,{type:"secondary",children:"None found"})})]})]}),Fe=s.jsxs(xn,{title:"Global packages",open:R,onCancel:()=>!j&&!ee&&I(!1),footer:null,width:760,children:[s.jsxs("div",{className:"npm-install-row",children:[s.jsx(wt,{value:T,onChange:Se=>P(Se.target.value),onPressEnter:ve,placeholder:"Search npm packages"}),s.jsx(Re,{type:"primary",loading:z,disabled:!T.trim(),onClick:ve,children:"Search"}),s.jsx(Re,{icon:s.jsx(yo,{}),loading:O,onClick:me,children:"Refresh"})]}),A.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(Dr,{strong:!0,children:"Search results"}),s.jsx(er,{className:"npm-search-results",rowKey:"name",size:"small",dataSource:D?A:A.slice(0,5),pagination:!1,columns:[{title:"Package",dataIndex:"name",render:Se=>s.jsx(Dr,{code:!0,children:Se})},{title:"Version",dataIndex:"version"},{title:"Description",dataIndex:"description",ellipsis:!0},{title:"",key:"install",align:"right",render:(Se,ke)=>s.jsx(Re,{size:"small",type:"primary",loading:Z&&ke.name===re,onClick:()=>Ee(ke),children:"Install"})}]}),A.length>5&&s.jsx(Re,{className:"npm-show-more",type:"link",onClick:()=>V(Se=>!Se),children:D?"Show fewer":`Show more (${A.length-5})`}),s.jsx(Em,{})]}),s.jsx(er,{className:"npm-global-package-table",rowKey:"name",size:"small",loading:O,dataSource:$,columns:De,pagination:!1,locale:{emptyText:"No global packages found."}})]}),Xe=s.jsx(xn,{className:"npm-install-confirm-modal",width:560,title:"Install global package?",open:!!_,onCancel:()=>!ee&&W(null),onOk:he,okText:ee?"Installing…":"Install",confirmLoading:ee,closable:!ee,maskClosable:!ee,children:ee?s.jsxs("div",{className:"npm-install-progress",children:[s.jsx(Cr,{}),s.jsxs(Dr,{children:["Installing ",s.jsxs("strong",{children:[_==null?void 0:_.name,K?`@${K}`:""]})," globally with npm…"]}),s.jsx(Dr,{type:"secondary",children:"This may take a moment. The package list will refresh when it finishes."})]}):s.jsxs("div",{className:"npm-install-confirm",children:[s.jsx(Dr,{children:"Choose the version to install:"}),s.jsx(cl,{className:"npm-version-select",popupClassName:"npm-version-picker",value:q,onChange:Se=>{const ke=Se||[];U(ke),F(ke.length?ke[ke.length-1]:"")},options:hfe(G),placeholder:"Select a version",expandTrigger:"hover",displayRender:Se=>Se.length?Se[Se.length-1]:""}),s.jsx(Dr,{type:"secondary",children:"Versions are grouped by major and minor release. Publish dates are shown on the patch version."})]})});return s.jsxs("div",{className:"dev-configurations-page",children:[s.jsx(Ur,{actions:s.jsx(Re,{type:"primary",icon:f?s.jsx(il,{}):null,loading:!f&&a,onClick:Me,children:f?"Saved":"Save"}),description:"Read and update the system-level npm and Git configuration used across your development workflow.",eyebrow:"DEVELOPMENT",title:"Dev Configurations"}),s.jsx(Cr,{spinning:n,tip:"Loading system configuration…",children:s.jsx(bt,{form:t,layout:"vertical",children:s.jsx(Aa,{activeKey:ge,onChange:Oe,items:[{key:"npm",label:"NPM",icon:s.jsx(Ea,{}),children:s.jsxs(s.Fragment,{children:[We,Fe,Xe]})},{key:"git",label:"GIT",icon:s.jsx(vg,{}),children:Ie},{key:"nvm",label:"NVM",icon:s.jsx(Ea,{}),disabled:!h.installed,children:Pe}]})})}),s.jsx(am,{open:!!Q,initialPath:ae,onCancel:()=>J(null),onSelect:Be,title:"Select Project Directory"}),s.jsx(am,{open:te,initialPath:"~",onCancel:()=>de(!1),onSelect:Ve,selectionType:"file",title:"Select SSH Key File"})]})}const{Title:yfe,Text:mo,Paragraph:xfe}=Nn,{Dragger:Cfe}=wh,Yj=(e=0)=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n?1:0)} ${t[n]}`},Sfe=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function wfe(){const[e,t]=o.useState(null),[n,r]=o.useState(null),[a,i]=o.useState(75),[c,u]=o.useState(!0),[f,m]=o.useState(!0),[v,p]=o.useState(!0),[h,b]=o.useState(2),[x,C]=o.useState(!1),[y,w]=o.useState(null),[$,E]=o.useState(100),[O,N]=o.useState(!1),[R,I]=o.useState(!1),[j,M]=Ut.useMessage(),T=o.useRef(null),P=o.useRef(null),A=K=>{var F;(F=K.current)!=null&&F.url&&URL.revokeObjectURL(K.current.url)},L=K=>{var q;if(!((q=K==null?void 0:K.type)!=null&&q.startsWith("image/")))return j.error("Please choose an image file."),!1;A(T),A(P);const F=Sfe(K);return T.current=F,P.current=null,t(F),r(null),B(K),!1},D=K=>{var F;return[...((F=K.dataTransfer)==null?void 0:F.types)||[]].includes("Files")},V=K=>{var q;K.preventDefault(),I(!1);const F=[...((q=K.dataTransfer)==null?void 0:q.files)||[]].find(U=>U.type.startsWith("image/"));F?L(F):j.error("Drop an image file to compress it.")};o.useEffect(()=>()=>{A(T),A(P)},[]),o.useEffect(()=>{const K=F=>{var G;const q=[...((G=F.clipboardData)==null?void 0:G.items)||[]].find(Y=>Y.type.startsWith("image/"));if(!q)return;F.preventDefault();const U=q.getAsFile();U&&(L(new File([U],`clipboard-${Date.now()}.${U.type.split("/")[1]||"png"}`,{type:U.type})),j.success("Image read from clipboard."))};return window.addEventListener("paste",K),()=>window.removeEventListener("paste",K)},[j]);const z=async()=>{var K;try{if(!((K=navigator.clipboard)!=null&&K.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const F=await navigator.clipboard.read();for(const q of F){const U=q.types.find(G=>G.startsWith("image/"));if(U){const G=await q.getType(U);L(new File([G],`clipboard-${Date.now()}.${U.split("/")[1]||"png"}`,{type:U})),j.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(F){j.warning(F.message||"Unable to read an image from the clipboard.")}},B=async(K=e==null?void 0:e.file)=>{if(K){N(!0);try{const[{encode:F},{imageData:q,width:U,height:G}]=await Promise.all([Vu(()=>import("./index-_vMuByUV.js"),[]),$7(K,y,$)]),Y=await F(q,{quality:a,progressive:c,optimize_coding:f,auto_subsample:v,chroma_subsample:h,trellis_multipass:x});A(P);const Z=new Blob([Y],{type:"image/jpeg"}),ie={url:URL.createObjectURL(Z),size:Z.size,width:U,height:G};P.current=ie,r(ie),j.success("MozJPEG compression complete.")}catch(F){j.error(F.message||"Image compression failed.")}finally{N(!1)}}},_=()=>{if(!n)return;const K=e.name.replace(/\.[^.]+$/,"")||"image",F=document.createElement("a");F.href=n.url,F.download=`${K}-mozjpeg.jpg`,F.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return s.jsxs(s.Fragment,{children:[M,s.jsxs("div",{className:`squoosh-page ${R?"is-file-dragging":""}`,onDragOver:K=>{D(K)&&(K.preventDefault(),I(!0))},onDragLeave:K=>{K.currentTarget===K.target&&I(!1)},onDrop:V,children:[s.jsx(Ur,{actions:s.jsxs(at,{children:[s.jsx(Re,{icon:s.jsx(xo,{}),onClick:z,children:"Read clipboard"}),s.jsx(Re,{type:"primary",icon:s.jsx(Fx,{}),onClick:()=>B(),disabled:!e,loading:O,children:"Compress"})]}),description:"Compress JPEG images locally while balancing visual quality and file size.",title:"Image compression"}),s.jsxs("div",{className:"squoosh-studio",children:[s.jsxs("div",{className:"squoosh-preview-area",children:[s.jsx(Jj,{title:"Original",detail:e?`${Yj(e.size)} · ${e.name}`:"Choose an image to begin",children:e?s.jsx(Qj,{label:"Original image",image:e.url}):s.jsxs(Cfe,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:L,className:"image-dropzone",children:[s.jsx("p",{className:"ant-upload-drag-icon",children:s.jsx(tm,{})}),s.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),s.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),s.jsx(Jj,{title:"MozJPEG output",detail:n?`${Yj(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&s.jsx(Re,{type:"primary",size:"small",icon:s.jsx(oi,{}),onClick:_,children:"Download"}),children:O?s.jsx("div",{className:"image-loading",children:s.jsx(Cr,{tip:"Compressing…"})}):n?s.jsxs(s.Fragment,{children:[s.jsx(Qj,{label:"Compressed JPEG",image:n.url}),W!==null&&s.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):s.jsx(Qt,{image:Qt.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),s.jsxs("aside",{className:"squoosh-settings",children:[s.jsxs("div",{className:"settings-heading",children:[s.jsx(mo,{children:"ENCODER"}),s.jsx(yfe,{level:4,children:"MozJPEG"}),s.jsx(xfe,{children:"Fine-tune output size and image quality."})]}),s.jsxs("div",{className:"option-row",children:[s.jsxs("div",{children:[s.jsx(mo,{strong:!0,children:"Quality"}),s.jsx("br",{}),s.jsx(mo,{type:"secondary",children:"Higher values preserve more detail."})]}),s.jsx(Nt,{color:"purple",children:a})]}),s.jsx(lQ,{min:1,max:100,value:a,onChange:i,tooltip:{formatter:K=>`${K}`}}),s.jsxs("div",{className:"option-select",children:[s.jsxs("div",{children:[s.jsx(mo,{strong:!0,children:"Long edge"}),s.jsx("br",{}),s.jsx(mo,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),s.jsx(Xf,{min:1,max:16384,value:y,onChange:w,placeholder:"Original",addonAfter:"px"})]}),s.jsxs("div",{className:"option-select",children:[s.jsxs("div",{children:[s.jsx(mo,{strong:!0,children:"Scale"}),s.jsx("br",{}),s.jsx(mo,{type:"secondary",children:"Scale the image by percentage."})]}),s.jsx(Xf,{min:1,max:100,value:$,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),s.jsx(vp,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),s.jsx(vp,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:f,onChange:m}),s.jsx(_g,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:s.jsxs(s.Fragment,{children:[s.jsx(vp,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:p}),s.jsxs("div",{className:"option-select",children:[s.jsxs("div",{children:[s.jsx(mo,{strong:!0,children:"Chroma subsampling"}),s.jsx("br",{}),s.jsx(mo,{type:"secondary",children:"Enabled when automatic mode is off."})]}),s.jsx(Tn,{disabled:v,value:h,onChange:b,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),s.jsx(vp,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:x,onChange:C})]})}]}),s.jsx(Re,{type:"primary",size:"large",block:!0,icon:s.jsx(Fx,{}),onClick:()=>B(),disabled:!e,loading:O,children:"Compress image"})]})]})]})]})}function Jj({title:e,detail:t,action:n,children:r}){return s.jsxs("div",{className:"preview-pane",children:[s.jsxs("header",{children:[s.jsxs("div",{children:[s.jsx(mo,{children:e}),s.jsx("span",{children:t})]}),n]}),s.jsx("div",{className:"preview-canvas",children:r})]})}function vp({label:e,description:t,checked:n,onChange:r}){return s.jsxs("div",{className:"option-switch",children:[s.jsxs("div",{children:[s.jsx(mo,{strong:!0,children:e}),s.jsx("br",{}),s.jsx(mo,{type:"secondary",children:t})]}),s.jsx(Oi,{checked:n,onChange:r})]})}function Qj({label:e,image:t,metadata:n}){return s.jsxs("div",{className:"image-panel",children:[s.jsx("img",{src:t,alt:e}),n&&s.jsx("div",{className:"image-panel-meta",children:s.jsx(mo,{type:"secondary",children:n})})]})}const{Paragraph:$fe,Text:vr}=Nn;function Efe({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?s.jsx(Qt,{className:"pr-review-empty",description:"No open pull requests found."}):s.jsx("div",{className:"pr-review-list",children:e.map(a=>{var f,m,v,p,h,b,x,C,y;const i=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return s.jsx(At,{size:"small",hoverable:!0,className:`pr-review-list-item ${u?"is-selected":""}`,onClick:w=>{w.target.closest('.ant-checkbox-wrapper, .ant-checkbox, input[type="checkbox"]')||i&&r(i)},children:s.jsxs("div",{className:"pr-review-list-row",children:[s.jsxs("div",{className:"pr-review-list-primary",children:[s.jsx(sr,{checked:u,onChange:w=>{w.stopPropagation(),n(c)},onClick:w=>w.stopPropagation()}),s.jsxs("div",{className:"pr-review-list-copy",children:[s.jsxs(at,{size:8,wrap:!0,children:[s.jsxs(vr,{strong:!0,className:"pr-review-list-title",children:["#",a.id," ",a.title]}),a.draft&&s.jsx(Nt,{color:"gold",children:"Draft"})]}),s.jsxs("div",{className:"pr-review-list-meta",children:[s.jsxs(vr,{type:"secondary",style:{fontWeight:500},children:[(v=(m=(f=a.fromRef)==null?void 0:f.repository)==null?void 0:m.project)==null?void 0:v.key," / ",(h=(p=a.fromRef)==null?void 0:p.repository)==null?void 0:h.slug]}),s.jsx("span",{className:"pr-review-list-separator",children:"|"}),s.jsx(Nt,{size:"small",className:"pr-review-branch-tag",children:(b=a.fromRef)==null?void 0:b.displayId}),s.jsx(Ys,{style:{fontSize:"10px"}}),s.jsx(Nt,{size:"small",className:"pr-review-branch-tag",children:(x=a.toRef)==null?void 0:x.displayId}),s.jsx("span",{className:"pr-review-list-separator",children:"|"}),s.jsxs("span",{children:["Author: ",s.jsx("strong",{children:(y=(C=a.author)==null?void 0:C.user)==null?void 0:y.displayName})]}),s.jsx("span",{className:"pr-review-list-separator",children:"|"}),s.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),s.jsxs(at,{size:8,children:[s.jsx(Re,{size:"small",icon:s.jsx(wi,{}),onClick:w=>{w.stopPropagation(),i&&ir(i)},children:"Open"}),s.jsx(Re,{type:"primary",size:"small",onClick:w=>{w.stopPropagation(),i&&r(i)},children:"Review"})]})]})},c)})})}function Zj(){const e=window.location.hash||"";if(e.includes("#/pr-review/detail")){const t=e.indexOf("?");if(t!==-1)return new URLSearchParams(e.slice(t)).get("url")||""}return""}function jfe(e){if(!e)return"";let t=String(e||"").trim();t=t.replace(/^```(?:markdown|md|json)?\s*/i,"").replace(/\s*```$/i,"").trim();const n=/^\{?\s*\\?"?summary\\?"?\s*:\s*\\?"?/i;n.test(t)&&(t=t.replace(n,""),t=t.replace(/\\?"\s*,?\s*\\?"?findings\\?"?\s*:\s*\[[\s\S]*$/i,""),t=t.replace(/\\?"\s*\}?\s*$/i,""),t=t.replace(/\\n/g,`
|
|
498
498
|
`).replace(/\\"/g,'"').replace(/\\\\/g,"\\").trim());const r=w=>String(w).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),a=w=>r(w).replace(/`([^`]+)`/g,'<code class="pr-review-md-inline-code">$1</code>').replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/__([^_]+)__/g,"<strong>$1</strong>").replace(/(^|[^*])\*([^*]+)\*([^*]|$)/g,"$1<em>$2</em>$3").replace(/(^|[^_])_([^_]+)_([^_]|$)/g,"$1<em>$2</em>$3").replace(/~~([^~]+)~~/g,"<del>$1</del>").replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,'<a href="$2" target="_blank" rel="noreferrer">$1</a>'),i=e.split(/\r?\n/),c=[];let u=!1,f="",m=[],v=!1,p=!1,h=!1,b=[];const x=()=>{if(b.length===0)return;const[w,...$]=b;let E='<div class="pr-review-md-table-wrapper"><table class="pr-review-md-table">';w&&(E+=`<thead><tr>${w.map(O=>`<th>${O}</th>`).join("")}</tr></thead>`),$.length>0&&(E+=`<tbody>${$.map(O=>`<tr>${O.map(N=>`<td>${N}</td>`).join("")}</tr>`).join("")}</tbody>`),E+="</table></div>",c.push(E),b=[]},C=()=>{v&&(c.push("</ul>"),v=!1),p&&(c.push("</ol>"),p=!1)},y=()=>{h&&(c.push("</blockquote>"),h=!1)};for(let w=0;w<i.length;w++){const $=i[w],E=$.trim();if(E.startsWith("```")){u?(c.push(`<pre class="pr-review-md-code-block"><code class="language-${r(f)}">${m.map(r).join(`
|
|
499
499
|
`)}</code></pre>`),u=!1,f="",m=[]):(C(),y(),x(),u=!0,f=E.slice(3).trim(),m=[]);continue}if(u){m.push($);continue}if(E.startsWith("|")&&E.endsWith("|")){if(C(),y(),/^\|[\s\-:|]+\|$/.test(E))continue;const R=E.slice(1,-1).split("|").map(I=>a(I.trim()));b.push(R);continue}else x();if(/^(?:---|\*\*\*|___)\s*$/.test(E)){C(),y(),c.push('<hr class="pr-review-md-hr" />');continue}if(/^#{1,6}\s+/.test(E)){C(),y();const R=E.match(/^(#{1,6})\s+/)[1].length,I=a(E.replace(/^#{1,6}\s+/,""));c.push(`<h${R} class="pr-review-md-heading pr-review-md-h${R}">${I}</h${R}>`);continue}if(E.startsWith(">")){C(),h||(c.push('<blockquote class="pr-review-md-blockquote">'),h=!0);const R=a(E.replace(/^>\s*/,""));c.push(`<p>${R}</p>`);continue}else y();const O=E.match(/^[-*]\s+(.*)$/);if(O){p&&(c.push("</ol>"),p=!1),v||(c.push('<ul class="pr-review-md-ul">'),v=!0),c.push(`<li>${a(O[1])}</li>`);continue}const N=E.match(/^(\d+)\.\s+(.*)$/);if(N){v&&(c.push("</ul>"),v=!1),p||(c.push('<ol class="pr-review-md-ol">'),p=!0),c.push(`<li>${a(N[2])}</li>`);continue}C(),E&&c.push(`<p class="pr-review-md-p">${a(E)}</p>`)}return u&&c.push(`<pre class="pr-review-md-code-block"><code>${m.map(r).join(`
|
|
@@ -585,6 +585,6 @@ ${m.join(`
|
|
|
585
585
|
`).forEach(f=>{if(f.startsWith("```")){c=!c,a+=c?"<pre><code>":"</code></pre>";return}if(c){a+=`${t(f)}
|
|
586
586
|
`;return}if(/^\s*\|?.+\|.+\|?\s*$/.test(f)){if(/^\s*\|?\s*:?-{3,}/.test(f))return;i.push(r(f));return}u();const m=n(f);f.startsWith("### ")?a+=`<h3>${m.slice(4)}</h3>`:f.startsWith("## ")?a+=`<h2>${m.slice(3)}</h2>`:f.startsWith("# ")?a+=`<h1>${m.slice(2)}</h1>`:f.startsWith("- ")?a+=`<li>${m.slice(2)}</li>`:f.trim()&&(a+=`<p>${m}</p>`)}),u(),a.replace(/(<li>.*<\/li>\s*)+/g,f=>`<ul>${f}</ul>`)}const Zme=o.memo(function({html:t}){return s.jsx("div",{className:"markdown-block",dangerouslySetInnerHTML:{__html:t}})});function eve({content:e}){const t=o.useMemo(()=>Qme(e||"*Nothing to preview yet*").split(/(?=<(?:h[1-3]|p|ul|pre|table)>)/).filter(Boolean),[e]);return s.jsx("div",{className:"markdown-body",children:t.map((n,r)=>s.jsx(Zme,{html:n},r))})}function tve(){const[e,t]=o.useState([]),[n,r]=o.useState(null),[a,i]=o.useState({title:"",content:"",tags:[]}),[c,u]=o.useState(""),[f,m]=o.useState("all"),[v,p]=o.useState("preview"),[h,b]=o.useState(!0),[x,C]=o.useState(!1),y=o.useRef(!1),w=o.useRef(null),$=o.useRef(""),E=async()=>{try{const T=await fp.list();t(T),T[0]&&(r(T[0].id),i(T[0]),$.current=mf(T[0]))}catch(T){Ut.error(T.message)}finally{b(!1)}};o.useEffect(()=>{E()},[]),o.useEffect(()=>{const T=P=>{(P.metaKey||P.ctrlKey)&&P.key==="s"&&(P.preventDefault(),j())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)});const O=o.useMemo(()=>[...new Set(e.flatMap(T=>T.tags||[]))],[e]),N=e.filter(T=>{var P;return(f==="all"||((P=T.tags)==null?void 0:P.includes(f)))&&(!c||`${T.title} ${T.content}`.toLowerCase().includes(c.toLowerCase()))}),R=T=>{r(T.id),i(T),$.current=mf(T)},I=()=>{const T={id:Ls,title:"",content:"",tags:[],updatedAt:new Date().toISOString()};t(P=>[T,...P.filter(A=>A.id!==Ls)]),r(Ls),i(T),$.current=mf(T),p("edit"),requestAnimationFrame(()=>{var P;return(P=w.current)==null?void 0:P.focus()})};async function j(T=!1){if(y.current)return;if(!a.title.trim()&&!a.content.trim()){T||Ut.warning("Add some content first");return}y.current=!0;const P=Date.now();C(!0);try{const A={...a,tags:a.tagsInput??a.tags},L=!n||n===Ls,D=L?await fp.create(A):await fp.update(n,A);t(V=>L?[D,...V.filter(z=>z.id!==Ls)]:V.map(z=>z.id===D.id?D:z)),r(D.id),i(D),$.current=mf(D),T||Ut.success("Memo saved")}catch(A){T||Ut.error(A.message)}finally{await new Promise(A=>setTimeout(A,Math.max(0,500-(Date.now()-P)))),y.current=!1,C(!1)}}o.useEffect(()=>{if(v!=="edit")return;const T=setInterval(()=>{mf(a)!==$.current&&j(!0)},3e3);return()=>clearInterval(T)},[v,a,n]);async function M(){if(n){if(n===Ls){t(T=>T.filter(P=>P.id!==Ls)),I();return}try{await fp.remove(n);const T=e.filter(P=>P.id!==n);t(T),T[0]?R(T[0]):I(),Ut.success("Memo deleted")}catch(T){Ut.error(T.message)}}}return h?s.jsx("div",{className:"memos-loading",children:s.jsx(Cr,{})}):s.jsxs("div",{className:"memos-page",children:[s.jsx(Ur,{description:"Capture ideas and keep your thinking light.",eyebrow:"PERSONAL KNOWLEDGE",title:"Memos"}),s.jsxs("div",{className:"memos-shell",children:[s.jsxs("aside",{className:"memos-list-panel",children:[s.jsxs("div",{className:"memos-list-title",children:[s.jsxs("span",{children:["All notes ",s.jsx("b",{children:e.length})]}),s.jsx(Re,{type:"text",icon:s.jsx(Gn,{}),onClick:I})]}),s.jsx(wt,{allowClear:!0,prefix:s.jsx(Ko,{}),placeholder:"Search memos...",value:c,onChange:T=>u(T.target.value)}),s.jsxs("div",{className:"memo-tags",children:[s.jsx("button",{className:f==="all"?"active":"",onClick:()=>m("all"),children:"All notes"}),O.map(T=>s.jsxs("button",{className:f===T?"active":"",onClick:()=>m(T),children:["#",T]},T))]}),s.jsx("div",{className:"memo-items",children:N.length?N.map(T=>s.jsxs("button",{className:`memo-item ${T.id===n?"selected":""}`,onClick:()=>R(T),children:[s.jsx("strong",{children:T.title||"Untitled memo"}),s.jsx("span",{children:T.content.replace(/[#*`\n]/g," ").trim()||"No content yet"}),s.jsx("small",{children:Jme(T.updatedAt)})]},T.id)):s.jsx(Qt,{image:Qt.PRESENTED_IMAGE_SIMPLE,description:"No memos found"})})]}),s.jsxs("main",{className:"memo-editor-panel",children:[s.jsxs("div",{className:"memo-toolbar",children:[s.jsx(jm,{className:"memo-mode","aria-label":"Memo view mode",value:v,onChange:p,options:[{value:"edit",label:s.jsx(Lo,{"aria-label":"Edit"})},{value:"preview",label:s.jsx(od,{"aria-label":"Preview"})},{value:"split",label:s.jsx("span",{"aria-label":"Split",children:"↔"})}]}),s.jsxs("div",{children:[s.jsx(ia,{title:"Delete this memo?",onConfirm:M,disabled:!n,children:s.jsx(Re,{danger:!0,type:"text",icon:s.jsx(Kn,{}),disabled:!n})}),s.jsxs(Re,{type:"primary",icon:s.jsx(NS,{}),loading:x,onClick:j,children:["Save ",s.jsx("span",{className:"save-hint",children:"⌘S"})]})]})]}),s.jsxs("div",{className:`memo-workspace view-${v}`,children:[s.jsxs("section",{className:"memo-edit",children:[s.jsx(wt,{ref:w,className:"memo-title-input",bordered:!1,placeholder:"Memo title",value:a.title,onChange:T=>i({...a,title:T.target.value})}),s.jsx(wt,{className:"memo-tag-input",bordered:!1,prefix:"#",placeholder:"Add tags, separated by commas",value:(a.tags||[]).join(", "),onChange:T=>i({...a,tags:T.target.value.split(",").map(P=>P.trim().toLowerCase()).filter(Boolean)})}),s.jsx(wt.TextArea,{className:"memo-content-input",bordered:!1,placeholder:"Start writing in Markdown...",value:a.content,onChange:T=>i({...a,content:T.target.value}),autoSize:{minRows:18}})]}),s.jsxs("section",{className:"memo-preview",children:[s.jsx("div",{className:"preview-label",children:"PREVIEW"}),s.jsx(eve,{content:a.content})]})]}),s.jsxs("div",{className:"memo-footer",children:[s.jsx("span",{children:"Markdown supported"}),s.jsxs("span",{children:[a.content.length," characters"]}),s.jsx("div",{children:(a.tags||[]).map(T=>s.jsxs(Nt,{children:["#",T]},T))})]})]})]})]})}const Yl=(e="node")=>`${e}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,A7=(e,t="Untitled idea")=>{const n=String((e==null?void 0:e.edgeLabel)||"").trim();return{id:String((e==null?void 0:e.id)||Yl()),text:String((e==null?void 0:e.text)??(e==null?void 0:e.label)??t),edgeLabel:n||void 0,color:(e==null?void 0:e.color)||void 0,collapsed:!!(e!=null&&e.collapsed),tested:!!(e!=null&&e.tested),notes:e!=null&&e.notes?String(e.notes):void 0,jiraKeys:Array.isArray(e==null?void 0:e.jiraKeys)?[...new Set(e.jiraKeys.map(r=>String(r).trim().toUpperCase()).filter(Boolean))]:void 0,position:e!=null&&e.position&&Number.isFinite(Number(e.position.x))&&Number.isFinite(Number(e.position.y))?{x:Number(e.position.x),y:Number(e.position.y)}:void 0,children:Array.isArray(e==null?void 0:e.children)?e.children.map(r=>A7(r)):[]}},MS=(e,t="Untitled mind map")=>{var c;const n=(e==null?void 0:e.root)||((c=e==null?void 0:e.data)==null?void 0:c.root)||e,r=String((e==null?void 0:e.title)||(n==null?void 0:n.text)||t).trim()||t,a=A7(n,r),i=new Date().toISOString();return{id:String((e==null?void 0:e.id)||Yl("map")),title:r,layout:"left-to-right",createdAt:(e==null?void 0:e.createdAt)||new Date().toISOString(),updatedAt:(e==null?void 0:e.updatedAt)||i,jiraIssues:Array.isArray(e==null?void 0:e.jiraIssues)?e.jiraIssues.map(u=>({id:String((u==null?void 0:u.id)||(u==null?void 0:u.key)||"").trim(),key:String((u==null?void 0:u.key)||"").trim().toUpperCase(),summary:String((u==null?void 0:u.summary)||"").trim(),url:typeof(u==null?void 0:u.url)=="string"?u.url.trim():""})).filter(u=>u.id&&u.key):[],root:{...a,text:a.text||r}}},nve=e=>{const t=String(e||"").trim();if(!t)return null;const n=t.match(/(?:\/browse\/|\b)([A-Z][A-Z0-9_]*-\d+)\b/i);if(!n)return null;const r=n[1].toUpperCase(),a=/^https?:\/\//i.test(t);return{key:r,url:a?t:""}},rve=(e="Untitled mind map")=>{const t=new Date().toISOString();return{id:Yl("map"),title:e,layout:"left-to-right",createdAt:t,updatedAt:t,root:{id:Yl(),text:e,color:"#6555e8",children:[{id:Yl(),text:"First idea",color:"#4f8edb",children:[]},{id:Yl(),text:"Second idea",color:"#36a269",children:[]}]}}},TS=e=>1+(e.children||[]).reduce((t,n)=>t+TS(n),0),ju=(e,t)=>{if(!e)return null;if(e.id===t)return e;for(const n of e.children||[]){const r=ju(n,t);if(r)return r}return null},im=(e,t)=>{var n;if(!((n=e==null?void 0:e.children)!=null&&n.length))return null;if(e.children.some(r=>r.id===t))return e;for(const r of e.children){const a=im(r,t);if(a)return a}return null},Nu=(e,t,n)=>e.id===t?n(e):{...e,children:(e.children||[]).map(r=>Nu(r,t,n))},Oh=(e,t)=>({...e,children:(e.children||[]).filter(n=>n.id!==t).map(n=>Oh(n,t))}),ave=(e,t,n)=>{let r=!1;const a=i=>{if(r)return i;const c=i.children||[],u=c.findIndex(f=>f.id===t);return u>=0?(r=!0,{...i,children:[...c.slice(0,u+1),n,...c.slice(u+1)]}):{...i,children:c.map(a)}};return a(e)},ove=(e,t)=>{var c;const n=im(e,t),r=n?im(e,n.id):null,a=(c=n==null?void 0:n.children)==null?void 0:c.find(u=>u.id===t);if(!n||!r||!a)return e;const i=Oh(e,t);return Nu(i,r.id,u=>{const f=(u.children||[]).findIndex(m=>m.id===n.id);return f<0?u:{...u,children:[...u.children.slice(0,f+1),a,...u.children.slice(f+1)]}})},$8=(e,t,n)=>{const r=ju(e,t);if(!r||!ju(e,n)||t===n||ju(r,n))return e;const a=Oh(e,t);return Nu(a,n,i=>({...i,children:[...i.children||[],r]}))},_7=e=>{const t=[`# ${e.title}`],n=(r,a)=>{r.id!==e.root.id&&t.push(`${"#".repeat(Math.min(a+1,6))} ${r.text}`),(r.children||[]).forEach(i=>n(i,a+1))};return n(e.root,0),`${t.join(`
|
|
587
587
|
`)}
|
|
588
|
-
`},L7=(e,t="Imported mind map")=>{var u,f,m;const r=e.split(/\r?\n/).filter(v=>v.trim()).map(v=>({line:v,match:v.match(/^(#{1,6})\s+(.+?)\s*$/)})).filter(({match:v})=>v),a=((m=(f=(u=r[0])==null?void 0:u.match)==null?void 0:f[2])==null?void 0:m.trim())||t,i={id:Yl(),text:a,children:[]},c=[{depth:0,node:i}];return r.slice(1).forEach(({match:v})=>{var x;const p=v[1].length,h={id:Yl(),text:v[2].trim(),children:[]};for(;c.length&&c[c.length-1].depth>=p;)c.pop();(((x=c[c.length-1])==null?void 0:x.node)||i).children.push(h),c.push({depth:p,node:h})}),MS({title:a,root:i})},Ou=(e,t,n="application/json")=>{const r=typeof Blob<"u"&&t instanceof Blob?t:new Blob([t],{type:n}),a=URL.createObjectURL(r),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(a)},ive=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?"Recently updated":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(t)},{Title:B7,Text:H7}=Nn,bp=e=>e.replace(/\.(xmind|json|md|markdown|txt)$/i,"").replace(/[-_]+/g," ").trim()||"Imported mind map";function lve({map:e}){const t=["#6555e8","#4f8edb","#36a269","#d98a34"];return s.jsxs("div",{className:"mind-map-mini-preview","aria-hidden":"true",children:[s.jsx("div",{className:"mind-map-mini-root",style:{background:e.root.color||t[0]},children:e.root.text}),s.jsx("div",{className:"mind-map-mini-branches",children:(e.root.children||[]).slice(0,4).map((n,r)=>s.jsxs("div",{className:"mind-map-mini-branch",children:[s.jsx("span",{className:"mind-map-mini-line"}),s.jsx("span",{className:"mind-map-mini-node",style:{borderColor:n.color||t[r%t.length]},children:n.text})]},n.id))})]})}function sve({map:e,index:t,onOpen:n,onDelete:r,onExport:a}){const i=[{key:"xmind",icon:s.jsx(oi,{}),label:"Export XMind"},{key:"json",icon:s.jsx(oi,{}),label:"Export JSON"},{key:"markdown",icon:s.jsx(vi,{}),label:"Export Markdown"},{type:"divider"},{key:"delete",danger:!0,icon:s.jsx(Kn,{}),label:"Delete map"}],c=({key:u,domEvent:f})=>{f==null||f.stopPropagation(),u==="delete"&&r(e),(u==="xmind"||u==="json"||u==="markdown")&&a(e,u)};return s.jsxs(At,{className:`mind-map-card ${t===0?"is-featured":""}`,hoverable:!0,onClick:()=>n(e.id),onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),n(e.id))},role:"button",tabIndex:0,children:[s.jsxs("div",{className:"mind-map-card-topline",children:[s.jsx(Nt,{className:"mind-map-card-type",children:"MIND MAP"}),s.jsx(rl,{menu:{items:i,onClick:c},trigger:["click"],children:s.jsx(Re,{"aria-label":`Actions for ${e.title}`,className:"mind-map-card-menu",icon:s.jsx(Hp,{}),onClick:u=>u.stopPropagation(),type:"text"})})]}),s.jsx(lve,{map:e}),s.jsxs("div",{className:"mind-map-card-content",children:[s.jsxs("div",{className:"mind-map-card-title-row",children:[s.jsx(B7,{ellipsis:{rows:1,tooltip:e.title},level:3,children:e.title}),s.jsx(Lo,{className:"mind-map-card-edit"})]}),s.jsxs("div",{className:"mind-map-card-meta-row",children:[s.jsxs(H7,{className:"mind-map-card-meta",children:[TS(e.root)," nodes ",s.jsx("span",{children:"·"})," Updated ",ive(e.updatedAt)]}),s.jsxs("span",{className:"mind-map-card-open",children:["Open map ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})]})}function cve({onNavigate:e}){const{message:t,modal:n}=_r.useApp(),[r,a]=o.useState([]),[i,c]=o.useState(!0),[u,f]=o.useState(""),m=o.useRef(null),v=async()=>{try{a(await Si.list())}catch($){t.error(`Could not load mind maps: ${$.message||"unknown error"}`)}finally{c(!1)}};o.useEffect(()=>{v()},[]);const p=o.useMemo(()=>{const $=u.trim().toLowerCase();return $?r.filter(E=>`${E.title} ${E.root.text}`.toLowerCase().includes($)):r},[r,u]),h=()=>v(),b=$=>e(`mind-maps/${encodeURIComponent($)}`),x=async()=>{try{const $=await Si.create(rve());a(E=>[$,...E]),b($.id)}catch($){t.error(`Could not create mind map: ${$.message||"unknown error"}`)}},C=async($,E)=>{try{if(E==="xmind"){const{mindMapToXmindBlob:O}=await Vu(async()=>{const{mindMapToXmindBlob:R}=await import("./xmindAdapter-
|
|
589
|
-
`,"application/json;charset=utf-8"),t.success("JSON exported")}catch(O){t.error(`Could not export this map: ${O.message||"unknown error"}`)}},y=$=>{n.confirm({title:"Delete this mind map?",content:`“${$.title}” will be removed from workspace data.`,okText:"Delete",okButtonProps:{danger:!0},cancelText:"Cancel",onOk:async()=>{await Si.remove($.id),await h(),t.success("Mind map deleted")}})},w=async $=>{var O;const E=(O=$.target.files)==null?void 0:O[0];if($.target.value="",!!E)try{const N=E.name.toLowerCase().endsWith(".xmind"),R=N?null:await E.text(),I=E.name.toLowerCase().endsWith(".json"),j=N?await(async()=>{const{xmindBlobToMindMap:T}=await Vu(async()=>{const{xmindBlobToMindMap:P}=await import("./xmindAdapter-Y1nz1qKM.js");return{xmindBlobToMindMap:P}},[]);return T(await E.arrayBuffer(),bp(E.name))})():I?MS(JSON.parse(R),bp(E.name)):L7(R,bp(E.name)),M=await Si.create({...j,title:j.title||bp(E.name)});a(T=>[M,...T]),t.success(`${N?"XMind":I?"JSON":"Markdown"} imported`),b(M.id)}catch(N){t.error(`Could not import this file: ${N.message||"invalid format"}`)}};return s.jsxs("div",{className:"mind-map-page",children:[s.jsx(Ur,{actions:s.jsxs(at,{className:"mind-map-page-actions",size:10,children:[s.jsx("input",{ref:m,accept:".xmind,.json,.md,.markdown,.txt",className:"mind-map-hidden-input",onChange:w,type:"file"}),s.jsx(Re,{icon:s.jsx(Vx,{}),onClick:()=>{var $;return($=m.current)==null?void 0:$.click()},children:"Import"}),s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:x,type:"primary",children:"New mind map"})]}),description:"Turn scattered thoughts into a clear visual plan.",eyebrow:"PLAN & REVIEW",title:"Mind maps"}),s.jsxs("div",{className:"mind-map-list-summary",children:[s.jsxs("div",{children:[s.jsx(B7,{level:2,children:"Your workspace"}),s.jsxs(H7,{type:"secondary",children:[r.length," ",r.length===1?"map":"maps"," saved locally"]})]}),s.jsx(wt,{allowClear:!0,className:"mind-map-search",onChange:$=>f($.target.value),placeholder:"Search maps...",prefix:s.jsx(Ko,{}),value:u})]}),i?s.jsx("div",{className:"mind-map-loading",children:s.jsx("span",{children:"Loading mind maps..."})}):p.length?s.jsx("div",{className:"mind-map-card-grid",children:p.map(($,E)=>s.jsx(sve,{index:E,map:$,onDelete:y,onExport:C,onOpen:b},$.id))}):s.jsx(At,{className:"mind-map-empty-card",children:s.jsx(Qt,{description:u?"No maps match your search.":"No mind maps yet.",children:!u&&s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:x,type:"primary",children:"Create your first map"})})}),s.jsxs("div",{className:"mind-map-import-hint",children:[s.jsx(Vx,{})," ",s.jsx("span",{children:"Import XMind, JSON, or Markdown. Export XMind to continue editing in XMind."})]})]})}const{Text:Do,Title:E8}=Nn,xg=["#4f8edb","#36a269","#d98a34","#c05a83","#8a70c5"],uve=3200,dve=2200,Ll=1600,fve=380,Rh=e=>String((e==null?void 0:e.text)||"").trimStart().startsWith("#"),mve=e=>{var n;const t=e instanceof HTMLElement?e:null;return!!(t!=null&&t.isContentEditable||(n=t==null?void 0:t.closest)!=null&&n.call(t,'input, textarea, select, [contenteditable="true"]'))},F7=e=>e.reduce((t,n)=>{const r=String(n.edgeLabel||"").trim();return r?Math.max(t,Math.min(160,Math.max(72,r.length*7+16))):t},16),V7=(e,t,n=!1)=>({...e,collapsed:n?!1:t,children:(e.children||[]).map(r=>V7(r,t))}),W7=(e,t,n=!1)=>{const r=n||Rh(e);return{...e,tested:r?!1:t,children:(e.children||[]).map(a=>W7(a,t,r))}},U7=(e,t)=>({...e,jiraKeys:(e.jiraKeys||[]).filter(n=>n!==t),children:(e.children||[]).map(n=>U7(n,t))}),K7=(e,t)=>{t.add(e.id),(e.children||[]).forEach(n=>K7(n,t))},q7=(e,t)=>t.has(e.id)?null:{label:e.text||"Untitled idea",value:e.id,children:(e.children||[]).map(n=>q7(n,t)).filter(Boolean)},G7=(e,t,n=[])=>{const r=[...n,e.id];if(e.id===t)return r;for(const a of e.children||[]){const i=G7(a,t,r);if(i)return i}return null},s1=e=>e.replace(/\.(xmind|json|md|markdown|txt)$/i,"").replace(/[-_]+/g," ").trim()||"Imported mind map",X7=(e,t,n=!1)=>{if(!e)return!1;const r=n||Rh(e);return e.id===t?r:(e.children||[]).some(a=>X7(a,t,r))};function Y7({node:e,jiraIssues:t}){const n=(e.jiraKeys||[]).map(r=>t.find(a=>a.key===r)||{key:r});return n.length?s.jsx("span",{className:"mind-map-node-jira-tags","aria-label":"Jira tags",children:n.map(r=>s.jsx("span",{className:"mind-map-node-jira-tag",title:r.summary||r.key,children:r.key},r.key))}):null}function J7({node:e,depth:t=0,selectedId:n,onSelect:r,onToggle:a,jiraIssues:i,commented:c=!1}){const u=e.color||xg[t%xg.length],f=e.children||[],m=Rh(e),v=c||m,p=F7(f);return s.jsxs("div",{className:`mind-map-ltr-branch depth-${Math.min(t,4)}${v?" is-comment-branch":""}${m?" is-comment-marker":""}`,children:[s.jsxs("div",{className:"mind-map-ltr-node-row",children:[e.edgeLabel&&s.jsx("span",{className:"mind-map-ltr-edge-label",title:e.edgeLabel,children:e.edgeLabel}),s.jsxs("button",{className:`mind-map-node ${n===e.id?"is-selected":""} ${e.tested&&!v?"is-tested":""}${v?" is-comment":""}${m?" is-comment-marker":""}`,onClick:()=>r(e.id),"data-mind-map-node":e.id,style:{"--node-color":u},type:"button",children:[s.jsxs("span",{className:"mind-map-node-main",children:[s.jsx("span",{className:"mind-map-node-text",children:e.text||"Untitled idea"}),f.length>0&&s.jsx("span",{className:"mind-map-node-count",children:f.length})]}),s.jsx(Y7,{jiraIssues:i,node:e})]}),f.length>0&&s.jsxs("button",{"aria-label":e.collapsed?"Expand branch":"Collapse branch",className:"mind-map-collapse",onClick:()=>a(e.id),type:"button",children:[s.jsx("span",{className:`mind-map-collapse-symbol ${e.collapsed?"is-visible":""}`,children:"+"}),s.jsx("span",{className:`mind-map-collapse-symbol ${e.collapsed?"":"is-visible"}`,children:"−"})]})]}),!e.collapsed&&f.length>0&&s.jsx("div",{className:`mind-map-ltr-children${v?" is-comment-children":""}`,style:{"--mind-map-ltr-node-inset":`${p}px`},children:f.map(h=>s.jsx(J7,{depth:t+1,node:h,onSelect:r,onToggle:a,selectedId:n,jiraIssues:i,commented:v},h.id))})]})}const vve=o.forwardRef(function({map:t,selectedId:n,zoom:r,resetViewToken:a,recenterLayoutToken:i,isPanning:c,onCanvasPointerDown:u,onCanvasPointerMove:f,onCanvasPointerUp:m,onSelect:v,onToggle:p,onZoomChange:h,jiraIssues:b},x){const C=o.useRef(null),y=o.useRef(null),w=o.useRef(r),$=o.useRef({meta:!1,ctrl:!1}),E=o.useRef(new Map),O=o.useRef(0),N=o.useRef(0),R=o.useRef(!1),I=o.useRef(i);w.current=r;const j=(_,W,K,F)=>{const q=_.querySelector(".mind-map-canvas-stage"),U=_.getBoundingClientRect(),G=q==null?void 0:q.getBoundingClientRect();return{fromZoom:W,toZoom:null,x:K,y:F,stageX:G?(U.left+K-G.left)/W:null,stageY:G?(U.top+F-G.top)/W:null}};o.useImperativeHandle(x,()=>({zoomAt(_){const W=C.current,K=w.current;!W||_===K||(y.current=j(W,K,W.clientWidth/2,W.clientHeight/2),y.current.toZoom=_,w.current=_,h(_))}}),[h]);const M=_=>{const W=_.target instanceof Element?_.target:null,K=W==null?void 0:W.closest("button[data-mind-map-node]");W!=null&&W.closest("button")&&!K||u(_,(K==null?void 0:K.dataset.mindMapNode)||null)},T=(_=null)=>{const W=C.current;if(!W)return;const K=[...W.querySelectorAll("[data-mind-map-node]")],F=W.querySelector(".mind-map-root-node");if(!K.length||!F)return;const q=W.getBoundingClientRect(),U=K.reduce((Oe,Me)=>{const Ce=(_==null?void 0:_.get(Me.dataset.mindMapNode))||Me.getBoundingClientRect();return{left:Math.min(Oe.left,Ce.left),top:Math.min(Oe.top,Ce.top),right:Math.max(Oe.right,Ce.right),bottom:Math.max(Oe.bottom,Ce.bottom)}},{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),G=(U.left+U.right)/2,Y=(U.top+U.bottom)/2,Z=(_==null?void 0:_.get(F.dataset.mindMapNode))||F.getBoundingClientRect();let ie=W.scrollLeft+G-q.left-W.clientWidth/2,re=W.scrollTop+Y-q.top-W.clientHeight/2;const X=ie-W.scrollLeft,ee=re-W.scrollTop,ne=Z.left-X,Q=Z.right-X,J=Z.top-ee,ae=Z.bottom-ee,se=q.left+24,te=q.right-24,de=q.top+24,ge=q.bottom-24;Q<se&&(ie+=Q-se),ne>te&&(ie+=ne-te),ae<de&&(re+=ae-de),J>ge&&(re+=J-ge),W.scrollLeft=Math.max(0,Math.min(ie,W.scrollWidth-W.clientWidth)),W.scrollTop=Math.max(0,Math.min(re,W.scrollHeight-W.clientHeight))},P=()=>{const _=C.current;if(!_)return;const W=w.current||1;_.querySelectorAll(".mind-map-ltr-children").forEach(K=>{const F=[...K.children].map(ie=>ie.querySelector(":scope > .mind-map-ltr-node-row")).filter(Boolean);if(!F.length)return;const q=K.getBoundingClientRect(),U=F[0].getBoundingClientRect(),G=F[F.length-1].getBoundingClientRect(),Y=(U.top+U.bottom)/2,Z=(G.top+G.bottom)/2;K.style.setProperty("--mind-map-connector-top",`${Math.max(0,(Y-q.top)/W)}px`),K.style.setProperty("--mind-map-connector-height",`${Math.max(0,(Z-Y)/W)}px`)})},A=()=>{const _=C.current;!_||R.current||(E.current=new Map([..._.querySelectorAll("[data-mind-map-node]")].map(W=>[W.dataset.mindMapNode,W.getBoundingClientRect()])))};o.useLayoutEffect(()=>{P()},[t,r]),o.useLayoutEffect(()=>{T()},[t.id]),o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const W=i!==I.current;I.current=i;const K=[..._.querySelectorAll("[data-mind-map-node]")],F=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()])),q=E.current,U=new Map(K.map(X=>{const ee=X.dataset.mindMapNode;return[ee,X.style.transform?F.get(ee):q.get(ee)||F.get(ee)]}));cancelAnimationFrame(O.current),O.current=0,window.clearTimeout(N.current),N.current=0,R.current=!1,K.forEach(X=>{X.style.transition="none",X.style.transform="",X.style.opacity=""}),_.offsetHeight;const G=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()]));let Y=G;if(W&&(R.current=!0,T(G),Y=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()]))),!q.size){R.current=!1,E.current=Y;return}const Z=new Map(K.map(X=>{const ee=X.dataset.mindMapNode,ne=U.get(ee),Q=G.get(ee);return[ee,ne&&Q?{x:(ne.left-Q.left)/(w.current||1),y:(ne.top-Q.top)/(w.current||1)}:null]})),ie=[...Z.values()].filter(X=>X&&(Math.abs(X.x)>=1||Math.abs(X.y)>=1));if(!(ie.length<=40&&ie.every(X=>Math.max(Math.abs(X.x),Math.abs(X.y))<=900))){R.current=!1,E.current=Y;return}return R.current=ie.length>0,K.forEach(X=>{const ee=U.get(X.dataset.mindMapNode),ne=G.get(X.dataset.mindMapNode);if(!ee||!ne){X.style.opacity="1";return}const Q=Z.get(X.dataset.mindMapNode),J=Q.x,ae=Q.y;Math.abs(J)<1&&Math.abs(ae)<1||(X.style.transition="none",X.style.transform=`translate(${J}px, ${ae}px)`)}),K.forEach(X=>void X.offsetWidth),O.current=requestAnimationFrame(()=>{K.forEach(X=>{const ee=U.get(X.dataset.mindMapNode);X.style.transition="transform 380ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease",X.style.transform="",ee||(X.style.opacity="1")}),O.current=0,N.current=window.setTimeout(()=>{R.current=!1,A(),N.current=0},fve+16)}),E.current=Y,()=>{cancelAnimationFrame(O.current),O.current=0,window.clearTimeout(N.current),N.current=0,R.current=!1}},[t]),o.useLayoutEffect(()=>{const _=C.current,W=y.current;if(!_||!W||W.toZoom!==r)return;const K=_.getBoundingClientRect(),F=_.querySelector(".mind-map-canvas-stage"),q=F==null?void 0:F.getBoundingClientRect(),U=W.stageX===null||!q?Ll+(W.x+_.scrollLeft-Ll)*(r/W.fromZoom)-W.x:_.scrollLeft+q.left+W.stageX*r-(K.left+W.x),G=W.stageY===null||!q?Ll+(W.y+_.scrollTop-Ll)*(r/W.fromZoom)-W.y:_.scrollTop+q.top+W.stageY*r-(K.top+W.y);_.scrollLeft=Math.max(0,Math.min(U,_.scrollWidth-_.clientWidth)),_.scrollTop=Math.max(0,Math.min(G,_.scrollHeight-_.clientHeight)),y.current=null},[r]),o.useLayoutEffect(()=>{if(a===0)return;const _=requestAnimationFrame(()=>T());return()=>cancelAnimationFrame(_)},[a]),o.useEffect(()=>{const _=F=>{F.key==="Meta"&&($.current.meta=!0),F.key==="Control"&&($.current.ctrl=!0)},W=F=>{F.key==="Meta"&&($.current.meta=!1),F.key==="Control"&&($.current.ctrl=!1)},K=()=>{$.current={meta:!1,ctrl:!1}};return window.addEventListener("keydown",_),window.addEventListener("keyup",W),window.addEventListener("blur",K),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",W),window.removeEventListener("blur",K)}},[]);const L=o.useCallback(_=>{var ie,re;const W=C.current;if(!W||!W.contains(_.target))return;const K=_.metaKey||((ie=_.getModifierState)==null?void 0:ie.call(_,"Meta"))||$.current.meta,F=_.ctrlKey||((re=_.getModifierState)==null?void 0:re.call(_,"Control"))||$.current.ctrl;if(!K&&!F||!_.deltaY)return;_.preventDefault(),_.returnValue=!1,_.stopPropagation();const q=W.getBoundingClientRect(),U=w.current,G=_.deltaMode===1?_.deltaY*16:_.deltaY,Y=Math.min(Math.abs(G),48)*Math.sign(G),Z=Math.max(.5,Math.min(2,Number((U*Math.pow(1.1,-Y/24)).toFixed(3))));Z!==U&&(y.current=j(W,U,_.clientX-q.left,_.clientY-q.top),y.current.toZoom=Z,w.current=Z,h(Z))},[h]);o.useEffect(()=>(window.addEventListener("wheel",L,{capture:!0,passive:!1}),()=>window.removeEventListener("wheel",L,{capture:!0})),[L]);const D=t.root,V=D.children||[],z=D.color||"#6555e8",B=Rh(D);return s.jsx("div",{className:`mind-map-canvas-scroll ${c?"is-panning":""}`,ref:C,onPointerCancel:m,onPointerDown:M,onPointerMove:f,onPointerUp:m,onScroll:A,children:s.jsx("div",{className:"mind-map-canvas-world",style:{height:`${dve*r+Ll*2}px`,width:`${uve*r+Ll*2}px`},children:s.jsxs("div",{className:"mind-map-canvas-stage is-left-to-right",style:{marginLeft:`${Ll}px`,marginTop:`${Ll}px`,zoom:r},children:[s.jsxs("div",{className:"mind-map-ltr-diagram",children:[s.jsx("div",{className:"mind-map-ltr-root-column",children:s.jsxs("button",{className:`mind-map-root-node ${n===D.id?"is-selected":""} ${D.tested&&!B?"is-tested":""}${B?" is-comment is-comment-marker":""}`,"data-mind-map-node":D.id,onClick:()=>v(D.id),style:{"--node-color":z},type:"button",children:[s.jsx("span",{className:"mind-map-root-text",children:D.text||"Untitled idea"}),s.jsxs("span",{className:"mind-map-root-count",children:[TS(D)-1," connected ideas"]}),s.jsx(Y7,{jiraIssues:b,node:D})]})}),!D.collapsed&&V.length>0&&s.jsx("div",{className:`mind-map-ltr-children mind-map-ltr-root-children${B?" is-comment-children":""}`,style:{"--mind-map-ltr-node-inset":`${F7(V)}px`},children:V.map(_=>s.jsx(J7,{node:_,onSelect:v,onToggle:p,selectedId:n,jiraIssues:b,commented:B},_.id))})]}),!V.length&&s.jsx("div",{className:"mind-map-canvas-empty",children:s.jsx(Do,{type:"secondary",children:"Add a branch from the inspector to start mapping this idea."})})]})})})});function pve({mindMapId:e,onNavigate:t}){const{message:n}=_r.useApp(),r=o.useRef(null),[a,i]=o.useState(null),[c,u]=o.useState(null),[f,m]=o.useState(""),[v,p]=o.useState(!0),[h,b]=o.useState(1),[x,C]=o.useState(0),[y,w]=o.useState(0),[$,E]=o.useState(!1),[O,N]=o.useState(!1),[R,I]=o.useState(""),[j,M]=o.useState(!1),[T,P]=o.useState(""),[A,L]=o.useState(!1),[D,V]=o.useState(!1),[z,B]=o.useState([]),[_,W]=o.useState(!0),[K,F]=o.useState(!1),q=o.useRef(null),U=o.useRef(null),G=o.useRef(null),Y=o.useRef(!1),Z=o.useRef(null),ie=o.useRef(Promise.resolve());o.useEffect(()=>{let we=!0;return p(!0),i(null),Si.get(e).then(Se=>{we&&(i(Se),u(Se.root.id),m(Se.title||""),b(1),C(0),E(!1),q.current=null)}).catch(Se=>{we&&n.error(`Could not load mind map: ${Se.message||"unknown error"}`)}).finally(()=>{we&&p(!1)}),()=>{we=!1}},[e]),o.useEffect(()=>{a&&(ju(a.root,c)||u(a.root.id))},[a,c]),o.useEffect(()=>{var we,Se;Y.current&&(Y.current=!1,(Se=(we=G.current)==null?void 0:we.focus)==null||Se.call(we))},[c]),o.useEffect(()=>{if(!K)return;const we=Se=>{Se.key==="Escape"&&F(!1)};return window.addEventListener("keydown",we),()=>window.removeEventListener("keydown",we)},[K]);const re=o.useMemo(()=>ju(a==null?void 0:a.root,c)||(a==null?void 0:a.root),[a,c]),X=o.useMemo(()=>X7(a==null?void 0:a.root,c),[a,c]),ee=o.useMemo(()=>im(a==null?void 0:a.root,c),[a,c]),ne=(a==null?void 0:a.jiraIssues)||[],Q=o.useMemo(()=>{const we=new Set,Se=ke=>{((ke==null?void 0:ke.jiraKeys)||[]).forEach(Ye=>we.add(Ye)),((ke==null?void 0:ke.children)||[]).forEach(Se)};return Se(a==null?void 0:a.root),we},[a]),J=o.useMemo(()=>((re==null?void 0:re.jiraKeys)||[]).map(we=>ne.find(Se=>Se.key===we)||{key:we,summary:"Summary unavailable",url:""}),[ne,re]),ae=o.useMemo(()=>{if(!a||!re||!ee)return[];const we=new Set;K7(re,we);const Se=q7(a.root,we);return Se?[Se]:[]},[a,re,ee]),se=we=>{if(!a)return;const Se={...we(a),updatedAt:new Date().toISOString()};i(Se),ie.current=ie.current.catch(()=>{}).then(()=>Si.update(Se.id,Se)).catch(()=>new Promise((ke,Ye)=>{window.setTimeout(()=>{Si.update(Se.id,Se).then(ke).catch(Ye)},120)})).catch(ke=>n.error(`Could not save mind map: ${ke.message||"unknown error"}`))},te=()=>{const we=f.trim()||"Untitled mind map";m(we),se(Se=>({...Se,title:we,root:Se.root.text===Se.title?{...Se.root,text:we}:Se.root}))},de=we=>{re&&se(Se=>({...Se,root:Nu(Se.root,re.id,ke=>({...ke,...we}))}))},ge=()=>{if(!re||X)return;const we=!re.tested;se(Se=>({...Se,root:Nu(Se.root,re.id,ke=>W7(ke,we))}))},Oe=(we=0)=>({id:`node-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`,text:"New idea",color:xg[we%xg.length],tested:!1,children:[]}),Me=()=>{if(!re)return;const we=Oe((re.children||[]).length);de({children:[...re.children||[],we],collapsed:!1}),Y.current=!0,u(we.id)},Ce=()=>{if(!re||!ee){Me();return}const we=Oe(ee.children.findIndex(Se=>Se.id===re.id)+1);se(Se=>({...Se,root:ave(Se.root,re.id,we)})),Y.current=!0,u(we.id)},me=()=>{!re||!ee||!im(a==null?void 0:a.root,ee.id)||se(we=>({...we,root:ove(we.root,re.id)}))};o.useEffect(()=>{const we=Se=>{if(!(!a||!re||Se.defaultPrevented||Se.isComposing||Se.repeat)&&!(mve(Se.target)||Se.altKey||Se.ctrlKey||Se.metaKey)&&!(Se.key!=="Enter"&&Se.key!=="Tab")){if(Se.preventDefault(),Se.key==="Tab"){Se.shiftKey?me():Me();return}Ce()}};return window.addEventListener("keydown",we),()=>window.removeEventListener("keydown",we)},[a,re,ee]);const ye=()=>{if(!re||!ee)return;const we=ee.id;se(Se=>({...Se,root:Oh(Se.root,re.id)})),u(we),n.success("Idea removed")},ve=()=>{ee&&(B(G7(a.root,ee.id)||[]),V(!0))},he=()=>{const we=z[z.length-1];if(!re||!ee||!we)return;if($8(a.root,re.id,we)===a.root){n.error("Please choose another valid parent node.");return}se(ke=>({...ke,root:$8(ke.root,re.id,we)})),V(!1),n.success(`Moved “${re.text||"idea"}” successfully.`)},Ee=()=>{N(!0)},Le=async()=>{const we=nve(R);if(!we){n.error("Enter a Jira No such as PROJ-123 or a Jira issue link.");return}M(!0);try{const Se=await Si.resolveJiraIssue(R);if(ne.some(ke=>ke.key===Se.key)){n.info(`${Se.key} is already in this map.`);return}se(ke=>({...ke,jiraIssues:[...ke.jiraIssues||[],Se]})),I(""),n.success(`${Se.key} added to this map.`)}catch(Se){n.error(Se.message||`Could not load ${we.key} from Jira.`)}finally{M(!1)}},Be=we=>{se(Se=>({...Se,jiraIssues:(Se.jiraIssues||[]).filter(ke=>ke.key!==we),root:U7(Se.root,we)}))},Ve=async we=>{P(we.key);try{const Se=await Si.resolveJiraIssue(we.key);se(ke=>({...ke,jiraIssues:(ke.jiraIssues||[]).map(Ye=>Ye.key===we.key?{...Ye,summary:Se.summary,url:Se.url||Ye.url}:Ye)})),n.success(`${we.key} summary refreshed`)}catch(Se){n.error(Se.message||`Could not refresh ${we.key}.`)}finally{P("")}},qe=we=>{de({jiraKeys:((re==null?void 0:re.jiraKeys)||[]).filter(Se=>Se!==we)})},$e=(we,Se)=>{var Ye;if(we.button!==0)return;const ke=we.currentTarget;ke&&(we.preventDefault(),(Ye=ke.setPointerCapture)==null||Ye.call(ke,we.pointerId),q.current={canvas:ke,pointerId:we.pointerId,startX:we.clientX,startY:we.clientY,startScrollLeft:ke.scrollLeft,startScrollTop:ke.scrollTop,moved:!1},Se&&u(Se),E(!0))},je=we=>{const Se=q.current;if(!Se||Se.pointerId!==we.pointerId)return;const ke=Se.canvas||we.currentTarget;!Se.moved&&Math.hypot(we.clientX-Se.startX,we.clientY-Se.startY)<3||(Se.moved=!0,ke.scrollLeft=Se.startScrollLeft-(we.clientX-Se.startX),ke.scrollTop=Se.startScrollTop-(we.clientY-Se.startY))},Ae=we=>{var ke,Ye,ot,st;const Se=q.current;!Se||we.pointerId!==void 0&&Se.pointerId!==we.pointerId||((Ye=(ke=Se.canvas)==null?void 0:ke.releasePointerCapture)==null||Ye.call(ke,Se.pointerId),(st=(ot=we.currentTarget)==null?void 0:ot.releasePointerCapture)==null||st.call(ot,Se.pointerId),q.current=null,E(!1))};o.useEffect(()=>{const we=Se=>Ae(Se);return window.addEventListener("pointerup",we),window.addEventListener("pointercancel",we),window.addEventListener("blur",we),()=>{window.removeEventListener("pointerup",we),window.removeEventListener("pointercancel",we),window.removeEventListener("blur",we)}},[]);const De=we=>{se(Se=>({...Se,root:Nu(Se.root,we,ke=>({...ke,collapsed:!ke.collapsed}))}))},We=(we,Se=!1)=>{se(ke=>({...ke,root:V7(ke.root,we,!0)})),Se&&w(ke=>ke+1)},Ie=async we=>{if(a)try{if(we==="xmind"){const{mindMapToXmindBlob:Se}=await Vu(async()=>{const{mindMapToXmindBlob:Ye}=await import("./xmindAdapter-Y1nz1qKM.js");return{mindMapToXmindBlob:Ye}},[]),ke=await Se(a);Ou(`${a.title||"mind-map"}.xmind`,ke,"application/octet-stream"),n.success("XMind exported");return}if(we==="markdown"){Ou(`${a.title||"mind-map"}.md`,_7(a),"text/markdown;charset=utf-8"),n.success("Markdown exported");return}Ou(`${a.title||"mind-map"}.json`,`${JSON.stringify(a,null,2)}
|
|
590
|
-
`,"application/json;charset=utf-8"),n.success("JSON exported")}catch(Se){n.error(`Could not export this map: ${Se.message||"unknown error"}`)}},Pe=async we=>{var ke;const Se=(ke=we.target.files)==null?void 0:ke[0];if(we.target.value="",!(!Se||!a))try{const Ye=Se.name.toLowerCase().endsWith(".xmind"),ot=Ye?null:await Se.text(),st=Se.name.toLowerCase().endsWith(".json"),vt=Ye?await(async()=>{const{xmindBlobToMindMap:_e}=await Vu(async()=>{const{xmindBlobToMindMap:lt}=await import("./xmindAdapter-Y1nz1qKM.js");return{xmindBlobToMindMap:lt}},[]);return _e(await Se.arrayBuffer(),s1(Se.name))})():st?MS(JSON.parse(ot),s1(Se.name)):L7(ot,s1(Se.name)),Tt={...vt,id:a.id,title:vt.title||a.title,createdAt:a.createdAt,updatedAt:new Date().toISOString()};await ie.current.catch(()=>{});const Te=await Si.update(a.id,Tt);i(Te),u(Tt.root.id),m(Te.title),n.success(`${Ye?"XMind":st?"JSON":"Markdown"} imported into this map`)}catch(Ye){n.error(`Could not import this file: ${Ye.message||"invalid format"}`)}},Fe=async()=>{if(a!=null&&a.filePath)try{await Jn.openFolder(a.filePath)}catch(we){n.error(`Could not open map folder: ${we.message||"unknown error"}`)}},Xe=async()=>{if(a!=null&&a.filePath)try{await navigator.clipboard.writeText(a.filePath),n.success("Mind map file path copied")}catch(we){n.error(`Could not copy file path: ${we.message||"clipboard unavailable"}`)}};return v?s.jsx("div",{className:"mind-map-missing",children:s.jsx(Cr,{tip:"Loading mind map..."})}):a?s.jsxs("div",{className:`mind-map-detail-page${K?" is-canvas-fullscreen":""}`,children:[s.jsxs("div",{className:"mind-map-detail-toolbar",children:[s.jsxs("div",{className:"mind-map-detail-heading",children:[s.jsx(Re,{"aria-label":"Back to mind maps",className:"mind-map-back-button",icon:s.jsx(os,{}),onClick:()=>t("mind-maps"),type:"text"}),s.jsx("div",{className:"mind-map-breadcrumbs",children:s.jsx("button",{onClick:()=>t("mind-maps"),type:"button",children:"Mind maps"})}),s.jsx(wt,{"aria-label":"Mind map title",className:"mind-map-title-input",onBlur:te,onChange:we=>m(we.target.value),onPressEnter:we=>we.currentTarget.blur(),value:f})]}),s.jsxs(at,{className:"mind-map-detail-actions",size:8,children:[s.jsx("input",{ref:r,accept:".xmind,.json,.md,.markdown,.txt",className:"mind-map-hidden-input",onChange:Pe,type:"file"}),s.jsx(Re,{icon:s.jsx(jS,{}),onClick:()=>{var we;return(we=r.current)==null?void 0:we.click()},children:"Import"}),s.jsx(rl,{menu:{items:[{key:"xmind",icon:s.jsx(oi,{}),label:"Export XMind"},{key:"json",icon:s.jsx(oi,{}),label:"Export JSON"},{key:"markdown",icon:s.jsx(vi,{}),label:"Export Markdown"}],onClick:({key:we})=>Ie(we)},trigger:["click"],children:s.jsx(Re,{icon:s.jsx(oi,{}),children:"Export"})}),s.jsx(Re,{"aria-label":"Mind map settings",icon:s.jsx(is,{}),onClick:Ee,children:"Settings"}),s.jsx(Re,{icon:s.jsx(NS,{}),onClick:()=>n.success("All changes saved to the data file"),children:"Save"})]})]}),s.jsxs("div",{className:`mind-map-detail-layout${_?"":" is-inspector-collapsed"}`,children:[s.jsxs(At,{className:"mind-map-canvas-card",styles:{body:{padding:0}},children:[s.jsxs("div",{className:"mind-map-canvas-header",children:[s.jsxs("div",{className:"mind-map-canvas-heading",children:[s.jsx(Do,{className:"mind-map-eyebrow",children:"CANVAS"}),s.jsxs("div",{className:"mind-map-canvas-title-row",children:[s.jsx(E8,{level:3,children:"Map canvas"}),s.jsx(Do,{className:"mind-map-canvas-tip",type:"secondary",children:"Tip: keep each branch short and concrete."})]})]}),s.jsxs(at,{className:"mind-map-canvas-controls",size:12,children:[s.jsx(un,{title:K?"Exit full screen":"Enter full screen",children:s.jsx(Re,{"aria-label":K?"Exit canvas full screen":"Enter canvas full screen",icon:K?s.jsx(y7,{}):s.jsx(x7,{}),onClick:()=>{F(we=>!we),C(we=>we+1)},type:"text"})}),s.jsx(un,{title:_?"Collapse inspector":"Show inspector",children:s.jsx(Re,{"aria-label":_?"Collapse inspector":"Show inspector",className:"mind-map-inspector-control",icon:_?s.jsx(Iue,{}):s.jsx(kue,{}),onClick:()=>W(we=>!we),type:"text"})}),s.jsxs(at,{className:"mind-map-tree-actions",size:4,children:[s.jsx(un,{title:"Expand all",children:s.jsx(Re,{icon:s.jsx(n7,{}),onClick:()=>We(!1),children:"Expand all"})}),s.jsx(un,{title:"Collapse all branches",children:s.jsx(Re,{icon:s.jsx(t7,{}),onClick:()=>We(!0,!0),children:"Collapse all"})})]}),s.jsxs(at,{className:"mind-map-zoom-control",size:4,children:[s.jsx(un,{title:"Zoom out",children:s.jsx(Re,{"aria-label":"Zoom out",disabled:h<=.5,icon:s.jsx(gM,{}),onClick:()=>{var we;return(we=U.current)==null?void 0:we.zoomAt(Math.max(.5,Number((h-.1).toFixed(2))))},type:"text"})}),s.jsxs("button",{"aria-label":"Reset canvas view",className:"mind-map-zoom-label",onClick:()=>{b(1),C(we=>we+1)},type:"button",children:[Math.round(h*100),"%"]}),s.jsx(un,{title:"Zoom in",children:s.jsx(Re,{"aria-label":"Zoom in",disabled:h>=2,icon:s.jsx(pM,{}),onClick:()=>{var we;return(we=U.current)==null?void 0:we.zoomAt(Math.min(2,Number((h+.1).toFixed(2))))},type:"text"})})]})]})]}),s.jsx(vve,{ref:U,isPanning:$,map:a,onCanvasPointerDown:$e,onCanvasPointerMove:je,onCanvasPointerUp:Ae,onSelect:u,onToggle:De,onZoomChange:b,recenterLayoutToken:y,resetViewToken:x,selectedId:c,zoom:h,jiraIssues:ne}),s.jsx("div",{className:"mind-map-canvas-footer",children:s.jsxs(Do,{type:"secondary",children:[s.jsx("span",{className:"mind-map-key",children:"⌘"})," Click to select ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ",s.jsx("span",{className:"mind-map-key",children:"Enter"})," sibling ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ",s.jsx("span",{className:"mind-map-key",children:"Tab"})," child ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," Drag canvas to pan ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ⌘ + Scroll to zoom ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," Changes save automatically"]})})]}),s.jsx(At,{className:"mind-map-inspector-card",children:s.jsxs("div",{className:"mind-map-inspector-shell",children:[s.jsxs("div",{className:"mind-map-inspector-header",children:[s.jsxs("div",{children:[s.jsx(Do,{className:"mind-map-eyebrow",children:"INSPECTOR"}),s.jsxs("div",{className:"mind-map-inspector-title-row",children:[s.jsx(E8,{level:3,children:"Selected idea"}),(re==null?void 0:re.id)===a.root.id?s.jsx(Nt,{color:"purple",children:"Root"}):null,X?s.jsx(Nt,{className:"mind-map-comment-tag",children:"Comment"}):null]})]}),(re==null?void 0:re.id)!==a.root.id&&s.jsx(ia,{cancelText:"Cancel",description:"This will also remove all child ideas.",okButtonProps:{danger:!0},okText:"Delete",onConfirm:ye,placement:"topRight",title:"Delete this idea?",children:s.jsx(Re,{"aria-label":"Delete selected idea",className:"mind-map-inline-delete",danger:!0,icon:s.jsx(Kn,{}),type:"text"})})]}),s.jsx("div",{className:"mind-map-inspector-content",children:re&&s.jsxs("div",{className:"mind-map-inspector-fields",children:[s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Content"}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-text",children:"Idea"}),s.jsx(wt.TextArea,{autoSize:{minRows:2,maxRows:8},id:"mind-map-node-text",onChange:we=>de({text:we.target.value}),placeholder:"Name this idea",ref:G,value:re.text}),ee&&s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-edge-label",children:"Line label"}),s.jsx(wt,{id:"mind-map-node-edge-label",onChange:we=>de({edgeLabel:we.target.value||void 0}),placeholder:"Label this connection",value:re.edgeLabel||""})]}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-notes",children:"Notes"}),s.jsx(wt.TextArea,{autoSize:{minRows:4,maxRows:8},id:"mind-map-node-notes",onChange:we=>de({notes:we.target.value}),placeholder:"Add a note or a prompt...",value:re.notes||""})]}),!X&&s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Test status"}),s.jsxs("div",{className:"mind-map-tested-field",children:[s.jsxs("div",{children:[s.jsx("span",{className:"mind-map-field-label",children:"Tested"}),s.jsx(Do,{type:"secondary",children:"Updates this node and all child nodes."})]}),s.jsxs("div",{className:"mind-map-tested-control",children:[s.jsx("span",{className:"mind-map-tested-state",children:re.tested?"Tested":"Pending"}),s.jsx(Oi,{checked:!!re.tested,onChange:ge})]})]})]}),s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Jira"}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-jira",children:"Jira tags"}),J.length>0&&s.jsx("div",{"aria-label":"Selected Jira issues",className:"mind-map-selected-jira-list",children:J.map(we=>s.jsxs("div",{className:"mind-map-selected-jira-item",children:[s.jsxs("button",{className:"mind-map-selected-jira-open",disabled:!we.url,onClick:()=>ir(we.url),title:we.url?"Open in Jira":"Jira link unavailable",type:"button",children:[s.jsx(Nt,{color:"blue",children:we.key}),s.jsx("span",{className:"mind-map-selected-jira-summary",children:we.summary||"Summary unavailable"}),we.url&&s.jsx(wi,{})]}),s.jsx("button",{"aria-label":`Untag ${we.key}`,className:"mind-map-selected-jira-untag",onClick:()=>qe(we.key),title:`Untag ${we.key}`,type:"button",children:s.jsx(So,{})})]},we.key))}),s.jsx(Tn,{allowClear:!0,className:"mind-map-node-jira-select",filterOption:(we,Se)=>`${(Se==null?void 0:Se.value)||""} ${(Se==null?void 0:Se.summary)||""}`.toLowerCase().includes(we.toLowerCase()),id:"mind-map-node-jira",mode:"multiple",onChange:we=>{de({jiraKeys:we}),L(!1),requestAnimationFrame(()=>{var Se,ke;return(ke=(Se=Z.current)==null?void 0:Se.blur)==null?void 0:ke.call(Se)})},options:ne.map(we=>({label:s.jsxs("div",{className:"mind-map-jira-select-option",children:[s.jsx("span",{className:"mind-map-jira-select-option-key",children:we.key}),s.jsx("span",{className:"mind-map-jira-select-option-summary",children:we.summary||"Summary unavailable"})]}),summary:we.summary||"",value:we.key})),maxTagCount:0,maxTagPlaceholder:"Select Jira issues",onOpenChange:L,placeholder:ne.length?"Select Jira issues":"Add Jira issues in Settings",showSearch:!0,open:A,ref:Z,value:re.jiraKeys||[]})]})]})}),s.jsxs("div",{className:"mind-map-inspector-actions",children:[s.jsx(un,{title:"Add a child idea (Tab)",children:s.jsx(Re,{block:!0,className:"mind-map-add-child",icon:s.jsx(Gn,{}),onClick:Me,type:"primary",children:"Add child idea"})}),ee&&s.jsx(Re,{block:!0,className:"mind-map-move-button",icon:s.jsx(Hue,{}),onClick:ve,children:"Move idea"})]})]})})]}),s.jsxs(QI,{className:"mind-map-settings-drawer",onClose:()=>N(!1),open:O,title:"Mind map settings",width:520,children:[s.jsxs("div",{className:"mind-map-settings-section",children:[s.jsx(Do,{className:"mind-map-settings-section-title",children:"File location"}),s.jsx(Do,{className:"mind-map-settings-description",children:"This mind map is stored locally in the following file."}),s.jsxs(at.Compact,{block:!0,className:"mind-map-file-location-row",children:[s.jsx(wt,{disabled:!a.filePath,prefix:s.jsx(Re,{"aria-label":"Open mind map folder",className:"mind-map-file-location-folder",disabled:!a.filePath,icon:s.jsx(oa,{}),onClick:Fe,type:"text"}),readOnly:!0,value:a.filePath||"File location unavailable"}),s.jsx(Re,{disabled:!a.filePath,icon:s.jsx(xo,{}),onClick:Xe,children:"Copy"})]})]}),s.jsxs("div",{className:"mind-map-settings-section",children:[s.jsx(Do,{className:"mind-map-settings-section-title",children:"Jira issues"}),s.jsx(Do,{className:"mind-map-settings-description",children:"Add issues to this map by Jira No or a Jira issue link, then tag them from the selected node inspector."}),s.jsxs(at.Compact,{block:!0,className:"mind-map-jira-add-row",children:[s.jsx(wt,{onChange:we=>I(we.target.value),onPressEnter:Le,placeholder:"PROJ-123 or https://.../browse/PROJ-123",value:R}),s.jsx(Re,{loading:j,onClick:Le,type:"primary",children:"Add"})]}),s.jsx("div",{className:"mind-map-jira-list",children:ne.length?ne.map(we=>s.jsxs("div",{className:`mind-map-jira-list-item ${we.url?"is-clickable":""} ${Q.has(we.key)?"is-tagged":""}`,onClick:()=>we.url&&ir(we.url),onKeyDown:Se=>{Se.target!==Se.currentTarget||!we.url||(Se.key==="Enter"||Se.key===" ")&&(Se.preventDefault(),ir(we.url))},role:we.url?"link":void 0,tabIndex:we.url?0:void 0,children:[s.jsx("div",{className:"mind-map-jira-list-item-main",children:s.jsxs("div",{className:"mind-map-jira-list-item-title",children:[s.jsx(Nt,{color:"blue",children:we.key}),s.jsx(Do,{ellipsis:{tooltip:!0},children:we.summary||"Summary unavailable"})]})}),s.jsxs("div",{className:"mind-map-jira-list-item-delete",onClick:Se=>Se.stopPropagation(),children:[s.jsx(Re,{"aria-label":`Refresh summary for ${we.key}`,className:"mind-map-jira-refresh",disabled:!!T,icon:s.jsx(yo,{spin:T===we.key}),onClick:()=>void Ve(we),title:`Refresh summary for ${we.key}`,type:"text"}),s.jsx(ia,{cancelText:"Cancel",description:"Existing node tags for this issue will also be removed.",okButtonProps:{danger:!0},okText:"Remove",onConfirm:()=>Be(we.key),placement:"left",title:`Remove ${we.key}?`,children:s.jsx(Re,{"aria-label":`Remove ${we.key}`,danger:!0,icon:s.jsx(Kn,{}),type:"text"})})]})]},we.id||we.key)):s.jsx(Qt,{className:"mind-map-jira-empty",description:"No Jira issues added yet.",image:Qt.PRESENTED_IMAGE_SIMPLE})})]})]}),s.jsxs(xn,{cancelText:"Cancel",okText:"Move",onCancel:()=>V(!1),onOk:he,open:D,title:`Move “${(re==null?void 0:re.text)||"idea"}”`,children:[s.jsx(Do,{type:"secondary",children:"Choose the node that should become the new parent. The entire subtree will move with it."}),s.jsx(cl,{changeOnSelect:!0,className:"mind-map-move-select",onChange:B,options:ae,placeholder:"Select a parent node",showSearch:!0,value:z})]})]}):s.jsxs("div",{className:"mind-map-missing",children:[s.jsx(Qt,{description:"This mind map could not be found."}),s.jsx(Re,{onClick:()=>t("mind-maps"),children:"Back to mind maps"})]})}const{Content:gve,Sider:hve}=ns,{Title:j8,Text:Bs}=Nn,N8={dark:"#6555e8",light:"#dbeafe"},bve="var(--db-font-sans)",Q7=["overview","launcher","clipboard","ports","image-compress","json-to-typescript","jira-filters","todo-list","memos","mind-maps","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","package-versions","presentation-plan","presentation-view","settings","dev-configurations","errors"],Z7=e=>{if(e==="mind-maps"||e==="mind-maps/")return{page:"mind-maps",mindMapId:null};if(e.startsWith("mind-maps/")){const t=e.slice(10).split("?")[0];return t?{page:"mind-maps",mindMapId:decodeURIComponent(t)}:null}return null},yve=()=>{const t=(window.location.hash||"#/overview").slice(2),n=Z7(t);return n||(t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:t.startsWith("pr-review")?{page:"pr-review",pluginId:null}:t==="pr-conflicts"||t.startsWith("pr-conflicts?")?{page:"pr-conflicts",pluginId:null}:t.startsWith("pr-conflict")?{page:"pr-conflict",pluginId:null}:t.startsWith("branch-sync")?{page:"branch-sync",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:Q7.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null})};function xve({theme:e,onThemeChange:t}){var ye;const{message:n}=_r.useApp(),r=yve(),[a,i]=o.useState([]),[c,u]=o.useState(new Set),[f,m]=o.useState({}),[v,p]=o.useState([]),[h,b]=o.useState(!0),[x,C]=o.useState(null),[y,w]=o.useState(!1),[$,E]=o.useState(!1),[O,N]=o.useState([]),[R,I]=o.useState([]),[j,M]=o.useState(r.page),[T,P]=o.useState(r.mindMapId||null),[A,L]=o.useState(()=>{var ve;return((ve=window.matchMedia)==null?void 0:ve.call(window,"(max-width: 991.98px)").matches)??!1}),[D,V]=o.useState(null),[z,B]=o.useState(!1),[_,W]=o.useState(!1),[K,F]=o.useState(""),[q,U]=o.useState(null),[G,Y]=o.useState(!1),[Z,ie]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[re,X]=o.useState(null),[ee,ne]=o.useState(""),Q=async({showLoading:ve=!1}={})=>{ve&&b(!0);try{const[he,Ee,Le]=await Promise.all([Or.list(),Or.running(),Eu.list().catch(()=>[])]);i(he),p(Array.isArray(Le)?Le:[]),Array.isArray(Ee)?(u(new Set(Ee)),m({})):(u(new Set((Ee==null?void 0:Ee.running)||[])),m((Ee==null?void 0:Ee.errorCounts)||{})),w(!0),C(null),E(!0)}catch(he){C((he==null?void 0:he.message)||"Unable to load service and runtime data."),E(!1)}finally{ve&&b(!1)}},J=async(ve=!1)=>{B(!0);try{V(await Vj.status(ve))}catch{V(he=>he||{currentVersion:su.version,latestVersion:su.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{B(!1)}},ae=()=>Q({showLoading:!0}),se=()=>{U(null),Y(!0)},te=()=>{const ve=q==null?void 0:q.success;Y(!1),ve&&window.location.reload()},de=async(ve="latest")=>{W(!0),F(ve),U(null);try{const he=await Vj.selfUpdate(ve);U({success:!0,message:he.message}),V(Ee=>Ee&&{...Ee,currentVersion:ve==="latest"?Ee.latestVersion:ve,updateAvailable:ve==="latest"?!1:ve!==Ee.latestVersion})}catch(he){U({success:!1,message:he.message||"DevBuddy could not be updated."})}finally{W(!1)}},ge=async ve=>{if(ve){ne("Loading plugin…");try{ne(ve.view?await(await fetch(ve.view)).text():"This plugin does not provide a view yet.")}catch{ne("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([Q({showLoading:!0}),Bde.list().then(N),Ks.list().then(I)]).catch(ve=>n.error(ve.message)),J()},[]),o.useEffect(()=>{const ve=()=>{const Ee=(window.location.hash||"#/overview").slice(2),Le=Z7(Ee);if(Le){ie(null),X(null),M("mind-maps"),P(Le.mindMapId);return}if(Ee.startsWith("plugin:")){const Be=Ee.slice(7),Ve=O.find(qe=>qe.id===Be);Ve?(X(null),M("plugin"),P(null),ie(Ve),ge(Ve)):O.length>0&&(window.location.hash="#/overview")}else if(Ee.startsWith("static:")){const Be=Ee.slice(7),Ve=R.find(qe=>String(qe.id)===String(Be));Ve?(ie(null),M("static-page"),P(null),X(Ve)):R.length>0&&(window.location.hash="#/overview")}else Ee.startsWith("logs/")?(ie(null),X(null),M("logs"),P(null)):["todo-list/archived","todo-archived"].includes(Ee)?(ie(null),X(null),M("todo-archived"),P(null)):Ee.startsWith("pr-review")?(ie(null),X(null),M("pr-review"),P(null)):Ee==="pr-conflicts"||Ee.startsWith("pr-conflicts?")?(ie(null),X(null),M("pr-conflicts"),P(null)):Ee.startsWith("pr-conflict")?(ie(null),X(null),M("pr-conflict"),P(null)):Ee.startsWith("branch-sync")?(ie(null),X(null),M("branch-sync"),P(null)):Ee==="home"||Q7.includes(Ee)?(ie(null),X(null),M(Ee==="home"?"overview":Ee),P(null)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ve),window.location.hash?ve():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ve)},[O,R]),o.useEffect(()=>{const ve=Ee=>{var Le;(Ee.error||Ee.message)&&Eu.log({source:"Frontend",message:Ee.message||"Uncaught JavaScript Error",details:((Le=Ee.error)==null?void 0:Le.stack)||`${Ee.filename}:${Ee.lineno}:${Ee.colno}`}).catch(()=>{})},he=Ee=>{var Le,Be;Eu.log({source:"Frontend (Promise)",message:((Le=Ee.reason)==null?void 0:Le.message)||String(Ee.reason||"Unhandled Promise Rejection"),details:((Be=Ee.reason)==null?void 0:Be.stack)||String(Ee.reason)}).catch(()=>{})};return window.addEventListener("error",ve),window.addEventListener("unhandledrejection",he),()=>{window.removeEventListener("error",ve),window.removeEventListener("unhandledrejection",he)}},[]),o.useLayoutEffect(()=>{var ve;(ve=document.querySelector(".page"))==null||ve.scrollTo({top:0,left:0,behavior:"auto"})},[j,T,Z==null?void 0:Z.id,re==null?void 0:re.id]),o.useEffect(()=>{const ve=he=>{(he.metaKey||he.ctrlKey)&&he.shiftKey&&(he.key==="r"||he.key==="R"||he.code==="KeyR")&&(he.preventDefault(),he.stopPropagation())};return window.addEventListener("keydown",ve,!0),()=>window.removeEventListener("keydown",ve,!0)},[]),o.useEffect(()=>{if(h||!["overview","launcher","ports"].includes(j))return;const ve=setInterval(()=>{Q()},2e3);return()=>clearInterval(ve)},[j,h]);const Oe=o.useMemo(()=>{const ve=[...O.map(he=>({key:`plugin:${he.id}`,icon:s.jsx("span",{"aria-hidden":"true",children:he.icon||"✦"}),label:he.name||he.id})),...R.map(he=>({key:`static:${he.id}`,icon:s.jsx(ud,{}),label:he.name}))];return[{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:s.jsx(ho,{}),label:"Launcher"},{key:"ports",icon:s.jsx(OS,{}),label:"Port Diagnostic"}]},{type:"group",label:"Plan & Review",children:[{key:"todo-list",icon:s.jsx(sc,{}),label:"To-Do"},{key:"memos",icon:s.jsx(vi,{}),label:"Memos"},{key:"mind-maps",icon:s.jsx(Uy,{}),label:"Mind Maps"},{key:"pr-review",icon:s.jsx(Eh,{}),label:"PR Review"},{key:"pr-conflicts",icon:s.jsx(vg,{}),label:"Resolve Conflicts"},{key:"jira-filters",icon:s.jsx(Lce,{}),label:"Jira Workspace"},{key:"presentation-plan",icon:s.jsx(Qce,{}),label:"Presentations"},{key:"branch-sync",icon:s.jsx(Bp,{}),label:"Branch Sync"},{key:"package-upgrade",icon:s.jsx(C7,{}),label:"Package Upgrade"},{key:"package-versions",icon:s.jsx(Cse,{}),label:"Package Versions"}]},{type:"group",label:"Utilities",children:[{key:"clipboard",icon:s.jsx(xo,{}),label:"Clipboard"},{key:"postman",icon:s.jsx(uc,{}),label:"Postman"},{key:"image-compress",icon:s.jsx(Fx,{}),label:"Image compression"},{key:"json-to-typescript",icon:s.jsx(Ea,{}),label:"JSON to TypeScript"},{key:"bookmark-sync",icon:s.jsx(rm,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:s.jsx(oa,{}),label:"Folder Organizer"}]},...ve.length>0?[{type:"group",label:"Extensions",children:ve}]:[]]},[O,R]),Me=({key:ve})=>{window.location.hash=`#/${ve}`},Ce=Z?`plugin:${Z.id}`:re?`static:${re.id}`:j==="todo-archived"?"todo-list":j,me=x&&!(h&&!y)?s.jsx(Tr,{type:y?"warning":"error",showIcon:!0,message:y?"Service status may be out of date":"Unable to load services",description:x,action:s.jsx(Re,{size:"small",loading:h,onClick:ae,children:"Retry"}),className:"launcher-data-notice"}):null;return j==="logs"?s.jsx(Xfe,{}):j==="presentation-view"?s.jsx(Vme,{}):s.jsxs(ns,{className:"workbench",children:[s.jsxs(hve,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:A,collapsedWidth:64,collapsible:!0,onBreakpoint:L,onCollapse:L,width:240,children:[s.jsxs("div",{className:"brand-row",children:[s.jsxs("a",{className:"brand",href:"#/overview","aria-current":j==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${su.version}`,children:[s.jsx("span",{className:`brand-mark ${$?"":"is-offline"}`,"aria-hidden":"true",children:"✦"}),s.jsx("span",{className:"brand-name",children:"DevBuddy"}),s.jsxs("span",{className:"brand-version",children:["v",su.version]})]}),!A&&s.jsx(un,{title:D!=null&&D.updateAvailable?`Update available: v${D.latestVersion}`:"View Change Log",children:s.jsx(Jr,{dot:!!(D!=null&&D.updateAvailable),color:"#f5b942",offset:[-2,3],children:s.jsx(Re,{"aria-label":D!=null&&D.updateAvailable?`Update available: version ${D.latestVersion}`:"View Change Log",className:`sidebar-update-button ${D!=null&&D.updateAvailable?"has-update":""}`,icon:s.jsx(Uy,{}),loading:z&&!D,onClick:se,type:"text"})})})]}),s.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:s.jsx(ts,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Ce],items:Oe,onClick:Me})}),s.jsx("div",{className:"sidebar-bottom",children:s.jsx("div",{className:"sidebar-bottom-inner",children:s.jsx("nav",{"aria-label":"Settings navigation",children:s.jsx(ts,{className:"sidebar-settings-menu",theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:["settings","errors"].includes(j)?[j]:[],items:[{key:"settings",icon:s.jsx(is,{}),label:"Settings"}],onClick:Me})})})})]}),s.jsx(ns,{children:s.jsx(gve,{className:`page ${["static-page","postman"].includes(j)?"is-static-page":""} ${["overview","postman","static-page"].includes(j)?"":"is-workspace-content"} ${j==="mind-maps"&&T?"is-mind-map-detail":""} ${j==="presentation-plan"?"is-presentation-plan":""} ${j==="json-to-typescript"?"is-json-to-typescript":""} ${j==="memos"?"is-memos":""}`,children:Z?s.jsxs(s.Fragment,{children:[s.jsx(Bs,{type:"secondary",children:"PLUGIN"}),s.jsx(j8,{level:2,children:Z.name}),s.jsx(At,{children:s.jsx("div",{dangerouslySetInnerHTML:{__html:ee}})})]}):j==="static-page"&&re?s.jsx("div",{className:"static-page-container",children:s.jsx("iframe",{src:re.url,title:re.name,className:"static-page-iframe"})}):j==="image-compress"?s.jsx(wfe,{}):j==="json-to-typescript"?s.jsx(Xme,{}):j==="mind-maps"?T?s.jsx(pve,{mindMapId:T,onNavigate:ve=>{window.location.hash=`#/${ve}`}}):s.jsx(cve,{onNavigate:ve=>{window.location.hash=`#/${ve}`}}):j==="overview"?s.jsx(Rme,{launchers:a,running:c,errorCounts:f,errorLogs:v,plugins:O,staticPages:R,loading:h,error:x,hasLoaded:y,onRetry:ae,onNavigate:ve=>{window.location.hash=`#/${ve}`}}):j==="clipboard"?s.jsx(efe,{}):j==="ports"?s.jsx(vfe,{refreshLaunchers:Q}):j==="pr-review"?s.jsx(Nfe,{}):j==="pr-conflicts"?s.jsx(t8,{listOnly:!0},"pr-conflicts"):j==="pr-conflict"?s.jsx(t8,{},"pr-conflict"):j==="jira-filters"?s.jsx(Afe,{}):j==="todo-list"?s.jsx(Vfe,{}):j==="memos"?s.jsx(tve,{}):j==="todo-archived"?s.jsx(Kfe,{}):j==="presentation-plan"?s.jsx(Fme,{}):j==="postman"?s.jsx(sme,{}):j==="bookmark-sync"?s.jsx(cme,{}):j==="file-organizer"?s.jsx(dme,{}):j==="branch-sync"?s.jsx(fme,{}):j==="package-upgrade"?s.jsx(vme,{}):j==="package-versions"?s.jsx(gme,{}):j==="errors"?s.jsx(Yfe,{}):j==="settings"?s.jsx(pfe,{theme:e,onThemeChange:t,onStaticPagesChange:()=>Ks.list().then(I)}):j==="dev-configurations"?s.jsx(bfe,{}):s.jsxs(s.Fragment,{children:[me,(h||y||!x)&&s.jsx(mfe,{launchers:a,running:c,errorCounts:f,refresh:Q,loading:h&&!y})]})})}),s.jsx(xn,{className:"changelog-modal",footer:[(D==null?void 0:D.updateAvailable)&&!(q!=null&&q.success)&&s.jsx(Re,{type:"primary",loading:_&&K==="latest",onClick:()=>de(),children:"Update now"},"update"),s.jsx(Re,{disabled:_,loading:z,onClick:()=>J(!0),children:"Check again"},"refresh"),s.jsx(Re,{type:"primary",disabled:_,onClick:te,children:q!=null&&q.success?"Close & reload":"Close"},"close")],onCancel:te,closable:!_,maskClosable:!_,open:G,title:s.jsxs("div",{className:"changelog-title",children:[s.jsx("span",{className:`changelog-bulb ${D!=null&&D.updateAvailable?"has-update":""}`,children:s.jsx(Uy,{})}),s.jsx("span",{children:"Updates"})]}),width:680,children:z&&!D?s.jsx("div",{className:"changelog-loading",children:s.jsx(Cr,{})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"changelog-version-row",children:[s.jsxs("div",{children:[s.jsx(Bs,{type:"secondary",children:"Installed"}),s.jsxs(Bs,{strong:!0,children:["v",(D==null?void 0:D.currentVersion)||su.version]})]}),s.jsxs("div",{children:[s.jsx(Bs,{type:"secondary",children:"Latest"}),s.jsxs(Bs,{strong:!0,children:["v",(D==null?void 0:D.latestVersion)||su.version]})]}),s.jsx(Nt,{color:D!=null&&D.updateAvailable?"gold":"green",children:D!=null&&D.updateAvailable?"Update available":"Up to date"})]}),(D==null?void 0:D.sourceUnavailable)&&s.jsx(Tr,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),q&&s.jsx(Tr,{className:"changelog-source-alert",description:q.message,message:q.success?"DevBuddy updated successfully":"DevBuddy update failed",showIcon:!0,type:q.success?"success":"error"}),s.jsx("div",{className:"changelog-release-list",children:(ye=D==null?void 0:D.releases)!=null&&ye.length?D.releases.slice(0,5).map(ve=>s.jsxs("section",{className:"changelog-release",children:[s.jsxs("div",{className:"changelog-release-heading",children:[s.jsxs("div",{className:"changelog-release-title",children:[s.jsxs(Nt,{className:"changelog-release-version",children:["v",ve.version]}),s.jsx(j8,{level:4,children:ve.name})]}),s.jsxs("div",{className:"changelog-release-actions",children:[ve.publishedAt&&s.jsx(Bs,{type:"secondary",children:new Date(ve.publishedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}),s.jsx(Re,{size:"small",type:ve.version===(D==null?void 0:D.latestVersion)?"primary":"default",disabled:_||ve.version===(D==null?void 0:D.currentVersion),loading:_&&K===ve.version,onClick:()=>de(ve.version),children:ve.version===(D==null?void 0:D.currentVersion)?"Installed":"Install"})]})]}),s.jsx(Bs,{className:"changelog-release-notes",children:ve.notes||"Published to the configured npm registry."})]},`${ve.version}-${ve.publishedAt||""}`)):s.jsx(Qt,{description:"No published release notes yet.",image:Qt.PRESENTED_IMAGE_SIMPLE})})]})})]})}function Cve(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{Jn.status().then(n=>{const r=n.theme==="light"?"light":"dark";t(r),localStorage.setItem("devbuddy-theme",r)}).catch(()=>{})},[]),o.useLayoutEffect(()=>{var n;document.documentElement.dataset.theme=e,localStorage.setItem("devbuddy-theme",e),(n=document.querySelector('meta[name="theme-color"]'))==null||n.setAttribute("content",N8[e]||N8.dark)},[e]),o.useLayoutEffect(()=>{const n=()=>{document.querySelectorAll('[role="tab"], [role="tabpanel"]').forEach(i=>{document.activeElement===i&&i.blur(),i.tabIndex!==-1&&(i.tabIndex=-1)})};n();const r=new MutationObserver(n),a=i=>{var c,u;(u=(c=i.target).matches)!=null&&u.call(c,'[role="tab"], [role="tabpanel"]')&&i.target.blur()};return document.addEventListener("focusin",a,!0),r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>{r.disconnect(),document.removeEventListener("focusin",a,!0)}},[]),s.jsx(Uo,{theme:{token:{fontFamily:bve,borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#2e83d2":"#6555e8",colorLink:e==="light"?"#2e83d2":"#5b4cc4",colorLinkActive:e==="light"?"#2474bd":"#5143c2",colorLinkHover:e==="light"?"#4593d8":"#7669ee",colorPrimary:e==="light"?"#2e83d2":"#6555e8",colorPrimaryActive:e==="light"?"#2474bd":"#5143c2",colorPrimaryHover:e==="light"?"#4593d8":"#7669ee",controlOutline:e==="light"?"rgba(46, 131, 210, .2)":"rgba(101, 85, 232, .22)",colorTextSecondary:"#667085"},components:{Layout:{bodyBg:e==="light"?"#f7f8fc":"#f4f5fa",siderBg:e==="light"?"#ffffff":"#171c2b",triggerBg:e==="light"?"#f8f9fc":"#101522",triggerColor:e==="light"?"#667085":"#c9ced8"},Menu:{darkItemBg:"#171c2b",darkItemSelectedBg:"#6555e8",darkSubMenuItemBg:"#171c2b",itemSelectedBg:"#eeecff",itemSelectedColor:"#5143c2"}}},children:s.jsx(_r,{children:s.jsx(xve,{theme:e,onThemeChange:t})})})}const Sve=/Macintosh|Mac OS X|iPhone|iPad/i.test(navigator.userAgent);document.documentElement.dataset.platform=Sve?"mac":"other";const wve=uP.createRoot(document.getElementById("app"));wve.render(s.jsx(Cve,{}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js",{updateViaCache:"none"}).catch(e=>{console.warn("DevBuddy service worker registration failed:",e)})});requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.setTimeout(()=>{const e=document.getElementById("app-splash");e&&(e.classList.add("is-hidden"),window.setTimeout(()=>e.remove(),700))},700)})});export{ui as g,MS as n};
|
|
588
|
+
`},L7=(e,t="Imported mind map")=>{var u,f,m;const r=e.split(/\r?\n/).filter(v=>v.trim()).map(v=>({line:v,match:v.match(/^(#{1,6})\s+(.+?)\s*$/)})).filter(({match:v})=>v),a=((m=(f=(u=r[0])==null?void 0:u.match)==null?void 0:f[2])==null?void 0:m.trim())||t,i={id:Yl(),text:a,children:[]},c=[{depth:0,node:i}];return r.slice(1).forEach(({match:v})=>{var x;const p=v[1].length,h={id:Yl(),text:v[2].trim(),children:[]};for(;c.length&&c[c.length-1].depth>=p;)c.pop();(((x=c[c.length-1])==null?void 0:x.node)||i).children.push(h),c.push({depth:p,node:h})}),MS({title:a,root:i})},Ou=(e,t,n="application/json")=>{const r=typeof Blob<"u"&&t instanceof Blob?t:new Blob([t],{type:n}),a=URL.createObjectURL(r),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(a)},ive=e=>{const t=new Date(e);return Number.isNaN(t.getTime())?"Recently updated":new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(t)},{Title:B7,Text:H7}=Nn,bp=e=>e.replace(/\.(xmind|json|md|markdown|txt)$/i,"").replace(/[-_]+/g," ").trim()||"Imported mind map";function lve({map:e}){const t=["#6555e8","#4f8edb","#36a269","#d98a34"];return s.jsxs("div",{className:"mind-map-mini-preview","aria-hidden":"true",children:[s.jsx("div",{className:"mind-map-mini-root",style:{background:e.root.color||t[0]},children:e.root.text}),s.jsx("div",{className:"mind-map-mini-branches",children:(e.root.children||[]).slice(0,4).map((n,r)=>s.jsxs("div",{className:"mind-map-mini-branch",children:[s.jsx("span",{className:"mind-map-mini-line"}),s.jsx("span",{className:"mind-map-mini-node",style:{borderColor:n.color||t[r%t.length]},children:n.text})]},n.id))})]})}function sve({map:e,index:t,onOpen:n,onDelete:r,onExport:a}){const i=[{key:"xmind",icon:s.jsx(oi,{}),label:"Export XMind"},{key:"json",icon:s.jsx(oi,{}),label:"Export JSON"},{key:"markdown",icon:s.jsx(vi,{}),label:"Export Markdown"},{type:"divider"},{key:"delete",danger:!0,icon:s.jsx(Kn,{}),label:"Delete map"}],c=({key:u,domEvent:f})=>{f==null||f.stopPropagation(),u==="delete"&&r(e),(u==="xmind"||u==="json"||u==="markdown")&&a(e,u)};return s.jsxs(At,{className:`mind-map-card ${t===0?"is-featured":""}`,hoverable:!0,onClick:()=>n(e.id),onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),n(e.id))},role:"button",tabIndex:0,children:[s.jsxs("div",{className:"mind-map-card-topline",children:[s.jsx(Nt,{className:"mind-map-card-type",children:"MIND MAP"}),s.jsx(rl,{menu:{items:i,onClick:c},trigger:["click"],children:s.jsx(Re,{"aria-label":`Actions for ${e.title}`,className:"mind-map-card-menu",icon:s.jsx(Hp,{}),onClick:u=>u.stopPropagation(),type:"text"})})]}),s.jsx(lve,{map:e}),s.jsxs("div",{className:"mind-map-card-content",children:[s.jsxs("div",{className:"mind-map-card-title-row",children:[s.jsx(B7,{ellipsis:{rows:1,tooltip:e.title},level:3,children:e.title}),s.jsx(Lo,{className:"mind-map-card-edit"})]}),s.jsxs("div",{className:"mind-map-card-meta-row",children:[s.jsxs(H7,{className:"mind-map-card-meta",children:[TS(e.root)," nodes ",s.jsx("span",{children:"·"})," Updated ",ive(e.updatedAt)]}),s.jsxs("span",{className:"mind-map-card-open",children:["Open map ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})]})}function cve({onNavigate:e}){const{message:t,modal:n}=_r.useApp(),[r,a]=o.useState([]),[i,c]=o.useState(!0),[u,f]=o.useState(""),m=o.useRef(null),v=async()=>{try{a(await Si.list())}catch($){t.error(`Could not load mind maps: ${$.message||"unknown error"}`)}finally{c(!1)}};o.useEffect(()=>{v()},[]);const p=o.useMemo(()=>{const $=u.trim().toLowerCase();return $?r.filter(E=>`${E.title} ${E.root.text}`.toLowerCase().includes($)):r},[r,u]),h=()=>v(),b=$=>e(`mind-maps/${encodeURIComponent($)}`),x=async()=>{try{const $=await Si.create(rve());a(E=>[$,...E]),b($.id)}catch($){t.error(`Could not create mind map: ${$.message||"unknown error"}`)}},C=async($,E)=>{try{if(E==="xmind"){const{mindMapToXmindBlob:O}=await Vu(async()=>{const{mindMapToXmindBlob:R}=await import("./xmindAdapter-BJOBrMOj.js");return{mindMapToXmindBlob:R}},[]),N=await O($);Ou(`${$.title||"mind-map"}.xmind`,N,"application/octet-stream"),t.success("XMind exported");return}if(E==="markdown"){Ou(`${$.title||"mind-map"}.md`,_7($),"text/markdown;charset=utf-8"),t.success("Markdown exported");return}Ou(`${$.title||"mind-map"}.json`,`${JSON.stringify($,null,2)}
|
|
589
|
+
`,"application/json;charset=utf-8"),t.success("JSON exported")}catch(O){t.error(`Could not export this map: ${O.message||"unknown error"}`)}},y=$=>{n.confirm({title:"Delete this mind map?",content:`“${$.title}” will be removed from workspace data.`,okText:"Delete",okButtonProps:{danger:!0},cancelText:"Cancel",onOk:async()=>{await Si.remove($.id),await h(),t.success("Mind map deleted")}})},w=async $=>{var O;const E=(O=$.target.files)==null?void 0:O[0];if($.target.value="",!!E)try{const N=E.name.toLowerCase().endsWith(".xmind"),R=N?null:await E.text(),I=E.name.toLowerCase().endsWith(".json"),j=N?await(async()=>{const{xmindBlobToMindMap:T}=await Vu(async()=>{const{xmindBlobToMindMap:P}=await import("./xmindAdapter-BJOBrMOj.js");return{xmindBlobToMindMap:P}},[]);return T(await E.arrayBuffer(),bp(E.name))})():I?MS(JSON.parse(R),bp(E.name)):L7(R,bp(E.name)),M=await Si.create({...j,title:j.title||bp(E.name)});a(T=>[M,...T]),t.success(`${N?"XMind":I?"JSON":"Markdown"} imported`),b(M.id)}catch(N){t.error(`Could not import this file: ${N.message||"invalid format"}`)}};return s.jsxs("div",{className:"mind-map-page",children:[s.jsx(Ur,{actions:s.jsxs(at,{className:"mind-map-page-actions",size:10,children:[s.jsx("input",{ref:m,accept:".xmind,.json,.md,.markdown,.txt",className:"mind-map-hidden-input",onChange:w,type:"file"}),s.jsx(Re,{icon:s.jsx(Vx,{}),onClick:()=>{var $;return($=m.current)==null?void 0:$.click()},children:"Import"}),s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:x,type:"primary",children:"New mind map"})]}),description:"Turn scattered thoughts into a clear visual plan.",eyebrow:"PLAN & REVIEW",title:"Mind maps"}),s.jsxs("div",{className:"mind-map-list-summary",children:[s.jsxs("div",{children:[s.jsx(B7,{level:2,children:"Your workspace"}),s.jsxs(H7,{type:"secondary",children:[r.length," ",r.length===1?"map":"maps"," saved locally"]})]}),s.jsx(wt,{allowClear:!0,className:"mind-map-search",onChange:$=>f($.target.value),placeholder:"Search maps...",prefix:s.jsx(Ko,{}),value:u})]}),i?s.jsx("div",{className:"mind-map-loading",children:s.jsx("span",{children:"Loading mind maps..."})}):p.length?s.jsx("div",{className:"mind-map-card-grid",children:p.map(($,E)=>s.jsx(sve,{index:E,map:$,onDelete:y,onExport:C,onOpen:b},$.id))}):s.jsx(At,{className:"mind-map-empty-card",children:s.jsx(Qt,{description:u?"No maps match your search.":"No mind maps yet.",children:!u&&s.jsx(Re,{icon:s.jsx(Gn,{}),onClick:x,type:"primary",children:"Create your first map"})})}),s.jsxs("div",{className:"mind-map-import-hint",children:[s.jsx(Vx,{})," ",s.jsx("span",{children:"Import XMind, JSON, or Markdown. Export XMind to continue editing in XMind."})]})]})}const{Text:Do,Title:E8}=Nn,xg=["#4f8edb","#36a269","#d98a34","#c05a83","#8a70c5"],uve=3200,dve=2200,Ll=1600,fve=380,Rh=e=>String((e==null?void 0:e.text)||"").trimStart().startsWith("#"),mve=e=>{var n;const t=e instanceof HTMLElement?e:null;return!!(t!=null&&t.isContentEditable||(n=t==null?void 0:t.closest)!=null&&n.call(t,'input, textarea, select, [contenteditable="true"]'))},F7=e=>e.reduce((t,n)=>{const r=String(n.edgeLabel||"").trim();return r?Math.max(t,Math.min(160,Math.max(72,r.length*7+16))):t},16),V7=(e,t,n=!1)=>({...e,collapsed:n?!1:t,children:(e.children||[]).map(r=>V7(r,t))}),W7=(e,t,n=!1)=>{const r=n||Rh(e);return{...e,tested:r?!1:t,children:(e.children||[]).map(a=>W7(a,t,r))}},U7=(e,t)=>({...e,jiraKeys:(e.jiraKeys||[]).filter(n=>n!==t),children:(e.children||[]).map(n=>U7(n,t))}),K7=(e,t)=>{t.add(e.id),(e.children||[]).forEach(n=>K7(n,t))},q7=(e,t)=>t.has(e.id)?null:{label:e.text||"Untitled idea",value:e.id,children:(e.children||[]).map(n=>q7(n,t)).filter(Boolean)},G7=(e,t,n=[])=>{const r=[...n,e.id];if(e.id===t)return r;for(const a of e.children||[]){const i=G7(a,t,r);if(i)return i}return null},s1=e=>e.replace(/\.(xmind|json|md|markdown|txt)$/i,"").replace(/[-_]+/g," ").trim()||"Imported mind map",X7=(e,t,n=!1)=>{if(!e)return!1;const r=n||Rh(e);return e.id===t?r:(e.children||[]).some(a=>X7(a,t,r))};function Y7({node:e,jiraIssues:t}){const n=(e.jiraKeys||[]).map(r=>t.find(a=>a.key===r)||{key:r});return n.length?s.jsx("span",{className:"mind-map-node-jira-tags","aria-label":"Jira tags",children:n.map(r=>s.jsx("span",{className:"mind-map-node-jira-tag",title:r.summary||r.key,children:r.key},r.key))}):null}function J7({node:e,depth:t=0,selectedId:n,onSelect:r,onToggle:a,jiraIssues:i,commented:c=!1}){const u=e.color||xg[t%xg.length],f=e.children||[],m=Rh(e),v=c||m,p=F7(f);return s.jsxs("div",{className:`mind-map-ltr-branch depth-${Math.min(t,4)}${v?" is-comment-branch":""}${m?" is-comment-marker":""}`,children:[s.jsxs("div",{className:"mind-map-ltr-node-row",children:[e.edgeLabel&&s.jsx("span",{className:"mind-map-ltr-edge-label",title:e.edgeLabel,children:e.edgeLabel}),s.jsxs("button",{className:`mind-map-node ${n===e.id?"is-selected":""} ${e.tested&&!v?"is-tested":""}${v?" is-comment":""}${m?" is-comment-marker":""}`,onClick:()=>r(e.id),"data-mind-map-node":e.id,style:{"--node-color":u},type:"button",children:[s.jsxs("span",{className:"mind-map-node-main",children:[s.jsx("span",{className:"mind-map-node-text",children:e.text||"Untitled idea"}),f.length>0&&s.jsx("span",{className:"mind-map-node-count",children:f.length})]}),s.jsx(Y7,{jiraIssues:i,node:e})]}),f.length>0&&s.jsxs("button",{"aria-label":e.collapsed?"Expand branch":"Collapse branch",className:"mind-map-collapse",onClick:()=>a(e.id),type:"button",children:[s.jsx("span",{className:`mind-map-collapse-symbol ${e.collapsed?"is-visible":""}`,children:"+"}),s.jsx("span",{className:`mind-map-collapse-symbol ${e.collapsed?"":"is-visible"}`,children:"−"})]})]}),!e.collapsed&&f.length>0&&s.jsx("div",{className:`mind-map-ltr-children${v?" is-comment-children":""}`,style:{"--mind-map-ltr-node-inset":`${p}px`},children:f.map(h=>s.jsx(J7,{depth:t+1,node:h,onSelect:r,onToggle:a,selectedId:n,jiraIssues:i,commented:v},h.id))})]})}const vve=o.forwardRef(function({map:t,selectedId:n,zoom:r,resetViewToken:a,recenterLayoutToken:i,isPanning:c,onCanvasPointerDown:u,onCanvasPointerMove:f,onCanvasPointerUp:m,onSelect:v,onToggle:p,onZoomChange:h,jiraIssues:b},x){const C=o.useRef(null),y=o.useRef(null),w=o.useRef(r),$=o.useRef({meta:!1,ctrl:!1}),E=o.useRef(new Map),O=o.useRef(0),N=o.useRef(0),R=o.useRef(!1),I=o.useRef(i);w.current=r;const j=(_,W,K,F)=>{const q=_.querySelector(".mind-map-canvas-stage"),U=_.getBoundingClientRect(),G=q==null?void 0:q.getBoundingClientRect();return{fromZoom:W,toZoom:null,x:K,y:F,stageX:G?(U.left+K-G.left)/W:null,stageY:G?(U.top+F-G.top)/W:null}};o.useImperativeHandle(x,()=>({zoomAt(_){const W=C.current,K=w.current;!W||_===K||(y.current=j(W,K,W.clientWidth/2,W.clientHeight/2),y.current.toZoom=_,w.current=_,h(_))}}),[h]);const M=_=>{const W=_.target instanceof Element?_.target:null,K=W==null?void 0:W.closest("button[data-mind-map-node]");W!=null&&W.closest("button")&&!K||u(_,(K==null?void 0:K.dataset.mindMapNode)||null)},T=(_=null)=>{const W=C.current;if(!W)return;const K=[...W.querySelectorAll("[data-mind-map-node]")],F=W.querySelector(".mind-map-root-node");if(!K.length||!F)return;const q=W.getBoundingClientRect(),U=K.reduce((Oe,Me)=>{const Ce=(_==null?void 0:_.get(Me.dataset.mindMapNode))||Me.getBoundingClientRect();return{left:Math.min(Oe.left,Ce.left),top:Math.min(Oe.top,Ce.top),right:Math.max(Oe.right,Ce.right),bottom:Math.max(Oe.bottom,Ce.bottom)}},{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),G=(U.left+U.right)/2,Y=(U.top+U.bottom)/2,Z=(_==null?void 0:_.get(F.dataset.mindMapNode))||F.getBoundingClientRect();let ie=W.scrollLeft+G-q.left-W.clientWidth/2,re=W.scrollTop+Y-q.top-W.clientHeight/2;const X=ie-W.scrollLeft,ee=re-W.scrollTop,ne=Z.left-X,Q=Z.right-X,J=Z.top-ee,ae=Z.bottom-ee,se=q.left+24,te=q.right-24,de=q.top+24,ge=q.bottom-24;Q<se&&(ie+=Q-se),ne>te&&(ie+=ne-te),ae<de&&(re+=ae-de),J>ge&&(re+=J-ge),W.scrollLeft=Math.max(0,Math.min(ie,W.scrollWidth-W.clientWidth)),W.scrollTop=Math.max(0,Math.min(re,W.scrollHeight-W.clientHeight))},P=()=>{const _=C.current;if(!_)return;const W=w.current||1;_.querySelectorAll(".mind-map-ltr-children").forEach(K=>{const F=[...K.children].map(ie=>ie.querySelector(":scope > .mind-map-ltr-node-row")).filter(Boolean);if(!F.length)return;const q=K.getBoundingClientRect(),U=F[0].getBoundingClientRect(),G=F[F.length-1].getBoundingClientRect(),Y=(U.top+U.bottom)/2,Z=(G.top+G.bottom)/2;K.style.setProperty("--mind-map-connector-top",`${Math.max(0,(Y-q.top)/W)}px`),K.style.setProperty("--mind-map-connector-height",`${Math.max(0,(Z-Y)/W)}px`)})},A=()=>{const _=C.current;!_||R.current||(E.current=new Map([..._.querySelectorAll("[data-mind-map-node]")].map(W=>[W.dataset.mindMapNode,W.getBoundingClientRect()])))};o.useLayoutEffect(()=>{P()},[t,r]),o.useLayoutEffect(()=>{T()},[t.id]),o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const W=i!==I.current;I.current=i;const K=[..._.querySelectorAll("[data-mind-map-node]")],F=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()])),q=E.current,U=new Map(K.map(X=>{const ee=X.dataset.mindMapNode;return[ee,X.style.transform?F.get(ee):q.get(ee)||F.get(ee)]}));cancelAnimationFrame(O.current),O.current=0,window.clearTimeout(N.current),N.current=0,R.current=!1,K.forEach(X=>{X.style.transition="none",X.style.transform="",X.style.opacity=""}),_.offsetHeight;const G=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()]));let Y=G;if(W&&(R.current=!0,T(G),Y=new Map(K.map(X=>[X.dataset.mindMapNode,X.getBoundingClientRect()]))),!q.size){R.current=!1,E.current=Y;return}const Z=new Map(K.map(X=>{const ee=X.dataset.mindMapNode,ne=U.get(ee),Q=G.get(ee);return[ee,ne&&Q?{x:(ne.left-Q.left)/(w.current||1),y:(ne.top-Q.top)/(w.current||1)}:null]})),ie=[...Z.values()].filter(X=>X&&(Math.abs(X.x)>=1||Math.abs(X.y)>=1));if(!(ie.length<=40&&ie.every(X=>Math.max(Math.abs(X.x),Math.abs(X.y))<=900))){R.current=!1,E.current=Y;return}return R.current=ie.length>0,K.forEach(X=>{const ee=U.get(X.dataset.mindMapNode),ne=G.get(X.dataset.mindMapNode);if(!ee||!ne){X.style.opacity="1";return}const Q=Z.get(X.dataset.mindMapNode),J=Q.x,ae=Q.y;Math.abs(J)<1&&Math.abs(ae)<1||(X.style.transition="none",X.style.transform=`translate(${J}px, ${ae}px)`)}),K.forEach(X=>void X.offsetWidth),O.current=requestAnimationFrame(()=>{K.forEach(X=>{const ee=U.get(X.dataset.mindMapNode);X.style.transition="transform 380ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease",X.style.transform="",ee||(X.style.opacity="1")}),O.current=0,N.current=window.setTimeout(()=>{R.current=!1,A(),N.current=0},fve+16)}),E.current=Y,()=>{cancelAnimationFrame(O.current),O.current=0,window.clearTimeout(N.current),N.current=0,R.current=!1}},[t]),o.useLayoutEffect(()=>{const _=C.current,W=y.current;if(!_||!W||W.toZoom!==r)return;const K=_.getBoundingClientRect(),F=_.querySelector(".mind-map-canvas-stage"),q=F==null?void 0:F.getBoundingClientRect(),U=W.stageX===null||!q?Ll+(W.x+_.scrollLeft-Ll)*(r/W.fromZoom)-W.x:_.scrollLeft+q.left+W.stageX*r-(K.left+W.x),G=W.stageY===null||!q?Ll+(W.y+_.scrollTop-Ll)*(r/W.fromZoom)-W.y:_.scrollTop+q.top+W.stageY*r-(K.top+W.y);_.scrollLeft=Math.max(0,Math.min(U,_.scrollWidth-_.clientWidth)),_.scrollTop=Math.max(0,Math.min(G,_.scrollHeight-_.clientHeight)),y.current=null},[r]),o.useLayoutEffect(()=>{if(a===0)return;const _=requestAnimationFrame(()=>T());return()=>cancelAnimationFrame(_)},[a]),o.useEffect(()=>{const _=F=>{F.key==="Meta"&&($.current.meta=!0),F.key==="Control"&&($.current.ctrl=!0)},W=F=>{F.key==="Meta"&&($.current.meta=!1),F.key==="Control"&&($.current.ctrl=!1)},K=()=>{$.current={meta:!1,ctrl:!1}};return window.addEventListener("keydown",_),window.addEventListener("keyup",W),window.addEventListener("blur",K),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",W),window.removeEventListener("blur",K)}},[]);const L=o.useCallback(_=>{var ie,re;const W=C.current;if(!W||!W.contains(_.target))return;const K=_.metaKey||((ie=_.getModifierState)==null?void 0:ie.call(_,"Meta"))||$.current.meta,F=_.ctrlKey||((re=_.getModifierState)==null?void 0:re.call(_,"Control"))||$.current.ctrl;if(!K&&!F||!_.deltaY)return;_.preventDefault(),_.returnValue=!1,_.stopPropagation();const q=W.getBoundingClientRect(),U=w.current,G=_.deltaMode===1?_.deltaY*16:_.deltaY,Y=Math.min(Math.abs(G),48)*Math.sign(G),Z=Math.max(.5,Math.min(2,Number((U*Math.pow(1.1,-Y/24)).toFixed(3))));Z!==U&&(y.current=j(W,U,_.clientX-q.left,_.clientY-q.top),y.current.toZoom=Z,w.current=Z,h(Z))},[h]);o.useEffect(()=>(window.addEventListener("wheel",L,{capture:!0,passive:!1}),()=>window.removeEventListener("wheel",L,{capture:!0})),[L]);const D=t.root,V=D.children||[],z=D.color||"#6555e8",B=Rh(D);return s.jsx("div",{className:`mind-map-canvas-scroll ${c?"is-panning":""}`,ref:C,onPointerCancel:m,onPointerDown:M,onPointerMove:f,onPointerUp:m,onScroll:A,children:s.jsx("div",{className:"mind-map-canvas-world",style:{height:`${dve*r+Ll*2}px`,width:`${uve*r+Ll*2}px`},children:s.jsxs("div",{className:"mind-map-canvas-stage is-left-to-right",style:{marginLeft:`${Ll}px`,marginTop:`${Ll}px`,zoom:r},children:[s.jsxs("div",{className:"mind-map-ltr-diagram",children:[s.jsx("div",{className:"mind-map-ltr-root-column",children:s.jsxs("button",{className:`mind-map-root-node ${n===D.id?"is-selected":""} ${D.tested&&!B?"is-tested":""}${B?" is-comment is-comment-marker":""}`,"data-mind-map-node":D.id,onClick:()=>v(D.id),style:{"--node-color":z},type:"button",children:[s.jsx("span",{className:"mind-map-root-text",children:D.text||"Untitled idea"}),s.jsxs("span",{className:"mind-map-root-count",children:[TS(D)-1," connected ideas"]}),s.jsx(Y7,{jiraIssues:b,node:D})]})}),!D.collapsed&&V.length>0&&s.jsx("div",{className:`mind-map-ltr-children mind-map-ltr-root-children${B?" is-comment-children":""}`,style:{"--mind-map-ltr-node-inset":`${F7(V)}px`},children:V.map(_=>s.jsx(J7,{node:_,onSelect:v,onToggle:p,selectedId:n,jiraIssues:b,commented:B},_.id))})]}),!V.length&&s.jsx("div",{className:"mind-map-canvas-empty",children:s.jsx(Do,{type:"secondary",children:"Add a branch from the inspector to start mapping this idea."})})]})})})});function pve({mindMapId:e,onNavigate:t}){const{message:n}=_r.useApp(),r=o.useRef(null),[a,i]=o.useState(null),[c,u]=o.useState(null),[f,m]=o.useState(""),[v,p]=o.useState(!0),[h,b]=o.useState(1),[x,C]=o.useState(0),[y,w]=o.useState(0),[$,E]=o.useState(!1),[O,N]=o.useState(!1),[R,I]=o.useState(""),[j,M]=o.useState(!1),[T,P]=o.useState(""),[A,L]=o.useState(!1),[D,V]=o.useState(!1),[z,B]=o.useState([]),[_,W]=o.useState(!0),[K,F]=o.useState(!1),q=o.useRef(null),U=o.useRef(null),G=o.useRef(null),Y=o.useRef(!1),Z=o.useRef(null),ie=o.useRef(Promise.resolve());o.useEffect(()=>{let we=!0;return p(!0),i(null),Si.get(e).then(Se=>{we&&(i(Se),u(Se.root.id),m(Se.title||""),b(1),C(0),E(!1),q.current=null)}).catch(Se=>{we&&n.error(`Could not load mind map: ${Se.message||"unknown error"}`)}).finally(()=>{we&&p(!1)}),()=>{we=!1}},[e]),o.useEffect(()=>{a&&(ju(a.root,c)||u(a.root.id))},[a,c]),o.useEffect(()=>{var we,Se;Y.current&&(Y.current=!1,(Se=(we=G.current)==null?void 0:we.focus)==null||Se.call(we))},[c]),o.useEffect(()=>{if(!K)return;const we=Se=>{Se.key==="Escape"&&F(!1)};return window.addEventListener("keydown",we),()=>window.removeEventListener("keydown",we)},[K]);const re=o.useMemo(()=>ju(a==null?void 0:a.root,c)||(a==null?void 0:a.root),[a,c]),X=o.useMemo(()=>X7(a==null?void 0:a.root,c),[a,c]),ee=o.useMemo(()=>im(a==null?void 0:a.root,c),[a,c]),ne=(a==null?void 0:a.jiraIssues)||[],Q=o.useMemo(()=>{const we=new Set,Se=ke=>{((ke==null?void 0:ke.jiraKeys)||[]).forEach(Ye=>we.add(Ye)),((ke==null?void 0:ke.children)||[]).forEach(Se)};return Se(a==null?void 0:a.root),we},[a]),J=o.useMemo(()=>((re==null?void 0:re.jiraKeys)||[]).map(we=>ne.find(Se=>Se.key===we)||{key:we,summary:"Summary unavailable",url:""}),[ne,re]),ae=o.useMemo(()=>{if(!a||!re||!ee)return[];const we=new Set;K7(re,we);const Se=q7(a.root,we);return Se?[Se]:[]},[a,re,ee]),se=we=>{if(!a)return;const Se={...we(a),updatedAt:new Date().toISOString()};i(Se),ie.current=ie.current.catch(()=>{}).then(()=>Si.update(Se.id,Se)).catch(()=>new Promise((ke,Ye)=>{window.setTimeout(()=>{Si.update(Se.id,Se).then(ke).catch(Ye)},120)})).catch(ke=>n.error(`Could not save mind map: ${ke.message||"unknown error"}`))},te=()=>{const we=f.trim()||"Untitled mind map";m(we),se(Se=>({...Se,title:we,root:Se.root.text===Se.title?{...Se.root,text:we}:Se.root}))},de=we=>{re&&se(Se=>({...Se,root:Nu(Se.root,re.id,ke=>({...ke,...we}))}))},ge=()=>{if(!re||X)return;const we=!re.tested;se(Se=>({...Se,root:Nu(Se.root,re.id,ke=>W7(ke,we))}))},Oe=(we=0)=>({id:`node-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`,text:"New idea",color:xg[we%xg.length],tested:!1,children:[]}),Me=()=>{if(!re)return;const we=Oe((re.children||[]).length);de({children:[...re.children||[],we],collapsed:!1}),Y.current=!0,u(we.id)},Ce=()=>{if(!re||!ee){Me();return}const we=Oe(ee.children.findIndex(Se=>Se.id===re.id)+1);se(Se=>({...Se,root:ave(Se.root,re.id,we)})),Y.current=!0,u(we.id)},me=()=>{!re||!ee||!im(a==null?void 0:a.root,ee.id)||se(we=>({...we,root:ove(we.root,re.id)}))};o.useEffect(()=>{const we=Se=>{if(!(!a||!re||Se.defaultPrevented||Se.isComposing||Se.repeat)&&!(mve(Se.target)||Se.altKey||Se.ctrlKey||Se.metaKey)&&!(Se.key!=="Enter"&&Se.key!=="Tab")){if(Se.preventDefault(),Se.key==="Tab"){Se.shiftKey?me():Me();return}Ce()}};return window.addEventListener("keydown",we),()=>window.removeEventListener("keydown",we)},[a,re,ee]);const ye=()=>{if(!re||!ee)return;const we=ee.id;se(Se=>({...Se,root:Oh(Se.root,re.id)})),u(we),n.success("Idea removed")},ve=()=>{ee&&(B(G7(a.root,ee.id)||[]),V(!0))},he=()=>{const we=z[z.length-1];if(!re||!ee||!we)return;if($8(a.root,re.id,we)===a.root){n.error("Please choose another valid parent node.");return}se(ke=>({...ke,root:$8(ke.root,re.id,we)})),V(!1),n.success(`Moved “${re.text||"idea"}” successfully.`)},Ee=()=>{N(!0)},Le=async()=>{const we=nve(R);if(!we){n.error("Enter a Jira No such as PROJ-123 or a Jira issue link.");return}M(!0);try{const Se=await Si.resolveJiraIssue(R);if(ne.some(ke=>ke.key===Se.key)){n.info(`${Se.key} is already in this map.`);return}se(ke=>({...ke,jiraIssues:[...ke.jiraIssues||[],Se]})),I(""),n.success(`${Se.key} added to this map.`)}catch(Se){n.error(Se.message||`Could not load ${we.key} from Jira.`)}finally{M(!1)}},Be=we=>{se(Se=>({...Se,jiraIssues:(Se.jiraIssues||[]).filter(ke=>ke.key!==we),root:U7(Se.root,we)}))},Ve=async we=>{P(we.key);try{const Se=await Si.resolveJiraIssue(we.key);se(ke=>({...ke,jiraIssues:(ke.jiraIssues||[]).map(Ye=>Ye.key===we.key?{...Ye,summary:Se.summary,url:Se.url||Ye.url}:Ye)})),n.success(`${we.key} summary refreshed`)}catch(Se){n.error(Se.message||`Could not refresh ${we.key}.`)}finally{P("")}},qe=we=>{de({jiraKeys:((re==null?void 0:re.jiraKeys)||[]).filter(Se=>Se!==we)})},$e=(we,Se)=>{var Ye;if(we.button!==0)return;const ke=we.currentTarget;ke&&(we.preventDefault(),(Ye=ke.setPointerCapture)==null||Ye.call(ke,we.pointerId),q.current={canvas:ke,pointerId:we.pointerId,startX:we.clientX,startY:we.clientY,startScrollLeft:ke.scrollLeft,startScrollTop:ke.scrollTop,moved:!1},Se&&u(Se),E(!0))},je=we=>{const Se=q.current;if(!Se||Se.pointerId!==we.pointerId)return;const ke=Se.canvas||we.currentTarget;!Se.moved&&Math.hypot(we.clientX-Se.startX,we.clientY-Se.startY)<3||(Se.moved=!0,ke.scrollLeft=Se.startScrollLeft-(we.clientX-Se.startX),ke.scrollTop=Se.startScrollTop-(we.clientY-Se.startY))},Ae=we=>{var ke,Ye,ot,st;const Se=q.current;!Se||we.pointerId!==void 0&&Se.pointerId!==we.pointerId||((Ye=(ke=Se.canvas)==null?void 0:ke.releasePointerCapture)==null||Ye.call(ke,Se.pointerId),(st=(ot=we.currentTarget)==null?void 0:ot.releasePointerCapture)==null||st.call(ot,Se.pointerId),q.current=null,E(!1))};o.useEffect(()=>{const we=Se=>Ae(Se);return window.addEventListener("pointerup",we),window.addEventListener("pointercancel",we),window.addEventListener("blur",we),()=>{window.removeEventListener("pointerup",we),window.removeEventListener("pointercancel",we),window.removeEventListener("blur",we)}},[]);const De=we=>{se(Se=>({...Se,root:Nu(Se.root,we,ke=>({...ke,collapsed:!ke.collapsed}))}))},We=(we,Se=!1)=>{se(ke=>({...ke,root:V7(ke.root,we,!0)})),Se&&w(ke=>ke+1)},Ie=async we=>{if(a)try{if(we==="xmind"){const{mindMapToXmindBlob:Se}=await Vu(async()=>{const{mindMapToXmindBlob:Ye}=await import("./xmindAdapter-BJOBrMOj.js");return{mindMapToXmindBlob:Ye}},[]),ke=await Se(a);Ou(`${a.title||"mind-map"}.xmind`,ke,"application/octet-stream"),n.success("XMind exported");return}if(we==="markdown"){Ou(`${a.title||"mind-map"}.md`,_7(a),"text/markdown;charset=utf-8"),n.success("Markdown exported");return}Ou(`${a.title||"mind-map"}.json`,`${JSON.stringify(a,null,2)}
|
|
590
|
+
`,"application/json;charset=utf-8"),n.success("JSON exported")}catch(Se){n.error(`Could not export this map: ${Se.message||"unknown error"}`)}},Pe=async we=>{var ke;const Se=(ke=we.target.files)==null?void 0:ke[0];if(we.target.value="",!(!Se||!a))try{const Ye=Se.name.toLowerCase().endsWith(".xmind"),ot=Ye?null:await Se.text(),st=Se.name.toLowerCase().endsWith(".json"),vt=Ye?await(async()=>{const{xmindBlobToMindMap:_e}=await Vu(async()=>{const{xmindBlobToMindMap:lt}=await import("./xmindAdapter-BJOBrMOj.js");return{xmindBlobToMindMap:lt}},[]);return _e(await Se.arrayBuffer(),s1(Se.name))})():st?MS(JSON.parse(ot),s1(Se.name)):L7(ot,s1(Se.name)),Tt={...vt,id:a.id,title:vt.title||a.title,createdAt:a.createdAt,updatedAt:new Date().toISOString()};await ie.current.catch(()=>{});const Te=await Si.update(a.id,Tt);i(Te),u(Tt.root.id),m(Te.title),n.success(`${Ye?"XMind":st?"JSON":"Markdown"} imported into this map`)}catch(Ye){n.error(`Could not import this file: ${Ye.message||"invalid format"}`)}},Fe=async()=>{if(a!=null&&a.filePath)try{await Jn.openFolder(a.filePath)}catch(we){n.error(`Could not open map folder: ${we.message||"unknown error"}`)}},Xe=async()=>{if(a!=null&&a.filePath)try{await navigator.clipboard.writeText(a.filePath),n.success("Mind map file path copied")}catch(we){n.error(`Could not copy file path: ${we.message||"clipboard unavailable"}`)}};return v?s.jsx("div",{className:"mind-map-missing",children:s.jsx(Cr,{tip:"Loading mind map..."})}):a?s.jsxs("div",{className:`mind-map-detail-page${K?" is-canvas-fullscreen":""}`,children:[s.jsxs("div",{className:"mind-map-detail-toolbar",children:[s.jsxs("div",{className:"mind-map-detail-heading",children:[s.jsx(Re,{"aria-label":"Back to mind maps",className:"mind-map-back-button",icon:s.jsx(os,{}),onClick:()=>t("mind-maps"),type:"text"}),s.jsx("div",{className:"mind-map-breadcrumbs",children:s.jsx("button",{onClick:()=>t("mind-maps"),type:"button",children:"Mind maps"})}),s.jsx(wt,{"aria-label":"Mind map title",className:"mind-map-title-input",onBlur:te,onChange:we=>m(we.target.value),onPressEnter:we=>we.currentTarget.blur(),value:f})]}),s.jsxs(at,{className:"mind-map-detail-actions",size:8,children:[s.jsx("input",{ref:r,accept:".xmind,.json,.md,.markdown,.txt",className:"mind-map-hidden-input",onChange:Pe,type:"file"}),s.jsx(Re,{icon:s.jsx(jS,{}),onClick:()=>{var we;return(we=r.current)==null?void 0:we.click()},children:"Import"}),s.jsx(rl,{menu:{items:[{key:"xmind",icon:s.jsx(oi,{}),label:"Export XMind"},{key:"json",icon:s.jsx(oi,{}),label:"Export JSON"},{key:"markdown",icon:s.jsx(vi,{}),label:"Export Markdown"}],onClick:({key:we})=>Ie(we)},trigger:["click"],children:s.jsx(Re,{icon:s.jsx(oi,{}),children:"Export"})}),s.jsx(Re,{"aria-label":"Mind map settings",icon:s.jsx(is,{}),onClick:Ee,children:"Settings"}),s.jsx(Re,{icon:s.jsx(NS,{}),onClick:()=>n.success("All changes saved to the data file"),children:"Save"})]})]}),s.jsxs("div",{className:`mind-map-detail-layout${_?"":" is-inspector-collapsed"}`,children:[s.jsxs(At,{className:"mind-map-canvas-card",styles:{body:{padding:0}},children:[s.jsxs("div",{className:"mind-map-canvas-header",children:[s.jsxs("div",{className:"mind-map-canvas-heading",children:[s.jsx(Do,{className:"mind-map-eyebrow",children:"CANVAS"}),s.jsxs("div",{className:"mind-map-canvas-title-row",children:[s.jsx(E8,{level:3,children:"Map canvas"}),s.jsx(Do,{className:"mind-map-canvas-tip",type:"secondary",children:"Tip: keep each branch short and concrete."})]})]}),s.jsxs(at,{className:"mind-map-canvas-controls",size:12,children:[s.jsx(un,{title:K?"Exit full screen":"Enter full screen",children:s.jsx(Re,{"aria-label":K?"Exit canvas full screen":"Enter canvas full screen",icon:K?s.jsx(y7,{}):s.jsx(x7,{}),onClick:()=>{F(we=>!we),C(we=>we+1)},type:"text"})}),s.jsx(un,{title:_?"Collapse inspector":"Show inspector",children:s.jsx(Re,{"aria-label":_?"Collapse inspector":"Show inspector",className:"mind-map-inspector-control",icon:_?s.jsx(Iue,{}):s.jsx(kue,{}),onClick:()=>W(we=>!we),type:"text"})}),s.jsxs(at,{className:"mind-map-tree-actions",size:4,children:[s.jsx(un,{title:"Expand all",children:s.jsx(Re,{icon:s.jsx(n7,{}),onClick:()=>We(!1),children:"Expand all"})}),s.jsx(un,{title:"Collapse all branches",children:s.jsx(Re,{icon:s.jsx(t7,{}),onClick:()=>We(!0,!0),children:"Collapse all"})})]}),s.jsxs(at,{className:"mind-map-zoom-control",size:4,children:[s.jsx(un,{title:"Zoom out",children:s.jsx(Re,{"aria-label":"Zoom out",disabled:h<=.5,icon:s.jsx(gM,{}),onClick:()=>{var we;return(we=U.current)==null?void 0:we.zoomAt(Math.max(.5,Number((h-.1).toFixed(2))))},type:"text"})}),s.jsxs("button",{"aria-label":"Reset canvas view",className:"mind-map-zoom-label",onClick:()=>{b(1),C(we=>we+1)},type:"button",children:[Math.round(h*100),"%"]}),s.jsx(un,{title:"Zoom in",children:s.jsx(Re,{"aria-label":"Zoom in",disabled:h>=2,icon:s.jsx(pM,{}),onClick:()=>{var we;return(we=U.current)==null?void 0:we.zoomAt(Math.min(2,Number((h+.1).toFixed(2))))},type:"text"})})]})]})]}),s.jsx(vve,{ref:U,isPanning:$,map:a,onCanvasPointerDown:$e,onCanvasPointerMove:je,onCanvasPointerUp:Ae,onSelect:u,onToggle:De,onZoomChange:b,recenterLayoutToken:y,resetViewToken:x,selectedId:c,zoom:h,jiraIssues:ne}),s.jsx("div",{className:"mind-map-canvas-footer",children:s.jsxs(Do,{type:"secondary",children:[s.jsx("span",{className:"mind-map-key",children:"⌘"})," Click to select ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ",s.jsx("span",{className:"mind-map-key",children:"Enter"})," sibling ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ",s.jsx("span",{className:"mind-map-key",children:"Tab"})," child ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," Drag canvas to pan ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," ⌘ + Scroll to zoom ",s.jsx("span",{className:"mind-map-footer-dot",children:"·"})," Changes save automatically"]})})]}),s.jsx(At,{className:"mind-map-inspector-card",children:s.jsxs("div",{className:"mind-map-inspector-shell",children:[s.jsxs("div",{className:"mind-map-inspector-header",children:[s.jsxs("div",{children:[s.jsx(Do,{className:"mind-map-eyebrow",children:"INSPECTOR"}),s.jsxs("div",{className:"mind-map-inspector-title-row",children:[s.jsx(E8,{level:3,children:"Selected idea"}),(re==null?void 0:re.id)===a.root.id?s.jsx(Nt,{color:"purple",children:"Root"}):null,X?s.jsx(Nt,{className:"mind-map-comment-tag",children:"Comment"}):null]})]}),(re==null?void 0:re.id)!==a.root.id&&s.jsx(ia,{cancelText:"Cancel",description:"This will also remove all child ideas.",okButtonProps:{danger:!0},okText:"Delete",onConfirm:ye,placement:"topRight",title:"Delete this idea?",children:s.jsx(Re,{"aria-label":"Delete selected idea",className:"mind-map-inline-delete",danger:!0,icon:s.jsx(Kn,{}),type:"text"})})]}),s.jsx("div",{className:"mind-map-inspector-content",children:re&&s.jsxs("div",{className:"mind-map-inspector-fields",children:[s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Content"}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-text",children:"Idea"}),s.jsx(wt.TextArea,{autoSize:{minRows:2,maxRows:8},id:"mind-map-node-text",onChange:we=>de({text:we.target.value}),placeholder:"Name this idea",ref:G,value:re.text}),ee&&s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-edge-label",children:"Line label"}),s.jsx(wt,{id:"mind-map-node-edge-label",onChange:we=>de({edgeLabel:we.target.value||void 0}),placeholder:"Label this connection",value:re.edgeLabel||""})]}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-notes",children:"Notes"}),s.jsx(wt.TextArea,{autoSize:{minRows:4,maxRows:8},id:"mind-map-node-notes",onChange:we=>de({notes:we.target.value}),placeholder:"Add a note or a prompt...",value:re.notes||""})]}),!X&&s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Test status"}),s.jsxs("div",{className:"mind-map-tested-field",children:[s.jsxs("div",{children:[s.jsx("span",{className:"mind-map-field-label",children:"Tested"}),s.jsx(Do,{type:"secondary",children:"Updates this node and all child nodes."})]}),s.jsxs("div",{className:"mind-map-tested-control",children:[s.jsx("span",{className:"mind-map-tested-state",children:re.tested?"Tested":"Pending"}),s.jsx(Oi,{checked:!!re.tested,onChange:ge})]})]})]}),s.jsxs("section",{className:"mind-map-inspector-section",children:[s.jsx("div",{className:"mind-map-inspector-section-title",children:"Jira"}),s.jsx("label",{className:"mind-map-field-label",htmlFor:"mind-map-node-jira",children:"Jira tags"}),J.length>0&&s.jsx("div",{"aria-label":"Selected Jira issues",className:"mind-map-selected-jira-list",children:J.map(we=>s.jsxs("div",{className:"mind-map-selected-jira-item",children:[s.jsxs("button",{className:"mind-map-selected-jira-open",disabled:!we.url,onClick:()=>ir(we.url),title:we.url?"Open in Jira":"Jira link unavailable",type:"button",children:[s.jsx(Nt,{color:"blue",children:we.key}),s.jsx("span",{className:"mind-map-selected-jira-summary",children:we.summary||"Summary unavailable"}),we.url&&s.jsx(wi,{})]}),s.jsx("button",{"aria-label":`Untag ${we.key}`,className:"mind-map-selected-jira-untag",onClick:()=>qe(we.key),title:`Untag ${we.key}`,type:"button",children:s.jsx(So,{})})]},we.key))}),s.jsx(Tn,{allowClear:!0,className:"mind-map-node-jira-select",filterOption:(we,Se)=>`${(Se==null?void 0:Se.value)||""} ${(Se==null?void 0:Se.summary)||""}`.toLowerCase().includes(we.toLowerCase()),id:"mind-map-node-jira",mode:"multiple",onChange:we=>{de({jiraKeys:we}),L(!1),requestAnimationFrame(()=>{var Se,ke;return(ke=(Se=Z.current)==null?void 0:Se.blur)==null?void 0:ke.call(Se)})},options:ne.map(we=>({label:s.jsxs("div",{className:"mind-map-jira-select-option",children:[s.jsx("span",{className:"mind-map-jira-select-option-key",children:we.key}),s.jsx("span",{className:"mind-map-jira-select-option-summary",children:we.summary||"Summary unavailable"})]}),summary:we.summary||"",value:we.key})),maxTagCount:0,maxTagPlaceholder:"Select Jira issues",onOpenChange:L,placeholder:ne.length?"Select Jira issues":"Add Jira issues in Settings",showSearch:!0,open:A,ref:Z,value:re.jiraKeys||[]})]})]})}),s.jsxs("div",{className:"mind-map-inspector-actions",children:[s.jsx(un,{title:"Add a child idea (Tab)",children:s.jsx(Re,{block:!0,className:"mind-map-add-child",icon:s.jsx(Gn,{}),onClick:Me,type:"primary",children:"Add child idea"})}),ee&&s.jsx(Re,{block:!0,className:"mind-map-move-button",icon:s.jsx(Hue,{}),onClick:ve,children:"Move idea"})]})]})})]}),s.jsxs(QI,{className:"mind-map-settings-drawer",onClose:()=>N(!1),open:O,title:"Mind map settings",width:520,children:[s.jsxs("div",{className:"mind-map-settings-section",children:[s.jsx(Do,{className:"mind-map-settings-section-title",children:"File location"}),s.jsx(Do,{className:"mind-map-settings-description",children:"This mind map is stored locally in the following file."}),s.jsxs(at.Compact,{block:!0,className:"mind-map-file-location-row",children:[s.jsx(wt,{disabled:!a.filePath,prefix:s.jsx(Re,{"aria-label":"Open mind map folder",className:"mind-map-file-location-folder",disabled:!a.filePath,icon:s.jsx(oa,{}),onClick:Fe,type:"text"}),readOnly:!0,value:a.filePath||"File location unavailable"}),s.jsx(Re,{disabled:!a.filePath,icon:s.jsx(xo,{}),onClick:Xe,children:"Copy"})]})]}),s.jsxs("div",{className:"mind-map-settings-section",children:[s.jsx(Do,{className:"mind-map-settings-section-title",children:"Jira issues"}),s.jsx(Do,{className:"mind-map-settings-description",children:"Add issues to this map by Jira No or a Jira issue link, then tag them from the selected node inspector."}),s.jsxs(at.Compact,{block:!0,className:"mind-map-jira-add-row",children:[s.jsx(wt,{onChange:we=>I(we.target.value),onPressEnter:Le,placeholder:"PROJ-123 or https://.../browse/PROJ-123",value:R}),s.jsx(Re,{loading:j,onClick:Le,type:"primary",children:"Add"})]}),s.jsx("div",{className:"mind-map-jira-list",children:ne.length?ne.map(we=>s.jsxs("div",{className:`mind-map-jira-list-item ${we.url?"is-clickable":""} ${Q.has(we.key)?"is-tagged":""}`,onClick:()=>we.url&&ir(we.url),onKeyDown:Se=>{Se.target!==Se.currentTarget||!we.url||(Se.key==="Enter"||Se.key===" ")&&(Se.preventDefault(),ir(we.url))},role:we.url?"link":void 0,tabIndex:we.url?0:void 0,children:[s.jsx("div",{className:"mind-map-jira-list-item-main",children:s.jsxs("div",{className:"mind-map-jira-list-item-title",children:[s.jsx(Nt,{color:"blue",children:we.key}),s.jsx(Do,{ellipsis:{tooltip:!0},children:we.summary||"Summary unavailable"})]})}),s.jsxs("div",{className:"mind-map-jira-list-item-delete",onClick:Se=>Se.stopPropagation(),children:[s.jsx(Re,{"aria-label":`Refresh summary for ${we.key}`,className:"mind-map-jira-refresh",disabled:!!T,icon:s.jsx(yo,{spin:T===we.key}),onClick:()=>void Ve(we),title:`Refresh summary for ${we.key}`,type:"text"}),s.jsx(ia,{cancelText:"Cancel",description:"Existing node tags for this issue will also be removed.",okButtonProps:{danger:!0},okText:"Remove",onConfirm:()=>Be(we.key),placement:"left",title:`Remove ${we.key}?`,children:s.jsx(Re,{"aria-label":`Remove ${we.key}`,danger:!0,icon:s.jsx(Kn,{}),type:"text"})})]})]},we.id||we.key)):s.jsx(Qt,{className:"mind-map-jira-empty",description:"No Jira issues added yet.",image:Qt.PRESENTED_IMAGE_SIMPLE})})]})]}),s.jsxs(xn,{cancelText:"Cancel",okText:"Move",onCancel:()=>V(!1),onOk:he,open:D,title:`Move “${(re==null?void 0:re.text)||"idea"}”`,children:[s.jsx(Do,{type:"secondary",children:"Choose the node that should become the new parent. The entire subtree will move with it."}),s.jsx(cl,{changeOnSelect:!0,className:"mind-map-move-select",onChange:B,options:ae,placeholder:"Select a parent node",showSearch:!0,value:z})]})]}):s.jsxs("div",{className:"mind-map-missing",children:[s.jsx(Qt,{description:"This mind map could not be found."}),s.jsx(Re,{onClick:()=>t("mind-maps"),children:"Back to mind maps"})]})}const{Content:gve,Sider:hve}=ns,{Title:j8,Text:Bs}=Nn,N8={dark:"#6555e8",light:"#dbeafe"},bve="var(--db-font-sans)",Q7=["overview","launcher","clipboard","ports","image-compress","json-to-typescript","jira-filters","todo-list","memos","mind-maps","postman","bookmark-sync","file-organizer","branch-sync","package-upgrade","package-versions","presentation-plan","presentation-view","settings","dev-configurations","errors"],Z7=e=>{if(e==="mind-maps"||e==="mind-maps/")return{page:"mind-maps",mindMapId:null};if(e.startsWith("mind-maps/")){const t=e.slice(10).split("?")[0];return t?{page:"mind-maps",mindMapId:decodeURIComponent(t)}:null}return null},yve=()=>{const t=(window.location.hash||"#/overview").slice(2),n=Z7(t);return n||(t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:t.startsWith("pr-review")?{page:"pr-review",pluginId:null}:t==="pr-conflicts"||t.startsWith("pr-conflicts?")?{page:"pr-conflicts",pluginId:null}:t.startsWith("pr-conflict")?{page:"pr-conflict",pluginId:null}:t.startsWith("branch-sync")?{page:"branch-sync",pluginId:null}:t==="home"?{page:"overview",pluginId:null}:Q7.includes(t)?{page:t,pluginId:null}:{page:"overview",pluginId:null})};function xve({theme:e,onThemeChange:t}){var ye;const{message:n}=_r.useApp(),r=yve(),[a,i]=o.useState([]),[c,u]=o.useState(new Set),[f,m]=o.useState({}),[v,p]=o.useState([]),[h,b]=o.useState(!0),[x,C]=o.useState(null),[y,w]=o.useState(!1),[$,E]=o.useState(!1),[O,N]=o.useState([]),[R,I]=o.useState([]),[j,M]=o.useState(r.page),[T,P]=o.useState(r.mindMapId||null),[A,L]=o.useState(()=>{var ve;return((ve=window.matchMedia)==null?void 0:ve.call(window,"(max-width: 991.98px)").matches)??!1}),[D,V]=o.useState(null),[z,B]=o.useState(!1),[_,W]=o.useState(!1),[K,F]=o.useState(""),[q,U]=o.useState(null),[G,Y]=o.useState(!1),[Z,ie]=o.useState(r.pluginId?{id:r.pluginId,name:"Plugin"}:null),[re,X]=o.useState(null),[ee,ne]=o.useState(""),Q=async({showLoading:ve=!1}={})=>{ve&&b(!0);try{const[he,Ee,Le]=await Promise.all([Or.list(),Or.running(),Eu.list().catch(()=>[])]);i(he),p(Array.isArray(Le)?Le:[]),Array.isArray(Ee)?(u(new Set(Ee)),m({})):(u(new Set((Ee==null?void 0:Ee.running)||[])),m((Ee==null?void 0:Ee.errorCounts)||{})),w(!0),C(null),E(!0)}catch(he){C((he==null?void 0:he.message)||"Unable to load service and runtime data."),E(!1)}finally{ve&&b(!1)}},J=async(ve=!1)=>{B(!0);try{V(await Vj.status(ve))}catch{V(he=>he||{currentVersion:su.version,latestVersion:su.version,updateAvailable:!1,releases:[],sourceUnavailable:!0})}finally{B(!1)}},ae=()=>Q({showLoading:!0}),se=()=>{U(null),Y(!0)},te=()=>{const ve=q==null?void 0:q.success;Y(!1),ve&&window.location.reload()},de=async(ve="latest")=>{W(!0),F(ve),U(null);try{const he=await Vj.selfUpdate(ve);U({success:!0,message:he.message}),V(Ee=>Ee&&{...Ee,currentVersion:ve==="latest"?Ee.latestVersion:ve,updateAvailable:ve==="latest"?!1:ve!==Ee.latestVersion})}catch(he){U({success:!1,message:he.message||"DevBuddy could not be updated."})}finally{W(!1)}},ge=async ve=>{if(ve){ne("Loading plugin…");try{ne(ve.view?await(await fetch(ve.view)).text():"This plugin does not provide a view yet.")}catch{ne("Failed to load the plugin view.")}}};o.useEffect(()=>{Promise.all([Q({showLoading:!0}),Bde.list().then(N),Ks.list().then(I)]).catch(ve=>n.error(ve.message)),J()},[]),o.useEffect(()=>{const ve=()=>{const Ee=(window.location.hash||"#/overview").slice(2),Le=Z7(Ee);if(Le){ie(null),X(null),M("mind-maps"),P(Le.mindMapId);return}if(Ee.startsWith("plugin:")){const Be=Ee.slice(7),Ve=O.find(qe=>qe.id===Be);Ve?(X(null),M("plugin"),P(null),ie(Ve),ge(Ve)):O.length>0&&(window.location.hash="#/overview")}else if(Ee.startsWith("static:")){const Be=Ee.slice(7),Ve=R.find(qe=>String(qe.id)===String(Be));Ve?(ie(null),M("static-page"),P(null),X(Ve)):R.length>0&&(window.location.hash="#/overview")}else Ee.startsWith("logs/")?(ie(null),X(null),M("logs"),P(null)):["todo-list/archived","todo-archived"].includes(Ee)?(ie(null),X(null),M("todo-archived"),P(null)):Ee.startsWith("pr-review")?(ie(null),X(null),M("pr-review"),P(null)):Ee==="pr-conflicts"||Ee.startsWith("pr-conflicts?")?(ie(null),X(null),M("pr-conflicts"),P(null)):Ee.startsWith("pr-conflict")?(ie(null),X(null),M("pr-conflict"),P(null)):Ee.startsWith("branch-sync")?(ie(null),X(null),M("branch-sync"),P(null)):Ee==="home"||Q7.includes(Ee)?(ie(null),X(null),M(Ee==="home"?"overview":Ee),P(null)):window.location.hash="#/overview"};return window.addEventListener("hashchange",ve),window.location.hash?ve():window.location.hash="#/overview",()=>window.removeEventListener("hashchange",ve)},[O,R]),o.useEffect(()=>{const ve=Ee=>{var Le;(Ee.error||Ee.message)&&Eu.log({source:"Frontend",message:Ee.message||"Uncaught JavaScript Error",details:((Le=Ee.error)==null?void 0:Le.stack)||`${Ee.filename}:${Ee.lineno}:${Ee.colno}`}).catch(()=>{})},he=Ee=>{var Le,Be;Eu.log({source:"Frontend (Promise)",message:((Le=Ee.reason)==null?void 0:Le.message)||String(Ee.reason||"Unhandled Promise Rejection"),details:((Be=Ee.reason)==null?void 0:Be.stack)||String(Ee.reason)}).catch(()=>{})};return window.addEventListener("error",ve),window.addEventListener("unhandledrejection",he),()=>{window.removeEventListener("error",ve),window.removeEventListener("unhandledrejection",he)}},[]),o.useLayoutEffect(()=>{var ve;(ve=document.querySelector(".page"))==null||ve.scrollTo({top:0,left:0,behavior:"auto"})},[j,T,Z==null?void 0:Z.id,re==null?void 0:re.id]),o.useEffect(()=>{const ve=he=>{(he.metaKey||he.ctrlKey)&&he.shiftKey&&(he.key==="r"||he.key==="R"||he.code==="KeyR")&&(he.preventDefault(),he.stopPropagation())};return window.addEventListener("keydown",ve,!0),()=>window.removeEventListener("keydown",ve,!0)},[]),o.useEffect(()=>{if(h||!["overview","launcher","ports"].includes(j))return;const ve=setInterval(()=>{Q()},2e3);return()=>clearInterval(ve)},[j,h]);const Oe=o.useMemo(()=>{const ve=[...O.map(he=>({key:`plugin:${he.id}`,icon:s.jsx("span",{"aria-hidden":"true",children:he.icon||"✦"}),label:he.name||he.id})),...R.map(he=>({key:`static:${he.id}`,icon:s.jsx(ud,{}),label:he.name}))];return[{type:"group",label:"Run & Observe",children:[{key:"launcher",icon:s.jsx(ho,{}),label:"Launcher"},{key:"ports",icon:s.jsx(OS,{}),label:"Port Diagnostic"}]},{type:"group",label:"Plan & Review",children:[{key:"todo-list",icon:s.jsx(sc,{}),label:"To-Do"},{key:"memos",icon:s.jsx(vi,{}),label:"Memos"},{key:"mind-maps",icon:s.jsx(Uy,{}),label:"Mind Maps"},{key:"pr-review",icon:s.jsx(Eh,{}),label:"PR Review"},{key:"pr-conflicts",icon:s.jsx(vg,{}),label:"Resolve Conflicts"},{key:"jira-filters",icon:s.jsx(Lce,{}),label:"Jira Workspace"},{key:"presentation-plan",icon:s.jsx(Qce,{}),label:"Presentations"},{key:"branch-sync",icon:s.jsx(Bp,{}),label:"Branch Sync"},{key:"package-upgrade",icon:s.jsx(C7,{}),label:"Package Upgrade"},{key:"package-versions",icon:s.jsx(Cse,{}),label:"Package Versions"}]},{type:"group",label:"Utilities",children:[{key:"clipboard",icon:s.jsx(xo,{}),label:"Clipboard"},{key:"postman",icon:s.jsx(uc,{}),label:"Postman"},{key:"image-compress",icon:s.jsx(Fx,{}),label:"Image compression"},{key:"json-to-typescript",icon:s.jsx(Ea,{}),label:"JSON to TypeScript"},{key:"bookmark-sync",icon:s.jsx(rm,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:s.jsx(oa,{}),label:"Folder Organizer"}]},...ve.length>0?[{type:"group",label:"Extensions",children:ve}]:[]]},[O,R]),Me=({key:ve})=>{window.location.hash=`#/${ve}`},Ce=Z?`plugin:${Z.id}`:re?`static:${re.id}`:j==="todo-archived"?"todo-list":j,me=x&&!(h&&!y)?s.jsx(Tr,{type:y?"warning":"error",showIcon:!0,message:y?"Service status may be out of date":"Unable to load services",description:x,action:s.jsx(Re,{size:"small",loading:h,onClick:ae,children:"Retry"}),className:"launcher-data-notice"}):null;return j==="logs"?s.jsx(Xfe,{}):j==="presentation-view"?s.jsx(Vme,{}):s.jsxs(ns,{className:"workbench",children:[s.jsxs(hve,{"aria-label":"DevBuddy navigation",breakpoint:"lg",className:"sidebar",collapsed:A,collapsedWidth:64,collapsible:!0,onBreakpoint:L,onCollapse:L,width:240,children:[s.jsxs("div",{className:"brand-row",children:[s.jsxs("a",{className:"brand",href:"#/overview","aria-current":j==="overview"?"page":void 0,"aria-label":`Go to Overview — DevBuddy version ${su.version}`,children:[s.jsx("span",{className:`brand-mark ${$?"":"is-offline"}`,"aria-hidden":"true",children:"✦"}),s.jsx("span",{className:"brand-name",children:"DevBuddy"}),s.jsxs("span",{className:"brand-version",children:["v",su.version]})]}),!A&&s.jsx(un,{title:D!=null&&D.updateAvailable?`Update available: v${D.latestVersion}`:"View Change Log",children:s.jsx(Jr,{dot:!!(D!=null&&D.updateAvailable),color:"#f5b942",offset:[-2,3],children:s.jsx(Re,{"aria-label":D!=null&&D.updateAvailable?`Update available: version ${D.latestVersion}`:"View Change Log",className:`sidebar-update-button ${D!=null&&D.updateAvailable?"has-update":""}`,icon:s.jsx(Uy,{}),loading:z&&!D,onClick:se,type:"text"})})})]}),s.jsx("nav",{className:"sidebar-nav","aria-label":"Main navigation",children:s.jsx(ts,{theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:[Ce],items:Oe,onClick:Me})}),s.jsx("div",{className:"sidebar-bottom",children:s.jsx("div",{className:"sidebar-bottom-inner",children:s.jsx("nav",{"aria-label":"Settings navigation",children:s.jsx(ts,{className:"sidebar-settings-menu",theme:e==="light"?"light":"dark",mode:"inline",tabIndex:-1,selectedKeys:["settings","errors"].includes(j)?[j]:[],items:[{key:"settings",icon:s.jsx(is,{}),label:"Settings"}],onClick:Me})})})})]}),s.jsx(ns,{children:s.jsx(gve,{className:`page ${["static-page","postman"].includes(j)?"is-static-page":""} ${["overview","postman","static-page"].includes(j)?"":"is-workspace-content"} ${j==="mind-maps"&&T?"is-mind-map-detail":""} ${j==="presentation-plan"?"is-presentation-plan":""} ${j==="json-to-typescript"?"is-json-to-typescript":""} ${j==="memos"?"is-memos":""}`,children:Z?s.jsxs(s.Fragment,{children:[s.jsx(Bs,{type:"secondary",children:"PLUGIN"}),s.jsx(j8,{level:2,children:Z.name}),s.jsx(At,{children:s.jsx("div",{dangerouslySetInnerHTML:{__html:ee}})})]}):j==="static-page"&&re?s.jsx("div",{className:"static-page-container",children:s.jsx("iframe",{src:re.url,title:re.name,className:"static-page-iframe"})}):j==="image-compress"?s.jsx(wfe,{}):j==="json-to-typescript"?s.jsx(Xme,{}):j==="mind-maps"?T?s.jsx(pve,{mindMapId:T,onNavigate:ve=>{window.location.hash=`#/${ve}`}}):s.jsx(cve,{onNavigate:ve=>{window.location.hash=`#/${ve}`}}):j==="overview"?s.jsx(Rme,{launchers:a,running:c,errorCounts:f,errorLogs:v,plugins:O,staticPages:R,loading:h,error:x,hasLoaded:y,onRetry:ae,onNavigate:ve=>{window.location.hash=`#/${ve}`}}):j==="clipboard"?s.jsx(efe,{}):j==="ports"?s.jsx(vfe,{refreshLaunchers:Q}):j==="pr-review"?s.jsx(Nfe,{}):j==="pr-conflicts"?s.jsx(t8,{listOnly:!0},"pr-conflicts"):j==="pr-conflict"?s.jsx(t8,{},"pr-conflict"):j==="jira-filters"?s.jsx(Afe,{}):j==="todo-list"?s.jsx(Vfe,{}):j==="memos"?s.jsx(tve,{}):j==="todo-archived"?s.jsx(Kfe,{}):j==="presentation-plan"?s.jsx(Fme,{}):j==="postman"?s.jsx(sme,{}):j==="bookmark-sync"?s.jsx(cme,{}):j==="file-organizer"?s.jsx(dme,{}):j==="branch-sync"?s.jsx(fme,{}):j==="package-upgrade"?s.jsx(vme,{}):j==="package-versions"?s.jsx(gme,{}):j==="errors"?s.jsx(Yfe,{}):j==="settings"?s.jsx(pfe,{theme:e,onThemeChange:t,onStaticPagesChange:()=>Ks.list().then(I)}):j==="dev-configurations"?s.jsx(bfe,{}):s.jsxs(s.Fragment,{children:[me,(h||y||!x)&&s.jsx(mfe,{launchers:a,running:c,errorCounts:f,refresh:Q,loading:h&&!y})]})})}),s.jsx(xn,{className:"changelog-modal",footer:[(D==null?void 0:D.updateAvailable)&&!(q!=null&&q.success)&&s.jsx(Re,{type:"primary",loading:_&&K==="latest",onClick:()=>de(),children:"Update now"},"update"),s.jsx(Re,{disabled:_,loading:z,onClick:()=>J(!0),children:"Check again"},"refresh"),s.jsx(Re,{type:"primary",disabled:_,onClick:te,children:q!=null&&q.success?"Close & reload":"Close"},"close")],onCancel:te,closable:!_,maskClosable:!_,open:G,title:s.jsxs("div",{className:"changelog-title",children:[s.jsx("span",{className:`changelog-bulb ${D!=null&&D.updateAvailable?"has-update":""}`,children:s.jsx(Uy,{})}),s.jsx("span",{children:"Updates"})]}),width:680,children:z&&!D?s.jsx("div",{className:"changelog-loading",children:s.jsx(Cr,{})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"changelog-version-row",children:[s.jsxs("div",{children:[s.jsx(Bs,{type:"secondary",children:"Installed"}),s.jsxs(Bs,{strong:!0,children:["v",(D==null?void 0:D.currentVersion)||su.version]})]}),s.jsxs("div",{children:[s.jsx(Bs,{type:"secondary",children:"Latest"}),s.jsxs(Bs,{strong:!0,children:["v",(D==null?void 0:D.latestVersion)||su.version]})]}),s.jsx(Nt,{color:D!=null&&D.updateAvailable?"gold":"green",children:D!=null&&D.updateAvailable?"Update available":"Up to date"})]}),(D==null?void 0:D.sourceUnavailable)&&s.jsx(Tr,{className:"changelog-source-alert",message:"Could not reach the configured npm registry. Showing locally available release notes.",showIcon:!0,type:"info"}),q&&s.jsx(Tr,{className:"changelog-source-alert",description:q.message,message:q.success?"DevBuddy updated successfully":"DevBuddy update failed",showIcon:!0,type:q.success?"success":"error"}),s.jsx("div",{className:"changelog-release-list",children:(ye=D==null?void 0:D.releases)!=null&&ye.length?D.releases.slice(0,5).map(ve=>s.jsxs("section",{className:"changelog-release",children:[s.jsxs("div",{className:"changelog-release-heading",children:[s.jsxs("div",{className:"changelog-release-title",children:[s.jsxs(Nt,{className:"changelog-release-version",children:["v",ve.version]}),s.jsx(j8,{level:4,children:ve.name})]}),s.jsxs("div",{className:"changelog-release-actions",children:[ve.publishedAt&&s.jsx(Bs,{type:"secondary",children:new Date(ve.publishedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}),s.jsx(Re,{size:"small",type:ve.version===(D==null?void 0:D.latestVersion)?"primary":"default",disabled:_||ve.version===(D==null?void 0:D.currentVersion),loading:_&&K===ve.version,onClick:()=>de(ve.version),children:ve.version===(D==null?void 0:D.currentVersion)?"Installed":"Install"})]})]}),s.jsx(Bs,{className:"changelog-release-notes",children:ve.notes||"Published to the configured npm registry."})]},`${ve.version}-${ve.publishedAt||""}`)):s.jsx(Qt,{description:"No published release notes yet.",image:Qt.PRESENTED_IMAGE_SIMPLE})})]})})]})}function Cve(){const[e,t]=o.useState(()=>document.documentElement.dataset.theme||localStorage.getItem("devbuddy-theme")||"dark");return o.useEffect(()=>{Jn.status().then(n=>{const r=n.theme==="light"?"light":"dark";t(r),localStorage.setItem("devbuddy-theme",r)}).catch(()=>{})},[]),o.useLayoutEffect(()=>{var n;document.documentElement.dataset.theme=e,localStorage.setItem("devbuddy-theme",e),(n=document.querySelector('meta[name="theme-color"]'))==null||n.setAttribute("content",N8[e]||N8.dark)},[e]),o.useLayoutEffect(()=>{const n=()=>{document.querySelectorAll('[role="tab"], [role="tabpanel"]').forEach(i=>{document.activeElement===i&&i.blur(),i.tabIndex!==-1&&(i.tabIndex=-1)})};n();const r=new MutationObserver(n),a=i=>{var c,u;(u=(c=i.target).matches)!=null&&u.call(c,'[role="tab"], [role="tabpanel"]')&&i.target.blur()};return document.addEventListener("focusin",a,!0),r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>{r.disconnect(),document.removeEventListener("focusin",a,!0)}},[]),s.jsx(Uo,{theme:{token:{fontFamily:bve,borderRadius:10,colorBgLayout:e==="light"?"#f7f8fc":"#f4f5fa",colorInfo:e==="light"?"#2e83d2":"#6555e8",colorLink:e==="light"?"#2e83d2":"#5b4cc4",colorLinkActive:e==="light"?"#2474bd":"#5143c2",colorLinkHover:e==="light"?"#4593d8":"#7669ee",colorPrimary:e==="light"?"#2e83d2":"#6555e8",colorPrimaryActive:e==="light"?"#2474bd":"#5143c2",colorPrimaryHover:e==="light"?"#4593d8":"#7669ee",controlOutline:e==="light"?"rgba(46, 131, 210, .2)":"rgba(101, 85, 232, .22)",colorTextSecondary:"#667085"},components:{Layout:{bodyBg:e==="light"?"#f7f8fc":"#f4f5fa",siderBg:e==="light"?"#ffffff":"#171c2b",triggerBg:e==="light"?"#f8f9fc":"#101522",triggerColor:e==="light"?"#667085":"#c9ced8"},Menu:{darkItemBg:"#171c2b",darkItemSelectedBg:"#6555e8",darkSubMenuItemBg:"#171c2b",itemSelectedBg:"#eeecff",itemSelectedColor:"#5143c2"}}},children:s.jsx(_r,{children:s.jsx(xve,{theme:e,onThemeChange:t})})})}const Sve=/Macintosh|Mac OS X|iPhone|iPad/i.test(navigator.userAgent);document.documentElement.dataset.platform=Sve?"mac":"other";const wve=uP.createRoot(document.getElementById("app"));wve.render(s.jsx(Cve,{}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js",{updateViaCache:"none"}).catch(e=>{console.warn("DevBuddy service worker registration failed:",e)})});requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.setTimeout(()=>{const e=document.getElementById("app-splash");e&&(e.classList.add("is-hidden"),window.setTimeout(()=>e.remove(),700))},700)})});export{ui as g,MS as n};
|