@blueking/ai-blueking 1.2.3 → 1.2.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue2/{arc-CoITCIeg.mjs → arc-Drr1lna9.mjs} +1 -1
- package/dist/vue2/{blockDiagram-38ab4fdb-B79ALQFr.mjs → blockDiagram-38ab4fdb-8VEckXli.mjs} +5 -5
- package/dist/{vue3/c4Diagram-3d4e48cf-DBY6dYfi.mjs → vue2/c4Diagram-3d4e48cf-D1St4KBG.mjs} +2 -2
- package/dist/{vue3/channel-B_u2Kbah.mjs → vue2/channel-BTGSeZkN.mjs} +1 -1
- package/dist/vue2/{classDiagram-70f12bd4-TUGX41Hr.mjs → classDiagram-70f12bd4-zJlK-CVS.mjs} +5 -5
- package/dist/vue2/{classDiagram-v2-f2320105-DD7zTzsZ.mjs → classDiagram-v2-f2320105-Bn1PI3qD.mjs} +5 -5
- package/dist/vue2/{clone-kSlC3ZuF.mjs → clone-DSRoKuoN.mjs} +1 -1
- package/dist/vue2/{createText-2e5e7dd3-Bs4zLwec.mjs → createText-2e5e7dd3-DqsPaEjK.mjs} +1 -1
- package/dist/{vue3/edges-e0da2a9e-cskaPHoA.mjs → vue2/edges-e0da2a9e-DguIlV36.mjs} +3 -3
- package/dist/{vue3/erDiagram-9861fffd-cZK-bNAM.mjs → vue2/erDiagram-9861fffd--l5rdh7F.mjs} +4 -4
- package/dist/vue2/{flowDb-956e92f1-DqLnUF-k.mjs → flowDb-956e92f1-DSnaz_zm.mjs} +1 -1
- package/dist/{vue3/flowDiagram-66a62f08-DalCgmrg.mjs → vue2/flowDiagram-66a62f08-BCSGtMBp.mjs} +6 -6
- package/dist/vue2/{flowDiagram-v2-96b9c2cf-CIEmz0g3.mjs → flowDiagram-v2-96b9c2cf-D0VnA-oM.mjs} +5 -5
- package/dist/vue2/{flowchart-elk-definition-4a651766-j2EoWTmc.mjs → flowchart-elk-definition-4a651766-B-EPmTHz.mjs} +4 -4
- package/dist/{vue3/ganttDiagram-c361ad54-Cs4P9X7B.mjs → vue2/ganttDiagram-c361ad54-CIn9qcKu.mjs} +2 -2
- package/dist/vue2/{gitGraphDiagram-72cf32ee-BCTVjY7p.mjs → gitGraphDiagram-72cf32ee-Q3MoJoM_.mjs} +1 -1
- package/dist/vue2/{graph-Dcxz709E.mjs → graph-CqTVh0y2.mjs} +1 -1
- package/dist/{vue3/index-3862675e-C7lJNnnh.mjs → vue2/index-3862675e-CBZFDFaT.mjs} +6 -6
- package/dist/vue2/index.es.min.js +1 -1
- package/dist/vue2/index.iife.min.js +111 -111
- package/dist/vue2/index.umd.min.js +1 -1
- package/dist/vue2/{infoDiagram-f8f76790-hj8k-SBv.mjs → infoDiagram-f8f76790-CJTohBF4.mjs} +1 -1
- package/dist/vue2/{journeyDiagram-49397b02-C0DCZid3.mjs → journeyDiagram-49397b02-DTZNUioo.mjs} +3 -3
- package/dist/vue2/{layout-DH8CMw1a.mjs → layout-CgBQyEUg.mjs} +2 -2
- package/dist/vue2/{line-yLO7kdd0.mjs → line-0wnAzFqe.mjs} +1 -1
- package/dist/vue2/{linear-B17g9H1-.mjs → linear-D7Djgzby.mjs} +1 -1
- package/dist/vue2/{mindmap-definition-fc14e90a-Bz_gLosq.mjs → mindmap-definition-fc14e90a-Cxl3J4Pu.mjs} +2 -2
- package/dist/vue2/{pieDiagram-8a3498a8-Dv-vMRyC.mjs → pieDiagram-8a3498a8-BVohjor2.mjs} +2 -2
- package/dist/vue2/{quadrantDiagram-120e2f19-fuR7zO_t.mjs → quadrantDiagram-120e2f19-C_8zgnv2.mjs} +2 -2
- package/dist/vue2/{requirementDiagram-deff3bca-LC2xsHoX.mjs → requirementDiagram-deff3bca-CSHCqIRB.mjs} +4 -4
- package/dist/vue2/{sankeyDiagram-04a897e0-BZuuDL9W.mjs → sankeyDiagram-04a897e0-DEzIC42H.mjs} +1 -1
- package/dist/vue2/{sequenceDiagram-704730f1-DZ7wY6si.mjs → sequenceDiagram-704730f1-CKTIQpn4.mjs} +2 -2
- package/dist/{vue3/stateDiagram-587899a1-JBSELOt8.mjs → vue2/stateDiagram-587899a1-CtylTld_.mjs} +5 -5
- package/dist/vue2/{stateDiagram-v2-d93cdb3a-DflkHVal.mjs → stateDiagram-v2-d93cdb3a-Cn1TZ26i.mjs} +5 -5
- package/dist/{vue3/styles-6aaf32cf-DaAE-dN6.mjs → vue2/styles-6aaf32cf-BP8SJusz.mjs} +1 -1
- package/dist/vue2/{styles-9a916d00-DbQ5RQXR.mjs → styles-9a916d00-CHMxICUF.mjs} +1 -1
- package/dist/{vue3/styles-c10674c1-C8cDBA3I.mjs → vue2/styles-c10674c1-B7zi_L5K.mjs} +4 -4
- package/dist/vue2/{svgDrawCommon-08f97a94-Dl3rEnvk.mjs → svgDrawCommon-08f97a94-ZUY6lyW4.mjs} +1 -1
- package/dist/vue2/{timeline-definition-85554ec2-BX7myD6R.mjs → timeline-definition-85554ec2-CZLJmwCU.mjs} +2 -2
- package/dist/vue2/{vue2-BDVsNVVl.mjs → vue2-Dp2pIAD8.mjs} +25 -23
- package/dist/{vue3/xychartDiagram-e933f94c-BR8JWdpv.mjs → vue2/xychartDiagram-e933f94c-CQxvdVkD.mjs} +4 -4
- package/dist/vue3/{arc-JbBswLsk.mjs → arc-DzkgqoKW.mjs} +1 -1
- package/dist/vue3/{blockDiagram-38ab4fdb-B11c8tmJ.mjs → blockDiagram-38ab4fdb-BG0hF33e.mjs} +5 -5
- package/dist/{vue2/c4Diagram-3d4e48cf-ZjBKDmcG.mjs → vue3/c4Diagram-3d4e48cf-I5_Ue3He.mjs} +2 -2
- package/dist/{vue2/channel-CHAr-DS3.mjs → vue3/channel-Cg1WNRjP.mjs} +1 -1
- package/dist/vue3/{classDiagram-70f12bd4-RpyKqv0B.mjs → classDiagram-70f12bd4-C55jMcYL.mjs} +5 -5
- package/dist/vue3/{classDiagram-v2-f2320105-SdFoPeNM.mjs → classDiagram-v2-f2320105-CI2ryo6X.mjs} +5 -5
- package/dist/vue3/{clone-DF0Wb5-s.mjs → clone-N_An9_4B.mjs} +1 -1
- package/dist/vue3/{createText-2e5e7dd3-CUjkXu6x.mjs → createText-2e5e7dd3-CBYk3AP-.mjs} +1 -1
- package/dist/{vue2/edges-e0da2a9e-BhabJjR5.mjs → vue3/edges-e0da2a9e-jF50JG4A.mjs} +3 -3
- package/dist/{vue2/erDiagram-9861fffd-DDxJjunn.mjs → vue3/erDiagram-9861fffd-DjpYtIdj.mjs} +4 -4
- package/dist/vue3/{flowDb-956e92f1-C-nhzbo8.mjs → flowDb-956e92f1-IHiXbv03.mjs} +1 -1
- package/dist/{vue2/flowDiagram-66a62f08-YLZEfNd-.mjs → vue3/flowDiagram-66a62f08-BoXxPb9F.mjs} +6 -6
- package/dist/vue3/{flowDiagram-v2-96b9c2cf-CsX812_d.mjs → flowDiagram-v2-96b9c2cf-xeNvQf5J.mjs} +5 -5
- package/dist/vue3/{flowchart-elk-definition-4a651766-CC21tNNF.mjs → flowchart-elk-definition-4a651766-CyDlDGZ8.mjs} +4 -4
- package/dist/{vue2/ganttDiagram-c361ad54-CuLDPZ5c.mjs → vue3/ganttDiagram-c361ad54-DVwCqfzI.mjs} +2 -2
- package/dist/vue3/{gitGraphDiagram-72cf32ee-er7l1Vwu.mjs → gitGraphDiagram-72cf32ee-BxqZcPwN.mjs} +1 -1
- package/dist/vue3/{graph-BkdYTwQY.mjs → graph-BfejK7j1.mjs} +1 -1
- package/dist/{vue2/index-3862675e-D0ly-ftk.mjs → vue3/index-3862675e-pGQYev1i.mjs} +6 -6
- package/dist/vue3/index.es.min.js +1 -1
- package/dist/vue3/index.iife.min.js +1 -1
- package/dist/vue3/index.umd.min.js +1 -1
- package/dist/vue3/{infoDiagram-f8f76790-CfS0AerJ.mjs → infoDiagram-f8f76790-Ch22a7hC.mjs} +1 -1
- package/dist/vue3/{journeyDiagram-49397b02-C7AiQpxY.mjs → journeyDiagram-49397b02-CRO5IUYN.mjs} +3 -3
- package/dist/vue3/{layout-DuPGw-d8.mjs → layout-Dy1NuV40.mjs} +2 -2
- package/dist/vue3/{line-BeJeAfJl.mjs → line-DiEybcOh.mjs} +1 -1
- package/dist/vue3/{linear-BOacLYWl.mjs → linear-CYyiZrJd.mjs} +1 -1
- package/dist/vue3/{mindmap-definition-fc14e90a-Dhd4NZUr.mjs → mindmap-definition-fc14e90a-DQnCHU7_.mjs} +2 -2
- package/dist/vue3/{pieDiagram-8a3498a8-zT5CvSpw.mjs → pieDiagram-8a3498a8-Dn9_rwL1.mjs} +2 -2
- package/dist/vue3/{quadrantDiagram-120e2f19-DPJcxru3.mjs → quadrantDiagram-120e2f19-BazjVmHA.mjs} +2 -2
- package/dist/vue3/{requirementDiagram-deff3bca-CP6G_Zoz.mjs → requirementDiagram-deff3bca-CfG3HG6B.mjs} +4 -4
- package/dist/vue3/{sankeyDiagram-04a897e0-DcJ7vqUs.mjs → sankeyDiagram-04a897e0-C52jvBpz.mjs} +1 -1
- package/dist/vue3/{sequenceDiagram-704730f1-Czk1oC0y.mjs → sequenceDiagram-704730f1-DTiycqeh.mjs} +2 -2
- package/dist/{vue2/stateDiagram-587899a1-5fbTvUa3.mjs → vue3/stateDiagram-587899a1-BuLhdLQ9.mjs} +5 -5
- package/dist/vue3/{stateDiagram-v2-d93cdb3a-DcDRwvpk.mjs → stateDiagram-v2-d93cdb3a-BpQYfGCZ.mjs} +5 -5
- package/dist/{vue2/styles-6aaf32cf-Dzah28hh.mjs → vue3/styles-6aaf32cf-F3oT21Y2.mjs} +1 -1
- package/dist/vue3/{styles-9a916d00-DypTgbKt.mjs → styles-9a916d00-2gb7abH5.mjs} +1 -1
- package/dist/{vue2/styles-c10674c1-B0tAwQC_.mjs → vue3/styles-c10674c1-CcF3j502.mjs} +4 -4
- package/dist/vue3/{svgDrawCommon-08f97a94-BLrA7RFB.mjs → svgDrawCommon-08f97a94-Dfa51b1C.mjs} +1 -1
- package/dist/vue3/{timeline-definition-85554ec2-YAY6t41S.mjs → timeline-definition-85554ec2-DrGK2rNM.mjs} +2 -2
- package/dist/vue3/{vue3-DlNXJSWb.mjs → vue3-Tv8faLO-.mjs} +25 -23
- package/dist/{vue2/xychartDiagram-e933f94c-BjK8nBCp.mjs → vue3/xychartDiagram-e933f94c-ByJM4fvN.mjs} +4 -4
- package/package.json +1 -1
|
@@ -503,7 +503,7 @@ Use Shift + Enter to enter a new line`,"你好,我是小鲸":"Hello, I am BK G
|
|
|
503
503
|
只给我输出结果,其他内容一概不要。请勿用引号将回复包起来
|
|
504
504
|
'''
|
|
505
505
|
{{ SELECTED_TEXT }}
|
|
506
|
-
'''`,explanationShortcut:"您是一位专业的解释者。请详细解释“{{ SELECTED_TEXT }}”。您的解释应包括 1) 基本含义和概念解释;2) 实际应用或使用案例;3) 如果是技术术语,请提供相关技术背景;4) 适当时提供具体示例,以帮助理解。使用清晰易懂的语言,确保非专业人员也能理解。如果该词/短语有多种含义,请列出主要定义。在确保信息完整性和准确性的同时,请保持答复简洁明了。",新会话:"新会话"},Do=n=>LNn!=="en"?NNn[n]||n:DNn[n]||n;function ONn(){const n=K.ref([]),r=K.ref(null),i=K.ref(!1),o=K.ref({});let l={};const f=K.ref({}),h=K.ref({agentName:"",conversationSettings:{openingRemark:"",predefinedQuestions:[]},promptSetting:{content:[]}}),p=R=>{if(!l[R])throw new Error(`${R} not registered`);return l[R]},b=async R=>{try{await p("setCurrentSessionChain")(R),L(R)}catch(V){throw console.error("Failed to switch session:",V),V}},y=R=>{if(n.value=R.map(V=>({...V,isEdit:!1})),r.value){const V=R.find(H=>{var $;return H.sessionCode===(($=r.value)==null?void 0:$.sessionCode)});V&&(r.value={...r.value,...V,isEdit:r.value.isEdit})}},A=R=>{const V={...R,isEdit:!1};return n.value.unshift(V),V},x=async R=>{const V=R||INn(),H=Do("新会话"),$={sessionCode:V,sessionName:H,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},Y=A($);return await p("plusSessionApi")(Y),await b(Y),Y},C=R=>{const V=n.value.find(H=>H.sessionCode===R);V&&(f.value[R]={...V},M(R,{isEdit:!0},{syncBackend:!1}))},T=async(R,V)=>{const H=f.value[R];if(!H)return null;const $=Object.entries(V).some(([Q,J])=>Q==="isEdit"?!1:H[Q]!==J),Y=await M(R,{...V,isEdit:!1},{syncBackend:$});return delete f.value[R],Y},M=async(R,V,H={})=>{const{syncBackend:$=!0,forceSync:Y=!1}=H,Q=n.value.findIndex(W=>W.sessionCode===R);if(Q===-1)return null;const J=n.value[Q],_={...J,...V};if(n.value[Q]=_,n.value=[...n.value],o.value[R]||(o.value[R]=0),o.value[R]++,r.value&&r.value.sessionCode===R&&(r.value={...r.value,...V}),$&&!V.isEdit||Y)try{const W=p("modifySessionApi"),z={..._,isEdit:!1};await W(z)}catch(W){console.error("Failed to sync session to backend:",W),n.value[Q]=J,n.value=[...n.value],r.value&&r.value.sessionCode===R&&(r.value=J)}return _},E=async R=>{var Y;await p("deleteSessionApi")(R);const H=n.value.findIndex(Q=>Q.sessionCode===R);if(H===-1)return null;const $=((Y=r.value)==null?void 0:Y.sessionCode)===R;if(n.value.splice(H,1),$){if(n.value.length>0){const Q=new Date().toDateString(),J=n.value.filter(W=>new Date(W.createdAt||"").toDateString()===Q),_=J.length>0?J[0]:n.value[0];return await b(_),_}return await j(!1),null}return null},L=R=>{const V=n.value.find(H=>H.sessionCode===R.sessionCode);if(V)r.value=V;else{const H=A(R);r.value=H}},O=R=>{l=R},j=async(R=!0)=>{var Y,Q,J,_;let V=n.value;if(R){const z=await p("getSessionsApi")();y(z)}let H=null,$=[];if(V.length>0){const W=V.sort((X,se)=>new Date(se.createdAt||"").getTime()-new Date(X.createdAt||"").getTime())[0];$=await p("getSessionContentsApi")(W.sessionCode),$.filter(X=>!HX.includes(X.role)).some(X=>X.content&&X.content.trim()!=="")||(H={...W,isEdit:!1})}if(H?(p("setSessionContents")($),b(H)):H=await x(),!h.value||R){const W=p("getAgentInfoApi"),{conversationSettings:z,promptSetting:ee,agentName:X}=await W();Object.assign(h.value,{conversationSettings:z,promptSetting:ee,agentName:X})}return(J=(Q=(Y=h.value)==null?void 0:Y.promptSetting)==null?void 0:Q.content)!=null&&J.length&&await p("handleCompleteRole")(H.sessionCode,h.value.promptSetting.content),{conversationSettings:(_=h.value)==null?void 0:_.conversationSettings}};return{sessionList:n,currentSession:r,setSessionList:y,addSession:A,addNewSession:x,initSession:j,updateSession:M,startEditSession:C,finishEditSession:T,deleteSession:E,setCurrentSession:L,registerSdkMethods:O,switchSessionWithContents:b,sessionContentLoading:i,agentInfo:h,getSessionList:async()=>{const V=await p("getSessionsApi")();if(y(V),r.value){const H=V.find($=>{var Y;return $.sessionCode===((Y=r.value)==null?void 0:Y.sessionCode)});H&&(r.value={...r.value,...H,isEdit:r.value.isEdit})}return n.value},sessionUpdateCounter:o}}const qet=Symbol("session-store");function BNn(){const n=ONn();return K.provide(qet,n),n}function PNn(){const n=K.inject(qet);if(!n)throw new Error("Session store not provided");return n}function PN(n={}){const r="ai-blueking-tooltip",i=K.ref([]),o=(y,A,x={})=>{try{const C=typeof y=="string"?document.querySelector(y):y;if(!C)return console.warn(`Tooltip target not found: ${y}`),null;const T={content:A,placement:"top",arrow:!0,delay:[300,0],theme:r,...n,...x},M=pS(C,T);return i.value.push(M),M}catch(C){return console.error("Failed to create tooltip:",C),null}},l=(y,A,x={})=>{const C=document.querySelectorAll(y),T=[];return C.forEach(M=>{const E=o(M,A,x);E&&T.push(E)}),T},f=y=>{const A=[];return y.forEach(({element:x,content:C,options:T})=>{const M=o(x,C,T);M&&A.push(M)}),A},h=()=>{i.value.forEach(y=>{y.destroy()}),i.value=[]},p=(y,A)=>{y.setContent(A)},b=y=>{y.destroy()};return K.onBeforeUnmount(()=>{h()}),{instances:i,createTooltip:o,createTooltipsForSelector:l,createMultipleTooltips:f,destroyAll:h,updateContent:p,destroyInstance:b}}const jNn={class:"bkai-history-panel"},FNn={class:"history-panel-header"},RNn={class:"history-panel-header-title"},zNn={class:"input-icon"},_Nn={class:"history-panel-content"},HNn={class:"history-panel-content-item-title"},QNn={class:"history-panel-content-item-list"},VNn=["onClick"],$Nn={class:"history-panel-content-item-list-item-action"},GNn=["onClick"],YNn=K.defineComponent({__name:"history-panel",props:{sessionStore:{}},emits:["close"],setup(n,{emit:r}){const i=n,o=r,l=Nqe,f=K.ref(""),h=i.sessionStore,p=K.ref({}),b=K.computed(()=>{const E={today:{key:"today",alias:Do("今天"),sessionList:[]},yesterday:{key:"yesterday",alias:Do("昨天"),sessionList:[]},before:{key:"before",alias:Do("之前"),sessionList:[]}},L=h.sessionList.value.filter(O=>O.sessionName.toLowerCase().includes(f.value.toLowerCase()));for(const O of L){const j=new Date(O.createdAt||""),F=new Date,R=new Date;R.setDate(R.getDate()-1),j.toDateString()===F.toDateString()?E.today.sessionList.push(O):j.toDateString()===R.toDateString()?E.yesterday.sessionList.push(O):E.before.sessionList.push(O)}return Object.values(E).filter(O=>O.sessionList.length>0)}),y=E=>{var L;return((L=h.currentSession.value)==null?void 0:L.sessionCode)===E.sessionCode},A=E=>{y(E)||(h.switchSessionWithContents(E),o("close"))},x=E=>{h.deleteSession(E)},C=E=>{h.finishEditSession(E.sessionCode,{sessionName:E.sessionName})},T=E=>{h.startEditSession(E.sessionCode),K.nextTick(()=>{const L=p.value[E.sessionCode];L&&L.focus()})},M=(E,L)=>{L.target.blur()};return(E,L)=>(K.openBlock(),K.createElementBlock("div",jNn,[K.createElementVNode("div",FNn,[K.createElementVNode("h1",RNn,K.toDisplayString(K.unref(Do)("历史会话")),1),K.createVNode(K.unref(r_),{modelValue:f.value,"onUpdate:modelValue":L[0]||(L[0]=O=>f.value=O),behavior:"simplicity",placeholder:K.unref(Do)("搜索会话名称"),style:{height:"22px"}},{suffix:K.withCtx(()=>[K.createElementVNode("span",zNn,[K.createVNode(K.unref(rpe))])]),_:1},8,["modelValue","placeholder"])]),K.createElementVNode("div",_Nn,[b.value.length>0?(K.openBlock(!0),K.createElementBlock(K.Fragment,{key:0},K.renderList(b.value,O=>(K.openBlock(),K.createElementBlock("div",{key:O.key,class:"history-panel-content-item"},[K.createElementVNode("div",HNn,[K.createElementVNode("span",null,K.toDisplayString(O.alias),1)]),K.createElementVNode("div",QNn,[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(O.sessionList,j=>(K.openBlock(),K.createElementBlock("div",{key:`${j.sessionCode}-${K.unref(h).sessionUpdateCounter.value[j.sessionCode]||0}`,class:K.normalizeClass(["history-panel-content-item-list-item",{active:y(j)}]),onClick:F=>A(j)},[j.isEdit?(K.openBlock(),K.createBlock(K.unref(r_),{key:1,ref_for:!0,ref:F=>{j.isEdit&&(p.value[j.sessionCode]=F)},modelValue:j.sessionName,"onUpdate:modelValue":F=>j.sessionName=F,style:{width:"100%",height:"28px"},onBlur:F=>C(j),onEnter:M,onClick:L[2]||(L[2]=K.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(K.openBlock(),K.createElementBlock(K.Fragment,{key:0},[K.createVNode(K.unref(Oyn),{style:{width:"calc(100% - 42px)"}},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(j.sessionName),1)]),_:2},1024),K.createElementVNode("span",$Nn,[K.withDirectives(K.createElementVNode("i",{class:"bkai-icon bkai-bianji",onClick:K.withModifiers(F=>T(j),["stop"])},null,8,GNn),[[K.unref(l),{content:K.unref(Do)("编辑"),boundary:"parent"}]]),K.createVNode(K.unref(vTn),{title:K.unref(Do)("确认删除会话 ?"),content:"删除操作无法撤回,请谨慎操作!","confirm-config":{theme:"danger"},trigger:"click",boundary:"parent",onConfirm:F=>x(j.sessionCode)},{default:K.withCtx(()=>[K.withDirectives(K.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:L[1]||(L[1]=K.withModifiers(()=>{},["stop"]))},null,512),[[K.unref(l),{content:K.unref(Do)("删除"),boundary:"parent"}]])]),_:2},1032,["title","onConfirm"])])],64))],10,VNn))),128))])]))),128)):(K.openBlock(),K.createBlock(K.unref(mkn),{key:1,style:{"margin-top":"100px"},description:f.value?K.unref(Do)("搜索为空"):K.unref(Do)("暂无对话"),scene:"part",type:f.value?"search-empty":"empty"},null,8,["description","type"]))])]))}}),Pd=(n,r)=>{const i=n.__vccOpts||n;for(const[o,l]of r)i[o]=l;return i},UNn=Pd(YNn,[["__scopeId","data-v-538e5107"]]),JNn={class:"left-section"},WNn={class:"logo"},qNn=["src"],ZNn={class:"title"},KNn={class:"right-section"},XNn=Pd(K.defineComponent({__name:"ai-header",props:{title:{default:""},isCompressionHeight:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},enableChatSession:{type:Boolean,default:!0}},emits:["close","toggleCompression","newChat"],setup(n,{emit:r}){const i=n,o=r,l=Nqe,f=PNn(),h=K.ref(null),{handleTriggerClick:p}=SNn({triggerRef:h,panelComponent:UNn,panelProps:{sessionStore:f},tippyOptions:{placement:"bottom-end",offset:[0,8],appendTo:()=>document.querySelector(".ai-blueking-container-wrapper")||document.body}}),b=K.computed(()=>{var j,F,R;return i.enableChatSession?i.title||`${((F=f.agentInfo.value)==null?void 0:F.agentName)||""}-${(R=f.currentSession.value)==null?void 0:R.sessionName}`:(j=f.agentInfo.value)==null?void 0:j.agentName}),y=K.computed(()=>i.isCompressionHeight?"bkai-morenchicun":"bkai-yasuo"),A=K.computed(()=>i.isCompressionHeight?Do("恢复默认尺寸"):Do("缩小高度")),x=K.ref(null),C=K.ref(null),T=K.ref(null),{createTooltip:M,destroyAll:E}=PN({arrow:!0,delay:[0,0]}),L=()=>{E(),C.value&&M(C.value,A.value,{appendTo:document.querySelector(".ai-blueking-container-wrapper")}),T.value&&M(T.value,Do("关闭"),{appendTo:document.querySelector(".ai-blueking-container-wrapper")})};K.watch(()=>i.isCompressionHeight,()=>{L()}),K.onMounted(()=>{L()}),K.onBeforeUnmount(()=>{E()});const O=async()=>{try{o("newChat"),await f.initSession(!1)}catch(j){console.error("Failed to create new chat:",j)}};return(j,F)=>(K.openBlock(),K.createElementBlock("div",{ref_key:"headerRef",ref:x,class:K.normalizeClass(["header drag-handle",{draggable:i.draggable}])},[K.createElementVNode("div",JNn,[K.createElementVNode("div",WNn,[K.createElementVNode("img",{src:K.unref(xbe),alt:"logo"},null,8,qNn)]),K.createElementVNode("div",ZNn,K.toDisplayString(b.value),1)]),K.createElementVNode("div",KNn,[i.showNewChatIcon&&i.enableChatSession!==!1?K.withDirectives((K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-xinzengliaotian",onClick:O},null,512)),[[K.unref(l),{content:K.unref(Do)("新增会话"),boundary:"parent"}]]):K.createCommentVNode("v-if",!0),i.showHistoryIcon&&i.enableChatSession!==!1?K.withDirectives((K.openBlock(),K.createElementBlock("i",{key:1,ref_key:"historyIconRef",ref:h,class:"bkai-icon bkai-history",onClick:F[0]||(F[0]=(...R)=>K.unref(p)&&K.unref(p)(...R))},null,512)),[[K.unref(l),{content:K.unref(Do)("历史会话"),boundary:"parent"}]]):K.createCommentVNode("v-if",!0),K.createElementVNode("i",{ref_key:"compressionRef",ref:C,class:K.normalizeClass(["bkai-icon",y.value]),onClick:F[1]||(F[1]=R=>o("toggleCompression"))},null,2),K.createElementVNode("i",{ref_key:"closeRef",ref:T,class:"bkai-icon bkai-close-line-2",onClick:F[2]||(F[2]=R=>o("close"))},null,512)])],2))}}),[["__scopeId","data-v-00deaee7"]]),eOn={class:"bar-button-text"},Zet=Pd(K.defineComponent({__name:"bar-button",props:{icon:{},color:{},text:{}},emits:["click"],setup(n,{emit:r}){K.useCssVars(l=>({"5ec4534a":l.color}));const i=r,o=n;return(l,f)=>(K.openBlock(),K.createElementBlock("div",{class:"bar-button",onClick:f[0]||(f[0]=h=>i("click"))},[K.createElementVNode("i",{class:K.normalizeClass(["bkai-icon",o.icon])},null,2),K.createElementVNode("span",eOn,K.toDisplayString(o.text),1)]))}}),[["__scopeId","data-v-8ce57e71"]]),tOn={class:"ai-cite"},nOn={class:"content"},Ket=Pd(K.defineComponent({__name:"ai-cite",props:{text:{},showCloseIcon:{type:Boolean}},emits:["close"],setup(n){const r=n,i=K.ref(null);K.watch(()=>r.text,()=>{i.value&&h(i.value),K.nextTick(()=>{p()})});const o=K.ref(null),l=b=>b.scrollWidth>b.clientWidth,{createTooltip:f,destroyInstance:h}=PN({arrow:!0,delay:[0,0]}),p=()=>{if(o.value){const b=o.value;l(b)&&(i.value=f(b,r.text,{appendTo:document.querySelector(".ai-blueking-container-wrapper")}))}};return K.onMounted(()=>{K.nextTick(()=>{p()})}),(b,y)=>K.withDirectives((K.openBlock(),K.createElementBlock("section",tOn,[K.createElementVNode("span",nOn,[K.createElementVNode("span",{class:K.normalizeClass(["content-text",{"show-close-icon":b.showCloseIcon}])},[y[1]||(y[1]=K.createElementVNode("i",{class:"bkai-icon bkai-yinyong"},null,-1)),K.createElementVNode("span",{ref_key:"citeTextRef",ref:o,class:"ai-cite-text"},K.toDisplayString(b.text),513)],2),b.showCloseIcon?(K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-close-line-2 close-icon",onClick:y[0]||(y[0]=A=>b.$emit("close"))})):K.createCommentVNode("v-if",!0)])],512)),[[K.vShow,b.text]])}}),[["__scopeId","data-v-af2b067c"]]);function Xet(n={}){const r=K.ref(!1);return{isComposing:r,handleCompositionStart:()=>{r.value=!0},handleCompositionEnd:()=>{r.value=!1},handleEnter:p=>{const{isLoading:b,onSend:y,getInputValue:A=()=>"",clearInput:x=()=>{}}=n;if(p.shiftKey)return;p.preventDefault();const C=A();b!=null&&b.value||!C.trim()||r.value||(y==null||y(C),x())},handleSend:()=>{const{onSend:p,getInputValue:b=()=>"",clearInput:y=()=>{}}=n,A=b();A.trim()&&(p==null||p(A),y())},handleStop:()=>{const{onStop:p}=n;p==null||p()}}}const ett="enablePopup";function Lbe(){return{enablePopup:K.inject(ett,!0)}}const j_=K.ref(""),ttt=K.ref(""),Dbe=K.ref(!1),Nbe={width:80,height:34,offset:15,debounceTime:300};function F_(n){const r=K.ref(!1),i=K.ref({top:"0px",left:"0px"});let o,l=null;const f=K.ref(null);let h=!1,p=null;const b=F=>{p={x:F.clientX,y:F.clientY}},y=F=>{l=F,p&&(h=Math.sqrt(Math.pow(F.clientX-p.x,2)+Math.pow(F.clientY-p.y,2))>5),p=null},A=(F,R)=>{const V=window.innerWidth,{width:H,height:$,offset:Y}=Nbe;let Q=F+window.scrollX-H/2;Q=Math.max(Y,Math.min(Q,V-H-Y));let J=R+window.scrollY-$-Y;return R<=$+Y&&(J=R+window.scrollY+Y),{top:`${J}px`,left:`${Q}px`}},x=F=>{const R=window.innerWidth,{width:V,height:H,offset:$}=Nbe;let Y=F.left+window.scrollX+F.width/2-V/2;Y=Math.max($,Math.min(Y,R-V-$));let Q=F.top+window.scrollY-H-$;return F.top<=H+$&&(Q=F.bottom+window.scrollY+$),{top:`${Q}px`,left:`${Y}px`}},C=(F,R)=>{let V=F;for(;V&&V!==document.documentElement;){if(V.hasAttribute&&V.hasAttribute(R))return!0;V=V.parentElement}return!1},T=()=>{clearTimeout(o),o=setTimeout(()=>{var Y;const F=window.getSelection();if(!(F!=null&&F.toString().trim())){M();return}const R=F.getRangeAt(0);if((Y=R.commonAncestorContainer.parentElement)!=null&&Y.closest(".ai-blueking-wrapper")){M();return}const V=R.commonAncestorContainer,H=V.nodeType===Node.ELEMENT_NODE?V:V.parentElement;if(C(H,"ai-blueking-hide")){M();return}Dbe.value=!1,j_.value=F.toString().trim();const $=document.activeElement;if(($==null?void 0:$.tagName)==="TEXTAREA"){if(!l){M();return}const{clientX:Q,clientY:J}=l;i.value=A(Q,J),r.value=!0,l=null}else{const Q=R.getBoundingClientRect();if(!Q.width||!Q.height){M();return}i.value=x(Q),r.value=!0}},Nbe.debounceTime)},M=()=>{r.value=!1,Dbe.value||(j_.value="")},E=F=>{var $,Y,Q;const R=F.target,V=(($=R.classList)==null?void 0:$.contains("ai-blueking-tag-text"))||((Y=R.classList)==null?void 0:Y.contains("shortcut-btn")),H=(Q=f.value)==null?void 0:Q.contains(R);if(!(V||!h)){if(h){F.preventDefault(),F.stopPropagation(),h=!1;return}H||(M(),L())}},L=()=>{const F=window.getSelection();F&&F.removeAllRanges(),j_.value=""},O=F=>{j_.value=F},j=F=>{ttt.value=F};return K.onMounted(()=>{n&&(document.addEventListener("selectionchange",T),document.addEventListener("mousedown",b),document.addEventListener("mouseup",y),document.addEventListener("click",E,!0))}),K.onBeforeUnmount(()=>{n&&(document.removeEventListener("selectionchange",T),document.removeEventListener("mousedown",b),document.removeEventListener("mouseup",y),document.removeEventListener("click",E,!0)),clearTimeout(o)}),{isIconVisible:r,iconPosition:i,selectedText:j_,citeText:ttt,hideIcon:M,clearSelection:L,setSelection:O,setCiteText:j,lockSelectedText:Dbe,popupRef:f}}function rOn(n={}){const{minHeight:r=68,maxHeight:i=248,defaultHeight:o=68}=n,l=K.ref(o),f=K.ref(),h=()=>{if(!f.value)return;f.value.style.height=`${r}px`;const y=f.value.scrollHeight;l.value=Math.min(Math.max(y,r),i)};return{textareaHeight:l,textareaRef:f,updateHeight:h,resetHeight:()=>{l.value=o},bindTextarea:y=>{f.value=y,h()}}}function ntt(n,r,i=K.ref(null),o={}){const l=K.ref([]),f=K.ref([]),{theme:h="ai-blueking-light light",placement:p="bottom",trigger:b="mouseenter",interactive:y=!0,allowHTML:A=!0,arrow:x=!0,offset:C=[0,4],onItemClick:T}=o,{createTooltip:M,destroyAll:E}=PN({theme:h,placement:p,trigger:b,interactive:y,allowHTML:A,arrow:x,offset:C}),L=K.computed(()=>f.value.length===0?"":`<div class="tippy-dropdown-menu">${f.value.map(V=>`<div class="tippy-menu-item" data-item-id="${V.id}">
|
|
506
|
+
'''`,explanationShortcut:"您是一位专业的解释者。请详细解释“{{ SELECTED_TEXT }}”。您的解释应包括 1) 基本含义和概念解释;2) 实际应用或使用案例;3) 如果是技术术语,请提供相关技术背景;4) 适当时提供具体示例,以帮助理解。使用清晰易懂的语言,确保非专业人员也能理解。如果该词/短语有多种含义,请列出主要定义。在确保信息完整性和准确性的同时,请保持答复简洁明了。",新会话:"新会话"},Do=n=>LNn!=="en"?NNn[n]||n:DNn[n]||n;function ONn(){const n=K.ref([]),r=K.ref(null),i=K.ref(!1),o=K.ref({});let l={};const f=K.ref({}),h=K.ref({agentName:"",conversationSettings:{openingRemark:"",predefinedQuestions:[]},promptSetting:{content:[]}}),p=R=>{if(!l[R])throw new Error(`${R} not registered`);return l[R]},b=async R=>{try{await p("setCurrentSessionChain")(R),L(R)}catch(V){throw console.error("Failed to switch session:",V),V}},y=R=>{if(n.value=R.map(V=>({...V,isEdit:!1})),r.value){const V=R.find(H=>{var $;return H.sessionCode===(($=r.value)==null?void 0:$.sessionCode)});V&&(r.value={...r.value,...V,isEdit:r.value.isEdit})}},A=R=>{const V={...R,isEdit:!1};return n.value.unshift(V),V},x=async R=>{const V=R||INn(),H=Do("新会话"),$={sessionCode:V,sessionName:H,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},Y=A($);return await p("plusSessionApi")(Y),await b(Y),Y},C=R=>{const V=n.value.find(H=>H.sessionCode===R);V&&(f.value[R]={...V},M(R,{isEdit:!0},{syncBackend:!1}))},T=async(R,V)=>{const H=f.value[R];if(!H)return null;const $=Object.entries(V).some(([Q,J])=>Q==="isEdit"?!1:H[Q]!==J),Y=await M(R,{...V,isEdit:!1},{syncBackend:$});return delete f.value[R],Y},M=async(R,V,H={})=>{const{syncBackend:$=!0,forceSync:Y=!1}=H,Q=n.value.findIndex(W=>W.sessionCode===R);if(Q===-1)return null;const J=n.value[Q],_={...J,...V};if(n.value[Q]=_,n.value=[...n.value],o.value[R]||(o.value[R]=0),o.value[R]++,r.value&&r.value.sessionCode===R&&(r.value={...r.value,...V}),$&&!V.isEdit||Y)try{const W=p("modifySessionApi"),z={..._,isEdit:!1};await W(z)}catch(W){console.error("Failed to sync session to backend:",W),n.value[Q]=J,n.value=[...n.value],r.value&&r.value.sessionCode===R&&(r.value=J)}return _},E=async R=>{var Y;await p("deleteSessionApi")(R);const H=n.value.findIndex(Q=>Q.sessionCode===R);if(H===-1)return null;const $=((Y=r.value)==null?void 0:Y.sessionCode)===R;if(n.value.splice(H,1),$){if(n.value.length>0){const Q=new Date().toDateString(),J=n.value.filter(W=>new Date(W.createdAt||"").toDateString()===Q),_=J.length>0?J[0]:n.value[0];return await b(_),_}return await j(!1),null}return null},L=R=>{const V=n.value.find(H=>H.sessionCode===R.sessionCode);if(V)r.value=V;else{const H=A(R);r.value=H}},O=R=>{l=R},j=async(R=!0)=>{var Y,Q,J,_;let V=n.value;if(R){const z=await p("getSessionsApi")();y(z)}let H=null,$=[];if(V.length>0){const W=V.sort((X,se)=>new Date(se.createdAt||"").getTime()-new Date(X.createdAt||"").getTime())[0];$=await p("getSessionContentsApi")(W.sessionCode),$.filter(X=>!HX.includes(X.role)).some(X=>X.content&&X.content.trim()!=="")||(H={...W,isEdit:!1})}if(H?(p("setSessionContents")($),b(H)):H=await x(),!h.value||R){const W=p("getAgentInfoApi"),{conversationSettings:z,promptSetting:ee,agentName:X}=await W();Object.assign(h.value,{conversationSettings:z,promptSetting:ee,agentName:X})}return(J=(Q=(Y=h.value)==null?void 0:Y.promptSetting)==null?void 0:Q.content)!=null&&J.length&&await p("handleCompleteRole")(H.sessionCode,h.value.promptSetting.content),{conversationSettings:(_=h.value)==null?void 0:_.conversationSettings}};return{sessionList:n,currentSession:r,setSessionList:y,addSession:A,addNewSession:x,initSession:j,updateSession:M,startEditSession:C,finishEditSession:T,deleteSession:E,setCurrentSession:L,registerSdkMethods:O,switchSessionWithContents:b,sessionContentLoading:i,agentInfo:h,getSessionList:async()=>{const V=await p("getSessionsApi")();if(y(V),r.value){const H=V.find($=>{var Y;return $.sessionCode===((Y=r.value)==null?void 0:Y.sessionCode)});H&&(r.value={...r.value,...H,isEdit:r.value.isEdit})}return V.forEach(H=>{o.value[H.sessionCode]||(o.value[H.sessionCode]=0),o.value[H.sessionCode]++}),n.value},sessionUpdateCounter:o}}const qet=Symbol("session-store");function BNn(){const n=ONn();return K.provide(qet,n),n}function PNn(){const n=K.inject(qet);if(!n)throw new Error("Session store not provided");return n}function PN(n={}){const r="ai-blueking-tooltip",i=K.ref([]),o=(y,A,x={})=>{try{const C=typeof y=="string"?document.querySelector(y):y;if(!C)return console.warn(`Tooltip target not found: ${y}`),null;const T={content:A,placement:"top",arrow:!0,delay:[300,0],theme:r,...n,...x},M=pS(C,T);return i.value.push(M),M}catch(C){return console.error("Failed to create tooltip:",C),null}},l=(y,A,x={})=>{const C=document.querySelectorAll(y),T=[];return C.forEach(M=>{const E=o(M,A,x);E&&T.push(E)}),T},f=y=>{const A=[];return y.forEach(({element:x,content:C,options:T})=>{const M=o(x,C,T);M&&A.push(M)}),A},h=()=>{i.value.forEach(y=>{y.destroy()}),i.value=[]},p=(y,A)=>{y.setContent(A)},b=y=>{y.destroy()};return K.onBeforeUnmount(()=>{h()}),{instances:i,createTooltip:o,createTooltipsForSelector:l,createMultipleTooltips:f,destroyAll:h,updateContent:p,destroyInstance:b}}const jNn={class:"bkai-history-panel"},FNn={class:"history-panel-header"},RNn={class:"history-panel-header-title"},zNn={class:"input-icon"},_Nn={class:"history-panel-content"},HNn={class:"history-panel-content-item-title"},QNn={class:"history-panel-content-item-list"},VNn=["onClick"],$Nn={class:"history-panel-content-item-list-item-action"},GNn=["onClick"],YNn=K.defineComponent({__name:"history-panel",props:{sessionStore:{}},emits:["close"],setup(n,{emit:r}){const i=n,o=r,l=Nqe,f=K.ref(""),h=i.sessionStore,p=K.ref({}),b=K.computed(()=>{const E={today:{key:"today",alias:Do("今天"),sessionList:[]},yesterday:{key:"yesterday",alias:Do("昨天"),sessionList:[]},before:{key:"before",alias:Do("之前"),sessionList:[]}},L=h.sessionList.value.filter(O=>O.sessionName.toLowerCase().includes(f.value.toLowerCase()));for(const O of L){const j=new Date(O.createdAt||""),F=new Date,R=new Date;R.setDate(R.getDate()-1),j.toDateString()===F.toDateString()?E.today.sessionList.push(O):j.toDateString()===R.toDateString()?E.yesterday.sessionList.push(O):E.before.sessionList.push(O)}return Object.values(E).filter(O=>O.sessionList.length>0)}),y=E=>{var L;return((L=h.currentSession.value)==null?void 0:L.sessionCode)===E.sessionCode},A=E=>{y(E)||(h.switchSessionWithContents(E),o("close"))},x=E=>{h.deleteSession(E)},C=E=>{h.finishEditSession(E.sessionCode,{sessionName:E.sessionName})},T=E=>{h.startEditSession(E.sessionCode),K.nextTick(()=>{const L=p.value[E.sessionCode];L&&L.focus()})},M=(E,L)=>{L.target.blur()};return(E,L)=>(K.openBlock(),K.createElementBlock("div",jNn,[K.createElementVNode("div",FNn,[K.createElementVNode("h1",RNn,K.toDisplayString(K.unref(Do)("历史会话")),1),K.createVNode(K.unref(r_),{modelValue:f.value,"onUpdate:modelValue":L[0]||(L[0]=O=>f.value=O),behavior:"simplicity",placeholder:K.unref(Do)("搜索会话名称"),style:{height:"22px"}},{suffix:K.withCtx(()=>[K.createElementVNode("span",zNn,[K.createVNode(K.unref(rpe))])]),_:1},8,["modelValue","placeholder"])]),K.createElementVNode("div",_Nn,[b.value.length>0?(K.openBlock(!0),K.createElementBlock(K.Fragment,{key:0},K.renderList(b.value,O=>(K.openBlock(),K.createElementBlock("div",{key:O.key,class:"history-panel-content-item"},[K.createElementVNode("div",HNn,[K.createElementVNode("span",null,K.toDisplayString(O.alias),1)]),K.createElementVNode("div",QNn,[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(O.sessionList,j=>(K.openBlock(),K.createElementBlock("div",{key:`${j.sessionCode}-${K.unref(h).sessionUpdateCounter.value[j.sessionCode]||0}`,class:K.normalizeClass(["history-panel-content-item-list-item",{active:y(j)}]),onClick:F=>A(j)},[j.isEdit?(K.openBlock(),K.createBlock(K.unref(r_),{key:1,ref_for:!0,ref:F=>{j.isEdit&&(p.value[j.sessionCode]=F)},modelValue:j.sessionName,"onUpdate:modelValue":F=>j.sessionName=F,style:{width:"100%",height:"28px"},onBlur:F=>C(j),onEnter:M,onClick:L[2]||(L[2]=K.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(K.openBlock(),K.createElementBlock(K.Fragment,{key:0},[K.createVNode(K.unref(Oyn),{style:{width:"calc(100% - 42px)"}},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(j.sessionName),1)]),_:2},1024),K.createElementVNode("span",$Nn,[K.withDirectives(K.createElementVNode("i",{class:"bkai-icon bkai-bianji",onClick:K.withModifiers(F=>T(j),["stop"])},null,8,GNn),[[K.unref(l),{content:K.unref(Do)("编辑"),boundary:"parent"}]]),K.createVNode(K.unref(vTn),{title:K.unref(Do)("确认删除会话 ?"),content:"删除操作无法撤回,请谨慎操作!","confirm-config":{theme:"danger"},trigger:"click",boundary:"parent",onConfirm:F=>x(j.sessionCode)},{default:K.withCtx(()=>[K.withDirectives(K.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:L[1]||(L[1]=K.withModifiers(()=>{},["stop"]))},null,512),[[K.unref(l),{content:K.unref(Do)("删除"),boundary:"parent"}]])]),_:2},1032,["title","onConfirm"])])],64))],10,VNn))),128))])]))),128)):(K.openBlock(),K.createBlock(K.unref(mkn),{key:1,style:{"margin-top":"100px"},description:f.value?K.unref(Do)("搜索为空"):K.unref(Do)("暂无对话"),scene:"part",type:f.value?"search-empty":"empty"},null,8,["description","type"]))])]))}}),Pd=(n,r)=>{const i=n.__vccOpts||n;for(const[o,l]of r)i[o]=l;return i},UNn=Pd(YNn,[["__scopeId","data-v-538e5107"]]),JNn={class:"left-section"},WNn={class:"logo"},qNn=["src"],ZNn={class:"title"},KNn={class:"right-section"},XNn=Pd(K.defineComponent({__name:"ai-header",props:{title:{default:""},isCompressionHeight:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},enableChatSession:{type:Boolean,default:!0}},emits:["close","toggleCompression","newChat"],setup(n,{emit:r}){const i=n,o=r,l=Nqe,f=PNn(),h=K.ref(null),{handleTriggerClick:p}=SNn({triggerRef:h,panelComponent:UNn,panelProps:{sessionStore:f},tippyOptions:{placement:"bottom-end",offset:[0,8],appendTo:()=>document.querySelector(".ai-blueking-container-wrapper")||document.body}}),b=K.computed(()=>{var j,F,R;return i.enableChatSession?i.title||`${((F=f.agentInfo.value)==null?void 0:F.agentName)||""}-${(R=f.currentSession.value)==null?void 0:R.sessionName}`:(j=f.agentInfo.value)==null?void 0:j.agentName}),y=K.computed(()=>i.isCompressionHeight?"bkai-morenchicun":"bkai-yasuo"),A=K.computed(()=>i.isCompressionHeight?Do("恢复默认尺寸"):Do("缩小高度")),x=K.ref(null),C=K.ref(null),T=K.ref(null),{createTooltip:M,destroyAll:E}=PN({arrow:!0,delay:[0,0]}),L=()=>{E(),C.value&&M(C.value,A.value,{appendTo:document.querySelector(".ai-blueking-container-wrapper")}),T.value&&M(T.value,Do("关闭"),{appendTo:document.querySelector(".ai-blueking-container-wrapper")})};K.watch(()=>i.isCompressionHeight,()=>{L()}),K.onMounted(()=>{L()}),K.onBeforeUnmount(()=>{E()});const O=async()=>{try{o("newChat"),await f.initSession(!1)}catch(j){console.error("Failed to create new chat:",j)}};return(j,F)=>(K.openBlock(),K.createElementBlock("div",{ref_key:"headerRef",ref:x,class:K.normalizeClass(["header drag-handle",{draggable:i.draggable}])},[K.createElementVNode("div",JNn,[K.createElementVNode("div",WNn,[K.createElementVNode("img",{src:K.unref(xbe),alt:"logo"},null,8,qNn)]),K.createElementVNode("div",ZNn,K.toDisplayString(b.value),1)]),K.createElementVNode("div",KNn,[i.showNewChatIcon&&i.enableChatSession!==!1?K.withDirectives((K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-xinzengliaotian",onClick:O},null,512)),[[K.unref(l),{content:K.unref(Do)("新增会话"),boundary:"parent"}]]):K.createCommentVNode("v-if",!0),i.showHistoryIcon&&i.enableChatSession!==!1?K.withDirectives((K.openBlock(),K.createElementBlock("i",{key:1,ref_key:"historyIconRef",ref:h,class:"bkai-icon bkai-history",onClick:F[0]||(F[0]=(...R)=>K.unref(p)&&K.unref(p)(...R))},null,512)),[[K.unref(l),{content:K.unref(Do)("历史会话"),boundary:"parent"}]]):K.createCommentVNode("v-if",!0),K.createElementVNode("i",{ref_key:"compressionRef",ref:C,class:K.normalizeClass(["bkai-icon",y.value]),onClick:F[1]||(F[1]=R=>o("toggleCompression"))},null,2),K.createElementVNode("i",{ref_key:"closeRef",ref:T,class:"bkai-icon bkai-close-line-2",onClick:F[2]||(F[2]=R=>o("close"))},null,512)])],2))}}),[["__scopeId","data-v-00deaee7"]]),eOn={class:"bar-button-text"},Zet=Pd(K.defineComponent({__name:"bar-button",props:{icon:{},color:{},text:{}},emits:["click"],setup(n,{emit:r}){K.useCssVars(l=>({"5ec4534a":l.color}));const i=r,o=n;return(l,f)=>(K.openBlock(),K.createElementBlock("div",{class:"bar-button",onClick:f[0]||(f[0]=h=>i("click"))},[K.createElementVNode("i",{class:K.normalizeClass(["bkai-icon",o.icon])},null,2),K.createElementVNode("span",eOn,K.toDisplayString(o.text),1)]))}}),[["__scopeId","data-v-8ce57e71"]]),tOn={class:"ai-cite"},nOn={class:"content"},Ket=Pd(K.defineComponent({__name:"ai-cite",props:{text:{},showCloseIcon:{type:Boolean}},emits:["close"],setup(n){const r=n,i=K.ref(null);K.watch(()=>r.text,()=>{i.value&&h(i.value),K.nextTick(()=>{p()})});const o=K.ref(null),l=b=>b.scrollWidth>b.clientWidth,{createTooltip:f,destroyInstance:h}=PN({arrow:!0,delay:[0,0]}),p=()=>{if(o.value){const b=o.value;l(b)&&(i.value=f(b,r.text,{appendTo:document.querySelector(".ai-blueking-container-wrapper")}))}};return K.onMounted(()=>{K.nextTick(()=>{p()})}),(b,y)=>K.withDirectives((K.openBlock(),K.createElementBlock("section",tOn,[K.createElementVNode("span",nOn,[K.createElementVNode("span",{class:K.normalizeClass(["content-text",{"show-close-icon":b.showCloseIcon}])},[y[1]||(y[1]=K.createElementVNode("i",{class:"bkai-icon bkai-yinyong"},null,-1)),K.createElementVNode("span",{ref_key:"citeTextRef",ref:o,class:"ai-cite-text"},K.toDisplayString(b.text),513)],2),b.showCloseIcon?(K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-close-line-2 close-icon",onClick:y[0]||(y[0]=A=>b.$emit("close"))})):K.createCommentVNode("v-if",!0)])],512)),[[K.vShow,b.text]])}}),[["__scopeId","data-v-af2b067c"]]);function Xet(n={}){const r=K.ref(!1);return{isComposing:r,handleCompositionStart:()=>{r.value=!0},handleCompositionEnd:()=>{r.value=!1},handleEnter:p=>{const{isLoading:b,onSend:y,getInputValue:A=()=>"",clearInput:x=()=>{}}=n;if(p.shiftKey)return;p.preventDefault();const C=A();b!=null&&b.value||!C.trim()||r.value||(y==null||y(C),x())},handleSend:()=>{const{onSend:p,getInputValue:b=()=>"",clearInput:y=()=>{}}=n,A=b();A.trim()&&(p==null||p(A),y())},handleStop:()=>{const{onStop:p}=n;p==null||p()}}}const ett="enablePopup";function Lbe(){return{enablePopup:K.inject(ett,!0)}}const j_=K.ref(""),ttt=K.ref(""),Dbe=K.ref(!1),Nbe={width:80,height:34,offset:15,debounceTime:300};function F_(n){const r=K.ref(!1),i=K.ref({top:"0px",left:"0px"});let o,l=null;const f=K.ref(null);let h=!1,p=null;const b=F=>{p={x:F.clientX,y:F.clientY}},y=F=>{l=F,p&&(h=Math.sqrt(Math.pow(F.clientX-p.x,2)+Math.pow(F.clientY-p.y,2))>5),p=null},A=(F,R)=>{const V=window.innerWidth,{width:H,height:$,offset:Y}=Nbe;let Q=F+window.scrollX-H/2;Q=Math.max(Y,Math.min(Q,V-H-Y));let J=R+window.scrollY-$-Y;return R<=$+Y&&(J=R+window.scrollY+Y),{top:`${J}px`,left:`${Q}px`}},x=F=>{const R=window.innerWidth,{width:V,height:H,offset:$}=Nbe;let Y=F.left+window.scrollX+F.width/2-V/2;Y=Math.max($,Math.min(Y,R-V-$));let Q=F.top+window.scrollY-H-$;return F.top<=H+$&&(Q=F.bottom+window.scrollY+$),{top:`${Q}px`,left:`${Y}px`}},C=(F,R)=>{let V=F;for(;V&&V!==document.documentElement;){if(V.hasAttribute&&V.hasAttribute(R))return!0;V=V.parentElement}return!1},T=()=>{clearTimeout(o),o=setTimeout(()=>{var Y;const F=window.getSelection();if(!(F!=null&&F.toString().trim())){M();return}const R=F.getRangeAt(0);if((Y=R.commonAncestorContainer.parentElement)!=null&&Y.closest(".ai-blueking-wrapper")){M();return}const V=R.commonAncestorContainer,H=V.nodeType===Node.ELEMENT_NODE?V:V.parentElement;if(C(H,"ai-blueking-hide")){M();return}Dbe.value=!1,j_.value=F.toString().trim();const $=document.activeElement;if(($==null?void 0:$.tagName)==="TEXTAREA"){if(!l){M();return}const{clientX:Q,clientY:J}=l;i.value=A(Q,J),r.value=!0,l=null}else{const Q=R.getBoundingClientRect();if(!Q.width||!Q.height){M();return}i.value=x(Q),r.value=!0}},Nbe.debounceTime)},M=()=>{r.value=!1,Dbe.value||(j_.value="")},E=F=>{var $,Y,Q;const R=F.target,V=(($=R.classList)==null?void 0:$.contains("ai-blueking-tag-text"))||((Y=R.classList)==null?void 0:Y.contains("shortcut-btn")),H=(Q=f.value)==null?void 0:Q.contains(R);if(!(V||!h)){if(h){F.preventDefault(),F.stopPropagation(),h=!1;return}H||(M(),L())}},L=()=>{const F=window.getSelection();F&&F.removeAllRanges(),j_.value=""},O=F=>{j_.value=F},j=F=>{ttt.value=F};return K.onMounted(()=>{n&&(document.addEventListener("selectionchange",T),document.addEventListener("mousedown",b),document.addEventListener("mouseup",y),document.addEventListener("click",E,!0))}),K.onBeforeUnmount(()=>{n&&(document.removeEventListener("selectionchange",T),document.removeEventListener("mousedown",b),document.removeEventListener("mouseup",y),document.removeEventListener("click",E,!0)),clearTimeout(o)}),{isIconVisible:r,iconPosition:i,selectedText:j_,citeText:ttt,hideIcon:M,clearSelection:L,setSelection:O,setCiteText:j,lockSelectedText:Dbe,popupRef:f}}function rOn(n={}){const{minHeight:r=68,maxHeight:i=248,defaultHeight:o=68}=n,l=K.ref(o),f=K.ref(),h=()=>{if(!f.value)return;f.value.style.height=`${r}px`;const y=f.value.scrollHeight;l.value=Math.min(Math.max(y,r),i)};return{textareaHeight:l,textareaRef:f,updateHeight:h,resetHeight:()=>{l.value=o},bindTextarea:y=>{f.value=y,h()}}}function ntt(n,r,i=K.ref(null),o={}){const l=K.ref([]),f=K.ref([]),{theme:h="ai-blueking-light light",placement:p="bottom",trigger:b="mouseenter",interactive:y=!0,allowHTML:A=!0,arrow:x=!0,offset:C=[0,4],onItemClick:T}=o,{createTooltip:M,destroyAll:E}=PN({theme:h,placement:p,trigger:b,interactive:y,allowHTML:A,arrow:x,offset:C}),L=K.computed(()=>f.value.length===0?"":`<div class="tippy-dropdown-menu">${f.value.map(V=>`<div class="tippy-menu-item" data-item-id="${V.id}">
|
|
507
507
|
${V.icon?`<i class="${V.icon}"></i>`:""}
|
|
508
508
|
<span>${V.name}</span>
|
|
509
509
|
</div>`).join("")}</div>`),O=async()=>{var ee;const R=n.value;if(!R)return;l.value=[...r.value],f.value=[],await K.nextTick();const V=R.clientWidth,H=Array.from(R.children),$=window.getComputedStyle(R),Y=parseFloat($.gap)||0;let Q=0;if(H.forEach((X,se)=>{Q+=X.getBoundingClientRect().width,se<H.length-1&&(Q+=Y)}),Q<=V)return;const J=((ee=i.value)==null?void 0:ee.offsetWidth)||70,_=V-J;let W=0,z=-1;for(let X=0;X<H.length;X++){const se=H[X];if(W+=se.getBoundingClientRect().width,X<H.length-1&&(W+=Y),W>_){z=X;break}}z===-1&&(z=r.value.length),l.value=r.value.slice(0,z),f.value=r.value.slice(z)};K.watch(()=>r.value,()=>{requestAnimationFrame(O)},{deep:!0,immediate:!0}),K.watch(()=>f.value,R=>{K.nextTick(()=>{R.length>0&&i.value?(E(),M(i.value,L.value,{onShow:()=>{setTimeout(()=>{document.querySelectorAll(".tippy-menu-item").forEach(H=>{H.addEventListener("click",j)})},0)},onHide:()=>{document.querySelectorAll(".tippy-menu-item").forEach(H=>{H.removeEventListener("click",j)})}})):E()})},{immediate:!0});const j=R=>{const H=R.currentTarget.dataset.itemId,$=f.value.find(Y=>Y.id===H);$&&T&&T($)};let F=null;return K.onMounted(()=>{n.value&&(F=new ResizeObserver(()=>{requestAnimationFrame(O)}),F.observe(n.value))}),K.onBeforeUnmount(()=>{F&&n.value&&F.unobserve(n.value),E()}),{visibleItems:l,hiddenItems:f,calculateVisibleItems:O}}const iOn={class:"ai-selected-box"},aOn={class:"ai-selected-tip"},oOn={class:"ai-selected-tip-text"},sOn={class:"ai-selected-box-content"},cOn=["onClick"],lOn=Pd(K.defineComponent({__name:"ai-selected-box",props:{selectedText:{},actions:{}},emits:["shortcut-click"],setup(n,{emit:r}){const i=r,o=n,{clearSelection:l}=F_(!0),f=K.ref(null),h=K.ref(null),p=K.computed(()=>o.actions),{visibleItems:b,hiddenItems:y}=ntt(f,p,h,{theme:"ai-blueking-light light",placement:"top",trigger:"mouseenter",interactive:!0,allowHTML:!0,arrow:!0,offset:[0,4],onItemClick:x=>{i("shortcut-click",{shortcut:x,source:"ai-selected"})}}),A=x=>{i("shortcut-click",{shortcut:x,source:"ai-selected"})};return(x,C)=>(K.openBlock(),K.createElementBlock("div",iOn,[K.createElementVNode("i",{class:"bkai-icon bkai-close-circle-shape",onClick:C[0]||(C[0]=(...T)=>K.unref(l)&&K.unref(l)(...T))}),K.createElementVNode("div",aOn,[C[1]||(C[1]=K.createElementVNode("i",{class:"bkai-icon bkai-yinyong"},null,-1)),K.createElementVNode("span",oOn,K.toDisplayString(K.unref(Do)("已框选内容")),1)]),K.createElementVNode("div",sOn,K.toDisplayString(o.selectedText),1),K.createElementVNode("div",{ref_key:"actionsContainerRef",ref:f,class:"ai-selected-box-actions"},[K.createCommentVNode(" 可见的操作项 "),(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(K.unref(b),T=>(K.openBlock(),K.createElementBlock("div",{key:T.id,class:"ai-selected-box-action",onClick:M=>A(T)},[K.createElementVNode("i",{class:K.normalizeClass(["bkai-icon",T.icon])},null,2),K.createElementVNode("span",null,K.toDisplayString(T.name),1)],8,cOn))),128)),K.createCommentVNode(' "更多"按钮 '),K.unref(y).length>0?(K.openBlock(),K.createElementBlock("div",{key:0,ref_key:"moreButtonRef",ref:h,class:"ai-selected-box-action more-container"},C[2]||(C[2]=[K.createElementVNode("span",null,"更多",-1),K.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)]),512)):K.createCommentVNode("v-if",!0)],512)]))}}),[["__scopeId","data-v-42b29188"]]),uOn={class:"bkai-prompt-list-search"},fOn={class:"bkai-prompt-list-content"},hOn={key:0,class:"bkai-prompt-list-empty"},dOn=["onClick","onMouseover"],gOn=Pd(K.defineComponent({__name:"prompt-list",props:{prompts:{},show:{type:Boolean}},emits:["select","height-change","update:show"],setup(n,{expose:r,emit:i}){const o=n,l=i,f=K.ref(""),h=K.ref(null),p=K.ref(null),b=K.computed(()=>f.value.trim()?o.prompts.filter(E=>E.toLowerCase().includes(f.value.toLowerCase())):o.prompts);K.watch(()=>o.show,E=>{E&&K.nextTick(()=>{p.value=null})});const y=E=>{l("select",E),l("update:show",!1),f.value=""},A=()=>{b.value.length&&(p.value===null||p.value===b.value.length-1?p.value=0:p.value++,T())},x=()=>{b.value.length&&(p.value===null||p.value===0?p.value=b.value.length-1:p.value--,T())},C=()=>!b.value.length||p.value===null?!1:(y(b.value[p.value]),!0),T=()=>{if(p.value===null||!h.value)return;const E=h.value.querySelector(".bkai-prompt-list-content");if(!E)return;const L=E.children[p.value];if(!L)return;const O=E.getBoundingClientRect(),j=L.getBoundingClientRect();j.top<O.top?E.scrollTop=L.offsetTop:j.bottom>O.bottom&&(E.scrollTop=L.offsetTop+L.offsetHeight-E.clientHeight)};let M=null;return K.onMounted(()=>{h.value&&(M=new ResizeObserver(E=>{for(const L of E)l("height-change",L.contentRect.height)}),M.observe(h.value))}),K.onBeforeUnmount(()=>{M&&h.value&&(M.unobserve(h.value),M.disconnect())}),r({handleArrowDown:A,handleArrowUp:x,handleEnter:C}),(E,L)=>K.withDirectives((K.openBlock(),K.createElementBlock("div",{ref_key:"promptListEl",ref:h,class:"bkai-prompt-list"},[K.createElementVNode("div",uOn,[K.createVNode(K.unref(r_),{modelValue:f.value,"onUpdate:modelValue":L[0]||(L[0]=O=>f.value=O),behavior:"simplicity",placeholder:"请输入关键词"},null,8,["modelValue"])]),K.createElementVNode("div",fOn,[b.value.length===0?(K.openBlock(),K.createElementBlock("div",hOn,K.toDisplayString(K.unref(Do)("无匹配结果")),1)):(K.openBlock(!0),K.createElementBlock(K.Fragment,{key:1},K.renderList(b.value,(O,j)=>(K.openBlock(),K.createElementBlock("div",{key:O,style:{overflow:"hidden"},class:K.normalizeClass(["bkai-prompt-list-item",{active:p.value===j}]),onClick:F=>y(O),onMouseleave:L[1]||(L[1]=F=>p.value=null),onMouseover:F=>p.value=j},K.toDisplayString(O),43,dOn))),128))])],512)),[[K.vShow,E.show]])}}),[["__scopeId","data-v-64af2ecb"]]),pOn=["onClick"],mOn={class:"shortcut-text"},bOn=Pd(K.defineComponent({__name:"shortcuts-bar",props:{shortcuts:{}},emits:["shortcut-click"],setup(n,{emit:r}){const i=n,o=r,l=K.ref(null),f=K.ref(null),h=K.computed(()=>i.shortcuts),{visibleItems:p,hiddenItems:b}=ntt(l,h,f,{theme:"ai-blueking-light light",placement:"bottom",trigger:"mouseenter",interactive:!0,allowHTML:!0,arrow:!0,offset:[0,4],onItemClick:y=>{o("shortcut-click",{shortcut:y,source:"main"})}});return(y,A)=>(K.openBlock(),K.createElementBlock("div",{ref_key:"containerRef",ref:l,class:"shortcuts-bar"},[K.createCommentVNode(" 可见的 shortcuts "),(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(K.unref(p),x=>(K.openBlock(),K.createElementBlock("div",{key:x.id,class:"shortcut-item",onClick:C=>o("shortcut-click",{shortcut:x,source:"main"})},[K.createElementVNode("i",{class:K.normalizeClass(x.icon)},null,2),K.createElementVNode("span",mOn,K.toDisplayString(x.name),1)],8,pOn))),128)),K.createCommentVNode(' "更多"按钮 '),K.unref(b).length>0?(K.openBlock(),K.createElementBlock("div",{key:0,ref_key:"moreButtonRef",ref:f,class:"shortcut-item more-container"},A[0]||(A[0]=[K.createElementVNode("span",{class:"shortcut-text"},"更多",-1),K.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)]),512)):K.createCommentVNode("v-if",!0)],512))}}),[["__scopeId","data-v-e115e445"]]),vOn={class:"chat-input-box"},yOn={key:0,class:"cite"},wOn=["disabled","placeholder"],AOn={class:"input-tools"},xOn=Pd(K.defineComponent({__name:"chat-input-box",props:{shortcuts:{default:()=>[]},conversationSettings:{},loading:{type:Boolean},prompts:{},disabled:{type:Boolean},placeholder:{default:()=>Do(`输入 "/" 唤出 Prompt
|
package/dist/vue2/{journeyDiagram-49397b02-C0DCZid3.mjs → journeyDiagram-49397b02-DTZNUioo.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as yt, s as ft, b as dt, c as pt, C as gt, D as mt, g as C, d as W, e as xt, E as kt } from "./vue2-
|
|
2
|
-
import { a as _t, g as it, f as bt, d as vt } from "./svgDrawCommon-08f97a94-
|
|
1
|
+
import { a as yt, s as ft, b as dt, c as pt, C as gt, D as mt, g as C, d as W, e as xt, E as kt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
|
+
import { a as _t, g as it, f as bt, d as vt } from "./svgDrawCommon-08f97a94-ZUY6lyW4.mjs";
|
|
3
3
|
import "dayjs";
|
|
4
|
-
import { a as Q } from "./arc-
|
|
4
|
+
import { a as Q } from "./arc-Drr1lna9.mjs";
|
|
5
5
|
var G = function() {
|
|
6
6
|
var t = function(p, s, r, a) {
|
|
7
7
|
for (r = r || {}, a = p.length; a--; r[p[a]] = s)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as F, b as gn, c as zn, d as L, k as Xn, e as Un, g as Hn, j as P, l as xn, m as En, n as kn, t as jn, o as yn, p as Jn, q as Kn, G as x, f as s, h as w, i as g, r as M, v as y, s as Y } from "./graph-
|
|
2
|
-
import { a5 as A, a6 as Zn, a7 as Qn, a8 as Nn, a9 as B, aa as Ln, ab as ne, ac as _n, ad as J, ae as ee, af as re, ag as K, ah as te, ai as Cn, aj as ie, ak as ae, al as H } from "./vue2-
|
|
1
|
+
import { a as F, b as gn, c as zn, d as L, k as Xn, e as Un, g as Hn, j as P, l as xn, m as En, n as kn, t as jn, o as yn, p as Jn, q as Kn, G as x, f as s, h as w, i as g, r as M, v as y, s as Y } from "./graph-CqTVh0y2.mjs";
|
|
2
|
+
import { a5 as A, a6 as Zn, a7 as Qn, a8 as Nn, a9 as B, aa as Ln, ab as ne, ac as _n, ad as J, ae as ee, af as re, ag as K, ah as te, ai as Cn, aj as ie, ak as ae, al as H } from "./vue2-Dp2pIAD8.mjs";
|
|
3
3
|
var oe = /\s/;
|
|
4
4
|
function ue(n) {
|
|
5
5
|
for (var e = n.length; e-- && oe.test(n.charAt(e)); )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as un, Z as I, _ as Y, $ as fn, a0 as Z } from "./vue2-
|
|
1
|
+
import { Y as un, Z as I, _ as Y, $ as fn, a0 as Z } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
import { i as cn } from "./init-DjUOC4st.mjs";
|
|
3
3
|
function F(n, t) {
|
|
4
4
|
return n == null || t == null ? NaN : n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as ro, an as dv, l as Nr, aq as gv, ar as pv, as as yv, g as ao, P as mv, o as bv, V as En, i as xn, d as wv, U as Ev } from "./vue2-
|
|
2
|
-
import { a as xv } from "./createText-2e5e7dd3-
|
|
1
|
+
import { ao as ro, an as dv, l as Nr, aq as gv, ar as pv, as as yv, g as ao, P as mv, o as bv, V as En, i as xn, d as wv, U as Ev } from "./vue2-Dp2pIAD8.mjs";
|
|
2
|
+
import { a as xv } from "./createText-2e5e7dd3-DqsPaEjK.mjs";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
function ks(t, e) {
|
|
5
5
|
(e == null || e > t.length) && (e = t.length);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Q as H, a as rt, s as at, b as lt, c as ot, C as ct, D as ht, l as et, g as it, T as ut, P as yt, U as ft, e as pt, i as gt, E as dt, V as mt } from "./vue2-
|
|
1
|
+
import { Q as H, a as rt, s as at, b as lt, c as ot, C as ct, D as ht, l as et, g as it, T as ut, P as yt, U as ft, e as pt, i as gt, E as dt, V as mt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
import "dayjs";
|
|
3
|
-
import { a as tt } from "./arc-
|
|
3
|
+
import { a as tt } from "./arc-Drr1lna9.mjs";
|
|
4
4
|
import { o as _t } from "./ordinal-C0oynhte.mjs";
|
|
5
5
|
import { a as xt } from "./array-CqVTtuYm.mjs";
|
|
6
6
|
import { c as F } from "./path-DLwuMfdd.mjs";
|
package/dist/vue2/{quadrantDiagram-120e2f19-fuR7zO_t.mjs → quadrantDiagram-120e2f19-C_8zgnv2.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as vt, a as Lt, C as bt, D as Ct, b as zt, c as Et, g as yt, l as ot, d as gt, e as Dt, E as It, V as D, W as Bt, i as wt } from "./vue2-
|
|
1
|
+
import { s as vt, a as Lt, C as bt, D as Ct, b as zt, c as Et, g as yt, l as ot, d as gt, e as Dt, E as It, V as D, W as Bt, i as wt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
import "dayjs";
|
|
3
|
-
import { l as mt } from "./linear-
|
|
3
|
+
import { l as mt } from "./linear-D7Djgzby.mjs";
|
|
4
4
|
var pt = function() {
|
|
5
5
|
var e = function(K, n, r, l) {
|
|
6
6
|
for (r = r || {}, l = K.length; l--; r[K[l]] = n)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, E as Ye, l as Ne, k as ke } from "./vue2-
|
|
2
|
-
import { G as Ue } from "./graph-
|
|
3
|
-
import { l as Be } from "./layout-
|
|
1
|
+
import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, E as Ye, l as Ne, k as ke } from "./vue2-Dp2pIAD8.mjs";
|
|
2
|
+
import { G as Ue } from "./graph-CqTVh0y2.mjs";
|
|
3
|
+
import { l as Be } from "./layout-CgBQyEUg.mjs";
|
|
4
4
|
import "dayjs";
|
|
5
|
-
import { l as Qe } from "./line-
|
|
5
|
+
import { l as Qe } from "./line-0wnAzFqe.mjs";
|
|
6
6
|
var ce = function() {
|
|
7
7
|
var e = function(V, i, r, a) {
|
|
8
8
|
for (r = r || {}, a = V.length; a--; r[V[a]] = i)
|
package/dist/vue2/{sankeyDiagram-04a897e0-BZuuDL9W.mjs → sankeyDiagram-04a897e0-DEzIC42H.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as mt, C as kt, s as _t, a as xt, c as vt, b as bt, g as rt, ap as wt, d as G, o as St, E as Lt, k as Et } from "./vue2-
|
|
1
|
+
import { D as mt, C as kt, s as _t, a as xt, c as vt, b as bt, g as rt, ap as wt, d as G, o as St, E as Lt, k as Et } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
import "dayjs";
|
|
3
3
|
import { o as At } from "./ordinal-C0oynhte.mjs";
|
|
4
4
|
import { s as Tt } from "./Tableau10-D7jGxypv.mjs";
|
package/dist/vue2/{sequenceDiagram-704730f1-DZ7wY6si.mjs → sequenceDiagram-704730f1-CKTIQpn4.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as we, s as ve, c as $t, g as st, D as _e, C as ke, b as Pe, d as Lt, l as G, j as te, e as Le, f as Ie, k as v, i as At, E as Ae, B, a1 as nt, a2 as wt, U as ee, a3 as Ne, t as se, X as Bt } from "./vue2-
|
|
2
|
-
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./svgDrawCommon-08f97a94-
|
|
1
|
+
import { a as we, s as ve, c as $t, g as st, D as _e, C as ke, b as Pe, d as Lt, l as G, j as te, e as Le, f as Ie, k as v, i as At, E as Ae, B, a1 as nt, a2 as wt, U as ee, a3 as Ne, t as se, X as Bt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
|
+
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./svgDrawCommon-08f97a94-ZUY6lyW4.mjs";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
var Yt = function() {
|
|
5
5
|
var t = function(dt, w, k, L) {
|
package/dist/{vue3/stateDiagram-587899a1-JBSELOt8.mjs → vue2/stateDiagram-587899a1-CtylTld_.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as P, d as N, p as W } from "./styles-6aaf32cf-
|
|
2
|
-
import { g as t, d as H, l as b, e as R, k as T, F as v, B as U } from "./
|
|
3
|
-
import { G as C } from "./graph-
|
|
4
|
-
import { l as F } from "./layout-
|
|
1
|
+
import { s as P, d as N, p as W } from "./styles-6aaf32cf-BP8SJusz.mjs";
|
|
2
|
+
import { g as t, d as H, l as b, e as R, k as T, F as v, B as U } from "./vue2-Dp2pIAD8.mjs";
|
|
3
|
+
import { G as C } from "./graph-CqTVh0y2.mjs";
|
|
4
|
+
import { l as F } from "./layout-CgBQyEUg.mjs";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import { l as $ } from "./line-
|
|
6
|
+
import { l as $ } from "./line-0wnAzFqe.mjs";
|
|
7
7
|
const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), J = (e, i) => {
|
|
8
8
|
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
|
|
9
9
|
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
|
package/dist/vue2/{stateDiagram-v2-d93cdb3a-DflkHVal.mjs → stateDiagram-v2-d93cdb3a-Cn1TZ26i.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as Q, d as B, p as X, D as Z, a as H, b as m, S as F, c as I } from "./styles-6aaf32cf-
|
|
2
|
-
import { G as tt } from "./graph-
|
|
3
|
-
import { l as E, g, d as x, B as et, e as ot, k as w } from "./vue2-
|
|
4
|
-
import { r as st } from "./index-3862675e-
|
|
1
|
+
import { s as Q, d as B, p as X, D as Z, a as H, b as m, S as F, c as I } from "./styles-6aaf32cf-BP8SJusz.mjs";
|
|
2
|
+
import { G as tt } from "./graph-CqTVh0y2.mjs";
|
|
3
|
+
import { l as E, g, d as x, B as et, e as ot, k as w } from "./vue2-Dp2pIAD8.mjs";
|
|
4
|
+
import { r as st } from "./index-3862675e-CBZFDFaT.mjs";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import "./layout-
|
|
6
|
+
import "./layout-CgBQyEUg.mjs";
|
|
7
7
|
const h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", _ = "statediagram", dt = "state", Et = `${_}-${dt}`, U = "transition", St = "note", Tt = "note-edge", pt = `${U} ${Tt}`, _t = `${_}-${St}`, ut = "cluster", Dt = `${_}-${ut}`, bt = "cluster-alt", ft = `${_}-${bt}`, V = "parent", Y = "note", At = "state", N = "----", ht = `${N}${Y}`, M = `${N}${V}`, W = "fill:none", z = "fill: #333", q = "c", K = "text", j = "normal";
|
|
8
8
|
let y = {}, d = 0;
|
|
9
9
|
const yt = function(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Ut, D as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, k as ot, l as D, E as Wt, a4 as Jt } from "./
|
|
1
|
+
import { C as Ut, D as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, k as ot, l as D, E as Wt, a4 as Jt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
var gt = function() {
|
|
3
3
|
var t = function(C, r, n, i) {
|
|
4
4
|
for (n = n || {}, i = C.length; i--; n[C[i]] = r)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ut, D as rt, g as F, s as at, a as lt, b as ct, c as ot, k as v, B as We, l as ht, E as At, i as pt, G as Re, d as z } from "./vue2-
|
|
1
|
+
import { C as ut, D as rt, g as F, s as at, a as lt, b as ct, c as ot, k as v, B as We, l as ht, E as At, i as pt, G as Re, d as z } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
var Ve = function() {
|
|
3
3
|
var e = function(x, u, a, h) {
|
|
4
4
|
for (a = a || {}, h = x.length; h--; a[x[h]] = u)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as R } from "./graph-
|
|
2
|
-
import { S as z, v as F, x as U, y as j, z as H, A as K, l as g, g as S, d as C, B as W, o as X, p as N, q as E, n as L, t as G, k as q, r as J } from "./
|
|
3
|
-
import { r as Q } from "./index-3862675e-
|
|
4
|
-
import { c as Y } from "./channel-
|
|
1
|
+
import { G as R } from "./graph-CqTVh0y2.mjs";
|
|
2
|
+
import { S as z, v as F, x as U, y as j, z as H, A as K, l as g, g as S, d as C, B as W, o as X, p as N, q as E, n as L, t as G, k as q, r as J } from "./vue2-Dp2pIAD8.mjs";
|
|
3
|
+
import { r as Q } from "./index-3862675e-CBZFDFaT.mjs";
|
|
4
|
+
import { c as Y } from "./channel-BTGSeZkN.mjs";
|
|
5
5
|
function Z(e) {
|
|
6
6
|
return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([U(e)], F);
|
|
7
7
|
}
|
package/dist/vue2/{svgDrawCommon-08f97a94-Dl3rEnvk.mjs → svgDrawCommon-08f97a94-ZUY6lyW4.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as o, j as i } from "./vue2-
|
|
1
|
+
import { am as o, j as i } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
const l = (s, t) => {
|
|
3
3
|
const e = s.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aq as gt, ar as ft, as as mt, g as xt, l as E, d as G, o as _t, at as bt, E as kt } from "./vue2-
|
|
1
|
+
import { aq as gt, ar as ft, as as mt, g as xt, l as E, d as G, o as _t, at as bt, E as kt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
2
|
import "dayjs";
|
|
3
|
-
import { a as D } from "./arc-
|
|
3
|
+
import { a as D } from "./arc-Drr1lna9.mjs";
|
|
4
4
|
var K = function() {
|
|
5
5
|
var n = function(f, i, r, c) {
|
|
6
6
|
for (r = r || {}, c = f.length; c--; r[f[c]] = i)
|
|
@@ -29442,7 +29442,9 @@ function uoe() {
|
|
|
29442
29442
|
isEdit: t.value.isEdit
|
|
29443
29443
|
});
|
|
29444
29444
|
}
|
|
29445
|
-
return
|
|
29445
|
+
return w.forEach((x) => {
|
|
29446
|
+
r.value[x.sessionCode] || (r.value[x.sessionCode] = 0), r.value[x.sessionCode]++;
|
|
29447
|
+
}), e.value;
|
|
29446
29448
|
},
|
|
29447
29449
|
sessionUpdateCounter: r
|
|
29448
29450
|
};
|
|
@@ -36898,7 +36900,7 @@ const Uh = (e, t) => {
|
|
|
36898
36900
|
}, MS = (e) => {
|
|
36899
36901
|
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Vpe("LAZY_LOAD_DEPRECATED");
|
|
36900
36902
|
}, IS = "c4", Hpe = (e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), Wpe = async () => {
|
|
36901
|
-
const { diagram: e } = await import("./c4Diagram-3d4e48cf-
|
|
36903
|
+
const { diagram: e } = await import("./c4Diagram-3d4e48cf-D1St4KBG.mjs");
|
|
36902
36904
|
return { id: IS, diagram: e };
|
|
36903
36905
|
}, Gpe = {
|
|
36904
36906
|
id: IS,
|
|
@@ -36908,7 +36910,7 @@ const Uh = (e, t) => {
|
|
|
36908
36910
|
var n, r;
|
|
36909
36911
|
return ((n = t == null ? void 0 : t.flowchart) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" || ((r = t == null ? void 0 : t.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(e);
|
|
36910
36912
|
}, Zpe = async () => {
|
|
36911
|
-
const { diagram: e } = await import("./flowDiagram-66a62f08-
|
|
36913
|
+
const { diagram: e } = await import("./flowDiagram-66a62f08-BCSGtMBp.mjs");
|
|
36912
36914
|
return { id: _S, diagram: e };
|
|
36913
36915
|
}, Xpe = {
|
|
36914
36916
|
id: _S,
|
|
@@ -36918,70 +36920,70 @@ const Uh = (e, t) => {
|
|
|
36918
36920
|
var n, r, i;
|
|
36919
36921
|
return ((n = t == null ? void 0 : t.flowchart) == null ? void 0 : n.defaultRenderer) === "dagre-d3" || ((r = t == null ? void 0 : t.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(e) && ((i = t == null ? void 0 : t.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e);
|
|
36920
36922
|
}, eme = async () => {
|
|
36921
|
-
const { diagram: e } = await import("./flowDiagram-v2-96b9c2cf-
|
|
36923
|
+
const { diagram: e } = await import("./flowDiagram-v2-96b9c2cf-D0VnA-oM.mjs");
|
|
36922
36924
|
return { id: SS, diagram: e };
|
|
36923
36925
|
}, tme = {
|
|
36924
36926
|
id: SS,
|
|
36925
36927
|
detector: qpe,
|
|
36926
36928
|
loader: eme
|
|
36927
36929
|
}, nme = tme, LS = "er", rme = (e) => /^\s*erDiagram/.test(e), ime = async () => {
|
|
36928
|
-
const { diagram: e } = await import("./erDiagram-9861fffd
|
|
36930
|
+
const { diagram: e } = await import("./erDiagram-9861fffd--l5rdh7F.mjs");
|
|
36929
36931
|
return { id: LS, diagram: e };
|
|
36930
36932
|
}, ome = {
|
|
36931
36933
|
id: LS,
|
|
36932
36934
|
detector: rme,
|
|
36933
36935
|
loader: ime
|
|
36934
36936
|
}, ame = ome, kS = "gitGraph", sme = (e) => /^\s*gitGraph/.test(e), lme = async () => {
|
|
36935
|
-
const { diagram: e } = await import("./gitGraphDiagram-72cf32ee-
|
|
36937
|
+
const { diagram: e } = await import("./gitGraphDiagram-72cf32ee-Q3MoJoM_.mjs");
|
|
36936
36938
|
return { id: kS, diagram: e };
|
|
36937
36939
|
}, cme = {
|
|
36938
36940
|
id: kS,
|
|
36939
36941
|
detector: sme,
|
|
36940
36942
|
loader: lme
|
|
36941
36943
|
}, ume = cme, jS = "gantt", dme = (e) => /^\s*gantt/.test(e), fme = async () => {
|
|
36942
|
-
const { diagram: e } = await import("./ganttDiagram-c361ad54-
|
|
36944
|
+
const { diagram: e } = await import("./ganttDiagram-c361ad54-CIn9qcKu.mjs");
|
|
36943
36945
|
return { id: jS, diagram: e };
|
|
36944
36946
|
}, hme = {
|
|
36945
36947
|
id: jS,
|
|
36946
36948
|
detector: dme,
|
|
36947
36949
|
loader: fme
|
|
36948
36950
|
}, pme = hme, OS = "info", mme = (e) => /^\s*info/.test(e), gme = async () => {
|
|
36949
|
-
const { diagram: e } = await import("./infoDiagram-f8f76790-
|
|
36951
|
+
const { diagram: e } = await import("./infoDiagram-f8f76790-CJTohBF4.mjs");
|
|
36950
36952
|
return { id: OS, diagram: e };
|
|
36951
36953
|
}, vme = {
|
|
36952
36954
|
id: OS,
|
|
36953
36955
|
detector: mme,
|
|
36954
36956
|
loader: gme
|
|
36955
36957
|
}, NS = "pie", yme = (e) => /^\s*pie/.test(e), bme = async () => {
|
|
36956
|
-
const { diagram: e } = await import("./pieDiagram-8a3498a8-
|
|
36958
|
+
const { diagram: e } = await import("./pieDiagram-8a3498a8-BVohjor2.mjs");
|
|
36957
36959
|
return { id: NS, diagram: e };
|
|
36958
36960
|
}, Cme = {
|
|
36959
36961
|
id: NS,
|
|
36960
36962
|
detector: yme,
|
|
36961
36963
|
loader: bme
|
|
36962
36964
|
}, PS = "quadrantChart", wme = (e) => /^\s*quadrantChart/.test(e), xme = async () => {
|
|
36963
|
-
const { diagram: e } = await import("./quadrantDiagram-120e2f19-
|
|
36965
|
+
const { diagram: e } = await import("./quadrantDiagram-120e2f19-C_8zgnv2.mjs");
|
|
36964
36966
|
return { id: PS, diagram: e };
|
|
36965
36967
|
}, Tme = {
|
|
36966
36968
|
id: PS,
|
|
36967
36969
|
detector: wme,
|
|
36968
36970
|
loader: xme
|
|
36969
36971
|
}, Mme = Tme, AS = "xychart", Ime = (e) => /^\s*xychart-beta/.test(e), _me = async () => {
|
|
36970
|
-
const { diagram: e } = await import("./xychartDiagram-e933f94c-
|
|
36972
|
+
const { diagram: e } = await import("./xychartDiagram-e933f94c-CQxvdVkD.mjs");
|
|
36971
36973
|
return { id: AS, diagram: e };
|
|
36972
36974
|
}, Sme = {
|
|
36973
36975
|
id: AS,
|
|
36974
36976
|
detector: Ime,
|
|
36975
36977
|
loader: _me
|
|
36976
36978
|
}, Lme = Sme, ES = "requirement", kme = (e) => /^\s*requirement(Diagram)?/.test(e), jme = async () => {
|
|
36977
|
-
const { diagram: e } = await import("./requirementDiagram-deff3bca-
|
|
36979
|
+
const { diagram: e } = await import("./requirementDiagram-deff3bca-CSHCqIRB.mjs");
|
|
36978
36980
|
return { id: ES, diagram: e };
|
|
36979
36981
|
}, Ome = {
|
|
36980
36982
|
id: ES,
|
|
36981
36983
|
detector: kme,
|
|
36982
36984
|
loader: jme
|
|
36983
36985
|
}, Nme = Ome, DS = "sequence", Pme = (e) => /^\s*sequenceDiagram/.test(e), Ame = async () => {
|
|
36984
|
-
const { diagram: e } = await import("./sequenceDiagram-704730f1-
|
|
36986
|
+
const { diagram: e } = await import("./sequenceDiagram-704730f1-CKTIQpn4.mjs");
|
|
36985
36987
|
return { id: DS, diagram: e };
|
|
36986
36988
|
}, Eme = {
|
|
36987
36989
|
id: DS,
|
|
@@ -36991,7 +36993,7 @@ const Uh = (e, t) => {
|
|
|
36991
36993
|
var n;
|
|
36992
36994
|
return ((n = t == null ? void 0 : t.class) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e);
|
|
36993
36995
|
}, Bme = async () => {
|
|
36994
|
-
const { diagram: e } = await import("./classDiagram-70f12bd4-
|
|
36996
|
+
const { diagram: e } = await import("./classDiagram-70f12bd4-zJlK-CVS.mjs");
|
|
36995
36997
|
return { id: zS, diagram: e };
|
|
36996
36998
|
}, Rme = {
|
|
36997
36999
|
id: zS,
|
|
@@ -37001,7 +37003,7 @@ const Uh = (e, t) => {
|
|
|
37001
37003
|
var n;
|
|
37002
37004
|
return /^\s*classDiagram/.test(e) && ((n = t == null ? void 0 : t.class) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e);
|
|
37003
37005
|
}, Jme = async () => {
|
|
37004
|
-
const { diagram: e } = await import("./classDiagram-v2-f2320105-
|
|
37006
|
+
const { diagram: e } = await import("./classDiagram-v2-f2320105-Bn1PI3qD.mjs");
|
|
37005
37007
|
return { id: BS, diagram: e };
|
|
37006
37008
|
}, Qme = {
|
|
37007
37009
|
id: BS,
|
|
@@ -37011,7 +37013,7 @@ const Uh = (e, t) => {
|
|
|
37011
37013
|
var n;
|
|
37012
37014
|
return ((n = t == null ? void 0 : t.state) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e);
|
|
37013
37015
|
}, Wme = async () => {
|
|
37014
|
-
const { diagram: e } = await import("./stateDiagram-587899a1-
|
|
37016
|
+
const { diagram: e } = await import("./stateDiagram-587899a1-CtylTld_.mjs");
|
|
37015
37017
|
return { id: RS, diagram: e };
|
|
37016
37018
|
}, Gme = {
|
|
37017
37019
|
id: RS,
|
|
@@ -37021,14 +37023,14 @@ const Uh = (e, t) => {
|
|
|
37021
37023
|
var n;
|
|
37022
37024
|
return !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && ((n = t == null ? void 0 : t.state) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper");
|
|
37023
37025
|
}, Zme = async () => {
|
|
37024
|
-
const { diagram: e } = await import("./stateDiagram-v2-d93cdb3a-
|
|
37026
|
+
const { diagram: e } = await import("./stateDiagram-v2-d93cdb3a-Cn1TZ26i.mjs");
|
|
37025
37027
|
return { id: FS, diagram: e };
|
|
37026
37028
|
}, Xme = {
|
|
37027
37029
|
id: FS,
|
|
37028
37030
|
detector: Yme,
|
|
37029
37031
|
loader: Zme
|
|
37030
37032
|
}, Kme = Xme, $S = "journey", qme = (e) => /^\s*journey/.test(e), e0e = async () => {
|
|
37031
|
-
const { diagram: e } = await import("./journeyDiagram-49397b02-
|
|
37033
|
+
const { diagram: e } = await import("./journeyDiagram-49397b02-DTZNUioo.mjs");
|
|
37032
37034
|
return { id: $S, diagram: e };
|
|
37033
37035
|
}, t0e = {
|
|
37034
37036
|
id: $S,
|
|
@@ -37197,35 +37199,35 @@ const T0e = (e) => {
|
|
|
37197
37199
|
/^\s*flowchart|graph/.test(e) && ((n = t == null ? void 0 : t.flowchart) == null ? void 0 : n.defaultRenderer) === "elk")
|
|
37198
37200
|
);
|
|
37199
37201
|
}, k0e = async () => {
|
|
37200
|
-
const { diagram: e } = await import("./flowchart-elk-definition-4a651766-
|
|
37202
|
+
const { diagram: e } = await import("./flowchart-elk-definition-4a651766-B-EPmTHz.mjs");
|
|
37201
37203
|
return { id: VS, diagram: e };
|
|
37202
37204
|
}, j0e = {
|
|
37203
37205
|
id: VS,
|
|
37204
37206
|
detector: L0e,
|
|
37205
37207
|
loader: k0e
|
|
37206
37208
|
}, O0e = j0e, HS = "timeline", N0e = (e) => /^\s*timeline/.test(e), P0e = async () => {
|
|
37207
|
-
const { diagram: e } = await import("./timeline-definition-85554ec2-
|
|
37209
|
+
const { diagram: e } = await import("./timeline-definition-85554ec2-CZLJmwCU.mjs");
|
|
37208
37210
|
return { id: HS, diagram: e };
|
|
37209
37211
|
}, A0e = {
|
|
37210
37212
|
id: HS,
|
|
37211
37213
|
detector: N0e,
|
|
37212
37214
|
loader: P0e
|
|
37213
37215
|
}, E0e = A0e, WS = "mindmap", D0e = (e) => /^\s*mindmap/.test(e), z0e = async () => {
|
|
37214
|
-
const { diagram: e } = await import("./mindmap-definition-fc14e90a-
|
|
37216
|
+
const { diagram: e } = await import("./mindmap-definition-fc14e90a-Cxl3J4Pu.mjs");
|
|
37215
37217
|
return { id: WS, diagram: e };
|
|
37216
37218
|
}, B0e = {
|
|
37217
37219
|
id: WS,
|
|
37218
37220
|
detector: D0e,
|
|
37219
37221
|
loader: z0e
|
|
37220
37222
|
}, R0e = B0e, GS = "sankey", F0e = (e) => /^\s*sankey-beta/.test(e), $0e = async () => {
|
|
37221
|
-
const { diagram: e } = await import("./sankeyDiagram-04a897e0-
|
|
37223
|
+
const { diagram: e } = await import("./sankeyDiagram-04a897e0-DEzIC42H.mjs");
|
|
37222
37224
|
return { id: GS, diagram: e };
|
|
37223
37225
|
}, J0e = {
|
|
37224
37226
|
id: GS,
|
|
37225
37227
|
detector: F0e,
|
|
37226
37228
|
loader: $0e
|
|
37227
37229
|
}, Q0e = J0e, US = "block", V0e = (e) => /^\s*block-beta/.test(e), H0e = async () => {
|
|
37228
|
-
const { diagram: e } = await import("./blockDiagram-38ab4fdb-
|
|
37230
|
+
const { diagram: e } = await import("./blockDiagram-38ab4fdb-8VEckXli.mjs");
|
|
37229
37231
|
return { id: US, diagram: e };
|
|
37230
37232
|
}, W0e = {
|
|
37231
37233
|
id: US,
|
package/dist/{vue3/xychartDiagram-e933f94c-BR8JWdpv.mjs → vue2/xychartDiagram-e933f94c-CQxvdVkD.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as zt, a as Ft, C as wt, D as Nt, b as Xt, c as Yt, l as St, P as Ht, e as $t, E as Ut, X as ot, T as Ct, V as qt, W as jt, i as Gt } from "./
|
|
2
|
-
import { c as Qt } from "./createText-2e5e7dd3-
|
|
1
|
+
import { s as zt, a as Ft, C as wt, D as Nt, b as Xt, c as Yt, l as St, P as Ht, e as $t, E as Ut, X as ot, T as Ct, V as qt, W as jt, i as Gt } from "./vue2-Dp2pIAD8.mjs";
|
|
2
|
+
import { c as Qt } from "./createText-2e5e7dd3-DqsPaEjK.mjs";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
import { i as Kt } from "./init-DjUOC4st.mjs";
|
|
5
5
|
import { o as Zt } from "./ordinal-C0oynhte.mjs";
|
|
6
|
-
import { l as ft } from "./linear-
|
|
7
|
-
import { l as pt } from "./line-
|
|
6
|
+
import { l as ft } from "./linear-D7Djgzby.mjs";
|
|
7
|
+
import { l as pt } from "./line-0wnAzFqe.mjs";
|
|
8
8
|
function Jt(e, t, i) {
|
|
9
9
|
e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
|
|
10
10
|
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as ln, c as Q } from "./path-DLwuMfdd.mjs";
|
|
2
|
-
import { as as an, at as G, au as D, av as rn, aw as y, Q as tn, ax as K, ay as _, az as un, aA as o, aB as sn, aC as on, aD as fn } from "./vue3-
|
|
2
|
+
import { as as an, at as G, au as D, av as rn, aw as y, Q as tn, ax as K, ay as _, az as un, aA as o, aB as sn, aC as on, aD as fn } from "./vue3-Tv8faLO-.mjs";
|
|
3
3
|
function cn(l) {
|
|
4
4
|
return l.innerRadius;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { X as se, A as ye, d as H, e as Ee, l as S, E as we, k as De, g as he, p as ve } from "./vue3-
|
|
2
|
-
import { c as Ne } from "./clone-
|
|
3
|
-
import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-e0da2a9e-
|
|
4
|
-
import { G as Ce } from "./graph-
|
|
1
|
+
import { X as se, A as ye, d as H, e as Ee, l as S, E as we, k as De, g as he, p as ve } from "./vue3-Tv8faLO-.mjs";
|
|
2
|
+
import { c as Ne } from "./clone-N_An9_4B.mjs";
|
|
3
|
+
import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-e0da2a9e-jF50JG4A.mjs";
|
|
4
|
+
import { G as Ce } from "./graph-BfejK7j1.mjs";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import { c as Ae } from "./channel-
|
|
6
|
+
import { c as Ae } from "./channel-Cg1WNRjP.mjs";
|
|
7
7
|
import { o as Re } from "./ordinal-C0oynhte.mjs";
|
|
8
8
|
import { s as Be } from "./Tableau10-D7jGxypv.mjs";
|
|
9
9
|
var le, oe, ee = function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Dt, s as we, a as Oe, b as Te, c as Re, d as Nt, l as le, e as De, f as Se, h as wt, i as ue, j as Pe, w as Me, k as Kt, m as oe } from "./
|
|
2
|
-
import { d as Le, g as Ne } from "./svgDrawCommon-08f97a94-
|
|
1
|
+
import { g as Dt, s as we, a as Oe, b as Te, c as Re, d as Nt, l as le, e as De, f as Se, h as wt, i as ue, j as Pe, w as Me, k as Kt, m as oe } from "./vue3-Tv8faLO-.mjs";
|
|
2
|
+
import { d as Le, g as Ne } from "./svgDrawCommon-08f97a94-Dfa51b1C.mjs";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
var Yt = function() {
|
|
5
5
|
var e = function(bt, _, x, m) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as G, d as S, p as A } from "./styles-9a916d00-
|
|
2
|
-
import { g as v, l as y, d as B, e as W, F as $, B as M, G as I } from "./vue3-
|
|
3
|
-
import { G as O } from "./graph-
|
|
4
|
-
import { l as P } from "./layout-
|
|
1
|
+
import { s as G, d as S, p as A } from "./styles-9a916d00-2gb7abH5.mjs";
|
|
2
|
+
import { g as v, l as y, d as B, e as W, F as $, B as M, G as I } from "./vue3-Tv8faLO-.mjs";
|
|
3
|
+
import { G as O } from "./graph-BfejK7j1.mjs";
|
|
4
|
+
import { l as P } from "./layout-Dy1NuV40.mjs";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import { l as X } from "./line-
|
|
6
|
+
import { l as X } from "./line-DiEybcOh.mjs";
|
|
7
7
|
let H = 0;
|
|
8
8
|
const Y = function(i, a, t, o, p) {
|
|
9
9
|
const g = function(e) {
|
package/dist/vue3/{classDiagram-v2-f2320105-SdFoPeNM.mjs → classDiagram-v2-f2320105-CI2ryo6X.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as M, d as _, p as B } from "./styles-9a916d00-
|
|
2
|
-
import { l as d, g as c, d as w, B as R, o as G, k as D, p as E, q as C, n as A } from "./vue3-
|
|
3
|
-
import { G as q } from "./graph-
|
|
4
|
-
import { r as z } from "./index-3862675e-
|
|
1
|
+
import { s as M, d as _, p as B } from "./styles-9a916d00-2gb7abH5.mjs";
|
|
2
|
+
import { l as d, g as c, d as w, B as R, o as G, k as D, p as E, q as C, n as A } from "./vue3-Tv8faLO-.mjs";
|
|
3
|
+
import { G as q } from "./graph-BfejK7j1.mjs";
|
|
4
|
+
import { r as z } from "./index-3862675e-pGQYev1i.mjs";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import "./layout-
|
|
6
|
+
import "./layout-Dy1NuV40.mjs";
|
|
7
7
|
const S = (s) => D.sanitizeText(s, c());
|
|
8
8
|
let k = {
|
|
9
9
|
dividerMargin: 10,
|