Spaces:
Runtime error
Runtime error
曹文跃
commited on
Commit
•
48e0f2a
1
Parent(s):
224edfe
fontend update
Browse files
metagpt/static/assets/{home-03c68815.js → home-a1d5c9a6.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
var Fw=Object.defineProperty;var Bw=(t,e,n)=>e in t?Fw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mi=(t,e,n)=>(Bw(t,typeof e!="symbol"?e+"":e,n),n);import{d as be,x as yt,c as le,f as V,h as ae,l as B,n as It,k as Bt,r as ee,o as kn,w as Zt,v as ue,$ as q,j as oi,p as ot,q as dt,a2 as wr,a3 as Zi,a4 as Ji,t as vt,F as st,U as Ws,R as $i,H as bm,G as Kn,i as Ft,B as ni,g as $m,K as Pn,a5 as j,J as Gw,A as Ks,a6 as Yw,I as OC,a7 as Hm,Q as si,T as Hi,z as zm,L as Qs,b as Ya,a8 as Vm,P as yn,s as Ge,u as Qe,M as ji,a9 as qw,y as AC,D as Ls,aa as $w,_ as Hw,a as zw,ab as Vw,N as Ww,ac as Kw}from"./vue-e0bc46a9.js";import{_ as Un,j as Fn,k as Bn,m as Qw,o as Ht,e as Rt,M as yC,n as IC,p as Ka,q as Xw,r as Zw,O as Zc,s as Jw,D as DC,u as jw,v as eM,A as tM,T as nM,B as hm,g as xC,w as rM,L as Gf,x as iM,y as aM,z as oM,E as sM,G as lM,S as cM,H as uM}from"./vendor-4cd7d240.js";import{C as Wm,U as dM,t as Km}from"./index-49768538.js";import{c as La,a as _M,g as Qm}from"./__commonjsHelpers__-042e6b4d.js";const pM="/static/assets/bigTexCard-be1474a9.svg",mM="/static/assets/example-1902a4ef.png",gM="/static/assets/example-c1208c62.mp4",EM=["xlink:href"],ea=be({__name:"Icon",props:{iconId:{},fill:{},size:{},disabled:{type:Boolean}},setup(t){const e=t,n=yt(e,"iconId"),i=yt(e,"fill"),o=le(()=>n.value.split("-").filter(l=>l).map(l=>l[0].toUpperCase()+l.slice(1)).join("")),s=le(()=>`width: ${e.size}px;height:${e.size}px;fill:${i.value}`);return(l,c)=>(V(),ae("svg",{class:It([o.value,n.value,"IconCommon",l.disabled?"iconDisabled":""]),style:Bt(s.value),"aria-hidden":"true"},[B("use",{"xlink:href":`#${n.value}`},null,8,EM)],6))}});const fM="/static/assets/wechat-4dad209c.png",SM=be({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-download`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),bM=["stroke-width","stroke-linecap","stroke-linejoin"],hM=B("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1),TM=[hM];function vM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},TM,14,bM)}var Jc=Un(SM,[["render",vM]]);const CM=Object.assign(Jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+Jc.name,Jc)}}),RM=be({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-scan`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),NM=["stroke-width","stroke-linecap","stroke-linejoin"],OM=B("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1),AM=[OM];function yM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},AM,14,NM)}var jc=Un(RM,[["render",yM]]);const IM=Object.assign(jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+jc.name,jc)}}),DM=be({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-sync`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),xM=["stroke-width","stroke-linecap","stroke-linejoin"],wM=B("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1),MM=[wM];function LM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},MM,14,xM)}var eu=Un(DM,[["render",LM]]);const gs=Object.assign(eu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+eu.name,eu)}}),PM=be({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-voice`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),kM=["stroke-width","stroke-linecap","stroke-linejoin"],UM=B("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1),FM=[UM];function BM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},FM,14,kM)}var tu=Un(PM,[["render",BM]]);const GM=Object.assign(tu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+tu.name,tu)}}),YM=be({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),qM=["stroke-width","stroke-linecap","stroke-linejoin"],$M=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1),HM=[$M];function zM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},HM,14,qM)}var nu=Un(YM,[["render",zM]]);const VM=Object.assign(nu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+nu.name,nu)}}),WM=be({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),KM=["stroke-width","stroke-linecap","stroke-linejoin"],QM=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1),XM=[QM];function ZM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},XM,14,KM)}var ru=Un(WM,[["render",ZM]]);const JM=Object.assign(ru,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ru.name,ru)}}),jM=be({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),eL=["stroke-width","stroke-linecap","stroke-linejoin"],tL=B("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),nL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),rL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1),iL=[tL,nL,rL];function aL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},iL,14,eL)}var iu=Un(jM,[["render",aL]]);const oL=Object.assign(iu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+iu.name,iu)}}),sL=be({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-book`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),lL=["stroke-width","stroke-linecap","stroke-linejoin"],cL=B("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1),uL=[cL];function dL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},uL,14,lL)}var au=Un(sL,[["render",dL]]);const _L=Object.assign(au,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+au.name,au)}}),pL=be({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-image`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),mL=["stroke-width","stroke-linecap","stroke-linejoin"],gL=B("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),EL=B("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1),fL=[gL,EL];function SL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},fL,14,mL)}var ou=Un(pL,[["render",SL]]);const bL=Object.assign(ou,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ou.name,ou)}}),hL=be({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-nav`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),TL=["stroke-width","stroke-linecap","stroke-linejoin"],vL=B("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1),CL=[vL];function RL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},CL,14,TL)}var su=Un(hL,[["render",RL]]);const NL=Object.assign(su,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+su.name,su)}}),OL=be({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-public`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),AL=["stroke-width","stroke-linecap","stroke-linejoin"],yL=B("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),IL=[yL];function DL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},IL,14,AL)}var lu=Un(OL,[["render",DL]]);const xL=Object.assign(lu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+lu.name,lu)}}),wL={class:"header"},ML={class:"content"},LL=be({__name:"modal",props:{visible:{type:Boolean}},emits:["update:visible","close"],setup(t,{emit:e}){const n=t,i=ee(null),o=()=>{e("update:visible",!1),e("close")};return kn(()=>{Zt(()=>n.visible,s=>{var l,c;s?(l=i.value)==null||l.showModal():(c=i.value)==null||c.close()},{immediate:!0})}),(s,l)=>(V(),ae("dialog",{ref_key:"dialogRef",ref:i,class:"customDialog"},[B("div",wL,[ue(q(Qw),{style:{cursor:"pointer"},size:24,onClick:o})]),B("div",ML,[oi(s.$slots,"default",{},void 0,!0)])],512))}});const Dt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n},wC=Dt(LL,[["__scopeId","data-v-6fddb6c7"]]),Xs=t=>(Zi("data-v-e442bd8c"),t=t(),Ji(),t),PL={class:"wechatModal"},kL={class:"title"},UL=Xs(()=>B("div",{class:"titleText"},"WeChat",-1)),FL=Xs(()=>B("div",{class:"desc"}," Add the MetaGPT WeChat assistant to get the latest MetaGPT updates. Join the MetaGPT community for more high-quality technical and product discussions. ",-1)),BL={class:"qrCode"},GL=Xs(()=>B("img",{style:{width:"100%"},src:fM,alt:""},null,-1)),YL={class:"scanText"},qL=Xs(()=>B("span",null,"Scan on WeChat to add.",-1)),$L=be({__name:"wechatModal",props:{visible:{type:Boolean}},emits:["update:visible"],setup(t,{emit:e}){const i=yt(t,"visible"),o=()=>{e("update:visible",!1)};return(s,l)=>(V(),ot(wC,{visible:q(i),"onUpdate:visible":l[0]||(l[0]=c=>wr(i)?i.value=c:null),style:{width:"527px"},onClose:o},{default:dt(()=>[B("div",PL,[B("div",kL,[ue(ea,{size:28,fill:"#28C445","icon-id":"icon-wechat2"}),UL]),FL,B("div",BL,[GL,B("span",YL,[ue(q(IM),{size:16}),qL])])])]),_:1},8,["visible"]))}});const HL=Dt($L,[["__scopeId","data-v-e442bd8c"]]),zL="/static/assets/blacklogo-ead63efd.svg",VL={},WL={style:{width:"32px","vertical-align":"middle"},src:zL};function KL(t,e){return V(),ae("img",WL)}const QL=Dt(VL,[["render",KL]]);let Ps=[];const MC=new WeakMap;function XL(){Ps.forEach(t=>t(...MC.get(t))),Ps=[]}function LC(t,...e){MC.set(t,e),!Ps.includes(t)&&Ps.push(t)===1&&requestAnimationFrame(XL)}function ks(t){return t.composedPath()[0]||null}const Yf={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ta="^\\s*",na="\\s*$",Xr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Zr="([0-9A-Fa-f])",Jr="([0-9A-Fa-f]{2})",ZL=new RegExp(`${ta}rgb\\s*\\(${Xr},${Xr},${Xr}\\)${na}`),JL=new RegExp(`${ta}rgba\\s*\\(${Xr},${Xr},${Xr},${Xr}\\)${na}`),jL=new RegExp(`${ta}#${Zr}${Zr}${Zr}${na}`),eP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${na}`),tP=new RegExp(`${ta}#${Zr}${Zr}${Zr}${Zr}${na}`),nP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${Jr}${na}`);function sn(t){return parseInt(t,16)}function Ki(t){try{let e;if(e=eP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),1];if(e=ZL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),1];if(e=JL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),qa(e[13])];if(e=jL.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),1];if(e=nP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),qa(sn(e[4])/255)];if(e=tP.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),qa(sn(e[4]+e[4])/255)];if(t in Yf)return Ki(Yf[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function rP(t){return t>1?1:t<0?0:t}function iP(t,e,n,i){return`rgba(${Qt(t)}, ${Qt(e)}, ${Qt(n)}, ${rP(i)})`}function cu(t,e,n,i,o){return Qt((t*e*(1-i)+n*i)/o)}function PC(t,e){Array.isArray(t)||(t=Ki(t)),Array.isArray(e)||(e=Ki(e));const n=t[3],i=e[3],o=qa(n+i-n*i);return iP(cu(t[0],n,e[0],i,o),cu(t[1],n,e[1],i,o),cu(t[2],n,e[2],i,o),o)}function Es(t,e){const[n,i,o,s=1]=Array.isArray(t)?t:Ki(t),{lightness:l=1,alpha:c=1}=e;return aP([n*l,i*l,o*l,s*c])}function qa(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function Qt(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function aP(t){const[e,n,i]=t;return 3 in t?`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, ${qa(t[3])})`:`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, 1)`}function kC(t=8){return Math.random().toString(16).slice(2,2+t)}function oP(t,e=[],n){const i={};return e.forEach(o=>{i[o]=t[o]}),Object.assign(i,n)}function Tm(t,e=!0,n=[]){return t.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&n.push(vt(String(i)));return}if(Array.isArray(i)){Tm(i,e,n);return}if(i.type===st){if(i.children===null)return;Array.isArray(i.children)&&Tm(i.children,e,n)}else i.type!==Ws&&n.push(i)}}),n}function Ga(t,...e){if(Array.isArray(t))t.forEach(n=>Ga(n,...e));else return t(...e)}function qf(t,e){console.error(`[naive/${t}]: ${e}`)}function sP(t,e){throw new Error(`[naive/${t}]: ${e}`)}function $f(t,e="default",n=void 0){const i=t[e];if(!i)return qf("getFirstSlotVNode",`slot[${e}] is empty`),null;const o=Tm(i(n));return o.length===1?o[0]:(qf("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Xm(t){return t.some(e=>$i(e)?!(e.type===Ws||e.type===st&&!Xm(e.children)):!0)?t:null}function uu(t,e){const n=t&&Xm(t());return e(n||null)}function Hf(t){return!(t&&Xm(t()))}const zf=be({render(){var t,e;return(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t)}}),lP=/^(\d|\.)+$/,Vf=/(\d|\.)+/;function du(t,{c:e=1,offset:n=0,attachPx:i=!0}={}){if(typeof t=="number"){const o=(t+n)*e;return o===0?"0":`${o}px`}else if(typeof t=="string")if(lP.test(t)){const o=(Number(t)+n)*e;return i?o===0?"0":`${o}px`:`${o}`}else{const o=Vf.exec(t);return o?t.replace(Vf,String((Number(o[0])+n)*e)):t}return t}function cP(t){let e=0;for(let n=0;n<t.length;++n)t[n]==="&"&&++e;return e}const UC=/\s*,(?![^(]*\))\s*/g,uP=/\s+/g;function dP(t,e){const n=[];return e.split(UC).forEach(i=>{let o=cP(i);if(o){if(o===1){t.forEach(l=>{n.push(i.replace("&",l))});return}}else{t.forEach(l=>{n.push((l&&l+" ")+i)});return}let s=[i];for(;o--;){const l=[];s.forEach(c=>{t.forEach(d=>{l.push(c.replace("&",d))})}),s=l}s.forEach(l=>n.push(l))}),n}function _P(t,e){const n=[];return e.split(UC).forEach(i=>{t.forEach(o=>{n.push((o&&o+" ")+i)})}),n}function pP(t){let e=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?e=dP(e,n):e=_P(e,n))}),e.join(", ").replace(uP," ")}function Wf(t){if(!t)return;const e=t.parentElement;e&&e.removeChild(t)}function Zs(t){return document.querySelector(`style[cssr-id="${t}"]`)}function mP(t){const e=document.createElement("style");return e.setAttribute("cssr-id",t),e}function fs(t){return t?/^\s*@(s|m)/.test(t):!1}const gP=/[A-Z]/g;function FC(t){return t.replace(gP,e=>"-"+e.toLowerCase())}function EP(t,e=" "){return typeof t=="object"&&t!==null?` {
|
2 |
`+Object.entries(t).map(n=>e+` ${FC(n[0])}: ${n[1]};`).join(`
|
3 |
`)+`
|
4 |
`+e+"}":`: ${t};`}function fP(t,e,n){return typeof t=="function"?t({context:e.context,props:n}):t}function Kf(t,e,n,i){if(!e)return"";const o=fP(e,n,i);if(!o)return"";if(typeof o=="string")return`${t} {
|
|
|
1 |
+
var Fw=Object.defineProperty;var Bw=(t,e,n)=>e in t?Fw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Mi=(t,e,n)=>(Bw(t,typeof e!="symbol"?e+"":e,n),n);import{d as be,x as yt,c as le,f as V,h as ae,l as B,n as It,k as Bt,r as ee,o as kn,w as Zt,v as ue,$ as q,j as oi,p as ot,q as dt,a2 as wr,a3 as Zi,a4 as Ji,t as vt,F as st,U as Ws,R as $i,H as bm,G as Kn,i as Ft,B as ni,g as $m,K as Pn,a5 as j,J as Gw,A as Ks,a6 as Yw,I as OC,a7 as Hm,Q as si,T as Hi,z as zm,L as Qs,b as Ya,a8 as Vm,P as yn,s as Ge,u as Qe,M as ji,a9 as qw,y as AC,D as Ls,aa as $w,_ as Hw,a as zw,ab as Vw,N as Ww,ac as Kw}from"./vue-e0bc46a9.js";import{_ as Un,j as Fn,k as Bn,m as Qw,o as Ht,e as Rt,M as yC,n as IC,p as Ka,q as Xw,r as Zw,O as Zc,s as Jw,D as DC,u as jw,v as eM,A as tM,T as nM,B as hm,g as xC,w as rM,L as Gf,x as iM,y as aM,z as oM,E as sM,G as lM,S as cM,H as uM}from"./vendor-4cd7d240.js";import{C as Wm,U as dM,t as Km}from"./index-054e9309.js";import{c as La,a as _M,g as Qm}from"./__commonjsHelpers__-042e6b4d.js";const pM="/static/assets/bigTexCard-be1474a9.svg",mM="/static/assets/example-1902a4ef.png",gM="/static/assets/example-c1208c62.mp4",EM=["xlink:href"],ea=be({__name:"Icon",props:{iconId:{},fill:{},size:{},disabled:{type:Boolean}},setup(t){const e=t,n=yt(e,"iconId"),i=yt(e,"fill"),o=le(()=>n.value.split("-").filter(l=>l).map(l=>l[0].toUpperCase()+l.slice(1)).join("")),s=le(()=>`width: ${e.size}px;height:${e.size}px;fill:${i.value}`);return(l,c)=>(V(),ae("svg",{class:It([o.value,n.value,"IconCommon",l.disabled?"iconDisabled":""]),style:Bt(s.value),"aria-hidden":"true"},[B("use",{"xlink:href":`#${n.value}`},null,8,EM)],6))}});const fM="/static/assets/wechat-4dad209c.png",SM=be({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-download`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),bM=["stroke-width","stroke-linecap","stroke-linejoin"],hM=B("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1),TM=[hM];function vM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},TM,14,bM)}var Jc=Un(SM,[["render",vM]]);const CM=Object.assign(Jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+Jc.name,Jc)}}),RM=be({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-scan`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),NM=["stroke-width","stroke-linecap","stroke-linejoin"],OM=B("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1),AM=[OM];function yM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},AM,14,NM)}var jc=Un(RM,[["render",yM]]);const IM=Object.assign(jc,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+jc.name,jc)}}),DM=be({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-sync`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),xM=["stroke-width","stroke-linecap","stroke-linejoin"],wM=B("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1),MM=[wM];function LM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},MM,14,xM)}var eu=Un(DM,[["render",LM]]);const gs=Object.assign(eu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+eu.name,eu)}}),PM=be({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-voice`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),kM=["stroke-width","stroke-linecap","stroke-linejoin"],UM=B("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1),FM=[UM];function BM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},FM,14,kM)}var tu=Un(PM,[["render",BM]]);const GM=Object.assign(tu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+tu.name,tu)}}),YM=be({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),qM=["stroke-width","stroke-linecap","stroke-linejoin"],$M=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1),HM=[$M];function zM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},HM,14,qM)}var nu=Un(YM,[["render",zM]]);const VM=Object.assign(nu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+nu.name,nu)}}),WM=be({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),KM=["stroke-width","stroke-linecap","stroke-linejoin"],QM=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1),XM=[QM];function ZM(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},XM,14,KM)}var ru=Un(WM,[["render",ZM]]);const JM=Object.assign(ru,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ru.name,ru)}}),jM=be({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),eL=["stroke-width","stroke-linecap","stroke-linejoin"],tL=B("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),nL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),rL=B("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1),iL=[tL,nL,rL];function aL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},iL,14,eL)}var iu=Un(jM,[["render",aL]]);const oL=Object.assign(iu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+iu.name,iu)}}),sL=be({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-book`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),lL=["stroke-width","stroke-linecap","stroke-linejoin"],cL=B("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1),uL=[cL];function dL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},uL,14,lL)}var au=Un(sL,[["render",dL]]);const _L=Object.assign(au,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+au.name,au)}}),pL=be({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-image`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),mL=["stroke-width","stroke-linecap","stroke-linejoin"],gL=B("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),EL=B("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1),fL=[gL,EL];function SL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},fL,14,mL)}var ou=Un(pL,[["render",SL]]);const bL=Object.assign(ou,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+ou.name,ou)}}),hL=be({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-nav`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),TL=["stroke-width","stroke-linecap","stroke-linejoin"],vL=B("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1),CL=[vL];function RL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},CL,14,TL)}var su=Un(hL,[["render",RL]]);const NL=Object.assign(su,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+su.name,su)}}),OL=be({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:t=>["butt","round","square"].includes(t)},strokeLinejoin:{type:String,default:"miter",validator:t=>["arcs","bevel","miter","miter-clip","round"].includes(t)},rotate:Number,spin:Boolean},emits:{click:t=>!0},setup(t,{emit:e}){const n=Fn("icon"),i=le(()=>[n,`${n}-public`,{[`${n}-spin`]:t.spin}]),o=le(()=>{const l={};return t.size&&(l.fontSize=Bn(t.size)?`${t.size}px`:t.size),t.rotate&&(l.transform=`rotate(${t.rotate}deg)`),l});return{cls:i,innerStyle:o,onClick:l=>{e("click",l)}}}}),AL=["stroke-width","stroke-linecap","stroke-linejoin"],yL=B("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),IL=[yL];function DL(t,e,n,i,o,s){return V(),ae("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:It(t.cls),style:Bt(t.innerStyle),"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},IL,14,AL)}var lu=Un(OL,[["render",DL]]);const xL=Object.assign(lu,{install:(t,e)=>{var n;const i=(n=e==null?void 0:e.iconPrefix)!=null?n:"";t.component(i+lu.name,lu)}}),wL={class:"header"},ML={class:"content"},LL=be({__name:"modal",props:{visible:{type:Boolean}},emits:["update:visible","close"],setup(t,{emit:e}){const n=t,i=ee(null),o=()=>{e("update:visible",!1),e("close")};return kn(()=>{Zt(()=>n.visible,s=>{var l,c;s?(l=i.value)==null||l.showModal():(c=i.value)==null||c.close()},{immediate:!0})}),(s,l)=>(V(),ae("dialog",{ref_key:"dialogRef",ref:i,class:"customDialog"},[B("div",wL,[ue(q(Qw),{style:{cursor:"pointer"},size:24,onClick:o})]),B("div",ML,[oi(s.$slots,"default",{},void 0,!0)])],512))}});const Dt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n},wC=Dt(LL,[["__scopeId","data-v-6fddb6c7"]]),Xs=t=>(Zi("data-v-e442bd8c"),t=t(),Ji(),t),PL={class:"wechatModal"},kL={class:"title"},UL=Xs(()=>B("div",{class:"titleText"},"WeChat",-1)),FL=Xs(()=>B("div",{class:"desc"}," Add the MetaGPT WeChat assistant to get the latest MetaGPT updates. Join the MetaGPT community for more high-quality technical and product discussions. ",-1)),BL={class:"qrCode"},GL=Xs(()=>B("img",{style:{width:"100%"},src:fM,alt:""},null,-1)),YL={class:"scanText"},qL=Xs(()=>B("span",null,"Scan on WeChat to add.",-1)),$L=be({__name:"wechatModal",props:{visible:{type:Boolean}},emits:["update:visible"],setup(t,{emit:e}){const i=yt(t,"visible"),o=()=>{e("update:visible",!1)};return(s,l)=>(V(),ot(wC,{visible:q(i),"onUpdate:visible":l[0]||(l[0]=c=>wr(i)?i.value=c:null),style:{width:"527px"},onClose:o},{default:dt(()=>[B("div",PL,[B("div",kL,[ue(ea,{size:28,fill:"#28C445","icon-id":"icon-wechat2"}),UL]),FL,B("div",BL,[GL,B("span",YL,[ue(q(IM),{size:16}),qL])])])]),_:1},8,["visible"]))}});const HL=Dt($L,[["__scopeId","data-v-e442bd8c"]]),zL="/static/assets/blacklogo-ead63efd.svg",VL={},WL={style:{width:"32px","vertical-align":"middle"},src:zL};function KL(t,e){return V(),ae("img",WL)}const QL=Dt(VL,[["render",KL]]);let Ps=[];const MC=new WeakMap;function XL(){Ps.forEach(t=>t(...MC.get(t))),Ps=[]}function LC(t,...e){MC.set(t,e),!Ps.includes(t)&&Ps.push(t)===1&&requestAnimationFrame(XL)}function ks(t){return t.composedPath()[0]||null}const Yf={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ta="^\\s*",na="\\s*$",Xr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Zr="([0-9A-Fa-f])",Jr="([0-9A-Fa-f]{2})",ZL=new RegExp(`${ta}rgb\\s*\\(${Xr},${Xr},${Xr}\\)${na}`),JL=new RegExp(`${ta}rgba\\s*\\(${Xr},${Xr},${Xr},${Xr}\\)${na}`),jL=new RegExp(`${ta}#${Zr}${Zr}${Zr}${na}`),eP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${na}`),tP=new RegExp(`${ta}#${Zr}${Zr}${Zr}${Zr}${na}`),nP=new RegExp(`${ta}#${Jr}${Jr}${Jr}${Jr}${na}`);function sn(t){return parseInt(t,16)}function Ki(t){try{let e;if(e=eP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),1];if(e=ZL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),1];if(e=JL.exec(t))return[Qt(e[1]),Qt(e[5]),Qt(e[9]),qa(e[13])];if(e=jL.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),1];if(e=nP.exec(t))return[sn(e[1]),sn(e[2]),sn(e[3]),qa(sn(e[4])/255)];if(e=tP.exec(t))return[sn(e[1]+e[1]),sn(e[2]+e[2]),sn(e[3]+e[3]),qa(sn(e[4]+e[4])/255)];if(t in Yf)return Ki(Yf[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function rP(t){return t>1?1:t<0?0:t}function iP(t,e,n,i){return`rgba(${Qt(t)}, ${Qt(e)}, ${Qt(n)}, ${rP(i)})`}function cu(t,e,n,i,o){return Qt((t*e*(1-i)+n*i)/o)}function PC(t,e){Array.isArray(t)||(t=Ki(t)),Array.isArray(e)||(e=Ki(e));const n=t[3],i=e[3],o=qa(n+i-n*i);return iP(cu(t[0],n,e[0],i,o),cu(t[1],n,e[1],i,o),cu(t[2],n,e[2],i,o),o)}function Es(t,e){const[n,i,o,s=1]=Array.isArray(t)?t:Ki(t),{lightness:l=1,alpha:c=1}=e;return aP([n*l,i*l,o*l,s*c])}function qa(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function Qt(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}function aP(t){const[e,n,i]=t;return 3 in t?`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, ${qa(t[3])})`:`rgba(${Qt(e)}, ${Qt(n)}, ${Qt(i)}, 1)`}function kC(t=8){return Math.random().toString(16).slice(2,2+t)}function oP(t,e=[],n){const i={};return e.forEach(o=>{i[o]=t[o]}),Object.assign(i,n)}function Tm(t,e=!0,n=[]){return t.forEach(i=>{if(i!==null){if(typeof i!="object"){(typeof i=="string"||typeof i=="number")&&n.push(vt(String(i)));return}if(Array.isArray(i)){Tm(i,e,n);return}if(i.type===st){if(i.children===null)return;Array.isArray(i.children)&&Tm(i.children,e,n)}else i.type!==Ws&&n.push(i)}}),n}function Ga(t,...e){if(Array.isArray(t))t.forEach(n=>Ga(n,...e));else return t(...e)}function qf(t,e){console.error(`[naive/${t}]: ${e}`)}function sP(t,e){throw new Error(`[naive/${t}]: ${e}`)}function $f(t,e="default",n=void 0){const i=t[e];if(!i)return qf("getFirstSlotVNode",`slot[${e}] is empty`),null;const o=Tm(i(n));return o.length===1?o[0]:(qf("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Xm(t){return t.some(e=>$i(e)?!(e.type===Ws||e.type===st&&!Xm(e.children)):!0)?t:null}function uu(t,e){const n=t&&Xm(t());return e(n||null)}function Hf(t){return!(t&&Xm(t()))}const zf=be({render(){var t,e;return(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t)}}),lP=/^(\d|\.)+$/,Vf=/(\d|\.)+/;function du(t,{c:e=1,offset:n=0,attachPx:i=!0}={}){if(typeof t=="number"){const o=(t+n)*e;return o===0?"0":`${o}px`}else if(typeof t=="string")if(lP.test(t)){const o=(Number(t)+n)*e;return i?o===0?"0":`${o}px`:`${o}`}else{const o=Vf.exec(t);return o?t.replace(Vf,String((Number(o[0])+n)*e)):t}return t}function cP(t){let e=0;for(let n=0;n<t.length;++n)t[n]==="&"&&++e;return e}const UC=/\s*,(?![^(]*\))\s*/g,uP=/\s+/g;function dP(t,e){const n=[];return e.split(UC).forEach(i=>{let o=cP(i);if(o){if(o===1){t.forEach(l=>{n.push(i.replace("&",l))});return}}else{t.forEach(l=>{n.push((l&&l+" ")+i)});return}let s=[i];for(;o--;){const l=[];s.forEach(c=>{t.forEach(d=>{l.push(c.replace("&",d))})}),s=l}s.forEach(l=>n.push(l))}),n}function _P(t,e){const n=[];return e.split(UC).forEach(i=>{t.forEach(o=>{n.push((o&&o+" ")+i)})}),n}function pP(t){let e=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?e=dP(e,n):e=_P(e,n))}),e.join(", ").replace(uP," ")}function Wf(t){if(!t)return;const e=t.parentElement;e&&e.removeChild(t)}function Zs(t){return document.querySelector(`style[cssr-id="${t}"]`)}function mP(t){const e=document.createElement("style");return e.setAttribute("cssr-id",t),e}function fs(t){return t?/^\s*@(s|m)/.test(t):!1}const gP=/[A-Z]/g;function FC(t){return t.replace(gP,e=>"-"+e.toLowerCase())}function EP(t,e=" "){return typeof t=="object"&&t!==null?` {
|
2 |
`+Object.entries(t).map(n=>e+` ${FC(n[0])}: ${n[1]};`).join(`
|
3 |
`)+`
|
4 |
`+e+"}":`: ${t};`}function fP(t,e,n){return typeof t=="function"?t({context:e.context,props:n}):t}function Kf(t,e,n,i){if(!e)return"";const o=fP(e,n,i);if(!o)return"";if(typeof o=="string")return`${t} {
|
metagpt/static/assets/index-054e9309.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{c as T,Y as re,Z as ce,r as ae,_ as ie,d as le,m as ue,f as de,p as fe,q as me,$ as I,v as ge,a0 as R}from"./vue-e0bc46a9.js";import{c as pe,l as he,a as ve,b as H,M as J,t as ye,d as be,C as Se,S as N,o as P,e as U,f as we}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const _e={},Ce=new Proxy(_e,{get(e,t){return e[t]||t}}),ke={},Le=new Proxy(ke,{get(e,t){return!t.toString().startsWith("__v_")&&e[t],e[t]}}),Oe={"zh-CN":he,"en-US":ve},E={"zh-CN":"zh-CN","en-US":"en-US"};let x="lang";const Re="zh-CN";try{x=localStorage==null?void 0:localStorage.getItem(x)}catch{console.warn("[Client]:localStorage is not available.")}const Ee=Re,_=pe({locale:E[Ee],fallbackLocale:E["zh-CN"],messages:{"zh-CN":Ce,"en-US":Le}}),st=(e,t={})=>`${_.global.t(e,t)}`,xe=e=>{if(E[e]){_.global.locale=e;try{localStorage==null||localStorage.setItem(x,e)}catch{console.warn("[Client]:localStorage is not available.")}window.location.reload()}},Ae=()=>{const e=T(()=>_.global.locale);return{setLang:xe,lang:e}},qe=T(()=>Oe[_.global.locale]),y={error:-1,success:[0,200,204],needAuthorization:401,notFound:404,notAllowed:[403,1403],needRequest:202,needMessage:[208,1e3]},j=()=>{let e=()=>{};const t=new Promise(r=>{e=r});return[e,t]},{CancelToken:Y}=H,D=Math.random().toString().slice(2),Te=1*60*1e3,Me="/api";let k;const Ie=()=>{k==null||k();const{close:e}=J.error("登录失效,请重新登录!");k=e};let Z=Y.source();const Ne=()=>{Z=Y.source()},Pe=H.create({baseURL:Me,timeout:Te}),z=e=>y.success.includes(+e),Q=async e=>{const{getToken:t,logout:r}=ee(),{lang:n}=Ae(),s=Z;e.cancelToken=e.cancelToken||s.token;let o=!1;e.headers=e.headers||{},t()&&(e.headers.Authorization=t()),e.headers.lang=n.value;const a=i=>{const{data:c}=i,[u,h]=j(),f=new FileReader;return f.readAsText(c,"utf-8"),f.onload=()=>{var M;try{const C=JSON.parse(f.result);if(C){u(C);return}}catch(C){console.log(C)}const se=(M=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i.headers["content-disposition"]))==null?void 0:M[1],ne=new Blob([c],{type:i.headers["content-type"]});u({code:y.success[0],data:{name:se,blob:ne},message:"",isRequestSuccess:!0})},h},l=(i,c)=>{var h;const{code:u}=i.data;(u===y.needAuthorization||((h=c==null?void 0:c.response)==null?void 0:h.status)===401)&&(o=!0,Ie(),s.cancel(D),Ne(),r())},m=e.responseType==="blob";function d(i){o||J.error(i||this.message)}try{const i=await Pe.request(e);let{data:c}=i;return m&&(c=await a(i)),l(i),c.message=c.message||c.msg||"",c.isRequestSuccess=z(c.code),c.showRequestErrorMessage=d.bind(c),c}catch(i){if(i.message===D){const[,f]=j();return f}const c=i.response;if(!c){const f={code:y.error,message:i.message,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}let{data:u}=c;if(m&&(u=await a(c)),typeof u=="string"){const f={code:y.error,message:i.message||c.statusText,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}l(c,i),u&&(u.message=u.message||u.msg||i.message||"",u.isRequestSuccess=z(u.code),u.showRequestErrorMessage=d.bind(u));const h={code:y.error,message:i.message,isRequestSuccess:!1};return h.showRequestErrorMessage=d.bind(h),Object.assign(h,u)}},nt=e=>Q({url:"/v1/user/login",method:"post",data:e}),Ue=()=>Q({url:"/v1/user/detail"});var b=(e=>(e.home="/static/index.html",e.login="/login",e.register="/register",e.notFound="/404",e.app="/app",e.appConfig="/app/config/:id",e.appCreate="/appCreate",e.library="/library",e.knowledge="/library/knowledge",e.history="/library/history",e.config="/config",e))(b||{}),A=(e=>(e.Admin="admin",e.SuperAdmin="super_admin",e.User="user",e))(A||{});const je="modulepreload",De=function(e){return"/static/"+e},B={},O=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=De(o),o in B)return;B[o]=!0;const a=o.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const c=s[i];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":je,a||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),a)return new Promise((i,c)=>{d.addEventListener("load",i),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},ze=[{path:b.login,name:b.login,component:()=>O(()=>import("./login-bb708d78.js"),["assets/login-bb708d78.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])},{path:b.home,name:b.home,component:()=>O(()=>import("./home-a1d5c9a6.js"),["assets/home-a1d5c9a6.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"]),meta:{showSideBar:!0,needLogin:!0}},{path:"/:pathMatch(.*)*",component:()=>O(()=>import("./home-a1d5c9a6.js"),["assets/home-a1d5c9a6.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])}],Be="/",X=re({history:ce(Be),routes:ze}),S=ae(),q="token",Fe=()=>localStorage.getItem(q)||"",F=e=>e?localStorage.setItem(q,e):localStorage.removeItem(q),ee=()=>{const e=async()=>{const{data:n,showRequestErrorMessage:s,isRequestSuccess:o}=await Ue();if(!o){s();return}S.value=n},t=async()=>{F(),S.value=void 0,X.push({name:b.login})},r=T(()=>{var n,s;return((n=S.value)==null?void 0:n.user_role)===A.Admin||((s=S.value)==null?void 0:s.user_role)===A.SuperAdmin});return{getUser:e,user:S,isAdmin:r,logout:t,setToken:F,getToken:Fe}},v=ie(null);function $e(){ee();const e=n=>{var o,a;if(!v.value)return;const s=()=>{var l;n(),(l=v.value)==null||l.off("connect",s)};(o=v.value)!=null&&o.connected?n():(a=v.value)==null||a.on("connect",s)};return{socket:v,onAndAutoOff:n=>{const s=Object.entries(n).reduce((o,[a,l])=>(o[a]=m=>{l(m)},o),{});ye(async()=>{for(const[o,a]of Object.entries(s))e(()=>{v.value.on(o,a)})}),be(async()=>{var o;for(const[a,l]of Object.entries(s))(o=v.value)==null||o.off(a,l)})},emit:(n,...s)=>{e(()=>{var o;(o=v.value)==null||o.emit(n,...s)})}}}const Ve=le({__name:"App",setup(e){return $e(),(t,r)=>{const n=ue("router-view");return de(),fe(I(Se),{locale:I(qe)},{default:me(()=>[ge(n)]),_:1},8,["locale"])}}});const te=(e,t)=>Object.prototype.toString.call(e)===t,Ke=e=>te(e,"[object Boolean]"),oe=e=>te(e,"[object Object]"),rt=e=>{var t,r;if((t=navigator==null?void 0:navigator.clipboard)!=null&&t.writeText)(r=navigator==null?void 0:navigator.clipboard)==null||r.writeText(e);else{const n=document.createElement("textarea");n.value=e,n.style.position="absolute",n.style.opacity="0",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy")}},ct=e=>new TextDecoder("utf-8").decode(e),We=(e,t)=>oe(e)?t.every(r=>Object.hasOwn(e,r)):!1,Ge=e=>oe(e)&&We(e,["loading"]),$=e=>{const t={loading:!0,text:""};return Ke(e)?t.loading=e:Ge(e)?(t.loading=e.loading,t.text=e.text||""):(console.warn("please check v-loading binding, should be boolean or { loading: boolean; text: string; }"),t.loading=!!e),t},V="loadingDirectiveElement",K="fullScreen",w="posRelative",g=Symbol("vLoadingDirective"),p=Symbol("loadingSpinApp"),He={mounted:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},updated:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=$(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add(V),a&&l.classList.add(K);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},unmounted:e=>{e.classList.remove(w),e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p])}},W=e=>typeof e=="function",L=Symbol("clickOutside"),G=e=>()=>{e()},Je={mounted:(e,t)=>{if(!W(t.value)){console.warn("v-clickoutside binding should be function");return}const r=G(t.value);e[L]=r,P("clickoutside",e,r)},updated:(e,t)=>{let r=e[L];if(r&&U("clickoutside",e,r),!W(t.value)){console.warn("v-clickoutside binding should be function");return}r=G(t.value),e[L]=r,P("clickoutside",e,r)},unmounted:e=>{const t=e[L];t&&U("clickoutside",e,t)}},Ye=e=>{e.directive("loading",He),e.directive("clickoutside",Je)},Ze={install:Ye};const Qe=R(Ve);Qe.use(we()).use(X).use(Ze).use(_).mount("#app");export{rt as C,b as P,ct as U,nt as l,st as t,ee as u};
|
metagpt/static/assets/index-49768538.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{c as q,Y as re,Z as ce,r as ae,_ as ie,d as le,m as ue,f as de,p as fe,q as me,$ as M,v as ge,a0 as R}from"./vue-e0bc46a9.js";import{c as pe,l as he,a as ve,b as G,M as H,t as ye,d as Se,C as be,S as N,o as I,e as U,f as we}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();const _e={},Ce=new Proxy(_e,{get(e,t){return e[t]||t}}),ke={},Le=new Proxy(ke,{get(e,t){return!t.toString().startsWith("__v_")&&e[t],e[t]}}),Oe={"zh-CN":he,"en-US":ve},E={"zh-CN":"zh-CN","en-US":"en-US"},J="lang",Re=localStorage==null?void 0:localStorage.getItem(J),Ee=Re||(navigator.language==="zh-CN"?"zh-CN":"en-US"),_=pe({locale:E[Ee],fallbackLocale:E["zh-CN"],messages:{"zh-CN":Ce,"en-US":Le}}),st=(e,t={})=>`${_.global.t(e,t)}`,xe=e=>{E[e]&&(_.global.locale=e,localStorage==null||localStorage.setItem(J,e),window.location.reload())},Ae=()=>{const e=q(()=>_.global.locale);return{setLang:xe,lang:e}},qe=q(()=>Oe[_.global.locale]),y={error:-1,success:[0,200,204],needAuthorization:401,notFound:404,notAllowed:[403,1403],needRequest:202,needMessage:[208,1e3]},P=()=>{let e=()=>{};const t=new Promise(r=>{e=r});return[e,t]},{CancelToken:Y}=G,j=Math.random().toString().slice(2),Te=1*60*1e3,Me="/api";let k;const Ne=()=>{k==null||k();const{close:e}=H.error("登录失效,请重新登录!");k=e};let Z=Y.source();const Ie=()=>{Z=Y.source()},Ue=G.create({baseURL:Me,timeout:Te}),z=e=>y.success.includes(+e),Q=async e=>{const{getToken:t,logout:r}=ee(),{lang:n}=Ae(),s=Z;e.cancelToken=e.cancelToken||s.token;let o=!1;e.headers=e.headers||{},t()&&(e.headers.Authorization=t()),e.headers.lang=n.value;const a=i=>{const{data:c}=i,[u,h]=P(),f=new FileReader;return f.readAsText(c,"utf-8"),f.onload=()=>{var T;try{const C=JSON.parse(f.result);if(C){u(C);return}}catch(C){console.log(C)}const se=(T=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(i.headers["content-disposition"]))==null?void 0:T[1],ne=new Blob([c],{type:i.headers["content-type"]});u({code:y.success[0],data:{name:se,blob:ne},message:"",isRequestSuccess:!0})},h},l=(i,c)=>{var h;const{code:u}=i.data;(u===y.needAuthorization||((h=c==null?void 0:c.response)==null?void 0:h.status)===401)&&(o=!0,Ne(),s.cancel(j),Ie(),r())},m=e.responseType==="blob";function d(i){o||H.error(i||this.message)}try{const i=await Ue.request(e);let{data:c}=i;return m&&(c=await a(i)),l(i),c.message=c.message||c.msg||"",c.isRequestSuccess=z(c.code),c.showRequestErrorMessage=d.bind(c),c}catch(i){if(i.message===j){const[,f]=P();return f}const c=i.response;if(!c){const f={code:y.error,message:i.message,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}let{data:u}=c;if(m&&(u=await a(c)),typeof u=="string"){const f={code:y.error,message:i.message||c.statusText,isRequestSuccess:!1};return f.showRequestErrorMessage=d.bind(f),f}l(c,i),u&&(u.message=u.message||u.msg||i.message||"",u.isRequestSuccess=z(u.code),u.showRequestErrorMessage=d.bind(u));const h={code:y.error,message:i.message,isRequestSuccess:!1};return h.showRequestErrorMessage=d.bind(h),Object.assign(h,u)}},nt=e=>Q({url:"/v1/user/login",method:"post",data:e}),Pe=()=>Q({url:"/v1/user/detail"});var S=(e=>(e.home="/static/index.html",e.login="/login",e.register="/register",e.notFound="/404",e.app="/app",e.appConfig="/app/config/:id",e.appCreate="/appCreate",e.library="/library",e.knowledge="/library/knowledge",e.history="/library/history",e.config="/config",e))(S||{}),x=(e=>(e.Admin="admin",e.SuperAdmin="super_admin",e.User="user",e))(x||{});const je="modulepreload",ze=function(e){return"/static/"+e},D={},O=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=ze(o),o in D)return;D[o]=!0;const a=o.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let i=s.length-1;i>=0;i--){const c=s[i];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":je,a||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),a)return new Promise((i,c)=>{d.addEventListener("load",i),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},De=[{path:S.login,name:S.login,component:()=>O(()=>import("./login-7bf503ff.js"),["assets/login-7bf503ff.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])},{path:S.home,name:S.home,component:()=>O(()=>import("./home-03c68815.js"),["assets/home-03c68815.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"]),meta:{showSideBar:!0,needLogin:!0}},{path:"/:pathMatch(.*)*",component:()=>O(()=>import("./home-03c68815.js"),["assets/home-03c68815.js","assets/vue-e0bc46a9.js","assets/vendor-4cd7d240.js","assets/__commonjsHelpers__-042e6b4d.js"])}],Be="/",X=re({history:ce(Be),routes:De}),b=ae(),A="token",Fe=()=>localStorage.getItem(A)||"",B=e=>e?localStorage.setItem(A,e):localStorage.removeItem(A),ee=()=>{const e=async()=>{const{data:n,showRequestErrorMessage:s,isRequestSuccess:o}=await Pe();if(!o){s();return}b.value=n},t=async()=>{B(),b.value=void 0,X.push({name:S.login})},r=q(()=>{var n,s;return((n=b.value)==null?void 0:n.user_role)===x.Admin||((s=b.value)==null?void 0:s.user_role)===x.SuperAdmin});return{getUser:e,user:b,isAdmin:r,logout:t,setToken:B,getToken:Fe}},v=ie(null);function $e(){ee();const e=n=>{var o,a;if(!v.value)return;const s=()=>{var l;n(),(l=v.value)==null||l.off("connect",s)};(o=v.value)!=null&&o.connected?n():(a=v.value)==null||a.on("connect",s)};return{socket:v,onAndAutoOff:n=>{const s=Object.entries(n).reduce((o,[a,l])=>(o[a]=m=>{l(m)},o),{});ye(async()=>{for(const[o,a]of Object.entries(s))e(()=>{v.value.on(o,a)})}),Se(async()=>{var o;for(const[a,l]of Object.entries(s))(o=v.value)==null||o.off(a,l)})},emit:(n,...s)=>{e(()=>{var o;(o=v.value)==null||o.emit(n,...s)})}}}const Ve=le({__name:"App",setup(e){return $e(),(t,r)=>{const n=ue("router-view");return de(),fe(M(be),{locale:M(qe)},{default:me(()=>[ge(n)]),_:1},8,["locale"])}}});const te=(e,t)=>Object.prototype.toString.call(e)===t,Ke=e=>te(e,"[object Boolean]"),oe=e=>te(e,"[object Object]"),rt=e=>{var t,r;if((t=navigator==null?void 0:navigator.clipboard)!=null&&t.writeText)(r=navigator==null?void 0:navigator.clipboard)==null||r.writeText(e);else{const n=document.createElement("textarea");n.value=e,n.style.position="absolute",n.style.opacity="0",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy")}},ct=e=>new TextDecoder("utf-8").decode(e),We=(e,t)=>oe(e)?t.every(r=>Object.hasOwn(e,r)):!1,Ge=e=>oe(e)&&We(e,["loading"]),F=e=>{const t={loading:!0,text:""};return Ke(e)?t.loading=e:Ge(e)?(t.loading=e.loading,t.text=e.text||""):(console.warn("please check v-loading binding, should be boolean or { loading: boolean; text: string; }"),t.loading=!!e),t},$="loadingDirectiveElement",V="fullScreen",w="posRelative",g=Symbol("vLoadingDirective"),p=Symbol("loadingSpinApp"),He={mounted:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=F(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add($),a&&l.classList.add(V);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},updated:(e,t)=>{e.classList.remove(w);const n=window.getComputedStyle(e).position;if(e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p]),!t.value)return;const{loading:s,text:o}=F(t.value);if(!s)return;const a=t.arg==="fullScreen",l=document.createElement("div");l.classList.add($),a&&l.classList.add(V);const m=R(N,{tip:o});m.mount(l),n==="static"&&e.classList.add(w),e[g]=l,e[p]=m,e.append(l)},unmounted:e=>{e.classList.remove(w),e[g]&&(e[g].remove(),delete e[g]),e[p]&&(e[p].unmount(),delete e[p])}},K=e=>typeof e=="function",L=Symbol("clickOutside"),W=e=>()=>{e()},Je={mounted:(e,t)=>{if(!K(t.value)){console.warn("v-clickoutside binding should be function");return}const r=W(t.value);e[L]=r,I("clickoutside",e,r)},updated:(e,t)=>{let r=e[L];if(r&&U("clickoutside",e,r),!K(t.value)){console.warn("v-clickoutside binding should be function");return}r=W(t.value),e[L]=r,I("clickoutside",e,r)},unmounted:e=>{const t=e[L];t&&U("clickoutside",e,t)}},Ye=e=>{e.directive("loading",He),e.directive("clickoutside",Je)},Ze={install:Ye};const Qe=R(Ve);Qe.use(we()).use(X).use(Ze).use(_).mount("#app");export{rt as C,S as P,ct as U,nt as l,st as t,ee as u};
|
|
|
|
metagpt/static/assets/{login-7bf503ff.js → login-bb708d78.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{d as H,f as v,h as w,N as U,a1 as b,r as _,a as x,c as S,o as F,l,v as s,q as t,$ as e,u as i,t as n,a2 as T}from"./vue-e0bc46a9.js";import{t as h,u as R,P as V,l as q}from"./index-49768538.js";import{F as f,I as L,B as G,g as N,h as E,L as g,i as z}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";const A={width:"111",height:"23",viewBox:"0 0 111 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=U('<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="white"></path><mask id="mask0_3275_99396" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="41" height="23"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="black"></path></mask><g mask="url(#mask0_3275_99396)"><circle cx="18.3917" cy="9.75161" r="12.3957" fill="url(#paint0_radial_3275_99396)"></circle><path d="M6.81156 6.45303L8.28313 -6.26299L20.7218 4.39474C20.7218 4.39474 20.1285 4.81161 19.6762 5.62887C18.8474 7.12662 17.6593 9.2678 17.6593 9.2678L6.81156 6.45303Z" fill="url(#paint1_linear_3275_99396)"></path></g><path d="M49.6909 6.07724H51.4969L54.9829 14.0852H55.0249L58.4969 6.07724H60.3029V16.0732H58.7769V8.93324H58.7209L55.6549 16.0732H54.3389L51.2729 8.93324H51.2169V16.0732H49.6909V6.07724ZM65.1951 8.63924C66.3711 8.63924 67.2811 9.03124 67.8971 9.84324C68.4571 10.5712 68.7511 11.5792 68.7651 12.8672H63.2771C63.3331 13.5672 63.5151 14.1132 63.8511 14.4912C64.1871 14.8552 64.6491 15.0512 65.2371 15.0512C65.7551 15.0512 66.1751 14.9252 66.4971 14.6872C66.7491 14.4912 66.9591 14.1692 67.1551 13.7492H68.6391C68.4711 14.4212 68.1491 14.9952 67.6451 15.4432C67.0151 15.9892 66.2171 16.2692 65.2511 16.2692C64.1871 16.2692 63.3331 15.9332 62.7171 15.2752C62.0451 14.5752 61.7091 13.6372 61.7091 12.4472C61.7091 11.3692 62.0171 10.4732 62.6611 9.74524C63.2771 9.00324 64.1311 8.63924 65.1951 8.63924ZM65.2371 9.85724C64.6771 9.85724 64.2431 10.0112 63.9071 10.3472C63.5991 10.6692 63.3891 11.1312 63.3051 11.7472H67.2111C67.0711 10.4872 66.4131 9.85724 65.2371 9.85724ZM72.2294 6.49724V8.83524H73.8814V10.0672H72.2294V14.2672C72.2294 14.4632 72.2714 14.6032 72.3554 14.7012C72.4394 14.7852 72.5654 14.8412 72.7474 14.8412H73.6994V16.0732H72.5094C71.8934 16.0732 71.4314 15.9052 71.1514 15.5832C70.8714 15.2752 70.7454 14.8412 70.7454 14.2672V10.0672H69.4014V8.83524H70.7454V7.11324L72.2294 6.49724ZM78.3383 8.63924C79.4023 8.63924 80.1863 8.90524 80.6903 9.43724C81.1243 9.89924 81.3483 10.5712 81.3483 11.4532V16.0732H79.9763V15.0512C79.6963 15.4152 79.3463 15.7092 78.9263 15.9192C78.4503 16.1432 77.8903 16.2692 77.2463 16.2692C76.4903 16.2692 75.9023 16.0732 75.4823 15.6952C75.0203 15.3172 74.7963 14.8272 74.7963 14.2252C74.7963 13.4132 75.1183 12.7832 75.7623 12.3492C76.3503 11.9292 77.1903 11.7192 78.2543 11.6912L79.8783 11.6492V11.3552C79.8783 10.3472 79.3323 9.84324 78.2403 9.84324C77.7783 9.84324 77.4003 9.92724 77.1203 10.0952C76.7843 10.2912 76.5743 10.5852 76.4903 10.9912L75.0203 10.8652C75.1743 10.0812 75.5663 9.49324 76.1823 9.12924C76.7143 8.79324 77.4423 8.63924 78.3383 8.63924ZM79.8783 12.7272L78.3523 12.7692C76.9943 12.7972 76.3223 13.2732 76.3223 14.1692C76.3223 14.4492 76.4343 14.6732 76.6723 14.8552C76.8963 15.0372 77.2043 15.1352 77.5823 15.1352C78.2123 15.1352 78.7443 14.9392 79.1923 14.5612C79.6403 14.1832 79.8783 13.7072 79.8783 13.1472V12.7272ZM87.513 5.88124C88.787 5.88124 89.795 6.16124 90.537 6.74924C91.251 7.30924 91.699 8.13524 91.881 9.25524H90.341C90.201 8.58324 89.893 8.07924 89.417 7.74324C88.941 7.39324 88.297 7.22524 87.513 7.22524C86.547 7.22524 85.777 7.54724 85.203 8.21924C84.587 8.91924 84.293 9.88524 84.293 11.1172C84.293 12.3212 84.559 13.2452 85.119 13.8892C85.707 14.5892 86.631 14.9392 87.877 14.9392C88.367 14.9392 88.829 14.8692 89.263 14.7572C89.683 14.6452 90.047 14.4772 90.383 14.2672V12.0972H87.625V10.7952H91.909V14.9952C91.391 15.4012 90.789 15.7092 90.103 15.9332C89.375 16.1572 88.577 16.2692 87.709 16.2692C86.113 16.2692 84.881 15.7652 83.999 14.7572C83.173 13.8192 82.767 12.6012 82.767 11.1172C82.767 9.61924 83.173 8.38724 83.999 7.42124C84.867 6.38524 86.043 5.88124 87.513 5.88124ZM93.7417 6.07724H97.8857C100.266 6.07724 101.456 7.08524 101.456 9.11524C101.456 11.1592 100.252 12.1812 97.8577 12.1812H95.2677V16.0732H93.7417V6.07724ZM95.2677 7.37924V10.8792H97.7597C98.5157 10.8792 99.0617 10.7392 99.4117 10.4592C99.7477 10.1792 99.9297 9.73124 99.9297 9.11524C99.9297 8.49924 99.7477 8.05124 99.3977 7.79924C99.0477 7.51924 98.5017 7.37924 97.7597 7.37924H95.2677ZM102.105 6.07724H110.295V7.37924H106.963V16.0732H105.451V7.37924H102.105V6.07724Z" fill="white"></path><defs><radialGradient id="paint0_radial_3275_99396" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(18.3917 9.75161) rotate(90) scale(12.3957)"><stop stop-color="#582AFF"></stop><stop offset="1" stop-color="#582AFF" stop-opacity="0"></stop></radialGradient><linearGradient id="paint1_linear_3275_99396" x1="8.37635" y1="1.52165" x2="19.1719" y2="7.92579" gradientUnits="userSpaceOnUse"><stop offset="0.15027" stop-color="#5329EA" stop-opacity="0"></stop><stop offset="1" stop-color="#5027E4" stop-opacity="0.82"></stop></linearGradient></defs>',5),O=[I],P=H({__name:"LogoWhite",setup(k){return(p,c)=>(v(),w("svg",A,O))}}),W={class:"login"},D={class:"loginbg"},j=l("div",{class:"title"},"MetaGPT",-1),J={class:"loginform"},K={style:{width:"418px"}},Q={class:"formTitle"},X={class:"toolBoxBtn"},Y={class:"desc"},o1=H({__name:"login",setup(k){const p=b(),c=_(),C=x({username:"",password:""}),d=_(!1),M=S(()=>({username:[{required:!0,message:h("请输入用户名")}],password:[{required:!0,message:h("请输入密码")}]})),{setToken:y,getToken:Z}=R(),u=_(!1),$=async()=>{var m;if(u.value||await((m=c.value)==null?void 0:m.validate()))return;u.value=!0;const{isRequestSuccess:o,showRequestErrorMessage:r,data:B}=await q({account:C.username,password:C.password});if(u.value=!1,!o){r();return}y(B.token),p.replace({name:V.home})};return F(()=>{Z()&&p.replace({name:V.home})}),(a,o)=>(v(),w("div",W,[l("div",D,[s(P,{class:"logiWhite"}),j]),l("div",J,[l("div",K,[s(e(z),{ref_key:"formRef",ref:c,model:e(C),rules:e(M)},{default:t(()=>[s(e(f),{"hide-label":""},{default:t(()=>[l("div",Q,i(a.$t("账号登录")),1)]),_:1}),s(e(f),{"hide-label":"",field:"username"},{default:t(()=>[s(e(L),{modelValue:e(C).username,"onUpdate:modelValue":o[0]||(o[0]=r=>e(C).username=r),placeholder:a.$t("用户名/邮箱"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(f),{"hide-label":"",field:"password"},{default:t(()=>[s(e(L),{modelValue:e(C).password,"onUpdate:modelValue":o[1]||(o[1]=r=>e(C).password=r),type:"password",placeholder:a.$t("密码"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(G),{type:"primary",long:"",size:"large",disabled:!e(d),loading:e(u),onClick:$},{default:t(()=>[n(i(a.$t("登录")),1)]),_:1},8,["disabled","loading"]),s(e(N),{class:"spaceBTW toolBox",fill:""},{default:t(()=>[l("span",X,i(a.$t("忘记密码")),1)]),_:1}),l("div",null,[s(e(E),{modelValue:e(d),"onUpdate:modelValue":o[2]||(o[2]=r=>T(d)?d.value=r:null)},{default:t(()=>[l("div",Y,[n(i(a.$t("登录或完成注册即代表你同意")),1),s(e(g),null,{default:t(()=>[n(i(a.$t("用户协议")),1)]),_:1}),n(" "+i(a.$t("和"))+" ",1),s(e(g),null,{default:t(()=>[n(i(a.$t("隐私政策")),1)]),_:1})])]),_:1},8,["modelValue"])])]),_:1},8,["model","rules"])])])]))}});export{o1 as default};
|
|
|
1 |
+
import{d as H,f as v,h as w,N as U,a1 as b,r as _,a as x,c as S,o as F,l,v as s,q as t,$ as e,u as i,t as n,a2 as T}from"./vue-e0bc46a9.js";import{t as h,u as R,P as V,l as q}from"./index-054e9309.js";import{F as f,I as L,B as G,g as N,h as E,L as g,i as z}from"./vendor-4cd7d240.js";import"./__commonjsHelpers__-042e6b4d.js";const A={width:"111",height:"23",viewBox:"0 0 111 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=U('<path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="white"></path><mask id="mask0_3275_99396" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="41" height="23"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.3557 17.1143C18.3798 20.1442 14.9605 22.147 11.0735 22.147C4.95777 22.147 0 17.1892 0 11.0735C0 4.95777 4.95777 0 11.0735 0C14.7962 0 18.0898 1.83697 20.0974 4.65391C19.6754 5.23439 19.2963 5.8095 18.9874 6.34413C18.615 6.98892 18.2368 8.23682 18.2368 8.23682C18.2368 8.23682 19.1135 6.73114 19.5206 6.13508C19.6982 5.87516 19.905 5.61105 20.0755 5.39339C20.1919 5.24472 20.2914 5.11768 20.353 5.02848L20.3557 5.03266C22.3316 2.00275 25.7508 0 29.6379 0C35.7536 0 40.7113 4.95777 40.7113 11.0735C40.7113 17.1892 35.7536 22.147 29.6379 22.147C25.9138 22.147 22.6191 20.3086 20.6117 17.4899C21.0337 16.9094 21.4128 16.3343 21.7217 15.7997C22.0942 15.1549 22.4723 13.907 22.4723 13.907C22.4723 13.907 21.5956 15.4127 21.1885 16.0087C21.0109 16.2687 20.8041 16.5328 20.6336 16.7505C20.5172 16.8991 20.4178 17.026 20.3562 17.1152C20.3561 17.1149 20.3559 17.1146 20.3557 17.1143ZM10.585 18.2387C12.5349 18.2387 14.2796 17.2247 15.4446 15.6288L18.2616 12.2261L18.2708 12.236C18.3855 12.0918 18.5037 11.9418 18.6252 11.7869L18.8823 11.4763C18.9135 11.4386 18.9398 11.3983 18.9612 11.3562C19.2186 11.0251 19.4873 10.6769 19.7636 10.3188L19.7645 10.3176C21.5496 8.00437 23.6531 5.27856 25.0782 4.07069C26.0327 3.26168 27.5208 2.2445 29.1493 2.11655C30.3663 1.94388 31.8366 2.08434 33.5461 2.76816C32.2433 1.9537 30.6821 1.66413 29.0024 1.7618C27.3226 1.85947 25.6832 2.72667 24.2639 3.745C22.8141 4.78522 20.9312 7.16948 18.7438 9.93939L18.5369 10.2013L15.6643 6.51091C14.5055 4.73266 12.6616 3.5826 10.585 3.5826C7.07741 3.5826 4.23398 6.86347 4.23398 10.9106C4.23398 14.9578 7.07741 18.2387 10.585 18.2387ZM30.1264 18.2387C28.1764 18.2387 26.4317 17.2247 25.2667 15.6288L22.1697 11.8877L21.9482 12.1681C19.7607 14.9381 17.8779 17.3223 16.428 18.3625C15.0087 19.3809 13.3693 20.2481 11.6896 20.3457C10.0099 20.4434 8.4486 20.1538 7.14583 19.3394C8.85539 20.0232 10.3256 20.1637 11.5427 19.991C13.1711 19.863 14.6593 18.8459 15.6138 18.0368C17.0389 16.829 19.1424 14.1031 20.9275 11.7899C21.463 11.0959 21.9699 10.4391 22.4212 9.87151L22.4266 9.87738L25.047 6.51091C26.2058 4.73266 28.0497 3.5826 30.1264 3.5826C33.6339 3.5826 36.4774 6.86347 36.4774 10.9106C36.4774 14.9578 33.6339 18.2387 30.1264 18.2387Z" fill="black"></path></mask><g mask="url(#mask0_3275_99396)"><circle cx="18.3917" cy="9.75161" r="12.3957" fill="url(#paint0_radial_3275_99396)"></circle><path d="M6.81156 6.45303L8.28313 -6.26299L20.7218 4.39474C20.7218 4.39474 20.1285 4.81161 19.6762 5.62887C18.8474 7.12662 17.6593 9.2678 17.6593 9.2678L6.81156 6.45303Z" fill="url(#paint1_linear_3275_99396)"></path></g><path d="M49.6909 6.07724H51.4969L54.9829 14.0852H55.0249L58.4969 6.07724H60.3029V16.0732H58.7769V8.93324H58.7209L55.6549 16.0732H54.3389L51.2729 8.93324H51.2169V16.0732H49.6909V6.07724ZM65.1951 8.63924C66.3711 8.63924 67.2811 9.03124 67.8971 9.84324C68.4571 10.5712 68.7511 11.5792 68.7651 12.8672H63.2771C63.3331 13.5672 63.5151 14.1132 63.8511 14.4912C64.1871 14.8552 64.6491 15.0512 65.2371 15.0512C65.7551 15.0512 66.1751 14.9252 66.4971 14.6872C66.7491 14.4912 66.9591 14.1692 67.1551 13.7492H68.6391C68.4711 14.4212 68.1491 14.9952 67.6451 15.4432C67.0151 15.9892 66.2171 16.2692 65.2511 16.2692C64.1871 16.2692 63.3331 15.9332 62.7171 15.2752C62.0451 14.5752 61.7091 13.6372 61.7091 12.4472C61.7091 11.3692 62.0171 10.4732 62.6611 9.74524C63.2771 9.00324 64.1311 8.63924 65.1951 8.63924ZM65.2371 9.85724C64.6771 9.85724 64.2431 10.0112 63.9071 10.3472C63.5991 10.6692 63.3891 11.1312 63.3051 11.7472H67.2111C67.0711 10.4872 66.4131 9.85724 65.2371 9.85724ZM72.2294 6.49724V8.83524H73.8814V10.0672H72.2294V14.2672C72.2294 14.4632 72.2714 14.6032 72.3554 14.7012C72.4394 14.7852 72.5654 14.8412 72.7474 14.8412H73.6994V16.0732H72.5094C71.8934 16.0732 71.4314 15.9052 71.1514 15.5832C70.8714 15.2752 70.7454 14.8412 70.7454 14.2672V10.0672H69.4014V8.83524H70.7454V7.11324L72.2294 6.49724ZM78.3383 8.63924C79.4023 8.63924 80.1863 8.90524 80.6903 9.43724C81.1243 9.89924 81.3483 10.5712 81.3483 11.4532V16.0732H79.9763V15.0512C79.6963 15.4152 79.3463 15.7092 78.9263 15.9192C78.4503 16.1432 77.8903 16.2692 77.2463 16.2692C76.4903 16.2692 75.9023 16.0732 75.4823 15.6952C75.0203 15.3172 74.7963 14.8272 74.7963 14.2252C74.7963 13.4132 75.1183 12.7832 75.7623 12.3492C76.3503 11.9292 77.1903 11.7192 78.2543 11.6912L79.8783 11.6492V11.3552C79.8783 10.3472 79.3323 9.84324 78.2403 9.84324C77.7783 9.84324 77.4003 9.92724 77.1203 10.0952C76.7843 10.2912 76.5743 10.5852 76.4903 10.9912L75.0203 10.8652C75.1743 10.0812 75.5663 9.49324 76.1823 9.12924C76.7143 8.79324 77.4423 8.63924 78.3383 8.63924ZM79.8783 12.7272L78.3523 12.7692C76.9943 12.7972 76.3223 13.2732 76.3223 14.1692C76.3223 14.4492 76.4343 14.6732 76.6723 14.8552C76.8963 15.0372 77.2043 15.1352 77.5823 15.1352C78.2123 15.1352 78.7443 14.9392 79.1923 14.5612C79.6403 14.1832 79.8783 13.7072 79.8783 13.1472V12.7272ZM87.513 5.88124C88.787 5.88124 89.795 6.16124 90.537 6.74924C91.251 7.30924 91.699 8.13524 91.881 9.25524H90.341C90.201 8.58324 89.893 8.07924 89.417 7.74324C88.941 7.39324 88.297 7.22524 87.513 7.22524C86.547 7.22524 85.777 7.54724 85.203 8.21924C84.587 8.91924 84.293 9.88524 84.293 11.1172C84.293 12.3212 84.559 13.2452 85.119 13.8892C85.707 14.5892 86.631 14.9392 87.877 14.9392C88.367 14.9392 88.829 14.8692 89.263 14.7572C89.683 14.6452 90.047 14.4772 90.383 14.2672V12.0972H87.625V10.7952H91.909V14.9952C91.391 15.4012 90.789 15.7092 90.103 15.9332C89.375 16.1572 88.577 16.2692 87.709 16.2692C86.113 16.2692 84.881 15.7652 83.999 14.7572C83.173 13.8192 82.767 12.6012 82.767 11.1172C82.767 9.61924 83.173 8.38724 83.999 7.42124C84.867 6.38524 86.043 5.88124 87.513 5.88124ZM93.7417 6.07724H97.8857C100.266 6.07724 101.456 7.08524 101.456 9.11524C101.456 11.1592 100.252 12.1812 97.8577 12.1812H95.2677V16.0732H93.7417V6.07724ZM95.2677 7.37924V10.8792H97.7597C98.5157 10.8792 99.0617 10.7392 99.4117 10.4592C99.7477 10.1792 99.9297 9.73124 99.9297 9.11524C99.9297 8.49924 99.7477 8.05124 99.3977 7.79924C99.0477 7.51924 98.5017 7.37924 97.7597 7.37924H95.2677ZM102.105 6.07724H110.295V7.37924H106.963V16.0732H105.451V7.37924H102.105V6.07724Z" fill="white"></path><defs><radialGradient id="paint0_radial_3275_99396" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(18.3917 9.75161) rotate(90) scale(12.3957)"><stop stop-color="#582AFF"></stop><stop offset="1" stop-color="#582AFF" stop-opacity="0"></stop></radialGradient><linearGradient id="paint1_linear_3275_99396" x1="8.37635" y1="1.52165" x2="19.1719" y2="7.92579" gradientUnits="userSpaceOnUse"><stop offset="0.15027" stop-color="#5329EA" stop-opacity="0"></stop><stop offset="1" stop-color="#5027E4" stop-opacity="0.82"></stop></linearGradient></defs>',5),O=[I],P=H({__name:"LogoWhite",setup(k){return(p,c)=>(v(),w("svg",A,O))}}),W={class:"login"},D={class:"loginbg"},j=l("div",{class:"title"},"MetaGPT",-1),J={class:"loginform"},K={style:{width:"418px"}},Q={class:"formTitle"},X={class:"toolBoxBtn"},Y={class:"desc"},o1=H({__name:"login",setup(k){const p=b(),c=_(),C=x({username:"",password:""}),d=_(!1),M=S(()=>({username:[{required:!0,message:h("请输入用户名")}],password:[{required:!0,message:h("请输入密码")}]})),{setToken:y,getToken:Z}=R(),u=_(!1),$=async()=>{var m;if(u.value||await((m=c.value)==null?void 0:m.validate()))return;u.value=!0;const{isRequestSuccess:o,showRequestErrorMessage:r,data:B}=await q({account:C.username,password:C.password});if(u.value=!1,!o){r();return}y(B.token),p.replace({name:V.home})};return F(()=>{Z()&&p.replace({name:V.home})}),(a,o)=>(v(),w("div",W,[l("div",D,[s(P,{class:"logiWhite"}),j]),l("div",J,[l("div",K,[s(e(z),{ref_key:"formRef",ref:c,model:e(C),rules:e(M)},{default:t(()=>[s(e(f),{"hide-label":""},{default:t(()=>[l("div",Q,i(a.$t("账号登录")),1)]),_:1}),s(e(f),{"hide-label":"",field:"username"},{default:t(()=>[s(e(L),{modelValue:e(C).username,"onUpdate:modelValue":o[0]||(o[0]=r=>e(C).username=r),placeholder:a.$t("用户名/邮箱"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(f),{"hide-label":"",field:"password"},{default:t(()=>[s(e(L),{modelValue:e(C).password,"onUpdate:modelValue":o[1]||(o[1]=r=>e(C).password=r),type:"password",placeholder:a.$t("密码"),size:"large"},null,8,["modelValue","placeholder"])]),_:1}),s(e(G),{type:"primary",long:"",size:"large",disabled:!e(d),loading:e(u),onClick:$},{default:t(()=>[n(i(a.$t("登录")),1)]),_:1},8,["disabled","loading"]),s(e(N),{class:"spaceBTW toolBox",fill:""},{default:t(()=>[l("span",X,i(a.$t("忘记密码")),1)]),_:1}),l("div",null,[s(e(E),{modelValue:e(d),"onUpdate:modelValue":o[2]||(o[2]=r=>T(d)?d.value=r:null)},{default:t(()=>[l("div",Y,[n(i(a.$t("登录或完成注册即代表你同意")),1),s(e(g),null,{default:t(()=>[n(i(a.$t("用户协议")),1)]),_:1}),n(" "+i(a.$t("和"))+" ",1),s(e(g),null,{default:t(()=>[n(i(a.$t("隐私政策")),1)]),_:1})])]),_:1},8,["modelValue"])])]),_:1},8,["model","rules"])])])]))}});export{o1 as default};
|
metagpt/static/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<link rel="shortcut icon" href="/static/assets/favicon-beef0aa9.ico" type="image/x-icon" />
|
8 |
<title>meta-gpt</title>
|
9 |
-
<script type="module" crossorigin src="/static/assets/index-
|
10 |
<link rel="modulepreload" crossorigin href="/static/assets/vue-e0bc46a9.js">
|
11 |
<link rel="modulepreload" crossorigin href="/static/assets/__commonjsHelpers__-042e6b4d.js">
|
12 |
<link rel="modulepreload" crossorigin href="/static/assets/vendor-4cd7d240.js">
|
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<link rel="shortcut icon" href="/static/assets/favicon-beef0aa9.ico" type="image/x-icon" />
|
8 |
<title>meta-gpt</title>
|
9 |
+
<script type="module" crossorigin src="/static/assets/index-054e9309.js"></script>
|
10 |
<link rel="modulepreload" crossorigin href="/static/assets/vue-e0bc46a9.js">
|
11 |
<link rel="modulepreload" crossorigin href="/static/assets/__commonjsHelpers__-042e6b4d.js">
|
12 |
<link rel="modulepreload" crossorigin href="/static/assets/vendor-4cd7d240.js">
|