From 47a8e9ed8582cbd31b95248fa586028105b90e17 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 12 Sep 2024 14:21:37 +0800 Subject: [PATCH 01/15] init --- src/bizyair/common/client.py | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/bizyair/common/client.py b/src/bizyair/common/client.py index 961f2158..dbad8e22 100644 --- a/src/bizyair/common/client.py +++ b/src/bizyair/common/client.py @@ -18,10 +18,37 @@ def set_api_key(API_KEY="YOUR_API_KEY"): BIZYAIR_API_KEY = API_KEY +is_api_key_valid = None + + def validate_api_key(api_key): - if api_key is None or not api_key.startswith("sk-"): + global is_api_key_valid + if api_key is None: return False - return True + if is_api_key_valid is not None: + return is_api_key_valid + + url = "https://api.siliconflow.cn/v1/user/info" + headers = {"accept": "application/json", "authorization": f"Bearer {api_key}"} + try: + req = urllib.request.Request(url, headers=headers) + with urllib.request.urlopen(req) as response: + response_data = response.read().decode("utf-8") + response_data = json.loads(response_data) + if "message" not in response_data: + is_api_key_valid = False + if response_data["message"] != "Ok": + is_api_key_valid = False + is_api_key_valid = True + except Exception as e: + print( + "\n\n\033[91m[BizyAir]\033[0m " + f"Fail to validate the api key: {api_key}, with error {e} \n\n" + ) + print(f"") + is_api_key_valid = False + finally: + return is_api_key_valid def get_api_key(): @@ -29,7 +56,7 @@ def get_api_key(): if not validate_api_key(BIZYAIR_API_KEY): error_message = ( "BIZYAIR_API_KEY is not set or invalid. " - "Please provide a valid API key starting with 'sk-'. " + "Please refer to cloud.siliconflow.cn to get a valid API key. " f"Current BIZYAIR_API_KEY: {BIZYAIR_API_KEY}" ) raise ValueError(error_message) From 021b6e6ee6baa5acde4501de4edfb8a77f3d2298 Mon Sep 17 00:00:00 2001 From: linjm8780860 Date: Thu, 21 Nov 2024 11:36:12 +0800 Subject: [PATCH 02/15] fix --- biz_lib_frontend/src/views/btnModel/index.vue | 7 ++++--- js/biz_lib_frontend.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/biz_lib_frontend/src/views/btnModel/index.vue b/biz_lib_frontend/src/views/btnModel/index.vue index f3f59dc3..bc5ac033 100644 --- a/biz_lib_frontend/src/views/btnModel/index.vue +++ b/biz_lib_frontend/src/views/btnModel/index.vue @@ -246,9 +246,6 @@ async function interrupt ({ file_upload_id }: any, i: number) { await interrupt_upload({ upload_id: file_upload_id }) - delete formData.value.versions[i].progress - - } async function submit() { @@ -311,7 +308,11 @@ watch(() => statusStore.socketMessage, (val: any) => { console.log(val) if (val.type === "errors" && val.data && val.data.code === 500101) { calculating.close() + console.log(val.data.data) useToaster.error(val.data.message) + const i = formData.value.versions.findIndex((e: any) => e.file_upload_id == val.data.data.upload_id) + delete formData.value.versions[i].progress + formData.value.versions[i].filePath = '' } }, { deep: true diff --git a/js/biz_lib_frontend.js b/js/biz_lib_frontend.js index db624741..8111f93f 100644 --- a/js/biz_lib_frontend.js +++ b/js/biz_lib_frontend.js @@ -549,7 +549,7 @@ $$ $$`,"title")},...["note","abstract","info","tip","success","question","warning","failure","danger","bug","example","quote","hint","caution","error","attention"].map(i=>({label:`!!! ${i}`,type:"text",apply:aS("!!!",` ${i}`," Title",` !!!`,"title")}))]}};return J$e({override:e?[t,...e]:[t]})},Rd=e=>{const t=new Wo;return r=>(t.get(e.state)?e.dispatch({effects:t.reconfigure(r)}):e.dispatch({effects:Lt.appendConfig.of(t.of(r))}),!0)};class kPe{constructor(t){tc(this,"view"),tc(this,"maxLength",Number.MAX_SAFE_INTEGER),tc(this,"toggleTabSize"),tc(this,"togglePlaceholder"),tc(this,"setExtensions"),tc(this,"toggleDisabled"),tc(this,"toggleReadOnly"),tc(this,"toggleMaxlength"),this.view=t,this.toggleTabSize=Rd(this.view),this.togglePlaceholder=Rd(this.view),this.setExtensions=Rd(this.view),this.toggleDisabled=Rd(this.view),this.toggleReadOnly=Rd(this.view),this.toggleMaxlength=Rd(this.view)}getValue(){return this.view.state.doc.toString()}setValue(t,n=0,r=this.view.state.doc.length){this.view.dispatch({changes:{from:n,to:r,insert:t}})}getSelectedText(){const{from:t,to:n}=this.view.state.selection.main;return this.view.state.sliceDoc(t,n)}replaceSelectedText(t,n={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1},r){try{if(n.replaceAll){if(this.setValue(t),t.length>this.maxLength)throw new Error("The input text is too long");return}if(this.view.state.doc.length-this.getSelectedText().length+t.length>this.maxLength)throw new Error("The input text is too long");const{from:i}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(t)),n.select){const a=i+t.length+n.deviationEnd;this.view.dispatch({selection:{anchor:i+n.deviationStart,head:a}})}this.view.focus()}catch(i){if(i.message==="The input text is too long")we.emit(r,au,{name:"overlength",message:i.message,data:t});else throw i}}setTabSize(t){this.toggleTabSize([Mt.tabSize.of(t),dd.of(" ".repeat(t))])}setPlaceholder(t){this.togglePlaceholder(jEe(t))}focus(t){if(this.view.focus(),!t)return;let n=0,r=0,i=0;switch(t){case"start":break;case"end":{n=r=i=this.getValue().length;break}default:n=t.rangeAnchor||t.cursorPos,r=t.rangeHead||t.cursorPos,i=t.cursorPos}this.view.dispatch({scrollIntoView:!0,selection:_e.create([_e.range(n,r),_e.cursor(i)],1)})}setDisabled(t){this.toggleDisabled([Ue.editable.of(!t)])}setReadOnly(t){this.toggleReadOnly([Mt.readOnly.of(t)])}setMaxLength(t){this.maxLength=t,this.toggleMaxlength([Mt.changeFilter.of(n=>n.newDoc.length<=t)])}}const CPe=(e,t)=>{const n=rt("editorId"),r=a=>{a instanceof Promise?a.then(o=>{we.emit(n,sn,"universal",{generate(){return{targetValue:o}}})}).catch(o=>{console.error(o)}):we.emit(n,sn,"universal",{generate(){return{targetValue:a}}})};return a=>{var o,s,l;if(!a.clipboardData)return;if(a.clipboardData.files.length>0){const{files:m}=a.clipboardData;we.emit(n,__,Array.from(m).filter(_=>/image\/.*/.test(_.type))),a.preventDefault();return}const c=a.clipboardData.getData("text/plain"),u=((o=t.value)==null?void 0:o.view.state.selection.main.to)||0,O=((s=t.value)==null?void 0:s.view.state.doc.lineAt(u).from)||0,d=((l=t.value)==null?void 0:l.view.state.doc.sliceString(O,u))||"",f=/!\[.*\]\(\s*$/.test(d),p=/!\[.*\]\((.*)\s?.*\)/.test(c);if(f){const m=e.transformImgUrl(c);r(m),a.preventDefault();return}else if(p){const m=c.match(new RegExp(`(?<=!\\[.*\\]\\()([^)\\s]+)(?=\\s?["']?.*["']?\\))`,"g"));m?Promise.all(m.map(_=>e.transformImgUrl(_))).then(_=>{r(_.reduce((g,b,y)=>g.replace(m[y],b),c))}):r(c),a.preventDefault();return}if(e.autoDetectCode&&a.clipboardData.types.includes("vscode-editor-data")){const m=JSON.parse(a.clipboardData.getData("vscode-editor-data"));we.emit(n,sn,"code",{mode:m.mode,text:a.clipboardData.getData("text/plain")}),a.preventDefault();return}e.maxlength&&c.length+e.modelValue.length>e.maxlength&&we.emit(n,au,{name:"overlength",message:"The input text is too long",data:c})}},DPe=(e,t)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>(we.emit(e,sn,"bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:oV,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:E=>(we.emit(e,h_,E.state.doc.toString()),!0),shift:()=>(we.emit(e,sn,"strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",preventDefault:!0,run:()=>(we.emit(e,sn,"underline"),!0),shift:()=>(we.emit(e,sn,"unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",preventDefault:!0,run:()=>(we.emit(e,sn,"italic"),!0),shift:()=>(we.emit(e,UQ,"image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>(we.emit(e,sn,"h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>(we.emit(e,sn,"h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>(we.emit(e,sn,"h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>(we.emit(e,sn,"h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>(we.emit(e,sn,"h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>(we.emit(e,sn,"h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>(we.emit(e,sn,"sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>(we.emit(e,sn,"sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>(we.emit(e,sn,"orderedList"),!0)},{key:"Ctrl-c",mac:"Cmd-c",shift:()=>(we.emit(e,sn,"code"),!0),any(E,v){return(v.ctrlKey||v.metaKey)&&v.altKey&&v.code==="KeyC"?(we.emit(e,sn,"codeRow"),!0):!1}},{key:"Ctrl-l",mac:"Cmd-l",run:()=>(we.emit(e,UQ,"link"),!0)},{key:"Ctrl-f",mac:"Cmd-f",shift:()=>t.noPrettier?!1:(we.emit(e,sn,"prettier"),!0)},{any:(E,v)=>(v.ctrlKey||v.metaKey)&&v.altKey&&v.shiftKey&&v.code==="KeyT"?(we.emit(e,sn,"table"),!0):!1},...h$e];Ue.EDIT_CONTEXT=!1;const APe=e=>{const t=rt("tabWidth"),n=rt("editorId"),r=rt("theme"),i=j(),a=_s(),o=j(!1),s=new Wo,l=new Wo,c=new Wo,u=new Wo,O=new Wo,d=DPe(n,e),f=()=>[...d,...K0e,...l0e,J0e],m={paste:CPe(e,a),blur:e.onBlur,focus:e.onFocus,drop:e.onDrop,compositionstart:()=>{o.value=!0},compositionend:(b,y)=>{o.value=!1,e.updateModelValue(y.state.doc.toString())},input:b=>{e.onInput&&e.onInput(b);const{data:y}=b;e.maxlength&&e.modelValue.length+y.length>e.maxlength&&we.emit(n,au,{name:"overlength",message:"The input text is too long",data:y})}},_=[Vp.of(f()),u.of(Q5()),s.of(q6({codeLanguages:nxe})),Ue.lineWrapping,Ue.updateListener.of(b=>{b.docChanged&&(e.onChange(b.state.doc.toString()),o.value||e.updateModelValue(b.state.doc.toString()))}),O.of(Ue.domEventHandlers(m)),VEe()],g=()=>{const b=[..._,l.of(r.value==="light"?e4:B6),c.of(n4(e.completions))];return zn.codeMirrorExtensions(r.value,b,f(),{editorId:n})};return Je(()=>{const b=new Ue({doc:e.modelValue,parent:i.value,extensions:[g()]}),y=new kPe(b);a.value=y,setTimeout(()=>{y.setTabSize(t),y.setDisabled(e.disabled),y.setReadOnly(e.readonly),e.placeholder&&y.setPlaceholder(e.placeholder),typeof e.maxlength=="number"&&y.setMaxLength(e.maxlength),e.autofocus&&b.focus()},0),we.on(n,{name:sq,callback(){kP(b)}}),we.on(n,{name:lq,callback(){xb(b)}}),we.on(n,{name:sn,async callback(E,v={}){var $,T;if(E==="image"&&v.transform){const x=e.transformImgUrl(v.url);if(x instanceof Promise)x.then(async Q=>{var w;const{text:k,options:N}=await Lw(E,a.value,{...v,url:Q});(w=a.value)==null||w.replaceSelectedText(k,N,n)}).catch(Q=>{console.error(Q)});else{const{text:Q,options:w}=await Lw(E,a.value,{...v,url:x});($=a.value)==null||$.replaceSelectedText(Q,w,n)}}else{const{text:x,options:Q}=await Lw(E,a.value,v);(T=a.value)==null||T.replaceSelectedText(x,Q,n)}}}),we.on(n,{name:uq,callback:ige(E=>{var v;const $={...m},T=Object.keys(m);for(const x in E){const Q=x;T.includes(Q)?$[Q]=(w,k)=>{E[Q](w,k),w.defaultPrevented||m[Q](w,k)}:$[Q]=E[Q]}(v=a.value)==null||v.view.dispatch({effects:O.reconfigure(Ue.domEventHandlers($))})})}),we.on(n,{name:Oq,callback:(E,v)=>{const $=b.state.doc.line(E);b.dispatch(b.state.update({changes:{from:$.from,to:$.to,insert:v}}))}})}),xe(r,()=>{var b;(b=a.value)==null||b.view.dispatch({effects:l.reconfigure(r.value==="light"?e4:B6)})},{deep:!0}),xe(()=>e.completions,()=>{var b;(b=a.value)==null||b.view.dispatch({effects:c.reconfigure(n4(e.completions))})},{deep:!0}),xe(()=>e.modelValue,()=>{var b,y;((b=a.value)==null?void 0:b.getValue())!==e.modelValue&&((y=a.value)==null||y.setValue(e.modelValue))}),xe(()=>e.placeholder,()=>{var b;(b=a.value)==null||b.setPlaceholder(e.placeholder)}),xe(()=>e.disabled,()=>{var b;(b=a.value)==null||b.setDisabled(e.disabled)}),xe(()=>e.readonly,()=>{var b;(b=a.value)==null||b.setDisabled(e.readonly)}),xe(()=>e.maxlength,()=>{var b;e.maxlength&&((b=a.value)==null||b.setMaxLength(e.maxlength))}),{inputWrapperRef:i,codeMirrorUt:a,resetHistory(){var b,y;(b=a.value)==null||b.view.dispatch({effects:u.reconfigure([])}),(y=a.value)==null||y.view.dispatch({effects:u.reconfigure(Q5())})}}},NPe=(e,t,n)=>{const r=Mn({resizedWidth:e.inputBoxWidth}),i=Mn({width:e.inputBoxWidth}),a=Mn({left:e.inputBoxWidth,display:"initial"}),o=j(e.setting.preview||e.setting.htmlPreview),s=u=>{var O,d,f;const p=((O=t.value)==null?void 0:O.offsetWidth)||0,m=((d=t.value)==null?void 0:d.getBoundingClientRect().x)||0;let _=u.x-m;_p-p_&&(_=p-p_);const g=`${_}px`;i.width=g,a.left=g,r.resizedWidth=g,(f=e.oninputBoxWidthChange)==null||f.call(e,g)},l=()=>{document.addEventListener("mousemove",s)},c=()=>{document.removeEventListener("mousemove",s)};return xe([n],()=>{var u,O;(u=n.value)==null||u.addEventListener("mousedown",l),(O=n.value)==null||O.addEventListener("mouseup",c)},{immediate:!0}),Qo(()=>{var u,O;(u=n.value)==null||u.removeEventListener("mousedown",l),(O=n.value)==null||O.removeEventListener("mouseup",c)}),xe(()=>e.inputBoxWidth,u=>{u&&(r.resizedWidth=u,i.width=u,a.left=u)}),xe([Zr(e.setting,"htmlPreview"),Zr(e.setting,"preview"),Zr(e.setting,"previewOnly")],()=>{e.setting.previewOnly?(i.width="0%",a.display="none",o.value=!0):!e.setting.htmlPreview&&!e.setting.preview?(i.width="100%",a.display="none",o.value=!1):(i.width=r.resizedWidth,a.display="initial",o.value=!0)},{immediate:!0}),{inputWrapperStyle:i,resizeOperateStyle:a,showPreviewWrapper:o}},IPe=q({name:"MDEditorContent",props:ZSe,setup(e,t){const n=rt("editorId"),r=j(""),i=j(),a=j(),{inputWrapperRef:o,codeMirrorUt:s,resetHistory:l}=APe(e),{inputWrapperStyle:c,resizeOperateStyle:u,showPreviewWrapper:O}=NPe(e,i,a);return lPe(e,r,s),t.expose({getSelectedText(){var d;return(d=s.value)==null?void 0:d.getSelectedText()},focus(d){var f;(f=s.value)==null||f.focus(d)},resetHistory:l,getEditorView(){var d;return(d=s.value)==null?void 0:d.view}}),()=>P("div",{class:`${V}-content${O.value?" has-preview":""}`,ref:i},[P("div",{class:`${V}-input-wrapper`,style:c,ref:o},null),(e.setting.htmlPreview||e.setting.preview)&&P("div",{class:`${V}-resize-operate`,style:u,ref:a},null),O.value&&P(g3,{modelValue:e.modelValue,onChange:e.onChange,setting:e.setting,onHtmlChanged:d=>{r.value=d,e.onHtmlChanged(d)},onGetCatalog:e.onGetCatalog,mdHeadingId:e.mdHeadingId,noMermaid:e.noMermaid,sanitize:e.sanitize,noKatex:e.noKatex,formatCopiedText:e.formatCopiedText,noHighlight:e.noHighlight,noImgZoomIn:e.noImgZoomIn,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold},null),e.catalogVisible&&P($p,{theme:e.theme,class:`${V}-catalog-editor`,editorId:n,mdHeadingId:e.mdHeadingId,key:"internal-catalog",scrollElementOffsetTop:2},null)])}}),XPe=q({props:{modelValue:{type:String,default:""}},setup(e){const t=rt("usedLanguageText");return()=>{var n,r;return P("div",{class:`${V}-footer-item`},[P("label",{class:`${V}-footer-label`},[`${(n=t.value.footer)==null?void 0:n.markdownTotal}:`]),P("span",null,[((r=e.modelValue)==null?void 0:r.length)||0])])}}}),LPe={checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}}},MPe=q({name:`${V}-checkbox`,props:LPe,setup(e){return()=>P("div",{class:[`${V}-checkbox`,e.checked&&`${V}-checkbox-checked`],onClick:()=>{e.onChange(!e.checked)}},null)}}),UPe=q({props:{scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}}},setup(e){const t=rt("usedLanguageText");return()=>{var n;return P("div",{class:`${V}-footer-item`},[P("label",{class:`${V}-footer-label`,onClick:()=>{e.onScrollAutoChange(!e.scrollAuto)}},[(n=t.value.footer)==null?void 0:n.scrollAuto]),P(MPe,{checked:e.scrollAuto,onChange:e.onScrollAutoChange},null)])}}}),zPe=q({name:"MDEditorFooter",props:{modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},noScrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}},defFooters:{type:Object}},setup(e){const t=ie(()=>{const r=e.footers.indexOf("="),i=r===-1?e.footers:e.footers.slice(0,r),a=r===-1?[]:e.footers.slice(r,Number.MAX_SAFE_INTEGER);return[i,a]}),n=r=>{if(Kz.includes(r))switch(r){case"markdownTotal":return P(XPe,{modelValue:e.modelValue},null);case"scrollSwitch":return!e.noScrollAuto&&P(UPe,{scrollAuto:e.scrollAuto,onScrollAutoChange:e.onScrollAutoChange},null)}else return e.defFooters instanceof Array?e.defFooters[r]||"":e.defFooters&&e.defFooters.children instanceof Array&&e.defFooters.children[r]||""};return()=>{const r=t.value[0].map(a=>n(a)),i=t.value[1].map(a=>n(a));return P("div",{class:`${V}-footer`},[P("div",{class:`${V}-footer-left`},[r]),P("div",{class:`${V}-footer-right`},[i])])}}}),Em=q({name:"MdEditorV3",props:iye,emits:aye,setup(e,t){const{noKatex:n,noMermaid:r,noPrettier:i,noUploadImg:a,noHighlight:o}=e,s=Mn({scrollAuto:e.scrollAuto}),l=j(),c=j(),{editorId:u}=HSe(e,l),[O,d]=eye(e,t,{editorId:u}),f=tye(e,{editorId:u});return jSe(e,t,{editorId:u}),KSe(e),JSe(e,t,{editorId:u}),nye(e,t,{editorId:u,catalogVisible:f,setting:O,updateSetting:d,codeRef:c}),Qo(()=>{we.clear(u)}),()=>{const p=Ai({props:e,ctx:t},"defToolbars"),m=Ai({props:e,ctx:t},"defFooters");return P("div",{id:u,class:[V,e.class,e.theme==="dark"&&`${V}-dark`,O.fullscreen||O.pageFullscreen?`${V}-fullscreen`:""],style:e.style,ref:l},[e.toolbars.length>0&&P(sPe,{noPrettier:i,toolbars:e.toolbars,toolbarsExclude:e.toolbarsExclude,setting:O,updateSetting:d,tableShape:e.tableShape,defToolbars:p,noUploadImg:a,showToolbarName:e.showToolbarName,catalogVisible:f.value,codeTheme:e.codeTheme},null),P(IPe,{ref:c,modelValue:e.modelValue,setting:O,mdHeadingId:e.mdHeadingId,noMermaid:r,noPrettier:i,sanitize:e.sanitize,placeholder:e.placeholder,noKatex:n,scrollAuto:s.scrollAuto,formatCopiedText:e.formatCopiedText,autofocus:e.autoFocus,disabled:e.disabled,readonly:e.readOnly,maxlength:e.maxLength,autoDetectCode:e.autoDetectCode,noHighlight:o,updateModelValue:_=>{t.emit("update:modelValue",_)},onChange:_=>{e.onChange&&e.onChange(_),t.emit("onChange",_)},onHtmlChanged:_=>{e.onHtmlChanged&&e.onHtmlChanged(_),t.emit("onHtmlChanged",_)},onGetCatalog:_=>{e.onGetCatalog&&e.onGetCatalog(_),t.emit("onGetCatalog",_)},onBlur:_=>{e.onBlur&&e.onBlur(_),t.emit("onBlur",_)},onFocus:_=>{e.onFocus&&e.onFocus(_),t.emit("onFocus",_)},onInput:_=>{e.onInput&&e.onInput(_),t.emit("onInput",_)},completions:e.completions,catalogVisible:f.value,theme:e.theme,noImgZoomIn:e.noImgZoomIn,onDrop:_=>{e.onDrop&&e.onDrop(_),t.emit("onDrop",_)},inputBoxWidth:e.inputBoxWidth,oninputBoxWidthChange:_=>{e.oninputBoxWidthChange&&e.oninputBoxWidthChange(_),t.emit("oninputBoxWidthChange",_)},sanitizeMermaid:e.sanitizeMermaid,transformImgUrl:e.transformImgUrl,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold},null),e.footers.length>0&&P(zPe,{modelValue:e.modelValue,footers:e.footers,defFooters:m,noScrollAuto:!O.preview&&!O.htmlPreview||O.previewOnly,scrollAuto:s.scrollAuto,onScrollAutoChange:_=>s.scrollAuto=_},null)])}}});Em.install=e=>(e.component(Em.name,Em),e.use(wd).use(m_).use(iS).use($p).use(Tp),e);const zw=q({name:"NormalFooterToolbar",props:{onClick:{type:Function,default:void 0}},emits:["onClick"],setup(e,t){return()=>{const n=Ai({props:e,ctx:t});return P("div",{class:`${V}-footer-item`,onClick:r=>{e.onClick instanceof Function?e.onClick(r):t.emit("onClick",r)}},[n])}}});zw.install=e=>(e.component(zw.name,zw),e);var r4={exports:{}},$n={},qw={exports:{}},Su={};function i4(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function qPe(e,t,n){}function YPe(e,t,n){}var WPe=/javascript\s*\:/img;function VPe(e,t){return WPe.test(t)?"":t}Su.whiteList=i4(),Su.getDefaultWhiteList=i4,Su.onAttr=qPe,Su.onIgnoreAttr=YPe,Su.safeAttrValue=VPe;var FPe={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n/g,swe=/"/g,lwe=/"/g,cwe=/&#([a-zA-Z0-9]*);?/gim,uwe=/:?/gim,Owe=/&newline;?/gim,lS=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,u4=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,O4=/u\s*r\s*l\s*\(.*/gi;function d4(e){return e.replace(swe,""")}function f4(e){return e.replace(lwe,'"')}function p4(e){return e.replace(cwe,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function m4(e){return e.replace(uwe,":").replace(Owe," ")}function h4(e){for(var t="",n=0,r=e.length;n",r);if(i===-1)break;n=i+3}return t}function mwe(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}$n.whiteList=s4(),$n.getDefaultWhiteList=s4,$n.onTag=ewe,$n.onIgnoreTag=twe,$n.onTagAttr=nwe,$n.onIgnoreTagAttr=rwe,$n.safeAttrValue=iwe,$n.escapeHtml=c4,$n.escapeQuote=d4,$n.unescapeQuote=f4,$n.escapeHtmlEntities=p4,$n.escapeDangerHtml5Entities=m4,$n.clearNonPrintableCharacter=h4,$n.friendlyAttrValue=g4,$n.escapeAttrValue=_4,$n.onIgnoreTagStripAll=dwe,$n.StripTagBody=fwe,$n.stripCommentTag=pwe,$n.stripBlankChar=mwe,$n.attributeWrapSign='"',$n.cssFilter=l4,$n.getDefaultCSSWhiteList=JPe;var cS={},nc=Ww;function hwe(e){var t=nc.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=nc.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function gwe(e){return e.slice(0,2)===""||s===l-1){r+=n(e.slice(i,a)),u=e.slice(a,s+1),c=hwe(u),r+=t(a,r.length,c,u,gwe(u)),i=s+1,a=!1;continue}if(O==='"'||O==="'")for(var d=1,f=e.charAt(s-d);f.trim()===""||f==="=";){if(f==="="){o=O;continue e}f=e.charAt(s-++d)}}else if(O===o){o=!1;continue}}return i0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Twe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function b4(e){return Twe(e)?e.substr(1,e.length-2):e}cS.parseTag=_we,cS.parseAttr=Swe;var $we=Yw.FilterCSS,xa=$n,S4=cS,xwe=S4.parseTag,Qwe=S4.parseAttr,uS=Ww;function OS(e){return e==null}function Pwe(e){var t=uS.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=uS.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=uS.trim(e.slice(0,-1))),{html:e,closing:n}}function wwe(e){var t={};for(var n in e)t[n]=e[n];return t}function Rwe(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function y4(e){e=wwe(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xa.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Rwe(e.whiteList||e.allowList):e.whiteList=xa.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":xa.attributeWrapSign,e.onTag=e.onTag||xa.onTag,e.onTagAttr=e.onTagAttr||xa.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xa.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xa.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xa.safeAttrValue,e.escapeHtml=e.escapeHtml||xa.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new $we(e.css))}y4.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,a=n.onIgnoreTag,o=n.onTagAttr,s=n.onIgnoreTagAttr,l=n.safeAttrValue,c=n.escapeHtml,u=t.attributeWrapSign,O=t.cssFilter;n.stripBlankChar&&(e=xa.stripBlankChar(e)),n.allowCommentTag||(e=xa.stripCommentTag(e));var d=!1;n.stripIgnoreTagBody&&(d=xa.StripTagBody(n.stripIgnoreTagBody,a),a=d.onIgnoreTag);var f=xwe(e,function(p,m,_,g,b){var y={sourcePosition:p,position:m,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(r,_)},E=i(_,g,y);if(!OS(E))return E;if(y.isWhite){if(y.isClosing)return"";var v=Pwe(g),$=r[_],T=Qwe(v.html,function(x,Q){var w=uS.indexOf($,x)!==-1,k=o(_,x,Q,w);return OS(k)?w?(Q=l(_,x,Q,O),Q?x+"="+u+Q+u:x):(k=s(_,x,Q,w),OS(k)?void 0:k):k});return g="<"+_,T&&(g+=" "+T),v.closing&&(g+=" /"),g+=">",g}else return E=a(_,g,y),OS(E)?c(g):E},c);return d&&(f=d.remove(f)),f};var kwe=y4;(function(e,t){var n=$n,r=cS,i=kwe;function a(s,l){var c=new i(l);return c.process(s)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(r4,r4.exports);const Cwe=20*1024*1024,Dwe=3,Awe=Vg({__name:"Index2",props:{editorId:String,modelValue:String,modelModifiers:Object,autoDetectCode:{type:Boolean,default:!0}},emits:["update:modelValue","isUploading"],setup(e,{emit:t}){const n=["bold","italic","underline","title","-","quote","code","table","image","-","mermaid","katex","-","link","=","preview",0],r=j(!1),i=()=>{r.value=!r.value,r.value?(oT.request(),document.querySelectorAll('[role="dialog"]').forEach(f=>f.style.display="none"),document.querySelector("body").style["pointer-events"]="auto"):(oT.exit(),document.querySelectorAll('[role="dialog"]').forEach(f=>f.style.display="block"),document.querySelector("body").style["pointer-events"]="none")},o=j(e.modelValue),s=t,l=()=>{s("update:modelValue",o)},c=["image/jpeg","image/png","image/gif","image/webp"],u=async(f,p=0)=>{var m;try{const _=await Jhe(f);if(!((m=_.data)!=null&&m.url))throw new Error("Upload response missing URL");return _.data.url}catch(_){if(console.error(`Upload attempt ${p+1} failed:`,_),psetTimeout(g,1e3*(p+1))),u(f,p+1);throw _}},O=async(f,p)=>{if(f.filter(g=>!c.includes(g.type)).length>0){xt.warning("Only image files allowed (jpg, png, gif, webp)");return}if(f.filter(g=>g.size>Cwe).length>0){xt.warning("Image size cannot exceed 20MB");return}try{s("isUploading",!0);const g=[];for(let b=0;b(X(),Xe(Ot,null,[P(h(Em),{editorId:e.editorId,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),theme:"dark",toolbars:n,ref_key:"editorRef",ref:d,autoDetectCode:!0,language:"en-US",onInput:l,onOnUploadImg:O},{defToolbars:R(()=>[P(h(wd),{title:"fullscreen",onOnClick:i},{trigger:R(()=>[P(h(yI),{class:"w-4 h-4 mt-1"})]),_:1})]),_:1},8,["editorId","modelValue"]),r.value?(X(),F(tO,{key:0,to:"body"},[P(h(Em),{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=m=>o.value=m),theme:"dark",autoDetectCode:!0,editorId:`full-${e.editorId}`,toolbars:n,language:"en-US",pageFullscreen:!0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] z-12000",onInput:l,onOnUploadImg:O},{defToolbars:R(()=>[P(h(wd),{title:"fullscreen",onOnClick:i},{trigger:R(()=>[P(h(yI),{class:"w-4 h-4 mt-1"})]),_:1})]),_:1},8,["modelValue","editorId"])])):St("",!0)],64))}},[["__scopeId","data-v-55306ef7"]]),v4=()=>Jr("/bizyair/community/base_model_types",{method:"GET"}),Nwe=(e,t)=>Jr(`/bizyair/community/models/query?${new URLSearchParams(e).toString()}`,{method:"POST",body:JSON.stringify(t)}),Iwe=e=>Jr(`/bizyair/community/models?clientId=${sessionStorage.getItem("clientId")}`,{method:"post",body:JSON.stringify(e)}),Xwe=e=>Jr(`/bizyair/community/check_local_file?${new URLSearchParams(e).toString()}`,{method:"get"}),Lwe=e=>Jr(`/bizyair/community/submit_upload?clientId=${sessionStorage.getItem("clientId")}`,{method:"POST",body:JSON.stringify(e)}),Mwe=e=>Jr(`/bizyair/community/interrupt_upload?clientId=${sessionStorage.getItem("clientId")}`,{method:"POST",body:JSON.stringify(e)}),E4=()=>Jr("/bizyair/community/model_types",{method:"GET"}),Uwe=e=>Jr(`/bizyair/community/models/${e.id}?clientId=${sessionStorage.getItem("clientId")}`,{method:"put",body:JSON.stringify(e)}),T4=e=>Jr(`/bizyair/community/models/${e.id}/detail?source=${e.source}`,{method:"GET"}),$4=e=>Jr(`/bizyair/community/models/${e}`,{method:"DELETE"}),zwe=e=>Jr(`/bizyair/community/models/like/${e}`,{method:"POST"}),qwe=e=>Jr(`/bizyair/community/models/fork/${e}`,{method:"POST"}),Ywe={class:"px-6 pb-6"},Wwe={key:0},Vwe={key:1},Fwe={class:"flex items-center space-x-2 mt-2"},Gwe={class:"flex"},Bwe={key:0},Zwe={class:"text-center mt-2"},jwe={class:"bg-[#353535] px-6 w-full h-14 rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between items-center -mt-4"},Hwe={key:0,class:"z-50 w-full h-full absolute left-0 top-0"},Kwe=q({__name:"index",setup(e){const t=Kf(),n=Vc(),r=j(!0),i=j(0),a=j([{value:"",label:""}]),o=j([{value:"",label:""}]),s=j({...n.modelDetail}),l=j("0"),c=j(!1),u=ie(()=>s.value.versions.map(T=>T.progress).some((T,x)=>T!==100&&s.value.versions[x].file_upload_id));function O($,T){s.value.versions&&(s.value.versions[T].public=$)}let d;async function f($,T){const x=await Xwe({absolute_path:$});s.value.versions[T].file_upload_id=x.data.upload_id,s.value.versions[T].filePathError=!1,i.value=T,await Lwe({upload_id:x.data.upload_id}),s.value.versions[T].progress=.1,d=Tle({content:"Start calculating the file hash",z:"z-12000"})}async function p($){if(!await Yg({title:"Are you sure you want to delete this version?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;const x={...s.value};l.value===`${x.versions.length-1}`&&(l.value=`${Number(l.value)-1}`),x.versions=x.versions||[],x.versions.splice($,1),n.setModelDetail(x),x.versions.length===1&&(l.value="0"),x.versions.length===0&&(r.value=!0)}function m(){const $={...s.value};$.versions=$.versions||[],$.versions.push({version:"",base_model:"",intro:"",public:!1,filePath:"",sign:"",path:""}),n.setModelDetail($),r.value=!1,l.value=`${$.versions.length-1}`}function _(){if(!s.value.name){xt.error("Please enter the model name"),s.value.nameError=!0;return}if(!s.value.type){xt.error("Please select the model type"),s.value.typeError=!0;return}s.value.versions.length?(l.value=`${s.value.versions.length-1}`,r.value=!1):m()}function g(){const $={...s.value};$.versions=$.versions||[];for(let T=0;T<$.versions.length;T++){const x=$.versions[T];if(!x.version){x.versionError=!0,xt.error(`Please enter the version name for version ${T+1}`),l.value=`${T}`;break}if(!x.base_model){x.baseModelError=!0,xt.error(`Please select the base model for version ${T+1}`),l.value=`${T}`;break}if(!x.filePath){x.filePathError=!0,xt.error(`Please enter the file path for version ${T+1}`),l.value=`${T}`;break}}return $.versions.every(T=>T.version&&T.base_model&&T.filePath)}async function b({file_upload_id:$},T){await Mwe({upload_id:$}),delete s.value.versions[T].progress}async function y(){g()&&(c.value=!0,setTimeout(()=>{c.value=!1},5e3),s.value.id?await Uwe(s.value):await Iwe(s.value),xt.success("Model published successfully"),v())}const E=()=>{r.value&&(r.value=!1)},v=()=>{n.setDialogStatus(!1,0),n.clearModelDetail(),r.value=!0,c.value=!1,n.uploadModelDone()};return xe(()=>t.socketMessage,$=>{if($.type=="progress"){const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);s.value.versions[T].progress=Number($.data.progress.replace("%",""))}if($.type=="status"&&$.data.status=="finish"){const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);s.value.versions[T]&&(s.value.versions[T].path=$.data.model_files[0].path,s.value.versions[T].sign=$.data.model_files[0].sign)}if($.type=="interrupted"){xt.success("Upload interrupted");const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);delete s.value.versions[T].progress,s.value.versions[T].filePath=""}if($.type=="error"){xt.error($.data.message);const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);delete s.value.versions[T].progress,s.value.versions[T].filePath=""}$.type=="prepared"&&d.close(),console.log($),$.type==="errors"&&$.data&&$.data.code===500101&&(d.close(),xt.error($.data.message))},{deep:!0}),xe(()=>n.modelDetail,$=>{s.value=$},{deep:!0}),xe(()=>n.showVersionId,$=>{const T=s.value.versions.findIndex(x=>x.id==$);l.value=`${T}`,T!=-1&&(r.value=!1)},{deep:!0}),Je(async()=>{const $=await E4();a.value=$.data;const T=await v4();o.value=T.data}),($,T)=>(X(),Xe(Ot,null,[ee("div",{onClick:T[0]||(T[0]=x=>h(n).setDialogStatus(!0)),class:"flex items-center hover:bg-[#4A238E] cursor-pointer relative px-3"},T[8]||(T[8]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24"},[ee("path",{fill:"none",stroke:"#ddd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M21 16.008V7.99a1.98 1.98 0 0 0-1-1.717l-7-4.008a2.02 2.02 0 0 0-2 0L4 6.273c-.619.355-1 1.01-1 1.718v8.018c0 .709.381 1.363 1 1.717l7 4.008a2.02 2.02 0 0 0 2 0l7-4.008c.619-.355 1-1.01 1-1.718M12 22V12m0 0l8.73-5.04m-17.46 0L12 12"})],-1),ee("span",{class:"block leading h-full leading-8 text-sm"},"Publish",-1)])),h(n).showDialog?(X(),F(Wg,{key:0,open:h(n).showDialog,"onUpdate:open":T[7]||(T[7]=x=>h(n).showDialog=x),onOnClose:v,class:"px-0 overflow-hidden pb-0 z-9000",layoutClass:"z-9000",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},IK({title:R(()=>[ee("span",{class:"px-6",onClick:T[1]||(T[1]=x=>{l.value="-1",r.value=!0})},"Publish a Model")]),default:R(()=>[xo(ee("div",Ywe,[P(Wc,{label:"Model Name"},{default:R(()=>[P(h(xO),{onChange:T[2]||(T[2]=x=>s.value.nameError=!1),class:ut({"border-red-500":s.value.nameError}),type:"text",placeholder:"Enter Model Name","model-value":s.value.name,"onUpdate:modelValue":T[3]||(T[3]=x=>s.value.name=x)},null,8,["class","model-value"])]),_:1}),P(Wc,{label:"Model Type"},{default:R(()=>[P(HI,{"onUpdate:open":T[4]||(T[4]=x=>s.value.typeError=!1),class:ut({"border-red-500":s.value.typeError}),"model-value":s.value.type,"onUpdate:modelValue":T[5]||(T[5]=x=>s.value.type=x),placeholder:"Select Model Type"},{default:R(()=>[(X(!0),Xe(Ot,null,kr(a.value,(x,Q)=>(X(),F(h(ZI),{key:Q,value:x.value},{default:R(()=>[Ze(tt(x.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["class","model-value"])]),_:1}),P(h(Nr),{class:"w-full mt-3",onClick:_},{default:R(()=>T[9]||(T[9]=[Ze("Next Step")])),_:1})],512),[[gl,r.value]]),P(h(ele),{type:"single",collapsible:"","default-value":"0",class:"w-full","onUpdate:modelValue":[E,T[6]||(T[6]=x=>l.value=x)],"model-value":l.value},{default:R(()=>[(X(!0),Xe(Ot,null,kr(s.value.versions,(x,Q)=>(X(),F(h(nle),{class:"bg-[#353535] z-1 px-6 w-full rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px]",key:Q,value:`${Q}`},{default:R(()=>[P(yle,{class:"justify-between relative"},{default:R(()=>[l.value!==`${Q}`&&x.version?(X(),Xe("span",Wwe,tt(x.version),1)):(X(),Xe("span",Vwe,"Add Version")),s.value.versions.length!==1?(X(),F(h(Soe),{key:2,class:"w-4 h-4",onClickCapture:cr(w=>p(Q),["stop"])},null,8,["onClickCapture"])):St("",!0),x.progress&&l.value&&l.value!==`${Q}`?(X(),F(h(jI),{key:3,"model-value":x.progress,class:"absolute w-full bottom-0 left-0 h-1"},null,8,["model-value"])):St("",!0)]),_:2},1024),P(h(tle),null,{default:R(()=>[P(Wc,{label:"Version Name"},{default:R(()=>[P(h(xO),{onChange:w=>x.versionError=!1,class:ut({"border-red-500":x.versionError}),type:"text",placeholder:"Version Name","model-value":x.version,"onUpdate:modelValue":w=>x.version=w},null,8,["onChange","class","model-value","onUpdate:modelValue"])]),_:2},1024),P(Wc,{label:"Base Model"},{default:R(()=>[P(HI,{"onUpdate:open":w=>x.baseModelError=!1,class:ut({"border-red-500":x.baseModelError}),"model-value":x.base_model,"onUpdate:modelValue":w=>x.base_model=w,placeholder:"Select Base Model"},{default:R(()=>[(X(!0),Xe(Ot,null,kr(o.value,(w,k)=>(X(),F(h(ZI),{key:k,value:w.value},{default:R(()=>[Ze(tt(w.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["onUpdate:open","class","model-value","onUpdate:modelValue"])]),_:2},1024),P(Wc,{label:"Introduction"},{default:R(()=>[P(Awe,{modelValue:x.intro,"onUpdate:modelValue":w=>x.intro=w,modelModifiers:{modelValue:!0},editorId:`myeditor${Q}`},null,8,["modelValue","onUpdate:modelValue","editorId"])]),_:2},1024),P(Wc,{label:""},{default:R(()=>[ee("div",Fwe,[P(h(dle),{id:"airplane-mode","onUpdate:checked":w=>{O(w,Q)}},null,8,["onUpdate:checked"]),P(h(Ole),{for:"airplane-mode"},{default:R(()=>T[10]||(T[10]=[Ze("Publicly Visible")])),_:1})])]),_:2},1024),P(Wc,{label:"File Path"},{default:R(()=>[ee("div",Gwe,[P(h(xO),{class:ut({"border-red-500":x.filePathError}),type:"text",onChange:w=>f(x.filePath,Q),placeholder:"File Path",disabled:typeof x.progress=="number"&&x.progress!==100,"model-value":x.filePath,"onUpdate:modelValue":w=>x.filePath=w},null,8,["class","onChange","disabled","model-value","onUpdate:modelValue"]),P(h(Nr),{onClick:w=>b(x,Q),class:"ml-2",disabled:!x.progress||x.progress==100},{default:R(()=>T[11]||(T[11]=[Ze("interrupt")])),_:2},1032,["onClick","disabled"])])]),_:2},1024),x.progress?(X(),Xe("div",Bwe,[P(h(jI),{"model-value":x.progress,class:"mt-4 h-3"},null,8,["model-value"]),ee("p",Zwe,tt(x.progress)+"% Uploaded",1)])):St("",!0)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"]),c.value?(X(),Xe("div",Hwe)):St("",!0)]),_:2},[r.value?void 0:{name:"foot",fn:R(()=>[ee("div",jwe,[P(h(Nr),{variant:"outline",class:"",onClick:m},{default:R(()=>T[12]||(T[12]=[Ze("Add Version")])),_:1}),P(h(Nr),{disabled:u.value,onClick:y},{default:R(()=>T[13]||(T[13]=[Ze("Publish")])),_:1},8,["disabled"])])]),key:"0"}]),1032,["open"])):St("",!0)],64))}}),Jwe=q({__name:"index",setup(e){const t=j({"Remote Folders":"1",Upload:"2"});return fetch("api/bizyair/news",{method:"GET"}).then(n=>n.json()).then(n=>{t.value=n}),(n,r)=>(X(),F(EI,{show_cases:t.value,buttonText:"News",icon:"book-open",isJson:!0},{default:R(()=>r[0]||(r[0]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 32 32"},[ee("path",{fill:"#ddd",d:"M11 23a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zm-1-3a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1m1-5a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zM5 5a3 3 0 0 1 3-3h10.172a3 3 0 0 1 2.12.879l5.83 5.828A3 3 0 0 1 27 10.828V27a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V12h-5a3 3 0 0 1-3-3V4zm12 6h4.586L19 4.414V9a1 1 0 0 0 1 1"})],-1)])),_:1},8,["show_cases"]))}}),eRe={class:"comfy-modal-content-sml"},tRe={class:"py-2"},nRe=q({__name:"apiKeyDialog",setup(e){const t=Kf(),n=j(""),r=j(!1),i=async c=>{const f=window.open("https://account.siliconflow.cn/oauth?client_id=SFaJLLq0y6CAMoyDm81aMu","oauthPopup","width=600,height=600");window.addEventListener("message",p=>{p.data.length>0&&p.data[0].secretKey!==void 0&&(c(p.data[0].secretKey),f&&f.close())})};function a(){r.value=!1}async function o(){if(!n.value)return r.value=!0,!1;const c=await fse(`api_key=${encodeURIComponent(n.value)}`);c.ok?(xt("API Key set successfully!"),t.handleApiKeyDialog(!1),t.loginRefresh()):xt.error(`Failed to set API Key: ${await c.text()}`)}function s(){t.handleApiKeyDialog(!1),n.value="",r.value=!1}function l(){i(c=>{n.value=c})}return(c,u)=>(X(),F(Wg,{open:h(t).showApiKeyDialog,"onUpdate:open":u[1]||(u[1]=O=>h(t).showApiKeyDialog=O),layoutClass:"z-9000",class:"max-w-[680px] z-9000",onOnClose:u[2]||(u[2]=O=>h(t).handleApiKeyDialog(!1))},{title:R(()=>u[3]||(u[3]=[Ze("Set API Key")])),foot:R(()=>[P(h(Nr),{type:"submit",onClick:o},{default:R(()=>u[8]||(u[8]=[Ze("Submit")])),_:1}),P(h(Nr),{variant:"outline",onClick:s},{default:R(()=>u[9]||(u[9]=[Ze("Close")])),_:1})]),default:R(()=>[ee("div",eRe,[P(h(xO),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=O=>n.value=O),type:"password",placeholder:"API Key",class:ut([{"border-red-500":r.value}]),onInput:a},null,8,["modelValue","class"]),ee("p",tRe,[u[4]||(u[4]=Ze(" Please ")),ee("a",{class:"underline",href:"###",onClick:cr(l,["prevent"])},"click to login"),u[5]||(u[5]=Ze(" and autofill the key, "))]),u[6]||(u[6]=ee("p",{class:"py-2"},[Ze(" or visit "),ee("a",{class:"underline",href:"https://cloud.siliconflow.cn",target:"_blank"},"https://cloud.siliconflow.cn"),Ze(" to get your key and input manually. ")],-1)),u[7]||(u[7]=ee("p",{class:"py-2"},[Ze(" Setting the API Key signifies agreement to the "),ee("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/user-agreement",target:"_blank"},"User Agreement"),Ze(" and "),ee("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/privacy-policy",target:"_blank"},"Privacy Policy.")],-1))])]),_:1},8,["open"]))}}),rRe=q({__name:"App",setup(e){const t=Kf();return t.loginRefresh(),t.sendSocket(),(n,r)=>(X(),Xe(Ot,null,[P(Noe),h(t).isLogin?(X(),F(Jse,{key:0})):(X(),F(vse,{key:1})),P(Kwe),P(Jwe),P(nRe)],64))}}),x4=q({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=It(e,t);return(a,o)=>(X(),F(h(Sae),vt(Et(h(i))),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))}}),iRe=q({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(vae),be({class:h(Be)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),Q4=q({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(yae),be(n.value,{class:h(Be)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),aRe={class:"truncate"},P4=q({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:i,...a}=t;return a}),r=Er(n);return(i,a)=>(X(),F(h(Eae),be(h(r),{class:h(Be)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:R(()=>[ee("span",aRe,[Z(i.$slots,"default")])]),_:3},16,["class"]))}}),Vw=q({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",{class:ut(h(Be)(h(oRe)({variant:n.variant}),t.class))},[Z(n.$slots,"default")],2))}}),oRe=iT("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),dS=q({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const i=It(e,t);return(a,o)=>(X(),F(h(Oie),vt(Et(h(i))),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))}}),fS=q({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(fie),null,{default:R(()=>[P(h(hie),be({...h(a),...o.$attrs},{class:h(Be)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),pS=q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(die),vt(Et(t)),{default:R(()=>[Z(n.$slots,"default")]),_:3},16))}}),mS=q({__name:"Command",props:{modelValue:{default:""},defaultValue:{},open:{type:Boolean,default:!0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(lre),be(h(a),{class:h(Be)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"]))}}),$m=q({__name:"CommandGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(ure),be(n.value,{class:h(Be)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t.class)}),{default:R(()=>[r.heading?(X(),F(h(Ore),{key:0,class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:R(()=>[Ze(tt(r.heading),1)]),_:1})):St("",!0),Z(r.$slots,"default")]),_:3},16,["class"]))}}),js=q({__name:"CommandItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(gre),be(h(a),{class:h(Be)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"]))}}),sRe={role:"presentation"},hS=q({__name:"CommandList",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!1},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(pre),be(h(a),{class:h(Be)("max-h-[300px] overflow-y-auto overflow-x-hidden",n.class)}),{default:R(()=>[ee("div",sRe,[Z(o.$slots,"default")])]),_:3},16,["class"]))}}),Fw=q({__name:"CommandSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(_re),be(n.value,{class:h(Be)("-mx-1 h-px bg-border",t.class)}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),lRe={class:"flex space-x-2 mb-4"},cRe={class:"relative flex-1"},uRe={class:"flex flex-wrap gap-2"},ORe={class:"flex flex-wrap gap-2"},dRe=q({__name:"ModelFilterBar",props:{showSortPopover:{type:Boolean}},emits:["update:showSortPopover","fetchData"],setup(e,{emit:t}){const n=Vc(),r=j([]),i=t,a=c=>{n.filterState.sort=c,i("fetchData"),i("update:showSortPopover",!1)},o=c=>{if(n.selectedBaseModels.length!==0)return;const u=[...n.filterState.model_types],O=u.indexOf(c);O===-1?u.push(c):u.splice(O,1),n.filterState.model_types=u,i("fetchData"),i("update:showSortPopover",!1)},s=c=>{const u=r.value.indexOf(c);u===-1?r.value.push(c):r.value.splice(u,1);const O=[...n.filterState.base_models],d=O.indexOf(c);d===-1?O.push(c):O.splice(d,1),n.filterState.base_models=O,i("fetchData"),i("update:showSortPopover",!1)},l=()=>{n.modelListPathParams.current=1,i("fetchData"),i("update:showSortPopover",!1)};return Je(async()=>{n.selectedBaseModels&&(r.value=[...n.selectedBaseModels])}),(c,u)=>{const O=NK("debounce");return X(),Xe("div",lRe,[ee("div",cRe,[xo(P(h(xO),{modelValue:h(n).filterState.keyword,"onUpdate:modelValue":u[0]||(u[0]=d=>h(n).filterState.keyword=d),placeholder:"Filter by name",class:"h-[44px] border border-[#9CA3AF] w-full bg-[#222] rounded-lg pr-8 pl-8"},null,8,["modelValue"]),[[O,l]]),u[5]||(u[5]=ee("span",{class:"absolute start-0 inset-y-0 flex items-center justify-center px-2"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"hover:brightness-150 transition-all duration-300"},[ee("path",{d:"M14 14L11.1333 11.1333M12.6667 7.33333C12.6667 10.2789 10.2789 12.6667 7.33333 12.6667C4.38781 12.6667 2 10.2789 2 7.33333C2 4.38781 4.38781 2 7.33333 2C10.2789 2 12.6667 4.38781 12.6667 7.33333Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),P(h(dS),{class:"bg-[#353535] z-[5100]",open:c.showSortPopover,"onUpdate:open":u[4]||(u[4]=d=>i("update:showSortPopover",d))},{default:R(()=>[P(h(pS),null,{default:R(()=>[P(h(Nr),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer group"},{default:R(()=>u[6]||(u[6]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M2 10.6667L4.66667 13.3334M4.66667 13.3334L7.33333 10.6667M4.66667 13.3334V2.66675M7.33333 2.66675H14M7.33333 5.33341H12M7.33333 8.00008H10",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"recently",onClick:u[1]||(u[1]=d=>a("Recently")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Recently"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[7]||(u[7]=[Ze(" Recently ")])),_:1},8,["class"]),["my","my_fork"].includes(h(n).mode)?St("",!0):(X(),F(h(js),{key:0,value:"most-forked",onClick:u[2]||(u[2]=d=>a("Most Forked")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Most Forked"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[8]||(u[8]=[Ze(" Most Forked ")])),_:1},8,["class"])),["my","my_fork"].includes(h(n).mode)?St("",!0):(X(),F(h(js),{key:1,value:"most-used",onClick:u[3]||(u[3]=d=>a("Most Used")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Most Used"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[9]||(u[9]=[Ze(" Most Used ")])),_:1},8,["class"]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),P(h(dS),{class:"z-[5100]"},{default:R(()=>[P(h(pS),null,{default:R(()=>[P(h(Nr),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer"},{default:R(()=>u[10]||(u[10]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"mr-2"},[ee("path",{d:"M14.6666 2H1.33325L6.66658 8.30667V12.6667L9.33325 14V8.30667L14.6666 2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[200px] p-0 bg-[#222] rounded-lg"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[u[11]||(u[11]=ee("div",{class:"p-2"},[ee("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Model Types")],-1)),P(h(js),{value:"model-types",class:"p-2"},{default:R(()=>[ee("div",uRe,[(X(!0),Xe(Ot,null,kr(h(n).modelTypes,d=>(X(),F(h(Vw),{variant:"secondary",key:d.value,onClick:f=>o(d.value),class:ut(["cursor-not-allowed hover:!bg-inherit",h(n).filterState.model_types.includes(d.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:R(()=>[Ze(tt(d.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1}),P(h(Fw)),P(h($m),null,{default:R(()=>[u[12]||(u[12]=ee("div",{class:"p-2"},[ee("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Base Models")],-1)),P(h(js),{value:"base-models",class:"p-2"},{default:R(()=>[ee("div",ORe,[(X(!0),Xe(Ot,null,kr(h(n).baseModelTypes.filter(d=>{var f;return(f=h(n).selectedBaseModels)==null?void 0:f.includes(d.value)}),d=>(X(),F(h(Vw),{variant:"secondary",key:d.value,onClick:f=>s(d.value),class:ut(["cursor-pointer hover:!bg-inherit",h(n).filterState.base_models.includes(d.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:R(()=>[Ze(tt(d.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}}),fRe=q({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(tie),be(n.value,{class:h(Be)("w-9 h-9 flex items-center justify-center",t.class)}),{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(boe))])]),_:3},16,["class"]))}}),pRe=q({__name:"PaginationFirst",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(nie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(moe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),mRe=q({__name:"PaginationLast",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(rie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(hoe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),hRe=q({__name:"PaginationNext",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(lie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(SI),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),gRe=q({__name:"PaginationPrev",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(cie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(foe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),_Re={key:0},bRe=Vg(q({__name:"ModelPagination",emits:["change"],setup(e,{emit:t}){const n=Vc(),r=ie(()=>n.modelListPathParams.total/n.modelListPathParams.page_size>1),i=t,a=o=>{n.modelListPathParams.current=o,i("change")};return(o,s)=>r.value?(X(),Xe("div",_Re,[P(h(eie),{total:h(n).modelListPathParams.total,"page-size":h(n).modelListPathParams.page_size,"default-page":h(n).modelListPathParams.current,"sibling-count":1,"show-edges":"","onUpdate:page":a},{default:R(({page:l})=>[P(h(oie),{class:"flex items-center gap-1"},{default:R(({items:c})=>[P(h(pRe),{class:"pagination-button"}),P(h(gRe),{class:"pagination-button"}),(X(!0),Xe(Ot,null,kr(c,(u,O)=>(X(),Xe(Ot,null,[u.type==="page"?(X(),F(h(sie),{key:O,value:u.value,"as-child":""},{default:R(()=>[P(h(Nr),{class:"pagination-button page-button",variant:u.value===l?"default":"ghost"},{default:R(()=>[Ze(tt(u.value),1)]),_:2},1032,["variant"])]),_:2},1032,["value"])):(X(),F(h(fRe),{key:u.type,index:O,class:"pagination-button"},null,8,["index"]))],64))),256)),P(h(hRe),{class:"pagination-button"}),P(h(mRe),{class:"pagination-button"})]),_:2},1024)]),_:1},8,["total","page-size","default-page"])])):St("",!0)}}),[["__scopeId","data-v-5a6c0ec9"]]),SRe={class:"relative w-full overflow-auto"},yRe=q({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",SRe,[ee("table",{class:ut(h(Be)("w-full caption-bottom text-sm",t.class))},[Z(n.$slots,"default")],2)]))}}),vRe=q({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("tbody",{class:ut(h(Be)("[&_tr:last-child]:border-0",t.class))},[Z(n.$slots,"default")],2))}}),Vi=q({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("td",{class:ut(h(Be)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[Z(n.$slots,"default")],2))}}),xm=q({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("tr",{class:ut(h(Be)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t.class))},[Z(n.$slots,"default")],2))}}),gS=q({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("th",{class:ut(h(Be)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[Z(n.$slots,"default")],2))}}),ERe=q({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("thead",{class:ut(h(Be)("[&_tr]:border-b",t.class))},[Z(n.$slots,"default")],2))}}),to=q({__name:"Skeleton",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",{class:ut(h(Be)("animate-pulse rounded-md bg-muted",t.class))},null,2))}}),w4=q({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(Aie),be(n.value,{class:h(Be)("flex touch-none select-none transition-colors",r.orientation==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",r.orientation==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",t.class)}),{default:R(()=>[P(h(Nie),{class:"relative flex-1 rounded-full bg-border"})]),_:1},16,["class"]))}}),TRe=q({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(Tie),be(n.value,{class:h(Be)("relative overflow-hidden",t.class)}),{default:R(()=>[P(h($ie),{class:"h-full w-full rounded-[inherit]"},{default:R(()=>[Z(r.$slots,"default")]),_:3}),P(w4),P(h(Xie))]),_:3},16,["class"]))}}),$Re=q({__name:"Avatar",props:{class:{},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,r)=>(X(),F(h(jne),{class:ut(h(Be)(h(PRe)({size:n.size,shape:n.shape}),t.class))},{default:R(()=>[Z(n.$slots,"default")]),_:3},8,["class"]))}}),xRe=q({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(Jne),vt(Et(t)),{default:R(()=>[Z(n.$slots,"default")]),_:3},16))}}),QRe=q({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(Kne),be(t,{class:"h-full w-full object-cover"}),null,16))}}),PRe=iT("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),wRe={key:0,class:"p-6 pb-12 flex flex-col gap-4 items-start justify-start min-w-[1000px] relative shadow-[0px_20px_40px_0px_rgba(0,0,0,0.25)]"},RRe={class:"flex flex-col gap-1.5 items-start justify-start self-stretch shrink-0 relative"},kRe={class:"flex flex-row gap-2 items-center justify-start self-stretch shrink-0 relative"},CRe={class:"text-text-text-foreground text-left font-['Inter-SemiBold',_sans-serif] text-lg leading-[18px] font-semibold relative",style:{"letter-spacing":"-0.025em"}},DRe={class:"flex flex-row gap-1 items-start justify-start shrink-0 relative"},ARe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},NRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},IRe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},XRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},LRe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},MRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},URe={class:"flex flex-row gap-1 items-center justify-start self-stretch shrink-0 relative"},zRe={class:"bg-[#4e4e4e] rounded-lg p-1 flex flex-row gap-4 items-start justify-start self-stretch shrink-0 relative"},qRe={class:"min-w-[200px] max-w-[600px]"},YRe={class:"whitespace-nowrap"},WRe={class:"flex gap-8"},VRe={class:"flex flex-row gap-4 items-start justify-start shrink-0 relative"},FRe={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},GRe={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},BRe={class:"flex flex-row gap-8 items-start justify-start self-stretch flex-1 relative"},ZRe={class:"flex flex-col gap-4 items-start justify-start relative min-w-[620px] w-[65%] overflow-hidden"},jRe={class:"w-full min-h-[80vh]"},HRe={key:1,class:"w-full h-[80vh] bg-[#353535] rounded-tl-lg rounded-tr-lg"},KRe={class:"flex flex-col gap-6 items-start justify-start w-[40%] relative"},JRe={class:"pb-8 flex flex-col gap-6 items-start justify-start shrink-0 h-[97px] relative"},eke={class:"flex flex-row gap-2 items-center justify-start shrink-0 relative"},tke={class:"flex flex-row gap-1.5 items-start justify-start self-stretch shrink-0 relative"},nke={class:"rounded-[6px] border-solid border-[rgba(78,78,78,0.50)] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative text-[#F9FAFB] font-inter text-sm font-medium leading-5"},rke={className:"flex w-full text-gray-300 text-sm"},ike={className:"flex-1 p-4 border-b text-sm border-[rgba(78,78,78,0.50)]"},ake={className:"flex w-full"},oke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},ske={className:"flex w-full"},lke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},cke={className:"flex w-full"},uke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"},Oke={className:"flex w-full"},dke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex flex-row gap-2"},fke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},pke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},mke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},hke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},gke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},_ke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},bke={class:"rounded-md border-solid border-[#4e4e4e] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative"},Ske={class:"flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"},yke=Vg(q({__name:"Index",props:{modelId:{},version:{}},setup(e){const t=Vc(),n=j(),r=j(),i=j(!1),a=j(null),o=e,s=async()=>{const y=await T4({id:o.modelId,source:t.mode});if(!y.data){xt.error("Model not found."),t.closeAndReload();return}n.value=y.data,l()},l=()=>{var y;if(n.value&&n.value.versions&&n.value.versions.length>0)if((y=o.version)!=null&&y.id){const E=n.value.versions.find(v=>v.id===o.version.id);E&&(r.value={...E},nt(()=>{var v;p((v=o.version)==null?void 0:v.id)}))}else r.value={...n.value.versions[0]},nt(()=>{var E;(E=r.value)!=null&&E.id&&p(r.value.id)})};Je(async()=>{await s()});const c=y=>{var v,$;const E=($=(v=n.value)==null?void 0:v.versions)==null?void 0:$.find(T=>T.id===y);E&&(r.value=E)},u=()=>{i.value=!i.value},O=async()=>{var y;await zwe((y=r.value)==null?void 0:y.id),s()},d=async()=>{var y;await qwe((y=r.value)==null?void 0:y.id),await s()},f=y=>{nt(()=>{setTimeout(()=>{if(!a.value)return;const E=a.value.$el.querySelector("[data-radix-scroll-area-viewport]"),v=E==null?void 0:E.querySelector('[role="tablist"]'),$=v==null?void 0:v.querySelector(`[role="tab"].version-tab-${y}`);if(!E||!$||!v)return;const x=Array.from(v.querySelectorAll('[role="tab"]')).reduce((M,C)=>M+C.offsetWidth,0);v.style.width=`${x}px`;const Q=$.offsetLeft,w=E.clientWidth,k=$.offsetWidth,N=Math.max(0,Q-(w-k)/2);E.scrollTo({left:N,behavior:"smooth"})},100)})},p=y=>{setTimeout(()=>{f(y)},200)},m=async(y,E)=>{var v,$,T;if(y==="edit"&&(t.setModelDetail(n),t.setDialogStatus(!0,Number((v=r.value)==null?void 0:v.id)),i.value=!1),y==="remove"){if(!await Yg({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if(($=n.value)!=null&&$.versions&&((T=n.value)==null?void 0:T.versions.some(w=>w.public))){xt.warning("Model has public version, cannot remove."),i.value=!1;return}_(E)}},_=async y=>{try{await $4(y),xt.success("Model removed successfully."),t.reload+=1}catch(E){xt.error("Failed to remove model."),console.error("Error removing model:",E)}},g=()=>{r.value&&n.value&&t.setApplyObject(r.value,n.value)},b=async y=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(y||""),xt.success("Copied successfully.");else{const E=document.createElement("input");E.value=y||"",document.body.appendChild(E),E.select(),document.execCommand("copy"),document.body.removeChild(E)}}catch{xt.error("Copy failed.")}};return(y,E)=>{var v,$,T,x,Q,w,k,N,M,C,I,L,A,z,G,te,ne,se,ae,fe,K,ce,he,Pe,We,ft,mt,$t,an,U,B;return n.value?(X(),Xe("div",wRe,[ee("div",RRe,[ee("div",kRe,[ee("div",CRe,tt(h(eE)((v=n.value)==null?void 0:v.name,60)),1),ee("div",DRe,[ee("div",ARe,[E[3]||(E[3]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",NRe,tt(h(aO)((T=($=n.value)==null?void 0:$.counter)==null?void 0:T.used_count)),1)])]),ee("div",IRe,[E[4]||(E[4]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",XRe,tt(h(aO)((Q=(x=n.value)==null?void 0:x.counter)==null?void 0:Q.forked_count)),1)]),ee("div",LRe,[E[5]||(E[5]=ag('',1)),ee("div",MRe,tt(h(aO)((k=(w=n.value)==null?void 0:w.counter)==null?void 0:k.liked_count)),1)])]),ee("div",URe,[ee("div",zRe,[ee("div",qRe,[P(h(TRe),{ref_key:"scrollViewportRef",ref:a,class:"rounded-md w-full"},{default:R(()=>{var re,pe;return[ee("div",YRe,[P(h(x4),{defaultValue:(re=r.value)==null?void 0:re.id,value:(pe=r.value)==null?void 0:pe.id},{default:R(()=>[P(h(Q4),{class:"inline-flex h-12 bg-transparent text-sm w-auto"},{default:R(()=>{var de;return[(X(!0),Xe(Ot,null,kr((de=n.value)==null?void 0:de.versions,oe=>(X(),F(h(P4),{value:oe.id,onClick:Qe=>c(oe.id),class:ut([["version-tab",`version-tab-${oe.id}`],"text-sm text-white bg-[#9CA3AF] data-[state=active]:bg-[#7C3AED] data-[state=active]:text-white h-10 px-3 py-2 mx-1"])},{default:R(()=>[Ze(tt(oe.version),1)]),_:2},1032,["value","onClick","class"]))),256))]}),_:1})]),_:1},8,["defaultValue","value"])]),P(h(w4),{orientation:"horizontal"})]}),_:1},512)])]),E[10]||(E[10]=ee("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative flex-1"},null,-1)),ee("div",WRe,[(X(),Xe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer",onClick:O,style:ui({stroke:(N=r.value)!=null&&N.liked?"#6D28D9":"#F9FAFB",fill:(M=r.value)!=null&&M.liked?"#6D28D9":"none"})},E[6]||(E[6]=[ee("g",{"clip-path":"url(#clip0_440_1289)"},[ee("path",{d:"M4.66659 6.66658V14.6666M9.99992 3.91992L9.33325 6.66658H13.2199C13.4269 6.66658 13.6311 6.71478 13.8162 6.80735C14.0013 6.89992 14.1624 7.03432 14.2866 7.19992C14.4108 7.36551 14.4947 7.55775 14.5317 7.7614C14.5688 7.96506 14.5579 8.17454 14.4999 8.37325L12.9466 13.7066C12.8658 13.9835 12.6974 14.2268 12.4666 14.3999C12.2358 14.573 11.9551 14.6666 11.6666 14.6666H2.66659C2.31296 14.6666 1.97382 14.5261 1.72378 14.2761C1.47373 14.026 1.33325 13.6869 1.33325 13.3333V7.99992C1.33325 7.6463 1.47373 7.30716 1.72378 7.05711C1.97382 6.80706 2.31296 6.66658 2.66659 6.66658H4.50659C4.75464 6.66645 4.99774 6.59713 5.20856 6.4664C5.41937 6.33567 5.58953 6.14873 5.69992 5.92659L7.99992 1.33325C8.3143 1.33715 8.62374 1.41203 8.90512 1.55232C9.1865 1.6926 9.43254 1.89466 9.62486 2.14339C9.81717 2.39212 9.9508 2.68109 10.0157 2.98872C10.0807 3.29635 10.0753 3.61468 9.99992 3.91992Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ee("defs",null,[ee("clipPath",{id:"clip0_440_1289"},[ee("rect",{width:"16",height:"16",fill:"white"})])],-1)]),4)),h(t).mode==="my"||h(t).mode==="my_fork"?(X(),F(h(dS),{key:0,class:"bg-[#353535]",open:i.value,"onUpdate:open":u},{default:R(()=>[P(h(pS),null,{default:R(()=>E[7]||(E[7]=[ee("div",{class:"flex justify-center items-center rounded-md w-8 relative z-50"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer"},[ee("path",{d:"M8.66659 7.99992C8.66659 7.63173 8.36811 7.33325 7.99992 7.33325C7.63173 7.33325 7.33325 7.63173 7.33325 7.99992C7.33325 8.36811 7.63173 8.66659 7.99992 8.66659C8.36811 8.66659 8.66659 8.36811 8.66659 7.99992Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),ee("path",{d:"M8.66659 3.33325C8.66659 2.96506 8.36811 2.66658 7.99992 2.66658C7.63173 2.66658 7.33325 2.96506 7.33325 3.33325C7.33325 3.70144 7.63173 3.99992 7.99992 3.99992C8.36811 3.99992 8.66659 3.70144 8.66659 3.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),ee("path",{d:"M8.66659 12.6666C8.66659 12.2984 8.36811 11.9999 7.99992 11.9999C7.63173 11.9999 7.33325 12.2984 7.33325 12.6666C7.33325 13.0348 7.63173 13.3333 7.99992 13.3333C8.36811 13.3333 8.66659 13.0348 8.66659 12.6666Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-[9000]"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"edit",onClick:E[0]||(E[0]=re=>{var pe;return m("edit",(pe=n.value)==null?void 0:pe.id)}),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>E[8]||(E[8]=[Ze(" Edit ")])),_:1}),P(h(Fw)),P(h(js),{value:"remove",onClick:E[1]||(E[1]=re=>{var pe;return m("remove",(pe=n.value)==null?void 0:pe.id)}),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>E[9]||(E[9]=[Ze(" Remove ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):St("",!0)])]),ee("div",VRe,[ee("div",FRe," First Published: "+tt((C=r.value)==null?void 0:C.created_at),1),ee("div",GRe," Last Updated: "+tt((I=r.value)==null?void 0:I.updated_at),1)])]),ee("div",BRe,[ee("div",ZRe,[ee("div",jRe,[(L=r.value)!=null&&L.intro?(X(),F(h(Tp),{key:0,id:"previewRef",modelValue:(A=r.value)==null?void 0:A.intro,noImgZoomIn:!0,preview:!0,theme:"dark",class:"bg-[#353535] w-full min-h-[80vh]"},null,8,["modelValue"])):(X(),Xe("div",HRe,E[11]||(E[11]=[ee("div",{class:"flex justify-center items-center h-full"},[ee("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"}," No introduction yet ")],-1)])))])]),ee("div",KRe,[ee("div",JRe,[ee("div",eke,[P(h($Re),null,{default:R(()=>[P(h(QRe),{src:"https://github.com/radix-vue.png",alt:"@radix-vue"}),P(h(xRe),null,{default:R(()=>{var re;return[Ze(tt((re=n.value)==null?void 0:re.user_name.slice(0,2)),1)]}),_:1})]),_:1}),Ze(" "+tt((z=n.value)==null?void 0:z.user_name),1)]),ee("div",tke,[h(t).mode==="publicity"?(X(),F(h(Nr),{key:0,variant:"default",class:"w-[124px] flex h-9 px-3 py-2 justify-center items-center gap-2 flex-1 rounded-md bg-[#6D28D9]",onClick:d,disabled:(G=r.value)==null?void 0:G.forked},{default:R(()=>{var re;return[Ze(tt((re=r.value)!=null&&re.forked?"Forked":"Fork"),1)]}),_:1},8,["disabled"])):St("",!0),P(h(Nr),{onClick:g,class:"flex w-[170px] px-8 py-2 justify-center items-center gap-2 bg-[#F43F5E] hover:bg-[#F43F5E]/90 rounded-[6px]"},{default:R(()=>E[12]||(E[12]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[ee("path",{d:"M6.49988 7.9999L7.83322 9.33324L10.4999 6.66657M3.06655 5.74657C2.96925 5.30825 2.98419 4.85246 3.10999 4.42146C3.23579 3.99046 3.46838 3.5982 3.7862 3.28105C4.10401 2.9639 4.49676 2.73213 4.92802 2.60723C5.35929 2.48233 5.81511 2.46835 6.25322 2.56657C6.49436 2.18944 6.82655 1.87907 7.21919 1.66409C7.61182 1.44911 8.05225 1.33643 8.49988 1.33643C8.94752 1.33643 9.38795 1.44911 9.78058 1.66409C10.1732 1.87907 10.5054 2.18944 10.7466 2.56657C11.1853 2.46792 11.6419 2.48184 12.0739 2.60704C12.5058 2.73225 12.8991 2.96466 13.2171 3.28267C13.5351 3.60068 13.7675 3.99395 13.8927 4.4259C14.0179 4.85786 14.0319 5.31446 13.9332 5.75324C14.3104 5.99437 14.6207 6.32657 14.8357 6.7192C15.0507 7.11183 15.1634 7.55227 15.1634 7.9999C15.1634 8.44754 15.0507 8.88797 14.8357 9.2806C14.6207 9.67323 14.3104 10.0054 13.9332 10.2466C14.0314 10.6847 14.0175 11.1405 13.8926 11.5718C13.7677 12.003 13.5359 12.3958 13.2187 12.7136C12.9016 13.0314 12.5093 13.264 12.0783 13.3898C11.6473 13.5156 11.1915 13.5305 10.7532 13.4332C10.5124 13.8118 10.1799 14.1235 9.78663 14.3394C9.39333 14.5554 8.9519 14.6686 8.50322 14.6686C8.05453 14.6686 7.6131 14.5554 7.2198 14.3394C6.8265 14.1235 6.49404 13.8118 6.25322 13.4332C5.81511 13.5315 5.35929 13.5175 4.92802 13.3926C4.49676 13.2677 4.10401 13.0359 3.7862 12.7188C3.46838 12.4016 3.23579 12.0093 3.10999 11.5783C2.98419 11.1473 2.96925 10.6916 3.06655 10.2532C2.68652 10.0127 2.37349 9.68002 2.15658 9.28605C1.93967 8.89207 1.82593 8.44964 1.82593 7.9999C1.82593 7.55016 1.93967 7.10773 2.15658 6.71376C2.37349 6.31979 2.68652 5.98707 3.06655 5.74657Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Ze("Apply")])),_:1})])]),ee("div",nke,[ee("div",rke,[E[13]||(E[13]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Type",-1)),ee("div",ike,[ee("span",{class:ut(`${(te=n.value)==null?void 0:te.type} inline-flex px-[10px] py-[2px] items-start gap-[10px] rounded-[9999px] relative overflow-hidden`)},tt((ne=n.value)==null?void 0:ne.type),3)])]),ee("div",ake,[E[14]||(E[14]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-sm border-b border-[rgba(78,78,78,0.50)] whitespace-nowrap"}," Base Model",-1)),ee("div",oke,tt((se=r.value)==null?void 0:se.base_model),1)]),ee("div",ske,[E[15]||(E[15]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Published",-1)),ee("div",lke,tt((ae=r.value)==null?void 0:ae.created_at),1)]),ee("div",cke,[E[17]||(E[17]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Hash",-1)),ee("div",uke,[ee("span",null,tt((fe=r.value)!=null&&fe.sign?h(eE)((K=r.value)==null?void 0:K.sign,15):""),1),(ce=r.value)!=null&&ce.sign?(X(),Xe("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer hover:opacity-80",onClick:E[2]||(E[2]=re=>{var pe;return b(((pe=r.value)==null?void 0:pe.sign)||"")})},E[16]||(E[16]=[ee("g",{"clip-path":"url(#clip0_315_3710)"},[ee("path",{d:"M2.66659 10.6666C1.93325 10.6666 1.33325 10.0666 1.33325 9.33325V2.66659C1.33325 1.93325 1.93325 1.33325 2.66659 1.33325H9.33325C10.0666 1.33325 10.6666 1.93325 10.6666 2.66659M6.66658 5.33325H13.3333C14.0696 5.33325 14.6666 5.93021 14.6666 6.66658V13.3333C14.6666 14.0696 14.0696 14.6666 13.3333 14.6666H6.66658C5.93021 14.6666 5.33325 14.0696 5.33325 13.3333V6.66658C5.33325 5.93021 5.93021 5.33325 6.66658 5.33325Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ee("defs",null,[ee("clipPath",{id:"clip0_315_3710"},[ee("rect",{width:"16",height:"16",fill:"white"})])],-1)]))):St("",!0)])]),ee("div",Oke,[E[21]||(E[21]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-gray-300 border-b border-[rgba(78,78,78,0.50)]"}," Stats",-1)),ee("div",dke,[ee("div",fke,[E[18]||(E[18]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",pke,tt(h(aO)((Pe=(he=r.value)==null?void 0:he.counter)==null?void 0:Pe.used_count)),1)]),ee("div",mke,[E[19]||(E[19]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",hke,tt(h(aO)((ft=(We=r.value)==null?void 0:We.counter)==null?void 0:ft.forked_count)),1)]),ee("div",gke,[E[20]||(E[20]=ag('',1)),ee("div",_ke,tt(h(aO)(($t=(mt=r.value)==null?void 0:mt.counter)==null?void 0:$t.liked_count)),1)])])])]),ee("div",bke,[E[22]||(E[22]=ee("div",{class:"bg-[#424242] rounded-md flex items-center justify-start self-stretch shrink-0 relative h-[44px] pl-2"}," File ",-1)),ee("div",Ske,tt((an=r.value)!=null&&an.file_name?h(eE)((U=r.value)==null?void 0:U.file_name,20):"")+" ("+tt(h(_ee)((B=r.value)==null?void 0:B.file_size))+") ",1)])])])])):St("",!0)}}}),[["__scopeId","data-v-dfd2cddd"]]),vke={class:"text-sm text-white-500 flex items-center min-w-0"},Eke={class:"truncate flex-1"},Tke={class:"flex-shrink-0 ml-2"},$ke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},xke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Qke=q({__name:"ModelVersionRow",props:{version:{},model:{}},setup(e){const t=Vc(),n=j(!1);xe(()=>t.reload,(a,o)=>{a!==o&&(n.value=!1)},{deep:!0});const r=(a,o)=>{t.setApplyObject(a,o)},i=()=>{n.value=!0};return(a,o)=>(X(),Xe(Ot,null,[P(h(xm),{class:"bg-[#3D3D3D] hover:bg-[#4E4E4E] hover:cursor-pointer border-[#F9FAFB]/60 h-12",onClick:i},{default:R(()=>[P(h(Vi),{class:"pl-10 w-[55%] max-w-[200px]"},{default:R(()=>[ee("div",vke,[ee("span",Eke,tt(a.version.version),1),ee("div",Tke,[a.version.public?(X(),Xe("svg",$ke,o[2]||(o[2]=[ee("path",{d:"M1.33325 8.49992C1.33325 8.49992 3.33325 3.83325 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.6666 8.49992 12.6666 13.1666 7.99992 13.1666C3.33325 13.1666 1.33325 8.49992 1.33325 8.49992Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ee("path",{d:"M7.99992 10.4999C9.10449 10.4999 9.99992 9.60449 9.99992 8.49992C9.99992 7.39535 9.10449 6.49992 7.99992 6.49992C6.89535 6.49992 5.99992 7.39535 5.99992 8.49992C5.99992 9.60449 6.89535 10.4999 7.99992 10.4999Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(X(),Xe("svg",xke,o[3]||(o[3]=[ee("path",{d:"M6.58658 7.08659C6.39009 7.26968 6.23248 7.49048 6.12317 7.73582C6.01386 7.98115 5.95508 8.24598 5.95034 8.51452C5.9456 8.78307 5.995 9.04981 6.09559 9.29884C6.19618 9.54788 6.3459 9.7741 6.53582 9.96402C6.72573 10.1539 6.95196 10.3037 7.20099 10.4042C7.45003 10.5048 7.71677 10.5542 7.98531 10.5495C8.25385 10.5448 8.51869 10.486 8.76402 10.3767C9.00935 10.2674 9.23015 10.1097 9.41325 9.91325M7.15325 3.88659C7.43412 3.85159 7.71687 3.83378 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.3685 9.138 13.9947 9.73787 13.5533 10.2866M4.40659 4.90659C3.08075 5.80967 2.01983 7.05009 1.33325 8.49992C1.33325 8.49992 3.33325 13.1666 7.99992 13.1666C9.27719 13.17 10.5271 12.7967 11.5933 12.0933M1.33325 1.83325L14.6666 15.1666",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])])]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[Ze(tt(a.version.base_model),1)]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[Ze(tt(a.version.available?"Available":"Unavailable"),1)]),_:1}),P(h(Vi),{class:"w-[15%] flex justify-start"},{default:R(()=>[P(h(Nr),{variant:"default",onClick:o[0]||(o[0]=cr(s=>r(a.version,a.model),["stop"])),disabled:!a.version.available,class:ut({"opacity-50":!a.version.available})},{default:R(()=>o[4]||(o[4]=[Ze(" Apply ")])),_:1},8,["disabled","class"])]),_:1})]),_:1}),P(Wg,{open:n.value,"onUpdate:open":o[1]||(o[1]=s=>n.value=s),class:"max-w-full h-screen px-6 overflow-hidden pb-6 z-[8000]",contentClass:"custom-scrollbar max-h-[100vh-120px] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow",title:a.model.name},{default:R(()=>[P(h(yke),{modelId:a.model.id,version:a.version},null,8,["modelId","version"])]),_:1},8,["open","title"])],64))}}),Pke={class:"flex items-center space-x-2"},wke={class:"flex justify-end"},Rke={class:"flex items-center space-x-2"},kke={class:"text-sm"},Cke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Dke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Ake={class:"flex justify-end h-full"},Nke={key:1,class:"w-8 h-8"},Ike={class:"w-full flex justify-center mt-8"},Xke={key:0,class:"flex items-center gap-1"},Lke=q({__name:"ModelTable",props:{models:{type:Array,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=Vc(),n=e,r=j(new Set),i=j("");Je(()=>{n.models.length>0&&r.value.add(n.models[0].name)}),xe(()=>n.models,l=>{l.length>0&&(r.value.clear(),r.value.add(l[0].name))},{deep:!0});const a=l=>{r.value.has(l)?r.value.delete(l):r.value.add(l)},o=async(l,c)=>{const{id:u,name:O,versions:d}=c;if(i.value=O,l==="edit"){const f=await T4({id:c.id,source:t.mode});t.setModelDetail(f.data),t.setDialogStatus(!0),i.value=""}if(l==="remove"){if(!await Yg({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It"}))return;if(d&&d.some(m=>m.public)){xt.warning("Model has public version, cannot remove.");return}s(u)}},s=async l=>{try{await $4(l),xt.success("Model removed successfully."),t.closeAndReload()}catch(c){xt.error("Failed to remove model."),console.error("Error removing model:",c)}};return(l,c)=>(X(),Xe("div",null,[P(h(yRe),null,{default:R(()=>[P(h(ERe),null,{default:R(()=>[P(h(xm),{class:"hover:bg-transparent border-[#F9FAFB]/60"},{default:R(()=>[P(h(gS),{class:"w-[55%]"},{default:R(()=>c[1]||(c[1]=[Ze("Name")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[2]||(c[2]=[Ze("Base Model")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[3]||(c[3]=[Ze("Status")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[4]||(c[4]=[Ze("Operate")])),_:1})]),_:1})]),_:1}),P(h(vRe),null,{default:R(()=>[n.isLoading?(X(),Xe(Ot,{key:0},kr(5,u=>P(h(xm),{key:u},{default:R(()=>[P(h(Vi),{class:"w-[55%]"},{default:R(()=>[ee("div",Pke,[P(h(to),{class:"h-8 w-4 bg-[#353535]"}),P(h(to),{class:"h-8 w-[180px] bg-[#353535]"}),P(h(to),{class:"h-8 w-[60px] bg-[#353535]"})])]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[P(h(to),{class:"h-8 w-[80px] bg-[#353535]"})]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[P(h(to),{class:"h-8 w-[80px] bg-[#353535]"})]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[ee("div",wke,[P(h(to),{class:"h-8 w-8 bg-[#353535]"})])]),_:1})]),_:2},1024)),64)):(X(),Xe(Ot,{key:1},[n.models.length>0?(X(!0),Xe(Ot,{key:0},kr(n.models,u=>(X(),Xe(Ot,{key:`${u.id}-${u.name}`},[P(h(xm),{class:"group cursor-pointer border-[#F9FAFB]/60 hover:bg-transparent h-12"},{default:R(()=>[P(h(Vi),{class:"w-[55%]",onClick:O=>a(u.name)},{default:R(()=>[ee("div",Rke,[ee("span",kke,[r.value.has(u.name)?(X(),Xe("svg",Cke,c[5]||(c[5]=[ee("path",{d:"M4 6L8 10L12 6",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(X(),Xe("svg",Dke,c[6]||(c[6]=[ee("path",{d:"M6 4L10 8L6 12",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),ee("span",null,tt(u.name),1),P(h(Vw),{variant:"default"},{default:R(()=>[Ze(tt(u.type),1)]),_:2},1024)])]),_:2},1032,["onClick"]),P(h(Vi),{class:"w-[15%]"},{default:R(()=>c[7]||(c[7]=[Ze("-")])),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>c[8]||(c[8]=[Ze("-")])),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[ee("div",Ake,[h(t).mode==="my"||h(t).mode==="my_fork"?(X(),F(h(dS),{key:0,class:"bg-[#353535] z-[5100]mmm",open:i.value===u.name,"onUpdate:open":O=>O?i.value=u.name:i.value=""},{default:R(()=>[P(h(pS),null,{default:R(()=>c[9]||(c[9]=[ee("div",{class:"flex justify-center items-center hover:bg-[#222222] rounded-md w-8 h-8"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[ee("path",{fill:"white",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2"})])],-1)])),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"edit",onClick:O=>o("edit",u),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>c[10]||(c[10]=[Ze(" Edit ")])),_:2},1032,["onClick"]),P(h(Fw)),P(h(js),{value:"remove",onClick:O=>o("remove",u),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>c[11]||(c[11]=[Ze(" Remove ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["open","onUpdate:open"])):(X(),Xe("div",Nke))])]),_:2},1024)]),_:2},1024),r.value.has(u.name)&&u.versions?(X(!0),Xe(Ot,{key:0},kr(u.versions,O=>(X(),F(Qke,{model:u,key:O.version,version:O},null,8,["model","version"]))),128)):St("",!0)],64))),128)):(X(),F(h(xm),{key:1,class:"hover:bg-transparent"},{default:R(()=>[P(h(Vi),{colspan:"4",class:"h-[400px]"},{default:R(()=>c[12]||(c[12]=[ee("div",{class:"flex items-center justify-center h-full text-[#F9FAFB]"}," No available data ",-1)])),_:1})]),_:1}))],64))]),_:1})]),_:1}),ee("div",Ike,[n.isLoading?(X(),Xe("div",Xke,[P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"})])):(X(),F(bRe,{key:1,onChange:c[0]||(c[0]=u=>h(t).reload++)}))])]))}}),Mke={class:"font-['Inter'] flex flex-col"},Uke={class:"flex flex-col min-h-[650px]"},zke={class:"flex-1 relative"},qke={class:"h-full"},Yke=q({__name:"Index",props:{modelType:{},selectedBaseModels:{}},emits:["apply"],setup(e,{emit:t}){const n=Vc(),r=e,i=j(!1),a=["my","my_fork","publicity"],o={my:"My Models",my_fork:"My Forks",publicity:"Community Models"},s=j([]),l=async()=>{var p,m;try{i.value=!0;const _=await Nwe(n.modelListPathParams,n.filterState);_&&_.data?(n.modelListPathParams.total=((p=_==null?void 0:_.data)==null?void 0:p.total)||0,s.value=((m=_==null?void 0:_.data)==null?void 0:m.list)||[]):(n.modelListPathParams.total=0,s.value=[])}catch{xt.error("Failed to fetch model list. Please check your network connection"),n.modelListPathParams.total=0,s.value=[]}finally{i.value=!1}},c=j(!1),u=j(!1),O=async p=>{s.value=[],n.mode=String(p),!i.value&&(n.modelListPathParams.mode=n.mode,n.modelListPathParams.current=1,n.mode!=="publicity"&&(n.filterState.sort="Recently"),await l())},d=async()=>{try{const p=await E4();n.setModelTypes(p!=null&&p.data?p.data:[]);const m=await v4();n.setBaseModelTypes(m!=null&&m.data?m.data:[])}catch{xt.error("Failed to fetch model types"),xt.error("Failed to fetch base model types"),n.setModelTypes([]),n.setBaseModelTypes([])}},f=t;return xe(()=>n.applyObject,p=>{p.version&&p.model&&f("apply",p.version,p.model.name)},{deep:!0,immediate:!0}),xe(()=>n.closeModelSelectDialog,(p,m)=>{p!==m&&(u.value=!1)},{deep:!0}),xe(()=>n.reload,async(p,m)=>{p!==m&&await l()},{deep:!0}),xe(()=>n.reloadModelSelectList,async(p,m)=>{p!==m&&await l()},{deep:!0}),Je(async()=>{r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await d(),await l(),u.value=!0}),(p,m)=>(X(),F(Wg,{open:u.value,"onUpdate:open":m[1]||(m[1]=_=>u.value=_),class:"max-w-[70%] px-6 pb-6 overflow-hidden",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},{title:R(()=>m[2]||(m[2]=[ee("span",{class:"text-[#F9FAFB] mb-4 text-[18px] font-semibold leading-[18px] tracking-[-0.45px]"}," Select Model ",-1)])),default:R(()=>[ee("div",Mke,[P(h(x4),{defaultValue:h(n).mode,class:"h-full flex flex-col","onUpdate:modelValue":O},{default:R(()=>[P(h(Q4),{class:"grid w-full grid-cols-3 h-12 bg-[#4E4E4E] text-sm shrink-0"},{default:R(()=>[(X(),Xe(Ot,null,kr(a,_=>P(h(P4),{key:_,value:_,class:"text-sm text-white data-[state=active]:bg-[#9CA3AF] data-[state=active]:text-white h-10 px-3 py-2 focus:outline-none focus-visible:outline-none"},{default:R(()=>[Ze(tt(o[_]),1)]),_:2},1032,["value"])),64))]),_:1}),(X(),Xe(Ot,null,kr(a,_=>xo(P(h(iRe),{key:_,value:_,class:"flex-1 flex flex-col overflow-hidden"},{default:R(()=>[ee("div",Uke,[ee("div",zke,[P(dRe,{"show-sort-popover":c.value,"onUpdate:showSortPopover":m[0]||(m[0]=g=>c.value=g),onFetchData:l,class:"shrink-0"},null,8,["show-sort-popover"]),ee("div",qke,[P(Lke,{models:s.value,isLoading:i.value},null,8,["models","isLoading"])])]),m[3]||(m[3]=ee("div",{class:"h-4"},null,-1))])]),_:2},1032,["value"]),[[gl,h(n).mode===_]])),64))]),_:1},8,["defaultValue"])])]),_:1},8,["open"]))}}),Wke=e=>{let t=!1;const n=document.getElementById("bizyair-model-select");n&&document.body.removeChild(n);const r=document.createElement("div");r.id="bizyair-model-select",document.body.appendChild(r);const i=Xf(Yke,{...e,onClose:()=>{t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r)},onApply:(...o)=>{e!=null&&e.onApply&&(e.onApply(...o),t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r))}});i.directive("debounce",{mounted(o,s){let l=null;o.addEventListener("keyup",()=>{l&&clearTimeout(l),l=setTimeout(()=>{s.value()},s.arg||500)})},unmounted(o,s){s&&o.removeEventListener("keyup",s.value)}});const a=i.mount(r);return t=!0,{instance:a}};let Qm=Xf(rRe);Qm.use(ose());function Vke(e,t){Qm.provide("comfyUIApp",t),Qm.mount(e)}function Fke(){Qm&&Qm.unmount()}const Gke=36,R4=1,Bke=2,kd=3,Gw=4,Zke=5,jke=6,Hke=7,Kke=8,Jke=9,eCe=10,tCe=11,nCe=12,rCe=13,iCe=14,aCe=15,oCe=16,sCe=17,k4=18,lCe=19,C4=20,D4=21,A4=22,cCe=23,uCe=24;function Bw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function OCe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function yu(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&e.next==92,e.advance()}}function dCe(e,t){e:for(;;){if(e.next<0)return;if(e.next==36){e.advance();for(let n=0;n)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&e.peek(1)==39){e.advance(2);return}e.advance()}}function Zw(e,t){for(;!(e.next!=95&&!Bw(e.next));)t!=null&&(t+=String.fromCharCode(e.next)),e.advance();return t}function pCe(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance(),yu(e,t,!1)}else Zw(e)}function N4(e,t){for(;e.next==48||e.next==49;)e.advance();t&&e.next==t&&e.advance()}function I4(e,t){for(;;){if(e.next==46){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(e.next==69||e.next==101)for(e.advance(),(e.next==43||e.next==45)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function X4(e){for(;!(e.next<0||e.next==10);)e.advance()}function vu(e,t){for(let n=0;n/g,swe=/"/g,lwe=/"/g,cwe=/&#([a-zA-Z0-9]*);?/gim,uwe=/:?/gim,Owe=/&newline;?/gim,lS=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,u4=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,O4=/u\s*r\s*l\s*\(.*/gi;function d4(e){return e.replace(swe,""")}function f4(e){return e.replace(lwe,'"')}function p4(e){return e.replace(cwe,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function m4(e){return e.replace(uwe,":").replace(Owe," ")}function h4(e){for(var t="",n=0,r=e.length;n",r);if(i===-1)break;n=i+3}return t}function mwe(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}$n.whiteList=s4(),$n.getDefaultWhiteList=s4,$n.onTag=ewe,$n.onIgnoreTag=twe,$n.onTagAttr=nwe,$n.onIgnoreTagAttr=rwe,$n.safeAttrValue=iwe,$n.escapeHtml=c4,$n.escapeQuote=d4,$n.unescapeQuote=f4,$n.escapeHtmlEntities=p4,$n.escapeDangerHtml5Entities=m4,$n.clearNonPrintableCharacter=h4,$n.friendlyAttrValue=g4,$n.escapeAttrValue=_4,$n.onIgnoreTagStripAll=dwe,$n.StripTagBody=fwe,$n.stripCommentTag=pwe,$n.stripBlankChar=mwe,$n.attributeWrapSign='"',$n.cssFilter=l4,$n.getDefaultCSSWhiteList=JPe;var cS={},nc=Ww;function hwe(e){var t=nc.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=nc.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function gwe(e){return e.slice(0,2)===""||s===l-1){r+=n(e.slice(i,a)),u=e.slice(a,s+1),c=hwe(u),r+=t(a,r.length,c,u,gwe(u)),i=s+1,a=!1;continue}if(O==='"'||O==="'")for(var d=1,f=e.charAt(s-d);f.trim()===""||f==="=";){if(f==="="){o=O;continue e}f=e.charAt(s-++d)}}else if(O===o){o=!1;continue}}return i0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Twe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function b4(e){return Twe(e)?e.substr(1,e.length-2):e}cS.parseTag=_we,cS.parseAttr=Swe;var $we=Yw.FilterCSS,xa=$n,S4=cS,xwe=S4.parseTag,Qwe=S4.parseAttr,uS=Ww;function OS(e){return e==null}function Pwe(e){var t=uS.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=uS.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=uS.trim(e.slice(0,-1))),{html:e,closing:n}}function wwe(e){var t={};for(var n in e)t[n]=e[n];return t}function Rwe(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function y4(e){e=wwe(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xa.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Rwe(e.whiteList||e.allowList):e.whiteList=xa.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":xa.attributeWrapSign,e.onTag=e.onTag||xa.onTag,e.onTagAttr=e.onTagAttr||xa.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xa.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xa.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xa.safeAttrValue,e.escapeHtml=e.escapeHtml||xa.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new $we(e.css))}y4.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,a=n.onIgnoreTag,o=n.onTagAttr,s=n.onIgnoreTagAttr,l=n.safeAttrValue,c=n.escapeHtml,u=t.attributeWrapSign,O=t.cssFilter;n.stripBlankChar&&(e=xa.stripBlankChar(e)),n.allowCommentTag||(e=xa.stripCommentTag(e));var d=!1;n.stripIgnoreTagBody&&(d=xa.StripTagBody(n.stripIgnoreTagBody,a),a=d.onIgnoreTag);var f=xwe(e,function(p,m,_,g,b){var y={sourcePosition:p,position:m,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(r,_)},E=i(_,g,y);if(!OS(E))return E;if(y.isWhite){if(y.isClosing)return"";var v=Pwe(g),$=r[_],T=Qwe(v.html,function(x,Q){var w=uS.indexOf($,x)!==-1,k=o(_,x,Q,w);return OS(k)?w?(Q=l(_,x,Q,O),Q?x+"="+u+Q+u:x):(k=s(_,x,Q,w),OS(k)?void 0:k):k});return g="<"+_,T&&(g+=" "+T),v.closing&&(g+=" /"),g+=">",g}else return E=a(_,g,y),OS(E)?c(g):E},c);return d&&(f=d.remove(f)),f};var kwe=y4;(function(e,t){var n=$n,r=cS,i=kwe;function a(s,l){var c=new i(l);return c.process(s)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(r4,r4.exports);const Cwe=20*1024*1024,Dwe=3,Awe=Vg({__name:"Index2",props:{editorId:String,modelValue:String,modelModifiers:Object,autoDetectCode:{type:Boolean,default:!0}},emits:["update:modelValue","isUploading"],setup(e,{emit:t}){const n=["bold","italic","underline","title","-","quote","code","table","image","-","mermaid","katex","-","link","=","preview",0],r=j(!1),i=()=>{r.value=!r.value,r.value?(oT.request(),document.querySelectorAll('[role="dialog"]').forEach(f=>f.style.display="none"),document.querySelector("body").style["pointer-events"]="auto"):(oT.exit(),document.querySelectorAll('[role="dialog"]').forEach(f=>f.style.display="block"),document.querySelector("body").style["pointer-events"]="none")},o=j(e.modelValue),s=t,l=()=>{s("update:modelValue",o)},c=["image/jpeg","image/png","image/gif","image/webp"],u=async(f,p=0)=>{var m;try{const _=await Jhe(f);if(!((m=_.data)!=null&&m.url))throw new Error("Upload response missing URL");return _.data.url}catch(_){if(console.error(`Upload attempt ${p+1} failed:`,_),psetTimeout(g,1e3*(p+1))),u(f,p+1);throw _}},O=async(f,p)=>{if(f.filter(g=>!c.includes(g.type)).length>0){xt.warning("Only image files allowed (jpg, png, gif, webp)");return}if(f.filter(g=>g.size>Cwe).length>0){xt.warning("Image size cannot exceed 20MB");return}try{s("isUploading",!0);const g=[];for(let b=0;b(X(),Xe(Ot,null,[P(h(Em),{editorId:e.editorId,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),theme:"dark",toolbars:n,ref_key:"editorRef",ref:d,autoDetectCode:!0,language:"en-US",onInput:l,onOnUploadImg:O},{defToolbars:R(()=>[P(h(wd),{title:"fullscreen",onOnClick:i},{trigger:R(()=>[P(h(yI),{class:"w-4 h-4 mt-1"})]),_:1})]),_:1},8,["editorId","modelValue"]),r.value?(X(),F(tO,{key:0,to:"body"},[P(h(Em),{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=m=>o.value=m),theme:"dark",autoDetectCode:!0,editorId:`full-${e.editorId}`,toolbars:n,language:"en-US",pageFullscreen:!0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] z-12000",onInput:l,onOnUploadImg:O},{defToolbars:R(()=>[P(h(wd),{title:"fullscreen",onOnClick:i},{trigger:R(()=>[P(h(yI),{class:"w-4 h-4 mt-1"})]),_:1})]),_:1},8,["modelValue","editorId"])])):St("",!0)],64))}},[["__scopeId","data-v-55306ef7"]]),v4=()=>Jr("/bizyair/community/base_model_types",{method:"GET"}),Nwe=(e,t)=>Jr(`/bizyair/community/models/query?${new URLSearchParams(e).toString()}`,{method:"POST",body:JSON.stringify(t)}),Iwe=e=>Jr(`/bizyair/community/models?clientId=${sessionStorage.getItem("clientId")}`,{method:"post",body:JSON.stringify(e)}),Xwe=e=>Jr(`/bizyair/community/check_local_file?${new URLSearchParams(e).toString()}`,{method:"get"}),Lwe=e=>Jr(`/bizyair/community/submit_upload?clientId=${sessionStorage.getItem("clientId")}`,{method:"POST",body:JSON.stringify(e)}),Mwe=e=>Jr(`/bizyair/community/interrupt_upload?clientId=${sessionStorage.getItem("clientId")}`,{method:"POST",body:JSON.stringify(e)}),E4=()=>Jr("/bizyair/community/model_types",{method:"GET"}),Uwe=e=>Jr(`/bizyair/community/models/${e.id}?clientId=${sessionStorage.getItem("clientId")}`,{method:"put",body:JSON.stringify(e)}),T4=e=>Jr(`/bizyair/community/models/${e.id}/detail?source=${e.source}`,{method:"GET"}),$4=e=>Jr(`/bizyair/community/models/${e}`,{method:"DELETE"}),zwe=e=>Jr(`/bizyair/community/models/like/${e}`,{method:"POST"}),qwe=e=>Jr(`/bizyair/community/models/fork/${e}`,{method:"POST"}),Ywe={class:"px-6 pb-6"},Wwe={key:0},Vwe={key:1},Fwe={class:"flex items-center space-x-2 mt-2"},Gwe={class:"flex"},Bwe={key:0},Zwe={class:"text-center mt-2"},jwe={class:"bg-[#353535] px-6 w-full h-14 rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between items-center -mt-4"},Hwe={key:0,class:"z-50 w-full h-full absolute left-0 top-0"},Kwe=q({__name:"index",setup(e){const t=Kf(),n=Vc(),r=j(!0),i=j(0),a=j([{value:"",label:""}]),o=j([{value:"",label:""}]),s=j({...n.modelDetail}),l=j("0"),c=j(!1),u=ie(()=>s.value.versions.map(T=>T.progress).some((T,x)=>T!==100&&s.value.versions[x].file_upload_id));function O($,T){s.value.versions&&(s.value.versions[T].public=$)}let d;async function f($,T){const x=await Xwe({absolute_path:$});s.value.versions[T].file_upload_id=x.data.upload_id,s.value.versions[T].filePathError=!1,i.value=T,await Lwe({upload_id:x.data.upload_id}),s.value.versions[T].progress=.1,d=Tle({content:"Start calculating the file hash",z:"z-12000"})}async function p($){if(!await Yg({title:"Are you sure you want to delete this version?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;const x={...s.value};l.value===`${x.versions.length-1}`&&(l.value=`${Number(l.value)-1}`),x.versions=x.versions||[],x.versions.splice($,1),n.setModelDetail(x),x.versions.length===1&&(l.value="0"),x.versions.length===0&&(r.value=!0)}function m(){const $={...s.value};$.versions=$.versions||[],$.versions.push({version:"",base_model:"",intro:"",public:!1,filePath:"",sign:"",path:""}),n.setModelDetail($),r.value=!1,l.value=`${$.versions.length-1}`}function _(){if(!s.value.name){xt.error("Please enter the model name"),s.value.nameError=!0;return}if(!s.value.type){xt.error("Please select the model type"),s.value.typeError=!0;return}s.value.versions.length?(l.value=`${s.value.versions.length-1}`,r.value=!1):m()}function g(){const $={...s.value};$.versions=$.versions||[];for(let T=0;T<$.versions.length;T++){const x=$.versions[T];if(!x.version){x.versionError=!0,xt.error(`Please enter the version name for version ${T+1}`),l.value=`${T}`;break}if(!x.base_model){x.baseModelError=!0,xt.error(`Please select the base model for version ${T+1}`),l.value=`${T}`;break}if(!x.filePath){x.filePathError=!0,xt.error(`Please enter the file path for version ${T+1}`),l.value=`${T}`;break}}return $.versions.every(T=>T.version&&T.base_model&&T.filePath)}async function b({file_upload_id:$},T){await Mwe({upload_id:$})}async function y(){g()&&(c.value=!0,setTimeout(()=>{c.value=!1},5e3),s.value.id?await Uwe(s.value):await Iwe(s.value),xt.success("Model published successfully"),v())}const E=()=>{r.value&&(r.value=!1)},v=()=>{n.setDialogStatus(!1,0),n.clearModelDetail(),r.value=!0,c.value=!1,n.uploadModelDone()};return xe(()=>t.socketMessage,$=>{if($.type=="progress"){const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);s.value.versions[T].progress=Number($.data.progress.replace("%",""))}if($.type=="status"&&$.data.status=="finish"){const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);s.value.versions[T]&&(s.value.versions[T].path=$.data.model_files[0].path,s.value.versions[T].sign=$.data.model_files[0].sign)}if($.type=="interrupted"){xt.success("Upload interrupted");const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);delete s.value.versions[T].progress,s.value.versions[T].filePath=""}if($.type=="error"){xt.error($.data.message);const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.upload_id);delete s.value.versions[T].progress,s.value.versions[T].filePath=""}if($.type=="prepared"&&d.close(),console.log($),$.type==="errors"&&$.data&&$.data.code===500101){d.close(),console.log($.data.data),xt.error($.data.message);const T=s.value.versions.findIndex(x=>x.file_upload_id==$.data.data.upload_id);delete s.value.versions[T].progress,s.value.versions[T].filePath=""}},{deep:!0}),xe(()=>n.modelDetail,$=>{s.value=$},{deep:!0}),xe(()=>n.showVersionId,$=>{const T=s.value.versions.findIndex(x=>x.id==$);l.value=`${T}`,T!=-1&&(r.value=!1)},{deep:!0}),Je(async()=>{const $=await E4();a.value=$.data;const T=await v4();o.value=T.data}),($,T)=>(X(),Xe(Ot,null,[ee("div",{onClick:T[0]||(T[0]=x=>h(n).setDialogStatus(!0)),class:"flex items-center hover:bg-[#4A238E] cursor-pointer relative px-3"},T[8]||(T[8]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24"},[ee("path",{fill:"none",stroke:"#ddd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M21 16.008V7.99a1.98 1.98 0 0 0-1-1.717l-7-4.008a2.02 2.02 0 0 0-2 0L4 6.273c-.619.355-1 1.01-1 1.718v8.018c0 .709.381 1.363 1 1.717l7 4.008a2.02 2.02 0 0 0 2 0l7-4.008c.619-.355 1-1.01 1-1.718M12 22V12m0 0l8.73-5.04m-17.46 0L12 12"})],-1),ee("span",{class:"block leading h-full leading-8 text-sm"},"Publish",-1)])),h(n).showDialog?(X(),F(Wg,{key:0,open:h(n).showDialog,"onUpdate:open":T[7]||(T[7]=x=>h(n).showDialog=x),onOnClose:v,class:"px-0 overflow-hidden pb-0 z-9000",layoutClass:"z-9000",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},IK({title:R(()=>[ee("span",{class:"px-6",onClick:T[1]||(T[1]=x=>{l.value="-1",r.value=!0})},"Publish a Model")]),default:R(()=>[xo(ee("div",Ywe,[P(Wc,{label:"Model Name"},{default:R(()=>[P(h(xO),{onChange:T[2]||(T[2]=x=>s.value.nameError=!1),class:ut({"border-red-500":s.value.nameError}),type:"text",placeholder:"Enter Model Name","model-value":s.value.name,"onUpdate:modelValue":T[3]||(T[3]=x=>s.value.name=x)},null,8,["class","model-value"])]),_:1}),P(Wc,{label:"Model Type"},{default:R(()=>[P(HI,{"onUpdate:open":T[4]||(T[4]=x=>s.value.typeError=!1),class:ut({"border-red-500":s.value.typeError}),"model-value":s.value.type,"onUpdate:modelValue":T[5]||(T[5]=x=>s.value.type=x),placeholder:"Select Model Type"},{default:R(()=>[(X(!0),Xe(Ot,null,kr(a.value,(x,Q)=>(X(),F(h(ZI),{key:Q,value:x.value},{default:R(()=>[Ze(tt(x.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["class","model-value"])]),_:1}),P(h(Nr),{class:"w-full mt-3",onClick:_},{default:R(()=>T[9]||(T[9]=[Ze("Next Step")])),_:1})],512),[[gl,r.value]]),P(h(ele),{type:"single",collapsible:"","default-value":"0",class:"w-full","onUpdate:modelValue":[E,T[6]||(T[6]=x=>l.value=x)],"model-value":l.value},{default:R(()=>[(X(!0),Xe(Ot,null,kr(s.value.versions,(x,Q)=>(X(),F(h(nle),{class:"bg-[#353535] z-1 px-6 w-full rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px]",key:Q,value:`${Q}`},{default:R(()=>[P(yle,{class:"justify-between relative"},{default:R(()=>[l.value!==`${Q}`&&x.version?(X(),Xe("span",Wwe,tt(x.version),1)):(X(),Xe("span",Vwe,"Add Version")),s.value.versions.length!==1?(X(),F(h(Soe),{key:2,class:"w-4 h-4",onClickCapture:cr(w=>p(Q),["stop"])},null,8,["onClickCapture"])):St("",!0),x.progress&&l.value&&l.value!==`${Q}`?(X(),F(h(jI),{key:3,"model-value":x.progress,class:"absolute w-full bottom-0 left-0 h-1"},null,8,["model-value"])):St("",!0)]),_:2},1024),P(h(tle),null,{default:R(()=>[P(Wc,{label:"Version Name"},{default:R(()=>[P(h(xO),{onChange:w=>x.versionError=!1,class:ut({"border-red-500":x.versionError}),type:"text",placeholder:"Version Name","model-value":x.version,"onUpdate:modelValue":w=>x.version=w},null,8,["onChange","class","model-value","onUpdate:modelValue"])]),_:2},1024),P(Wc,{label:"Base Model"},{default:R(()=>[P(HI,{"onUpdate:open":w=>x.baseModelError=!1,class:ut({"border-red-500":x.baseModelError}),"model-value":x.base_model,"onUpdate:modelValue":w=>x.base_model=w,placeholder:"Select Base Model"},{default:R(()=>[(X(!0),Xe(Ot,null,kr(o.value,(w,k)=>(X(),F(h(ZI),{key:k,value:w.value},{default:R(()=>[Ze(tt(w.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["onUpdate:open","class","model-value","onUpdate:modelValue"])]),_:2},1024),P(Wc,{label:"Introduction"},{default:R(()=>[P(Awe,{modelValue:x.intro,"onUpdate:modelValue":w=>x.intro=w,modelModifiers:{modelValue:!0},editorId:`myeditor${Q}`},null,8,["modelValue","onUpdate:modelValue","editorId"])]),_:2},1024),P(Wc,{label:""},{default:R(()=>[ee("div",Fwe,[P(h(dle),{id:"airplane-mode","onUpdate:checked":w=>{O(w,Q)}},null,8,["onUpdate:checked"]),P(h(Ole),{for:"airplane-mode"},{default:R(()=>T[10]||(T[10]=[Ze("Publicly Visible")])),_:1})])]),_:2},1024),P(Wc,{label:"File Path"},{default:R(()=>[ee("div",Gwe,[P(h(xO),{class:ut({"border-red-500":x.filePathError}),type:"text",onChange:w=>f(x.filePath,Q),placeholder:"File Path",disabled:typeof x.progress=="number"&&x.progress!==100,"model-value":x.filePath,"onUpdate:modelValue":w=>x.filePath=w},null,8,["class","onChange","disabled","model-value","onUpdate:modelValue"]),P(h(Nr),{onClick:w=>b(x,Q),class:"ml-2",disabled:!x.progress||x.progress==100},{default:R(()=>T[11]||(T[11]=[Ze("interrupt")])),_:2},1032,["onClick","disabled"])])]),_:2},1024),x.progress?(X(),Xe("div",Bwe,[P(h(jI),{"model-value":x.progress,class:"mt-4 h-3"},null,8,["model-value"]),ee("p",Zwe,tt(x.progress)+"% Uploaded",1)])):St("",!0)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1},8,["model-value"]),c.value?(X(),Xe("div",Hwe)):St("",!0)]),_:2},[r.value?void 0:{name:"foot",fn:R(()=>[ee("div",jwe,[P(h(Nr),{variant:"outline",class:"",onClick:m},{default:R(()=>T[12]||(T[12]=[Ze("Add Version")])),_:1}),P(h(Nr),{disabled:u.value,onClick:y},{default:R(()=>T[13]||(T[13]=[Ze("Publish")])),_:1},8,["disabled"])])]),key:"0"}]),1032,["open"])):St("",!0)],64))}}),Jwe=q({__name:"index",setup(e){const t=j({"Remote Folders":"1",Upload:"2"});return fetch("api/bizyair/news",{method:"GET"}).then(n=>n.json()).then(n=>{t.value=n}),(n,r)=>(X(),F(EI,{show_cases:t.value,buttonText:"News",icon:"book-open",isJson:!0},{default:R(()=>r[0]||(r[0]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 32 32"},[ee("path",{fill:"#ddd",d:"M11 23a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zm-1-3a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1m1-5a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zM5 5a3 3 0 0 1 3-3h10.172a3 3 0 0 1 2.12.879l5.83 5.828A3 3 0 0 1 27 10.828V27a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V12h-5a3 3 0 0 1-3-3V4zm12 6h4.586L19 4.414V9a1 1 0 0 0 1 1"})],-1)])),_:1},8,["show_cases"]))}}),eRe={class:"comfy-modal-content-sml"},tRe={class:"py-2"},nRe=q({__name:"apiKeyDialog",setup(e){const t=Kf(),n=j(""),r=j(!1),i=async c=>{const f=window.open("https://account.siliconflow.cn/oauth?client_id=SFaJLLq0y6CAMoyDm81aMu","oauthPopup","width=600,height=600");window.addEventListener("message",p=>{p.data.length>0&&p.data[0].secretKey!==void 0&&(c(p.data[0].secretKey),f&&f.close())})};function a(){r.value=!1}async function o(){if(!n.value)return r.value=!0,!1;const c=await fse(`api_key=${encodeURIComponent(n.value)}`);c.ok?(xt("API Key set successfully!"),t.handleApiKeyDialog(!1),t.loginRefresh()):xt.error(`Failed to set API Key: ${await c.text()}`)}function s(){t.handleApiKeyDialog(!1),n.value="",r.value=!1}function l(){i(c=>{n.value=c})}return(c,u)=>(X(),F(Wg,{open:h(t).showApiKeyDialog,"onUpdate:open":u[1]||(u[1]=O=>h(t).showApiKeyDialog=O),layoutClass:"z-9000",class:"max-w-[680px] z-9000",onOnClose:u[2]||(u[2]=O=>h(t).handleApiKeyDialog(!1))},{title:R(()=>u[3]||(u[3]=[Ze("Set API Key")])),foot:R(()=>[P(h(Nr),{type:"submit",onClick:o},{default:R(()=>u[8]||(u[8]=[Ze("Submit")])),_:1}),P(h(Nr),{variant:"outline",onClick:s},{default:R(()=>u[9]||(u[9]=[Ze("Close")])),_:1})]),default:R(()=>[ee("div",eRe,[P(h(xO),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=O=>n.value=O),type:"password",placeholder:"API Key",class:ut([{"border-red-500":r.value}]),onInput:a},null,8,["modelValue","class"]),ee("p",tRe,[u[4]||(u[4]=Ze(" Please ")),ee("a",{class:"underline",href:"###",onClick:cr(l,["prevent"])},"click to login"),u[5]||(u[5]=Ze(" and autofill the key, "))]),u[6]||(u[6]=ee("p",{class:"py-2"},[Ze(" or visit "),ee("a",{class:"underline",href:"https://cloud.siliconflow.cn",target:"_blank"},"https://cloud.siliconflow.cn"),Ze(" to get your key and input manually. ")],-1)),u[7]||(u[7]=ee("p",{class:"py-2"},[Ze(" Setting the API Key signifies agreement to the "),ee("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/user-agreement",target:"_blank"},"User Agreement"),Ze(" and "),ee("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/privacy-policy",target:"_blank"},"Privacy Policy.")],-1))])]),_:1},8,["open"]))}}),rRe=q({__name:"App",setup(e){const t=Kf();return t.loginRefresh(),t.sendSocket(),(n,r)=>(X(),Xe(Ot,null,[P(Noe),h(t).isLogin?(X(),F(Jse,{key:0})):(X(),F(vse,{key:1})),P(Kwe),P(Jwe),P(nRe)],64))}}),x4=q({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=It(e,t);return(a,o)=>(X(),F(h(Sae),vt(Et(h(i))),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))}}),iRe=q({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(vae),be({class:h(Be)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),Q4=q({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(yae),be(n.value,{class:h(Be)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),aRe={class:"truncate"},P4=q({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:i,...a}=t;return a}),r=Er(n);return(i,a)=>(X(),F(h(Eae),be(h(r),{class:h(Be)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:R(()=>[ee("span",aRe,[Z(i.$slots,"default")])]),_:3},16,["class"]))}}),Vw=q({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",{class:ut(h(Be)(h(oRe)({variant:n.variant}),t.class))},[Z(n.$slots,"default")],2))}}),oRe=iT("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),dS=q({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const i=It(e,t);return(a,o)=>(X(),F(h(Oie),vt(Et(h(i))),{default:R(()=>[Z(a.$slots,"default")]),_:3},16))}}),fS=q({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(fie),null,{default:R(()=>[P(h(hie),be({...h(a),...o.$attrs},{class:h(Be)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),pS=q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(die),vt(Et(t)),{default:R(()=>[Z(n.$slots,"default")]),_:3},16))}}),mS=q({__name:"Command",props:{modelValue:{default:""},defaultValue:{},open:{type:Boolean,default:!0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(lre),be(h(a),{class:h(Be)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"]))}}),$m=q({__name:"CommandGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(ure),be(n.value,{class:h(Be)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t.class)}),{default:R(()=>[r.heading?(X(),F(h(Ore),{key:0,class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:R(()=>[Ze(tt(r.heading),1)]),_:1})):St("",!0),Z(r.$slots,"default")]),_:3},16,["class"]))}}),js=q({__name:"CommandItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(gre),be(h(a),{class:h(Be)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n.class)}),{default:R(()=>[Z(o.$slots,"default")]),_:3},16,["class"]))}}),sRe={role:"presentation"},hS=q({__name:"CommandList",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!1},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=ie(()=>{const{class:o,...s}=n;return s}),a=It(i,r);return(o,s)=>(X(),F(h(pre),be(h(a),{class:h(Be)("max-h-[300px] overflow-y-auto overflow-x-hidden",n.class)}),{default:R(()=>[ee("div",sRe,[Z(o.$slots,"default")])]),_:3},16,["class"]))}}),Fw=q({__name:"CommandSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(_re),be(n.value,{class:h(Be)("-mx-1 h-px bg-border",t.class)}),{default:R(()=>[Z(r.$slots,"default")]),_:3},16,["class"]))}}),lRe={class:"flex space-x-2 mb-4"},cRe={class:"relative flex-1"},uRe={class:"flex flex-wrap gap-2"},ORe={class:"flex flex-wrap gap-2"},dRe=q({__name:"ModelFilterBar",props:{showSortPopover:{type:Boolean}},emits:["update:showSortPopover","fetchData"],setup(e,{emit:t}){const n=Vc(),r=j([]),i=t,a=c=>{n.filterState.sort=c,i("fetchData"),i("update:showSortPopover",!1)},o=c=>{if(n.selectedBaseModels.length!==0)return;const u=[...n.filterState.model_types],O=u.indexOf(c);O===-1?u.push(c):u.splice(O,1),n.filterState.model_types=u,i("fetchData"),i("update:showSortPopover",!1)},s=c=>{const u=r.value.indexOf(c);u===-1?r.value.push(c):r.value.splice(u,1);const O=[...n.filterState.base_models],d=O.indexOf(c);d===-1?O.push(c):O.splice(d,1),n.filterState.base_models=O,i("fetchData"),i("update:showSortPopover",!1)},l=()=>{n.modelListPathParams.current=1,i("fetchData"),i("update:showSortPopover",!1)};return Je(async()=>{n.selectedBaseModels&&(r.value=[...n.selectedBaseModels])}),(c,u)=>{const O=NK("debounce");return X(),Xe("div",lRe,[ee("div",cRe,[xo(P(h(xO),{modelValue:h(n).filterState.keyword,"onUpdate:modelValue":u[0]||(u[0]=d=>h(n).filterState.keyword=d),placeholder:"Filter by name",class:"h-[44px] border border-[#9CA3AF] w-full bg-[#222] rounded-lg pr-8 pl-8"},null,8,["modelValue"]),[[O,l]]),u[5]||(u[5]=ee("span",{class:"absolute start-0 inset-y-0 flex items-center justify-center px-2"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"hover:brightness-150 transition-all duration-300"},[ee("path",{d:"M14 14L11.1333 11.1333M12.6667 7.33333C12.6667 10.2789 10.2789 12.6667 7.33333 12.6667C4.38781 12.6667 2 10.2789 2 7.33333C2 4.38781 4.38781 2 7.33333 2C10.2789 2 12.6667 4.38781 12.6667 7.33333Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),P(h(dS),{class:"bg-[#353535] z-[5100]",open:c.showSortPopover,"onUpdate:open":u[4]||(u[4]=d=>i("update:showSortPopover",d))},{default:R(()=>[P(h(pS),null,{default:R(()=>[P(h(Nr),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer group"},{default:R(()=>u[6]||(u[6]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M2 10.6667L4.66667 13.3334M4.66667 13.3334L7.33333 10.6667M4.66667 13.3334V2.66675M7.33333 2.66675H14M7.33333 5.33341H12M7.33333 8.00008H10",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"recently",onClick:u[1]||(u[1]=d=>a("Recently")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Recently"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[7]||(u[7]=[Ze(" Recently ")])),_:1},8,["class"]),["my","my_fork"].includes(h(n).mode)?St("",!0):(X(),F(h(js),{key:0,value:"most-forked",onClick:u[2]||(u[2]=d=>a("Most Forked")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Most Forked"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[8]||(u[8]=[Ze(" Most Forked ")])),_:1},8,["class"])),["my","my_fork"].includes(h(n).mode)?St("",!0):(X(),F(h(js),{key:1,value:"most-used",onClick:u[3]||(u[3]=d=>a("Most Used")),class:ut(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",h(n).filterState.sort==="Most Used"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:R(()=>u[9]||(u[9]=[Ze(" Most Used ")])),_:1},8,["class"]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),P(h(dS),{class:"z-[5100]"},{default:R(()=>[P(h(pS),null,{default:R(()=>[P(h(Nr),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer"},{default:R(()=>u[10]||(u[10]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"mr-2"},[ee("path",{d:"M14.6666 2H1.33325L6.66658 8.30667V12.6667L9.33325 14V8.30667L14.6666 2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[200px] p-0 bg-[#222] rounded-lg"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[u[11]||(u[11]=ee("div",{class:"p-2"},[ee("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Model Types")],-1)),P(h(js),{value:"model-types",class:"p-2"},{default:R(()=>[ee("div",uRe,[(X(!0),Xe(Ot,null,kr(h(n).modelTypes,d=>(X(),F(h(Vw),{variant:"secondary",key:d.value,onClick:f=>o(d.value),class:ut(["cursor-not-allowed hover:!bg-inherit",h(n).filterState.model_types.includes(d.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:R(()=>[Ze(tt(d.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1}),P(h(Fw)),P(h($m),null,{default:R(()=>[u[12]||(u[12]=ee("div",{class:"p-2"},[ee("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Base Models")],-1)),P(h(js),{value:"base-models",class:"p-2"},{default:R(()=>[ee("div",ORe,[(X(!0),Xe(Ot,null,kr(h(n).baseModelTypes.filter(d=>{var f;return(f=h(n).selectedBaseModels)==null?void 0:f.includes(d.value)}),d=>(X(),F(h(Vw),{variant:"secondary",key:d.value,onClick:f=>s(d.value),class:ut(["cursor-pointer hover:!bg-inherit",h(n).filterState.base_models.includes(d.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:R(()=>[Ze(tt(d.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}}),fRe=q({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(tie),be(n.value,{class:h(Be)("w-9 h-9 flex items-center justify-center",t.class)}),{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(boe))])]),_:3},16,["class"]))}}),pRe=q({__name:"PaginationFirst",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(nie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(moe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),mRe=q({__name:"PaginationLast",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(rie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(hoe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),hRe=q({__name:"PaginationNext",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(lie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(SI),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),gRe=q({__name:"PaginationPrev",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(cie),vt(Et(n.value)),{default:R(()=>[P(h(Nr),{class:ut(h(Be)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:R(()=>[Z(r.$slots,"default",{},()=>[P(h(foe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),_Re={key:0},bRe=Vg(q({__name:"ModelPagination",emits:["change"],setup(e,{emit:t}){const n=Vc(),r=ie(()=>n.modelListPathParams.total/n.modelListPathParams.page_size>1),i=t,a=o=>{n.modelListPathParams.current=o,i("change")};return(o,s)=>r.value?(X(),Xe("div",_Re,[P(h(eie),{total:h(n).modelListPathParams.total,"page-size":h(n).modelListPathParams.page_size,"default-page":h(n).modelListPathParams.current,"sibling-count":1,"show-edges":"","onUpdate:page":a},{default:R(({page:l})=>[P(h(oie),{class:"flex items-center gap-1"},{default:R(({items:c})=>[P(h(pRe),{class:"pagination-button"}),P(h(gRe),{class:"pagination-button"}),(X(!0),Xe(Ot,null,kr(c,(u,O)=>(X(),Xe(Ot,null,[u.type==="page"?(X(),F(h(sie),{key:O,value:u.value,"as-child":""},{default:R(()=>[P(h(Nr),{class:"pagination-button page-button",variant:u.value===l?"default":"ghost"},{default:R(()=>[Ze(tt(u.value),1)]),_:2},1032,["variant"])]),_:2},1032,["value"])):(X(),F(h(fRe),{key:u.type,index:O,class:"pagination-button"},null,8,["index"]))],64))),256)),P(h(hRe),{class:"pagination-button"}),P(h(mRe),{class:"pagination-button"})]),_:2},1024)]),_:1},8,["total","page-size","default-page"])])):St("",!0)}}),[["__scopeId","data-v-5a6c0ec9"]]),SRe={class:"relative w-full overflow-auto"},yRe=q({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",SRe,[ee("table",{class:ut(h(Be)("w-full caption-bottom text-sm",t.class))},[Z(n.$slots,"default")],2)]))}}),vRe=q({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("tbody",{class:ut(h(Be)("[&_tr:last-child]:border-0",t.class))},[Z(n.$slots,"default")],2))}}),Vi=q({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("td",{class:ut(h(Be)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[Z(n.$slots,"default")],2))}}),xm=q({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("tr",{class:ut(h(Be)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t.class))},[Z(n.$slots,"default")],2))}}),gS=q({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("th",{class:ut(h(Be)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[Z(n.$slots,"default")],2))}}),ERe=q({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("thead",{class:ut(h(Be)("[&_tr]:border-b",t.class))},[Z(n.$slots,"default")],2))}}),to=q({__name:"Skeleton",props:{class:{}},setup(e){const t=e;return(n,r)=>(X(),Xe("div",{class:ut(h(Be)("animate-pulse rounded-md bg-muted",t.class))},null,2))}}),w4=q({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(Aie),be(n.value,{class:h(Be)("flex touch-none select-none transition-colors",r.orientation==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",r.orientation==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",t.class)}),{default:R(()=>[P(h(Nie),{class:"relative flex-1 rounded-full bg-border"})]),_:1},16,["class"]))}}),TRe=q({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(X(),F(h(Tie),be(n.value,{class:h(Be)("relative overflow-hidden",t.class)}),{default:R(()=>[P(h($ie),{class:"h-full w-full rounded-[inherit]"},{default:R(()=>[Z(r.$slots,"default")]),_:3}),P(w4),P(h(Xie))]),_:3},16,["class"]))}}),$Re=q({__name:"Avatar",props:{class:{},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,r)=>(X(),F(h(jne),{class:ut(h(Be)(h(PRe)({size:n.size,shape:n.shape}),t.class))},{default:R(()=>[Z(n.$slots,"default")]),_:3},8,["class"]))}}),xRe=q({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(Jne),vt(Et(t)),{default:R(()=>[Z(n.$slots,"default")]),_:3},16))}}),QRe=q({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(X(),F(h(Kne),be(t,{class:"h-full w-full object-cover"}),null,16))}}),PRe=iT("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),wRe={key:0,class:"p-6 pb-12 flex flex-col gap-4 items-start justify-start min-w-[1000px] relative shadow-[0px_20px_40px_0px_rgba(0,0,0,0.25)]"},RRe={class:"flex flex-col gap-1.5 items-start justify-start self-stretch shrink-0 relative"},kRe={class:"flex flex-row gap-2 items-center justify-start self-stretch shrink-0 relative"},CRe={class:"text-text-text-foreground text-left font-['Inter-SemiBold',_sans-serif] text-lg leading-[18px] font-semibold relative",style:{"letter-spacing":"-0.025em"}},DRe={class:"flex flex-row gap-1 items-start justify-start shrink-0 relative"},ARe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},NRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},IRe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},XRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},LRe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},MRe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},URe={class:"flex flex-row gap-1 items-center justify-start self-stretch shrink-0 relative"},zRe={class:"bg-[#4e4e4e] rounded-lg p-1 flex flex-row gap-4 items-start justify-start self-stretch shrink-0 relative"},qRe={class:"min-w-[200px] max-w-[600px]"},YRe={class:"whitespace-nowrap"},WRe={class:"flex gap-8"},VRe={class:"flex flex-row gap-4 items-start justify-start shrink-0 relative"},FRe={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},GRe={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},BRe={class:"flex flex-row gap-8 items-start justify-start self-stretch flex-1 relative"},ZRe={class:"flex flex-col gap-4 items-start justify-start relative min-w-[620px] w-[65%] overflow-hidden"},jRe={class:"w-full min-h-[80vh]"},HRe={key:1,class:"w-full h-[80vh] bg-[#353535] rounded-tl-lg rounded-tr-lg"},KRe={class:"flex flex-col gap-6 items-start justify-start w-[40%] relative"},JRe={class:"pb-8 flex flex-col gap-6 items-start justify-start shrink-0 h-[97px] relative"},eke={class:"flex flex-row gap-2 items-center justify-start shrink-0 relative"},tke={class:"flex flex-row gap-1.5 items-start justify-start self-stretch shrink-0 relative"},nke={class:"rounded-[6px] border-solid border-[rgba(78,78,78,0.50)] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative text-[#F9FAFB] font-inter text-sm font-medium leading-5"},rke={className:"flex w-full text-gray-300 text-sm"},ike={className:"flex-1 p-4 border-b text-sm border-[rgba(78,78,78,0.50)]"},ake={className:"flex w-full"},oke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},ske={className:"flex w-full"},lke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},cke={className:"flex w-full"},uke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"},Oke={className:"flex w-full"},dke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex flex-row gap-2"},fke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},pke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},mke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},hke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},gke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},_ke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},bke={class:"rounded-md border-solid border-[#4e4e4e] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative"},Ske={class:"flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"},yke=Vg(q({__name:"Index",props:{modelId:{},version:{}},setup(e){const t=Vc(),n=j(),r=j(),i=j(!1),a=j(null),o=e,s=async()=>{const y=await T4({id:o.modelId,source:t.mode});if(!y.data){xt.error("Model not found."),t.closeAndReload();return}n.value=y.data,l()},l=()=>{var y;if(n.value&&n.value.versions&&n.value.versions.length>0)if((y=o.version)!=null&&y.id){const E=n.value.versions.find(v=>v.id===o.version.id);E&&(r.value={...E},nt(()=>{var v;p((v=o.version)==null?void 0:v.id)}))}else r.value={...n.value.versions[0]},nt(()=>{var E;(E=r.value)!=null&&E.id&&p(r.value.id)})};Je(async()=>{await s()});const c=y=>{var v,$;const E=($=(v=n.value)==null?void 0:v.versions)==null?void 0:$.find(T=>T.id===y);E&&(r.value=E)},u=()=>{i.value=!i.value},O=async()=>{var y;await zwe((y=r.value)==null?void 0:y.id),s()},d=async()=>{var y;await qwe((y=r.value)==null?void 0:y.id),await s()},f=y=>{nt(()=>{setTimeout(()=>{if(!a.value)return;const E=a.value.$el.querySelector("[data-radix-scroll-area-viewport]"),v=E==null?void 0:E.querySelector('[role="tablist"]'),$=v==null?void 0:v.querySelector(`[role="tab"].version-tab-${y}`);if(!E||!$||!v)return;const x=Array.from(v.querySelectorAll('[role="tab"]')).reduce((M,C)=>M+C.offsetWidth,0);v.style.width=`${x}px`;const Q=$.offsetLeft,w=E.clientWidth,k=$.offsetWidth,N=Math.max(0,Q-(w-k)/2);E.scrollTo({left:N,behavior:"smooth"})},100)})},p=y=>{setTimeout(()=>{f(y)},200)},m=async(y,E)=>{var v,$,T;if(y==="edit"&&(t.setModelDetail(n),t.setDialogStatus(!0,Number((v=r.value)==null?void 0:v.id)),i.value=!1),y==="remove"){if(!await Yg({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if(($=n.value)!=null&&$.versions&&((T=n.value)==null?void 0:T.versions.some(w=>w.public))){xt.warning("Model has public version, cannot remove."),i.value=!1;return}_(E)}},_=async y=>{try{await $4(y),xt.success("Model removed successfully."),t.reload+=1}catch(E){xt.error("Failed to remove model."),console.error("Error removing model:",E)}},g=()=>{r.value&&n.value&&t.setApplyObject(r.value,n.value)},b=async y=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(y||""),xt.success("Copied successfully.");else{const E=document.createElement("input");E.value=y||"",document.body.appendChild(E),E.select(),document.execCommand("copy"),document.body.removeChild(E)}}catch{xt.error("Copy failed.")}};return(y,E)=>{var v,$,T,x,Q,w,k,N,M,C,I,L,A,z,G,te,ne,se,ae,fe,K,ce,he,Pe,We,ft,mt,$t,an,U,B;return n.value?(X(),Xe("div",wRe,[ee("div",RRe,[ee("div",kRe,[ee("div",CRe,tt(h(eE)((v=n.value)==null?void 0:v.name,60)),1),ee("div",DRe,[ee("div",ARe,[E[3]||(E[3]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",NRe,tt(h(aO)((T=($=n.value)==null?void 0:$.counter)==null?void 0:T.used_count)),1)])]),ee("div",IRe,[E[4]||(E[4]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",XRe,tt(h(aO)((Q=(x=n.value)==null?void 0:x.counter)==null?void 0:Q.forked_count)),1)]),ee("div",LRe,[E[5]||(E[5]=ag('',1)),ee("div",MRe,tt(h(aO)((k=(w=n.value)==null?void 0:w.counter)==null?void 0:k.liked_count)),1)])]),ee("div",URe,[ee("div",zRe,[ee("div",qRe,[P(h(TRe),{ref_key:"scrollViewportRef",ref:a,class:"rounded-md w-full"},{default:R(()=>{var re,pe;return[ee("div",YRe,[P(h(x4),{defaultValue:(re=r.value)==null?void 0:re.id,value:(pe=r.value)==null?void 0:pe.id},{default:R(()=>[P(h(Q4),{class:"inline-flex h-12 bg-transparent text-sm w-auto"},{default:R(()=>{var de;return[(X(!0),Xe(Ot,null,kr((de=n.value)==null?void 0:de.versions,oe=>(X(),F(h(P4),{value:oe.id,onClick:Qe=>c(oe.id),class:ut([["version-tab",`version-tab-${oe.id}`],"text-sm text-white bg-[#9CA3AF] data-[state=active]:bg-[#7C3AED] data-[state=active]:text-white h-10 px-3 py-2 mx-1"])},{default:R(()=>[Ze(tt(oe.version),1)]),_:2},1032,["value","onClick","class"]))),256))]}),_:1})]),_:1},8,["defaultValue","value"])]),P(h(w4),{orientation:"horizontal"})]}),_:1},512)])]),E[10]||(E[10]=ee("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative flex-1"},null,-1)),ee("div",WRe,[(X(),Xe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer",onClick:O,style:ui({stroke:(N=r.value)!=null&&N.liked?"#6D28D9":"#F9FAFB",fill:(M=r.value)!=null&&M.liked?"#6D28D9":"none"})},E[6]||(E[6]=[ee("g",{"clip-path":"url(#clip0_440_1289)"},[ee("path",{d:"M4.66659 6.66658V14.6666M9.99992 3.91992L9.33325 6.66658H13.2199C13.4269 6.66658 13.6311 6.71478 13.8162 6.80735C14.0013 6.89992 14.1624 7.03432 14.2866 7.19992C14.4108 7.36551 14.4947 7.55775 14.5317 7.7614C14.5688 7.96506 14.5579 8.17454 14.4999 8.37325L12.9466 13.7066C12.8658 13.9835 12.6974 14.2268 12.4666 14.3999C12.2358 14.573 11.9551 14.6666 11.6666 14.6666H2.66659C2.31296 14.6666 1.97382 14.5261 1.72378 14.2761C1.47373 14.026 1.33325 13.6869 1.33325 13.3333V7.99992C1.33325 7.6463 1.47373 7.30716 1.72378 7.05711C1.97382 6.80706 2.31296 6.66658 2.66659 6.66658H4.50659C4.75464 6.66645 4.99774 6.59713 5.20856 6.4664C5.41937 6.33567 5.58953 6.14873 5.69992 5.92659L7.99992 1.33325C8.3143 1.33715 8.62374 1.41203 8.90512 1.55232C9.1865 1.6926 9.43254 1.89466 9.62486 2.14339C9.81717 2.39212 9.9508 2.68109 10.0157 2.98872C10.0807 3.29635 10.0753 3.61468 9.99992 3.91992Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ee("defs",null,[ee("clipPath",{id:"clip0_440_1289"},[ee("rect",{width:"16",height:"16",fill:"white"})])],-1)]),4)),h(t).mode==="my"||h(t).mode==="my_fork"?(X(),F(h(dS),{key:0,class:"bg-[#353535]",open:i.value,"onUpdate:open":u},{default:R(()=>[P(h(pS),null,{default:R(()=>E[7]||(E[7]=[ee("div",{class:"flex justify-center items-center rounded-md w-8 relative z-50"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer"},[ee("path",{d:"M8.66659 7.99992C8.66659 7.63173 8.36811 7.33325 7.99992 7.33325C7.63173 7.33325 7.33325 7.63173 7.33325 7.99992C7.33325 8.36811 7.63173 8.66659 7.99992 8.66659C8.36811 8.66659 8.66659 8.36811 8.66659 7.99992Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),ee("path",{d:"M8.66659 3.33325C8.66659 2.96506 8.36811 2.66658 7.99992 2.66658C7.63173 2.66658 7.33325 2.96506 7.33325 3.33325C7.33325 3.70144 7.63173 3.99992 7.99992 3.99992C8.36811 3.99992 8.66659 3.70144 8.66659 3.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),ee("path",{d:"M8.66659 12.6666C8.66659 12.2984 8.36811 11.9999 7.99992 11.9999C7.63173 11.9999 7.33325 12.2984 7.33325 12.6666C7.33325 13.0348 7.63173 13.3333 7.99992 13.3333C8.36811 13.3333 8.66659 13.0348 8.66659 12.6666Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-[9000]"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"edit",onClick:E[0]||(E[0]=re=>{var pe;return m("edit",(pe=n.value)==null?void 0:pe.id)}),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>E[8]||(E[8]=[Ze(" Edit ")])),_:1}),P(h(Fw)),P(h(js),{value:"remove",onClick:E[1]||(E[1]=re=>{var pe;return m("remove",(pe=n.value)==null?void 0:pe.id)}),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>E[9]||(E[9]=[Ze(" Remove ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):St("",!0)])]),ee("div",VRe,[ee("div",FRe," First Published: "+tt((C=r.value)==null?void 0:C.created_at),1),ee("div",GRe," Last Updated: "+tt((I=r.value)==null?void 0:I.updated_at),1)])]),ee("div",BRe,[ee("div",ZRe,[ee("div",jRe,[(L=r.value)!=null&&L.intro?(X(),F(h(Tp),{key:0,id:"previewRef",modelValue:(A=r.value)==null?void 0:A.intro,noImgZoomIn:!0,preview:!0,theme:"dark",class:"bg-[#353535] w-full min-h-[80vh]"},null,8,["modelValue"])):(X(),Xe("div",HRe,E[11]||(E[11]=[ee("div",{class:"flex justify-center items-center h-full"},[ee("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"}," No introduction yet ")],-1)])))])]),ee("div",KRe,[ee("div",JRe,[ee("div",eke,[P(h($Re),null,{default:R(()=>[P(h(QRe),{src:"https://github.com/radix-vue.png",alt:"@radix-vue"}),P(h(xRe),null,{default:R(()=>{var re;return[Ze(tt((re=n.value)==null?void 0:re.user_name.slice(0,2)),1)]}),_:1})]),_:1}),Ze(" "+tt((z=n.value)==null?void 0:z.user_name),1)]),ee("div",tke,[h(t).mode==="publicity"?(X(),F(h(Nr),{key:0,variant:"default",class:"w-[124px] flex h-9 px-3 py-2 justify-center items-center gap-2 flex-1 rounded-md bg-[#6D28D9]",onClick:d,disabled:(G=r.value)==null?void 0:G.forked},{default:R(()=>{var re;return[Ze(tt((re=r.value)!=null&&re.forked?"Forked":"Fork"),1)]}),_:1},8,["disabled"])):St("",!0),P(h(Nr),{onClick:g,class:"flex w-[170px] px-8 py-2 justify-center items-center gap-2 bg-[#F43F5E] hover:bg-[#F43F5E]/90 rounded-[6px]"},{default:R(()=>E[12]||(E[12]=[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[ee("path",{d:"M6.49988 7.9999L7.83322 9.33324L10.4999 6.66657M3.06655 5.74657C2.96925 5.30825 2.98419 4.85246 3.10999 4.42146C3.23579 3.99046 3.46838 3.5982 3.7862 3.28105C4.10401 2.9639 4.49676 2.73213 4.92802 2.60723C5.35929 2.48233 5.81511 2.46835 6.25322 2.56657C6.49436 2.18944 6.82655 1.87907 7.21919 1.66409C7.61182 1.44911 8.05225 1.33643 8.49988 1.33643C8.94752 1.33643 9.38795 1.44911 9.78058 1.66409C10.1732 1.87907 10.5054 2.18944 10.7466 2.56657C11.1853 2.46792 11.6419 2.48184 12.0739 2.60704C12.5058 2.73225 12.8991 2.96466 13.2171 3.28267C13.5351 3.60068 13.7675 3.99395 13.8927 4.4259C14.0179 4.85786 14.0319 5.31446 13.9332 5.75324C14.3104 5.99437 14.6207 6.32657 14.8357 6.7192C15.0507 7.11183 15.1634 7.55227 15.1634 7.9999C15.1634 8.44754 15.0507 8.88797 14.8357 9.2806C14.6207 9.67323 14.3104 10.0054 13.9332 10.2466C14.0314 10.6847 14.0175 11.1405 13.8926 11.5718C13.7677 12.003 13.5359 12.3958 13.2187 12.7136C12.9016 13.0314 12.5093 13.264 12.0783 13.3898C11.6473 13.5156 11.1915 13.5305 10.7532 13.4332C10.5124 13.8118 10.1799 14.1235 9.78663 14.3394C9.39333 14.5554 8.9519 14.6686 8.50322 14.6686C8.05453 14.6686 7.6131 14.5554 7.2198 14.3394C6.8265 14.1235 6.49404 13.8118 6.25322 13.4332C5.81511 13.5315 5.35929 13.5175 4.92802 13.3926C4.49676 13.2677 4.10401 13.0359 3.7862 12.7188C3.46838 12.4016 3.23579 12.0093 3.10999 11.5783C2.98419 11.1473 2.96925 10.6916 3.06655 10.2532C2.68652 10.0127 2.37349 9.68002 2.15658 9.28605C1.93967 8.89207 1.82593 8.44964 1.82593 7.9999C1.82593 7.55016 1.93967 7.10773 2.15658 6.71376C2.37349 6.31979 2.68652 5.98707 3.06655 5.74657Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Ze("Apply")])),_:1})])]),ee("div",nke,[ee("div",rke,[E[13]||(E[13]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Type",-1)),ee("div",ike,[ee("span",{class:ut(`${(te=n.value)==null?void 0:te.type} inline-flex px-[10px] py-[2px] items-start gap-[10px] rounded-[9999px] relative overflow-hidden`)},tt((ne=n.value)==null?void 0:ne.type),3)])]),ee("div",ake,[E[14]||(E[14]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-sm border-b border-[rgba(78,78,78,0.50)] whitespace-nowrap"}," Base Model",-1)),ee("div",oke,tt((se=r.value)==null?void 0:se.base_model),1)]),ee("div",ske,[E[15]||(E[15]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Published",-1)),ee("div",lke,tt((ae=r.value)==null?void 0:ae.created_at),1)]),ee("div",cke,[E[17]||(E[17]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Hash",-1)),ee("div",uke,[ee("span",null,tt((fe=r.value)!=null&&fe.sign?h(eE)((K=r.value)==null?void 0:K.sign,15):""),1),(ce=r.value)!=null&&ce.sign?(X(),Xe("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer hover:opacity-80",onClick:E[2]||(E[2]=re=>{var pe;return b(((pe=r.value)==null?void 0:pe.sign)||"")})},E[16]||(E[16]=[ee("g",{"clip-path":"url(#clip0_315_3710)"},[ee("path",{d:"M2.66659 10.6666C1.93325 10.6666 1.33325 10.0666 1.33325 9.33325V2.66659C1.33325 1.93325 1.93325 1.33325 2.66659 1.33325H9.33325C10.0666 1.33325 10.6666 1.93325 10.6666 2.66659M6.66658 5.33325H13.3333C14.0696 5.33325 14.6666 5.93021 14.6666 6.66658V13.3333C14.6666 14.0696 14.0696 14.6666 13.3333 14.6666H6.66658C5.93021 14.6666 5.33325 14.0696 5.33325 13.3333V6.66658C5.33325 5.93021 5.93021 5.33325 6.66658 5.33325Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ee("defs",null,[ee("clipPath",{id:"clip0_315_3710"},[ee("rect",{width:"16",height:"16",fill:"white"})])],-1)]))):St("",!0)])]),ee("div",Oke,[E[21]||(E[21]=ee("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-gray-300 border-b border-[rgba(78,78,78,0.50)]"}," Stats",-1)),ee("div",dke,[ee("div",fke,[E[18]||(E[18]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",pke,tt(h(aO)((Pe=(he=r.value)==null?void 0:he.counter)==null?void 0:Pe.used_count)),1)]),ee("div",mke,[E[19]||(E[19]=ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[ee("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),ee("div",hke,tt(h(aO)((ft=(We=r.value)==null?void 0:We.counter)==null?void 0:ft.forked_count)),1)]),ee("div",gke,[E[20]||(E[20]=ag('',1)),ee("div",_ke,tt(h(aO)(($t=(mt=r.value)==null?void 0:mt.counter)==null?void 0:$t.liked_count)),1)])])])]),ee("div",bke,[E[22]||(E[22]=ee("div",{class:"bg-[#424242] rounded-md flex items-center justify-start self-stretch shrink-0 relative h-[44px] pl-2"}," File ",-1)),ee("div",Ske,tt((an=r.value)!=null&&an.file_name?h(eE)((U=r.value)==null?void 0:U.file_name,20):"")+" ("+tt(h(_ee)((B=r.value)==null?void 0:B.file_size))+") ",1)])])])])):St("",!0)}}}),[["__scopeId","data-v-dfd2cddd"]]),vke={class:"text-sm text-white-500 flex items-center min-w-0"},Eke={class:"truncate flex-1"},Tke={class:"flex-shrink-0 ml-2"},$ke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},xke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Qke=q({__name:"ModelVersionRow",props:{version:{},model:{}},setup(e){const t=Vc(),n=j(!1);xe(()=>t.reload,(a,o)=>{a!==o&&(n.value=!1)},{deep:!0});const r=(a,o)=>{t.setApplyObject(a,o)},i=()=>{n.value=!0};return(a,o)=>(X(),Xe(Ot,null,[P(h(xm),{class:"bg-[#3D3D3D] hover:bg-[#4E4E4E] hover:cursor-pointer border-[#F9FAFB]/60 h-12",onClick:i},{default:R(()=>[P(h(Vi),{class:"pl-10 w-[55%] max-w-[200px]"},{default:R(()=>[ee("div",vke,[ee("span",Eke,tt(a.version.version),1),ee("div",Tke,[a.version.public?(X(),Xe("svg",$ke,o[2]||(o[2]=[ee("path",{d:"M1.33325 8.49992C1.33325 8.49992 3.33325 3.83325 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.6666 8.49992 12.6666 13.1666 7.99992 13.1666C3.33325 13.1666 1.33325 8.49992 1.33325 8.49992Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ee("path",{d:"M7.99992 10.4999C9.10449 10.4999 9.99992 9.60449 9.99992 8.49992C9.99992 7.39535 9.10449 6.49992 7.99992 6.49992C6.89535 6.49992 5.99992 7.39535 5.99992 8.49992C5.99992 9.60449 6.89535 10.4999 7.99992 10.4999Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(X(),Xe("svg",xke,o[3]||(o[3]=[ee("path",{d:"M6.58658 7.08659C6.39009 7.26968 6.23248 7.49048 6.12317 7.73582C6.01386 7.98115 5.95508 8.24598 5.95034 8.51452C5.9456 8.78307 5.995 9.04981 6.09559 9.29884C6.19618 9.54788 6.3459 9.7741 6.53582 9.96402C6.72573 10.1539 6.95196 10.3037 7.20099 10.4042C7.45003 10.5048 7.71677 10.5542 7.98531 10.5495C8.25385 10.5448 8.51869 10.486 8.76402 10.3767C9.00935 10.2674 9.23015 10.1097 9.41325 9.91325M7.15325 3.88659C7.43412 3.85159 7.71687 3.83378 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.3685 9.138 13.9947 9.73787 13.5533 10.2866M4.40659 4.90659C3.08075 5.80967 2.01983 7.05009 1.33325 8.49992C1.33325 8.49992 3.33325 13.1666 7.99992 13.1666C9.27719 13.17 10.5271 12.7967 11.5933 12.0933M1.33325 1.83325L14.6666 15.1666",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])])]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[Ze(tt(a.version.base_model),1)]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[Ze(tt(a.version.available?"Available":"Unavailable"),1)]),_:1}),P(h(Vi),{class:"w-[15%] flex justify-start"},{default:R(()=>[P(h(Nr),{variant:"default",onClick:o[0]||(o[0]=cr(s=>r(a.version,a.model),["stop"])),disabled:!a.version.available,class:ut({"opacity-50":!a.version.available})},{default:R(()=>o[4]||(o[4]=[Ze(" Apply ")])),_:1},8,["disabled","class"])]),_:1})]),_:1}),P(Wg,{open:n.value,"onUpdate:open":o[1]||(o[1]=s=>n.value=s),class:"max-w-full h-screen px-6 overflow-hidden pb-6 z-[8000]",contentClass:"custom-scrollbar max-h-[100vh-120px] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow",title:a.model.name},{default:R(()=>[P(h(yke),{modelId:a.model.id,version:a.version},null,8,["modelId","version"])]),_:1},8,["open","title"])],64))}}),Pke={class:"flex items-center space-x-2"},wke={class:"flex justify-end"},Rke={class:"flex items-center space-x-2"},kke={class:"text-sm"},Cke={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Dke={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},Ake={class:"flex justify-end h-full"},Nke={key:1,class:"w-8 h-8"},Ike={class:"w-full flex justify-center mt-8"},Xke={key:0,class:"flex items-center gap-1"},Lke=q({__name:"ModelTable",props:{models:{type:Array,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=Vc(),n=e,r=j(new Set),i=j("");Je(()=>{n.models.length>0&&r.value.add(n.models[0].name)}),xe(()=>n.models,l=>{l.length>0&&(r.value.clear(),r.value.add(l[0].name))},{deep:!0});const a=l=>{r.value.has(l)?r.value.delete(l):r.value.add(l)},o=async(l,c)=>{const{id:u,name:O,versions:d}=c;if(i.value=O,l==="edit"){const f=await T4({id:c.id,source:t.mode});t.setModelDetail(f.data),t.setDialogStatus(!0),i.value=""}if(l==="remove"){if(!await Yg({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It"}))return;if(d&&d.some(m=>m.public)){xt.warning("Model has public version, cannot remove.");return}s(u)}},s=async l=>{try{await $4(l),xt.success("Model removed successfully."),t.closeAndReload()}catch(c){xt.error("Failed to remove model."),console.error("Error removing model:",c)}};return(l,c)=>(X(),Xe("div",null,[P(h(yRe),null,{default:R(()=>[P(h(ERe),null,{default:R(()=>[P(h(xm),{class:"hover:bg-transparent border-[#F9FAFB]/60"},{default:R(()=>[P(h(gS),{class:"w-[55%]"},{default:R(()=>c[1]||(c[1]=[Ze("Name")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[2]||(c[2]=[Ze("Base Model")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[3]||(c[3]=[Ze("Status")])),_:1}),P(h(gS),{class:"w-[15%]"},{default:R(()=>c[4]||(c[4]=[Ze("Operate")])),_:1})]),_:1})]),_:1}),P(h(vRe),null,{default:R(()=>[n.isLoading?(X(),Xe(Ot,{key:0},kr(5,u=>P(h(xm),{key:u},{default:R(()=>[P(h(Vi),{class:"w-[55%]"},{default:R(()=>[ee("div",Pke,[P(h(to),{class:"h-8 w-4 bg-[#353535]"}),P(h(to),{class:"h-8 w-[180px] bg-[#353535]"}),P(h(to),{class:"h-8 w-[60px] bg-[#353535]"})])]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[P(h(to),{class:"h-8 w-[80px] bg-[#353535]"})]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[P(h(to),{class:"h-8 w-[80px] bg-[#353535]"})]),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[ee("div",wke,[P(h(to),{class:"h-8 w-8 bg-[#353535]"})])]),_:1})]),_:2},1024)),64)):(X(),Xe(Ot,{key:1},[n.models.length>0?(X(!0),Xe(Ot,{key:0},kr(n.models,u=>(X(),Xe(Ot,{key:`${u.id}-${u.name}`},[P(h(xm),{class:"group cursor-pointer border-[#F9FAFB]/60 hover:bg-transparent h-12"},{default:R(()=>[P(h(Vi),{class:"w-[55%]",onClick:O=>a(u.name)},{default:R(()=>[ee("div",Rke,[ee("span",kke,[r.value.has(u.name)?(X(),Xe("svg",Cke,c[5]||(c[5]=[ee("path",{d:"M4 6L8 10L12 6",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(X(),Xe("svg",Dke,c[6]||(c[6]=[ee("path",{d:"M6 4L10 8L6 12",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),ee("span",null,tt(u.name),1),P(h(Vw),{variant:"default"},{default:R(()=>[Ze(tt(u.type),1)]),_:2},1024)])]),_:2},1032,["onClick"]),P(h(Vi),{class:"w-[15%]"},{default:R(()=>c[7]||(c[7]=[Ze("-")])),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>c[8]||(c[8]=[Ze("-")])),_:1}),P(h(Vi),{class:"w-[15%]"},{default:R(()=>[ee("div",Ake,[h(t).mode==="my"||h(t).mode==="my_fork"?(X(),F(h(dS),{key:0,class:"bg-[#353535] z-[5100]mmm",open:i.value===u.name,"onUpdate:open":O=>O?i.value=u.name:i.value=""},{default:R(()=>[P(h(pS),null,{default:R(()=>c[9]||(c[9]=[ee("div",{class:"flex justify-center items-center hover:bg-[#222222] rounded-md w-8 h-8"},[ee("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[ee("path",{fill:"white",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2"})])],-1)])),_:1}),P(h(fS),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible"},{default:R(()=>[P(h(mS),null,{default:R(()=>[P(h(hS),null,{default:R(()=>[P(h($m),null,{default:R(()=>[P(h(js),{value:"edit",onClick:O=>o("edit",u),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>c[10]||(c[10]=[Ze(" Edit ")])),_:2},1032,["onClick"]),P(h(Fw)),P(h(js),{value:"remove",onClick:O=>o("remove",u),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:R(()=>c[11]||(c[11]=[Ze(" Remove ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["open","onUpdate:open"])):(X(),Xe("div",Nke))])]),_:2},1024)]),_:2},1024),r.value.has(u.name)&&u.versions?(X(!0),Xe(Ot,{key:0},kr(u.versions,O=>(X(),F(Qke,{model:u,key:O.version,version:O},null,8,["model","version"]))),128)):St("",!0)],64))),128)):(X(),F(h(xm),{key:1,class:"hover:bg-transparent"},{default:R(()=>[P(h(Vi),{colspan:"4",class:"h-[400px]"},{default:R(()=>c[12]||(c[12]=[ee("div",{class:"flex items-center justify-center h-full text-[#F9FAFB]"}," No available data ",-1)])),_:1})]),_:1}))],64))]),_:1})]),_:1}),ee("div",Ike,[n.isLoading?(X(),Xe("div",Xke,[P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"}),P(h(to),{class:"h-10 w-10 rounded-md bg-[#353535]"})])):(X(),F(bRe,{key:1,onChange:c[0]||(c[0]=u=>h(t).reload++)}))])]))}}),Mke={class:"font-['Inter'] flex flex-col"},Uke={class:"flex flex-col min-h-[650px]"},zke={class:"flex-1 relative"},qke={class:"h-full"},Yke=q({__name:"Index",props:{modelType:{},selectedBaseModels:{}},emits:["apply"],setup(e,{emit:t}){const n=Vc(),r=e,i=j(!1),a=["my","my_fork","publicity"],o={my:"My Models",my_fork:"My Forks",publicity:"Community Models"},s=j([]),l=async()=>{var p,m;try{i.value=!0;const _=await Nwe(n.modelListPathParams,n.filterState);_&&_.data?(n.modelListPathParams.total=((p=_==null?void 0:_.data)==null?void 0:p.total)||0,s.value=((m=_==null?void 0:_.data)==null?void 0:m.list)||[]):(n.modelListPathParams.total=0,s.value=[])}catch{xt.error("Failed to fetch model list. Please check your network connection"),n.modelListPathParams.total=0,s.value=[]}finally{i.value=!1}},c=j(!1),u=j(!1),O=async p=>{s.value=[],n.mode=String(p),!i.value&&(n.modelListPathParams.mode=n.mode,n.modelListPathParams.current=1,n.mode!=="publicity"&&(n.filterState.sort="Recently"),await l())},d=async()=>{try{const p=await E4();n.setModelTypes(p!=null&&p.data?p.data:[]);const m=await v4();n.setBaseModelTypes(m!=null&&m.data?m.data:[])}catch{xt.error("Failed to fetch model types"),xt.error("Failed to fetch base model types"),n.setModelTypes([]),n.setBaseModelTypes([])}},f=t;return xe(()=>n.applyObject,p=>{p.version&&p.model&&f("apply",p.version,p.model.name)},{deep:!0,immediate:!0}),xe(()=>n.closeModelSelectDialog,(p,m)=>{p!==m&&(u.value=!1)},{deep:!0}),xe(()=>n.reload,async(p,m)=>{p!==m&&await l()},{deep:!0}),xe(()=>n.reloadModelSelectList,async(p,m)=>{p!==m&&await l()},{deep:!0}),Je(async()=>{r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await d(),await l(),u.value=!0}),(p,m)=>(X(),F(Wg,{open:u.value,"onUpdate:open":m[1]||(m[1]=_=>u.value=_),class:"max-w-[70%] px-6 pb-6 overflow-hidden",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},{title:R(()=>m[2]||(m[2]=[ee("span",{class:"text-[#F9FAFB] mb-4 text-[18px] font-semibold leading-[18px] tracking-[-0.45px]"}," Select Model ",-1)])),default:R(()=>[ee("div",Mke,[P(h(x4),{defaultValue:h(n).mode,class:"h-full flex flex-col","onUpdate:modelValue":O},{default:R(()=>[P(h(Q4),{class:"grid w-full grid-cols-3 h-12 bg-[#4E4E4E] text-sm shrink-0"},{default:R(()=>[(X(),Xe(Ot,null,kr(a,_=>P(h(P4),{key:_,value:_,class:"text-sm text-white data-[state=active]:bg-[#9CA3AF] data-[state=active]:text-white h-10 px-3 py-2 focus:outline-none focus-visible:outline-none"},{default:R(()=>[Ze(tt(o[_]),1)]),_:2},1032,["value"])),64))]),_:1}),(X(),Xe(Ot,null,kr(a,_=>xo(P(h(iRe),{key:_,value:_,class:"flex-1 flex flex-col overflow-hidden"},{default:R(()=>[ee("div",Uke,[ee("div",zke,[P(dRe,{"show-sort-popover":c.value,"onUpdate:showSortPopover":m[0]||(m[0]=g=>c.value=g),onFetchData:l,class:"shrink-0"},null,8,["show-sort-popover"]),ee("div",qke,[P(Lke,{models:s.value,isLoading:i.value},null,8,["models","isLoading"])])]),m[3]||(m[3]=ee("div",{class:"h-4"},null,-1))])]),_:2},1032,["value"]),[[gl,h(n).mode===_]])),64))]),_:1},8,["defaultValue"])])]),_:1},8,["open"]))}}),Wke=e=>{let t=!1;const n=document.getElementById("bizyair-model-select");n&&document.body.removeChild(n);const r=document.createElement("div");r.id="bizyair-model-select",document.body.appendChild(r);const i=Xf(Yke,{...e,onClose:()=>{t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r)},onApply:(...o)=>{e!=null&&e.onApply&&(e.onApply(...o),t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r))}});i.directive("debounce",{mounted(o,s){let l=null;o.addEventListener("keyup",()=>{l&&clearTimeout(l),l=setTimeout(()=>{s.value()},s.arg||500)})},unmounted(o,s){s&&o.removeEventListener("keyup",s.value)}});const a=i.mount(r);return t=!0,{instance:a}};let Qm=Xf(rRe);Qm.use(ose());function Vke(e,t){Qm.provide("comfyUIApp",t),Qm.mount(e)}function Fke(){Qm&&Qm.unmount()}const Gke=36,R4=1,Bke=2,kd=3,Gw=4,Zke=5,jke=6,Hke=7,Kke=8,Jke=9,eCe=10,tCe=11,nCe=12,rCe=13,iCe=14,aCe=15,oCe=16,sCe=17,k4=18,lCe=19,C4=20,D4=21,A4=22,cCe=23,uCe=24;function Bw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function OCe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function yu(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&e.next==92,e.advance()}}function dCe(e,t){e:for(;;){if(e.next<0)return;if(e.next==36){e.advance();for(let n=0;n)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&e.peek(1)==39){e.advance(2);return}e.advance()}}function Zw(e,t){for(;!(e.next!=95&&!Bw(e.next));)t!=null&&(t+=String.fromCharCode(e.next)),e.advance();return t}function pCe(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance(),yu(e,t,!1)}else Zw(e)}function N4(e,t){for(;e.next==48||e.next==49;)e.advance();t&&e.next==t&&e.advance()}function I4(e,t){for(;;){if(e.next==46){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(e.next==69||e.next==101)for(e.advance(),(e.next==43||e.next==45)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function X4(e){for(;!(e.next<0||e.next==10);)e.advance()}function vu(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:L4(Tu,Eu)};function mCe(e,t,n,r){let i={};for(let a in Hw)i[a]=(e.hasOwnProperty(a)?e:Hw)[a];return t&&(i.words=L4(t,n||"",r)),i}function M4(e){return new dt(t=>{var n;let{next:r}=t;if(t.advance(),vu(r,jw)){for(;vu(t.next,jw);)t.advance();t.acceptToken(Gke)}else if(r==36&&e.doubleDollarQuotedStrings){let i=Zw(t,"");t.next==36&&(t.advance(),dCe(t,i),t.acceptToken(kd))}else if(r==39||r==34&&e.doubleQuotedStrings)yu(t,r,e.backslashEscapes),t.acceptToken(kd);else if(r==35&&e.hashComments||r==47&&t.next==47&&e.slashComments)X4(t),t.acceptToken(R4);else if(r==45&&t.next==45&&(!e.spaceAfterDashes||t.peek(1)==32))X4(t),t.acceptToken(R4);else if(r==47&&t.next==42){t.advance();for(let i=1;;){let a=t.next;if(t.next<0)break;if(t.advance(),a==42&&t.next==47){if(i--,t.advance(),!i)break}else a==47&&t.next==42&&(i++,t.advance())}t.acceptToken(Bke)}else if((r==101||r==69)&&t.next==39)t.advance(),yu(t,39,!0),t.acceptToken(kd);else if((r==110||r==78)&&t.next==39&&e.charSetCasts)t.advance(),yu(t,39,e.backslashEscapes),t.acceptToken(kd);else if(r==95&&e.charSetCasts)for(let i=0;;i++){if(t.next==39&&i>1){t.advance(),yu(t,39,e.backslashEscapes),t.acceptToken(kd);break}if(!Bw(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(r==113||r==81)&&t.next==39&&t.peek(1)>0&&!vu(t.peek(1),jw)){let i=t.peek(1);t.advance(2),fCe(t,i),t.acceptToken(kd)}else if(r==40)t.acceptToken(Hke);else if(r==41)t.acceptToken(Kke);else if(r==123)t.acceptToken(Jke);else if(r==125)t.acceptToken(eCe);else if(r==91)t.acceptToken(tCe);else if(r==93)t.acceptToken(nCe);else if(r==59)t.acceptToken(rCe);else if(e.unquotedBitLiterals&&r==48&&t.next==98)t.advance(),N4(t),t.acceptToken(A4);else if((r==98||r==66)&&(t.next==39||t.next==34)){const i=t.next;t.advance(),e.treatBitsAsBytes?(yu(t,i,e.backslashEscapes),t.acceptToken(cCe)):(N4(t,i),t.acceptToken(A4))}else if(r==48&&(t.next==120||t.next==88)||(r==120||r==88)&&t.next==39){let i=t.next==39;for(t.advance();OCe(t.next);)t.advance();i&&t.next==39&&t.advance(),t.acceptToken(Gw)}else if(r==46&&t.next>=48&&t.next<=57)I4(t,!0),t.acceptToken(Gw);else if(r==46)t.acceptToken(iCe);else if(r>=48&&r<=57)I4(t,!1),t.acceptToken(Gw);else if(vu(r,e.operatorChars)){for(;vu(t.next,e.operatorChars);)t.advance();t.acceptToken(aCe)}else if(vu(r,e.specialVar))t.next==r&&t.advance(),pCe(t),t.acceptToken(sCe);else if(vu(r,e.identifierQuotes))yu(t,r,!1),t.acceptToken(lCe);else if(r==58||r==44)t.acceptToken(oCe);else if(Bw(r)){let i=Zw(t,String.fromCharCode(r));t.acceptToken(t.next==46||t.peek(-i.length-1)==46?k4:(n=e.words[i.toLowerCase()])!==null&&n!==void 0?n:k4)}})}const U4=M4(Hw),hCe=Cn.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ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ifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,U4],topRules:{Script:[0,25]},tokenPrec:0});function Kw(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function Pm(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"])(.*)\1$/.exec(n);return r?r[2]:n}function _S(e){return e&&(e.name=="Identifier"||e.name=="QuotedIdentifier")}function gCe(e,t){if(t.name=="CompositeIdentifier"){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)_S(r)&&n.push(Pm(e,r));return n}return[Pm(e,t)]}function z4(e,t){for(let n=[];;){if(!t||t.name!=".")return n;let r=Kw(t);if(!_S(r))return n;n.unshift(Pm(e,r)),t=Kw(r)}}function _Ce(e,t){let n=rn(e).resolveInner(t,-1),r=SCe(e.doc,n);return n.name=="Identifier"||n.name=="QuotedIdentifier"||n.name=="Keyword"?{from:n.from,quoted:n.name=="QuotedIdentifier"?e.doc.sliceString(n.from,n.from+1):null,parents:z4(e.doc,Kw(n)),aliases:r}:n.name=="."?{from:t,quoted:null,parents:z4(e.doc,n),aliases:r}:{from:t,quoted:null,parents:[],empty:!0,aliases:r}}const bCe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function SCe(e,t){let n;for(let i=t;!n;i=i.parent){if(!i)return null;i.name=="Statement"&&(n=i)}let r=null;for(let i=n.firstChild,a=!1,o=null;i;i=i.nextSibling){let s=i.name=="Keyword"?e.sliceString(i.from,i.to).toLowerCase():null,l=null;if(!a)a=s=="from";else if(s=="as"&&o&&_S(i.nextSibling))l=Pm(e,i.nextSibling);else{if(s&&bCe.has(s))break;o&&_S(i)&&(l=Pm(e,i))}l&&(r||(r=Object.create(null)),r[l]=gCe(e,o)),o=/Identifier$/.test(i.name)?i:null}return r}function yCe(e,t){return e?t.map(n=>Object.assign(Object.assign({},n),{label:n.label[0]==e?n.label:e+n.label+e,apply:void 0})):t}const vCe=/^\w*$/,ECe=/^[`'"]?\w*[`'"]?$/;function q4(e){return e.self&&typeof e.self.label=="string"}class Jw{constructor(t,n){this.idQuote=t,this.idCaseInsensitive=n,this.list=[],this.children=void 0}child(t){let n=this.children||(this.children=Object.create(null)),r=n[t];return r||(t&&!this.list.some(i=>i.label==t)&&this.list.push(Y4(t,"type",this.idQuote,this.idCaseInsensitive)),n[t]=new Jw(this.idQuote,this.idCaseInsensitive))}maybeChild(t){return this.children?this.children[t]:null}addCompletion(t){let n=this.list.findIndex(r=>r.label==t.label);n>-1?this.list[n]=t:this.list.push(t)}addCompletions(t){for(let n of t)this.addCompletion(typeof n=="string"?Y4(n,"property",this.idQuote,this.idCaseInsensitive):n)}addNamespace(t){Array.isArray(t)?this.addCompletions(t):q4(t)?this.addNamespace(t.children):this.addNamespaceObject(t)}addNamespaceObject(t){for(let n of Object.keys(t)){let r=t[n],i=null,a=n.replace(/\\?\./g,s=>s=="."?"\0":s).split("\0"),o=this;q4(r)&&(i=r.self,r=r.children);for(let s=0;s{let{parents:O,from:d,quoted:f,empty:p,aliases:m}=_Ce(u.state,u.pos);if(p&&!u.explicit)return null;m&&O.length==1&&(O=m[O[0]]||O);let _=l;for(let y of O){for(;!_.children||!_.children[y];)if(_==l&&c)_=c;else if(_==c&&r)_=_.child(r);else return null;let E=_.maybeChild(y);if(!E)return null;_=E}let g=f&&u.state.sliceDoc(u.pos,u.pos+1)==f,b=_.list;return _==l&&m&&(b=b.concat(Object.keys(m).map(y=>({label:y,type:"constant"})))),{from:d,to:g?u.pos+1:void 0,options:yCe(f,b),validFor:f?ECe:vCe}}}function $Ce(e){return e==D4?"type":e==C4?"keyword":"variable"}function xCe(e,t,n){let r=Object.keys(e).map(i=>n(t?i.toUpperCase():i,$Ce(e[i])));return Ub(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],am(r))}let QCe=hCe.configure({props:[jn.add({Statement:In()}),Hn.add({Statement(e,t){return{from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),Rn({Keyword:S.keyword,Type:S.typeName,Builtin:S.standard(S.name),Bits:S.number,Bytes:S.string,Bool:S.bool,Null:S.null,Number:S.number,String:S.string,Identifier:S.name,QuotedIdentifier:S.special(S.string),SpecialVar:S.special(S.name),LineComment:S.lineComment,BlockComment:S.blockComment,Operator:S.operator,"Semi Punctuation":S.punctuation,"( )":S.paren,"{ }":S.brace,"[ ]":S.squareBracket})]});class no{constructor(t,n,r){this.dialect=t,this.language=n,this.spec=r}get extension(){return this.language.extension}static define(t){let n=mCe(t,t.keywords,t.types,t.builtin),r=kn.define({name:"sql",parser:QCe.configure({tokenizers:[{from:U4,to:M4(n)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new no(n,r,t)}}function PCe(e,t){return{label:e,type:t,boost:-1}}function W4(e,t=!1,n){return xCe(e.dialect.words,t,n||PCe)}function V4(e){return e.schema?TCe(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||bS):()=>null}function wCe(e){return e.schema?(e.dialect||bS).language.data.of({autocomplete:V4(e)}):[]}function RCe(e={}){let t=e.dialect||bS;return new Tn(t.language,[wCe(e),t.language.data.of({autocomplete:W4(t,e.upperCaseKeywords,e.keywordCompletion)})])}const bS=no.define({}),kCe=no.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:Tu+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:Eu+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),F4="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",G4=Eu+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",B4="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",CCe=no.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:Tu+"group_concat "+F4,types:G4,builtin:B4}),DCe=no.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:Tu+"always generated groupby_concat hard persistent shutdown soft virtual "+F4,types:G4,builtin:B4}),ACe=no.define({keywords:Tu+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:Eu+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),NCe=no.define({keywords:Tu+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:Eu+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),ICe=no.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:Eu+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),XCe=no.define({keywords:Tu+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:Eu+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0}),LCe=Object.freeze(Object.defineProperty({__proto__:null,Cassandra:ICe,MSSQL:ACe,MariaSQL:DCe,MySQL:CCe,PLSQL:XCe,PostgreSQL:kCe,SQLDialect:no,SQLite:NCe,StandardSQL:bS,keywordCompletionSource:W4,schemaCompletionSource:V4,sql:RCe},Symbol.toStringTag,{value:"Module"})),Z4=1,MCe=2,UCe=3,zCe=82,qCe=76,YCe=117,WCe=85,VCe=97,FCe=122,GCe=65,BCe=90,ZCe=95,eR=48,j4=34,jCe=40,H4=41,HCe=32,K4=62,KCe=new dt(e=>{if(e.next==qCe||e.next==WCe?e.advance():e.next==YCe&&(e.advance(),e.next==eR+8&&e.advance()),e.next!=zCe||(e.advance(),e.next!=j4))return;e.advance();let t="";for(;e.next!=jCe;){if(e.next==HCe||e.next<=13||e.next==H4)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(Z4);if(e.next==H4){let n=!0;for(let r=0;n&&r{if(e.next==K4)e.peek(1)==K4&&e.acceptToken(MCe,1);else{let t=!1,n=0;for(;;n++){if(e.next>=GCe&&e.next<=BCe)t=!0;else{if(e.next>=VCe&&e.next<=FCe)return;if(e.next!=ZCe&&!(e.next>=eR&&e.next<=eR+9))break}e.advance()}t&&n>1&&e.acceptToken(UCe)}},{extend:!0}),eDe=Rn({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":S.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":S.modifier,"if else switch for while do case default return break continue goto throw try catch":S.controlKeyword,"co_return co_yield co_await":S.controlKeyword,"new sizeof delete static_assert":S.operatorKeyword,"NULL nullptr":S.null,this:S.self,"True False":S.bool,"TypeSize PrimitiveType":S.standard(S.typeName),TypeIdentifier:S.typeName,FieldIdentifier:S.propertyName,"CallExpression/FieldExpression/FieldIdentifier":S.function(S.propertyName),"ModuleName/Identifier":S.namespace,PartitionName:S.labelName,StatementIdentifier:S.labelName,"Identifier DestructorName":S.variableName,"CallExpression/Identifier":S.function(S.variableName),"CallExpression/ScopedIdentifier/Identifier":S.function(S.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":S.function(S.definition(S.variableName)),NamespaceIdentifier:S.namespace,OperatorName:S.operator,ArithOp:S.arithmeticOperator,LogicOp:S.logicOperator,BitOp:S.bitwiseOperator,CompareOp:S.compareOperator,AssignOp:S.definitionOperator,UpdateOp:S.updateOperator,LineComment:S.lineComment,BlockComment:S.blockComment,Number:S.number,String:S.string,"RawString SystemLibString":S.special(S.string),CharLiteral:S.character,EscapeSequence:S.escape,"UserDefinedLiteral/Identifier":S.literal,PreProcArg:S.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":S.processingInstruction,MacroName:S.special(S.name),"( )":S.paren,"[ ]":S.squareBracket,"{ }":S.brace,"< >":S.angleBracket,". ->":S.derefOperator,", ;":S.separator}),tDe={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},nDe={__proto__:null,"<":131},rDe={__proto__:null,">":135},iDe={__proto__:null,operator:388,new:576,delete:582},aDe=Cn.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQU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O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""]],propSources:[eDe],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$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f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[KCe,JCe,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:e=>tDe[e]||-1},{term:32,get:e=>nDe[e]||-1},{term:66,get:e=>rDe[e]||-1},{term:363,get:e=>iDe[e]||-1}],tokenPrec:24891}),J4=kn.define({name:"cpp",parser:aDe.configure({props:[jn.add({IfStatement:In({except:/^\s*({|else\b)/}),TryStatement:In({except:/^\s*({|catch)\b/}),LabeledStatement:Tb,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:Sa({closing:"}"}),Statement:In({except:/^{/})}),Hn.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":zi,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function oDe(){return new Tn(J4)}const eG=Object.freeze(Object.defineProperty({__proto__:null,cpp:oDe,cppLanguage:J4},Symbol.toStringTag,{value:"Module"})),sDe=177,lDe=179,cDe=184,uDe=12,ODe=13,dDe=17,fDe=20,pDe=25,mDe=53,hDe=95,gDe=142,_De=144,bDe=145,SDe=148,yDe=10,vDe=13,EDe=32,TDe=9,tG=47,$De=41,xDe=125,QDe=new dt((e,t)=>{for(let n=0,r=e.next;(t.context&&(r<0||r==yDe||r==vDe||r==tG&&e.peek(n+1)==tG)||r==$De||r==xDe)&&e.acceptToken(sDe),!(r!=EDe&&r!=TDe);)r=e.peek(++n)},{contextual:!0});let PDe=new Set([hDe,cDe,fDe,uDe,dDe,_De,bDe,gDe,SDe,ODe,mDe,pDe]);const wDe=new bu({start:!1,shift:(e,t)=>t==lDe?e:PDe.has(t)}),RDe=Rn({"func interface struct chan map const type var":S.definitionKeyword,"import package":S.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":S.controlKeyword,range:S.keyword,Bool:S.bool,String:S.string,Rune:S.character,Number:S.number,Nil:S.null,VariableName:S.variableName,DefName:S.definition(S.variableName),TypeName:S.typeName,LabelName:S.labelName,FieldName:S.propertyName,"FunctionDecl/DefName":S.function(S.definition(S.variableName)),"TypeSpec/DefName":S.definition(S.typeName),"CallExpr/VariableName":S.function(S.variableName),LineComment:S.lineComment,BlockComment:S.blockComment,LogicOp:S.logicOperator,ArithOp:S.arithmeticOperator,BitOp:S.bitwiseOperator,"DerefOp .":S.derefOperator,"UpdateOp IncDecOp":S.updateOperator,CompareOp:S.compareOperator,"= :=":S.definitionOperator,"<-":S.operator,'~ "*"':S.modifier,"; ,":S.separator,"... :":S.punctuation,"( )":S.paren,"[ ]":S.squareBracket,"{ }":S.brace}),kDe={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},CDe=Cn.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQ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|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:wDe,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[RDe],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&y;'S;=`'y;=`O&y~(OXd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k;=`<%l&y<%lO&y~(nP;=`<%l&y~(vO^~~({O]~~)QP%Y~!_!`&X~)YQ%f~{|)`!_!`&X~)eO#R~~)jOn~~)oQ%g~}!O)`!_!`&X~)zRZS!O!P*T!Q![*`#R#S+w~*WP!O!P*Z~*`Ou~Q*eTaQ!Q![*`!g!h*t#R#S+w#X#Y*t#]#^+rQ*wS{|+T}!O+T!Q![+^#R#S+lQ+WQ!Q![+^#R#S+lQ+cRaQ!Q![+^#R#S+l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<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[QDe,1,2,new eo("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:e=>kDe[e]||-1}],tokenPrec:5451}),nG=[Tt("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),Tt("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),Tt("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),Tt("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),Tt("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),Tt("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),Tt("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Tt("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),Tt(`select { \${} }`,{label:"select",detail:"statement",type:"keyword"}),Tt("case ${}:\n${}",{label:"case",type:"keyword"}),Tt("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),Tt("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),Tt("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Tt(`if \${} { From 0f1741fd7530eb4607da7362196cd46e4fb679aa Mon Sep 17 00:00:00 2001 From: of-HaiQin <5372604@qq.com> Date: Thu, 21 Nov 2024 14:46:38 +0800 Subject: [PATCH 03/15] [feat] add loadding for model list --- .../src/components/model-select/Index.vue | 31 ++++++----- .../model-select/ModelPagination.vue | 2 +- .../components/model-select/ModelTable.vue | 52 +++++-------------- biz_lib_frontend/src/stores/modelStatus.ts | 4 +- biz_lib_frontend/src/utils/tool.ts | 15 +++++- 5 files changed, 48 insertions(+), 56 deletions(-) diff --git a/biz_lib_frontend/src/components/model-select/Index.vue b/biz_lib_frontend/src/components/model-select/Index.vue index db1e8358..9ddfc566 100644 --- a/biz_lib_frontend/src/components/model-select/Index.vue +++ b/biz_lib_frontend/src/components/model-select/Index.vue @@ -33,9 +33,9 @@ const tabLabels: Record = { } -const getModelList = () => { +const getModelList = async () => { modelStoreInstance.setIsLoading(true) - get_model_list(modelStoreInstance.modelListPathParams, modelStoreInstance.filterState) + await get_model_list(modelStoreInstance.modelListPathParams, modelStoreInstance.filterState) .then(response => { if (response && response.data) { modelStoreInstance.modelListPathParams.total = response?.data?.total || 0 @@ -50,9 +50,10 @@ const getModelList = () => { modelStoreInstance.modelListPathParams.total = 0 modelStoreInstance.models = [] }) - .finally(() => { + .finally(async () => { modelStoreInstance.setIsLoading(false) }) + console.log('index', modelStoreInstance.isLoading) } const showSortPopover = ref(false) @@ -83,7 +84,7 @@ const getFilterData = () => { modelStoreInstance.setBaseModelTypes(baseModelResponse?.data ? (baseModelResponse.data as CommonModelType[]) : []) }) .catch(error => { - useToaster.error(`Failed to fetch base model types${error}`) + useToaster.error(`Failed to fetch base model types${error}`) modelStoreInstance.setModelTypes([]) modelStoreInstance.setBaseModelTypes([]) }) @@ -103,20 +104,28 @@ watch(() => modelStoreInstance.closeModelSelectDialog, (newVal: boolean, oldVal: } }, { deep: true }) -watch(() => modelStoreInstance.reload, (newVal: number, oldVal: number) => { +watch(() => modelStoreInstance.reload, async (newVal: number, oldVal: number) => { if (newVal !== oldVal) { - getModelList() + await getModelList() } }, { deep: true }) -watch(() => modelStoreInstance.reloadModelSelectList, (newVal: boolean, oldVal: boolean) => { +watch(() => modelStoreInstance.reloadModelSelectList, async (newVal: boolean, oldVal: boolean) => { if (newVal !== oldVal) { - getModelList() + await getModelList() } }, { deep: true }) +watch(() => modelStoreInstance.modelListPathParams.current, async (newVal: number, oldVal: number) => { + + if (newVal !== oldVal && showDialog.value) { + await getModelList() + } +}) + onMounted(async () => { + console.log('index onMounted') if (props.modelType) { modelStoreInstance.selectedModelTypes = props.modelType modelStoreInstance.filterState.model_types = props.modelType @@ -125,13 +134,11 @@ onMounted(async () => { modelStoreInstance.selectedBaseModels = props.selectedBaseModels modelStoreInstance.filterState.base_models = props.selectedBaseModels } - await getFilterData() - await getModelList() showDialog.value = true }) -watch(() => showDialog.value, async (newVal) => { +watch(() => showDialog.value, async (newVal: boolean) => { if (newVal) { if (props.modelType) { modelStoreInstance.selectedModelTypes = props.modelType @@ -148,9 +155,7 @@ watch(() => showDialog.value, async (newVal) => { }) const handleClose = () => { - modelStoreInstance.models = [] showDialog.value = false - } diff --git a/biz_lib_frontend/src/components/model-select/ModelPagination.vue b/biz_lib_frontend/src/components/model-select/ModelPagination.vue index 677ba40c..0462bd5c 100644 --- a/biz_lib_frontend/src/components/model-select/ModelPagination.vue +++ b/biz_lib_frontend/src/components/model-select/ModelPagination.vue @@ -33,7 +33,7 @@ const handlePageChange = (page: number) => {