@deep-eye/core 1.2.69 → 1.2.70
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/CHANGELOG.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
### Breaking
|
|
8
8
|
|
|
9
|
-
- `ChatSendPayload.modelInput` 文本 part 由 `{ type: "text", text }` 改为 GA Responses 形态 `{ type: "input_text",
|
|
9
|
+
- `ChatSendPayload.modelInput` 文本 part 由 `{ type: "text", text }` 改为 GA Responses 形态 `{ type: "input_text", text }`。宿主把 `payload.modelInput` 原样放进 `input` 即可。
|
|
10
10
|
|
|
11
11
|
### Fixed
|
|
12
12
|
|
|
13
|
-
- `hydrateHistory` / `normalizeAgentHistoryMessages`:GA user 消息的 `{ type: "input_text",
|
|
13
|
+
- `hydrateHistory` / `normalizeAgentHistoryMessages`:GA user 消息的 `{ type: "input_text", text }`(以及旧的 `content` 字段 / `{ type: "text" }`)压成可渲染文本;数组 `input` 的多条 user 消息仍各占一条。step 上的 `usage` 继续忽略。
|
|
14
14
|
|
|
15
15
|
## [1.2.67] - 2026-08-17
|
|
16
16
|
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ const messages = ref<ConversationMessage[]>([
|
|
|
39
39
|
|
|
40
40
|
async function handleSend(payload: ChatSendPayload) {
|
|
41
41
|
// payload.message 已写入 v-model:messages,适合业务持久化。
|
|
42
|
-
// payload.modelInput 文本 part:{ type: 'input_text',
|
|
42
|
+
// payload.modelInput 文本 part:{ type: 'input_text', text }
|
|
43
43
|
const response = await fetch('/api/responses', {
|
|
44
44
|
method: 'POST',
|
|
45
45
|
headers: { 'content-type': 'application/json' },
|
|
@@ -32,7 +32,7 @@ export declare function normalizeHistoryResourceFile(raw: unknown): ChatResource
|
|
|
32
32
|
* - Drops `system` roles (not part of restored agent transcripts).
|
|
33
33
|
* - Assistant: builds flat `content` / `reasoning_content` / `tool_calls` from `steps`,
|
|
34
34
|
* and attaches `steps` when `shouldEmitAssistantSteps` says so. Step `usage` is ignored.
|
|
35
|
-
* - User: string `content` kept; Responses `{ type: "input_text",
|
|
35
|
+
* - User: string `content` kept; Responses `{ type: "input_text", text }` flattened to text;
|
|
36
36
|
* `resource_files` mapped when present (GA currently does not persist them).
|
|
37
37
|
*/
|
|
38
38
|
export declare function normalizeAgentHistoryMessages(messages: unknown[] | readonly ConversationMessage[]): ConversationMessage[];
|
|
@@ -142,7 +142,7 @@ export interface ConversationTextPart {
|
|
|
142
142
|
/** GA / Responses user input text part for `ChatSendPayload.modelInput`. */
|
|
143
143
|
export interface ChatModelInputTextPart {
|
|
144
144
|
type: 'input_text';
|
|
145
|
-
|
|
145
|
+
text: string;
|
|
146
146
|
}
|
|
147
147
|
export interface ConversationImagePart {
|
|
148
148
|
type: 'image_url';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/chat/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAA;AACvE,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AACvD,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,WAAW,GACX,WAAW,GACX,YAAY,GACZ,SAAS,GACT,OAAO,CAAA;AACX,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,mBAAmB,GACnB,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,WAAW,GACX,iBAAiB,CAAA;AAErB,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,cAAc,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;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ACzC,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,WAAW,EAAE,cAAc,GAAG,IAAI,CAAA;CAC3D;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxF,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,6FAA6F;IAC7F,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,KAAK,IAAI,CAAA;IAC1C,yEAAyE;IACzE,WAAW,EAAE,CAAC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,KAAK,IAAI,CAAA;IAC/D;;;OAGG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,kBAAkB,EAAE,mBAAmB,KAAK,IAAI,CAAA;CAChF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var QM=Object.defineProperty;var pM=(e,A,t)=>A in e?QM(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t;var ge=(e,A,t)=>pM(e,typeof A!="symbol"?A+"":A,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),EM=require("d3"),mM=require("gsap"),lI=require("@vueuse/core");var RB=typeof document<"u"?document.currentScript:null;function vM(e){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(A,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return A.default=e,Object.freeze(A)}const he=vM(EM),Al={name:"default",nodeStyle:{colors:["rgb(195, 202, 255)","rgb(186, 211, 238)","rgb(162, 220, 208)","rgb(157, 236, 187)","rgb(205, 254, 165)"],textColor:"rgb(0, 0, 0)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:8,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(195, 202, 255)":t===2?"rgb(186, 211, 238)":t===3?"rgb(162, 220, 208)":t===4?"rgb(157, 236, 187)":"rgb(195, 202, 255)"},width:2.5,style:"solid",curve:"bezier"},background:"#f8f9fa",grid:{show:!0,color:"#e0e0e0",size:20}},Z8={name:"dark",nodeStyle:{colors:["rgb(88, 86, 214)","rgb(52, 168, 83)","rgb(251, 188, 4)","rgb(234, 67, 53)","rgb(66, 133, 244)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:8,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(88, 86, 214)":t===2?"rgb(52, 168, 83)":t===3?"rgb(251, 188, 4)":t===4?"rgb(234, 67, 53)":"rgb(66, 133, 244)"},width:2.5,style:"solid",curve:"bezier"},background:"#2b2d30",grid:{show:!0,color:"#3c3f41",size:20}},q8={name:"colorful",nodeStyle:{colors:["rgb(255, 107, 107)","rgb(255, 184, 77)","rgb(72, 219, 251)","rgb(129, 236, 236)","rgb(255, 159, 243)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:10,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(255, 107, 107)":t===2?"rgb(255, 184, 77)":t===3?"rgb(72, 219, 251)":t===4?"rgb(129, 236, 236)":"rgb(255, 159, 243)"},width:2.5,style:"solid",curve:"bezier"},background:"#fafafa",grid:{show:!0,color:"#eeeeee",size:20}},P8={name:"minimal",nodeStyle:{colors:["rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)"],textColor:"rgb(51, 51, 51)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:400,borderRadius:6,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:2,borderColor:"rgb(189, 189, 189)",borderStyle:"solid"},linkStyle:{color:"rgb(189, 189, 189)",width:2,style:"solid",curve:"bezier"},background:"#ffffff",grid:{show:!1}},K8={name:"professional",nodeStyle:{colors:["rgb(79, 129, 189)","rgb(155, 187, 89)","rgb(192, 80, 77)","rgb(128, 100, 162)","rgb(75, 172, 198)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:6,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(79, 129, 189)":t===2?"rgb(155, 187, 89)":t===3?"rgb(192, 80, 77)":t===4?"rgb(128, 100, 162)":"rgb(75, 172, 198)"},width:2.5,style:"solid",curve:"bezier"},background:"#f5f5f5",grid:{show:!0,color:"#e0e0e0",size:20}},z8={default:Al,dark:Z8,colorful:q8,minimal:P8,professional:K8};function yM(e){return z8[e]||Al}function W8(e,A){return{...e,...A,nodeStyle:{...e.nodeStyle,...A.nodeStyle},linkStyle:{...e.linkStyle,...A.linkStyle},layoutConfig:{...e.layoutConfig,...A.layoutConfig},grid:{...e.grid,...A.grid}}}function X8(e,A,t){const r=u.computed(()=>{let I;return typeof e=="function"?I=e()||Al:I=u.unref(e)||Al,(A||t)&&(I=W8(I,{nodeStyle:A,linkStyle:t})),I}),i=(I,d)=>{var Q;const f=r.value.nodeStyle;if(f!=null&&f.backgroundColor)return typeof f.backgroundColor=="function"?f.backgroundColor(I,d):f.backgroundColor;if(f!=null&&f.colors)return typeof f.colors=="function"?f.colors(I,d):Array.isArray(f.colors)?f.colors[Math.min(d,f.colors.length-1)]:String(f.colors);const B=(Q=Al.nodeStyle)==null?void 0:Q.colors;return Array.isArray(B)&&B[Math.min(d,4)]||"rgb(195, 202, 255)"},n=(I,d)=>{var Q;const f=r.value.nodeStyle;if(f!=null&&f.textColor)return typeof f.textColor=="function"?f.textColor(I,d):f.textColor;const B=(Q=Al.nodeStyle)==null?void 0:Q.textColor;return typeof B=="string"?B:"rgb(0, 0, 0)"},a=(I,d)=>{const f=r.value.nodeStyle;if(f!=null&&f.borderColor)return typeof f.borderColor=="function"?f.borderColor(I,d):f.borderColor};return{finalTheme:r,getNodeColor:i,getNodeTextColor:n,getNodeBorderColor:a,getLinkColor:(I,d)=>{const f=r.value.linkStyle;if(f!=null&&f.color)return typeof f.color=="function"?f.color(I,d):f.color;const B=d;return B===1?"rgb(195, 202, 255)":B===2?"rgb(186, 211, 238)":B===3?"rgb(162, 220, 208)":B===4?"rgb(157, 236, 187)":"rgb(195, 202, 255)"},getNodeStyle:(I,d)=>{const f=r.value.nodeStyle||{};return{backgroundColor:i(I,d),color:n(I,d),fontSize:f.fontSize?typeof f.fontSize=="number"?`${f.fontSize}px`:f.fontSize:"20px",fontFamily:f.fontFamily||'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:f.fontWeight||500,borderRadius:f.borderRadius!==void 0?`${f.borderRadius}px`:"8px",borderWidth:f.borderWidth!==void 0?`${f.borderWidth}px`:"0",borderColor:a(I,d),borderStyle:f.borderStyle||"none"}},getNodePadding:()=>{const I=r.value.nodeStyle,d=I==null?void 0:I.padding;return Array.isArray(d)?d:typeof d=="number"?[d,d]:[18,27.5]},getNodeMinSize:()=>{const I=r.value.nodeStyle;return{minWidth:(I==null?void 0:I.minWidth)||100,minHeight:(I==null?void 0:I.minHeight)||55}},getLinkWidth:()=>{var I;return((I=r.value.linkStyle)==null?void 0:I.width)||2.5},getLinkStyle:()=>{var I;return((I=r.value.linkStyle)==null?void 0:I.style)||"solid"},getBackgroundStyle:()=>{const I=r.value.background||"#f8f9fa",d=r.value.grid;if((d==null?void 0:d.show)===!1)return{backgroundColor:I};const f=(d==null?void 0:d.color)||"#e0e0e0",B=(d==null?void 0:d.size)||20;return{backgroundColor:I,backgroundImage:`radial-gradient(circle, ${f} 1px, transparent 1px)`,backgroundSize:`${B}px ${B}px`}}}}function gI(e,A){const r=document.createElement("canvas").getContext("2d");return r?(r.font=A,r.measureText(e).width):100}function CE(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(A=>CE(A));if(e instanceof Object){const A=e,t={};for(const r of Object.keys(A))t[r]=CE(A[r]);return t}return e}function wM(e,A){let t=null;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{Reflect.apply(e,this,r),t=null},A)}}function DM(e,A){let t=null,r=0;return function(...i){const n=Date.now();r||(r=n);const a=A-(n-r);a<=0||a>A?(t&&(clearTimeout(t),t=null),r=n,Reflect.apply(e,this,i)):t||(t=setTimeout(()=>{r=Date.now(),t=null,Reflect.apply(e,this,i)},a))}}function j8(e,A){return new Promise((t,r)=>{try{let n=new XMLSerializer().serializeToString(e);A&&(n=n.replace("<svg",`<svg style="background-color: ${A}"`));const a=new Blob([n],{type:"image/svg+xml;charset=utf-8"});t(a)}catch(i){r(i)}})}function $8(e,A={}){return new Promise((t,r)=>{try{const{scale:i=2,backgroundColor:n="#ffffff",quality:a=1}=A;let s=new XMLSerializer().serializeToString(e);n&&(s=s.replace("<svg",`<svg style="background-color: ${n}"`));const l=document.createElement("canvas"),g=l.getContext("2d");if(!g){r(new Error("Failed to get canvas context"));return}const c=new Image,C=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),h=URL.createObjectURL(C);c.onload=()=>{l.width=c.width*i,l.height=c.height*i,g.scale(i,i),g.drawImage(c,0,0),URL.revokeObjectURL(h),l.toBlob(I=>{I?t(I):r(new Error("Failed to convert canvas to blob"))},"image/png",a)},c.onerror=()=>{URL.revokeObjectURL(h),r(new Error("Failed to load SVG image"))},c.src=h}catch(i){r(i)}})}function kM(e,A){const t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=A,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}function bM(e){return e.includes("gradient")}function SM(e){const A=e.match(/#[0-9a-fA-F]{6}|rgb\([^)]+\)/);return A?A[0]:"#000000"}function NM(e,A,t){e&&(t.clear(),e.each(r=>{var a;const i=(a=r.data)==null?void 0:a.id;if(!i)return;const n=A.get(i);n?(r.x0=n.x,r.y0=n.y):r.parent&&t.add(i)}))}function xM(e,A){e&&e.each(t=>{var i;const r=(i=t.data)==null?void 0:i.id;!r||t.x===void 0||t.y===void 0||A.set(r,{x:t.x,y:t.y})})}function uy(e){const A=t=>{t&&(t._prevX=t.x,t._prevY=t.y,t.children&&t.children.forEach(A))};A(e)}const _M=50;function hy(e){if(!(e!=null&&e.nodeData))return"";const A=t=>{const r={};return Object.keys(t||{}).forEach(i=>{if(!(i==="expanded"||i==="_nodeWidth"||i==="_original")){if(i==="children"){Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map(A));return}r[i]=t[i]}}),r};return JSON.stringify({nodeData:A(e.nodeData)})}function FM(e){const{getData:A,applyHistorySnapshot:t,onHistoryChange:r,onModified:i}=e;let n="";const a=u.ref(!1),o=u.shallowRef(null),{commit:s,undo:l,redo:g,clear:c,canUndo:C,canRedo:h}=lI.useManualRefHistory(o,{capacity:_M,clone:!0,setSource:(k,b)=>{k.value=b,b&&t(b)}}),I=()=>{const k={canUndo:C.value,canRedo:h.value,isModified:a.value};r(k)};return{historySource:o,isModifiedState:a,canUndoRef:C,canRedoRef:h,commitHistory:s,clearHistoryStack:c,resetHistoryBaseline:()=>{const k=A();o.value=k?lI.cloneFnJSON(k):null,s(),c()},markClean:()=>{n=hy(A()),a.value=!1,i(!1),I()},recordHistoryAfterChange:()=>{const k=A();k&&(o.value=lI.cloneFnJSON(k),s(),I())},syncModifiedFlag:()=>{const k=hy(A()),b=!!n&&k!==n;b!==a.value&&(a.value=b,i(b)),I()},emitHistoryState:I,canUndo:()=>C.value,canRedo:()=>h.value,isModified:()=>a.value,undo:()=>C.value?(l(),!0):!1,redo:()=>h.value?(g(),!0):!1}}const VI=()=>Math.random().toString(36).substring(2,15);function AS(e){var r;const A=e;if((r=A==null?void 0:A.nodeData)!=null&&r.topic)return A.nodeData;const t=(i,n=!1)=>{var o;if(!i)return{topic:"思维导图",id:VI(),expanded:!0};const a={topic:((o=i.data)==null?void 0:o.text)||"未命名",id:VI(),expanded:!0};return n&&(a.root=!0),i.children&&i.children.length>0&&(a.children=i.children.map(s=>t(s,!1))),a};return t(e,!0)}function ZI(e,A){var n,a;const{expandable:t,depth:r=0,maxExpandedDepth:i=1}=A;if(!t){e.expanded=!0,(n=e.children)==null||n.forEach(o=>ZI(o,{expandable:t,depth:r+1,maxExpandedDepth:i}));return}e.expanded=r<=i,(a=e.children)==null||a.forEach(o=>ZI(o,{expandable:t,depth:r+1,maxExpandedDepth:i}))}function xv(e){var A;e.expanded=!0,(A=e.children)==null||A.forEach(xv)}function eS(e,A){var t;e.id&&A.set(e.id,e.expanded!==!1),(t=e.children)==null||t.forEach(r=>eS(r,A))}function tS(e,A){var t;e.id&&A.has(e.id)&&(e.expanded=A.get(e.id)),(t=e.children)==null||t.forEach(r=>tS(r,A))}function pg(e){const A=he.hierarchy(e,t=>t.children);return A.each(t=>{t.data&&(t.data._original=t.data)}),A}function Cy(e={}){return{...e,id:e.id||VI(),topic:e.topic??"新节点",expanded:e.expanded??!0}}function Eg(e){var t;const A={id:e.id||VI(),topic:e.topic||"未命名",expanded:e.expanded!==!1};return e.root&&(A.root=!0),(t=e.children)!=null&&t.length&&(A.children=e.children.map(r=>Eg(r))),A}function Xu(e,A,t=null){if(e.id===A)return{node:e,parent:t,index:-1};const r=e.children;if(!r)return null;for(let i=0;i<r.length;i++){const n=r[i];if(n.id===A)return{node:n,parent:e,index:i};const a=Xu(n,A,e);if(a)return a}return null}function RM(e,A,t){if(A===t)return!0;const r=Xu(e,A);if(!r)return!1;const i=n=>{var a;return n.id===t?!0:!!((a=n.children)!=null&&a.some(o=>i(o)))};return i(r.node)}function MM(e,A,t,r){var c;if(!A||!t||A===t)return!1;const i=Xu(e,A);if(!i||!i.parent||RM(e,A,t))return!1;const n=Xu(e,t);if(!n||(r==="before"||r==="after")&&!n.parent)return!1;const a=i.parent.children;if(!a)return!1;const[o]=a.splice(i.index,1);if(!o)return!1;if(a.length===0&&delete i.parent.children,r==="child")return n.node.children||(n.node.children=[]),n.node.children.push(o),n.node.expanded=!0,!0;const s=Xu(e,t);if(!((c=s==null?void 0:s.parent)!=null&&c.children))return i.parent.children||(i.parent.children=[]),i.parent.children.splice(Math.min(i.index,i.parent.children.length),0,o),!1;const l=s.parent.children,g=r==="before"?s.index:s.index+1;return l.splice(g,0,o),s.parent.expanded=!0,!0}function LM(e,A,t){const{resetCollapse:r=!1,resetHistory:i=!1,commitHistory:n=!1,fit:a=!1}=A;t.setInternalUpdate(!0);const o=AS(e),s=new Map;!r&&t.previousRoot&&eS(t.previousRoot,s),r?ZI(o,{expandable:t.expandable,maxExpandedDepth:0}):s.size>0&&tS(o,s),t.expandable||xv(o),t.hasTree&&!r&&t.snapshotPositions();const l=pg(o);t.layout(l),t.hasTree&&!r&&t.restorePositions(l),t.onAfterSetNodeData(l,o),t.render(),i?(t.resetHistory(),t.markClean()):(n&&t.commitHistory(),t.syncModified()),a&&t.nextTick(()=>t.fitWindow()),t.nextTick(()=>{t.setInternalUpdate(!1)})}const No={offsetX:-18,offsetY:-27.5,height:55},GM=6,TM=160,Iy=32;function YM(e,A){const t=A(e),r=e.y+No.offsetX,i=e.x+No.offsetY,n=e.parent,a=n?A(n):0;return{id:e.data.id,left:r,right:r+t,top:i,bottom:i+No.height,width:t,height:No.height,cx:e.y,cy:e.x,topic:e.data.topic||"",depth:e.depth,hasParent:!!n,parentCx:n?n.y:void 0,parentCy:n?n.x:void 0,parentRight:n?n.y+No.offsetX+a:void 0}}function rS(e,A=new Set){var t,r;return(t=e.data)!=null&&t.id&&A.add(e.data.id),(r=e.children)==null||r.forEach(i=>rS(i,A)),A}function iS(e,A,t){return e>=t.left&&e<=t.right&&A>=t.top&&A<=t.bottom}function UM(e,A,t){const r=e<t.left?t.left-e:e>t.right?e-t.right:0,i=A<t.top?t.top-A:A>t.bottom?A-t.bottom:0;return Math.hypot(r,i)}function JM(e,A){if(iS(e.x,e.y,A)){const t=(e.y-A.top)/Math.max(A.height,1);return t<.3?"before":t>.7?"after":"child"}return e.x>A.right?"child":e.y<A.cy?"before":"after"}function OM(e){const{pointer:A,dragBox:t,boxes:r,draggingId:i,blockedIds:n,maxDistance:a=TM}=e,o=r.filter(C=>C.id!==i&&!n.has(C.id));let s=null,l=A,g=0;if(t){const C={x:t.x,y:t.y+t.height/2};s=o.find(h=>C.x>=h.left-Iy&&C.x<=h.right+Iy&&C.y>=h.top&&C.y<=h.bottom)??null,s&&(l=C);for(const h of o){if(s)break;const I=Math.max(t.x,h.left),d=Math.min(t.x+t.width,h.right),f=Math.max(t.y,h.top),B=Math.min(t.y+t.height,h.bottom),Q=Math.max(0,d-I),p=Math.max(0,B-f),E=Q*p;E>g&&(g=E,s=h,l={x:(I+d)/2,y:(f+B)/2})}}if(s||(s=o.find(C=>iS(A.x,A.y,C))??null),!s){let C=1/0;for(const h of o){const I=UM(A.x,A.y,h);I<C&&(C=I,s=h)}if(!s||C>a)return null}let c=JM(l,s);return(c==="before"||c==="after")&&!s.hasParent&&(c="child"),{targetId:s.id,position:c}}function HM(e,A,t){return{x:e.x-A.x,y:e.y-A.y,width:Math.max(t,80),height:No.height}}function VM(e,A,t,r){const i=(A+r)/2;return`M ${A} ${e} C ${i} ${e}, ${i} ${t}, ${r} ${t}`}const dy=8;function ZM(e,A,t){const r=A.find(o=>o.id===e.targetId);if(!r)return null;const i=e.position==="child"?r.right:r.parentRight,n=e.position==="child"?r.cy:r.parentCy;if(i===void 0||n===void 0)return null;const a={x:t.x+dy,y:t.y+dy,width:t.width,height:t.height};return{slot:a,linkPath:VM(n,i,a.y+a.height/2,a.x)}}const qM={key:0,class:"toolbar-scale"},PM={key:1,class:"toolbar-divider"},KM=["title"],zM={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},WM={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},XM={key:3,class:"toolbar-divider"},jM={key:5,class:"toolbar-count",title:"节点总数"},$M={class:"count-value"},fy=18,By=.3,AL=u.defineComponent({__name:"D3MindMap",props:{data:{default:()=>({nodeData:{id:"root",topic:"思维导图",root:!0,children:[]}})},readonly:{type:Boolean,default:!0},expandable:{type:Boolean,default:!0},height:{default:"100%"},width:{default:"100%"},showToolbar:{type:Boolean,default:!1},showDownload:{type:Boolean,default:!0},showCounts:{type:Boolean,default:!1},showScale:{type:Boolean,default:!0},toolbarPosition:{default:"bottom"},theme:{},nodeStyle:{},linkStyle:{},layoutConfig:{},streaming:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},canDrop:{},dragStyle:{}},emits:["change","node-click","node-dblclick","node-contextmenu","node-mouseenter","node-mouseleave","node-expand","node-collapse","node-drag-start","node-drag","node-drag-end","zoom","pan","download","ready","modified","history-change"],setup(e,{expose:A,emit:t}){const r=e,i=t,n=u.ref(null),a=u.ref(null),o=u.ref(null),s=u.ref(800),{getNodeColor:l,getNodeTextColor:g,getNodeBorderColor:c,getLinkColor:C,getNodeStyle:h,getLinkWidth:I,getBackgroundStyle:d}=X8(()=>r.theme,r.nodeStyle,r.linkStyle),f=u.computed(()=>`toolbar-${r.toolbarPosition}`),B=u.computed(()=>d());let Q=null,p=he.zoomIdentity,E=!1,m=!1,v=null,w=!1,k=null,b={vx:0,vy:0},S="",N=!1,F=!1,x=null,M=null,G=!0,Z=!1;const O=new Set,Y=new Map,AA=new Map,K=u.ref(null),q=u.ref(null),j=u.ref(1),tA=u.computed(()=>Math.round(j.value*100)),rA=J=>r.expandable?(J==null?void 0:J.expanded)!==!1:!0,cA=J=>r.expandable&&J.expanded===!1?null:J.children,bA=u.computed(()=>{if(!q.value)return 0;let J=0;const z=(sA,nA=!0)=>{nA&&(sA.parent&&sA.parent.data&&!rA(sA.parent.data)||(J++,sA.children&&rA(sA.data)&&sA.children.forEach(QA=>z(QA,!0))))};return z(q.value,!0),J}),LA=u.computed(()=>{if(!K.value)return!0;const J=z=>z.children&&z.children.length>0?z.expanded===!1?!1:z.children.every(sA=>J(sA)):!0;return J(K.value)}),$A=u.ref(!0),PA=u.computed(()=>{const J={height:typeof r.height=="number"?`${r.height}px`:r.height,width:typeof r.width=="number"?`${r.width}px`:r.width},z=r.dragStyle;return z&&(z.floatBorderColor&&(J["--mg-drag-float-border"]=z.floatBorderColor),z.floatBgColor&&(J["--mg-drag-float-bg"]=z.floatBgColor),z.floatTextColor&&(J["--mg-drag-float-text"]=z.floatTextColor),z.slotColor&&(J["--mg-drag-slot-fill"]=z.slotColor),z.slotBorderColor&&(J["--mg-drag-slot-border"]=z.slotBorderColor),z.linkColor&&(J["--mg-drag-link"]=z.linkColor),z.targetBorderColor&&(J["--mg-drag-target-border"]=z.targetBorderColor),z.targetLinkColor&&(J["--mg-drag-target-link"]=z.targetLinkColor),z.draggingOpacity!==void 0&&(J["--mg-drag-opacity"]=String(z.draggingOpacity))),J}),xA={expandDuration:420,collapseDuration:320,expandEase:he.easeCubicOut,collapseEase:he.easeQuadOut,expandStartDelay:10,transformDuration:.28,centerDuration:1.05,transformEase:"power1.out",centerEase:"power2.out",nodeScaleFrom:.8,nodeScaleTo:1,linkFadeDuration:150},GA=J=>{const z=J-18;return r.expandable?z+fy:z},YA=J=>{if(J.parent){const z=J.x0===void 0||J.y0===void 0,sA=J.x0!==void 0&&J.y0!==void 0&&Math.abs(J.x0-J.parent.x)<2&&Math.abs(J.y0-J.parent.y)<2;if(z||sA)return N?xA.expandStartDelay:0}return 0},me=J=>{a.value&&he.select(a.value).attr("transform",`translate(${J.x},${J.y}) scale(${J.k})`)},ne=(J,z={})=>{if(z.duration===0){p=J,j.value=J.k,me(J),z.syncZoom&&Q&&n.value&&(w=!0,he.select(n.value).call(Q.transform,J),setTimeout(()=>{w=!1},0)),z.onComplete&&z.onComplete();return}const{duration:sA=.55,ease:nA="power2.out",syncZoom:QA=!1,onComplete:pA}=z;v==null||v.kill();const KA={x:p.x,y:p.y,k:p.k};return v=mM.gsap.to(KA,{x:J.x,y:J.y,k:J.k,duration:sA,ease:nA,overwrite:"auto",onUpdate:()=>{const TA=he.zoomIdentity.translate(KA.x,KA.y).scale(KA.k);p=TA,j.value=TA.k,me(TA)},onComplete:()=>{const TA=he.zoomIdentity.translate(J.x,J.y).scale(J.k);p=TA,j.value=TA.k,me(TA),QA&&Q&&n.value&&(w=!0,he.select(n.value).call(Q.transform,TA),setTimeout(()=>{w=!1},0)),pA&&pA()}}),v},Ge=AS,NA=(J,z=0,sA=1)=>{ZI(J,{expandable:r.expandable,depth:z,maxExpandedDepth:sA})},UA=J=>{var nA,QA;if((nA=J.data)!=null&&nA._nodeWidth)return J.data._nodeWidth;const z=gI(((QA=J.data)==null?void 0:QA.topic)||"",'20px "Google Sans"'),sA=Math.max(z+36,100);return J.data&&(J.data._nodeWidth=sA),sA},aA=J=>{var z;return Array.isArray((z=J==null?void 0:J.data)==null?void 0:z.children)&&J.data.children.length>0},FA=J=>{var sA;return(((sA=J.data)==null?void 0:sA._nodeWidth)||UA(J))-18+fy},te=J=>{if(!r.expandable)return;const z=J.datum(),sA=FA(z);J.append("circle").attr("class","expand-button").attr("r",12).attr("cx",sA).attr("cy",0).attr("fill-opacity",1).style("fill",()=>l(z.data,z.depth)).style("cursor","pointer").style("pointer-events","all").on("click",function(nA){var KA;nA.stopPropagation(),nA.preventDefault();const QA=he.select(this.parentNode).datum(),pA=(KA=QA==null?void 0:QA.data)!=null&&KA.id?RA(QA.data.id):null;pA&&Ve(pA)}),J.append("text").attr("class","expand-symbol").attr("x",sA).attr("y",0).attr("text-anchor","middle").style("font-size","20px").style("font-family",'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif').style("fill","rgb(0, 0, 0)").style("pointer-events","none").style("dominant-baseline","middle").style("user-select","none").text(z.data.expanded!==!1?"<":">")},xe=(J,z)=>{const sA=!J.select(".expand-button").empty();if(!r.expandable){sA&&(J.select(".expand-button").remove(),J.select(".expand-symbol").remove());return}const nA=aA(z);if(nA&&!sA){te(J);return}if(!nA&&sA){J.select(".expand-button").remove(),J.select(".expand-symbol").remove();return}if(nA&&sA){const QA=FA(z);J.select(".expand-button").attr("cx",QA),J.select(".expand-symbol").attr("x",QA).text(z.data.expanded!==!1?"<":">"),J.select(".expand-button").style("fill",l(z.data,z.depth))}},tt=J=>{NM(J,Y,O)},st=()=>{xM(q.value,Y)},dr=()=>52,Me=J=>{const z=he.hierarchy(J.data,cA),sA=dr();let nA=1;z.each(jA=>{jA.children&&jA.children.length>0&&(nA=Math.max(nA,jA.children.length))});const QA=Math.min(140,Math.max(80,90+(nA-1)*6)),pA={};z.each(jA=>{const _e=jA.depth||0,U=UA(jA);pA[_e]=Math.max(pA[_e]||0,U)});const KA=Math.max(...Object.values(pA),100),TA=Math.max(KA+50,200);he.tree().nodeSize([QA,TA]).separation((jA,_e)=>{const yA=(sA+16)/QA;return jA.parent===_e.parent?Math.max(1,yA):1.2})(z);const re={0:0},Ue=Math.max(...Array.from(Object.keys(pA)).map(Number));for(let jA=1;jA<=Ue;jA++){const _e=pA[jA-1]||100;re[jA]=re[jA-1]+_e+80}z.each(jA=>{const _e=jA.depth||0;jA.y=re[_e]});const Pt=new Map;z.each(jA=>{Pt.set(jA.data.id,{x:jA.x,y:jA.y})});const ni=jA=>{if(!jA.parent)return{x:0,y:0};const _e=Pt.get(jA.parent.data.id);return _e||ni(jA.parent)};J.each(jA=>{const _e=Pt.get(jA.data.id);if(_e)jA.x=_e.x,jA.y=_e.y;else{const U=ni(jA);jA.x=U.x,jA.y=U.y}});let sr=1/0;J.each(jA=>{jA.y!==void 0&&jA.y<sr&&(sr=jA.y)}),sr!==1/0&&sr!==0&&J.each(jA=>{jA.y=(jA.y||0)-sr});const An=J.x||0;J.each(jA=>{jA.x=(jA.x||0)-An});let gt=1/0;if(J.each(jA=>{jA.x!==void 0&&jA.x<gt&&(gt=jA.x)}),gt<0){const jA=-gt+8;J.each(_e=>{_e.x=(_e.x||0)+jA})}},wt=()=>{if(!n.value||!a.value)return;const J=Ge(r.data);NA(J,0,0),K.value=J;const z=pg(J);Me(z);let sA=z.y||0;z.each(nA=>{nA.y<sA&&(sA=nA.y)}),sA!==0&&z.each(nA=>{nA.y=nA.y-sA}),z.y!==0&&(z.y=0),q.value=z,fe(),BA(),Zt(),u.nextTick(()=>{It(),er(),Xi()})};let De=null;const Ar=()=>{a.value&&he.select(a.value).select(".drag-overlay").selectAll("*").remove()},_r=()=>{if(!a.value)return;const J=he.select(a.value);J.selectAll(".node").classed("is-dragging",!1).classed("is-drop-target",!1),J.selectAll(".link").classed("is-drop-link",!1),Ar()},Fr=J=>{J.select(".drop-preview-link").empty()&&J.append("path").attr("class","drop-preview-link").attr("fill","none"),J.select(".drop-slot").empty()&&J.append("rect").attr("class","drop-slot").attr("rx",8).attr("ry",8),J.select(".drop-float").empty()&&J.append("rect").attr("class","drop-float").attr("rx",8).attr("ry",8),J.select(".drop-float-label").empty()&&J.append("text").attr("class","drop-float-label").attr("dominant-baseline","middle")},ii=(J,z,sA,nA)=>{if(!a.value)return;const QA=he.select(a.value);QA.selectAll(".node").classed("is-drop-target",re=>!!(J&&re.data.id===J.targetId)),QA.selectAll(".link").classed("is-drop-link",re=>J?re.target.data.id===J.targetId||re.source.data.id===J.targetId:!1);const pA=QA.select(".drag-overlay");Fr(pA),pA.select(".drop-float").attr("x",nA.x).attr("y",nA.y).attr("width",nA.width).attr("height",nA.height),pA.select(".drop-float-label").attr("x",nA.x+18).attr("y",nA.y+nA.height/2).text(sA);const KA=pA.select(".drop-slot"),TA=pA.select(".drop-preview-link"),ue=J?ZM(J,z,nA):null;if(!ue){KA.interrupt().style("opacity",0),TA.interrupt().style("opacity",0);return}KA.interrupt().attr("x",ue.slot.x).attr("y",ue.slot.y).attr("width",ue.slot.width).attr("height",ue.slot.height).style("opacity",1),TA.interrupt().attr("d",ue.linkPath).style("opacity",1)},Yi=J=>J.map(z=>YM(z,UA)),Zr=()=>{const J=q.value;if(!J)return[];const z=[],sA=nA=>{nA.parent&&nA.parent.data&&!rA(nA.parent.data)||(z.push(nA),nA.children&&rA(nA.data)&&nA.children.forEach(sA))};return sA(J),Yi(z)},iA=(J,z,sA)=>{let nA=OM({pointer:J,dragBox:z,boxes:sA.boxes,draggingId:sA.node.data.id,blockedIds:sA.blockedIds});if(!nA)return null;const QA=Eg(sA.node.data._original||sA.node.data);return r.canDrop&&!r.canDrop({node:QA,drop:nA})?null:nA},lA=(J,z)=>{if(!r.draggable||!a.value){J.on(".drag",null);return}const sA=he.drag().container(()=>a.value).subject(nA=>({x:nA.x,y:nA.y})).filter((nA,QA)=>{var KA,TA;if(!r.draggable||!QA.parent)return!1;const pA=nA.target;return(KA=pA==null?void 0:pA.closest)!=null&&KA.call(pA,".expand-button")||(TA=pA==null?void 0:pA.classList)!=null&&TA.contains("expand-symbol")?!1:!nA.button}).on("start",function(nA,QA){var re,Ue,Pt;if(!QA.parent)return;(Ue=(re=nA.sourceEvent)==null?void 0:re.stopPropagation)==null||Ue.call(re);const pA=rS(QA),KA=(Pt=this.transform.baseVal.consolidate())==null?void 0:Pt.matrix,TA=((KA==null?void 0:KA.e)??QA.y)+No.offsetX,ue=((KA==null?void 0:KA.f)??QA.x)+No.offsetY;De={node:QA,activated:!1,startX:nA.x,startY:nA.y,grabOffset:{x:nA.x-TA,y:nA.y-ue},blockedIds:pA,boxes:Yi(z),drop:null},he.select(this).raise()}).on("drag",function(nA,QA){const pA=De;if(!pA||pA.node.data.id!==QA.data.id)return;const KA=Math.hypot(nA.x-pA.startX,nA.y-pA.startY);if(!pA.activated){if(KA<GM)return;pA.activated=!0,Z=!0,he.select(this).classed("is-dragging",!0),i("node-drag-start",Eg(QA.data._original||QA.data),nA.sourceEvent??null)}pA.boxes=Zr();const TA={x:nA.x,y:nA.y},ue=HM(TA,pA.grabOffset,UA(QA)),re=iA(TA,ue,pA);pA.drop=re,ii(re,pA.boxes,QA.data.topic||"",ue),i("node-drag",{node:Eg(QA.data._original||QA.data),drop:re,event:nA.sourceEvent??null})}).on("end",function(nA,QA){const pA=De;De=null;const KA=!!(pA!=null&&pA.activated),TA=(pA==null?void 0:pA.drop)??null;if(_r(),Z=!1,!KA||!pA)return;let ue=!1;TA&&K.value&&(ue=Tt(QA.data.id,TA.targetId,TA.position)),i("node-drag-end",{node:Eg(QA.data._original||QA.data),drop:TA,moved:ue,event:nA.sourceEvent??null})});J.call(sA)},BA=()=>{if(!n.value||!a.value||!q.value)return;const J=he.select(a.value),z=J.select(".links"),sA=J.select(".nodes"),nA=[],QA=[],pA=(U,yA=!0)=>{yA&&(U.parent&&U.parent.data&&!rA(U.parent.data)||(nA.push(U),U.children&&rA(U.data)&&U.children.forEach(ZA=>{QA.push({source:U,target:ZA}),pA(ZA,!0)})))};pA(q.value,!0);const KA=z.selectAll(".link").data(QA,U=>`${U.source.data.id}-${U.target.data.id}`),TA=KA.exit().style("will-change","opacity, stroke-width").style("opacity",1);m?TA.interrupt().remove():TA.transition().duration(xA.linkFadeDuration).ease(xA.collapseEase).style("stroke-width","1px").style("opacity",0).on("end",function(){he.select(this).style("will-change","auto"),he.select(this).remove()});const ue=U=>{const yA=U.target.depth||0;return C(U,yA)};nA.forEach(U=>{U.parent?(U.x0===void 0||U.y0===void 0||O.has(U.data.id))&&(U.x0=U.parent.x,U.y0=U.parent.y):(U.x0===void 0&&(U.x0=U.x),U.y0===void 0&&(U.y0=U.y))});const re=(U,yA)=>{var Kr;const ZA=((Kr=U.data)==null?void 0:Kr._nodeWidth)||UA(U),Fe=U.x||0,je=U.y||0;return yA==="source"?{x:Fe,y:je+GA(ZA)}:{x:Fe,y:je-18}},Ue=(U,yA)=>{const ZA=(U.y+yA.y)/2,Fe=ZA,je=U.x,Kr=ZA,en=yA.x;return`M ${U.y} ${U.x} C ${Fe} ${je}, ${Kr} ${en}, ${yA.y} ${yA.x}`},Pt=KA.enter().append("path").attr("class","link").style("opacity",0).attr("d",U=>{const yA=re({...U.source,x:U.source.x0??U.source.x,y:U.source.y0??U.source.y},"source"),ZA=re({...U.target,x:U.target.x0??U.target.x,y:U.target.y0??U.target.y},"target");return Ue(yA,ZA)}).style("fill","none").style("stroke",U=>ue(U)).style("stroke-width","1px");Pt.style("opacity",0).style("will-change","opacity, d, stroke-width"),KA.style("will-change","opacity, d, stroke-width"),Pt.merge(KA).transition().duration(xA.expandDuration).ease(xA.expandEase).delay(U=>YA(U.target)).style("opacity",1).style("stroke-width",`${I()}px`).attrTween("d",function(U){const yA=re({...U.source,x:U.source.x0??U.source.x,y:U.source.y0??U.source.y},"source"),ZA=re({...U.target,x:U.target.x0??U.target.x,y:U.target.y0??U.target.y},"target"),Fe=re(U.source,"source"),je=re(U.target,"target");if(Math.abs(yA.y-Fe.y)<.1&&Math.abs(yA.x-Fe.x)<.1&&Math.abs(ZA.y-je.y)<.1&&Math.abs(ZA.x-je.x)<.1)return()=>Ue(Fe,je);const Kr=he.interpolateNumber(yA.y,Fe.y),en=he.interpolateNumber(yA.x,Fe.x),Cs=he.interpolateNumber(ZA.y,je.y),Is=he.interpolateNumber(ZA.x,je.x);return Mr=>{const Rn={y:Kr(Mr),x:en(Mr)},Dh={y:Cs(Mr),x:Is(Mr)};return Ue(Rn,Dh)}}).style("stroke",U=>ue(U)).on("end",function(U){var yA,ZA,Fe,je;U.source.x0=U.source.x,U.source.y0=U.source.y,U.target.x0=U.target.x,U.target.y0=U.target.y,(ZA=(yA=U.source)==null?void 0:yA.data)!=null&&ZA.id&&Y.set(U.source.data.id,{x:U.source.x,y:U.source.y}),(je=(Fe=U.target)==null?void 0:Fe.data)!=null&&je.id&&Y.set(U.target.data.id,{x:U.target.x,y:U.target.y}),he.select(this).style("will-change","auto")});const sr=sA.selectAll(".node").data(nA,U=>U.data.id),An=sr.exit().style("will-change","transform, opacity").style("opacity",1);m?An.interrupt().remove():An.transition().duration(xA.collapseDuration).ease(xA.collapseEase).style("opacity",0).attrTween("transform",function(U){const yA=U,ZA=yA.y??yA.y0??0,Fe=yA.x??yA.x0??0;let je=ZA,Kr=Fe;if(yA.parent){const Mr=re(yA.parent,"target");je=Mr.y,Kr=Mr.x}const en=he.interpolateNumber(ZA,je),Cs=he.interpolateNumber(Fe,Kr),Is=he.interpolateNumber(xA.nodeScaleTo,.9);return Mr=>`translate(${en(Mr)},${Cs(Mr)}) scale(${Is(Mr)})`}).on("end",function(){he.select(this).style("will-change","auto"),he.select(this).remove()});const gt=sr.enter().append("g").attr("class","node").attr("role","treeitem").attr("aria-level",U=>U.depth+1).attr("aria-expanded",U=>{if(!r.expandable)return null;const yA=U.children&&U.children.length>0,ZA=U.data.expanded!==!1;return yA?String(ZA):null}).attr("aria-label",U=>{const ZA=U.children&&U.children.length>0&&U.children?U.children.length:0;return`${U.data.topic}, ${ZA} 个子项`}).attr("tabindex",(U,yA)=>yA===0?0:-1).attr("transform",U=>{const yA=U.y0!==void 0?U.y0:U.parent?U.parent.y:U.y,ZA=U.x0!==void 0?U.x0:U.parent?U.parent.x:U.x;return`translate(${yA},${ZA}) scale(${xA.nodeScaleFrom})`}).style("opacity",0).style("cursor","pointer").style("outline","none").style("will-change","transform, opacity"),jA=U=>l(U.data,U.depth);gt.append("rect").attr("rx",U=>{const yA=h(U.data,U.depth);return parseInt(yA.borderRadius||"8")}).attr("ry",U=>{const yA=h(U.data,U.depth);return parseInt(yA.borderRadius||"8")}).attr("x",-18).attr("y",-27.5).attr("width",U=>{const yA=h(U.data,U.depth),ZA=`${yA.fontSize} ${yA.fontFamily}`,Fe=gI(U.data.topic,ZA),je=Math.max(Fe+36,100);return U.data._nodeWidth=je,je}).attr("height",55).style("fill",U=>jA(U)).style("stroke",U=>c(U.data,U.depth)||"none").style("stroke-width",U=>h(U.data,U.depth).borderWidth||"0").style("cursor","pointer"),gt.append("text").attr("class","node-name").attr("text-anchor","start").attr("x",0).attr("y",0).style("font-size",U=>h(U.data,U.depth).fontSize).style("font-family",U=>h(U.data,U.depth).fontFamily).style("font-weight",U=>h(U.data,U.depth).fontWeight).style("dominant-baseline","middle").style("fill",U=>g(U.data,U.depth)).style("pointer-events","none").style("user-select","none").text(U=>U.data.topic),gt.each(function(U){r.expandable&&aA(U)&&te(he.select(this))}),gt.on("click",(U,yA)=>{const ZA=U.target;ZA.tagName==="circle"||ZA.classList.contains("expand-symbol")||i("node-click",yA.data._original||yA.data,U)}),gt.on("dblclick",(U,yA)=>{i("node-dblclick",yA.data._original||yA.data,U)}),gt.on("contextmenu",(U,yA)=>{U.preventDefault(),i("node-contextmenu",yA.data._original||yA.data,U)}),gt.on("mouseenter",(U,yA)=>{i("node-mouseenter",yA.data._original||yA.data,U)}),gt.on("mouseleave",(U,yA)=>{i("node-mouseleave",yA.data._original||yA.data,U)}),gt.style("opacity",0).style("will-change","transform, opacity"),sr.style("will-change","transform, opacity");const _e=gt.merge(sr);_e.transition().duration(xA.expandDuration).ease(xA.expandEase).delay(U=>YA(U)).style("opacity",1).attrTween("transform",function(U){const yA=U.y0??(U.parent?U.parent.y:U.y),ZA=U.x0??(U.parent?U.parent.x:U.x),Fe=U.y,je=U.x;if(Math.abs(yA-Fe)<.1&&Math.abs(ZA-je)<.1)return()=>`translate(${Fe},${je}) scale(1)`;const Kr=U.parent&&(U.y0===void 0||U.x0===void 0||Math.abs(yA-U.parent.y)<2&&Math.abs(ZA-U.parent.x)<2),en=he.interpolateNumber(yA,Fe),Cs=he.interpolateNumber(ZA,je),Is=he.interpolateNumber(Kr?xA.nodeScaleFrom:xA.nodeScaleTo,xA.nodeScaleTo);return Mr=>`translate(${en(Mr)},${Cs(Mr)}) scale(${Is(Mr)})`}).on("end",function(U){var yA,ZA;U.x0=U.x,U.y0=U.y,(yA=U.data)!=null&&yA.id&&Y.set(U.data.id,{x:U.x,y:U.y}),(ZA=U.data)!=null&&ZA.id&&O.delete(U.data.id),he.select(this).style("will-change","auto")}),_e.select(".node-name").text(U=>U.data.topic),_e.attr("aria-level",U=>U.depth+1),_e.select("rect").attr("width",U=>{const yA=h(U.data,U.depth),ZA=`${yA.fontSize} ${yA.fontFamily}`,Fe=gI(U.data.topic,ZA),je=Math.max(Fe+36,100);return U.data._nodeWidth=je,je}).attr("rx",U=>parseInt(h(U.data,U.depth).borderRadius||"8")).attr("ry",U=>parseInt(h(U.data,U.depth).borderRadius||"8")).style("fill",U=>l(U.data,U.depth)).style("stroke",U=>c(U.data,U.depth)||"none").style("stroke-width",U=>h(U.data,U.depth).borderWidth||"0"),_e.select(".node-name").style("font-size",U=>h(U.data,U.depth).fontSize).style("font-family",U=>h(U.data,U.depth).fontFamily).style("font-weight",U=>h(U.data,U.depth).fontWeight).style("fill",U=>g(U.data,U.depth)),_e.each(function(U){const yA=he.select(this);xe(yA,U);const ZA=aA(U),Fe=ZA&&U.data.children?U.data.children.length:0;yA.attr("aria-expanded",r.expandable&&ZA?String(U.data.expanded!==!1):null).attr("aria-label",`${U.data.topic}, ${Fe} 个子项`)}),lA(_e,nA),De!=null&&De.activated&&_e.classed("is-dragging",U=>U.data.id===(De==null?void 0:De.node.data.id))},Ve=J=>{r.expandable&&J.data&&(F||(N&&M&&(M.kill(),M=null,N=!1),x&&(clearTimeout(x),x=null),O.clear(),x=setTimeout(()=>{if(F)return;F=!0,E=!0;const z=J.data.expanded!==!1;J.data.expanded=!z,i(z?"node-collapse":"node-expand",J.data._original||J.data),q.value&&uy(q.value);let sA=0;const nA=TA=>{TA.children&&(sA+=TA.children.length,TA.children.forEach(ue=>{nA(ue)}))},pA=(TA=>{let ue=0,re=TA;for(;re.parent;)ue++,re=re.parent;return ue})(J);if(AA.clear(),Y.forEach((TA,ue)=>AA.set(ue,{...TA})),z){const TA=ue=>{ue.children&&ue.children.forEach(re=>{re.x0=void 0,re.y0=void 0,TA(re)})};TA(J),nA(J)}else{const TA=re=>{re.children&&re.children.forEach(Ue=>{Ue.x0=void 0,Ue.y0=void 0,TA(Ue)})};TA(J);const ue=re=>{re.children&&re.children.forEach(Ue=>{var Pt;(Pt=Ue.data)!=null&&Pt.id&&O.add(Ue.data.id),ue(Ue)})};ue(J),nA(J)}N=!0,q.value&&Me(q.value),BA(),i("change",lt()),u.nextTick(()=>{setTimeout(()=>{const TA=.7-pA*.08,ue=Math.min(Math.sqrt(sA)*.03,.18),re=.35,Ue=.8,Pt=TA+ue,ni=Math.max(Math.min(Pt,Ue),re);Dt(J,ni)},50)});const KA=Math.max(xA.expandDuration,xA.collapseDuration);setTimeout(()=>{F=!1,E=!1},KA+100),x=null},50)))},Zt=()=>{!n.value||!a.value||(Q=he.zoom().scaleExtent([.25,5]).filter(J=>{var sA;if(!G||Z)return!1;const z=J.target;return r.draggable&&((sA=z==null?void 0:z.closest)!=null&&sA.call(z,".node"))?!1:(!J.ctrlKey||J.type==="wheel")&&!J.button}).on("start",()=>{$A.value=!1,k=null,b={vx:0,vy:0},S=""}).on("zoom",J=>{const z=J.sourceEvent;S=(z==null?void 0:z.type)||"";const sA=(z==null?void 0:z.timeStamp)??performance.now();if(z&&z.type!=="wheel")if(!k)k={x:J.transform.x,y:J.transform.y,t:sA};else{const nA=Math.max(1,sA-k.t);b={vx:(J.transform.x-k.x)/nA,vy:(J.transform.y-k.y)/nA},k={x:J.transform.x,y:J.transform.y,t:sA}}if(w){p=J.transform,j.value=J.transform.k,me(J.transform),i("zoom",J.transform.k),i("pan",{x:J.transform.x,y:J.transform.y,k:J.transform.k});return}ne(J.transform,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!1}),i("zoom",J.transform.k),i("pan",{x:J.transform.x,y:J.transform.y,k:J.transform.k})}).on("end",()=>{if(setTimeout(()=>{$A.value=!0},2e3),w||S==="wheel"||Math.hypot(b.vx,b.vy)<.08)return;const z=120;let sA=b.vx*z,nA=b.vy*z;const QA=260,pA=Math.hypot(sA,nA);if(pA>QA){const TA=QA/pA;sA*=TA,nA*=TA}const KA=he.zoomIdentity.translate(p.x+sA,p.y+nA).scale(p.k);ne(KA,{duration:xA.transformDuration*1.4,ease:xA.transformEase,syncZoom:!0})}),he.select(n.value).call(Q))},lt=()=>K.value?{nodeData:Eg(K.value)}:null,qr=J=>{E=!0,K.value=Ge(J),st();const z=pg(K.value);Me(z),tt(z),q.value=z,BA(),i("change",lt()),tr(),u.nextTick(()=>{E=!1})},{resetHistoryBaseline:er,markClean:Xi,recordHistoryAfterChange:Nt,syncModifiedFlag:tr,canUndo:ji,canRedo:Ze,isModified:mi,undo:Fn,redo:W}=FM({getData:lt,applyHistorySnapshot:qr,onHistoryChange:J=>i("history-change",J),onModified:J=>i("modified",J)}),oA=()=>{st();const J=pg(K.value);Me(J),tt(J),q.value=J,BA(),i("change",lt()),tr(),u.nextTick(()=>{E=!1})},uA=(J,z={})=>{LM(J,z,{expandable:r.expandable,hasTree:!!q.value,previousRoot:K.value,snapshotPositions:st,restorePositions:tt,layout:Me,render:BA,onAfterSetNodeData:(sA,nA)=>{K.value=nA,q.value=sA},resetHistory:er,markClean:Xi,commitHistory:Nt,syncModified:tr,fitWindow:It,nextTick:u.nextTick,setInternalUpdate:sA=>{E=sA}})},JA=J=>{m=!0,Y.clear(),O.clear();try{uA(J,{resetCollapse:!0,resetHistory:!0,fit:!1})}finally{m=!1}},le=J=>{uA(J,{resetCollapse:!1,resetHistory:!1,commitHistory:!1,fit:!1})},fe=()=>{if(!n.value||!o.value)return;const J=o.value.clientWidth||800,z=o.value.clientHeight||600;he.select(n.value).attr("width",J).attr("height",z)},Dt=(J,z)=>{if(!J||!q.value||!n.value||!a.value||!o.value){It();return}fe();const sA=o.value.clientWidth||800,nA=o.value.clientHeight||600,QA=[],pA=ZA=>{QA.push(ZA),ZA.children&&rA(ZA.data)&&ZA.children.forEach(Fe=>pA(Fe))};if(pA(J),QA.length===0){It();return}let KA=1/0,TA=-1/0,ue=1/0,re=-1/0;QA.forEach(ZA=>{const Fe=ZA.x||0,je=ZA.y||0,Kr=UA(ZA),en=55;KA=Math.min(KA,Fe-en/2),TA=Math.max(TA,Fe+en/2),ue=Math.min(ue,je-Kr/2),re=Math.max(re,je+Kr/2)});const Ue=100,Pt=re-ue+Ue*2,ni=TA-KA+Ue*2,sr=sA/Pt,An=nA/ni,gt=Math.min(sr,An,1.2),jA=J.x||0,_e=J.y||0,U=sA/2-_e*gt,yA=nA/2-jA*gt;if(Q&&a.value){const ZA=he.zoomIdentity.translate(U,yA).scale(gt),Fe=z!==void 0?z:xA.centerDuration;M&&(M.kill(),M=null),M=ne(ZA,{duration:Fe,ease:xA.centerEase,syncZoom:!0,onComplete:()=>{N=!1,M=null}})}},It=()=>{if(!q.value||!n.value||!a.value||!o.value)return;fe();const J=o.value.clientWidth||800,z=o.value.clientHeight||600,sA=[],nA=(U,yA=!0)=>{yA&&(U.parent&&U.parent.data&&!rA(U.parent.data)||(sA.push(U),U.children&&rA(U.data)&&U.children.forEach(ZA=>nA(ZA,!0))))};if(nA(q.value,!0),sA.length===0)return;let QA=1/0,pA=-1/0,KA=1/0,TA=-1/0;sA.forEach(U=>{const yA=U.x||0,ZA=U.y||0;QA=Math.min(QA,yA),pA=Math.max(pA,yA),KA=Math.min(KA,ZA),TA=Math.max(TA,ZA)});const ue=80,re=TA-KA+ue*2,Ue=pA-QA+ue*2,Pt=J/re,ni=z/Ue,sr=Math.min(Pt,ni,1.2),An=(QA+pA)/2,gt=(KA+TA)/2,jA=J/2-gt*sr,_e=z/2-An*sr;if(Q&&a.value){const U=he.zoomIdentity.translate(jA,_e).scale(sr);M&&(M.kill(),M=null),M=ne(U,{duration:xA.centerDuration,ease:xA.centerEase,syncZoom:!0,onComplete:()=>{N=!1,M=null}})}},qt=()=>{if(!q.value||!n.value||!a.value||!o.value)return;const J=q.value,z=J.x||0,sA=J.y||0,nA=o.value.clientWidth||800,QA=o.value.clientHeight||600,pA=nA/2-sA*j.value,KA=QA/2-z*j.value;if(Q&&n.value){const TA=he.zoomIdentity.translate(pA,KA).scale(j.value);ne(TA,{duration:xA.centerDuration,ease:xA.centerEase,syncZoom:!0})}},fr=J=>{if(!r.expandable||!K.value||!q.value||F)return;if(F=!0,E=!0,O.clear(),uy(q.value),AA.clear(),Y.forEach((nA,QA)=>AA.set(QA,{...nA})),J){const nA=QA=>{QA.children&&QA.children.forEach(pA=>{var KA;pA.x0=void 0,pA.y0=void 0,(KA=pA.data)!=null&&KA.id&&O.add(pA.data.id),nA(pA)})};nA(q.value)}else{const nA=QA=>{QA.children&&QA.children.forEach(pA=>{pA.x0=pA.x,pA.y0=pA.y,nA(pA)})};nA(q.value)}const z=nA=>{nA.expanded=J,nA.children&&nA.children.length>0&&nA.children.forEach(QA=>z(QA))};z(K.value),N=!0,Me(q.value),BA(),i("change",lt()),u.nextTick(()=>{setTimeout(()=>{It();const nA=xA.centerDuration*1e3;setTimeout(()=>{N=!1,M=null},nA+80)},50)});const sA=Math.max(xA.expandDuration,xA.collapseDuration)+120;setTimeout(()=>{F=!1,E=!1},sA)},Ui=(J,z)=>{if(!o.value)return he.zoomIdentity.scale(J);const sA=o.value.clientWidth||800,nA=o.value.clientHeight||600,QA=sA/2,pA=nA/2,KA=(QA-p.x)/p.k,TA=(pA-p.y)/p.k,ue=QA-KA*J,re=pA-TA*J;return he.zoomIdentity.translate(ue,re).scale(J)},Rr=()=>{if(!n.value||!Q)return;const J=Math.min(j.value*(1+By),5);if(Math.abs(J-j.value)<.001)return;const z=Ui(J);ne(z,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},ka=()=>{if(!n.value||!Q)return;const J=Math.max(j.value*(1-By),.25);if(Math.abs(J-j.value)<.001)return;const z=Ui(J);ne(z,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},us=J=>{if(!n.value||!Q)return;const z=Math.max(.25,Math.min(5,J));if(Math.abs(z-j.value)<.001)return;const sA=Ui(z);ne(sA,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},$i=()=>j.value,Ol=J=>{G=J},Hl=()=>({treeData:q.value,nodeData:K.value}),Vl=()=>{fr(!LA.value)},XA=()=>{i("download")},P=async(J="png",z)=>{if(!n.value)throw new Error("SVG element not found");return J==="svg"?j8(n.value,z==null?void 0:z.backgroundColor):$8(n.value,{scale:(z==null?void 0:z.scale)||2,backgroundColor:(z==null?void 0:z.backgroundColor)||"#ffffff",quality:(z==null?void 0:z.quality)||1})};u.watch(()=>r.data,(J,z)=>{if(E||!J)return;if(!!q.value||r.streaming){le(J);return}JA(J),$A.value&&!r.streaming&&u.nextTick(()=>{It()})},{deep:!0}),u.watch(()=>r.draggable,()=>{q.value&&BA()}),u.watch(()=>r.expandable,J=>{if(!K.value||!q.value)return;E=!0,J||xv(K.value),st();const z=pg(K.value);tt(z),Me(z),q.value=z,BA(),u.nextTick(()=>{E=!1})}),u.watch(()=>r.theme,(J,z)=>{J!==z&&u.nextTick(()=>{if(!a.value)return;const sA=he.select(a.value);sA.selectAll(".node").each(function(nA){const QA=he.select(this);QA.select("rect").style("fill",l(nA.data,nA.depth)).style("stroke",c(nA.data,nA.depth)||"none"),QA.select(".node-name").style("fill",g(nA.data,nA.depth)),QA.select(".expand-button").style("fill",l(nA.data,nA.depth))}),sA.selectAll(".link").each(function(nA){const QA=nA.target.depth||0;he.select(this).style("stroke",C(nA,QA))})})},{deep:!0}),u.onMounted(()=>{u.nextTick(()=>{wt(),o.value&&lI.useResizeObserver(o,()=>{var J;s.value=((J=o.value)==null?void 0:J.clientWidth)||800,$A.value?(fe(),u.nextTick(()=>{It()})):fe()})})}),u.onBeforeUnmount(()=>{Q&&n.value&&he.select(n.value).on(".zoom",null),Q=null,v==null||v.kill(),v=null,M==null||M.kill(),M=null,x&&(clearTimeout(x),x=null),O.clear(),Y.clear(),AA.clear()});const hA=()=>{It()},RA=J=>{if(!q.value)return null;let z=null;return q.value.each(sA=>{var nA;((nA=sA.data)==null?void 0:nA.id)===J&&(z=sA)}),z},rt=J=>{const z=RA(J);return z?z.data._original||z.data:null},or=J=>{const z=RA(J);z&&Dt(z)},xt=J=>{if(!r.expandable)return;const z=RA(J);z&&z.data.expanded===!1&&Ve(z)},yr=J=>{if(!r.expandable)return;const z=RA(J);z&&z.data.expanded!==!1&&Ve(z)},Br=(J,z)=>{const sA=RA(J);if(!sA)return"";E=!0;const nA=sA.data._original||sA.data,QA=Cy(z);return nA.children||(nA.children=[]),nA.children.push(QA),nA.expanded=!0,oA(),Nt(),QA.id},Pr=(J,z,sA={})=>{var re;if(z==="right")return Br(J,sA);const nA=RA(J);if(!nA)return"";const QA=Cy(sA);if(z==="up"||z==="down"){if(!nA.parent)return"";const Ue=nA.parent.data._original||nA.parent.data,Pt=nA.data._original||nA.data;if(!Ue.children)return"";const ni=Ue.children.findIndex(An=>An.id===Pt.id);if(ni===-1)return"";E=!0;const sr=z==="up"?ni:ni+1;return Ue.children.splice(sr,0,QA),Ue.expanded=!0,oA(),Nt(),QA.id}if(!((re=nA.parent)!=null&&re.parent))return"";const pA=nA.parent,KA=pA.parent.data._original||pA.parent.data,TA=pA.data._original||pA.data;if(!KA.children)return"";const ue=KA.children.findIndex(Ue=>Ue.id===TA.id);return ue===-1?"":(E=!0,KA.children.splice(ue+1,0,QA),KA.expanded=!0,oA(),Nt(),QA.id)},hs=J=>{const z=RA(J);if(!z||!z.parent)return!1;const sA=z.parent.data._original||z.parent.data,nA=(z.data._original||z.data).id;if(!sA.children)return!1;const QA=sA.children.findIndex(KA=>KA.id===nA);if(QA===-1)return!1;E=!0,st(),sA.children.splice(QA,1),z.each(KA=>{var ue;const TA=(ue=KA.data)==null?void 0:ue.id;TA&&(Y.delete(TA),O.delete(TA))});const pA=pg(K.value);return Me(pA),tt(pA),q.value=pA,BA(),i("change",lt()),tr(),Nt(),u.nextTick(()=>{E=!1}),!0},Tt=(J,z,sA)=>K.value?(E=!0,MM(K.value,J,z,sA)?(oA(),Nt(),!0):(u.nextTick(()=>{E=!1}),!1)):!1;return A({getData:lt,setData:JA,applyData:le,toCenter:qt,expandAll:fr,expandNode:xt,collapseNode:yr,zoomIn:Rr,zoomOut:ka,setZoom:us,getZoom:$i,setZoomEnabled:Ol,getInstance:Hl,fit:hA,fitToWindow:It,fitToNode:or,getNodeById:rt,updateNode:(J,z)=>{const sA=RA(J);sA&&(E=!0,Object.assign(sA.data,z),sA.data._original&&Object.assign(sA.data._original,z),z.topic!==void 0&&(delete sA.data._nodeWidth,sA.data._original&&delete sA.data._original._nodeWidth),Me(q.value),BA(),i("change",lt()),tr(),Nt(),u.nextTick(()=>{E=!1}))},addNode:Br,addNodeByDirection:Pr,removeNode:hs,moveNode:Tt,undo:Fn,redo:W,canUndo:ji,canRedo:Ze,isModified:mi,markClean:Xi,exportImage:P,getVisibleNodes:()=>{if(!q.value)return[];const J=[],z=(sA,nA=!0)=>{var QA;nA&&((QA=sA.parent)!=null&&QA.data&&!rA(sA.parent.data)||(J.push(sA.data._original||sA.data),sA.children&&rA(sA.data)&&sA.children.forEach(pA=>z(pA,!0))))};return z(q.value,!0),J}}),(J,z)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"wrapperRef",ref:o,class:"d3-mindmap-wrapper",style:u.normalizeStyle(B.value)},[(u.openBlock(),u.createElementBlock("svg",{ref_key:"svgRef",ref:n,class:"d3-mindmap-svg",style:u.normalizeStyle(PA.value),role:"tree"},[u.createElementVNode("g",{ref_key:"svgGroupRef",ref:a,class:"mindmap-group"},[...z[0]||(z[0]=[u.createElementVNode("g",{class:"links"},null,-1),u.createElementVNode("g",{class:"nodes"},null,-1),u.createElementVNode("g",{class:"drag-overlay","pointer-events":"none"},null,-1)])],512)],4)),e.showToolbar?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["d3-mindmap-toolbar",f.value])},[J.$slots.toolbar?u.renderSlot(J.$slots,"toolbar",{key:0,zoomIn:Rr,zoomOut:ka,fit:It,toCenter:qt,expandAll:()=>fr(!0),collapseAll:()=>fr(!1),exportImage:P,scale:j.value,visibleNodeCount:bA.value},void 0,!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createElementVNode("button",{class:"toolbar-btn",title:"缩小",onClick:ka},[...z[1]||(z[1]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),u.createElementVNode("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),u.createElementVNode("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)])]),e.showScale?(u.openBlock(),u.createElementBlock("div",qM,u.toDisplayString(tA.value)+"%",1)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"toolbar-btn",title:"放大",onClick:Rr},[...z[2]||(z[2]=[u.createStaticVNode('<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-dc099d20><circle cx="11" cy="11" r="8" data-v-dc099d20></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-dc099d20></line><line x1="11" y1="8" x2="11" y2="14" data-v-dc099d20></line><line x1="8" y1="11" x2="14" y2="11" data-v-dc099d20></line></svg>',1)])]),z[8]||(z[8]=u.createElementVNode("div",{class:"toolbar-divider"},null,-1)),u.createElementVNode("button",{class:"toolbar-btn",title:"适应画布",onClick:qt},[...z[3]||(z[3]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})],-1)])]),e.expandable?(u.openBlock(),u.createElementBlock("div",PM)):u.createCommentVNode("",!0),e.expandable?(u.openBlock(),u.createElementBlock("button",{key:2,class:"toolbar-btn",title:LA.value?"全部收起":"全部展开",onClick:Vl},[LA.value?(u.openBlock(),u.createElementBlock("svg",WM,[...z[5]||(z[5]=[u.createElementVNode("polyline",{points:"4 14 10 14 10 20"},null,-1),u.createElementVNode("polyline",{points:"20 10 14 10 14 4"},null,-1),u.createElementVNode("line",{x1:"14",y1:"10",x2:"21",y2:"3"},null,-1),u.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])])):(u.openBlock(),u.createElementBlock("svg",zM,[...z[4]||(z[4]=[u.createElementVNode("polyline",{points:"15 3 21 3 21 9"},null,-1),u.createElementVNode("polyline",{points:"9 21 3 21 3 15"},null,-1),u.createElementVNode("line",{x1:"21",y1:"3",x2:"14",y2:"10"},null,-1),u.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])]))],8,KM)):u.createCommentVNode("",!0),e.showDownload||e.showCounts?(u.openBlock(),u.createElementBlock("div",XM)):u.createCommentVNode("",!0),e.showDownload?(u.openBlock(),u.createElementBlock("button",{key:4,class:"toolbar-btn",title:"导出图片",onClick:XA},[...z[6]||(z[6]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),u.createElementVNode("polyline",{points:"7 10 12 15 17 10"}),u.createElementVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])])):u.createCommentVNode("",!0),e.showCounts?(u.openBlock(),u.createElementBlock("div",jM,[z[7]||(z[7]=u.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),u.createElementVNode("path",{d:"M12 1v6m0 6v6M5.64 5.64l4.24 4.24m4.24 4.24l4.24 4.24M1 12h6m6 0h6M5.64 18.36l4.24-4.24m4.24-4.24l4.24-4.24"})],-1)),u.createElementVNode("span",$M,u.toDisplayString(bA.value),1)])):u.createCommentVNode("",!0)],64))],2)):u.createCommentVNode("",!0)],4))}}),Ie=(e,A)=>{const t=e.__vccOpts||e;for(const[r,i]of A)t[r]=i;return t},nS=Ie(AL,[["__scopeId","data-v-dc099d20"]]);function Rt(e,A,t,r){return u.defineComponent({name:e,props:{size:{type:Number,default:A},class:{type:[String,Object,Array],default:void 0}},setup(i){return()=>u.h("svg",{width:i.size,height:i.size,viewBox:t,fill:"none",xmlns:"http://www.w3.org/2000/svg",class:i.class,"aria-hidden":!0,innerHTML:r})}})}const eL=Rt("IconThinkOutline14",14,"0 0 14 14",'<path d="M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z" fill="currentColor" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z" fill="currentColor" />'),Nu=Rt("IconChevronDownOutline14",14,"0 0 14 14",'<path d="M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z" fill="currentColor" />'),tL=Rt("IconSearchOutline16",16,"0 0 16 16",'<path d="M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z" fill="currentColor" /> <path d="M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z" fill="currentColor" />'),rL=Rt("IconUploadOutline16",16,"0 0 16 16",'<path d="M8 1.05L12.05 5.1L11.096 6.054L8.675 3.633V10.4H7.325V3.633L4.904 6.054L3.95 5.1L8 1.05Z" fill="currentColor" /> <path d="M2.15 10.25H3.5V12.4C3.5 12.87 3.88 13.25 4.35 13.25H11.65C12.12 13.25 12.5 12.87 12.5 12.4V10.25H13.85V12.4C13.85 13.615 12.865 14.6 11.65 14.6H4.35C3.135 14.6 2.15 13.615 2.15 12.4V10.25Z" fill="currentColor" />'),iL=Rt("IconKnowledgeSearchOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M14.900 11.950L14.888 12.200L14.851 12.447L14.790 12.690L14.706 12.926L14.599 13.152L14.470 13.367L14.321 13.568L14.153 13.753L13.968 13.921L13.767 14.070L13.552 14.199L13.326 14.306L13.090 14.390L12.847 14.451L12.600 14.488L12.350 14.500L12.100 14.488L11.853 14.451L11.610 14.390L11.374 14.306L11.148 14.199L10.933 14.070L10.732 13.921L10.547 13.753L10.379 13.568L10.230 13.367L10.101 13.152L9.994 12.926L9.910 12.690L9.849 12.447L9.812 12.200L9.800 11.950L9.812 11.700L9.849 11.453L9.910 11.210L9.994 10.974L10.101 10.748L10.230 10.533L10.379 10.332L10.547 10.147L10.732 9.979L10.933 9.830L11.148 9.701L11.374 9.594L11.610 9.510L11.853 9.449L12.100 9.412L12.350 9.400L12.600 9.412L12.847 9.449L13.090 9.510L13.326 9.594L13.552 9.701L13.767 9.830L13.968 9.979L14.153 10.147L14.321 10.332L14.470 10.533L14.599 10.748L14.706 10.974L14.790 11.210L14.851 11.453L14.888 11.700L14.900 11.950ZM13.700 11.950L13.693 11.818L13.674 11.687L13.642 11.558L13.597 11.433L13.541 11.314L13.472 11.200L13.394 11.094L13.305 10.995L13.206 10.906L13.100 10.828L12.986 10.759L12.867 10.703L12.742 10.658L12.613 10.626L12.482 10.607L12.350 10.600L12.218 10.607L12.087 10.626L11.958 10.658L11.833 10.703L11.714 10.759L11.600 10.828L11.494 10.906L11.395 10.995L11.306 11.094L11.228 11.200L11.159 11.314L11.103 11.433L11.058 11.558L11.026 11.687L11.007 11.818L11.000 11.950L11.007 12.082L11.026 12.213L11.058 12.342L11.103 12.467L11.159 12.586L11.228 12.700L11.306 12.806L11.395 12.905L11.494 12.994L11.600 13.072L11.714 13.141L11.833 13.197L11.958 13.242L12.087 13.274L12.218 13.293L12.350 13.300L12.482 13.293L12.613 13.274L12.742 13.242L12.867 13.197L12.986 13.141L13.100 13.072L13.206 12.994L13.305 12.905L13.394 12.806L13.472 12.700L13.541 12.586L13.597 12.467L13.642 12.342L13.674 12.213L13.693 12.082L13.700 11.950Z" fill="currentColor" /> <path d="M13.511 13.889L15.161 15.539L15.839 14.861L14.189 13.211Z" fill="currentColor" /> <path d="M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z" fill="currentColor" />'),Qy=Rt("IconBrowseOutline16",16,"0 0 16 16",'<path d="M11.2426 4.80473V6.10551H4.75819V4.80473H11.2426Z" fill="currentColor" /> <path d="M9.40858 7.84478V9.14557H4.75819V7.84478H9.40858Z" fill="currentColor" /> <path d="M9.23438 0.546389C10.1941 0.546389 10.9683 0.544914 11.5859 0.611819C12.2161 0.680096 12.7634 0.825745 13.2393 1.17139C13.5172 1.3733 13.7619 1.61812 13.9639 1.896C14.3096 2.37183 14.4551 2.91922 14.5234 3.54932C14.5903 4.16686 14.5889 4.94133 14.5889 5.90088V10.0981C14.5889 11.0576 14.5903 11.8321 14.5234 12.4497C14.4552 13.0798 14.3094 13.6272 13.9639 14.103C13.7619 14.381 13.5172 14.6257 13.2393 14.8276C12.7633 15.1734 12.2163 15.3189 11.5859 15.3872C10.9683 15.4541 10.1942 15.4536 9.23438 15.4536H6.76563C5.80591 15.4536 5.03168 15.4541 4.41407 15.3872C3.78385 15.3189 3.23665 15.1734 2.76074 14.8276C2.48291 14.6257 2.23802 14.3809 2.03614 14.103C1.69066 13.6272 1.54483 13.0798 1.47657 12.4497C1.40973 11.8321 1.41114 11.0576 1.41114 10.0981V5.90088C1.41113 4.94132 1.40966 4.16686 1.47657 3.54932C1.54488 2.91921 1.69042 2.37184 2.03614 1.896C2.2381 1.61807 2.4828 1.37333 2.76074 1.17139C3.23665 0.825682 3.78386 0.680109 4.41407 0.611819C5.03168 0.544905 5.80591 0.546389 6.76563 0.546389H9.23438ZM6.76563 1.896C5.77586 1.896 5.0876 1.89738 4.55957 1.95459C4.0443 2.01043 3.76214 2.11349 3.55469 2.26416C3.39135 2.38284 3.24761 2.52662 3.12891 2.68994C2.97821 2.89736 2.8752 3.17967 2.81934 3.69483C2.76214 4.22279 2.76075 4.91131 2.76074 5.90088V10.0981C2.76074 11.0876 2.76221 11.7762 2.81934 12.3042C2.87516 12.8194 2.97829 13.1026 3.12891 13.3101C3.24754 13.4733 3.39147 13.6172 3.55469 13.7358C3.76213 13.8865 4.04438 13.9896 4.55957 14.0454C5.0876 14.1026 5.77586 14.103 6.76563 14.103H9.23438C10.2242 14.103 10.9124 14.1026 11.4404 14.0454C11.9556 13.9896 12.2379 13.8865 12.4453 13.7358C12.6086 13.6172 12.7525 13.4733 12.8711 13.3101C13.0217 13.1026 13.1248 12.8195 13.1807 12.3042C13.2378 11.7762 13.2393 11.0876 13.2393 10.0981V5.90088C13.2393 4.91131 13.2379 4.22279 13.1807 3.69483C13.1248 3.17969 13.0218 2.89736 12.8711 2.68994C12.7524 2.52667 12.6086 2.38281 12.4453 2.26416C12.2379 2.11355 11.9556 2.01041 11.4404 1.95459C10.9124 1.8974 10.2241 1.896 9.23438 1.896H6.76563Z" fill="currentColor" />'),py=Rt("IconEditOutline16",16,"0 0 16 16",'<path d="M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z" fill="currentColor" />'),MB=Rt("IconCodeOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z" fill="currentColor" />'),LB=Rt("IconApiOutline14",14,"0 0 14 14",'<path transform="translate(0.6689 1.073)" d="M11.4818 5.57813C11.4818 4.45301 11.4807 3.66237 11.4075 3.05908C11.3359 2.46953 11.2024 2.13852 10.9939 1.89441C10.9247 1.81341 10.8493 1.73801 10.7683 1.66882C10.5242 1.46033 10.1932 1.32686 9.60364 1.25525C9.00034 1.18198 8.20974 1.18091 7.0846 1.18091L5.57813 1.18091C4.45301 1.18091 3.66238 1.18198 3.05908 1.25525C2.46953 1.32686 2.13852 1.46033 1.89441 1.66882C1.81341 1.73801 1.73801 1.81341 1.66882 1.89441C1.46033 2.13852 1.32686 2.46953 1.25525 3.05908C1.18198 3.66238 1.18091 4.45301 1.18091 5.57813L1.18091 6.2771C1.18091 7.40218 1.18197 8.19288 1.25525 8.79614C1.32687 9.38553 1.46036 9.71674 1.66882 9.96082C1.73797 10.0417 1.81347 10.1173 1.89441 10.1864C2.13851 10.3948 2.46965 10.5275 3.05908 10.5991C3.66238 10.6724 4.45298 10.6735 5.57813 10.6735L7.0846 10.6735C8.20977 10.6735 9.00033 10.6724 9.60364 10.5991C10.1931 10.5275 10.5242 10.3948 10.7683 10.1864C10.8493 10.1173 10.9247 10.0417 10.9939 9.96082C11.2024 9.71674 11.3358 9.38553 11.4075 8.79614C11.4808 8.19288 11.4818 7.40218 11.4818 6.2771L11.4818 5.57813ZM12.6627 6.2771C12.6627 7.37222 12.6637 8.247 12.5798 8.93799C12.4942 9.64284 12.3133 10.2359 11.8928 10.7282C11.7834 10.8562 11.6637 10.9751 11.5356 11.0845C11.0434 11.5049 10.4511 11.6867 9.74634 11.7723C9.05525 11.8563 8.17999 11.8552 7.0846 11.8552L5.57813 11.8552C4.48273 11.8552 3.60747 11.8563 2.91638 11.7723C2.21157 11.6867 1.61933 11.5049 1.12708 11.0845C0.99901 10.9751 0.879281 10.8562 0.769898 10.7282C0.349454 10.2359 0.168506 9.64284 0.0828864 8.93799C-0.00101964 8.247 4.88512e-07 7.37222 6.47206e-07 6.2771L6.47206e-07 5.57813C6.47206e-07 4.48273 -0.00106163 3.60747 0.0828864 2.91638C0.168502 2.21168 0.349594 1.61928 0.769898 1.12708C0.879302 0.998981 0.998981 0.879302 1.12708 0.769898C1.61928 0.349594 2.21168 0.168502 2.91638 0.0828864C3.60747 -0.00106163 4.48273 6.47206e-07 5.57813 6.47206e-07L7.0846 6.47206e-07C8.17999 6.47206e-07 9.05525 -0.00106163 9.74634 0.0828864C10.451 0.168505 11.0434 0.349587 11.5356 0.769898C11.6637 0.879302 11.7834 0.998981 11.8928 1.12708C12.3131 1.61928 12.4942 2.21169 12.5798 2.91638C12.6638 3.60747 12.6627 4.48273 12.6627 5.57813L12.6627 6.2771Z" fill="currentColor"/> <path transform="translate(0.6689 1.073)" d="M6.02607 5.50955L6.44306 5.9274L3.84284 8.52762L3.425 8.11063L3.00715 7.69278L4.77253 5.9274L3.00715 4.16202L3.84284 3.32633L6.02607 5.50955Z" fill="currentColor"/> <path transform="translate(0.6689 1.073)" d="M9.23789 7.35397L9.23789 8.53488L6.96238 8.53488L6.96238 7.35397L9.23789 7.35397Z" fill="currentColor"/>'),jn=Rt("IconSparkle16",16,"0 0 16 16",'<path d="M6.1 3.1Q6.6 7.8 11.3 8.3Q6.6 8.8 6.1 13.5Q5.6 8.8 0.9 8.3Q5.6 7.8 6.1 3.1Z" fill="currentColor" /> <path d="M11.9 1Q12.2 3.7 14.9 4Q12.2 4.3 11.9 7Q11.6 4.3 8.9 4Q11.6 3.7 11.9 1Z" fill="currentColor" /> <path d="M12.5 9.4Q12.7 11.4 14.7 11.6Q12.7 11.8 12.5 13.8Q12.3 11.8 10.3 11.6Q12.3 11.4 12.5 9.4Z" fill="currentColor" />'),Sh=Rt("IconQuestionOutline14",14,"0 0 14 14",'<path d="M12.5757 7.00012C12.5757 3.92085 10.0794 1.42463 7.00012 1.42456C3.9208 1.42456 1.42456 3.9208 1.42456 7.00012C1.42463 10.0794 3.92085 12.5757 7.00012 12.5757C10.0793 12.5756 12.5756 10.0793 12.5757 7.00012ZM13.8002 7.00012C13.8001 10.7559 10.7559 13.8001 7.00012 13.8002C3.2443 13.8002 0.199291 10.7559 0.199219 7.00012C0.199219 3.24426 3.24426 0.199219 7.00012 0.199219C10.7559 0.199291 13.8002 3.2443 13.8002 7.00012Z" fill="currentColor" /> <path d="M6.18042 8.68184C6.18043 8.09153 6.32893 7.34655 6.92127 6.8481C7.28566 6.54148 7.76104 6.27318 8.0022 6.10811C8.28964 5.91137 8.42234 5.76562 8.48328 5.58944C8.57774 5.31609 8.53121 5.00904 8.34912 4.76741C8.17409 4.53522 7.83879 4.32222 7.28186 4.32222C5.99668 4.32225 5.46969 5.11832 5.46949 5.78939H4.24414C4.24436 4.39942 5.36327 3.09691 7.28186 3.09688C8.17773 3.09688 8.89489 3.45606 9.32752 4.02999C9.75287 4.59438 9.86938 5.32775 9.64026 5.99019C9.44847 6.5444 9.04722 6.87743 8.69434 7.11898C8.29506 7.39226 8.02318 7.52192 7.70996 7.78548C7.51943 7.94582 7.40577 8.24899 7.40577 8.68184V8.75533H6.18042V8.68184Z" fill="currentColor" /> <path d="M7.39455 9.44026V10.8109H6.16921V9.44026H7.39455Z" fill="currentColor" />'),nL=Rt("IconGlobeOutline14",14,"0 0 14 14",'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.00018 0.353516C10.6708 0.353535 13.6468 3.32958 13.6469 7.00018C13.6468 10.6708 10.6708 13.6468 7.00018 13.6469C3.32957 13.6468 0.353535 10.6708 0.353516 7.00018C0.353535 3.32957 3.32957 0.353531 7.00018 0.353516ZM5.44643 7.59661C5.49463 8.97506 5.70762 10.191 6.02136 11.0793C6.20141 11.5891 6.40328 11.9585 6.59898 12.1889C6.79501 12.4196 6.93213 12.454 7.00018 12.454C7.06822 12.454 7.20533 12.4197 7.40138 12.1889C7.59708 11.9585 7.79895 11.589 7.979 11.0793C8.29274 10.191 8.50574 8.97506 8.55394 7.59661H5.44643ZM1.57861 7.59661C1.80785 9.70467 3.2386 11.4509 5.1715 12.1388C5.07135 11.9317 4.97972 11.7098 4.89746 11.477C4.53084 10.4391 4.30224 9.0828 4.25357 7.59661H1.57861ZM9.74679 7.59661C9.69813 9.0828 9.46952 10.4391 9.1029 11.477C9.0206 11.7099 8.92818 11.9316 8.82797 12.1388C10.7613 11.4511 12.1925 9.70496 12.4218 7.59661H9.74679ZM5.1706 1.8616C3.23814 2.54963 1.80876 4.29604 1.5795 6.40376H4.25357C4.30224 4.91756 4.53083 3.56129 4.89746 2.5234C4.97968 2.29066 5.07051 2.0686 5.1706 1.8616ZM7.00018 1.54637C6.93213 1.54638 6.79503 1.5807 6.59898 1.81145C6.40332 2.04177 6.20139 2.41058 6.02136 2.92012C5.70754 3.80851 5.49461 5.02499 5.44643 6.40376H8.55394C8.50575 5.025 8.29282 3.80851 7.979 2.92012C7.79898 2.41059 7.59705 2.04177 7.40138 1.81145C7.20531 1.58067 7.06823 1.54637 7.00018 1.54637ZM8.82887 1.8616C8.92902 2.0687 9.02064 2.29053 9.1029 2.5234C9.46953 3.56129 9.69812 4.91756 9.74679 6.40376H12.4209C12.1916 4.29575 10.7618 2.54943 8.82887 1.8616Z" fill="currentColor" />'),aL=Rt("IconSkillOutline16",16,"0 0 16 16",'<path d="M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z" fill="currentColor" /> <path d="M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z" fill="currentColor" />'),oL=Rt("IconChecklistOutline14",14,"0 0 14 14",'<path d="M13.3277 9.69629V10.976H7.28086V9.69629H13.3277Z" fill="currentColor" /> <path d="M13.3277 2.97256V4.25225H7.28086V2.97256H13.3277Z" fill="currentColor" /> <path d="M4.64512 10.336C4.64505 9.62755 4.07081 9.05322 3.3623 9.05322C2.65386 9.05329 2.07956 9.62759 2.07949 10.336C2.07949 11.0445 2.65382 11.6188 3.3623 11.6188C4.07085 11.6188 4.64512 11.0446 4.64512 10.336ZM5.92559 10.336C5.92559 11.7515 4.77777 12.8993 3.3623 12.8993C1.94689 12.8993 0.799805 11.7515 0.799805 10.336C0.799871 8.92066 1.94693 7.7736 3.3623 7.77354C4.77773 7.77354 5.92552 8.92062 5.92559 10.336Z" fill="currentColor" /> <path d="M4.64531 3.6123C4.6453 2.90382 4.07098 2.32949 3.3625 2.32949C2.65403 2.32951 2.0797 2.90383 2.07969 3.6123C2.07969 4.32079 2.65402 4.8951 3.3625 4.89512C4.07099 4.89512 4.64531 4.3208 4.64531 3.6123ZM5.925 3.6123C5.925 5.02772 4.77792 6.1748 3.3625 6.1748C1.9471 6.17479 0.8 5.02771 0.8 3.6123C0.800013 2.19691 1.9471 1.04982 3.3625 1.0498C4.77791 1.0498 5.92499 2.1969 5.925 3.6123Z" fill="currentColor" />'),sL=Rt("IconCopyOutline16",16,"0 0 16 16",'<path d="M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z" fill="currentColor" />'),lL=Rt("IconWarningOutline16",14,"0 0 14 14",'<path d="M6.3002 3.32843L7.69986 3.32843L7.69986 7.79657H6.3002L6.3002 3.32843Z" fill="currentColor" /> <path d="M6.3002 9.01935H7.69986V10.6711H6.3002V9.01935Z" fill="currentColor" /> <path d="M12.6328 6.99976C12.6328 3.88874 10.111 1.36694 7 1.36694C3.88899 1.36695 1.3672 3.88875 1.36719 6.99976C1.36719 10.1108 3.88899 12.6326 7 12.6326C10.111 12.6326 12.6328 10.1108 12.6328 6.99976ZM13.8582 6.99976C13.8582 10.7873 10.7876 13.8579 7 13.8579C3.21244 13.8579 0.141846 10.7873 0.141846 6.99976C0.141857 3.2122 3.21245 0.141612 7 0.141602C10.7876 0.141602 13.8581 3.21219 13.8582 6.99976Z" fill="currentColor" />'),gL=Rt("IconCheckOutline14",14,"0 0 14 14",'<path d="M11.5635 4.58984L7.61426 9.07715C7.35154 9.37561 7.11346 9.64812 6.89453 9.84668C6.66593 10.054 6.38519 10.2506 6.01465 10.3164C5.82079 10.3508 5.62207 10.3529 5.42773 10.3213C5.0561 10.2609 4.77266 10.0674 4.54102 9.86328C4.31926 9.66791 4.07752 9.39911 3.81055 9.10449L2.44531 7.59863L3.55664 6.59082L4.92188 8.09766C5.21256 8.41844 5.38878 8.61191 5.53223 8.73828C5.61022 8.80699 5.65253 8.83192 5.66895 8.83984C5.69648 8.84429 5.72449 8.84467 5.75195 8.83984C5.72657 8.84451 5.75564 8.85422 5.88672 8.73535C6.02833 8.60692 6.20225 8.41088 6.48828 8.08594L10.4385 3.59961L11.5635 4.58984Z" fill="currentColor" />'),cL=Rt("IconLikeOutline16",16,"0 0 16 16",'<path d="M8.27868 0.811572C8.81991 0.142194 9.79022 0.0421835 10.4538 0.557601L10.5823 0.669306L10.6066 0.693544L10.6097 0.695652L10.6392 0.725159C11.355 1.44679 11.6337 2.49468 11.3716 3.47669L11.3706 3.48091L11.3611 3.51674L11.3601 3.51885L10.889 5.22604C10.8796 5.25997 10.8707 5.29157 10.8627 5.32088C10.8934 5.32095 10.927 5.32194 10.9628 5.32194H11.9007C12.4264 5.32194 12.7831 5.319 13.0651 5.36725C14.8182 5.66719 15.9851 7.34568 15.6565 9.09357C15.6036 9.37487 15.477 9.7092 15.294 10.2022L14.3371 12.7798C14.1402 13.3104 13.9774 13.7518 13.8102 14.1024C13.6376 14.4645 13.4386 14.7793 13.1442 15.0424C12.9712 15.197 12.7802 15.3303 12.5751 15.4386C12.226 15.6231 11.8608 15.7 11.4612 15.7358C11.0743 15.7705 10.6035 15.7695 10.0375 15.7695H4.87377C4.08053 15.7695 3.42928 15.7702 2.90734 15.7137C2.37212 15.6557 1.88991 15.5311 1.46676 15.2237C1.22415 15.0474 1.01078 14.8339 0.834466 14.5914C0.527021 14.1682 0.401373 13.686 0.343384 13.1508C0.286822 12.6287 0.287531 11.9769 0.287531 11.1833V9.51405C0.287531 8.84778 0.281347 8.36714 0.399237 7.9565C0.671152 7.00935 1.41115 6.26832 2.35829 5.99638C2.76894 5.87849 3.24958 5.88573 3.91585 5.88573C4.11983 5.88573 4.14548 5.88319 4.16244 5.88046C4.23532 5.86863 4.30409 5.83663 4.35845 5.78667C4.3711 5.77504 4.38761 5.75604 4.51442 5.59488L8.25655 0.838972L8.2576 0.837918L8.27868 0.811572ZM1.69122 11.1833C1.69122 12.0082 1.69217 12.5711 1.73865 13.0001C1.78371 13.4157 1.86473 13.6221 1.96943 13.7662C2.0592 13.8898 2.16733 13.9989 2.29085 14.0887C2.43501 14.1934 2.64216 14.2744 3.05803 14.3195C3.45897 14.3629 3.97637 14.3656 4.7157 14.3659C4.30801 13.8053 4.06453 13.1171 4.06444 12.371V8.59406H5.46813V12.371C5.46838 13.4733 6.36166 14.3669 7.46407 14.3669H10.0375C10.6286 14.3669 11.0269 14.3663 11.3369 14.3385C11.6339 14.3118 11.7956 14.2638 11.9196 14.1983C12.0241 14.1431 12.1213 14.0747 12.2094 13.996C12.314 13.9025 12.4151 13.7678 12.5435 13.4986C12.6774 13.2176 12.8162 12.845 13.0219 12.2909L13.9788 9.71322C14.1848 9.15816 14.2531 8.96731 14.2781 8.83433C14.4618 7.85692 13.8093 6.91895 12.8291 6.75092C12.6957 6.7281 12.4928 6.72458 11.9007 6.72458H10.9628C10.7737 6.72458 10.5693 6.72657 10.4 6.70666C10.2211 6.68562 9.96702 6.63024 9.74771 6.43161C9.64454 6.33811 9.55957 6.2261 9.4969 6.10177C9.3639 5.83784 9.37799 5.57899 9.40521 5.40097C9.431 5.23261 9.48672 5.03616 9.53694 4.85404L10.008 3.14579L10.0175 3.11102C10.1488 2.61338 10.0078 2.08338 9.64654 1.71681L9.6086 1.67887L9.55064 1.64304C9.48795 1.62043 9.41425 1.63814 9.36938 1.69362L9.35779 1.70627L9.35884 1.70732L5.61672 6.46217C5.51822 6.58735 5.42237 6.7133 5.30689 6.81942C5.05075 7.05471 4.73126 7.20939 4.38796 7.26519C4.23315 7.29032 4.07513 7.28837 3.91585 7.28837C3.15356 7.28837 2.91916 7.2957 2.7461 7.34528C2.26364 7.48379 1.88564 7.86081 1.74708 8.34325C1.69738 8.51636 1.69122 8.7511 1.69122 9.51405V11.1833Z" fill="currentColor" />'),uL=Rt("IconDislikeOutline16",16,"0 0 16 16",'<path d="M7.72451 15.1086C7.18929 15.7705 6.22975 15.8694 5.57357 15.3597L5.44643 15.2492L5.42247 15.2253L5.41934 15.2232L5.39016 15.194C4.68239 14.4804 4.40679 13.4441 4.66589 12.473L4.66693 12.4689L4.67631 12.4334L4.67735 12.4314L5.14318 10.7431C5.15243 10.7096 5.1613 10.6783 5.16923 10.6493C5.13878 10.6493 5.10558 10.6483 5.07023 10.6483H4.14274C3.62288 10.6483 3.27015 10.6512 2.9912 10.6035C1.25757 10.3069 0.103662 8.64702 0.42863 6.91854C0.480965 6.64037 0.606164 6.30975 0.787119 5.82223L1.73336 3.27321C1.92812 2.74852 2.08912 2.31209 2.25442 1.96535C2.42515 1.60724 2.62191 1.29594 2.91304 1.03578C3.08408 0.882951 3.273 0.751121 3.47579 0.643944C3.82102 0.461504 4.18214 0.38551 4.57731 0.350066C4.95993 0.315784 5.42553 0.316718 5.98521 0.316718H11.0916C11.876 0.316718 12.52 0.31607 13.0362 0.37195C13.5655 0.429293 14.0423 0.552534 14.4608 0.856536C14.7007 1.03085 14.9117 1.24193 15.086 1.48181C15.3901 1.90027 15.5143 2.37709 15.5717 2.90638C15.6276 3.42269 15.6269 4.06721 15.6269 4.85202V6.50274C15.6269 7.1616 15.633 7.6369 15.5164 8.04299C15.2475 8.97962 14.5158 9.71242 13.5791 9.98133C13.173 10.0979 12.6977 10.0908 12.0389 10.0908C11.8372 10.0908 11.8118 10.0933 11.795 10.096C11.723 10.1077 11.6549 10.1393 11.6012 10.1887C11.5887 10.2002 11.5724 10.219 11.447 10.3784L7.74639 15.0815L7.74535 15.0825L7.72451 15.1086ZM14.2388 4.85202C14.2388 4.03628 14.2379 3.47965 14.1919 3.05541C14.1473 2.64443 14.0672 2.4403 13.9637 2.29779C13.8749 2.17562 13.768 2.06769 13.6458 1.9789C13.5033 1.87532 13.2984 1.79523 12.8872 1.75067C12.4907 1.70773 11.979 1.70511 11.2479 1.70482C11.6511 2.25917 11.8918 2.93968 11.8919 3.67755V7.41251H10.5038V3.67755C10.5036 2.58745 9.62023 1.70378 8.53007 1.70378H5.98521C5.40065 1.70378 5.00679 1.70442 4.70028 1.73192C4.40651 1.7583 4.24662 1.80571 4.12399 1.87052C4.02069 1.92511 3.92452 1.99276 3.8374 2.07061C3.73401 2.16306 3.634 2.2962 3.50705 2.56249C3.37462 2.84027 3.23734 3.20873 3.03393 3.75675L2.08768 6.30578C1.88395 6.85467 1.81646 7.0434 1.79172 7.1749C1.61005 8.14146 2.25533 9.06902 3.22464 9.23517C3.35654 9.25774 3.55717 9.26123 4.14274 9.26123H5.07023C5.25717 9.26123 5.4593 9.25926 5.62672 9.27894C5.80364 9.29975 6.05492 9.35452 6.27179 9.55094C6.37381 9.6434 6.45784 9.75417 6.51982 9.87712C6.65133 10.1381 6.6374 10.3941 6.61048 10.5701C6.58498 10.7366 6.52988 10.9309 6.48022 11.111L6.01439 12.8003L6.00501 12.8347C5.87513 13.3268 6.01464 13.8509 6.37184 14.2134L6.40935 14.2509L6.46667 14.2863C6.52866 14.3087 6.60155 14.2912 6.64591 14.2363L6.65738 14.2238L6.65633 14.2228L10.3569 9.52072C10.4543 9.39693 10.5491 9.27238 10.6633 9.16744C10.9166 8.93476 11.2325 8.7818 11.572 8.72662C11.7251 8.70177 11.8814 8.70369 12.0389 8.70369C12.7927 8.70369 13.0245 8.69645 13.1956 8.64742C13.6727 8.51045 14.0465 8.13761 14.1836 7.66053C14.2327 7.48935 14.2388 7.25721 14.2388 6.50274V4.85202Z" fill="currentColor" />'),hL=Rt("IconBranchOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.0762 1.37207C14.0846 1.37228 14.9021 2.19077 14.9023 3.19922C14.9022 4.20772 14.0847 5.02518 13.0762 5.02539C12.2967 5.02539 11.6325 4.53691 11.3701 3.84961H4.35547C4.79397 4.26458 5.15861 4.7644 5.41699 5.33496L7.10645 9.06738C7.88526 10.7875 9.55104 11.9228 11.4189 12.0371C11.7085 11.4109 12.3411 10.9756 13.0762 10.9756C14.0843 10.9759 14.9023 11.7936 14.9023 12.8018C14.9023 13.81 14.0843 14.6277 13.0762 14.6279C12.2534 14.6279 11.5574 14.0832 11.3291 13.335C8.9868 13.1879 6.89981 11.7612 5.92285 9.60352L4.23242 5.87109C3.67503 4.64033 2.44878 3.84961 1.09766 3.84961V2.54883C1.10665 2.54883 1.11601 2.54975 1.125 2.5498L11.3701 2.54883C11.6326 1.86151 12.2969 1.37207 13.0762 1.37207ZM13.0762 12.2764C12.7858 12.2764 12.5508 12.5114 12.5508 12.8018C12.5508 13.0921 12.7858 13.3281 13.0762 13.3281C13.3664 13.3279 13.6025 13.092 13.6025 12.8018C13.6025 12.5115 13.3664 12.2766 13.0762 12.2764ZM13.0762 2.67285C12.7855 2.67285 12.55 2.90861 12.5498 3.19922C12.5499 3.48987 12.7855 3.72559 13.0762 3.72559C13.3667 3.72538 13.6024 3.48975 13.6025 3.19922C13.6023 2.90874 13.3666 2.67306 13.0762 2.67285Z" fill="currentColor" />'),CL=Rt("IconCheckOutline16",16,"0 0 16 16",'<path d="M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z" fill="currentColor" />'),IL=Rt("IconChevronLeftOutline14",14,"0 0 14 14",'<path d="M8.5 2.15137L8.07617 2.57617L5.34863 5.30273C5.09294 5.55843 4.86618 5.78438 4.70215 5.98828C4.53117 6.20088 4.38244 6.44405 4.33398 6.75C4.30778 6.91565 4.30778 7.08435 4.33398 7.25C4.38244 7.55595 4.53117 7.79912 4.70215 8.01172C4.86618 8.21561 5.09294 8.44157 5.34863 8.69727L8.07617 11.4238L8.5 11.8486L9.34863 11L8.92383 10.5762L6.19727 7.84863C5.92268 7.57405 5.75151 7.40124 5.6377 7.25977C5.53096 7.12709 5.52187 7.07728 5.51953 7.0625C5.51297 7.02105 5.51297 6.97895 5.51953 6.9375C5.52187 6.92272 5.53096 6.87291 5.6377 6.74023C5.75152 6.59876 5.92268 6.42595 6.19727 6.15137L8.92383 3.42383L9.34863 3L8.5 2.15137Z" fill="currentColor" />'),dL=Rt("IconChevronRightOutline14",14,"0 0 14 14",'<path d="M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z" fill="currentColor" />'),fL=Rt("IconCloseOutline16",16,"0 0 16 16",'<path d="M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z" fill="currentColor" /><path d="M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z" fill="currentColor" />'),BL=["data-side"],QL=u.defineComponent({name:"HarnessTooltip",__name:"Tooltip",props:{label:{},side:{default:"bottom"},delayMs:{default:0},disabled:{type:Boolean,default:!1}},setup(e){const A=e,t=u.ref(!1),r=u.ref(A.side),i=u.ref(),n=u.ref(),a=u.ref(null),o={hover:!1,focus:!1};let s;function l(){s!==void 0&&(clearTimeout(s),s=void 0)}function g(){if(A.disabled)return;const B=n.value;if(!B)return;const Q=B.getBoundingClientRect();r.value=A.side,a.value={x:A.side==="right"?Q.right+10:Q.left+Q.width/2,top:Q.top,bottom:Q.bottom},t.value=!0}function c(){if(l(),A.delayMs<=0){g();return}s=setTimeout(()=>{s=void 0,g()},A.delayMs)}function C(){l(),!o.hover&&!o.focus&&(t.value=!1,a.value=null)}function h(){o.hover=!0,c()}function I(){o.hover=!1,l(),t.value=!1,a.value=null}function d(){o.focus=!0,l(),g()}function f(){o.focus=!1,C()}return u.watch(()=>A.disabled,B=>{B&&(l(),o.hover=!1,o.focus=!1,t.value=!1,a.value=null)}),u.watch([t,a,r,()=>A.label],async()=>{if(!t.value||!a.value)return;await u.nextTick();const B=i.value,Q=a.value;if(!B||!Q)return;const p=12;B.style.left=`${Q.x}px`;const E=B.getBoundingClientRect();let m=0;if(E.right>window.innerWidth-p&&(m=window.innerWidth-p-E.right),E.left+m<p&&(m=p-E.left),B.style.left=`${Q.x+m}px`,A.side==="right")return;const v=Q.bottom+8+E.height<=window.innerHeight-p,w=Q.top-8-E.height>=p;r.value==="bottom"&&!v&&w&&(r.value="top"),r.value==="top"&&!w&&v&&(r.value="bottom")}),u.onBeforeUnmount(()=>{l()}),(B,Q)=>(u.openBlock(),u.createElementBlock("span",{ref_key:"rootRef",ref:n,class:"dsh-tooltip","data-testid":"harness-tooltip",onMouseenter:h,onMouseleave:I,onFocusin:d,onFocusout:f},[u.renderSlot(B.$slots,"default",{},void 0,!0),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[t.value&&e.label?(u.openBlock(),u.createElementBlock("span",{key:0,ref_key:"bubbleRef",ref:i,class:"dsh-tooltip__bubble","data-side":r.value,style:u.normalizeStyle(a.value?{left:`${a.value.x}px`,top:`${r.value==="right"?a.value.top+(a.value.bottom-a.value.top)/2:r.value==="top"?a.value.top-8:a.value.bottom+8}px`}:void 0),role:"tooltip"},u.toDisplayString(e.label),13,BL)):u.createCommentVNode("",!0)]))],544))}}),Nh=Ie(QL,[["__scopeId","data-v-807a5031"]]),pL={class:"chat-actionbar","aria-label":"回复操作"},EL=["disabled","aria-label"],mL=["aria-label","aria-pressed","data-active"],vL=["aria-label","aria-pressed","data-active"],yL=["aria-disabled","data-unavailable"],wL={class:"chat-actionbar__status","aria-live":"polite"},DL=u.defineComponent({name:"ChatActionbar",__name:"ChatActionbar",props:{message:{},text:{default:void 0},feedback:{default:void 0},showFeedback:{type:Boolean,default:!0},showBranch:{type:Boolean,default:!0},branchUnavailable:{type:Boolean,default:!1}},emits:["copy","feedback","branch"],setup(e,{emit:A}){const t=e,r=A,i=u.ref(!1),n=u.ref(!1),a=u.ref(null),o=u.computed(()=>t.text??t.message.content??""),s=u.computed(()=>o.value.trim().length>0),l=u.computed(()=>t.feedback!==void 0?t.feedback??null:a.value),g=u.computed(()=>i.value?"已复制":n.value?"复制失败,请重试":s.value?"复制":"没有可复制内容"),c=u.computed(()=>l.value==="up"?"已标记为好的回答":"好的回答"),C=u.computed(()=>l.value==="down"?"已标记为有问题的回答":"有问题的回答"),h=u.computed(()=>t.branchUnavailable?"当前消息无法分支":"在新对话中分支");let I;u.watch(()=>t.feedback,E=>{E!==void 0&&(a.value=E)},{immediate:!0});async function d(){if(!s.value||i.value)return;const E=o.value;if(I&&clearTimeout(I),!await p(E)){i.value=!1,n.value=!0,I=setTimeout(()=>{n.value=!1},2e3);return}n.value=!1,i.value=!0,I=setTimeout(()=>{i.value=!1},1e3),r("copy",{message:t.message,text:E})}function f(E){t.feedback===void 0&&(a.value=E),r("feedback",{message:t.message,rating:E})}function B(E){f(l.value===E?null:E)}function Q(){t.branchUnavailable||r("branch",{message:t.message})}async function p(E){var v;if(typeof navigator<"u"&&((v=navigator.clipboard)!=null&&v.writeText))try{return await navigator.clipboard.writeText(E),!0}catch{}if(typeof document>"u")return!1;const m=document.createElement("textarea");m.value=E,m.setAttribute("readonly",""),m.style.position="fixed",m.style.opacity="0",document.body.append(m),m.select();try{return document.execCommand("copy")}finally{m.remove()}}return u.onBeforeUnmount(()=>{I&&clearTimeout(I)}),(E,m)=>(u.openBlock(),u.createElementBlock("div",pL,[u.renderSlot(E.$slots,"default",{message:e.message,copied:i.value,copyFailed:n.value,copy:d,feedback:l.value,setFeedback:f,branch:Q},()=>[u.createVNode(Nh,{label:g.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{class:u.normalizeClass(["chat-actionbar__action",{"chat-actionbar__action--failed":n.value}]),type:"button",disabled:!s.value,"aria-label":i.value?"已复制":n.value?"复制失败":"复制","data-testid":"chat-actionbar-copy",onClick:d},[i.value?(u.openBlock(),u.createBlock(u.unref(CL),{key:0,class:"chat-actionbar__success-icon",size:16})):n.value?(u.openBlock(),u.createBlock(u.unref(lL),{key:1,class:"chat-actionbar__error-icon",size:16})):(u.openBlock(),u.createBlock(u.unref(sL),{key:2,class:"chat-actionbar__icon",size:16}))],10,EL)]),_:1},8,["label"]),e.showFeedback?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(Nh,{label:c.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":c.value,"aria-pressed":l.value==="up","data-active":l.value==="up"||void 0,"data-testid":"chat-actionbar-like",onClick:m[0]||(m[0]=v=>B("up"))},[u.createVNode(u.unref(cL),{size:16})],8,mL)]),_:1},8,["label"]),u.createVNode(Nh,{label:C.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":C.value,"aria-pressed":l.value==="down","data-active":l.value==="down"||void 0,"data-testid":"chat-actionbar-dislike",onClick:m[1]||(m[1]=v=>B("down"))},[u.createVNode(u.unref(uL),{size:16})],8,vL)]),_:1},8,["label"])],64)):u.createCommentVNode("",!0),e.showBranch?(u.openBlock(),u.createBlock(Nh,{key:1,label:h.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":"在新对话中分支","aria-disabled":e.branchUnavailable||void 0,"data-unavailable":e.branchUnavailable||void 0,"data-testid":"chat-actionbar-branch",onClick:Q},[u.createVNode(u.unref(hL),{size:16})],8,yL)]),_:1},8,["label"])):u.createCommentVNode("",!0),u.createElementVNode("span",wL,u.toDisplayString(i.value?"已复制":n.value?"复制失败":""),1)],!0)]))}}),aS=Ie(DL,[["__scopeId","data-v-c3efe3b7"]]);function Il(e,A={}){const t=e.trim();if(!t||!kL(t)||t.includes("imageView2"))return e;const{width:r,height:i}=A,n=Ey(r),a=Ey(i);if(n===void 0&&a===void 0)return e;let o="imageView2/2";n!==void 0&&(o+=`/w/${n}`),a!==void 0&&(o+=`/h/${a}`);const s=t.includes("?")?"&":"?";return`${t}${s}${o}`}function kL(e){if(e.startsWith("blob:")||e.startsWith("data:"))return!1;try{return new URL(e,typeof location<"u"?location.href:"https://example.com").hostname.includes("yxuer.com")}catch{return/(?:^|[/.])yxuer\.com(?:[/:]|$)/i.test(e)}}function Ey(e){if(e===void 0||!Number.isFinite(e))return;const A=Math.round(e);return A>0?A:void 0}const oS=new Set(["avif","bmp","gif","heic","jpeg","jpg","png","svg","webp"]),bL=new Set(["csv","docx","htm","html","json","markdown","md","pdf","pptx","txt","xls","xlsx"]),sS=new Set(["aac","flac","m4a","mp3","oga","ogg","wav"]),lS=new Set(["avi","m4v","mkv","mov","mp4","webm"]),rh={maxFiles:10,imageMaxSize:20*1024*1024,documentMaxSize:50*1024*1024,audioMaxSize:100*1024*1024,videoMaxSize:500*1024*1024};let my=0;function Jn(e){const A=e.lastIndexOf(".");return A>-1?e.slice(A+1).toLowerCase():""}function Q0(e){const A=Jn(e.name);return oS.has(A)||e.type.startsWith("image/")?"image":sS.has(A)||e.type.startsWith("audio/")?"audio":lS.has(A)||e.type.startsWith("video/")?"video":bL.has(A)?"document":"unsupported"}function IE(e){return`${e.name}:${e.size}:${e.lastModified}`}function gS(e,A=rh){const t=Q0(e);if(t==="unsupported"){const n=Jn(e.name);return{code:"unsupported_type",message:`不支持 ${n?n.toUpperCase():"该类型"} 文件`}}const r={image:A.imageMaxSize,document:A.documentMaxSize,audio:A.audioMaxSize,video:A.videoMaxSize}[t];return e.size<=r?null:{code:"file_too_large",message:`${{image:"图片",document:"文档",audio:"音频",video:"视频"}[t]}大小不能超过 ${SL(r)} MB`}}function _v(e){const A=GB(e)&&GB(e.result)?e.result:e;if(!GB(A))throw new Error("上传响应缺少完整文件元数据");if(A.status!==1)throw new Error("文件状态异常");const t=["id","fileKey","fileName","fileType","fileMineType","mimeType","url"],r=["bucketType","size","duration","w","h","status"],i=t.every(a=>typeof A[a]=="string"&&A[a].trim().length>0),n=r.every(a=>typeof A[a]=="number"&&Number.isFinite(A[a]));if(!i||!n)throw new Error("上传响应缺少完整文件元数据");return A}function cS(e){return{filename:e.fileName,url_type:e.fileType,size:e.size,original_url:e.url}}function Qf(e,A){const t=A.filter(a=>a.status==="uploaded"),r=t.map(a=>a.resource),i=[],n=e.trim();n&&i.push({type:"input_text",content:n});for(const a of t)i.push(uS(a.resource));return{message:{id:Fv(),role:"user",content:n,resource_files:r},modelInput:{role:"user",content:i},attachments:t}}function uS(e){const A=e.url_type.toLowerCase();return oS.has(A)?{type:"image_url",image_url:{url:e.original_url}}:lS.has(A)?{type:"video_url",video_url:{url:e.original_url}}:sS.has(A)?{type:"input_audio",input_audio:{url:e.original_url}}:{type:"file",file:{file_url:e.original_url,filename:e.filename}}}function Fv(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(my+=1,`chat-message-${my}`)}function SL(e){const A=e/1048576;return Number.isInteger(A)?String(A):A.toFixed(1)}function GB(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const mg=u.shallowReactive(new Map),NL=new Set(["avif","bmp","gif","heic","jpeg","jpg","png","svg","webp"]),xL=new Set(["aac","flac","m4a","mp3","oga","ogg","wav"]),_L=new Set(["avi","m4v","mkv","mov","mp4","webm"]),FL=new Set(["c","cpp","css","csv","go","h","hpp","java","js","json","jsx","kt","less","log","markdown","md","mjs","php","py","rb","rs","sass","scss","sh","sql","swift","toml","ts","tsx","txt","vue","xml","yaml","yml"]);function p0(e){const A=(e.url_type||Jn(e.filename)).toLowerCase();return NL.has(A)?"image":A==="pdf"?"pdf":A==="docx"?"docx":A==="xls"||A==="xlsx"?"excel":A==="pptx"?"pptx":A==="html"||A==="htm"?"html":FL.has(A)?"text":xL.has(A)?"audio":_L.has(A)?"video":"unsupported"}function RL(e,A){const t=mg.get(e);return mg.set(e,A),()=>{mg.get(e)===A&&(t?mg.set(e,t):mg.delete(e))}}function hS(e){return mg.get(e)}const ML="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3410.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203410.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%237BCD70'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(6.5%206.81343060178915)'%3e%3cg%20transform='translate(3.0%200.0)'%3e%3cpath%20d='M0.5,0%20L0.5,5.77305572'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(0.0%201.346484336095219)'%3e%3cpath%20d='M0.5,0%20L0.5,3.26919267'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(6.0%201.346484336095219)'%3e%3cpath%20d='M0.5,0%20L0.5,3.26919267'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",LL="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwLjAgMjAuMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My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%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M1.5,0%20C2.32842712,0%203,0.671572875%203,1.5%20C3,2.32842712%202.32842712,3%201.5,3%20C0.671572875,3%200,2.32842712%200,1.5%20C0,0.671572875%200.671572875,0%201.5,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3477.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203477.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%23EAB246'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3cg%20transform='translate(4.0%202.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%203,0%203,3%200,3%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3cg%20transform='translate(2.091270824181265%206.145946252421709)'%3e%3cpath%20d='M0,5.81865254%20L5.65345286,1.19961923%20C6.47672505,0.526982216%207.68235829,0.615972219%208.39794932,1.40219555%20L10.9087292,4.16080157%20L10.9087292,4.16080157'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(0.37214794237459126%207.145946252390459)'%3e%3cpath%20d='M0,1.53800387%20L2.18352899,0%20L4.44906963,2.42680588'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",TL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M6.79777025,0%20C6.95334091,0%207.09446453,0.0615185355%207.19838283,0.161446649%20L7.34735284,0.281406864%20L7.48942472,0.412782123%20L7.53633577,0.459706506%20C8.63821558,1.56216923%208.54480253,3.30249867%207.44294131,4.40570504%20L4.88700484,6.96207999%20C3.78360038,8.06454272%201.978594,8.06454272%200.875189539,6.96207999%20L0.827553346,6.91443055%20C-0.275851115,5.81194923%20-0.275851115,4.00634582%200.827553346,2.90226566%20L2.00133368,1.80407893%20C2.03604749,1.76182095%202.07628352,1.72434094%202.12074025,1.69238253%20L2.13278875,1.68113481%20C2.2343271,1.61461522%202.35583472,1.57451384%202.48663902,1.57451384%20C2.83346099,1.57451384%203.11453684,1.85565113%203.11453684,2.20234126%20C3.11453684,2.40169552%203.02149566,2.57924222%202.87659759,2.69428504%20L1.74705087,3.82327752%20C1.14791697,4.42087553%201.14791697,5.39554181%201.74705087,5.99458994%20L1.7951333,6.04266698%20C2.3942672,6.64100864%203.36829905,6.64100864%203.96743294,6.04266698%20L6.52409456,3.48703568%20C7.12328424,2.88796896%207.30211519,1.85710125%206.70298129,1.25875959%20L6.65532651,1.21105437%20C6.60529177,1.16108102%206.55176148,1.11677801%206.49728293,1.0718243%20C6.44325062,1.03893633%206.39516819,0.997329053%206.35470904,0.949103281%20L6.29804925,0.868582717%20C6.24825507,0.783226098%206.21970264,0.683945193%206.21970264,0.578002801%20C6.21970264,0.258753393%206.47848504,0%206.79777025,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i3'%3e%3cpath%20d='M3.41446942,0.827460556%20C4.51787388,-0.275820185%206.32288026,-0.275820185%207.42628472,0.827460556%20L7.47392091,0.875109998%20C8.57732537,1.97837215%208.57732537,3.7832505%207.4731214,4.88645687%20L6.2866418,5.98116704%20C6.24648013,6.03171672%206.1986766,6.07594537%206.14486741,6.11195667%20L6.12742684,6.12807531%20C6.03038808,6.18297535%205.91862339,6.21690443%205.79884495,6.21690443%20C5.45494213,6.21690443%205.1760417,5.93803527%205.1760417,5.59409665%20C5.1760417,5.38894191%205.27540463,5.20693331%205.42857674,5.09343356%20L6.55434902,3.96698809%20C7.15348292,3.36866502%207.15348292,2.39362691%206.55434902,1.79457878%20L6.50671283,1.7476544%20C5.90750456,1.14853191%204.93317521,1.14853191%204.3354916,1.7476544%20L1.77803047,4.30330429%20C1.17891516,4.90237101%200.95142538,5.77266587%201.55055928,6.37173258%20L1.59747033,6.41791332%20C1.69088338,6.51131589%201.82598275,6.60992402%201.8980878,6.77187264%20C1.9328202,6.84370933%201.95226886,6.92417238%201.95226886,7.00928324%20C1.95226886,7.31059207%201.70795208,7.55495581%201.4065351,7.55495581%20C1.30767419,7.55495581%201.21500488,7.52846325%201.13496045,7.48248702%20C1.08347544,7.45262943%201.03829357,7.41589306%200.999879681,7.3729658%20C0.94677704,7.32773323%200.894771407,7.28045561%200.844662297,7.23040789%20L0.797825619,7.18422716%20C-0.305578843,6.08022136%20-0.244871516,4.48711625%200.858532945,3.3838355%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3568.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203568.0)'%3e%3cpath%20d='M10,20%20C15.5228475,20%2020,15.5228475%2020,10%20C20,4.4771525%2015.5228475,0%2010,0%20C4.4771525,0%200,4.4771525%200,10%20C0,15.5228475%204.4771525,20%2010,20%20Z'%20stroke='%23FFFFFF'%20stroke-width='1'%20fill='none'%20stroke-miterlimit='5'%3e%3c/path%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%237756D9'%3e%3c/polygon%3e%3cg%20transform='translate(3.998884398294778%204.000000000000257)'%3e%3cg%20transform='translate(0.0%204.211072964564665)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%208.31752422,0%208.31752422,7.78892704%200,7.78892704%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3cg%20transform='translate(3.699741255288245%200.0)'%3e%3cg%20clip-path='url(%23i3)'%3e%3cpolygon%20points='1.66742241e-16,0%208.30137435,0%208.30137435,7.55495581%201.66742241e-16,7.55495581%201.66742241e-16,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",YL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M5.3657441,0.00360871716%20C5.69905725,0.00360871716%206.03231181,0.170707006%206.23225869,0.438014339%20C6.66551599,1.03951825%206.63222568,2.30929783%206.0656607,4.18062539%20C6.59887679,5.18309764%207.29879339,6.08536085%208.13194444,6.85388962%20C8.83186104,6.7202433%209.5317337,6.61997551%2010.2315917,6.61997551%20C11.7980229,6.65341279%2012.0313333,7.38857771%2011.9979698,7.82298333%20C11.9979698,8.95910191%2010.8981448,8.95910191%2010.3315945,8.95910191%20C9.43171633,8.8922714%208.56520174,8.55813357%207.86534372,7.95662966%20C6.498918,8.25738895%205.19914611,8.69179458%203.89931565,9.22640924%20C2.86620307,11.0642995%201.89968575,12%201.06646147,12%20C0.899863478,12%200.699858015,11.9665627%200.566564978,11.8662803%20C0.199946879,11.6992407%200,11.3316656%200,10.9640905%20C0,10.6633459%200.0666538417,9.82791315%203.23280652,8.45786578%20C3.96602807,7.12121164%204.53259305,5.75116427%204.99914065,4.31428639%20C4.59923225,3.51230566%203.73271766,1.54075438%204.33257294,0.538282123%20C4.53259305,0.170707006%204.93248681,-0.0298285623%205.3657441,0.00360871716%20Z%20M2.19965001,10.0618419%20C1.69973887,10.2623188%201.29977188,10.5965154%200.999822272,11.030921%20L1.099825,10.997469%20C1.5663726,10.8304295%201.93297606,10.4962476%202.19965001,10.0618419%20Z%20M5.66570836,5.85143205%20L5.63240341,5.91826256%20L5.59905452,5.88481059%20C5.29909026,6.65341279%204.96585035,7.42195625%204.59923225,8.15712117%20L4.66588609,8.12372794%20L4.66588609,8.19055845%20C5.39910764,7.92319238%206.19896839,7.68932232%206.93217529,7.52222403%20L6.8988264,7.48878676%20L6.99882913,7.48878676%20C6.498918,6.98755063%206.03231181,6.419484%205.66570836,5.85143205%20Z%20M10.1982868,7.62243308%20C9.89833716,7.62243308%209.63173643,7.62243308%209.33177218,7.68932232%20C9.66502674,7.85636187%209.99833989,7.92319238%2010.3315945,7.95662966%20C10.5649049,7.99002288%2010.7982006,7.95662966%2010.9981622,7.88979915%20C10.9981622,7.78953137%2010.8648545,7.62243308%2010.1982868,7.62243308%20Z%20M5.43239795,1.00608097%20L5.3324538,1.00608097%20C5.29909026,1.00608097%205.23245107,1.00608097%205.19914611,1.03951825%20C5.06579449,1.60758488%205.16579723,2.20908879%205.39910764,2.74370346%20C5.59905452,2.17563683%205.59905452,1.57413292%205.43239795,1.00608097%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3220.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203220.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%23D94112'%3e%3c/polygon%3e%3cg%20transform='translate(3.999121241374005%204.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,4.38589899e-17%2012.0008788,4.38589899e-17%2012.0008788,12%200,12%200,4.38589899e-17'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",UL="data: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GZpbGw9IiNEMUI3QUUiPjwvcG9seWdvbj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1LjAgMS4wKSI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wIDE1LjApIiBmb250LWZhbWlseT0iQXJpYWwtQm9sZE1ULCBBcmlhbCIgZm9udC1zaXplPSIxNy4wIiBmb250LXdlaWdodD0iYm9sZCIgZmlsbD0iI0ZGRkZGRiIgdGV4dC1hbmNob3I9ImxlZnQiIGxldHRlci1zcGFjaW5nPSIxLjI3NzkzMDgiPlQ8L3RleHQ+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",OL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M4.07346234,0.924561739%20C4.16910367,0.991510664%204.25228299,1.07468999%204.31923192,1.17033132%20L5.89857636,3.42653766%20C6.21529087,3.87898695%206.10525608,4.50251741%205.65280678,4.81923192%20C5.48472325,4.9368904%205.28451654,5%205.07934444,5%20L1.92065556,5%20C1.36837081,5%200.920655562,4.55228475%200.920655562,4%20C0.920655562,3.7948279%200.983765165,3.59462119%201.10142364,3.42653766%20L2.68076808,1.17033132%20C2.99748259,0.717882019%203.62101305,0.607847231%204.07346234,0.924561739%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3444.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203444.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%231F81B9'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(12.999999999990301%205.999999999969331)%20rotate(90.00000000000001)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0.920655562,0.743707797%206.0794303,0.743707797%206.0794303,5%200.920655562,5%200.920655562,0.743707797'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",HL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M4.9775995,0%20C7.42512481,0%209.56926817,1.47512623%2010,3.46062629%20C9.8416204,3.44317044%209.68201932,3.43144869%209.5206254,3.43144869%20C7.15614152,3.43144869%205.2887438,5.17863257%205.28866499,7.33143569%20C5.28866499,7.68942681%205.34508982,8.03448694%205.44227685,8.3639831%20C5.2887438,8.37595839%205.13375284,8.38356485%204.9775995,8.38356485%20C4.35623687,8.38356485%203.85670774,8.25815581%203.23402512,8.13612092%20L1.49399698,9%20L1.9918515,7.51763788%20C0.745658795,6.65565067%200,5.54432766%200,4.19094376%20C0,1.84637989%202.2414289,0%204.9775995,0%20Z%20M6.84422887,2.09536461%20C6.47114335,2.09536461%206.09681665,2.3394734%206.09681665,2.71025897%20C6.09681665,3.07962076%206.47114335,3.32706469%206.84422887,3.32706469%20C7.21902841,3.32706469%207.46728582,3.07962076%207.46728582,2.71025897%20C7.46728582,2.3394734%207.21902841,2.09536461%206.84422887,2.09536461%20Z%20M3.36054754,2.09536461%20C2.98746203,2.09536461%202.61096817,2.3394734%202.61096817,2.71025897%20C2.61096817,3.07962076%202.98754083,3.32706469%203.36054754,3.32706469%20C3.73365276,3.32706469%203.98191017,3.07962076%203.98191017,2.71025897%20C3.98191017,2.3394734%203.73365276,2.09536461%203.36054754,2.09536461%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i3'%3e%3cpath%20d='M4.00264496,0%20C6.11727234,0%208,1.68052391%208,3.7421353%20C8,4.90507254%207.29619833,5.93479653%206.35155624,6.7113194%20L6.70553393,8%20L5.41470002,7.22553849%20C4.94400879,7.35477188%204.4713059,7.48425019%204.00264496,7.48425019%20C1.7635368,7.48425019%200,5.80731836%200,3.7421353%20C0,1.68052391%201.7635368,0%204.00264496,0%20Z%20M2.70490063,2.06520347%20C2.47054222,2.06520347%202.23422803,2.3239764%202.23422803,2.58093287%20C2.23422803,2.84148143%202.47054222,3.09690718%202.70490063,3.09690718%20C3.06092723,3.09690718%203.29398178,2.84148143%203.29398178,2.58093287%20C3.29398178,2.3239764%203.06092723,2.06520347%202.70490063,2.06520347%20Z%20M5.29347887,2.06520347%20C5.06079684,2.06520347%204.8260659,2.3239764%204.8260659,2.58093287%20C4.8260659,2.84148143%205.06079684,3.09690718%205.29347887,3.09690718%20C5.6461527,3.09690718%205.8825414,2.84148143%205.8825414,2.58093287%20C5.8825414,2.3239764%205.6461527,2.06520347%205.29347887,2.06520347%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3501.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203501.0)'%3e%3cpath%20d='M10,20%20C15.5228475,20%2020,15.5228475%2020,10%20C20,4.4771525%2015.5228475,0%2010,0%20C4.4771525,0%200,4.4771525%200,10%20C0,15.5228475%204.4771525,20%2010,20%20Z'%20stroke='%23FFFFFF'%20stroke-width='1'%20fill='none'%20stroke-miterlimit='5'%3e%3c/path%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%233ECD75'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%204.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%2010,0%2010,9%200,9%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3cg%20transform='translate(6.0%204.0)'%3e%3cg%20clip-path='url(%23i3)'%3e%3cpolygon%20points='0,0%208,0%208,8%200,8%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",VL="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMC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+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",ZL=new Set(["pdf","xps","oxps","djvu","djv"]),qL=new Set(["doc","docx","docm","dot","dotx","dotm","odt","rtf","wps"]),PL=new Set(["xls","xlsx","xlsm","xlsb","xlt","xltx","xltm","xlam","csv","ods","et"]),KL=new Set(["ppt","pptx","pptm","pot","potx","potm","pps","ppsx","ppsm","odp","dps"]),zL=new Set(["jpg","jpeg","png","gif","bmp","webp","svg","ico","tiff","tif"]),WL=new Set(["mp3","wav","flac","aac","ogg","wma","m4a","opus"]),XL=new Set(["mp4","avi","mov","wmv","flv","mkv","webm","m4v","3gp","mpg","mpeg"]);function Rv(e,A=""){const t=jL(e);return t==="link"||t==="url"||t==="webloc"||t==="wechat_mp"?t==="wechat_mp"||A.includes("mp.weixin.qq.com")?HL:TL:ZL.has(t)?YL:qL.has(t)?VL:PL.has(t)?LL:KL.has(t)?UL:zL.has(t)?GL:WL.has(t)?ML:XL.has(t)?OL:JL}function jL(e){const A=e.trim().toLowerCase();return A?A.includes(".")||A.includes("/")?Jn(A):A.replace(/^\./,""):""}/*!
|
|
1
|
+
"use strict";var QM=Object.defineProperty;var pM=(e,A,t)=>A in e?QM(e,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[A]=t;var ge=(e,A,t)=>pM(e,typeof A!="symbol"?A+"":A,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),EM=require("d3"),mM=require("gsap"),lI=require("@vueuse/core");var RB=typeof document<"u"?document.currentScript:null;function vM(e){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(A,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return A.default=e,Object.freeze(A)}const he=vM(EM),Al={name:"default",nodeStyle:{colors:["rgb(195, 202, 255)","rgb(186, 211, 238)","rgb(162, 220, 208)","rgb(157, 236, 187)","rgb(205, 254, 165)"],textColor:"rgb(0, 0, 0)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:8,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(195, 202, 255)":t===2?"rgb(186, 211, 238)":t===3?"rgb(162, 220, 208)":t===4?"rgb(157, 236, 187)":"rgb(195, 202, 255)"},width:2.5,style:"solid",curve:"bezier"},background:"#f8f9fa",grid:{show:!0,color:"#e0e0e0",size:20}},Z8={name:"dark",nodeStyle:{colors:["rgb(88, 86, 214)","rgb(52, 168, 83)","rgb(251, 188, 4)","rgb(234, 67, 53)","rgb(66, 133, 244)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:8,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(88, 86, 214)":t===2?"rgb(52, 168, 83)":t===3?"rgb(251, 188, 4)":t===4?"rgb(234, 67, 53)":"rgb(66, 133, 244)"},width:2.5,style:"solid",curve:"bezier"},background:"#2b2d30",grid:{show:!0,color:"#3c3f41",size:20}},q8={name:"colorful",nodeStyle:{colors:["rgb(255, 107, 107)","rgb(255, 184, 77)","rgb(72, 219, 251)","rgb(129, 236, 236)","rgb(255, 159, 243)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:10,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(255, 107, 107)":t===2?"rgb(255, 184, 77)":t===3?"rgb(72, 219, 251)":t===4?"rgb(129, 236, 236)":"rgb(255, 159, 243)"},width:2.5,style:"solid",curve:"bezier"},background:"#fafafa",grid:{show:!0,color:"#eeeeee",size:20}},P8={name:"minimal",nodeStyle:{colors:["rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)","rgb(255, 255, 255)"],textColor:"rgb(51, 51, 51)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:400,borderRadius:6,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:2,borderColor:"rgb(189, 189, 189)",borderStyle:"solid"},linkStyle:{color:"rgb(189, 189, 189)",width:2,style:"solid",curve:"bezier"},background:"#ffffff",grid:{show:!1}},K8={name:"professional",nodeStyle:{colors:["rgb(79, 129, 189)","rgb(155, 187, 89)","rgb(192, 80, 77)","rgb(128, 100, 162)","rgb(75, 172, 198)"],textColor:"rgb(255, 255, 255)",fontSize:20,fontFamily:'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:500,borderRadius:6,padding:[18,27.5],minWidth:100,minHeight:55,borderWidth:0,borderStyle:"none"},linkStyle:{color:(e,A)=>{const t=A;return t===1?"rgb(79, 129, 189)":t===2?"rgb(155, 187, 89)":t===3?"rgb(192, 80, 77)":t===4?"rgb(128, 100, 162)":"rgb(75, 172, 198)"},width:2.5,style:"solid",curve:"bezier"},background:"#f5f5f5",grid:{show:!0,color:"#e0e0e0",size:20}},z8={default:Al,dark:Z8,colorful:q8,minimal:P8,professional:K8};function yM(e){return z8[e]||Al}function W8(e,A){return{...e,...A,nodeStyle:{...e.nodeStyle,...A.nodeStyle},linkStyle:{...e.linkStyle,...A.linkStyle},layoutConfig:{...e.layoutConfig,...A.layoutConfig},grid:{...e.grid,...A.grid}}}function X8(e,A,t){const r=u.computed(()=>{let I;return typeof e=="function"?I=e()||Al:I=u.unref(e)||Al,(A||t)&&(I=W8(I,{nodeStyle:A,linkStyle:t})),I}),i=(I,d)=>{var Q;const f=r.value.nodeStyle;if(f!=null&&f.backgroundColor)return typeof f.backgroundColor=="function"?f.backgroundColor(I,d):f.backgroundColor;if(f!=null&&f.colors)return typeof f.colors=="function"?f.colors(I,d):Array.isArray(f.colors)?f.colors[Math.min(d,f.colors.length-1)]:String(f.colors);const B=(Q=Al.nodeStyle)==null?void 0:Q.colors;return Array.isArray(B)&&B[Math.min(d,4)]||"rgb(195, 202, 255)"},n=(I,d)=>{var Q;const f=r.value.nodeStyle;if(f!=null&&f.textColor)return typeof f.textColor=="function"?f.textColor(I,d):f.textColor;const B=(Q=Al.nodeStyle)==null?void 0:Q.textColor;return typeof B=="string"?B:"rgb(0, 0, 0)"},a=(I,d)=>{const f=r.value.nodeStyle;if(f!=null&&f.borderColor)return typeof f.borderColor=="function"?f.borderColor(I,d):f.borderColor};return{finalTheme:r,getNodeColor:i,getNodeTextColor:n,getNodeBorderColor:a,getLinkColor:(I,d)=>{const f=r.value.linkStyle;if(f!=null&&f.color)return typeof f.color=="function"?f.color(I,d):f.color;const B=d;return B===1?"rgb(195, 202, 255)":B===2?"rgb(186, 211, 238)":B===3?"rgb(162, 220, 208)":B===4?"rgb(157, 236, 187)":"rgb(195, 202, 255)"},getNodeStyle:(I,d)=>{const f=r.value.nodeStyle||{};return{backgroundColor:i(I,d),color:n(I,d),fontSize:f.fontSize?typeof f.fontSize=="number"?`${f.fontSize}px`:f.fontSize:"20px",fontFamily:f.fontFamily||'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif',fontWeight:f.fontWeight||500,borderRadius:f.borderRadius!==void 0?`${f.borderRadius}px`:"8px",borderWidth:f.borderWidth!==void 0?`${f.borderWidth}px`:"0",borderColor:a(I,d),borderStyle:f.borderStyle||"none"}},getNodePadding:()=>{const I=r.value.nodeStyle,d=I==null?void 0:I.padding;return Array.isArray(d)?d:typeof d=="number"?[d,d]:[18,27.5]},getNodeMinSize:()=>{const I=r.value.nodeStyle;return{minWidth:(I==null?void 0:I.minWidth)||100,minHeight:(I==null?void 0:I.minHeight)||55}},getLinkWidth:()=>{var I;return((I=r.value.linkStyle)==null?void 0:I.width)||2.5},getLinkStyle:()=>{var I;return((I=r.value.linkStyle)==null?void 0:I.style)||"solid"},getBackgroundStyle:()=>{const I=r.value.background||"#f8f9fa",d=r.value.grid;if((d==null?void 0:d.show)===!1)return{backgroundColor:I};const f=(d==null?void 0:d.color)||"#e0e0e0",B=(d==null?void 0:d.size)||20;return{backgroundColor:I,backgroundImage:`radial-gradient(circle, ${f} 1px, transparent 1px)`,backgroundSize:`${B}px ${B}px`}}}}function gI(e,A){const r=document.createElement("canvas").getContext("2d");return r?(r.font=A,r.measureText(e).width):100}function CE(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(A=>CE(A));if(e instanceof Object){const A=e,t={};for(const r of Object.keys(A))t[r]=CE(A[r]);return t}return e}function wM(e,A){let t=null;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{Reflect.apply(e,this,r),t=null},A)}}function DM(e,A){let t=null,r=0;return function(...i){const n=Date.now();r||(r=n);const a=A-(n-r);a<=0||a>A?(t&&(clearTimeout(t),t=null),r=n,Reflect.apply(e,this,i)):t||(t=setTimeout(()=>{r=Date.now(),t=null,Reflect.apply(e,this,i)},a))}}function j8(e,A){return new Promise((t,r)=>{try{let n=new XMLSerializer().serializeToString(e);A&&(n=n.replace("<svg",`<svg style="background-color: ${A}"`));const a=new Blob([n],{type:"image/svg+xml;charset=utf-8"});t(a)}catch(i){r(i)}})}function $8(e,A={}){return new Promise((t,r)=>{try{const{scale:i=2,backgroundColor:n="#ffffff",quality:a=1}=A;let s=new XMLSerializer().serializeToString(e);n&&(s=s.replace("<svg",`<svg style="background-color: ${n}"`));const l=document.createElement("canvas"),g=l.getContext("2d");if(!g){r(new Error("Failed to get canvas context"));return}const c=new Image,C=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),h=URL.createObjectURL(C);c.onload=()=>{l.width=c.width*i,l.height=c.height*i,g.scale(i,i),g.drawImage(c,0,0),URL.revokeObjectURL(h),l.toBlob(I=>{I?t(I):r(new Error("Failed to convert canvas to blob"))},"image/png",a)},c.onerror=()=>{URL.revokeObjectURL(h),r(new Error("Failed to load SVG image"))},c.src=h}catch(i){r(i)}})}function kM(e,A){const t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=A,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}function bM(e){return e.includes("gradient")}function SM(e){const A=e.match(/#[0-9a-fA-F]{6}|rgb\([^)]+\)/);return A?A[0]:"#000000"}function NM(e,A,t){e&&(t.clear(),e.each(r=>{var a;const i=(a=r.data)==null?void 0:a.id;if(!i)return;const n=A.get(i);n?(r.x0=n.x,r.y0=n.y):r.parent&&t.add(i)}))}function xM(e,A){e&&e.each(t=>{var i;const r=(i=t.data)==null?void 0:i.id;!r||t.x===void 0||t.y===void 0||A.set(r,{x:t.x,y:t.y})})}function uy(e){const A=t=>{t&&(t._prevX=t.x,t._prevY=t.y,t.children&&t.children.forEach(A))};A(e)}const _M=50;function hy(e){if(!(e!=null&&e.nodeData))return"";const A=t=>{const r={};return Object.keys(t||{}).forEach(i=>{if(!(i==="expanded"||i==="_nodeWidth"||i==="_original")){if(i==="children"){Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map(A));return}r[i]=t[i]}}),r};return JSON.stringify({nodeData:A(e.nodeData)})}function FM(e){const{getData:A,applyHistorySnapshot:t,onHistoryChange:r,onModified:i}=e;let n="";const a=u.ref(!1),o=u.shallowRef(null),{commit:s,undo:l,redo:g,clear:c,canUndo:C,canRedo:h}=lI.useManualRefHistory(o,{capacity:_M,clone:!0,setSource:(k,b)=>{k.value=b,b&&t(b)}}),I=()=>{const k={canUndo:C.value,canRedo:h.value,isModified:a.value};r(k)};return{historySource:o,isModifiedState:a,canUndoRef:C,canRedoRef:h,commitHistory:s,clearHistoryStack:c,resetHistoryBaseline:()=>{const k=A();o.value=k?lI.cloneFnJSON(k):null,s(),c()},markClean:()=>{n=hy(A()),a.value=!1,i(!1),I()},recordHistoryAfterChange:()=>{const k=A();k&&(o.value=lI.cloneFnJSON(k),s(),I())},syncModifiedFlag:()=>{const k=hy(A()),b=!!n&&k!==n;b!==a.value&&(a.value=b,i(b)),I()},emitHistoryState:I,canUndo:()=>C.value,canRedo:()=>h.value,isModified:()=>a.value,undo:()=>C.value?(l(),!0):!1,redo:()=>h.value?(g(),!0):!1}}const VI=()=>Math.random().toString(36).substring(2,15);function AS(e){var r;const A=e;if((r=A==null?void 0:A.nodeData)!=null&&r.topic)return A.nodeData;const t=(i,n=!1)=>{var o;if(!i)return{topic:"思维导图",id:VI(),expanded:!0};const a={topic:((o=i.data)==null?void 0:o.text)||"未命名",id:VI(),expanded:!0};return n&&(a.root=!0),i.children&&i.children.length>0&&(a.children=i.children.map(s=>t(s,!1))),a};return t(e,!0)}function ZI(e,A){var n,a;const{expandable:t,depth:r=0,maxExpandedDepth:i=1}=A;if(!t){e.expanded=!0,(n=e.children)==null||n.forEach(o=>ZI(o,{expandable:t,depth:r+1,maxExpandedDepth:i}));return}e.expanded=r<=i,(a=e.children)==null||a.forEach(o=>ZI(o,{expandable:t,depth:r+1,maxExpandedDepth:i}))}function xv(e){var A;e.expanded=!0,(A=e.children)==null||A.forEach(xv)}function eS(e,A){var t;e.id&&A.set(e.id,e.expanded!==!1),(t=e.children)==null||t.forEach(r=>eS(r,A))}function tS(e,A){var t;e.id&&A.has(e.id)&&(e.expanded=A.get(e.id)),(t=e.children)==null||t.forEach(r=>tS(r,A))}function pg(e){const A=he.hierarchy(e,t=>t.children);return A.each(t=>{t.data&&(t.data._original=t.data)}),A}function Cy(e={}){return{...e,id:e.id||VI(),topic:e.topic??"新节点",expanded:e.expanded??!0}}function Eg(e){var t;const A={id:e.id||VI(),topic:e.topic||"未命名",expanded:e.expanded!==!1};return e.root&&(A.root=!0),(t=e.children)!=null&&t.length&&(A.children=e.children.map(r=>Eg(r))),A}function Xu(e,A,t=null){if(e.id===A)return{node:e,parent:t,index:-1};const r=e.children;if(!r)return null;for(let i=0;i<r.length;i++){const n=r[i];if(n.id===A)return{node:n,parent:e,index:i};const a=Xu(n,A,e);if(a)return a}return null}function RM(e,A,t){if(A===t)return!0;const r=Xu(e,A);if(!r)return!1;const i=n=>{var a;return n.id===t?!0:!!((a=n.children)!=null&&a.some(o=>i(o)))};return i(r.node)}function MM(e,A,t,r){var c;if(!A||!t||A===t)return!1;const i=Xu(e,A);if(!i||!i.parent||RM(e,A,t))return!1;const n=Xu(e,t);if(!n||(r==="before"||r==="after")&&!n.parent)return!1;const a=i.parent.children;if(!a)return!1;const[o]=a.splice(i.index,1);if(!o)return!1;if(a.length===0&&delete i.parent.children,r==="child")return n.node.children||(n.node.children=[]),n.node.children.push(o),n.node.expanded=!0,!0;const s=Xu(e,t);if(!((c=s==null?void 0:s.parent)!=null&&c.children))return i.parent.children||(i.parent.children=[]),i.parent.children.splice(Math.min(i.index,i.parent.children.length),0,o),!1;const l=s.parent.children,g=r==="before"?s.index:s.index+1;return l.splice(g,0,o),s.parent.expanded=!0,!0}function LM(e,A,t){const{resetCollapse:r=!1,resetHistory:i=!1,commitHistory:n=!1,fit:a=!1}=A;t.setInternalUpdate(!0);const o=AS(e),s=new Map;!r&&t.previousRoot&&eS(t.previousRoot,s),r?ZI(o,{expandable:t.expandable,maxExpandedDepth:0}):s.size>0&&tS(o,s),t.expandable||xv(o),t.hasTree&&!r&&t.snapshotPositions();const l=pg(o);t.layout(l),t.hasTree&&!r&&t.restorePositions(l),t.onAfterSetNodeData(l,o),t.render(),i?(t.resetHistory(),t.markClean()):(n&&t.commitHistory(),t.syncModified()),a&&t.nextTick(()=>t.fitWindow()),t.nextTick(()=>{t.setInternalUpdate(!1)})}const No={offsetX:-18,offsetY:-27.5,height:55},GM=6,TM=160,Iy=32;function YM(e,A){const t=A(e),r=e.y+No.offsetX,i=e.x+No.offsetY,n=e.parent,a=n?A(n):0;return{id:e.data.id,left:r,right:r+t,top:i,bottom:i+No.height,width:t,height:No.height,cx:e.y,cy:e.x,topic:e.data.topic||"",depth:e.depth,hasParent:!!n,parentCx:n?n.y:void 0,parentCy:n?n.x:void 0,parentRight:n?n.y+No.offsetX+a:void 0}}function rS(e,A=new Set){var t,r;return(t=e.data)!=null&&t.id&&A.add(e.data.id),(r=e.children)==null||r.forEach(i=>rS(i,A)),A}function iS(e,A,t){return e>=t.left&&e<=t.right&&A>=t.top&&A<=t.bottom}function UM(e,A,t){const r=e<t.left?t.left-e:e>t.right?e-t.right:0,i=A<t.top?t.top-A:A>t.bottom?A-t.bottom:0;return Math.hypot(r,i)}function JM(e,A){if(iS(e.x,e.y,A)){const t=(e.y-A.top)/Math.max(A.height,1);return t<.3?"before":t>.7?"after":"child"}return e.x>A.right?"child":e.y<A.cy?"before":"after"}function OM(e){const{pointer:A,dragBox:t,boxes:r,draggingId:i,blockedIds:n,maxDistance:a=TM}=e,o=r.filter(C=>C.id!==i&&!n.has(C.id));let s=null,l=A,g=0;if(t){const C={x:t.x,y:t.y+t.height/2};s=o.find(h=>C.x>=h.left-Iy&&C.x<=h.right+Iy&&C.y>=h.top&&C.y<=h.bottom)??null,s&&(l=C);for(const h of o){if(s)break;const I=Math.max(t.x,h.left),d=Math.min(t.x+t.width,h.right),f=Math.max(t.y,h.top),B=Math.min(t.y+t.height,h.bottom),Q=Math.max(0,d-I),p=Math.max(0,B-f),E=Q*p;E>g&&(g=E,s=h,l={x:(I+d)/2,y:(f+B)/2})}}if(s||(s=o.find(C=>iS(A.x,A.y,C))??null),!s){let C=1/0;for(const h of o){const I=UM(A.x,A.y,h);I<C&&(C=I,s=h)}if(!s||C>a)return null}let c=JM(l,s);return(c==="before"||c==="after")&&!s.hasParent&&(c="child"),{targetId:s.id,position:c}}function HM(e,A,t){return{x:e.x-A.x,y:e.y-A.y,width:Math.max(t,80),height:No.height}}function VM(e,A,t,r){const i=(A+r)/2;return`M ${A} ${e} C ${i} ${e}, ${i} ${t}, ${r} ${t}`}const dy=8;function ZM(e,A,t){const r=A.find(o=>o.id===e.targetId);if(!r)return null;const i=e.position==="child"?r.right:r.parentRight,n=e.position==="child"?r.cy:r.parentCy;if(i===void 0||n===void 0)return null;const a={x:t.x+dy,y:t.y+dy,width:t.width,height:t.height};return{slot:a,linkPath:VM(n,i,a.y+a.height/2,a.x)}}const qM={key:0,class:"toolbar-scale"},PM={key:1,class:"toolbar-divider"},KM=["title"],zM={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},WM={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},XM={key:3,class:"toolbar-divider"},jM={key:5,class:"toolbar-count",title:"节点总数"},$M={class:"count-value"},fy=18,By=.3,AL=u.defineComponent({__name:"D3MindMap",props:{data:{default:()=>({nodeData:{id:"root",topic:"思维导图",root:!0,children:[]}})},readonly:{type:Boolean,default:!0},expandable:{type:Boolean,default:!0},height:{default:"100%"},width:{default:"100%"},showToolbar:{type:Boolean,default:!1},showDownload:{type:Boolean,default:!0},showCounts:{type:Boolean,default:!1},showScale:{type:Boolean,default:!0},toolbarPosition:{default:"bottom"},theme:{},nodeStyle:{},linkStyle:{},layoutConfig:{},streaming:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},canDrop:{},dragStyle:{}},emits:["change","node-click","node-dblclick","node-contextmenu","node-mouseenter","node-mouseleave","node-expand","node-collapse","node-drag-start","node-drag","node-drag-end","zoom","pan","download","ready","modified","history-change"],setup(e,{expose:A,emit:t}){const r=e,i=t,n=u.ref(null),a=u.ref(null),o=u.ref(null),s=u.ref(800),{getNodeColor:l,getNodeTextColor:g,getNodeBorderColor:c,getLinkColor:C,getNodeStyle:h,getLinkWidth:I,getBackgroundStyle:d}=X8(()=>r.theme,r.nodeStyle,r.linkStyle),f=u.computed(()=>`toolbar-${r.toolbarPosition}`),B=u.computed(()=>d());let Q=null,p=he.zoomIdentity,E=!1,m=!1,v=null,w=!1,k=null,b={vx:0,vy:0},S="",N=!1,F=!1,x=null,M=null,G=!0,Z=!1;const O=new Set,Y=new Map,AA=new Map,K=u.ref(null),q=u.ref(null),j=u.ref(1),tA=u.computed(()=>Math.round(j.value*100)),rA=J=>r.expandable?(J==null?void 0:J.expanded)!==!1:!0,cA=J=>r.expandable&&J.expanded===!1?null:J.children,bA=u.computed(()=>{if(!q.value)return 0;let J=0;const z=(sA,nA=!0)=>{nA&&(sA.parent&&sA.parent.data&&!rA(sA.parent.data)||(J++,sA.children&&rA(sA.data)&&sA.children.forEach(QA=>z(QA,!0))))};return z(q.value,!0),J}),LA=u.computed(()=>{if(!K.value)return!0;const J=z=>z.children&&z.children.length>0?z.expanded===!1?!1:z.children.every(sA=>J(sA)):!0;return J(K.value)}),$A=u.ref(!0),PA=u.computed(()=>{const J={height:typeof r.height=="number"?`${r.height}px`:r.height,width:typeof r.width=="number"?`${r.width}px`:r.width},z=r.dragStyle;return z&&(z.floatBorderColor&&(J["--mg-drag-float-border"]=z.floatBorderColor),z.floatBgColor&&(J["--mg-drag-float-bg"]=z.floatBgColor),z.floatTextColor&&(J["--mg-drag-float-text"]=z.floatTextColor),z.slotColor&&(J["--mg-drag-slot-fill"]=z.slotColor),z.slotBorderColor&&(J["--mg-drag-slot-border"]=z.slotBorderColor),z.linkColor&&(J["--mg-drag-link"]=z.linkColor),z.targetBorderColor&&(J["--mg-drag-target-border"]=z.targetBorderColor),z.targetLinkColor&&(J["--mg-drag-target-link"]=z.targetLinkColor),z.draggingOpacity!==void 0&&(J["--mg-drag-opacity"]=String(z.draggingOpacity))),J}),xA={expandDuration:420,collapseDuration:320,expandEase:he.easeCubicOut,collapseEase:he.easeQuadOut,expandStartDelay:10,transformDuration:.28,centerDuration:1.05,transformEase:"power1.out",centerEase:"power2.out",nodeScaleFrom:.8,nodeScaleTo:1,linkFadeDuration:150},GA=J=>{const z=J-18;return r.expandable?z+fy:z},YA=J=>{if(J.parent){const z=J.x0===void 0||J.y0===void 0,sA=J.x0!==void 0&&J.y0!==void 0&&Math.abs(J.x0-J.parent.x)<2&&Math.abs(J.y0-J.parent.y)<2;if(z||sA)return N?xA.expandStartDelay:0}return 0},me=J=>{a.value&&he.select(a.value).attr("transform",`translate(${J.x},${J.y}) scale(${J.k})`)},ne=(J,z={})=>{if(z.duration===0){p=J,j.value=J.k,me(J),z.syncZoom&&Q&&n.value&&(w=!0,he.select(n.value).call(Q.transform,J),setTimeout(()=>{w=!1},0)),z.onComplete&&z.onComplete();return}const{duration:sA=.55,ease:nA="power2.out",syncZoom:QA=!1,onComplete:pA}=z;v==null||v.kill();const KA={x:p.x,y:p.y,k:p.k};return v=mM.gsap.to(KA,{x:J.x,y:J.y,k:J.k,duration:sA,ease:nA,overwrite:"auto",onUpdate:()=>{const TA=he.zoomIdentity.translate(KA.x,KA.y).scale(KA.k);p=TA,j.value=TA.k,me(TA)},onComplete:()=>{const TA=he.zoomIdentity.translate(J.x,J.y).scale(J.k);p=TA,j.value=TA.k,me(TA),QA&&Q&&n.value&&(w=!0,he.select(n.value).call(Q.transform,TA),setTimeout(()=>{w=!1},0)),pA&&pA()}}),v},Ge=AS,NA=(J,z=0,sA=1)=>{ZI(J,{expandable:r.expandable,depth:z,maxExpandedDepth:sA})},UA=J=>{var nA,QA;if((nA=J.data)!=null&&nA._nodeWidth)return J.data._nodeWidth;const z=gI(((QA=J.data)==null?void 0:QA.topic)||"",'20px "Google Sans"'),sA=Math.max(z+36,100);return J.data&&(J.data._nodeWidth=sA),sA},aA=J=>{var z;return Array.isArray((z=J==null?void 0:J.data)==null?void 0:z.children)&&J.data.children.length>0},FA=J=>{var sA;return(((sA=J.data)==null?void 0:sA._nodeWidth)||UA(J))-18+fy},te=J=>{if(!r.expandable)return;const z=J.datum(),sA=FA(z);J.append("circle").attr("class","expand-button").attr("r",12).attr("cx",sA).attr("cy",0).attr("fill-opacity",1).style("fill",()=>l(z.data,z.depth)).style("cursor","pointer").style("pointer-events","all").on("click",function(nA){var KA;nA.stopPropagation(),nA.preventDefault();const QA=he.select(this.parentNode).datum(),pA=(KA=QA==null?void 0:QA.data)!=null&&KA.id?RA(QA.data.id):null;pA&&Ve(pA)}),J.append("text").attr("class","expand-symbol").attr("x",sA).attr("y",0).attr("text-anchor","middle").style("font-size","20px").style("font-family",'"Google Sans", "PingFang SC", "Microsoft YaHei", sans-serif').style("fill","rgb(0, 0, 0)").style("pointer-events","none").style("dominant-baseline","middle").style("user-select","none").text(z.data.expanded!==!1?"<":">")},xe=(J,z)=>{const sA=!J.select(".expand-button").empty();if(!r.expandable){sA&&(J.select(".expand-button").remove(),J.select(".expand-symbol").remove());return}const nA=aA(z);if(nA&&!sA){te(J);return}if(!nA&&sA){J.select(".expand-button").remove(),J.select(".expand-symbol").remove();return}if(nA&&sA){const QA=FA(z);J.select(".expand-button").attr("cx",QA),J.select(".expand-symbol").attr("x",QA).text(z.data.expanded!==!1?"<":">"),J.select(".expand-button").style("fill",l(z.data,z.depth))}},tt=J=>{NM(J,Y,O)},st=()=>{xM(q.value,Y)},dr=()=>52,Me=J=>{const z=he.hierarchy(J.data,cA),sA=dr();let nA=1;z.each(jA=>{jA.children&&jA.children.length>0&&(nA=Math.max(nA,jA.children.length))});const QA=Math.min(140,Math.max(80,90+(nA-1)*6)),pA={};z.each(jA=>{const _e=jA.depth||0,U=UA(jA);pA[_e]=Math.max(pA[_e]||0,U)});const KA=Math.max(...Object.values(pA),100),TA=Math.max(KA+50,200);he.tree().nodeSize([QA,TA]).separation((jA,_e)=>{const yA=(sA+16)/QA;return jA.parent===_e.parent?Math.max(1,yA):1.2})(z);const re={0:0},Ue=Math.max(...Array.from(Object.keys(pA)).map(Number));for(let jA=1;jA<=Ue;jA++){const _e=pA[jA-1]||100;re[jA]=re[jA-1]+_e+80}z.each(jA=>{const _e=jA.depth||0;jA.y=re[_e]});const Pt=new Map;z.each(jA=>{Pt.set(jA.data.id,{x:jA.x,y:jA.y})});const ni=jA=>{if(!jA.parent)return{x:0,y:0};const _e=Pt.get(jA.parent.data.id);return _e||ni(jA.parent)};J.each(jA=>{const _e=Pt.get(jA.data.id);if(_e)jA.x=_e.x,jA.y=_e.y;else{const U=ni(jA);jA.x=U.x,jA.y=U.y}});let sr=1/0;J.each(jA=>{jA.y!==void 0&&jA.y<sr&&(sr=jA.y)}),sr!==1/0&&sr!==0&&J.each(jA=>{jA.y=(jA.y||0)-sr});const An=J.x||0;J.each(jA=>{jA.x=(jA.x||0)-An});let gt=1/0;if(J.each(jA=>{jA.x!==void 0&&jA.x<gt&&(gt=jA.x)}),gt<0){const jA=-gt+8;J.each(_e=>{_e.x=(_e.x||0)+jA})}},wt=()=>{if(!n.value||!a.value)return;const J=Ge(r.data);NA(J,0,0),K.value=J;const z=pg(J);Me(z);let sA=z.y||0;z.each(nA=>{nA.y<sA&&(sA=nA.y)}),sA!==0&&z.each(nA=>{nA.y=nA.y-sA}),z.y!==0&&(z.y=0),q.value=z,fe(),BA(),Zt(),u.nextTick(()=>{It(),er(),Xi()})};let De=null;const Ar=()=>{a.value&&he.select(a.value).select(".drag-overlay").selectAll("*").remove()},_r=()=>{if(!a.value)return;const J=he.select(a.value);J.selectAll(".node").classed("is-dragging",!1).classed("is-drop-target",!1),J.selectAll(".link").classed("is-drop-link",!1),Ar()},Fr=J=>{J.select(".drop-preview-link").empty()&&J.append("path").attr("class","drop-preview-link").attr("fill","none"),J.select(".drop-slot").empty()&&J.append("rect").attr("class","drop-slot").attr("rx",8).attr("ry",8),J.select(".drop-float").empty()&&J.append("rect").attr("class","drop-float").attr("rx",8).attr("ry",8),J.select(".drop-float-label").empty()&&J.append("text").attr("class","drop-float-label").attr("dominant-baseline","middle")},ii=(J,z,sA,nA)=>{if(!a.value)return;const QA=he.select(a.value);QA.selectAll(".node").classed("is-drop-target",re=>!!(J&&re.data.id===J.targetId)),QA.selectAll(".link").classed("is-drop-link",re=>J?re.target.data.id===J.targetId||re.source.data.id===J.targetId:!1);const pA=QA.select(".drag-overlay");Fr(pA),pA.select(".drop-float").attr("x",nA.x).attr("y",nA.y).attr("width",nA.width).attr("height",nA.height),pA.select(".drop-float-label").attr("x",nA.x+18).attr("y",nA.y+nA.height/2).text(sA);const KA=pA.select(".drop-slot"),TA=pA.select(".drop-preview-link"),ue=J?ZM(J,z,nA):null;if(!ue){KA.interrupt().style("opacity",0),TA.interrupt().style("opacity",0);return}KA.interrupt().attr("x",ue.slot.x).attr("y",ue.slot.y).attr("width",ue.slot.width).attr("height",ue.slot.height).style("opacity",1),TA.interrupt().attr("d",ue.linkPath).style("opacity",1)},Yi=J=>J.map(z=>YM(z,UA)),Zr=()=>{const J=q.value;if(!J)return[];const z=[],sA=nA=>{nA.parent&&nA.parent.data&&!rA(nA.parent.data)||(z.push(nA),nA.children&&rA(nA.data)&&nA.children.forEach(sA))};return sA(J),Yi(z)},iA=(J,z,sA)=>{let nA=OM({pointer:J,dragBox:z,boxes:sA.boxes,draggingId:sA.node.data.id,blockedIds:sA.blockedIds});if(!nA)return null;const QA=Eg(sA.node.data._original||sA.node.data);return r.canDrop&&!r.canDrop({node:QA,drop:nA})?null:nA},lA=(J,z)=>{if(!r.draggable||!a.value){J.on(".drag",null);return}const sA=he.drag().container(()=>a.value).subject(nA=>({x:nA.x,y:nA.y})).filter((nA,QA)=>{var KA,TA;if(!r.draggable||!QA.parent)return!1;const pA=nA.target;return(KA=pA==null?void 0:pA.closest)!=null&&KA.call(pA,".expand-button")||(TA=pA==null?void 0:pA.classList)!=null&&TA.contains("expand-symbol")?!1:!nA.button}).on("start",function(nA,QA){var re,Ue,Pt;if(!QA.parent)return;(Ue=(re=nA.sourceEvent)==null?void 0:re.stopPropagation)==null||Ue.call(re);const pA=rS(QA),KA=(Pt=this.transform.baseVal.consolidate())==null?void 0:Pt.matrix,TA=((KA==null?void 0:KA.e)??QA.y)+No.offsetX,ue=((KA==null?void 0:KA.f)??QA.x)+No.offsetY;De={node:QA,activated:!1,startX:nA.x,startY:nA.y,grabOffset:{x:nA.x-TA,y:nA.y-ue},blockedIds:pA,boxes:Yi(z),drop:null},he.select(this).raise()}).on("drag",function(nA,QA){const pA=De;if(!pA||pA.node.data.id!==QA.data.id)return;const KA=Math.hypot(nA.x-pA.startX,nA.y-pA.startY);if(!pA.activated){if(KA<GM)return;pA.activated=!0,Z=!0,he.select(this).classed("is-dragging",!0),i("node-drag-start",Eg(QA.data._original||QA.data),nA.sourceEvent??null)}pA.boxes=Zr();const TA={x:nA.x,y:nA.y},ue=HM(TA,pA.grabOffset,UA(QA)),re=iA(TA,ue,pA);pA.drop=re,ii(re,pA.boxes,QA.data.topic||"",ue),i("node-drag",{node:Eg(QA.data._original||QA.data),drop:re,event:nA.sourceEvent??null})}).on("end",function(nA,QA){const pA=De;De=null;const KA=!!(pA!=null&&pA.activated),TA=(pA==null?void 0:pA.drop)??null;if(_r(),Z=!1,!KA||!pA)return;let ue=!1;TA&&K.value&&(ue=Tt(QA.data.id,TA.targetId,TA.position)),i("node-drag-end",{node:Eg(QA.data._original||QA.data),drop:TA,moved:ue,event:nA.sourceEvent??null})});J.call(sA)},BA=()=>{if(!n.value||!a.value||!q.value)return;const J=he.select(a.value),z=J.select(".links"),sA=J.select(".nodes"),nA=[],QA=[],pA=(U,yA=!0)=>{yA&&(U.parent&&U.parent.data&&!rA(U.parent.data)||(nA.push(U),U.children&&rA(U.data)&&U.children.forEach(ZA=>{QA.push({source:U,target:ZA}),pA(ZA,!0)})))};pA(q.value,!0);const KA=z.selectAll(".link").data(QA,U=>`${U.source.data.id}-${U.target.data.id}`),TA=KA.exit().style("will-change","opacity, stroke-width").style("opacity",1);m?TA.interrupt().remove():TA.transition().duration(xA.linkFadeDuration).ease(xA.collapseEase).style("stroke-width","1px").style("opacity",0).on("end",function(){he.select(this).style("will-change","auto"),he.select(this).remove()});const ue=U=>{const yA=U.target.depth||0;return C(U,yA)};nA.forEach(U=>{U.parent?(U.x0===void 0||U.y0===void 0||O.has(U.data.id))&&(U.x0=U.parent.x,U.y0=U.parent.y):(U.x0===void 0&&(U.x0=U.x),U.y0===void 0&&(U.y0=U.y))});const re=(U,yA)=>{var Kr;const ZA=((Kr=U.data)==null?void 0:Kr._nodeWidth)||UA(U),Fe=U.x||0,je=U.y||0;return yA==="source"?{x:Fe,y:je+GA(ZA)}:{x:Fe,y:je-18}},Ue=(U,yA)=>{const ZA=(U.y+yA.y)/2,Fe=ZA,je=U.x,Kr=ZA,en=yA.x;return`M ${U.y} ${U.x} C ${Fe} ${je}, ${Kr} ${en}, ${yA.y} ${yA.x}`},Pt=KA.enter().append("path").attr("class","link").style("opacity",0).attr("d",U=>{const yA=re({...U.source,x:U.source.x0??U.source.x,y:U.source.y0??U.source.y},"source"),ZA=re({...U.target,x:U.target.x0??U.target.x,y:U.target.y0??U.target.y},"target");return Ue(yA,ZA)}).style("fill","none").style("stroke",U=>ue(U)).style("stroke-width","1px");Pt.style("opacity",0).style("will-change","opacity, d, stroke-width"),KA.style("will-change","opacity, d, stroke-width"),Pt.merge(KA).transition().duration(xA.expandDuration).ease(xA.expandEase).delay(U=>YA(U.target)).style("opacity",1).style("stroke-width",`${I()}px`).attrTween("d",function(U){const yA=re({...U.source,x:U.source.x0??U.source.x,y:U.source.y0??U.source.y},"source"),ZA=re({...U.target,x:U.target.x0??U.target.x,y:U.target.y0??U.target.y},"target"),Fe=re(U.source,"source"),je=re(U.target,"target");if(Math.abs(yA.y-Fe.y)<.1&&Math.abs(yA.x-Fe.x)<.1&&Math.abs(ZA.y-je.y)<.1&&Math.abs(ZA.x-je.x)<.1)return()=>Ue(Fe,je);const Kr=he.interpolateNumber(yA.y,Fe.y),en=he.interpolateNumber(yA.x,Fe.x),Cs=he.interpolateNumber(ZA.y,je.y),Is=he.interpolateNumber(ZA.x,je.x);return Mr=>{const Rn={y:Kr(Mr),x:en(Mr)},Dh={y:Cs(Mr),x:Is(Mr)};return Ue(Rn,Dh)}}).style("stroke",U=>ue(U)).on("end",function(U){var yA,ZA,Fe,je;U.source.x0=U.source.x,U.source.y0=U.source.y,U.target.x0=U.target.x,U.target.y0=U.target.y,(ZA=(yA=U.source)==null?void 0:yA.data)!=null&&ZA.id&&Y.set(U.source.data.id,{x:U.source.x,y:U.source.y}),(je=(Fe=U.target)==null?void 0:Fe.data)!=null&&je.id&&Y.set(U.target.data.id,{x:U.target.x,y:U.target.y}),he.select(this).style("will-change","auto")});const sr=sA.selectAll(".node").data(nA,U=>U.data.id),An=sr.exit().style("will-change","transform, opacity").style("opacity",1);m?An.interrupt().remove():An.transition().duration(xA.collapseDuration).ease(xA.collapseEase).style("opacity",0).attrTween("transform",function(U){const yA=U,ZA=yA.y??yA.y0??0,Fe=yA.x??yA.x0??0;let je=ZA,Kr=Fe;if(yA.parent){const Mr=re(yA.parent,"target");je=Mr.y,Kr=Mr.x}const en=he.interpolateNumber(ZA,je),Cs=he.interpolateNumber(Fe,Kr),Is=he.interpolateNumber(xA.nodeScaleTo,.9);return Mr=>`translate(${en(Mr)},${Cs(Mr)}) scale(${Is(Mr)})`}).on("end",function(){he.select(this).style("will-change","auto"),he.select(this).remove()});const gt=sr.enter().append("g").attr("class","node").attr("role","treeitem").attr("aria-level",U=>U.depth+1).attr("aria-expanded",U=>{if(!r.expandable)return null;const yA=U.children&&U.children.length>0,ZA=U.data.expanded!==!1;return yA?String(ZA):null}).attr("aria-label",U=>{const ZA=U.children&&U.children.length>0&&U.children?U.children.length:0;return`${U.data.topic}, ${ZA} 个子项`}).attr("tabindex",(U,yA)=>yA===0?0:-1).attr("transform",U=>{const yA=U.y0!==void 0?U.y0:U.parent?U.parent.y:U.y,ZA=U.x0!==void 0?U.x0:U.parent?U.parent.x:U.x;return`translate(${yA},${ZA}) scale(${xA.nodeScaleFrom})`}).style("opacity",0).style("cursor","pointer").style("outline","none").style("will-change","transform, opacity"),jA=U=>l(U.data,U.depth);gt.append("rect").attr("rx",U=>{const yA=h(U.data,U.depth);return parseInt(yA.borderRadius||"8")}).attr("ry",U=>{const yA=h(U.data,U.depth);return parseInt(yA.borderRadius||"8")}).attr("x",-18).attr("y",-27.5).attr("width",U=>{const yA=h(U.data,U.depth),ZA=`${yA.fontSize} ${yA.fontFamily}`,Fe=gI(U.data.topic,ZA),je=Math.max(Fe+36,100);return U.data._nodeWidth=je,je}).attr("height",55).style("fill",U=>jA(U)).style("stroke",U=>c(U.data,U.depth)||"none").style("stroke-width",U=>h(U.data,U.depth).borderWidth||"0").style("cursor","pointer"),gt.append("text").attr("class","node-name").attr("text-anchor","start").attr("x",0).attr("y",0).style("font-size",U=>h(U.data,U.depth).fontSize).style("font-family",U=>h(U.data,U.depth).fontFamily).style("font-weight",U=>h(U.data,U.depth).fontWeight).style("dominant-baseline","middle").style("fill",U=>g(U.data,U.depth)).style("pointer-events","none").style("user-select","none").text(U=>U.data.topic),gt.each(function(U){r.expandable&&aA(U)&&te(he.select(this))}),gt.on("click",(U,yA)=>{const ZA=U.target;ZA.tagName==="circle"||ZA.classList.contains("expand-symbol")||i("node-click",yA.data._original||yA.data,U)}),gt.on("dblclick",(U,yA)=>{i("node-dblclick",yA.data._original||yA.data,U)}),gt.on("contextmenu",(U,yA)=>{U.preventDefault(),i("node-contextmenu",yA.data._original||yA.data,U)}),gt.on("mouseenter",(U,yA)=>{i("node-mouseenter",yA.data._original||yA.data,U)}),gt.on("mouseleave",(U,yA)=>{i("node-mouseleave",yA.data._original||yA.data,U)}),gt.style("opacity",0).style("will-change","transform, opacity"),sr.style("will-change","transform, opacity");const _e=gt.merge(sr);_e.transition().duration(xA.expandDuration).ease(xA.expandEase).delay(U=>YA(U)).style("opacity",1).attrTween("transform",function(U){const yA=U.y0??(U.parent?U.parent.y:U.y),ZA=U.x0??(U.parent?U.parent.x:U.x),Fe=U.y,je=U.x;if(Math.abs(yA-Fe)<.1&&Math.abs(ZA-je)<.1)return()=>`translate(${Fe},${je}) scale(1)`;const Kr=U.parent&&(U.y0===void 0||U.x0===void 0||Math.abs(yA-U.parent.y)<2&&Math.abs(ZA-U.parent.x)<2),en=he.interpolateNumber(yA,Fe),Cs=he.interpolateNumber(ZA,je),Is=he.interpolateNumber(Kr?xA.nodeScaleFrom:xA.nodeScaleTo,xA.nodeScaleTo);return Mr=>`translate(${en(Mr)},${Cs(Mr)}) scale(${Is(Mr)})`}).on("end",function(U){var yA,ZA;U.x0=U.x,U.y0=U.y,(yA=U.data)!=null&&yA.id&&Y.set(U.data.id,{x:U.x,y:U.y}),(ZA=U.data)!=null&&ZA.id&&O.delete(U.data.id),he.select(this).style("will-change","auto")}),_e.select(".node-name").text(U=>U.data.topic),_e.attr("aria-level",U=>U.depth+1),_e.select("rect").attr("width",U=>{const yA=h(U.data,U.depth),ZA=`${yA.fontSize} ${yA.fontFamily}`,Fe=gI(U.data.topic,ZA),je=Math.max(Fe+36,100);return U.data._nodeWidth=je,je}).attr("rx",U=>parseInt(h(U.data,U.depth).borderRadius||"8")).attr("ry",U=>parseInt(h(U.data,U.depth).borderRadius||"8")).style("fill",U=>l(U.data,U.depth)).style("stroke",U=>c(U.data,U.depth)||"none").style("stroke-width",U=>h(U.data,U.depth).borderWidth||"0"),_e.select(".node-name").style("font-size",U=>h(U.data,U.depth).fontSize).style("font-family",U=>h(U.data,U.depth).fontFamily).style("font-weight",U=>h(U.data,U.depth).fontWeight).style("fill",U=>g(U.data,U.depth)),_e.each(function(U){const yA=he.select(this);xe(yA,U);const ZA=aA(U),Fe=ZA&&U.data.children?U.data.children.length:0;yA.attr("aria-expanded",r.expandable&&ZA?String(U.data.expanded!==!1):null).attr("aria-label",`${U.data.topic}, ${Fe} 个子项`)}),lA(_e,nA),De!=null&&De.activated&&_e.classed("is-dragging",U=>U.data.id===(De==null?void 0:De.node.data.id))},Ve=J=>{r.expandable&&J.data&&(F||(N&&M&&(M.kill(),M=null,N=!1),x&&(clearTimeout(x),x=null),O.clear(),x=setTimeout(()=>{if(F)return;F=!0,E=!0;const z=J.data.expanded!==!1;J.data.expanded=!z,i(z?"node-collapse":"node-expand",J.data._original||J.data),q.value&&uy(q.value);let sA=0;const nA=TA=>{TA.children&&(sA+=TA.children.length,TA.children.forEach(ue=>{nA(ue)}))},pA=(TA=>{let ue=0,re=TA;for(;re.parent;)ue++,re=re.parent;return ue})(J);if(AA.clear(),Y.forEach((TA,ue)=>AA.set(ue,{...TA})),z){const TA=ue=>{ue.children&&ue.children.forEach(re=>{re.x0=void 0,re.y0=void 0,TA(re)})};TA(J),nA(J)}else{const TA=re=>{re.children&&re.children.forEach(Ue=>{Ue.x0=void 0,Ue.y0=void 0,TA(Ue)})};TA(J);const ue=re=>{re.children&&re.children.forEach(Ue=>{var Pt;(Pt=Ue.data)!=null&&Pt.id&&O.add(Ue.data.id),ue(Ue)})};ue(J),nA(J)}N=!0,q.value&&Me(q.value),BA(),i("change",lt()),u.nextTick(()=>{setTimeout(()=>{const TA=.7-pA*.08,ue=Math.min(Math.sqrt(sA)*.03,.18),re=.35,Ue=.8,Pt=TA+ue,ni=Math.max(Math.min(Pt,Ue),re);Dt(J,ni)},50)});const KA=Math.max(xA.expandDuration,xA.collapseDuration);setTimeout(()=>{F=!1,E=!1},KA+100),x=null},50)))},Zt=()=>{!n.value||!a.value||(Q=he.zoom().scaleExtent([.25,5]).filter(J=>{var sA;if(!G||Z)return!1;const z=J.target;return r.draggable&&((sA=z==null?void 0:z.closest)!=null&&sA.call(z,".node"))?!1:(!J.ctrlKey||J.type==="wheel")&&!J.button}).on("start",()=>{$A.value=!1,k=null,b={vx:0,vy:0},S=""}).on("zoom",J=>{const z=J.sourceEvent;S=(z==null?void 0:z.type)||"";const sA=(z==null?void 0:z.timeStamp)??performance.now();if(z&&z.type!=="wheel")if(!k)k={x:J.transform.x,y:J.transform.y,t:sA};else{const nA=Math.max(1,sA-k.t);b={vx:(J.transform.x-k.x)/nA,vy:(J.transform.y-k.y)/nA},k={x:J.transform.x,y:J.transform.y,t:sA}}if(w){p=J.transform,j.value=J.transform.k,me(J.transform),i("zoom",J.transform.k),i("pan",{x:J.transform.x,y:J.transform.y,k:J.transform.k});return}ne(J.transform,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!1}),i("zoom",J.transform.k),i("pan",{x:J.transform.x,y:J.transform.y,k:J.transform.k})}).on("end",()=>{if(setTimeout(()=>{$A.value=!0},2e3),w||S==="wheel"||Math.hypot(b.vx,b.vy)<.08)return;const z=120;let sA=b.vx*z,nA=b.vy*z;const QA=260,pA=Math.hypot(sA,nA);if(pA>QA){const TA=QA/pA;sA*=TA,nA*=TA}const KA=he.zoomIdentity.translate(p.x+sA,p.y+nA).scale(p.k);ne(KA,{duration:xA.transformDuration*1.4,ease:xA.transformEase,syncZoom:!0})}),he.select(n.value).call(Q))},lt=()=>K.value?{nodeData:Eg(K.value)}:null,qr=J=>{E=!0,K.value=Ge(J),st();const z=pg(K.value);Me(z),tt(z),q.value=z,BA(),i("change",lt()),tr(),u.nextTick(()=>{E=!1})},{resetHistoryBaseline:er,markClean:Xi,recordHistoryAfterChange:Nt,syncModifiedFlag:tr,canUndo:ji,canRedo:Ze,isModified:mi,undo:Fn,redo:W}=FM({getData:lt,applyHistorySnapshot:qr,onHistoryChange:J=>i("history-change",J),onModified:J=>i("modified",J)}),oA=()=>{st();const J=pg(K.value);Me(J),tt(J),q.value=J,BA(),i("change",lt()),tr(),u.nextTick(()=>{E=!1})},uA=(J,z={})=>{LM(J,z,{expandable:r.expandable,hasTree:!!q.value,previousRoot:K.value,snapshotPositions:st,restorePositions:tt,layout:Me,render:BA,onAfterSetNodeData:(sA,nA)=>{K.value=nA,q.value=sA},resetHistory:er,markClean:Xi,commitHistory:Nt,syncModified:tr,fitWindow:It,nextTick:u.nextTick,setInternalUpdate:sA=>{E=sA}})},JA=J=>{m=!0,Y.clear(),O.clear();try{uA(J,{resetCollapse:!0,resetHistory:!0,fit:!1})}finally{m=!1}},le=J=>{uA(J,{resetCollapse:!1,resetHistory:!1,commitHistory:!1,fit:!1})},fe=()=>{if(!n.value||!o.value)return;const J=o.value.clientWidth||800,z=o.value.clientHeight||600;he.select(n.value).attr("width",J).attr("height",z)},Dt=(J,z)=>{if(!J||!q.value||!n.value||!a.value||!o.value){It();return}fe();const sA=o.value.clientWidth||800,nA=o.value.clientHeight||600,QA=[],pA=ZA=>{QA.push(ZA),ZA.children&&rA(ZA.data)&&ZA.children.forEach(Fe=>pA(Fe))};if(pA(J),QA.length===0){It();return}let KA=1/0,TA=-1/0,ue=1/0,re=-1/0;QA.forEach(ZA=>{const Fe=ZA.x||0,je=ZA.y||0,Kr=UA(ZA),en=55;KA=Math.min(KA,Fe-en/2),TA=Math.max(TA,Fe+en/2),ue=Math.min(ue,je-Kr/2),re=Math.max(re,je+Kr/2)});const Ue=100,Pt=re-ue+Ue*2,ni=TA-KA+Ue*2,sr=sA/Pt,An=nA/ni,gt=Math.min(sr,An,1.2),jA=J.x||0,_e=J.y||0,U=sA/2-_e*gt,yA=nA/2-jA*gt;if(Q&&a.value){const ZA=he.zoomIdentity.translate(U,yA).scale(gt),Fe=z!==void 0?z:xA.centerDuration;M&&(M.kill(),M=null),M=ne(ZA,{duration:Fe,ease:xA.centerEase,syncZoom:!0,onComplete:()=>{N=!1,M=null}})}},It=()=>{if(!q.value||!n.value||!a.value||!o.value)return;fe();const J=o.value.clientWidth||800,z=o.value.clientHeight||600,sA=[],nA=(U,yA=!0)=>{yA&&(U.parent&&U.parent.data&&!rA(U.parent.data)||(sA.push(U),U.children&&rA(U.data)&&U.children.forEach(ZA=>nA(ZA,!0))))};if(nA(q.value,!0),sA.length===0)return;let QA=1/0,pA=-1/0,KA=1/0,TA=-1/0;sA.forEach(U=>{const yA=U.x||0,ZA=U.y||0;QA=Math.min(QA,yA),pA=Math.max(pA,yA),KA=Math.min(KA,ZA),TA=Math.max(TA,ZA)});const ue=80,re=TA-KA+ue*2,Ue=pA-QA+ue*2,Pt=J/re,ni=z/Ue,sr=Math.min(Pt,ni,1.2),An=(QA+pA)/2,gt=(KA+TA)/2,jA=J/2-gt*sr,_e=z/2-An*sr;if(Q&&a.value){const U=he.zoomIdentity.translate(jA,_e).scale(sr);M&&(M.kill(),M=null),M=ne(U,{duration:xA.centerDuration,ease:xA.centerEase,syncZoom:!0,onComplete:()=>{N=!1,M=null}})}},qt=()=>{if(!q.value||!n.value||!a.value||!o.value)return;const J=q.value,z=J.x||0,sA=J.y||0,nA=o.value.clientWidth||800,QA=o.value.clientHeight||600,pA=nA/2-sA*j.value,KA=QA/2-z*j.value;if(Q&&n.value){const TA=he.zoomIdentity.translate(pA,KA).scale(j.value);ne(TA,{duration:xA.centerDuration,ease:xA.centerEase,syncZoom:!0})}},fr=J=>{if(!r.expandable||!K.value||!q.value||F)return;if(F=!0,E=!0,O.clear(),uy(q.value),AA.clear(),Y.forEach((nA,QA)=>AA.set(QA,{...nA})),J){const nA=QA=>{QA.children&&QA.children.forEach(pA=>{var KA;pA.x0=void 0,pA.y0=void 0,(KA=pA.data)!=null&&KA.id&&O.add(pA.data.id),nA(pA)})};nA(q.value)}else{const nA=QA=>{QA.children&&QA.children.forEach(pA=>{pA.x0=pA.x,pA.y0=pA.y,nA(pA)})};nA(q.value)}const z=nA=>{nA.expanded=J,nA.children&&nA.children.length>0&&nA.children.forEach(QA=>z(QA))};z(K.value),N=!0,Me(q.value),BA(),i("change",lt()),u.nextTick(()=>{setTimeout(()=>{It();const nA=xA.centerDuration*1e3;setTimeout(()=>{N=!1,M=null},nA+80)},50)});const sA=Math.max(xA.expandDuration,xA.collapseDuration)+120;setTimeout(()=>{F=!1,E=!1},sA)},Ui=(J,z)=>{if(!o.value)return he.zoomIdentity.scale(J);const sA=o.value.clientWidth||800,nA=o.value.clientHeight||600,QA=sA/2,pA=nA/2,KA=(QA-p.x)/p.k,TA=(pA-p.y)/p.k,ue=QA-KA*J,re=pA-TA*J;return he.zoomIdentity.translate(ue,re).scale(J)},Rr=()=>{if(!n.value||!Q)return;const J=Math.min(j.value*(1+By),5);if(Math.abs(J-j.value)<.001)return;const z=Ui(J);ne(z,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},ka=()=>{if(!n.value||!Q)return;const J=Math.max(j.value*(1-By),.25);if(Math.abs(J-j.value)<.001)return;const z=Ui(J);ne(z,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},us=J=>{if(!n.value||!Q)return;const z=Math.max(.25,Math.min(5,J));if(Math.abs(z-j.value)<.001)return;const sA=Ui(z);ne(sA,{duration:xA.transformDuration,ease:xA.transformEase,syncZoom:!0})},$i=()=>j.value,Ol=J=>{G=J},Hl=()=>({treeData:q.value,nodeData:K.value}),Vl=()=>{fr(!LA.value)},XA=()=>{i("download")},P=async(J="png",z)=>{if(!n.value)throw new Error("SVG element not found");return J==="svg"?j8(n.value,z==null?void 0:z.backgroundColor):$8(n.value,{scale:(z==null?void 0:z.scale)||2,backgroundColor:(z==null?void 0:z.backgroundColor)||"#ffffff",quality:(z==null?void 0:z.quality)||1})};u.watch(()=>r.data,(J,z)=>{if(E||!J)return;if(!!q.value||r.streaming){le(J);return}JA(J),$A.value&&!r.streaming&&u.nextTick(()=>{It()})},{deep:!0}),u.watch(()=>r.draggable,()=>{q.value&&BA()}),u.watch(()=>r.expandable,J=>{if(!K.value||!q.value)return;E=!0,J||xv(K.value),st();const z=pg(K.value);tt(z),Me(z),q.value=z,BA(),u.nextTick(()=>{E=!1})}),u.watch(()=>r.theme,(J,z)=>{J!==z&&u.nextTick(()=>{if(!a.value)return;const sA=he.select(a.value);sA.selectAll(".node").each(function(nA){const QA=he.select(this);QA.select("rect").style("fill",l(nA.data,nA.depth)).style("stroke",c(nA.data,nA.depth)||"none"),QA.select(".node-name").style("fill",g(nA.data,nA.depth)),QA.select(".expand-button").style("fill",l(nA.data,nA.depth))}),sA.selectAll(".link").each(function(nA){const QA=nA.target.depth||0;he.select(this).style("stroke",C(nA,QA))})})},{deep:!0}),u.onMounted(()=>{u.nextTick(()=>{wt(),o.value&&lI.useResizeObserver(o,()=>{var J;s.value=((J=o.value)==null?void 0:J.clientWidth)||800,$A.value?(fe(),u.nextTick(()=>{It()})):fe()})})}),u.onBeforeUnmount(()=>{Q&&n.value&&he.select(n.value).on(".zoom",null),Q=null,v==null||v.kill(),v=null,M==null||M.kill(),M=null,x&&(clearTimeout(x),x=null),O.clear(),Y.clear(),AA.clear()});const hA=()=>{It()},RA=J=>{if(!q.value)return null;let z=null;return q.value.each(sA=>{var nA;((nA=sA.data)==null?void 0:nA.id)===J&&(z=sA)}),z},rt=J=>{const z=RA(J);return z?z.data._original||z.data:null},or=J=>{const z=RA(J);z&&Dt(z)},xt=J=>{if(!r.expandable)return;const z=RA(J);z&&z.data.expanded===!1&&Ve(z)},yr=J=>{if(!r.expandable)return;const z=RA(J);z&&z.data.expanded!==!1&&Ve(z)},Br=(J,z)=>{const sA=RA(J);if(!sA)return"";E=!0;const nA=sA.data._original||sA.data,QA=Cy(z);return nA.children||(nA.children=[]),nA.children.push(QA),nA.expanded=!0,oA(),Nt(),QA.id},Pr=(J,z,sA={})=>{var re;if(z==="right")return Br(J,sA);const nA=RA(J);if(!nA)return"";const QA=Cy(sA);if(z==="up"||z==="down"){if(!nA.parent)return"";const Ue=nA.parent.data._original||nA.parent.data,Pt=nA.data._original||nA.data;if(!Ue.children)return"";const ni=Ue.children.findIndex(An=>An.id===Pt.id);if(ni===-1)return"";E=!0;const sr=z==="up"?ni:ni+1;return Ue.children.splice(sr,0,QA),Ue.expanded=!0,oA(),Nt(),QA.id}if(!((re=nA.parent)!=null&&re.parent))return"";const pA=nA.parent,KA=pA.parent.data._original||pA.parent.data,TA=pA.data._original||pA.data;if(!KA.children)return"";const ue=KA.children.findIndex(Ue=>Ue.id===TA.id);return ue===-1?"":(E=!0,KA.children.splice(ue+1,0,QA),KA.expanded=!0,oA(),Nt(),QA.id)},hs=J=>{const z=RA(J);if(!z||!z.parent)return!1;const sA=z.parent.data._original||z.parent.data,nA=(z.data._original||z.data).id;if(!sA.children)return!1;const QA=sA.children.findIndex(KA=>KA.id===nA);if(QA===-1)return!1;E=!0,st(),sA.children.splice(QA,1),z.each(KA=>{var ue;const TA=(ue=KA.data)==null?void 0:ue.id;TA&&(Y.delete(TA),O.delete(TA))});const pA=pg(K.value);return Me(pA),tt(pA),q.value=pA,BA(),i("change",lt()),tr(),Nt(),u.nextTick(()=>{E=!1}),!0},Tt=(J,z,sA)=>K.value?(E=!0,MM(K.value,J,z,sA)?(oA(),Nt(),!0):(u.nextTick(()=>{E=!1}),!1)):!1;return A({getData:lt,setData:JA,applyData:le,toCenter:qt,expandAll:fr,expandNode:xt,collapseNode:yr,zoomIn:Rr,zoomOut:ka,setZoom:us,getZoom:$i,setZoomEnabled:Ol,getInstance:Hl,fit:hA,fitToWindow:It,fitToNode:or,getNodeById:rt,updateNode:(J,z)=>{const sA=RA(J);sA&&(E=!0,Object.assign(sA.data,z),sA.data._original&&Object.assign(sA.data._original,z),z.topic!==void 0&&(delete sA.data._nodeWidth,sA.data._original&&delete sA.data._original._nodeWidth),Me(q.value),BA(),i("change",lt()),tr(),Nt(),u.nextTick(()=>{E=!1}))},addNode:Br,addNodeByDirection:Pr,removeNode:hs,moveNode:Tt,undo:Fn,redo:W,canUndo:ji,canRedo:Ze,isModified:mi,markClean:Xi,exportImage:P,getVisibleNodes:()=>{if(!q.value)return[];const J=[],z=(sA,nA=!0)=>{var QA;nA&&((QA=sA.parent)!=null&&QA.data&&!rA(sA.parent.data)||(J.push(sA.data._original||sA.data),sA.children&&rA(sA.data)&&sA.children.forEach(pA=>z(pA,!0))))};return z(q.value,!0),J}}),(J,z)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"wrapperRef",ref:o,class:"d3-mindmap-wrapper",style:u.normalizeStyle(B.value)},[(u.openBlock(),u.createElementBlock("svg",{ref_key:"svgRef",ref:n,class:"d3-mindmap-svg",style:u.normalizeStyle(PA.value),role:"tree"},[u.createElementVNode("g",{ref_key:"svgGroupRef",ref:a,class:"mindmap-group"},[...z[0]||(z[0]=[u.createElementVNode("g",{class:"links"},null,-1),u.createElementVNode("g",{class:"nodes"},null,-1),u.createElementVNode("g",{class:"drag-overlay","pointer-events":"none"},null,-1)])],512)],4)),e.showToolbar?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["d3-mindmap-toolbar",f.value])},[J.$slots.toolbar?u.renderSlot(J.$slots,"toolbar",{key:0,zoomIn:Rr,zoomOut:ka,fit:It,toCenter:qt,expandAll:()=>fr(!0),collapseAll:()=>fr(!1),exportImage:P,scale:j.value,visibleNodeCount:bA.value},void 0,!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createElementVNode("button",{class:"toolbar-btn",title:"缩小",onClick:ka},[...z[1]||(z[1]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),u.createElementVNode("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),u.createElementVNode("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)])]),e.showScale?(u.openBlock(),u.createElementBlock("div",qM,u.toDisplayString(tA.value)+"%",1)):u.createCommentVNode("",!0),u.createElementVNode("button",{class:"toolbar-btn",title:"放大",onClick:Rr},[...z[2]||(z[2]=[u.createStaticVNode('<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-dc099d20><circle cx="11" cy="11" r="8" data-v-dc099d20></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-dc099d20></line><line x1="11" y1="8" x2="11" y2="14" data-v-dc099d20></line><line x1="8" y1="11" x2="14" y2="11" data-v-dc099d20></line></svg>',1)])]),z[8]||(z[8]=u.createElementVNode("div",{class:"toolbar-divider"},null,-1)),u.createElementVNode("button",{class:"toolbar-btn",title:"适应画布",onClick:qt},[...z[3]||(z[3]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})],-1)])]),e.expandable?(u.openBlock(),u.createElementBlock("div",PM)):u.createCommentVNode("",!0),e.expandable?(u.openBlock(),u.createElementBlock("button",{key:2,class:"toolbar-btn",title:LA.value?"全部收起":"全部展开",onClick:Vl},[LA.value?(u.openBlock(),u.createElementBlock("svg",WM,[...z[5]||(z[5]=[u.createElementVNode("polyline",{points:"4 14 10 14 10 20"},null,-1),u.createElementVNode("polyline",{points:"20 10 14 10 14 4"},null,-1),u.createElementVNode("line",{x1:"14",y1:"10",x2:"21",y2:"3"},null,-1),u.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])])):(u.openBlock(),u.createElementBlock("svg",zM,[...z[4]||(z[4]=[u.createElementVNode("polyline",{points:"15 3 21 3 21 9"},null,-1),u.createElementVNode("polyline",{points:"9 21 3 21 3 15"},null,-1),u.createElementVNode("line",{x1:"21",y1:"3",x2:"14",y2:"10"},null,-1),u.createElementVNode("line",{x1:"3",y1:"21",x2:"10",y2:"14"},null,-1)])]))],8,KM)):u.createCommentVNode("",!0),e.showDownload||e.showCounts?(u.openBlock(),u.createElementBlock("div",XM)):u.createCommentVNode("",!0),e.showDownload?(u.openBlock(),u.createElementBlock("button",{key:4,class:"toolbar-btn",title:"导出图片",onClick:XA},[...z[6]||(z[6]=[u.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),u.createElementVNode("polyline",{points:"7 10 12 15 17 10"}),u.createElementVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])])):u.createCommentVNode("",!0),e.showCounts?(u.openBlock(),u.createElementBlock("div",jM,[z[7]||(z[7]=u.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),u.createElementVNode("path",{d:"M12 1v6m0 6v6M5.64 5.64l4.24 4.24m4.24 4.24l4.24 4.24M1 12h6m6 0h6M5.64 18.36l4.24-4.24m4.24-4.24l4.24-4.24"})],-1)),u.createElementVNode("span",$M,u.toDisplayString(bA.value),1)])):u.createCommentVNode("",!0)],64))],2)):u.createCommentVNode("",!0)],4))}}),Ie=(e,A)=>{const t=e.__vccOpts||e;for(const[r,i]of A)t[r]=i;return t},nS=Ie(AL,[["__scopeId","data-v-dc099d20"]]);function Rt(e,A,t,r){return u.defineComponent({name:e,props:{size:{type:Number,default:A},class:{type:[String,Object,Array],default:void 0}},setup(i){return()=>u.h("svg",{width:i.size,height:i.size,viewBox:t,fill:"none",xmlns:"http://www.w3.org/2000/svg",class:i.class,"aria-hidden":!0,innerHTML:r})}})}const eL=Rt("IconThinkOutline14",14,"0 0 14 14",'<path d="M7.06431 5.93342C7.68763 5.93342 8.19307 6.43904 8.19322 7.06233C8.19322 7.68573 7.68772 8.19123 7.06431 8.19123C6.44099 8.19113 5.9354 7.68567 5.9354 7.06233C5.93555 6.43911 6.44108 5.93353 7.06431 5.93342Z" fill="currentColor" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.6815 0.963693C10.1169 0.447019 11.6266 0.374829 12.5633 1.31135C13.5 2.24805 13.4277 3.75776 12.911 5.19319C12.7126 5.74431 12.4386 6.31796 12.0965 6.89729C12.4969 7.54638 12.8141 8.19018 13.036 8.80647C13.5527 10.2419 13.6251 11.7516 12.6883 12.6883C11.7516 13.625 10.242 13.5527 8.8065 13.036C8.19022 12.8141 7.54641 12.4969 6.89732 12.0965C6.31797 12.4386 5.74435 12.7125 5.19322 12.911C3.75777 13.4276 2.2481 13.5 1.31138 12.5633C0.374859 11.6266 0.447049 10.1168 0.963724 8.68147C1.17185 8.10338 1.46321 7.50063 1.82896 6.8924C1.52182 6.35711 1.27235 5.82825 1.08872 5.31819C0.572068 3.88278 0.499714 2.37306 1.43638 1.43635C2.37308 0.499655 3.8828 0.572044 5.31822 1.08869C5.82828 1.27232 6.35715 1.5218 6.89243 1.82893C7.50066 1.46318 8.10341 1.17181 8.6815 0.963693ZM11.3573 8.01154C10.9083 8.62253 10.3901 9.22873 9.80943 9.8094C9.22877 10.3901 8.62255 10.9083 8.01158 11.3572C8.4257 11.5841 8.8287 11.7688 9.21275 11.9071C10.5456 12.3868 11.4246 12.2547 11.8397 11.8397C12.2548 11.4246 12.3869 10.5456 11.9071 9.21272C11.7688 8.82866 11.5841 8.42568 11.3573 8.01154ZM2.56529 8.02912C2.37344 8.39322 2.21495 8.74796 2.09263 9.08772C1.61291 10.4204 1.74512 11.2995 2.16001 11.7147C2.57505 12.1297 3.45415 12.2618 4.78697 11.7821C5.11057 11.6656 5.44786 11.5164 5.7938 11.3367C5.249 10.9223 4.70922 10.4533 4.19029 9.9344C3.57578 9.31987 3.03169 8.67633 2.56529 8.02912ZM6.90708 3.2469C6.24065 3.70479 5.5646 4.26321 4.91392 4.91389C4.26325 5.56456 3.70482 6.24063 3.24693 6.90705C3.72674 7.63325 4.32777 8.37459 5.03892 9.08576C5.64943 9.69627 6.28183 10.2265 6.90806 10.6678C7.59368 10.2025 8.2908 9.63076 8.96079 8.96076C9.6308 8.29075 10.2025 7.59366 10.6678 6.90803C10.2265 6.2818 9.69631 5.6494 9.08579 5.03889C8.37462 4.32773 7.63328 3.72672 6.90708 3.2469ZM11.7147 2.15998C11.2996 1.74509 10.4204 1.61288 9.08775 2.0926C8.74835 2.21479 8.39382 2.37271 8.03013 2.56428C8.67728 3.03065 9.31995 3.5758 9.93443 4.19026C10.4534 4.7092 10.9223 5.24896 11.3368 5.79377C11.5164 5.44785 11.6656 5.11052 11.7821 4.78694C12.2618 3.45416 12.1297 2.57502 11.7147 2.15998ZM4.91197 2.2176C3.57922 1.73788 2.70004 1.86995 2.28501 2.28498C1.87001 2.70003 1.73791 3.5792 2.21763 4.91194C2.31709 5.18822 2.44112 5.47427 2.58677 5.7674C3.01931 5.1887 3.51474 4.6158 4.06529 4.06526C4.61584 3.5147 5.18872 3.01928 5.76743 2.58674C5.47431 2.4411 5.18824 2.31706 4.91197 2.2176Z" fill="currentColor" />'),Nu=Rt("IconChevronDownOutline14",14,"0 0 14 14",'<path d="M11.8486 5.5L11.4238 5.92383L8.69727 8.65137C8.44157 8.90706 8.21562 9.13382 8.01172 9.29785C7.79912 9.46883 7.55595 9.61756 7.25 9.66602C7.08435 9.69222 6.91565 9.69222 6.75 9.66602C6.44405 9.61756 6.20088 9.46883 5.98828 9.29785C5.78438 9.13382 5.55843 8.90706 5.30273 8.65137L2.57617 5.92383L2.15137 5.5L3 4.65137L3.42383 5.07617L6.15137 7.80273C6.42595 8.07732 6.59876 8.24849 6.74023 8.3623C6.87291 8.46904 6.92272 8.47813 6.9375 8.48047C6.97895 8.48703 7.02105 8.48703 7.0625 8.48047C7.07728 8.47813 7.12709 8.46904 7.25977 8.3623C7.40124 8.24849 7.57405 8.07732 7.84863 7.80273L10.5762 5.07617L11 4.65137L11.8486 5.5Z" fill="currentColor" />'),tL=Rt("IconSearchOutline16",16,"0 0 16 16",'<path d="M11.894845 6.647401C11.894845 3.725463 9.534486 1.356779 6.623219 1.35657C3.711786 1.35657 1.351635 3.725338 1.351635 6.647401C1.351843 9.569296 3.711911 11.938273 6.623219 11.938273C9.534361 11.938064 11.894637 9.569171 11.894845 6.647401ZM13.245462 6.647401C13.245254 10.317935 10.280401 13.293613 6.623219 13.293821C2.965871 13.293821 0.000204 10.31806 0 6.647401C0 2.976574 2.965746 0 6.623219 0C10.280526 0.000205 13.245462 2.9767 13.245462 6.647401Z" fill="currentColor" /> <path d="M16.000417 15.041079L15.044449 16.000433L11.530434 12.473588L12.486298 11.514234L16.000417 15.041079Z" fill="currentColor" />'),rL=Rt("IconUploadOutline16",16,"0 0 16 16",'<path d="M8 1.05L12.05 5.1L11.096 6.054L8.675 3.633V10.4H7.325V3.633L4.904 6.054L3.95 5.1L8 1.05Z" fill="currentColor" /> <path d="M2.15 10.25H3.5V12.4C3.5 12.87 3.88 13.25 4.35 13.25H11.65C12.12 13.25 12.5 12.87 12.5 12.4V10.25H13.85V12.4C13.85 13.615 12.865 14.6 11.65 14.6H4.35C3.135 14.6 2.15 13.615 2.15 12.4V10.25Z" fill="currentColor" />'),iL=Rt("IconKnowledgeSearchOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M14.900 11.950L14.888 12.200L14.851 12.447L14.790 12.690L14.706 12.926L14.599 13.152L14.470 13.367L14.321 13.568L14.153 13.753L13.968 13.921L13.767 14.070L13.552 14.199L13.326 14.306L13.090 14.390L12.847 14.451L12.600 14.488L12.350 14.500L12.100 14.488L11.853 14.451L11.610 14.390L11.374 14.306L11.148 14.199L10.933 14.070L10.732 13.921L10.547 13.753L10.379 13.568L10.230 13.367L10.101 13.152L9.994 12.926L9.910 12.690L9.849 12.447L9.812 12.200L9.800 11.950L9.812 11.700L9.849 11.453L9.910 11.210L9.994 10.974L10.101 10.748L10.230 10.533L10.379 10.332L10.547 10.147L10.732 9.979L10.933 9.830L11.148 9.701L11.374 9.594L11.610 9.510L11.853 9.449L12.100 9.412L12.350 9.400L12.600 9.412L12.847 9.449L13.090 9.510L13.326 9.594L13.552 9.701L13.767 9.830L13.968 9.979L14.153 10.147L14.321 10.332L14.470 10.533L14.599 10.748L14.706 10.974L14.790 11.210L14.851 11.453L14.888 11.700L14.900 11.950ZM13.700 11.950L13.693 11.818L13.674 11.687L13.642 11.558L13.597 11.433L13.541 11.314L13.472 11.200L13.394 11.094L13.305 10.995L13.206 10.906L13.100 10.828L12.986 10.759L12.867 10.703L12.742 10.658L12.613 10.626L12.482 10.607L12.350 10.600L12.218 10.607L12.087 10.626L11.958 10.658L11.833 10.703L11.714 10.759L11.600 10.828L11.494 10.906L11.395 10.995L11.306 11.094L11.228 11.200L11.159 11.314L11.103 11.433L11.058 11.558L11.026 11.687L11.007 11.818L11.000 11.950L11.007 12.082L11.026 12.213L11.058 12.342L11.103 12.467L11.159 12.586L11.228 12.700L11.306 12.806L11.395 12.905L11.494 12.994L11.600 13.072L11.714 13.141L11.833 13.197L11.958 13.242L12.087 13.274L12.218 13.293L12.350 13.300L12.482 13.293L12.613 13.274L12.742 13.242L12.867 13.197L12.986 13.141L13.100 13.072L13.206 12.994L13.305 12.905L13.394 12.806L13.472 12.700L13.541 12.586L13.597 12.467L13.642 12.342L13.674 12.213L13.693 12.082L13.700 11.950Z" fill="currentColor" /> <path d="M13.511 13.889L15.161 15.539L15.839 14.861L14.189 13.211Z" fill="currentColor" /> <path d="M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z" fill="currentColor" />'),Qy=Rt("IconBrowseOutline16",16,"0 0 16 16",'<path d="M11.2426 4.80473V6.10551H4.75819V4.80473H11.2426Z" fill="currentColor" /> <path d="M9.40858 7.84478V9.14557H4.75819V7.84478H9.40858Z" fill="currentColor" /> <path d="M9.23438 0.546389C10.1941 0.546389 10.9683 0.544914 11.5859 0.611819C12.2161 0.680096 12.7634 0.825745 13.2393 1.17139C13.5172 1.3733 13.7619 1.61812 13.9639 1.896C14.3096 2.37183 14.4551 2.91922 14.5234 3.54932C14.5903 4.16686 14.5889 4.94133 14.5889 5.90088V10.0981C14.5889 11.0576 14.5903 11.8321 14.5234 12.4497C14.4552 13.0798 14.3094 13.6272 13.9639 14.103C13.7619 14.381 13.5172 14.6257 13.2393 14.8276C12.7633 15.1734 12.2163 15.3189 11.5859 15.3872C10.9683 15.4541 10.1942 15.4536 9.23438 15.4536H6.76563C5.80591 15.4536 5.03168 15.4541 4.41407 15.3872C3.78385 15.3189 3.23665 15.1734 2.76074 14.8276C2.48291 14.6257 2.23802 14.3809 2.03614 14.103C1.69066 13.6272 1.54483 13.0798 1.47657 12.4497C1.40973 11.8321 1.41114 11.0576 1.41114 10.0981V5.90088C1.41113 4.94132 1.40966 4.16686 1.47657 3.54932C1.54488 2.91921 1.69042 2.37184 2.03614 1.896C2.2381 1.61807 2.4828 1.37333 2.76074 1.17139C3.23665 0.825682 3.78386 0.680109 4.41407 0.611819C5.03168 0.544905 5.80591 0.546389 6.76563 0.546389H9.23438ZM6.76563 1.896C5.77586 1.896 5.0876 1.89738 4.55957 1.95459C4.0443 2.01043 3.76214 2.11349 3.55469 2.26416C3.39135 2.38284 3.24761 2.52662 3.12891 2.68994C2.97821 2.89736 2.8752 3.17967 2.81934 3.69483C2.76214 4.22279 2.76075 4.91131 2.76074 5.90088V10.0981C2.76074 11.0876 2.76221 11.7762 2.81934 12.3042C2.87516 12.8194 2.97829 13.1026 3.12891 13.3101C3.24754 13.4733 3.39147 13.6172 3.55469 13.7358C3.76213 13.8865 4.04438 13.9896 4.55957 14.0454C5.0876 14.1026 5.77586 14.103 6.76563 14.103H9.23438C10.2242 14.103 10.9124 14.1026 11.4404 14.0454C11.9556 13.9896 12.2379 13.8865 12.4453 13.7358C12.6086 13.6172 12.7525 13.4733 12.8711 13.3101C13.0217 13.1026 13.1248 12.8195 13.1807 12.3042C13.2378 11.7762 13.2393 11.0876 13.2393 10.0981V5.90088C13.2393 4.91131 13.2379 4.22279 13.1807 3.69483C13.1248 3.17969 13.0218 2.89736 12.8711 2.68994C12.7524 2.52667 12.6086 2.38281 12.4453 2.26416C12.2379 2.11355 11.9556 2.01041 11.4404 1.95459C10.9124 1.8974 10.2241 1.896 9.23438 1.896H6.76563Z" fill="currentColor" />'),py=Rt("IconEditOutline16",16,"0 0 16 16",'<path d="M9.94076 1.34942C10.7047 0.90231 11.6503 0.902415 12.4143 1.34942C12.7061 1.52015 12.9688 1.79118 13.3104 2.13284C13.6521 2.47448 13.9231 2.73721 14.0939 3.02894C14.5408 3.79294 14.5409 4.73856 14.0939 5.50251C13.9231 5.79415 13.652 6.05704 13.3104 6.39861L6.65932 13.0497C6.28068 13.4284 6.00695 13.7108 5.66543 13.9097C5.32391 14.1085 4.94315 14.2074 4.42705 14.3498L3.24394 14.6761C2.77527 14.8054 2.34538 14.9262 2.00131 14.9684C1.65196 15.0112 1.17964 15.0013 0.810764 14.6325C0.441921 14.2637 0.432107 13.7913 0.47486 13.442C0.517035 13.0979 0.6379 12.668 0.767181 12.1993L1.09352 11.0162C1.23588 10.5001 1.33481 10.1193 1.5336 9.77784C1.7325 9.43632 2.0149 9.1626 2.39355 8.78395L9.04466 2.13284C9.38625 1.79126 9.64911 1.52016 9.94076 1.34942ZM15.5427 14.8398H7.55223L8.96707 13.425H15.5427V14.8398ZM3.39382 9.78422C2.965 10.213 2.84244 10.3436 2.75709 10.49C2.67183 10.6366 2.61862 10.8079 2.45733 11.3925L2.13099 12.5756C2.00183 13.0439 1.92194 13.3419 1.88863 13.5536C2.10041 13.5204 2.39872 13.4416 2.86764 13.3123L4.05075 12.9859C4.63544 12.8246 4.80669 12.7715 4.95323 12.6862C5.09968 12.6008 5.23022 12.4783 5.65905 12.0494L10.721 6.98644L8.45577 4.72121L3.39382 9.78422ZM11.7 2.57079C11.3774 2.38198 10.9777 2.38198 10.6551 2.57079C10.5602 2.62647 10.4487 2.72931 10.0449 3.13311L9.45604 3.72094L11.7213 5.98617L12.3102 5.39833C12.7139 4.99457 12.8168 4.88307 12.8725 4.78818C13.0613 4.46561 13.0612 4.06585 12.8725 3.74326C12.8169 3.64827 12.7146 3.53752 12.3102 3.13311C11.9057 2.72863 11.795 2.6264 11.7 2.57079Z" fill="currentColor" />'),MB=Rt("IconCodeOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3368 1.53569L11.931 4.43172H14.8086V5.79673H11.7404L11.1962 9.67859H14.2839V11.0436H11.0056L10.4994 14.6529L9.14873 14.4643L9.62731 11.0436H5.75876L5.25252 14.6529L3.90186 14.4643L4.38043 11.0436H1.69141V9.67859H4.57104L5.11417 5.79673H2.21609V4.43172H5.30581L5.73724 1.34713L7.08995 1.53569L6.68414 4.43172H10.5527L10.9841 1.34713L12.3368 1.53569ZM5.94937 9.67859H9.81791L10.361 5.79673H6.49353L5.94937 9.67859Z" fill="currentColor" />'),LB=Rt("IconApiOutline14",14,"0 0 14 14",'<path transform="translate(0.6689 1.073)" d="M11.4818 5.57813C11.4818 4.45301 11.4807 3.66237 11.4075 3.05908C11.3359 2.46953 11.2024 2.13852 10.9939 1.89441C10.9247 1.81341 10.8493 1.73801 10.7683 1.66882C10.5242 1.46033 10.1932 1.32686 9.60364 1.25525C9.00034 1.18198 8.20974 1.18091 7.0846 1.18091L5.57813 1.18091C4.45301 1.18091 3.66238 1.18198 3.05908 1.25525C2.46953 1.32686 2.13852 1.46033 1.89441 1.66882C1.81341 1.73801 1.73801 1.81341 1.66882 1.89441C1.46033 2.13852 1.32686 2.46953 1.25525 3.05908C1.18198 3.66238 1.18091 4.45301 1.18091 5.57813L1.18091 6.2771C1.18091 7.40218 1.18197 8.19288 1.25525 8.79614C1.32687 9.38553 1.46036 9.71674 1.66882 9.96082C1.73797 10.0417 1.81347 10.1173 1.89441 10.1864C2.13851 10.3948 2.46965 10.5275 3.05908 10.5991C3.66238 10.6724 4.45298 10.6735 5.57813 10.6735L7.0846 10.6735C8.20977 10.6735 9.00033 10.6724 9.60364 10.5991C10.1931 10.5275 10.5242 10.3948 10.7683 10.1864C10.8493 10.1173 10.9247 10.0417 10.9939 9.96082C11.2024 9.71674 11.3358 9.38553 11.4075 8.79614C11.4808 8.19288 11.4818 7.40218 11.4818 6.2771L11.4818 5.57813ZM12.6627 6.2771C12.6627 7.37222 12.6637 8.247 12.5798 8.93799C12.4942 9.64284 12.3133 10.2359 11.8928 10.7282C11.7834 10.8562 11.6637 10.9751 11.5356 11.0845C11.0434 11.5049 10.4511 11.6867 9.74634 11.7723C9.05525 11.8563 8.17999 11.8552 7.0846 11.8552L5.57813 11.8552C4.48273 11.8552 3.60747 11.8563 2.91638 11.7723C2.21157 11.6867 1.61933 11.5049 1.12708 11.0845C0.99901 10.9751 0.879281 10.8562 0.769898 10.7282C0.349454 10.2359 0.168506 9.64284 0.0828864 8.93799C-0.00101964 8.247 4.88512e-07 7.37222 6.47206e-07 6.2771L6.47206e-07 5.57813C6.47206e-07 4.48273 -0.00106163 3.60747 0.0828864 2.91638C0.168502 2.21168 0.349594 1.61928 0.769898 1.12708C0.879302 0.998981 0.998981 0.879302 1.12708 0.769898C1.61928 0.349594 2.21168 0.168502 2.91638 0.0828864C3.60747 -0.00106163 4.48273 6.47206e-07 5.57813 6.47206e-07L7.0846 6.47206e-07C8.17999 6.47206e-07 9.05525 -0.00106163 9.74634 0.0828864C10.451 0.168505 11.0434 0.349587 11.5356 0.769898C11.6637 0.879302 11.7834 0.998981 11.8928 1.12708C12.3131 1.61928 12.4942 2.21169 12.5798 2.91638C12.6638 3.60747 12.6627 4.48273 12.6627 5.57813L12.6627 6.2771Z" fill="currentColor"/> <path transform="translate(0.6689 1.073)" d="M6.02607 5.50955L6.44306 5.9274L3.84284 8.52762L3.425 8.11063L3.00715 7.69278L4.77253 5.9274L3.00715 4.16202L3.84284 3.32633L6.02607 5.50955Z" fill="currentColor"/> <path transform="translate(0.6689 1.073)" d="M9.23789 7.35397L9.23789 8.53488L6.96238 8.53488L6.96238 7.35397L9.23789 7.35397Z" fill="currentColor"/>'),jn=Rt("IconSparkle16",16,"0 0 16 16",'<path d="M6.1 3.1Q6.6 7.8 11.3 8.3Q6.6 8.8 6.1 13.5Q5.6 8.8 0.9 8.3Q5.6 7.8 6.1 3.1Z" fill="currentColor" /> <path d="M11.9 1Q12.2 3.7 14.9 4Q12.2 4.3 11.9 7Q11.6 4.3 8.9 4Q11.6 3.7 11.9 1Z" fill="currentColor" /> <path d="M12.5 9.4Q12.7 11.4 14.7 11.6Q12.7 11.8 12.5 13.8Q12.3 11.8 10.3 11.6Q12.3 11.4 12.5 9.4Z" fill="currentColor" />'),Sh=Rt("IconQuestionOutline14",14,"0 0 14 14",'<path d="M12.5757 7.00012C12.5757 3.92085 10.0794 1.42463 7.00012 1.42456C3.9208 1.42456 1.42456 3.9208 1.42456 7.00012C1.42463 10.0794 3.92085 12.5757 7.00012 12.5757C10.0793 12.5756 12.5756 10.0793 12.5757 7.00012ZM13.8002 7.00012C13.8001 10.7559 10.7559 13.8001 7.00012 13.8002C3.2443 13.8002 0.199291 10.7559 0.199219 7.00012C0.199219 3.24426 3.24426 0.199219 7.00012 0.199219C10.7559 0.199291 13.8002 3.2443 13.8002 7.00012Z" fill="currentColor" /> <path d="M6.18042 8.68184C6.18043 8.09153 6.32893 7.34655 6.92127 6.8481C7.28566 6.54148 7.76104 6.27318 8.0022 6.10811C8.28964 5.91137 8.42234 5.76562 8.48328 5.58944C8.57774 5.31609 8.53121 5.00904 8.34912 4.76741C8.17409 4.53522 7.83879 4.32222 7.28186 4.32222C5.99668 4.32225 5.46969 5.11832 5.46949 5.78939H4.24414C4.24436 4.39942 5.36327 3.09691 7.28186 3.09688C8.17773 3.09688 8.89489 3.45606 9.32752 4.02999C9.75287 4.59438 9.86938 5.32775 9.64026 5.99019C9.44847 6.5444 9.04722 6.87743 8.69434 7.11898C8.29506 7.39226 8.02318 7.52192 7.70996 7.78548C7.51943 7.94582 7.40577 8.24899 7.40577 8.68184V8.75533H6.18042V8.68184Z" fill="currentColor" /> <path d="M7.39455 9.44026V10.8109H6.16921V9.44026H7.39455Z" fill="currentColor" />'),nL=Rt("IconGlobeOutline14",14,"0 0 14 14",'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.00018 0.353516C10.6708 0.353535 13.6468 3.32958 13.6469 7.00018C13.6468 10.6708 10.6708 13.6468 7.00018 13.6469C3.32957 13.6468 0.353535 10.6708 0.353516 7.00018C0.353535 3.32957 3.32957 0.353531 7.00018 0.353516ZM5.44643 7.59661C5.49463 8.97506 5.70762 10.191 6.02136 11.0793C6.20141 11.5891 6.40328 11.9585 6.59898 12.1889C6.79501 12.4196 6.93213 12.454 7.00018 12.454C7.06822 12.454 7.20533 12.4197 7.40138 12.1889C7.59708 11.9585 7.79895 11.589 7.979 11.0793C8.29274 10.191 8.50574 8.97506 8.55394 7.59661H5.44643ZM1.57861 7.59661C1.80785 9.70467 3.2386 11.4509 5.1715 12.1388C5.07135 11.9317 4.97972 11.7098 4.89746 11.477C4.53084 10.4391 4.30224 9.0828 4.25357 7.59661H1.57861ZM9.74679 7.59661C9.69813 9.0828 9.46952 10.4391 9.1029 11.477C9.0206 11.7099 8.92818 11.9316 8.82797 12.1388C10.7613 11.4511 12.1925 9.70496 12.4218 7.59661H9.74679ZM5.1706 1.8616C3.23814 2.54963 1.80876 4.29604 1.5795 6.40376H4.25357C4.30224 4.91756 4.53083 3.56129 4.89746 2.5234C4.97968 2.29066 5.07051 2.0686 5.1706 1.8616ZM7.00018 1.54637C6.93213 1.54638 6.79503 1.5807 6.59898 1.81145C6.40332 2.04177 6.20139 2.41058 6.02136 2.92012C5.70754 3.80851 5.49461 5.02499 5.44643 6.40376H8.55394C8.50575 5.025 8.29282 3.80851 7.979 2.92012C7.79898 2.41059 7.59705 2.04177 7.40138 1.81145C7.20531 1.58067 7.06823 1.54637 7.00018 1.54637ZM8.82887 1.8616C8.92902 2.0687 9.02064 2.29053 9.1029 2.5234C9.46953 3.56129 9.69812 4.91756 9.74679 6.40376H12.4209C12.1916 4.29575 10.7618 2.54943 8.82887 1.8616Z" fill="currentColor" />'),aL=Rt("IconSkillOutline16",16,"0 0 16 16",'<path d="M12.5113 15.4067C12.4395 15.6249 12.1308 15.6249 12.059 15.4067L11.643 14.1416C11.454 13.567 11.0033 13.1164 10.4288 12.9274L9.16369 12.5113C8.94544 12.4395 8.94544 12.1308 9.16369 12.059L10.4288 11.643C11.0033 11.454 11.454 11.0033 11.643 10.4288L12.059 9.16369C12.1308 8.94544 12.4395 8.94544 12.5113 9.16369L12.9274 10.4288C13.1164 11.0033 13.567 11.454 14.1416 11.643L15.4067 12.059C15.6249 12.1308 15.6249 12.4395 15.4067 12.5113L14.1416 12.9274C13.567 13.1164 13.1164 13.567 12.9274 14.1416L12.5113 15.4067Z" fill="currentColor" /> <path d="M9.02246 0.546878C9.9822 0.546878 10.7564 0.545403 11.374 0.612307C12.0042 0.680586 12.5515 0.826244 13.0273 1.17188C13.3052 1.37376 13.5501 1.61868 13.752 1.89649C14.0975 2.37225 14.2432 2.91984 14.3115 3.54981C14.3784 4.16727 14.377 4.94206 14.377 5.90137V8.51367C13.9611 8.29533 13.5071 8.13985 13.0273 8.06055V5.90137C13.0273 4.9121 13.0259 4.22322 12.9688 3.69532C12.9129 3.18044 12.8098 2.89782 12.6592 2.69043C12.5406 2.52724 12.3966 2.38326 12.2334 2.26465C12.026 2.11404 11.7437 2.0109 11.2285 1.95508C10.7005 1.89789 10.0122 1.89649 9.02246 1.89649H6.55371C5.56395 1.89649 4.87569 1.89787 4.34766 1.95508C3.83242 2.01092 3.55022 2.11398 3.34278 2.26465C3.17953 2.38329 3.03564 2.52719 2.91699 2.69043C2.76642 2.89782 2.66325 3.18042 2.60742 3.69532C2.55027 4.22322 2.54883 4.9121 2.54883 5.90137V10.0986C2.54883 11.0878 2.55031 11.7768 2.60742 12.3047C2.66326 12.8196 2.76642 13.1032 2.91699 13.3105C3.03558 13.4736 3.17966 13.6178 3.34278 13.7363C3.5502 13.8869 3.83265 13.9901 4.34766 14.0459C4.87568 14.1031 5.56398 14.1035 6.55371 14.1035H8.08399C8.27443 14.6025 8.55077 15.0585 8.89551 15.4541H6.55371C5.59402 15.4541 4.81976 15.4546 4.20215 15.3877C3.57204 15.3194 3.02468 15.1738 2.54883 14.8281C2.27111 14.6263 2.02606 14.3813 1.82422 14.1035C1.47883 13.6278 1.33293 13.08 1.26465 12.4502C1.19783 11.8327 1.19922 11.0579 1.19922 10.0986V5.90137C1.19922 4.94206 1.1978 4.16727 1.26465 3.54981C1.33295 2.91984 1.47867 2.37225 1.82422 1.89649C2.02613 1.61864 2.27098 1.37379 2.54883 1.17188C3.02472 0.826181 3.57197 0.6806 4.20215 0.612307C4.81976 0.545393 5.594 0.546877 6.55371 0.546878H9.02246ZM9.19629 9.14649H4.5459V7.84571H9.19629V9.14649ZM11.0303 6.10645H4.5459V4.80567H11.0303V6.10645Z" fill="currentColor" />'),oL=Rt("IconChecklistOutline14",14,"0 0 14 14",'<path d="M13.3277 9.69629V10.976H7.28086V9.69629H13.3277Z" fill="currentColor" /> <path d="M13.3277 2.97256V4.25225H7.28086V2.97256H13.3277Z" fill="currentColor" /> <path d="M4.64512 10.336C4.64505 9.62755 4.07081 9.05322 3.3623 9.05322C2.65386 9.05329 2.07956 9.62759 2.07949 10.336C2.07949 11.0445 2.65382 11.6188 3.3623 11.6188C4.07085 11.6188 4.64512 11.0446 4.64512 10.336ZM5.92559 10.336C5.92559 11.7515 4.77777 12.8993 3.3623 12.8993C1.94689 12.8993 0.799805 11.7515 0.799805 10.336C0.799871 8.92066 1.94693 7.7736 3.3623 7.77354C4.77773 7.77354 5.92552 8.92062 5.92559 10.336Z" fill="currentColor" /> <path d="M4.64531 3.6123C4.6453 2.90382 4.07098 2.32949 3.3625 2.32949C2.65403 2.32951 2.0797 2.90383 2.07969 3.6123C2.07969 4.32079 2.65402 4.8951 3.3625 4.89512C4.07099 4.89512 4.64531 4.3208 4.64531 3.6123ZM5.925 3.6123C5.925 5.02772 4.77792 6.1748 3.3625 6.1748C1.9471 6.17479 0.8 5.02771 0.8 3.6123C0.800013 2.19691 1.9471 1.04982 3.3625 1.0498C4.77791 1.0498 5.92499 2.1969 5.925 3.6123Z" fill="currentColor" />'),sL=Rt("IconCopyOutline16",16,"0 0 16 16",'<path d="M6.14929 4.02032C7.11197 4.02032 7.87983 4.02016 8.49597 4.07598C9.12128 4.13269 9.65792 4.25188 10.1415 4.53106C10.7202 4.8653 11.2008 5.3459 11.535 5.92462C11.8142 6.40818 11.9334 6.94481 11.9901 7.57012C12.0459 8.18625 12.0458 8.95419 12.0458 9.9168C12.0458 10.8795 12.0459 11.6473 11.9901 12.2635C11.9334 12.8888 11.8142 13.4254 11.535 13.909C11.2008 14.4877 10.7202 14.9683 10.1415 15.3025C9.65792 15.5817 9.12128 15.7009 8.49597 15.7576C7.87984 15.8134 7.11196 15.8133 6.14929 15.8133C5.18667 15.8133 4.41874 15.8134 3.80261 15.7576C3.1773 15.7009 2.64067 15.5817 2.1571 15.3025C1.5784 14.9683 1.09778 14.4877 0.76355 13.909C0.484366 13.4254 0.365184 12.8888 0.308472 12.2635C0.252649 11.6473 0.252808 10.8795 0.252808 9.9168C0.252808 8.95418 0.252664 8.18625 0.308472 7.57012C0.365184 6.94481 0.484366 6.40818 0.76355 5.92462C1.09777 5.34589 1.57839 4.86529 2.1571 4.53106C2.64067 4.25188 3.1773 4.13269 3.80261 4.07598C4.41874 4.02017 5.18666 4.02032 6.14929 4.02032ZM6.14929 5.37774C5.16181 5.37774 4.46634 5.37761 3.92566 5.42657C3.39434 5.47472 3.07859 5.56574 2.83582 5.70587C2.4632 5.92106 2.15354 6.2307 1.93835 6.60333C1.79823 6.8461 1.70721 7.16185 1.65906 7.69317C1.6101 8.23385 1.61023 8.92933 1.61023 9.9168C1.61023 10.9043 1.61009 11.5998 1.65906 12.1404C1.70721 12.6717 1.79823 12.9875 1.93835 13.2303C2.15356 13.6029 2.46321 13.9126 2.83582 14.1277C3.07859 14.2679 3.39434 14.3589 3.92566 14.407C4.46634 14.456 5.16182 14.4559 6.14929 14.4559C7.13682 14.4559 7.83224 14.456 8.37292 14.407C8.90425 14.3589 9.21999 14.2679 9.46277 14.1277C9.83535 13.9126 10.145 13.6029 10.3602 13.2303C10.5004 12.9875 10.5914 12.6717 10.6395 12.1404C10.6885 11.5998 10.6884 10.9043 10.6884 9.9168C10.6884 8.92934 10.6885 8.23384 10.6395 7.69317C10.5914 7.16185 10.5004 6.8461 10.3602 6.60333C10.1451 6.23071 9.83536 5.92107 9.46277 5.70587C9.21999 5.56574 8.90424 5.47472 8.37292 5.42657C7.83224 5.3776 7.13682 5.37774 6.14929 5.37774ZM9.80164 0.367975C10.7638 0.367975 11.5314 0.36788 12.1473 0.423639C12.7726 0.480307 13.3093 0.598759 13.7928 0.877741C14.3717 1.21192 14.8521 1.69355 15.1864 2.27227C15.4655 2.75574 15.5857 3.29164 15.6425 3.9168C15.6983 4.53301 15.6971 5.3016 15.6971 6.26446V7.82989C15.6971 8.29264 15.6989 8.58993 15.6649 8.84844C15.4668 10.3525 14.401 11.5738 12.9833 11.9988V10.5467C13.6973 10.1903 14.2105 9.49662 14.3192 8.67169C14.3387 8.52347 14.3407 8.3358 14.3407 7.82989V6.26446C14.3407 5.27706 14.3398 4.58149 14.2909 4.04083C14.2428 3.50968 14.1526 3.19372 14.0126 2.95098C13.7974 2.57849 13.4876 2.26869 13.1151 2.05352C12.8724 1.91347 12.5564 1.82237 12.0253 1.77423C11.4847 1.72528 10.7888 1.7254 9.80164 1.7254H7.71472C6.7562 1.72558 5.92665 2.27697 5.52332 3.07891H4.07019C4.54221 1.51132 5.9932 0.368186 7.71472 0.367975H9.80164Z" fill="currentColor" />'),lL=Rt("IconWarningOutline16",14,"0 0 14 14",'<path d="M6.3002 3.32843L7.69986 3.32843L7.69986 7.79657H6.3002L6.3002 3.32843Z" fill="currentColor" /> <path d="M6.3002 9.01935H7.69986V10.6711H6.3002V9.01935Z" fill="currentColor" /> <path d="M12.6328 6.99976C12.6328 3.88874 10.111 1.36694 7 1.36694C3.88899 1.36695 1.3672 3.88875 1.36719 6.99976C1.36719 10.1108 3.88899 12.6326 7 12.6326C10.111 12.6326 12.6328 10.1108 12.6328 6.99976ZM13.8582 6.99976C13.8582 10.7873 10.7876 13.8579 7 13.8579C3.21244 13.8579 0.141846 10.7873 0.141846 6.99976C0.141857 3.2122 3.21245 0.141612 7 0.141602C10.7876 0.141602 13.8581 3.21219 13.8582 6.99976Z" fill="currentColor" />'),gL=Rt("IconCheckOutline14",14,"0 0 14 14",'<path d="M11.5635 4.58984L7.61426 9.07715C7.35154 9.37561 7.11346 9.64812 6.89453 9.84668C6.66593 10.054 6.38519 10.2506 6.01465 10.3164C5.82079 10.3508 5.62207 10.3529 5.42773 10.3213C5.0561 10.2609 4.77266 10.0674 4.54102 9.86328C4.31926 9.66791 4.07752 9.39911 3.81055 9.10449L2.44531 7.59863L3.55664 6.59082L4.92188 8.09766C5.21256 8.41844 5.38878 8.61191 5.53223 8.73828C5.61022 8.80699 5.65253 8.83192 5.66895 8.83984C5.69648 8.84429 5.72449 8.84467 5.75195 8.83984C5.72657 8.84451 5.75564 8.85422 5.88672 8.73535C6.02833 8.60692 6.20225 8.41088 6.48828 8.08594L10.4385 3.59961L11.5635 4.58984Z" fill="currentColor" />'),cL=Rt("IconLikeOutline16",16,"0 0 16 16",'<path d="M8.27868 0.811572C8.81991 0.142194 9.79022 0.0421835 10.4538 0.557601L10.5823 0.669306L10.6066 0.693544L10.6097 0.695652L10.6392 0.725159C11.355 1.44679 11.6337 2.49468 11.3716 3.47669L11.3706 3.48091L11.3611 3.51674L11.3601 3.51885L10.889 5.22604C10.8796 5.25997 10.8707 5.29157 10.8627 5.32088C10.8934 5.32095 10.927 5.32194 10.9628 5.32194H11.9007C12.4264 5.32194 12.7831 5.319 13.0651 5.36725C14.8182 5.66719 15.9851 7.34568 15.6565 9.09357C15.6036 9.37487 15.477 9.7092 15.294 10.2022L14.3371 12.7798C14.1402 13.3104 13.9774 13.7518 13.8102 14.1024C13.6376 14.4645 13.4386 14.7793 13.1442 15.0424C12.9712 15.197 12.7802 15.3303 12.5751 15.4386C12.226 15.6231 11.8608 15.7 11.4612 15.7358C11.0743 15.7705 10.6035 15.7695 10.0375 15.7695H4.87377C4.08053 15.7695 3.42928 15.7702 2.90734 15.7137C2.37212 15.6557 1.88991 15.5311 1.46676 15.2237C1.22415 15.0474 1.01078 14.8339 0.834466 14.5914C0.527021 14.1682 0.401373 13.686 0.343384 13.1508C0.286822 12.6287 0.287531 11.9769 0.287531 11.1833V9.51405C0.287531 8.84778 0.281347 8.36714 0.399237 7.9565C0.671152 7.00935 1.41115 6.26832 2.35829 5.99638C2.76894 5.87849 3.24958 5.88573 3.91585 5.88573C4.11983 5.88573 4.14548 5.88319 4.16244 5.88046C4.23532 5.86863 4.30409 5.83663 4.35845 5.78667C4.3711 5.77504 4.38761 5.75604 4.51442 5.59488L8.25655 0.838972L8.2576 0.837918L8.27868 0.811572ZM1.69122 11.1833C1.69122 12.0082 1.69217 12.5711 1.73865 13.0001C1.78371 13.4157 1.86473 13.6221 1.96943 13.7662C2.0592 13.8898 2.16733 13.9989 2.29085 14.0887C2.43501 14.1934 2.64216 14.2744 3.05803 14.3195C3.45897 14.3629 3.97637 14.3656 4.7157 14.3659C4.30801 13.8053 4.06453 13.1171 4.06444 12.371V8.59406H5.46813V12.371C5.46838 13.4733 6.36166 14.3669 7.46407 14.3669H10.0375C10.6286 14.3669 11.0269 14.3663 11.3369 14.3385C11.6339 14.3118 11.7956 14.2638 11.9196 14.1983C12.0241 14.1431 12.1213 14.0747 12.2094 13.996C12.314 13.9025 12.4151 13.7678 12.5435 13.4986C12.6774 13.2176 12.8162 12.845 13.0219 12.2909L13.9788 9.71322C14.1848 9.15816 14.2531 8.96731 14.2781 8.83433C14.4618 7.85692 13.8093 6.91895 12.8291 6.75092C12.6957 6.7281 12.4928 6.72458 11.9007 6.72458H10.9628C10.7737 6.72458 10.5693 6.72657 10.4 6.70666C10.2211 6.68562 9.96702 6.63024 9.74771 6.43161C9.64454 6.33811 9.55957 6.2261 9.4969 6.10177C9.3639 5.83784 9.37799 5.57899 9.40521 5.40097C9.431 5.23261 9.48672 5.03616 9.53694 4.85404L10.008 3.14579L10.0175 3.11102C10.1488 2.61338 10.0078 2.08338 9.64654 1.71681L9.6086 1.67887L9.55064 1.64304C9.48795 1.62043 9.41425 1.63814 9.36938 1.69362L9.35779 1.70627L9.35884 1.70732L5.61672 6.46217C5.51822 6.58735 5.42237 6.7133 5.30689 6.81942C5.05075 7.05471 4.73126 7.20939 4.38796 7.26519C4.23315 7.29032 4.07513 7.28837 3.91585 7.28837C3.15356 7.28837 2.91916 7.2957 2.7461 7.34528C2.26364 7.48379 1.88564 7.86081 1.74708 8.34325C1.69738 8.51636 1.69122 8.7511 1.69122 9.51405V11.1833Z" fill="currentColor" />'),uL=Rt("IconDislikeOutline16",16,"0 0 16 16",'<path d="M7.72451 15.1086C7.18929 15.7705 6.22975 15.8694 5.57357 15.3597L5.44643 15.2492L5.42247 15.2253L5.41934 15.2232L5.39016 15.194C4.68239 14.4804 4.40679 13.4441 4.66589 12.473L4.66693 12.4689L4.67631 12.4334L4.67735 12.4314L5.14318 10.7431C5.15243 10.7096 5.1613 10.6783 5.16923 10.6493C5.13878 10.6493 5.10558 10.6483 5.07023 10.6483H4.14274C3.62288 10.6483 3.27015 10.6512 2.9912 10.6035C1.25757 10.3069 0.103662 8.64702 0.42863 6.91854C0.480965 6.64037 0.606164 6.30975 0.787119 5.82223L1.73336 3.27321C1.92812 2.74852 2.08912 2.31209 2.25442 1.96535C2.42515 1.60724 2.62191 1.29594 2.91304 1.03578C3.08408 0.882951 3.273 0.751121 3.47579 0.643944C3.82102 0.461504 4.18214 0.38551 4.57731 0.350066C4.95993 0.315784 5.42553 0.316718 5.98521 0.316718H11.0916C11.876 0.316718 12.52 0.31607 13.0362 0.37195C13.5655 0.429293 14.0423 0.552534 14.4608 0.856536C14.7007 1.03085 14.9117 1.24193 15.086 1.48181C15.3901 1.90027 15.5143 2.37709 15.5717 2.90638C15.6276 3.42269 15.6269 4.06721 15.6269 4.85202V6.50274C15.6269 7.1616 15.633 7.6369 15.5164 8.04299C15.2475 8.97962 14.5158 9.71242 13.5791 9.98133C13.173 10.0979 12.6977 10.0908 12.0389 10.0908C11.8372 10.0908 11.8118 10.0933 11.795 10.096C11.723 10.1077 11.6549 10.1393 11.6012 10.1887C11.5887 10.2002 11.5724 10.219 11.447 10.3784L7.74639 15.0815L7.74535 15.0825L7.72451 15.1086ZM14.2388 4.85202C14.2388 4.03628 14.2379 3.47965 14.1919 3.05541C14.1473 2.64443 14.0672 2.4403 13.9637 2.29779C13.8749 2.17562 13.768 2.06769 13.6458 1.9789C13.5033 1.87532 13.2984 1.79523 12.8872 1.75067C12.4907 1.70773 11.979 1.70511 11.2479 1.70482C11.6511 2.25917 11.8918 2.93968 11.8919 3.67755V7.41251H10.5038V3.67755C10.5036 2.58745 9.62023 1.70378 8.53007 1.70378H5.98521C5.40065 1.70378 5.00679 1.70442 4.70028 1.73192C4.40651 1.7583 4.24662 1.80571 4.12399 1.87052C4.02069 1.92511 3.92452 1.99276 3.8374 2.07061C3.73401 2.16306 3.634 2.2962 3.50705 2.56249C3.37462 2.84027 3.23734 3.20873 3.03393 3.75675L2.08768 6.30578C1.88395 6.85467 1.81646 7.0434 1.79172 7.1749C1.61005 8.14146 2.25533 9.06902 3.22464 9.23517C3.35654 9.25774 3.55717 9.26123 4.14274 9.26123H5.07023C5.25717 9.26123 5.4593 9.25926 5.62672 9.27894C5.80364 9.29975 6.05492 9.35452 6.27179 9.55094C6.37381 9.6434 6.45784 9.75417 6.51982 9.87712C6.65133 10.1381 6.6374 10.3941 6.61048 10.5701C6.58498 10.7366 6.52988 10.9309 6.48022 11.111L6.01439 12.8003L6.00501 12.8347C5.87513 13.3268 6.01464 13.8509 6.37184 14.2134L6.40935 14.2509L6.46667 14.2863C6.52866 14.3087 6.60155 14.2912 6.64591 14.2363L6.65738 14.2238L6.65633 14.2228L10.3569 9.52072C10.4543 9.39693 10.5491 9.27238 10.6633 9.16744C10.9166 8.93476 11.2325 8.7818 11.572 8.72662C11.7251 8.70177 11.8814 8.70369 12.0389 8.70369C12.7927 8.70369 13.0245 8.69645 13.1956 8.64742C13.6727 8.51045 14.0465 8.13761 14.1836 7.66053C14.2327 7.48935 14.2388 7.25721 14.2388 6.50274V4.85202Z" fill="currentColor" />'),hL=Rt("IconBranchOutline16",16,"0 0 16 16",'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.0762 1.37207C14.0846 1.37228 14.9021 2.19077 14.9023 3.19922C14.9022 4.20772 14.0847 5.02518 13.0762 5.02539C12.2967 5.02539 11.6325 4.53691 11.3701 3.84961H4.35547C4.79397 4.26458 5.15861 4.7644 5.41699 5.33496L7.10645 9.06738C7.88526 10.7875 9.55104 11.9228 11.4189 12.0371C11.7085 11.4109 12.3411 10.9756 13.0762 10.9756C14.0843 10.9759 14.9023 11.7936 14.9023 12.8018C14.9023 13.81 14.0843 14.6277 13.0762 14.6279C12.2534 14.6279 11.5574 14.0832 11.3291 13.335C8.9868 13.1879 6.89981 11.7612 5.92285 9.60352L4.23242 5.87109C3.67503 4.64033 2.44878 3.84961 1.09766 3.84961V2.54883C1.10665 2.54883 1.11601 2.54975 1.125 2.5498L11.3701 2.54883C11.6326 1.86151 12.2969 1.37207 13.0762 1.37207ZM13.0762 12.2764C12.7858 12.2764 12.5508 12.5114 12.5508 12.8018C12.5508 13.0921 12.7858 13.3281 13.0762 13.3281C13.3664 13.3279 13.6025 13.092 13.6025 12.8018C13.6025 12.5115 13.3664 12.2766 13.0762 12.2764ZM13.0762 2.67285C12.7855 2.67285 12.55 2.90861 12.5498 3.19922C12.5499 3.48987 12.7855 3.72559 13.0762 3.72559C13.3667 3.72538 13.6024 3.48975 13.6025 3.19922C13.6023 2.90874 13.3666 2.67306 13.0762 2.67285Z" fill="currentColor" />'),CL=Rt("IconCheckOutline16",16,"0 0 16 16",'<path d="M15.0498 3.92579L8.49512 12.3818C8.25774 12.6881 8.04517 12.9645 7.84668 13.1689C7.63957 13.3823 7.38732 13.5841 7.04492 13.6719C6.86373 13.7183 6.6757 13.7346 6.48926 13.7197C6.13666 13.6915 5.8528 13.5355 5.6123 13.3604C5.38201 13.1926 5.12573 12.9567 4.83984 12.6953L1.03125 9.21289L1.96875 8.1875L5.77734 11.6699C6.08684 11.9529 6.27773 12.1249 6.43066 12.2363C6.50183 12.2882 6.54699 12.3135 6.57324 12.3252C6.58525 12.3305 6.59269 12.3322 6.5957 12.333C6.59802 12.3336 6.59961 12.334 6.59961 12.334C6.63317 12.3367 6.66758 12.3335 6.7002 12.3252C6.7002 12.3252 6.70211 12.3251 6.7041 12.3242C6.70698 12.3229 6.71348 12.319 6.72461 12.3115C6.74849 12.2956 6.78843 12.2642 6.84961 12.2012C6.98138 12.0654 7.13957 11.8628 7.39648 11.5313L13.9502 3.07422L15.0498 3.92579Z" fill="currentColor" />'),IL=Rt("IconChevronLeftOutline14",14,"0 0 14 14",'<path d="M8.5 2.15137L8.07617 2.57617L5.34863 5.30273C5.09294 5.55843 4.86618 5.78438 4.70215 5.98828C4.53117 6.20088 4.38244 6.44405 4.33398 6.75C4.30778 6.91565 4.30778 7.08435 4.33398 7.25C4.38244 7.55595 4.53117 7.79912 4.70215 8.01172C4.86618 8.21561 5.09294 8.44157 5.34863 8.69727L8.07617 11.4238L8.5 11.8486L9.34863 11L8.92383 10.5762L6.19727 7.84863C5.92268 7.57405 5.75151 7.40124 5.6377 7.25977C5.53096 7.12709 5.52187 7.07728 5.51953 7.0625C5.51297 7.02105 5.51297 6.97895 5.51953 6.9375C5.52187 6.92272 5.53096 6.87291 5.6377 6.74023C5.75152 6.59876 5.92268 6.42595 6.19727 6.15137L8.92383 3.42383L9.34863 3L8.5 2.15137Z" fill="currentColor" />'),dL=Rt("IconChevronRightOutline14",14,"0 0 14 14",'<path d="M5.5 2.15137L5.92383 2.57617L8.65137 5.30273C8.90706 5.55843 9.13382 5.78438 9.29785 5.98828C9.46883 6.20088 9.61756 6.44405 9.66602 6.75C9.69222 6.91565 9.69222 7.08435 9.66602 7.25C9.61756 7.55595 9.46883 7.79912 9.29785 8.01172C9.13382 8.21561 8.90706 8.44157 8.65137 8.69727L5.92383 11.4238L5.5 11.8486L4.65137 11L5.07617 10.5762L7.80273 7.84863C8.07732 7.57405 8.24849 7.40124 8.3623 7.25977C8.46904 7.12709 8.47813 7.07728 8.48047 7.0625C8.48703 7.02105 8.48703 6.97895 8.48047 6.9375C8.47813 6.92272 8.46904 6.87291 8.3623 6.74023C8.24848 6.59876 8.07732 6.42595 7.80273 6.15137L5.07617 3.42383L4.65137 3L5.5 2.15137Z" fill="currentColor" />'),fL=Rt("IconCloseOutline16",16,"0 0 16 16",'<path d="M14.1168 13.197L13.197 14.1167L1.8833 2.80303L2.80309 1.88324L14.1168 13.197Z" fill="currentColor" /><path d="M13.197 1.88326L14.1168 2.80305L2.80309 14.1168L1.8833 13.197L13.197 1.88326Z" fill="currentColor" />'),BL=["data-side"],QL=u.defineComponent({name:"HarnessTooltip",__name:"Tooltip",props:{label:{},side:{default:"bottom"},delayMs:{default:0},disabled:{type:Boolean,default:!1}},setup(e){const A=e,t=u.ref(!1),r=u.ref(A.side),i=u.ref(),n=u.ref(),a=u.ref(null),o={hover:!1,focus:!1};let s;function l(){s!==void 0&&(clearTimeout(s),s=void 0)}function g(){if(A.disabled)return;const B=n.value;if(!B)return;const Q=B.getBoundingClientRect();r.value=A.side,a.value={x:A.side==="right"?Q.right+10:Q.left+Q.width/2,top:Q.top,bottom:Q.bottom},t.value=!0}function c(){if(l(),A.delayMs<=0){g();return}s=setTimeout(()=>{s=void 0,g()},A.delayMs)}function C(){l(),!o.hover&&!o.focus&&(t.value=!1,a.value=null)}function h(){o.hover=!0,c()}function I(){o.hover=!1,l(),t.value=!1,a.value=null}function d(){o.focus=!0,l(),g()}function f(){o.focus=!1,C()}return u.watch(()=>A.disabled,B=>{B&&(l(),o.hover=!1,o.focus=!1,t.value=!1,a.value=null)}),u.watch([t,a,r,()=>A.label],async()=>{if(!t.value||!a.value)return;await u.nextTick();const B=i.value,Q=a.value;if(!B||!Q)return;const p=12;B.style.left=`${Q.x}px`;const E=B.getBoundingClientRect();let m=0;if(E.right>window.innerWidth-p&&(m=window.innerWidth-p-E.right),E.left+m<p&&(m=p-E.left),B.style.left=`${Q.x+m}px`,A.side==="right")return;const v=Q.bottom+8+E.height<=window.innerHeight-p,w=Q.top-8-E.height>=p;r.value==="bottom"&&!v&&w&&(r.value="top"),r.value==="top"&&!w&&v&&(r.value="bottom")}),u.onBeforeUnmount(()=>{l()}),(B,Q)=>(u.openBlock(),u.createElementBlock("span",{ref_key:"rootRef",ref:n,class:"dsh-tooltip","data-testid":"harness-tooltip",onMouseenter:h,onMouseleave:I,onFocusin:d,onFocusout:f},[u.renderSlot(B.$slots,"default",{},void 0,!0),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[t.value&&e.label?(u.openBlock(),u.createElementBlock("span",{key:0,ref_key:"bubbleRef",ref:i,class:"dsh-tooltip__bubble","data-side":r.value,style:u.normalizeStyle(a.value?{left:`${a.value.x}px`,top:`${r.value==="right"?a.value.top+(a.value.bottom-a.value.top)/2:r.value==="top"?a.value.top-8:a.value.bottom+8}px`}:void 0),role:"tooltip"},u.toDisplayString(e.label),13,BL)):u.createCommentVNode("",!0)]))],544))}}),Nh=Ie(QL,[["__scopeId","data-v-807a5031"]]),pL={class:"chat-actionbar","aria-label":"回复操作"},EL=["disabled","aria-label"],mL=["aria-label","aria-pressed","data-active"],vL=["aria-label","aria-pressed","data-active"],yL=["aria-disabled","data-unavailable"],wL={class:"chat-actionbar__status","aria-live":"polite"},DL=u.defineComponent({name:"ChatActionbar",__name:"ChatActionbar",props:{message:{},text:{default:void 0},feedback:{default:void 0},showFeedback:{type:Boolean,default:!0},showBranch:{type:Boolean,default:!0},branchUnavailable:{type:Boolean,default:!1}},emits:["copy","feedback","branch"],setup(e,{emit:A}){const t=e,r=A,i=u.ref(!1),n=u.ref(!1),a=u.ref(null),o=u.computed(()=>t.text??t.message.content??""),s=u.computed(()=>o.value.trim().length>0),l=u.computed(()=>t.feedback!==void 0?t.feedback??null:a.value),g=u.computed(()=>i.value?"已复制":n.value?"复制失败,请重试":s.value?"复制":"没有可复制内容"),c=u.computed(()=>l.value==="up"?"已标记为好的回答":"好的回答"),C=u.computed(()=>l.value==="down"?"已标记为有问题的回答":"有问题的回答"),h=u.computed(()=>t.branchUnavailable?"当前消息无法分支":"在新对话中分支");let I;u.watch(()=>t.feedback,E=>{E!==void 0&&(a.value=E)},{immediate:!0});async function d(){if(!s.value||i.value)return;const E=o.value;if(I&&clearTimeout(I),!await p(E)){i.value=!1,n.value=!0,I=setTimeout(()=>{n.value=!1},2e3);return}n.value=!1,i.value=!0,I=setTimeout(()=>{i.value=!1},1e3),r("copy",{message:t.message,text:E})}function f(E){t.feedback===void 0&&(a.value=E),r("feedback",{message:t.message,rating:E})}function B(E){f(l.value===E?null:E)}function Q(){t.branchUnavailable||r("branch",{message:t.message})}async function p(E){var v;if(typeof navigator<"u"&&((v=navigator.clipboard)!=null&&v.writeText))try{return await navigator.clipboard.writeText(E),!0}catch{}if(typeof document>"u")return!1;const m=document.createElement("textarea");m.value=E,m.setAttribute("readonly",""),m.style.position="fixed",m.style.opacity="0",document.body.append(m),m.select();try{return document.execCommand("copy")}finally{m.remove()}}return u.onBeforeUnmount(()=>{I&&clearTimeout(I)}),(E,m)=>(u.openBlock(),u.createElementBlock("div",pL,[u.renderSlot(E.$slots,"default",{message:e.message,copied:i.value,copyFailed:n.value,copy:d,feedback:l.value,setFeedback:f,branch:Q},()=>[u.createVNode(Nh,{label:g.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{class:u.normalizeClass(["chat-actionbar__action",{"chat-actionbar__action--failed":n.value}]),type:"button",disabled:!s.value,"aria-label":i.value?"已复制":n.value?"复制失败":"复制","data-testid":"chat-actionbar-copy",onClick:d},[i.value?(u.openBlock(),u.createBlock(u.unref(CL),{key:0,class:"chat-actionbar__success-icon",size:16})):n.value?(u.openBlock(),u.createBlock(u.unref(lL),{key:1,class:"chat-actionbar__error-icon",size:16})):(u.openBlock(),u.createBlock(u.unref(sL),{key:2,class:"chat-actionbar__icon",size:16}))],10,EL)]),_:1},8,["label"]),e.showFeedback?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(Nh,{label:c.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":c.value,"aria-pressed":l.value==="up","data-active":l.value==="up"||void 0,"data-testid":"chat-actionbar-like",onClick:m[0]||(m[0]=v=>B("up"))},[u.createVNode(u.unref(cL),{size:16})],8,mL)]),_:1},8,["label"]),u.createVNode(Nh,{label:C.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":C.value,"aria-pressed":l.value==="down","data-active":l.value==="down"||void 0,"data-testid":"chat-actionbar-dislike",onClick:m[1]||(m[1]=v=>B("down"))},[u.createVNode(u.unref(uL),{size:16})],8,vL)]),_:1},8,["label"])],64)):u.createCommentVNode("",!0),e.showBranch?(u.openBlock(),u.createBlock(Nh,{key:1,label:h.value,side:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("button",{type:"button",class:"chat-actionbar__action","aria-label":"在新对话中分支","aria-disabled":e.branchUnavailable||void 0,"data-unavailable":e.branchUnavailable||void 0,"data-testid":"chat-actionbar-branch",onClick:Q},[u.createVNode(u.unref(hL),{size:16})],8,yL)]),_:1},8,["label"])):u.createCommentVNode("",!0),u.createElementVNode("span",wL,u.toDisplayString(i.value?"已复制":n.value?"复制失败":""),1)],!0)]))}}),aS=Ie(DL,[["__scopeId","data-v-c3efe3b7"]]);function Il(e,A={}){const t=e.trim();if(!t||!kL(t)||t.includes("imageView2"))return e;const{width:r,height:i}=A,n=Ey(r),a=Ey(i);if(n===void 0&&a===void 0)return e;let o="imageView2/2";n!==void 0&&(o+=`/w/${n}`),a!==void 0&&(o+=`/h/${a}`);const s=t.includes("?")?"&":"?";return`${t}${s}${o}`}function kL(e){if(e.startsWith("blob:")||e.startsWith("data:"))return!1;try{return new URL(e,typeof location<"u"?location.href:"https://example.com").hostname.includes("yxuer.com")}catch{return/(?:^|[/.])yxuer\.com(?:[/:]|$)/i.test(e)}}function Ey(e){if(e===void 0||!Number.isFinite(e))return;const A=Math.round(e);return A>0?A:void 0}const oS=new Set(["avif","bmp","gif","heic","jpeg","jpg","png","svg","webp"]),bL=new Set(["csv","docx","htm","html","json","markdown","md","pdf","pptx","txt","xls","xlsx"]),sS=new Set(["aac","flac","m4a","mp3","oga","ogg","wav"]),lS=new Set(["avi","m4v","mkv","mov","mp4","webm"]),rh={maxFiles:10,imageMaxSize:20*1024*1024,documentMaxSize:50*1024*1024,audioMaxSize:100*1024*1024,videoMaxSize:500*1024*1024};let my=0;function Jn(e){const A=e.lastIndexOf(".");return A>-1?e.slice(A+1).toLowerCase():""}function Q0(e){const A=Jn(e.name);return oS.has(A)||e.type.startsWith("image/")?"image":sS.has(A)||e.type.startsWith("audio/")?"audio":lS.has(A)||e.type.startsWith("video/")?"video":bL.has(A)?"document":"unsupported"}function IE(e){return`${e.name}:${e.size}:${e.lastModified}`}function gS(e,A=rh){const t=Q0(e);if(t==="unsupported"){const n=Jn(e.name);return{code:"unsupported_type",message:`不支持 ${n?n.toUpperCase():"该类型"} 文件`}}const r={image:A.imageMaxSize,document:A.documentMaxSize,audio:A.audioMaxSize,video:A.videoMaxSize}[t];return e.size<=r?null:{code:"file_too_large",message:`${{image:"图片",document:"文档",audio:"音频",video:"视频"}[t]}大小不能超过 ${SL(r)} MB`}}function _v(e){const A=GB(e)&&GB(e.result)?e.result:e;if(!GB(A))throw new Error("上传响应缺少完整文件元数据");if(A.status!==1)throw new Error("文件状态异常");const t=["id","fileKey","fileName","fileType","fileMineType","mimeType","url"],r=["bucketType","size","duration","w","h","status"],i=t.every(a=>typeof A[a]=="string"&&A[a].trim().length>0),n=r.every(a=>typeof A[a]=="number"&&Number.isFinite(A[a]));if(!i||!n)throw new Error("上传响应缺少完整文件元数据");return A}function cS(e){return{filename:e.fileName,url_type:e.fileType,size:e.size,original_url:e.url}}function Qf(e,A){const t=A.filter(a=>a.status==="uploaded"),r=t.map(a=>a.resource),i=[],n=e.trim();n&&i.push({type:"input_text",text:n});for(const a of t)i.push(uS(a.resource));return{message:{id:Fv(),role:"user",content:n,resource_files:r},modelInput:{role:"user",content:i},attachments:t}}function uS(e){const A=e.url_type.toLowerCase();return oS.has(A)?{type:"image_url",image_url:{url:e.original_url}}:lS.has(A)?{type:"video_url",video_url:{url:e.original_url}}:sS.has(A)?{type:"input_audio",input_audio:{url:e.original_url}}:{type:"file",file:{file_url:e.original_url,filename:e.filename}}}function Fv(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(my+=1,`chat-message-${my}`)}function SL(e){const A=e/1048576;return Number.isInteger(A)?String(A):A.toFixed(1)}function GB(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const mg=u.shallowReactive(new Map),NL=new Set(["avif","bmp","gif","heic","jpeg","jpg","png","svg","webp"]),xL=new Set(["aac","flac","m4a","mp3","oga","ogg","wav"]),_L=new Set(["avi","m4v","mkv","mov","mp4","webm"]),FL=new Set(["c","cpp","css","csv","go","h","hpp","java","js","json","jsx","kt","less","log","markdown","md","mjs","php","py","rb","rs","sass","scss","sh","sql","swift","toml","ts","tsx","txt","vue","xml","yaml","yml"]);function p0(e){const A=(e.url_type||Jn(e.filename)).toLowerCase();return NL.has(A)?"image":A==="pdf"?"pdf":A==="docx"?"docx":A==="xls"||A==="xlsx"?"excel":A==="pptx"?"pptx":A==="html"||A==="htm"?"html":FL.has(A)?"text":xL.has(A)?"audio":_L.has(A)?"video":"unsupported"}function RL(e,A){const t=mg.get(e);return mg.set(e,A),()=>{mg.get(e)===A&&(t?mg.set(e,t):mg.delete(e))}}function hS(e){return mg.get(e)}const ML="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3410.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203410.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%237BCD70'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(6.5%206.81343060178915)'%3e%3cg%20transform='translate(3.0%200.0)'%3e%3cpath%20d='M0.5,0%20L0.5,5.77305572'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(0.0%201.346484336095219)'%3e%3cpath%20d='M0.5,0%20L0.5,3.26919267'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(6.0%201.346484336095219)'%3e%3cpath%20d='M0.5,0%20L0.5,3.26919267'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",LL="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwLjAgMjAuMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGNsaXBQYXRoIGlkPSJpMCI+PHBhdGggZD0iTTE5MjAsMCBMMTkyMCw4MTM2IEwwLDgxMzYgTDAsMCBMMTkyMCwwIFoiPjwvcGF0aD48L2NsaXBQYXRoPjxjbGlwUGF0aCBpZD0iaTEiPjxwYXRoIGQ9Ik0xMCwwIEMxNS41MjI4NDc1LDAgMjAsNC40NzcxNTI1IDIwLDEwIEMyMCwxNS41MjI4NDc1IDE1LjUyMjg0NzUsMjAgMTAsMjAgQzQuNDc3MTUyNSwyMCAwLDE1LjUyMjg0NzUgMCwxMCBDMCw0LjQ3NzE1MjUgNC40NzcxNTI1LDAgMTAsMCBaIj48L3BhdGg+PC9jbGlwUGF0aD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTYyNS4wIC0zMzc5LjApIj48ZyBjbGlwLXBhdGg9InVybCgjaTApIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2MjUuMCAzMzc5LjApIj48ZyBjbGlwLXBhdGg9InVybCgjaTEpIj48cG9seWdvbiBwb2ludHM9IjAsMCAyMCwwIDIwLDIwIDAsMjAgMCwwIiBzdHJva2U9Im5vbmUiIGZpbGw9IiMxRkI5QjQiPjwvcG9seWdvbj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0LjAgMS4wKSI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wIDE1LjApIiBmb250LWZhbWlseT0iQXJpYWwtQm9sZE1ULCBBcmlhbCIgZm9udC1zaXplPSIxNy4wIiBmb250LXdlaWdodD0iYm9sZCIgZmlsbD0iI0ZGRkZGRiIgdGV4dC1hbmNob3I9ImxlZnQiIGxldHRlci1zcGFjaW5nPSIxLjI3NzkzMDgiPkU8L3RleHQ+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",GL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M1.5,0%20C2.32842712,0%203,0.671572875%203,1.5%20C3,2.32842712%202.32842712,3%201.5,3%20C0.671572875,3%200,2.32842712%200,1.5%20C0,0.671572875%200.671572875,0%201.5,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3477.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203477.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%23EAB246'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3cg%20transform='translate(4.0%202.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%203,0%203,3%200,3%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3cg%20transform='translate(2.091270824181265%206.145946252421709)'%3e%3cpath%20d='M0,5.81865254%20L5.65345286,1.19961923%20C6.47672505,0.526982216%207.68235829,0.615972219%208.39794932,1.40219555%20L10.9087292,4.16080157%20L10.9087292,4.16080157'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(0.37214794237459126%207.145946252390459)'%3e%3cpath%20d='M0,1.53800387%20L2.18352899,0%20L4.44906963,2.42680588'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",TL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M6.79777025,0%20C6.95334091,0%207.09446453,0.0615185355%207.19838283,0.161446649%20L7.34735284,0.281406864%20L7.48942472,0.412782123%20L7.53633577,0.459706506%20C8.63821558,1.56216923%208.54480253,3.30249867%207.44294131,4.40570504%20L4.88700484,6.96207999%20C3.78360038,8.06454272%201.978594,8.06454272%200.875189539,6.96207999%20L0.827553346,6.91443055%20C-0.275851115,5.81194923%20-0.275851115,4.00634582%200.827553346,2.90226566%20L2.00133368,1.80407893%20C2.03604749,1.76182095%202.07628352,1.72434094%202.12074025,1.69238253%20L2.13278875,1.68113481%20C2.2343271,1.61461522%202.35583472,1.57451384%202.48663902,1.57451384%20C2.83346099,1.57451384%203.11453684,1.85565113%203.11453684,2.20234126%20C3.11453684,2.40169552%203.02149566,2.57924222%202.87659759,2.69428504%20L1.74705087,3.82327752%20C1.14791697,4.42087553%201.14791697,5.39554181%201.74705087,5.99458994%20L1.7951333,6.04266698%20C2.3942672,6.64100864%203.36829905,6.64100864%203.96743294,6.04266698%20L6.52409456,3.48703568%20C7.12328424,2.88796896%207.30211519,1.85710125%206.70298129,1.25875959%20L6.65532651,1.21105437%20C6.60529177,1.16108102%206.55176148,1.11677801%206.49728293,1.0718243%20C6.44325062,1.03893633%206.39516819,0.997329053%206.35470904,0.949103281%20L6.29804925,0.868582717%20C6.24825507,0.783226098%206.21970264,0.683945193%206.21970264,0.578002801%20C6.21970264,0.258753393%206.47848504,0%206.79777025,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i3'%3e%3cpath%20d='M3.41446942,0.827460556%20C4.51787388,-0.275820185%206.32288026,-0.275820185%207.42628472,0.827460556%20L7.47392091,0.875109998%20C8.57732537,1.97837215%208.57732537,3.7832505%207.4731214,4.88645687%20L6.2866418,5.98116704%20C6.24648013,6.03171672%206.1986766,6.07594537%206.14486741,6.11195667%20L6.12742684,6.12807531%20C6.03038808,6.18297535%205.91862339,6.21690443%205.79884495,6.21690443%20C5.45494213,6.21690443%205.1760417,5.93803527%205.1760417,5.59409665%20C5.1760417,5.38894191%205.27540463,5.20693331%205.42857674,5.09343356%20L6.55434902,3.96698809%20C7.15348292,3.36866502%207.15348292,2.39362691%206.55434902,1.79457878%20L6.50671283,1.7476544%20C5.90750456,1.14853191%204.93317521,1.14853191%204.3354916,1.7476544%20L1.77803047,4.30330429%20C1.17891516,4.90237101%200.95142538,5.77266587%201.55055928,6.37173258%20L1.59747033,6.41791332%20C1.69088338,6.51131589%201.82598275,6.60992402%201.8980878,6.77187264%20C1.9328202,6.84370933%201.95226886,6.92417238%201.95226886,7.00928324%20C1.95226886,7.31059207%201.70795208,7.55495581%201.4065351,7.55495581%20C1.30767419,7.55495581%201.21500488,7.52846325%201.13496045,7.48248702%20C1.08347544,7.45262943%201.03829357,7.41589306%200.999879681,7.3729658%20C0.94677704,7.32773323%200.894771407,7.28045561%200.844662297,7.23040789%20L0.797825619,7.18422716%20C-0.305578843,6.08022136%20-0.244871516,4.48711625%200.858532945,3.3838355%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3568.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203568.0)'%3e%3cpath%20d='M10,20%20C15.5228475,20%2020,15.5228475%2020,10%20C20,4.4771525%2015.5228475,0%2010,0%20C4.4771525,0%200,4.4771525%200,10%20C0,15.5228475%204.4771525,20%2010,20%20Z'%20stroke='%23FFFFFF'%20stroke-width='1'%20fill='none'%20stroke-miterlimit='5'%3e%3c/path%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%237756D9'%3e%3c/polygon%3e%3cg%20transform='translate(3.998884398294778%204.000000000000257)'%3e%3cg%20transform='translate(0.0%204.211072964564665)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%208.31752422,0%208.31752422,7.78892704%200,7.78892704%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3cg%20transform='translate(3.699741255288245%200.0)'%3e%3cg%20clip-path='url(%23i3)'%3e%3cpolygon%20points='1.66742241e-16,0%208.30137435,0%208.30137435,7.55495581%201.66742241e-16,7.55495581%201.66742241e-16,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",YL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M5.3657441,0.00360871716%20C5.69905725,0.00360871716%206.03231181,0.170707006%206.23225869,0.438014339%20C6.66551599,1.03951825%206.63222568,2.30929783%206.0656607,4.18062539%20C6.59887679,5.18309764%207.29879339,6.08536085%208.13194444,6.85388962%20C8.83186104,6.7202433%209.5317337,6.61997551%2010.2315917,6.61997551%20C11.7980229,6.65341279%2012.0313333,7.38857771%2011.9979698,7.82298333%20C11.9979698,8.95910191%2010.8981448,8.95910191%2010.3315945,8.95910191%20C9.43171633,8.8922714%208.56520174,8.55813357%207.86534372,7.95662966%20C6.498918,8.25738895%205.19914611,8.69179458%203.89931565,9.22640924%20C2.86620307,11.0642995%201.89968575,12%201.06646147,12%20C0.899863478,12%200.699858015,11.9665627%200.566564978,11.8662803%20C0.199946879,11.6992407%200,11.3316656%200,10.9640905%20C0,10.6633459%200.0666538417,9.82791315%203.23280652,8.45786578%20C3.96602807,7.12121164%204.53259305,5.75116427%204.99914065,4.31428639%20C4.59923225,3.51230566%203.73271766,1.54075438%204.33257294,0.538282123%20C4.53259305,0.170707006%204.93248681,-0.0298285623%205.3657441,0.00360871716%20Z%20M2.19965001,10.0618419%20C1.69973887,10.2623188%201.29977188,10.5965154%200.999822272,11.030921%20L1.099825,10.997469%20C1.5663726,10.8304295%201.93297606,10.4962476%202.19965001,10.0618419%20Z%20M5.66570836,5.85143205%20L5.63240341,5.91826256%20L5.59905452,5.88481059%20C5.29909026,6.65341279%204.96585035,7.42195625%204.59923225,8.15712117%20L4.66588609,8.12372794%20L4.66588609,8.19055845%20C5.39910764,7.92319238%206.19896839,7.68932232%206.93217529,7.52222403%20L6.8988264,7.48878676%20L6.99882913,7.48878676%20C6.498918,6.98755063%206.03231181,6.419484%205.66570836,5.85143205%20Z%20M10.1982868,7.62243308%20C9.89833716,7.62243308%209.63173643,7.62243308%209.33177218,7.68932232%20C9.66502674,7.85636187%209.99833989,7.92319238%2010.3315945,7.95662966%20C10.5649049,7.99002288%2010.7982006,7.95662966%2010.9981622,7.88979915%20C10.9981622,7.78953137%2010.8648545,7.62243308%2010.1982868,7.62243308%20Z%20M5.43239795,1.00608097%20L5.3324538,1.00608097%20C5.29909026,1.00608097%205.23245107,1.00608097%205.19914611,1.03951825%20C5.06579449,1.60758488%205.16579723,2.20908879%205.39910764,2.74370346%20C5.59905452,2.17563683%205.59905452,1.57413292%205.43239795,1.00608097%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3220.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203220.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%23D94112'%3e%3c/polygon%3e%3cg%20transform='translate(3.999121241374005%204.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,4.38589899e-17%2012.0008788,4.38589899e-17%2012.0008788,12%200,12%200,4.38589899e-17'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",UL="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuM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RleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wIDE1LjApIiBmb250LWZhbWlseT0iQXJpYWwtQm9sZE1ULCBBcmlhbCIgZm9udC1zaXplPSIxNy4wIiBmb250LXdlaWdodD0iYm9sZCIgZmlsbD0iI0ZGRkZGRiIgdGV4dC1hbmNob3I9ImxlZnQiIGxldHRlci1zcGFjaW5nPSIxLjI3NzkzMDgiPlQ8L3RleHQ+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",OL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M4.07346234,0.924561739%20C4.16910367,0.991510664%204.25228299,1.07468999%204.31923192,1.17033132%20L5.89857636,3.42653766%20C6.21529087,3.87898695%206.10525608,4.50251741%205.65280678,4.81923192%20C5.48472325,4.9368904%205.28451654,5%205.07934444,5%20L1.92065556,5%20C1.36837081,5%200.920655562,4.55228475%200.920655562,4%20C0.920655562,3.7948279%200.983765165,3.59462119%201.10142364,3.42653766%20L2.68076808,1.17033132%20C2.99748259,0.717882019%203.62101305,0.607847231%204.07346234,0.924561739%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3444.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203444.0)'%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%231F81B9'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%203.0)'%3e%3cpath%20d='M7,14%20C10.8659932,14%2014,10.8659932%2014,7%20C14,3.13400675%2010.8659932,0%207,0%20C3.13400675,0%200,3.13400675%200,7%20C0,10.8659932%203.13400675,14%207,14%20Z'%20stroke='%23FFFFFF'%20stroke-width='1.32288726'%20fill='none'%20stroke-linecap='round'%20stroke-miterlimit='10'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(12.999999999990301%205.999999999969331)%20rotate(90.00000000000001)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0.920655562,0.743707797%206.0794303,0.743707797%206.0794303,5%200.920655562,5%200.920655562,0.743707797'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",HL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20width='20px'%20height='20px'%20viewBox='0%200%2020.0%2020.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M1920,0%20L1920,8136%20L0,8136%20L0,0%20L1920,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i1'%3e%3cpath%20d='M10,0%20C15.5228475,0%2020,4.4771525%2020,10%20C20,15.5228475%2015.5228475,20%2010,20%20C4.4771525,20%200,15.5228475%200,10%20C0,4.4771525%204.4771525,0%2010,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i2'%3e%3cpath%20d='M4.9775995,0%20C7.42512481,0%209.56926817,1.47512623%2010,3.46062629%20C9.8416204,3.44317044%209.68201932,3.43144869%209.5206254,3.43144869%20C7.15614152,3.43144869%205.2887438,5.17863257%205.28866499,7.33143569%20C5.28866499,7.68942681%205.34508982,8.03448694%205.44227685,8.3639831%20C5.2887438,8.37595839%205.13375284,8.38356485%204.9775995,8.38356485%20C4.35623687,8.38356485%203.85670774,8.25815581%203.23402512,8.13612092%20L1.49399698,9%20L1.9918515,7.51763788%20C0.745658795,6.65565067%200,5.54432766%200,4.19094376%20C0,1.84637989%202.2414289,0%204.9775995,0%20Z%20M6.84422887,2.09536461%20C6.47114335,2.09536461%206.09681665,2.3394734%206.09681665,2.71025897%20C6.09681665,3.07962076%206.47114335,3.32706469%206.84422887,3.32706469%20C7.21902841,3.32706469%207.46728582,3.07962076%207.46728582,2.71025897%20C7.46728582,2.3394734%207.21902841,2.09536461%206.84422887,2.09536461%20Z%20M3.36054754,2.09536461%20C2.98746203,2.09536461%202.61096817,2.3394734%202.61096817,2.71025897%20C2.61096817,3.07962076%202.98754083,3.32706469%203.36054754,3.32706469%20C3.73365276,3.32706469%203.98191017,3.07962076%203.98191017,2.71025897%20C3.98191017,2.3394734%203.73365276,2.09536461%203.36054754,2.09536461%20Z'%3e%3c/path%3e%3c/clipPath%3e%3cclipPath%20id='i3'%3e%3cpath%20d='M4.00264496,0%20C6.11727234,0%208,1.68052391%208,3.7421353%20C8,4.90507254%207.29619833,5.93479653%206.35155624,6.7113194%20L6.70553393,8%20L5.41470002,7.22553849%20C4.94400879,7.35477188%204.4713059,7.48425019%204.00264496,7.48425019%20C1.7635368,7.48425019%200,5.80731836%200,3.7421353%20C0,1.68052391%201.7635368,0%204.00264496,0%20Z%20M2.70490063,2.06520347%20C2.47054222,2.06520347%202.23422803,2.3239764%202.23422803,2.58093287%20C2.23422803,2.84148143%202.47054222,3.09690718%202.70490063,3.09690718%20C3.06092723,3.09690718%203.29398178,2.84148143%203.29398178,2.58093287%20C3.29398178,2.3239764%203.06092723,2.06520347%202.70490063,2.06520347%20Z%20M5.29347887,2.06520347%20C5.06079684,2.06520347%204.8260659,2.3239764%204.8260659,2.58093287%20C4.8260659,2.84148143%205.06079684,3.09690718%205.29347887,3.09690718%20C5.6461527,3.09690718%205.8825414,2.84148143%205.8825414,2.58093287%20C5.8825414,2.3239764%205.6461527,2.06520347%205.29347887,2.06520347%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-625.0%20-3501.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(625.0%203501.0)'%3e%3cpath%20d='M10,20%20C15.5228475,20%2020,15.5228475%2020,10%20C20,4.4771525%2015.5228475,0%2010,0%20C4.4771525,0%200,4.4771525%200,10%20C0,15.5228475%204.4771525,20%2010,20%20Z'%20stroke='%23FFFFFF'%20stroke-width='1'%20fill='none'%20stroke-miterlimit='5'%3e%3c/path%3e%3cg%20clip-path='url(%23i1)'%3e%3cpolygon%20points='0,0%2020,0%2020,20%200,20%200,0'%20stroke='none'%20fill='%233ECD75'%3e%3c/polygon%3e%3cg%20transform='translate(3.0%204.0)'%3e%3cg%20clip-path='url(%23i2)'%3e%3cpolygon%20points='0,0%2010,0%2010,9%200,9%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3cg%20transform='translate(6.0%204.0)'%3e%3cg%20clip-path='url(%23i3)'%3e%3cpolygon%20points='0,0%208,0%208,8%200,8%200,0'%20stroke='none'%20fill='%23FFFFFF'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",VL="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwLjAgMjAuMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0ia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","docm","dot","dotx","dotm","odt","rtf","wps"]),PL=new Set(["xls","xlsx","xlsm","xlsb","xlt","xltx","xltm","xlam","csv","ods","et"]),KL=new Set(["ppt","pptx","pptm","pot","potx","potm","pps","ppsx","ppsm","odp","dps"]),zL=new Set(["jpg","jpeg","png","gif","bmp","webp","svg","ico","tiff","tif"]),WL=new Set(["mp3","wav","flac","aac","ogg","wma","m4a","opus"]),XL=new Set(["mp4","avi","mov","wmv","flv","mkv","webm","m4v","3gp","mpg","mpeg"]);function Rv(e,A=""){const t=jL(e);return t==="link"||t==="url"||t==="webloc"||t==="wechat_mp"?t==="wechat_mp"||A.includes("mp.weixin.qq.com")?HL:TL:ZL.has(t)?YL:qL.has(t)?VL:PL.has(t)?LL:KL.has(t)?UL:zL.has(t)?GL:WL.has(t)?ML:XL.has(t)?OL:JL}function jL(e){const A=e.trim().toLowerCase();return A?A.includes(".")||A.includes("/")?Jn(A):A.replace(/^\./,""):""}/*!
|
|
2
2
|
* Viewer.js v1.11.8
|
|
3
3
|
* https://fengyuanchen.github.io/viewerjs
|
|
4
4
|
*
|
|
@@ -654,4 +654,4 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
654
654
|
`)}return t}finish(){const A=[];if(this.buffer){const r=this.buffer.endsWith("\r")?this.buffer.slice(0,-1):this.buffer,i=this.consumeLine(r,this.buffer);i&&A.push(i),this.buffer=""}const t=this.dispatch();return t&&A.push(t),A}consumeLine(A,t){let r=A;if(this.started||(this.started=!0,r.startsWith("\uFEFF")&&(r=r.slice(1))),this.raw+=t,r==="")return this.dispatch();if(r.startsWith(":"))return null;const i=r.indexOf(":"),n=i<0?r:r.slice(0,i);let a=i<0?"":r.slice(i+1);return a.startsWith(" ")&&(a=a.slice(1)),n==="data"?this.data.push(a):n==="event"?this.event=a||void 0:n==="id"&&!a.includes("\0")?this.id=a:n==="retry"&&/^\d+$/.test(a)&&(this.retry=Number(a)),null}dispatch(){if(this.data.length===0||this.data.every(t=>t.trim()===""))return this.reset(),null;const A={data:this.data.join(`
|
|
655
655
|
`),raw:this.raw,...this.event!==void 0?{event:this.event}:{},...this.id!==void 0?{id:this.id}:{},...this.retry!==void 0?{retry:this.retry}:{}};return this.reset(),A}reset(){this.raw="",this.data=[],this.event=void 0,this.id=void 0,this.retry=void 0}}function oy(e){return e.name==="TimeoutError"?{kind:"timeout",error:e}:e instanceof Qt?e.status!==void 0||e.code!==void 0?{kind:"api",error:e,...e.status!==void 0?{status:e.status}:{},...e.code!==void 0?{code:e.code}:{}}:{kind:"protocol",error:e}:e.name==="TypeError"?{kind:"network",error:e}:{kind:"unknown",error:e}}const xQA=["aria-busy"],_QA={class:"ai-conversation__ask-dock-inner"},hE="pending",FQA=420,RQA=u.defineComponent({name:"ConversationList",__name:"ConversationList",props:{messages:{type:Array,required:!0},streamingMessageIndex:{type:Number,default:-1},status:{type:String,default:"idle"},theme:{type:Object,default:void 0},autoScroll:{type:String,default:"smart"},userAvatar:{type:String,default:void 0},assistantAvatar:{type:String,default:void 0},responseError:{type:Error,default:void 0},toolStates:{type:Object,default:()=>({})},followUps:{type:Array,default:void 0},pendingAskUser:{type:Object,default:void 0}},emits:["action","copy","feedback","branch","retry","attachment-preview","tool-action"],setup(e,{expose:A,emit:t}){const r=e,i=t;function n(W){i("action",W)}function a(W){i("copy",W)}function o(W){i("feedback",W)}function s(W){i("branch",W)}function l(W){i("attachment-preview",W)}function g(W){i("tool-action",W)}const c=u.ref(new Set),C=u.ref(new Map),h=u.computed(()=>r.messages),I={userBubbleBg:"var(--accent-subtle, #eff4ff)",userBubbleColor:"var(--text-primary, #1a1a1a)",userBubbleBorderColor:"transparent",assistantBubbleBg:"transparent",assistantBubbleColor:"var(--text-primary, #1a1a1a)",assistantBubbleBorderColor:"transparent",toolCardBg:"var(--bg-surface, #f7f7f5)",toolCardBorderColor:"var(--border-subtle, #e8e8e5)",toolPendingColor:"var(--accent, #2563eb)",toolRunningColor:"var(--accent, #2563eb)",toolSuccessColor:"var(--success, #16a34a)",toolErrorColor:"var(--error, #dc2626)",borderRadius:"0.75rem",spacing:"0.75rem"},d=u.computed(()=>({...I,...r.theme})),f=u.computed(()=>h.value.map((W,oA)=>({message:W,sourceIndex:oA})).filter(({message:W,sourceIndex:oA})=>{var uA,JA,le;return W.role==="tool"?!1:W.role!=="assistant"?!0:E(oA)||!!((uA=W.reasoning_content)!=null&&uA.trim()||(JA=W.content)!=null&&JA.trim()||(le=W.tool_calls)!=null&&le.length)})),B=u.computed(()=>h.value.filter(W=>W.role==="tool")),Q=u.computed(()=>{const W=new Set;for(const oA of h.value)if(oA.role==="assistant")for(const uA of oA.tool_calls??[])W.add(uA.id);return W}),p=u.computed(()=>B.value.filter(W=>!Q.value.has(W.tool_call_id)));function E(W){return r.status==="streaming"&&r.streamingMessageIndex===W}function m(W,oA){const uA=v(oA,W);return{message:W,streaming:E(oA),toolMessages:B.value,theme:d.value,userAvatar:r.userAvatar,assistantAvatar:r.assistantAvatar,toolStates:r.toolStates,followUps:uA?r.followUps:void 0,showFollowUps:uA}}function v(W,oA){if(oA.role!=="assistant"||E(W))return!1;for(let uA=f.value.length-1;uA>=0;uA-=1){const JA=f.value[uA];if(JA.message.role==="assistant")return JA.sourceIndex===W&&!E(JA.sourceIndex)}return!1}function w(W,oA){return`${W}:${oA.id}`}function k(W,oA){return oA.filter(uA=>!c.value.has(w(W,uA)))}const b=u.computed(()=>{var oA;const W=r.pendingAskUser;if((oA=W==null?void 0:W.questions)!=null&&oA.length){const uA=k(hE,W.questions);return uA.length>0?{messageId:hE,questions:uA}:null}for(let uA=f.value.length-1;uA>=0;uA-=1){const{message:JA,sourceIndex:le}=f.value[uA];if(JA.role!=="assistant")continue;const fe=rd(JA.tool_calls);if(fe){const fr=`tool:${fe.toolCallId}`,Ui=k(fr,fe.payload.questions);if(Ui.length>0)return{messageId:fr,questions:Ui,toolCallId:fe.toolCallId}}if(!JA.content||E(le))continue;const Dt=String(le),It=id(JA.content),qt=k(Dt,It);if(qt.length>0)return{messageId:Dt,questions:qt}}return null}),S=u.computed(()=>{var W;return((W=b.value)==null?void 0:W.questions)??[]}),N=u.ref(0),F=u.computed(()=>S.value[N.value]??null),x=u.computed(()=>S.value.length>1),M=u.computed(()=>x.value&&S.value.every(W=>FE(W,C.value.get(W.id)))),G=u.computed(()=>r.status==="streaming"),Z=u.computed(()=>r.responseError?oy(r.responseError):null),O=u.computed(()=>{var W,oA;for(let uA=h.value.length-1;uA>=0;uA-=1){const JA=h.value[uA];if(JA.role==="assistant")return!!((W=JA.content)!=null&&W.trim()||(oA=JA.reasoning_content)!=null&&oA.trim())}return!1}),Y=u.computed(()=>f.value.length>0&&!rA.value),AA=u.ref(),K=u.ref(0),q=u.computed(()=>({"--ai-conversation-user-bg":d.value.userBubbleBg,"--ai-conversation-user-color":d.value.userBubbleColor,"--ai-conversation-user-border":d.value.userBubbleBorderColor,"--ai-conversation-assistant-bg":d.value.assistantBubbleBg,"--ai-conversation-assistant-color":d.value.assistantBubbleColor,"--ai-conversation-assistant-border":d.value.assistantBubbleBorderColor,"--ai-conversation-tool-bg":d.value.toolCardBg,"--ai-conversation-tool-border":d.value.toolCardBorderColor,"--ai-conversation-tool-pending":d.value.toolPendingColor,"--ai-conversation-tool-running":d.value.toolRunningColor,"--ai-conversation-tool-success":d.value.toolSuccessColor,"--ai-conversation-tool-error":d.value.toolErrorColor,"--ai-conversation-muted-color":"var(--text-secondary, #6b6b68)","--ai-conversation-code-bg":"var(--bg-code, #f4f4f5)","--ai-conversation-chart-blue":"var(--color-chart-blue, var(--ai-conversation-tool-running))","--ai-conversation-chart-purple":"var(--color-chart-purple, var(--ai-conversation-tool-running))","--ai-conversation-chart-pink":"var(--color-chart-pink, var(--ai-conversation-tool-error))","--ai-conversation-chart-amber":"var(--color-chart-amber, var(--ai-conversation-tool-pending))","--ai-conversation-chart-green":"var(--color-chart-green, var(--ai-conversation-tool-success))","--ai-conversation-chart-cyan":"var(--color-chart-cyan, var(--ai-conversation-tool-running))","--ai-conversation-chart-orange":"var(--color-chart-orange, var(--ai-conversation-tool-error))","--ai-conversation-radius-sm":"var(--radius-tool, var(--radius-sm, 6px))","--ai-conversation-radius-md":"var(--radius-md, 10px)","--ai-conversation-radius-lg":"var(--radius-lg, 16px)","--ai-conversation-radius":d.value.borderRadius,"--ai-conversation-bubble-radius":"var(--radius-message, var(--radius-md, 10px))","--ai-conversation-spacing":d.value.spacing,"--ai-conversation-content-max":"48rem","--ai-conversation-user-max":"36rem","--ai-conversation-assistant-max":"48rem","--ai-conversation-avatar-size":"1.375rem","--ai-conversation-assistant-avatar-size":"2rem","--ai-conversation-assistant-avatar-radius":"0.5rem","--ai-conversation-avatar-radius":"0.375rem","--ai-conversation-avatar-gap":"0.625rem","--ai-conversation-avatar-assistant-bg":"transparent","--ai-conversation-avatar-assistant-color":"var(--color-accent-brand, #c96546)","--ai-conversation-avatar-user-bg":"var(--bg-surface, #f7f7f5)","--ai-conversation-avatar-user-color":"var(--text-secondary, #6b6b68)","--ai-conversation-ease":"var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1))","--ai-conversation-prose-size":"0.875rem","--ai-conversation-prose-leading":"1.6","--ai-conversation-shadow-sm":"var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04))","--ai-conversation-return-shadow":"var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04))","--ai-conversation-ask-dock-height":`${K.value}px`})),j=u.ref(),tA=u.ref(),rA=u.ref(!0);let cA,bA=0,LA=0,$A=!1,PA="compact";function xA(W){let oA=0;for(const uA of W)uA.role==="user"&&(oA+=1);return oA}function GA(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function YA(W){return Math.max(0,W.scrollHeight-W.clientHeight)}function me(W,oA){const uA=W.getBoundingClientRect(),JA=oA.getBoundingClientRect();return uA.top-JA.top+oA.scrollTop}function ne(W){const oA=W.querySelectorAll(".conversation-message--user");return oA[oA.length-1]??null}function Ge(W){return parseFloat(getComputedStyle(W).paddingTop)||0}function NA(W){return parseFloat(getComputedStyle(W).paddingBottom)||0}function UA(W){const oA=W.clientHeight;return oA>0?oA:W.getBoundingClientRect().height}function aA(W){const oA=UA(W);return Math.round(Math.min(12,Math.max(6,oA*.015)))}function FA(W){return Ge(W)+aA(W)}function te(W,oA){return Array.from(W.children).filter(uA=>uA!==oA)}function xe(W,oA){const uA=te(W,oA);if(uA.length===0)return 0;const JA=parseFloat(getComputedStyle(W).rowGap||getComputedStyle(W).gap)||0;let le=0;for(let fe=0;fe<uA.length;fe+=1)le+=uA[fe].offsetHeight,fe<uA.length-1&&(le+=JA);return le}function tt(W,oA){const uA=oA.style.height;oA.style.height="0px";const JA=xe(W,oA)+Ge(W)+NA(W);return oA.style.height=uA,JA}function st(W,oA){const uA=UA(W);return uA<=1?!0:tt(W,oA)<=uA+1}function dr(W,oA){return Math.max(0,me(oA,W)-FA(W))}function Me(){const W=j.value,oA=tA.value;if(!W||!oA||f.value.length===0)return oA&&(oA.style.height="0px"),"compact";if(st(W,oA))return oA.style.height="0px","compact";const uA=ne(W);if(!uA)return oA.style.height="0px","following";const JA=UA(W),le=Math.max(0,me(oA,W)-me(uA,W)),fe=Math.max(0,Math.floor(JA-le-FA(W)));return oA.style.height=`${fe}px`,fe>0?"anchored":"following"}function wt(){const W=j.value,oA=tA.value;if(oA&&(oA.style.height="0px"),PA="compact",De(),!W)return;const uA=YA(W);W.scrollTop>uA&&(W.scrollTop=uA),rA.value=!0}function De(){LA&&(cancelAnimationFrame(LA),LA=0),$A=!1}function Ar(W){return 1-Math.pow(1-W,3)}function _r(W){const oA=Me();if(PA=oA,oA==="compact")return W.scrollTop;if(oA==="anchored"){const uA=ne(W);if(uA)return dr(W,uA)}return YA(W)}function Fr(W,oA){De();const uA=Math.min(Math.max(0,oA),YA(W));if(GA()||Math.abs(uA-W.scrollTop)<1){W.scrollTop=uA,rA.value=!0;return}const JA=W.scrollTop,le=performance.now();$A=!0,rA.value=!0;const fe=Dt=>{const It=j.value;if(!It){De();return}if(st(It,tA.value)){De(),wt();return}const qt=Math.min(1,(Dt-le)/FQA),fr=_r(It);if(W.scrollTop=JA+(fr-JA)*Ar(qt),qt<1){LA=requestAnimationFrame(fe);return}LA=0,W.scrollTop=_r(It),$A=!1,rA.value=!0};LA=requestAnimationFrame(fe)}function ii(){const W=j.value;return W?W.scrollHeight-W.scrollTop-W.clientHeight<40:!0}function Yi(){i("retry")}function Zr(W){const oA=j.value,uA=tA.value;if(!oA||!uA)return;if(st(oA,uA)){wt();return}const JA=PA,le=Me();if(PA=le,r.autoScroll==="off"&&W.intent!=="return")return;const fe=ne(oA),Dt=le==="anchored"&&fe?dr(oA,fe):YA(oA),It=!!W.smooth&&(W.intent==="new-turn"||W.intent==="return");if(le==="anchored"){(W.intent==="new-turn"||W.intent==="return"||W.intent==="mount"||JA!=="anchored")&&(It?Fr(oA,Dt):oA.scrollTop=Dt),rA.value=!0;return}if(lA()||W.intent==="return"||W.intent==="new-turn"||W.intent==="mount"){const qt=YA(oA);It?Fr(oA,qt):oA.scrollTop=qt,rA.value=!0}}function iA(){Zr({intent:"return",smooth:!1})}function lA(){return r.autoScroll==="always"||r.autoScroll==="smart"&&rA.value}function BA(){$A||(rA.value=ii())}function Ve(){LA&&(De(),rA.value=ii())}function Zt(){rA.value=!0,u.nextTick(()=>Zr({intent:"return",smooth:!0}))}function lt(){var oA,uA;const W=j.value;if(!cA||!W){K.value=((oA=AA.value)==null?void 0:oA.offsetHeight)??0;return}cA.disconnect(),cA.observe(W);for(const JA of W.children)JA!==tA.value&&cA.observe(JA);AA.value&&cA.observe(AA.value),K.value=((uA=AA.value)==null?void 0:uA.offsetHeight)??0}function qr(){var uA;K.value=((uA=AA.value)==null?void 0:uA.offsetHeight)??0;const W=j.value,oA=tA.value;if(W&&oA&&st(W,oA)){wt();return}if(LA){Me();return}Zr({intent:"stream"})}function er(W,oA){u.nextTick(()=>{lt(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{const uA=j.value,JA=tA.value;if(!(!uA||!JA)){if(st(uA,JA)){wt();return}Zr({intent:W,smooth:W==="new-turn"||W==="return"?oA:!1})}})})})}function Xi(){N.value=Math.max(0,N.value-1)}function Nt(){N.value=Math.min(S.value.length-1,N.value+1)}function tr(W){return{id:W.id,selected:[]}}function ji(W,oA){if(!x.value)return;const uA=new Map(C.value);oA?uA.set(W.id,oA):uA.delete(W.id),C.value=uA}function Ze(W){const oA=b.value,uA=oA==null?void 0:oA.messageId;if(!uA||!oA)return;const JA=new Set(c.value);for(const le of oA.questions)JA.add(w(uA,le));c.value=JA}function mi(W,oA){const uA=b.value;Ze(),i("action",{...W,source:"ask-user",...uA!=null&&uA.toolCallId?{toolCallId:uA.toolCallId}:{}})}function Fn(){if(!M.value){const JA=S.value.findIndex(le=>!FE(le,C.value.get(le.id)));JA>=0&&(N.value=JA);return}const W=S.value.map(JA=>C.value.get(JA.id)??tr(JA)),oA=b.value,uA=oA==null?void 0:oA.messageId;if(uA){const JA=new Set(c.value);for(const le of S.value)JA.add(w(uA,le));c.value=JA}C.value=new Map,i("action",{type:"submit",source:"ask-user",answers:W,label:b7(S.value,W),...oA!=null&&oA.toolCallId?{toolCallId:oA.toolCallId}:{}})}return u.watch(()=>{var W;return{messageId:(W=b.value)==null?void 0:W.messageId,formIds:S.value.map(oA=>oA.id).join("|")}},(W,oA)=>{if(W.messageId!==(oA==null?void 0:oA.messageId)){N.value=0,C.value=new Map;return}N.value=Math.min(N.value,Math.max(S.value.length-1,0));const uA=new Set(S.value.map(le=>le.id)),JA=new Map([...C.value].filter(([le])=>uA.has(le)));JA.size!==C.value.size&&(C.value=JA)},{immediate:!0}),u.watch(h,()=>{const W=xA(h.value),oA=W>bA;if(bA=W,r.autoScroll==="off"){u.nextTick(()=>{lt(),Me()});return}if(oA){rA.value=!0,er("new-turn",!0);return}if(!lA()){u.nextTick(()=>{lt(),Me()});return}if(LA){u.nextTick(()=>{lt(),Me()});return}er("stream",!1)},{deep:!0}),u.watch([h,()=>r.pendingAskUser],()=>{var JA;const W=new Set,oA=r.pendingAskUser;if((JA=oA==null?void 0:oA.questions)!=null&&JA.length)for(const le of oA.questions)W.add(w(hE,le));for(const[le,fe]of h.value.entries()){if(fe.role!=="assistant")continue;const Dt=rd(fe.tool_calls);if(Dt){const qt=`tool:${Dt.toolCallId}`;for(const fr of Dt.payload.questions)W.add(w(qt,fr))}const It=String(le);for(const qt of id(fe.content,{isStreaming:E(le)}))W.add(w(It,qt))}const uA=new Set;for(const le of c.value)W.has(le)&&uA.add(le);c.value=uA},{deep:!0}),u.watch(()=>{var W;return(W=F.value)==null?void 0:W.id},(W,oA)=>{u.nextTick(()=>{var uA;K.value=((uA=AA.value)==null?void 0:uA.offsetHeight)??0,lt(),!(!W||r.autoScroll==="off")&&er(oA?"stream":"return",!oA)})},{flush:"post"}),u.onMounted(()=>{bA=xA(h.value),typeof ResizeObserver<"u"&&(cA=new ResizeObserver(qr),lt());const W=j.value;W==null||W.addEventListener("wheel",Ve,{passive:!0}),W==null||W.addEventListener("touchstart",Ve,{passive:!0}),r.autoScroll!=="off"?er("mount",!1):u.nextTick(Me)}),u.onUpdated(()=>{lt(),Me()}),u.onBeforeUnmount(()=>{De();const W=j.value;W==null||W.removeEventListener("wheel",Ve),W==null||W.removeEventListener("touchstart",Ve),cA==null||cA.disconnect()}),A({scrollToBottom:iA}),(W,oA)=>(u.openBlock(),u.createElementBlock("section",{class:u.normalizeClass(["ai-conversation",{"ai-conversation--with-ask":!!F.value}]),style:u.normalizeStyle(q.value),"aria-label":"AI 对话","aria-busy":G.value?"true":"false"},[u.createElementVNode("div",{ref_key:"listRef",ref:j,class:"ai-conversation__messages",role:"log","aria-live":"polite","aria-relevant":"additions text",onScrollPassive:BA},[u.renderSlot(W.$slots,"prepend",{},void 0,!0),f.value.length===0&&!e.responseError?u.renderSlot(W.$slots,"empty",{key:0},()=>[u.createVNode(qR)],!0):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(f.value,(uA,JA)=>u.renderSlot(W.$slots,"message",{key:`${uA.sourceIndex}:${uA.message.role}`,message:uA.message,index:uA.sourceIndex,isLast:JA===f.value.length-1,messageProps:m(uA.message,uA.sourceIndex),onAction:n,onCopy:a,onFeedback:o,onBranch:s,onAttachmentPreview:l,onToolAction:g},()=>[u.createVNode(FR,u.mergeProps({ref_for:!0},m(uA.message,uA.sourceIndex),{onCopy:a,onFeedback:o,onBranch:s,onAction:n,onAttachmentPreview:l,onToolAction:g}),u.createSlots({_:2},[W.$slots["user-avatar"]?{name:"user-avatar",fn:u.withCtx(()=>[u.renderSlot(W.$slots,"user-avatar",{},void 0,!0)]),key:"0"}:void 0,W.$slots["assistant-avatar"]?{name:"assistant-avatar",fn:u.withCtx(()=>[u.renderSlot(W.$slots,"assistant-avatar",{},void 0,!0)]),key:"1"}:void 0,W.$slots["assistant-actionbar"]?{name:"actionbar",fn:u.withCtx(le=>[u.renderSlot(W.$slots,"assistant-actionbar",u.mergeProps({ref_for:!0},le),void 0,!0)]),key:"2"}:void 0,W.$slots.tool?{name:"tool",fn:u.withCtx(le=>[u.renderSlot(W.$slots,"tool",u.mergeProps({ref_for:!0},le),void 0,!0)]),key:"3"}:void 0]),1040)],!0)),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p.value,uA=>(u.openBlock(),u.createElementBlock("section",{key:`orphan-${uA.tool_call_id}`,class:"ai-conversation__orphan-tool",role:"status"},[oA[0]||(oA[0]=u.createElementVNode("strong",null,"未关联的工具结果",-1)),u.createElementVNode("span",null,u.toDisplayString(uA.tool_call_id),1),u.createElementVNode("pre",null,u.toDisplayString(uA.content),1)]))),128)),e.responseError&&Z.value?u.renderSlot(W.$slots,"error",{key:1,error:e.responseError,info:Z.value,hasPartialContent:O.value,retry:Yi},void 0,!0):u.createCommentVNode("",!0),u.renderSlot(W.$slots,"append",{},void 0,!0),u.createElementVNode("div",{ref_key:"turnSpacerRef",ref:tA,class:"ai-conversation__turn-spacer","aria-hidden":"true","data-testid":"conversation-turn-spacer"},null,512)],544),u.createVNode(u.Transition,{name:"ai-conversation-ask"},{default:u.withCtx(()=>[F.value?(u.openBlock(),u.createElementBlock("div",{key:0,ref_key:"askDockRef",ref:AA,class:"ai-conversation__ask-dock","data-testid":"ask-form-dock"},[u.createElementVNode("div",_QA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(S.value,(uA,JA)=>{var le;return u.withDirectives((u.openBlock(),u.createBlock(pQA,{key:`${(le=b.value)==null?void 0:le.messageId}:${uA.id}`,question:uA,"question-index":JA,"question-count":S.value.length,"group-can-submit":M.value,onPrevious:Xi,onNext:Nt,onAnswerChange:fe=>ji(uA,fe),onSubmitGroup:Fn,onDismiss:fe=>Ze(),onAction:fe=>mi(fe)},null,8,["question","question-index","question-count","group-can-submit","onAnswerChange","onDismiss","onAction"])),[[u.vShow,JA===N.value]])}),128))])],512)):u.createCommentVNode("",!0)]),_:1}),u.createVNode(u.Transition,{name:"ai-conversation-return"},{default:u.withCtx(()=>[Y.value?(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:u.normalizeClass(["ai-conversation__return",{"ai-conversation__return--above-ask":!!F.value}]),"aria-label":"返回最新消息",title:"返回最新消息",onClick:Zt},[...oA[1]||(oA[1]=[u.createElementVNode("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[u.createElementVNode("path",{d:"m6 9 6 6 6-6"})],-1)])],2)):u.createCommentVNode("",!0)]),_:1})],14,xQA))}}),jR=Ie(RQA,[["__scopeId","data-v-762ea19e"]]),MQA=["aria-label"],LQA=u.defineComponent({name:"ChatPreviewSkeleton",__name:"ChatPreviewSkeleton",props:{label:{default:"加载中"},tone:{default:"light"}},setup(e){return(A,t)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-preview-skeleton",`chat-preview-skeleton--${e.tone}`]),role:"status","aria-label":e.label,"data-testid":"chat-preview-skeleton"},[...t[0]||(t[0]=[u.createStaticVNode('<div class="chat-preview-skeleton__body" aria-hidden="true" data-v-7904a5f1><span class="chat-preview-skeleton__line chat-preview-skeleton__line--lg" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--md" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--full" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--full" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--sm" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--md" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--full" data-v-7904a5f1></span><span class="chat-preview-skeleton__line chat-preview-skeleton__line--lg" data-v-7904a5f1></span></div><div class="chat-preview-skeleton__shimmer" aria-hidden="true" data-v-7904a5f1></div>',2)])],10,MQA))}}),NB=Ie(LQA,[["__scopeId","data-v-7904a5f1"]]),GQA=u.defineComponent({__name:"ChatMediaPreview",props:{resource:{},mediaType:{}},setup(e){const A=u.ref(!1);return u.onMounted(async()=>{await Promise.all([Promise.resolve().then(()=>require("./media-player-D_USOhtK.cjs")),Promise.resolve().then(()=>require("./media-outlet-CZTh6XmJ.cjs")),Promise.resolve().then(()=>require("./media-community-skin-YI6NjsJg.cjs"))]),A.value=!0}),(t,r)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-media-preview",`chat-media-preview--${e.mediaType}`])},[A.value?(u.openBlock(),u.createBlock(u.resolveDynamicComponent("media-player"),{key:0,src:e.resource.original_url,title:e.resource.filename,controls:"",crossorigin:""},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent("media-outlet"))),(u.openBlock(),u.createBlock(u.resolveDynamicComponent("media-community-skin")))]),_:1},8,["src","title"])):(u.openBlock(),u.createBlock(NB,{key:1,label:"正在加载播放器",tone:"dark"}))],2))}}),TQA=Ie(GQA,[["__scopeId","data-v-36e85e69"]]),YQA={class:"chat-markdown-preview","data-testid":"chat-markdown-preview"},UQA={key:1,class:"chat-markdown-preview__status",role:"alert"},JQA=["href"],OQA={key:2,class:"chat-markdown-preview__body"},HQA=u.defineComponent({name:"ChatMarkdownPreview",__name:"ChatMarkdownPreview",props:{resource:{}},setup(e){const A=e,t=u.ref(""),r=u.ref(!1),i=u.ref("");let n=0;async function a(o){const s=++n;r.value=!0,i.value="",t.value="";try{const l=await fetch(o);if(!l.ok)throw new Error(`HTTP ${l.status}`);const g=await l.text();if(s!==n)return;t.value=g}catch{if(s!==n)return;i.value="无法加载 Markdown 内容"}finally{s===n&&(r.value=!1)}}return u.watch(()=>A.resource.original_url,o=>{o&&a(o)},{immediate:!0}),u.onBeforeUnmount(()=>{n+=1}),(o,s)=>(u.openBlock(),u.createElementBlock("div",YQA,[r.value?(u.openBlock(),u.createBlock(NB,{key:0,label:"正在加载 Markdown"})):i.value?(u.openBlock(),u.createElementBlock("div",UQA,[u.createElementVNode("p",null,u.toDisplayString(i.value),1),u.createElementVNode("a",{href:e.resource.original_url,target:"_blank",rel:"noopener noreferrer"},"在新标签打开",8,JQA)])):(u.openBlock(),u.createElementBlock("div",OQA,[u.createVNode(ry,{content:t.value},null,8,["content"])]))]))}}),VQA=Ie(HQA,[["__scopeId","data-v-0e52d1c5"]]),ZQA=["data-office-kind"],qQA=u.defineComponent({__name:"ChatOfficePreview",props:{resource:{},kind:{}},setup(e){const A=e,t={pdf:u.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Dq4cniDm.cjs")).then(s=>s.index)),docx:u.defineAsyncComponent(async()=>(await Promise.resolve().then(()=>require("./index-Dyvby5gX.cjs")),Promise.resolve().then(()=>require("./index-BJdNN1GV.cjs")).then(s=>s.index))),excel:u.defineAsyncComponent(async()=>(await Promise.resolve().then(()=>require("./index-4oSgckuo.cjs")),Promise.resolve().then(()=>require("./index-B4hgICk-.cjs")).then(s=>s.index))),pptx:u.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bj9h-xEr.cjs")).then(s=>s.index))},r=u.computed(()=>t[A.kind]),i=u.ref();let n;function a(){if(A.kind!=="docx"||!i.value)return;const s=i.value.querySelector(".docx-wrapper"),l=i.value.querySelector("section.docx");if(!s||!l)return;l.style.transform="",l.style.transformOrigin="top center",l.style.marginBottom="";const g=s.clientWidth,c=l.scrollWidth;if(!g||!c)return;const C=Math.min(1,g/c);l.style.transform=`scale(${C})`,l.style.marginBottom=`${(C-1)*l.offsetHeight}px`}function o(){u.nextTick(()=>a())}return u.watch(()=>[A.kind,A.resource.original_url],async()=>{n==null||n.disconnect(),await u.nextTick(),!(A.kind!=="docx"||!i.value||typeof ResizeObserver>"u")&&(n=new ResizeObserver(()=>a()),n.observe(i.value))},{immediate:!0}),u.onBeforeUnmount(()=>{n==null||n.disconnect()}),(s,l)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"rootRef",ref:i,class:u.normalizeClass(["chat-office-preview",`chat-office-preview--${e.kind}`]),"data-office-kind":e.kind},[(u.openBlock(),u.createBlock(u.Suspense,null,{fallback:u.withCtx(()=>[u.createVNode(NB,{label:"正在加载预览"})]),default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r.value),{src:e.resource.original_url,class:"chat-office-preview__engine",onRendered:o},null,40,["src"]))]),_:1}))],10,ZQA))}}),PQA=Ie(qQA,[["__scopeId","data-v-e5a45a57"]]),KQA=["data-preview-kind","data-preview-ext"],zQA={key:1,class:"chat-file-preview__unsupported"},WQA=["href"],XQA=u.defineComponent({name:"ChatFilePreview",__name:"ChatFilePreview",props:{resource:{type:Object,required:!0},renderer:{type:Object,default:void 0}},setup(e){const A=e,t=kc(),r=u.computed(()=>p0(A.resource)),i=u.computed(()=>(A.resource.url_type||A.resource.filename.split(".").pop()||"").toLowerCase()),n=u.defineComponent({props:{resource:{type:Object,required:!0}},setup(c){return()=>u.h("img",{class:"chat-file-preview__image",src:c.resource.original_url,alt:c.resource.filename})}}),a=u.defineComponent({props:{resource:{type:Object,required:!0}},setup(c){return()=>u.h("iframe",{class:"chat-file-preview__frame",src:c.resource.original_url,title:c.resource.filename,sandbox:"",referrerpolicy:"no-referrer"})}}),o=a,s=u.computed(()=>{if(r.value==="image")return n;if(r.value==="html")return a;if(i.value==="md"||i.value==="markdown")return VQA;if(r.value==="text")return o;if(r.value==="audio"||r.value==="video")return TQA;if(["pdf","docx","excel","pptx"].includes(r.value))return PQA}),l=u.computed(()=>A.renderer??t.previewRenderers.value[r.value]??hS(r.value)??s.value),g=u.computed(()=>{const c={resource:A.resource};return r.value==="audio"||r.value==="video"?{...c,mediaType:r.value}:["pdf","docx","excel","pptx"].includes(r.value)?{...c,kind:r.value}:c});return(c,C)=>(u.openBlock(),u.createElementBlock("div",{class:"chat-file-preview","data-preview-kind":r.value,"data-preview-ext":i.value},[u.renderSlot(c.$slots,"default",{resource:e.resource,kind:r.value,renderer:l.value},()=>[l.value?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(l.value),u.normalizeProps(u.mergeProps({key:0},g.value)),null,16)):(u.openBlock(),u.createElementBlock("div",zQA,[C[0]||(C[0]=u.createElementVNode("p",null,"此文件暂不支持在线预览",-1)),u.createElementVNode("a",{href:e.resource.original_url,target:"_blank",rel:"noopener noreferrer"},"下载文件",8,WQA)]))],!0)],8,KQA))}}),sy=Ie(XQA,[["__scopeId","data-v-e1e9d1f9"]]),jQA=["aria-label"],$QA={class:"artifact-preview__toolbar"},ApA={class:"artifact-preview__identity"},epA={key:0,class:"artifact-preview__view-switch",role:"radiogroup","aria-label":"File view mode"},tpA=["aria-checked","tabindex"],rpA=["aria-checked","tabindex"],ipA=["title"],npA={class:"artifact-preview__type"},apA={class:"artifact-preview__actions"},opA=["disabled","aria-label"],spA=["aria-controls","aria-expanded"],lpA=["id"],gpA=["disabled"],cpA=["aria-label","data-tooltip"],upA={class:"artifact-preview__content"},hpA=["title","srcdoc"],CpA={key:1,class:"artifact-preview__file","data-testid":"artifact-preview-file"},IpA={key:2,class:"artifact-preview__document artifact-preview__document--markdown","data-testid":"artifact-preview-markdown"},dpA={key:3,class:"artifact-preview__document","data-testid":"artifact-preview-document"},fpA={key:4,class:"artifact-preview__code","data-testid":"artifact-preview-code"},BpA={key:5,class:"artifact-preview__empty",role:"status"},QpA=u.defineComponent({name:"ArtifactPreview",__name:"ArtifactPreview",props:{artifact:{},expanded:{type:Boolean}},emits:["close","toggle-expanded"],setup(e,{emit:A}){const t=e,r=A,i=u.ref("preview"),n=u.ref(!1),a=u.ref(!1),o=u.ref(!1),s=u.useId(),l=u.ref(),g=u.ref(),c=u.ref(),C=u.ref(),h=u.ref();let I;const d=u.computed(()=>{var O;return((O=t.artifact.title)==null?void 0:O.trim())||"Artifact card"}),f=u.computed(()=>{var O;return((O=t.artifact.artifactType)==null?void 0:O.trim())||"text"}),B=u.computed(()=>f.value==="code"&&t.artifact.language?t.artifact.language.toUpperCase():f.value.toUpperCase()),Q=u.computed(()=>t.artifact.content??""),p=u.computed(()=>Q.value.length>0),E=u.computed(()=>Bl(f.value)&&!!t.artifact.content||!!t.artifact.src),m=u.computed(()=>i.value==="preview"&&f.value==="html"&&t.artifact.content),v=u.computed(()=>i.value==="preview"&&f.value==="markdown"&&t.artifact.content),w=u.computed(()=>!t.artifact.src||t.artifact.content?null:sh({title:t.artifact.title,type:f.value,src:t.artifact.src})),k=u.computed(()=>i.value==="preview"&&!!w.value);u.watch(()=>t.artifact,()=>{i.value="preview",n.value=!1,a.value=!1,o.value=!1,I&&clearTimeout(I)});function b(O){i.value=O}async function S(O){if(!["ArrowLeft","ArrowRight","Home","End"].includes(O.key))return;O.preventDefault();const Y=O.key==="ArrowRight"||O.key==="End"?"code":"preview";i.value=Y,await u.nextTick();const AA=Y==="preview"?l.value:g.value;AA==null||AA.focus()}async function N(){if(p.value){if(I&&clearTimeout(I),!await F(Q.value)){n.value=!1,a.value=!0,I=setTimeout(()=>{a.value=!1},1600);return}a.value=!1,n.value=!0,o.value=!1,I=setTimeout(()=>{n.value=!1},1600)}}async function F(O){var AA;if(typeof navigator<"u"&&((AA=navigator.clipboard)!=null&&AA.writeText))try{return await navigator.clipboard.writeText(O),!0}catch{}if(typeof document>"u")return!1;const Y=document.createElement("textarea");Y.value=O,Y.setAttribute("readonly",""),Y.style.position="fixed",Y.style.opacity="0",document.body.append(Y),Y.select();try{return document.execCommand("copy")}finally{Y.remove()}}async function x(){var O;o.value=!o.value,o.value&&(await u.nextTick(),(O=h.value)==null||O.focus())}function M(){E.value&&(bf({title:d.value,type:f.value,language:t.artifact.language,content:t.artifact.content,src:t.artifact.src}),o.value=!1)}function G(O){var Y;!o.value||(Y=c.value)!=null&&Y.contains(O.target)||(o.value=!1)}function Z(O){var Y;O.key!=="Escape"||!o.value||(o.value=!1,(Y=C.value)==null||Y.focus())}return u.onMounted(()=>{document.addEventListener("pointerdown",G),document.addEventListener("keydown",Z)}),u.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",G),document.removeEventListener("keydown",Z),I&&clearTimeout(I)}),(O,Y)=>(u.openBlock(),u.createElementBlock("section",{class:"artifact-preview","aria-label":`${d.value} preview`},[u.createElementVNode("header",$QA,[u.createElementVNode("div",ApA,[t.artifact.content?(u.openBlock(),u.createElementBlock("div",epA,[u.createElementVNode("button",{ref_key:"previewButtonRef",ref:l,type:"button",role:"radio",class:u.normalizeClass(["artifact-preview__view-option",{"artifact-preview__view-option--active":i.value==="preview"}]),"aria-checked":i.value==="preview",tabindex:i.value==="preview"?0:-1,"aria-label":"Preview","data-tooltip":"Preview","data-testid":"artifact-view-preview",onClick:Y[0]||(Y[0]=AA=>b("preview")),onKeydown:S},[u.createVNode(u.unref(VdA),{size:18,"stroke-width":1.75,"aria-hidden":"true"})],42,tpA),u.createElementVNode("button",{ref_key:"codeButtonRef",ref:g,type:"button",role:"radio",class:u.normalizeClass(["artifact-preview__view-option",{"artifact-preview__view-option--active":i.value==="code"}]),"aria-checked":i.value==="code",tabindex:i.value==="code"?0:-1,"aria-label":"Code","data-tooltip":"Code","data-testid":"artifact-view-code",onClick:Y[1]||(Y[1]=AA=>b("code")),onKeydown:S},[u.createVNode(u.unref(LdA),{size:18,"stroke-width":1.75,"aria-hidden":"true"})],42,rpA)])):u.createCommentVNode("",!0),u.createElementVNode("h2",{class:"artifact-preview__title",title:`${d.value} · ${B.value}`},[u.createElementVNode("span",null,u.toDisplayString(d.value),1),Y[4]||(Y[4]=u.createElementVNode("span",{class:"artifact-preview__title-separator","aria-hidden":"true"},"·",-1)),u.createElementVNode("span",npA,u.toDisplayString(B.value),1)],8,ipA)]),u.createElementVNode("div",apA,[u.createElementVNode("div",{ref_key:"menuRootRef",ref:c,class:"artifact-preview__split-button",role:"group","aria-label":"More options"},[u.createElementVNode("button",{type:"button",class:u.normalizeClass(["artifact-preview__copy-button",{"artifact-preview__copy-button--failed":a.value}]),disabled:!p.value,"aria-label":n.value?"Copied artifact":a.value?"Copy failed":"Copy artifact","data-testid":"artifact-copy",onClick:N},[n.value?(u.openBlock(),u.createBlock(u.unref(RR),{key:0,size:16,"stroke-width":1.75,"aria-hidden":"true"})):a.value?(u.openBlock(),u.createBlock(u.unref(RdA),{key:1,size:16,"stroke-width":1.75,"aria-hidden":"true"})):u.createCommentVNode("",!0),u.createElementVNode("span",null,u.toDisplayString(n.value?"Copied":a.value?"Failed":"Copy"),1)],10,opA),Y[6]||(Y[6]=u.createElementVNode("span",{class:"artifact-preview__split-divider","aria-hidden":"true"},null,-1)),u.createElementVNode("button",{ref_key:"menuButtonRef",ref:C,type:"button",class:"artifact-preview__menu-button","aria-label":"More options","data-tooltip":"More options","aria-haspopup":"menu","aria-controls":u.unref(s),"aria-expanded":o.value,onClick:u.withModifiers(x,["stop"])},[u.createVNode(u.unref(_dA),{size:14,"stroke-width":1.75,"aria-hidden":"true"})],8,spA),u.createVNode(u.Transition,{name:"artifact-menu"},{default:u.withCtx(()=>[o.value?(u.openBlock(),u.createElementBlock("div",{key:0,id:u.unref(s),class:"artifact-preview__menu",role:"menu"},[u.createElementVNode("button",{ref_key:"downloadButtonRef",ref:h,type:"button",role:"menuitem",class:"artifact-preview__menu-item",disabled:!E.value,"data-testid":"artifact-download",onClick:M},[u.createVNode(u.unref(TdA),{size:16,"stroke-width":1.75,"aria-hidden":"true"}),Y[5]||(Y[5]=u.createElementVNode("span",null,"Download",-1))],8,gpA)],8,lpA)):u.createCommentVNode("",!0)]),_:1})],512),u.createElementVNode("button",{type:"button",class:"artifact-preview__icon-button artifact-preview__expand-button","aria-label":e.expanded?"Collapse":"Expand","data-tooltip":e.expanded?"Collapse":"Expand","data-testid":"artifact-expand",onClick:Y[2]||(Y[2]=AA=>r("toggle-expanded"))},[e.expanded?(u.openBlock(),u.createBlock(u.unref(jdA),{key:0,size:20,"stroke-width":1.75,"aria-hidden":"true"})):(u.openBlock(),u.createBlock(u.unref(UdA),{key:1,size:20,"stroke-width":1.75,"aria-hidden":"true"}))],8,cpA),u.createElementVNode("button",{type:"button",class:"artifact-preview__icon-button","aria-label":"关闭侧边栏","data-tooltip":"关闭侧边栏","data-testid":"artifact-close",onClick:Y[3]||(Y[3]=AA=>r("close"))},[u.createVNode(u.unref(Ah),{size:20,"stroke-width":1.75,"aria-hidden":"true"})])])]),u.createElementVNode("div",upA,[m.value?(u.openBlock(),u.createElementBlock("iframe",{key:0,title:`${d.value} preview`,srcdoc:e.artifact.content,sandbox:"allow-scripts",class:"artifact-preview__iframe","data-testid":"artifact-preview-frame"},null,8,hpA)):k.value&&w.value?(u.openBlock(),u.createElementBlock("div",CpA,[u.createVNode(sy,{resource:w.value},null,8,["resource"])])):v.value?(u.openBlock(),u.createElementBlock("div",IpA,[u.createVNode(ry,{content:e.artifact.content},null,8,["content"])])):i.value==="preview"&&e.artifact.content?(u.openBlock(),u.createElementBlock("div",dpA,u.toDisplayString(e.artifact.content),1)):Q.value?(u.openBlock(),u.createElementBlock("pre",fpA,[u.createElementVNode("code",null,u.toDisplayString(Q.value),1)])):(u.openBlock(),u.createElementBlock("div",BpA,"No preview available"))])],8,jQA))}}),ppA=Ie(QpA,[["__scopeId","data-v-c4541943"]]),EpA={key:0,class:"chat-queue","aria-label":"待发送队列"},mpA={class:"chat-queue__header"},vpA={class:"chat-queue__count","aria-hidden":"true"},ypA={class:"chat-queue__list"},wpA=["draggable","onDragstart","onDragover","onDragleave","onDrop"],DpA={key:0,class:"chat-queue__edit-row"},kpA={class:"chat-queue__edit-actions"},bpA={class:"chat-queue__grip","aria-hidden":"true"},SpA={class:"chat-queue__index","aria-hidden":"true"},NpA={class:"chat-queue__body"},xpA={class:"chat-queue__content"},_pA={key:0,class:"chat-queue__meta"},FpA={class:"chat-queue__actions"},RpA=["onClick"],MpA=["onClick"],LpA=u.defineComponent({name:"ChatQueue",__name:"ChatQueue",props:{items:{}},emits:["edit","remove","reorder"],setup(e,{emit:A}){const t=e,r=A,i=u.ref(null),n=u.ref(""),a=u.ref(),o=u.ref(-1),s=u.ref(-1);function l(p){return typeof p.payload.message.content=="string"?p.payload.message.content:""}function g(p){i.value=p.id,n.value=l(p),u.nextTick(()=>{var E;return(E=a.value)==null?void 0:E.focus()})}function c(){if(!i.value)return;const p=n.value.trim();p&&r("edit",i.value,p),i.value=null}function C(){i.value=null,n.value=""}function h(p,E){o.value=p,E.dataTransfer&&(E.dataTransfer.effectAllowed="move",E.dataTransfer.setData("text/plain",String(p)))}function I(p,E){E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="move"),o.value>=0&&o.value!==p&&(s.value=p)}function d(p){s.value===p&&(s.value=-1)}function f(p){o.value>=0&&o.value!==p&&r("reorder",o.value,p),o.value=-1,s.value=-1}function B(){o.value=-1,s.value=-1}function Q(p){p.key==="Enter"&&!p.shiftKey?(p.preventDefault(),c()):p.key==="Escape"&&(p.preventDefault(),C())}return(p,E)=>e.items.length?(u.openBlock(),u.createElementBlock("section",EpA,[u.createElementVNode("header",mpA,[E[1]||(E[1]=u.createElementVNode("span",{class:"chat-queue__label"},"待发送",-1)),u.createElementVNode("span",vpA,u.toDisplayString(e.items.length),1)]),u.createElementVNode("ol",ypA,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.items,(m,v)=>(u.openBlock(),u.createElementBlock("li",{key:m.id,class:u.normalizeClass(["chat-queue__item",{"chat-queue__item--editing":i.value===m.id,"chat-queue__item--dragging":o.value===v,"chat-queue__item--drop-target":s.value===v}]),draggable:i.value!==m.id,onDragstart:w=>h(v,w),onDragover:w=>I(v,w),onDragleave:w=>d(v),onDrop:u.withModifiers(w=>f(v),["prevent"]),onDragend:B},[i.value===m.id?(u.openBlock(),u.createElementBlock("div",DpA,[u.withDirectives(u.createElementVNode("textarea",{ref_for:!0,ref_key:"editRef",ref:a,"onUpdate:modelValue":E[0]||(E[0]=w=>n.value=w),class:"chat-queue__edit",rows:"2","aria-label":"编辑队列消息",onKeydown:Q},null,544),[[u.vModelText,n.value]]),u.createElementVNode("div",kpA,[u.createElementVNode("button",{type:"button",class:"chat-queue__icon-btn","aria-label":"保存",onClick:c},[u.createVNode(u.unref(RR),{size:14,"stroke-width":1.75,"aria-hidden":"true"})]),u.createElementVNode("button",{type:"button",class:"chat-queue__icon-btn","aria-label":"取消",onClick:C},[u.createVNode(u.unref(Ah),{size:14,"stroke-width":1.75,"aria-hidden":"true"})])])])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createElementVNode("span",bpA,[u.createVNode(u.unref(qdA),{size:14,"stroke-width":1.75})]),u.createElementVNode("span",SpA,u.toDisplayString(v+1),1),u.createElementVNode("div",NpA,[u.createElementVNode("p",xpA,u.toDisplayString(l(m)||"仅附件消息"),1),m.payload.attachments.length?(u.openBlock(),u.createElementBlock("span",_pA,u.toDisplayString(m.payload.attachments.length)+" 个附件 ",1)):u.createCommentVNode("",!0)]),u.createElementVNode("div",FpA,[u.createElementVNode("button",{type:"button",class:"chat-queue__icon-btn","aria-label":"编辑队列消息",onClick:w=>g(m)},[u.createVNode(u.unref(KdA),{size:14,"stroke-width":1.75,"aria-hidden":"true"})],8,RpA),u.createElementVNode("button",{type:"button",class:"chat-queue__icon-btn chat-queue__icon-btn--danger","aria-label":"删除队列消息",onClick:w=>r("remove",m.id)},[u.createVNode(u.unref(tfA),{size:14,"stroke-width":1.75,"aria-hidden":"true"})],8,MpA)])],64))],42,wpA))),128))])])):u.createCommentVNode("",!0)}}),$R=Ie(LpA,[["__scopeId","data-v-de7ffd50"]]),GpA=["aria-label"],TpA={class:"chat-file-preview-panel__header"},YpA=["href"],UpA={class:"chat-file-preview-panel__body"},JpA=u.defineComponent({__name:"ChatFilePreviewPanel",props:{resource:{}},emits:["close"],setup(e,{emit:A}){const t=A,r=u.ref(),i=u.ref();let n=null;function a(o){o.key==="Escape"&&t("close")}return u.onMounted(()=>{n=document.activeElement instanceof HTMLElement?document.activeElement:null,u.nextTick(()=>{var o;return(o=i.value)==null?void 0:o.focus()})}),u.onBeforeUnmount(()=>{n==null||n.focus(),n=null}),(o,s)=>(u.openBlock(),u.createElementBlock("section",{ref_key:"panelRef",ref:r,class:"chat-file-preview-panel",role:"region","aria-label":`${e.resource.filename} 预览`,onKeydown:a},[u.createElementVNode("header",TpA,[u.createElementVNode("div",null,[u.createElementVNode("strong",null,u.toDisplayString(e.resource.filename),1),u.createElementVNode("span",null,u.toDisplayString(e.resource.url_type.toUpperCase()),1)]),u.createElementVNode("a",{href:e.resource.original_url,target:"_blank",rel:"noopener noreferrer","aria-label":"在新窗口打开文件"},[u.createVNode(u.unref(OdA),{size:16,"stroke-width":1.75,"aria-hidden":"true"})],8,YpA),u.createElementVNode("button",{ref_key:"closeButtonRef",ref:i,type:"button","aria-label":"关闭文件预览",onClick:s[0]||(s[0]=l=>t("close"))},[u.createVNode(u.unref(Ah),{size:18,"stroke-width":1.75,"aria-hidden":"true"})],512)]),u.createElementVNode("div",UpA,[u.renderSlot(o.$slots,"default",{resource:e.resource},()=>[u.createVNode(sy,{resource:e.resource},null,8,["resource"])],!0)])],40,GpA))}}),AM=Ie(JpA,[["__scopeId","data-v-8e55677a"]]),OpA=["aria-label"],HpA=u.defineComponent({__name:"ChatSidebarResizeHandle",props:{ariaLabel:{default:"调整预览宽度"}},emits:["resize"],setup(e,{emit:A}){const t=A;function r(i){var l;const n=i.currentTarget,a=i.pointerId;(l=n.setPointerCapture)==null||l.call(n,a);const o=g=>{t("resize",g.clientX)},s=()=>{var g;(g=n.releasePointerCapture)==null||g.call(n,a),window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",s)};window.addEventListener("pointermove",o),window.addEventListener("pointerup",s,{once:!0})}return(i,n)=>(u.openBlock(),u.createElementBlock("button",{type:"button",class:"chat-sidebar-resize-handle","aria-label":e.ariaLabel,onPointerdown:r},[...n[0]||(n[0]=[u.createElementVNode("span",{class:"chat-sidebar-resize-handle__line","aria-hidden":"true"},null,-1),u.createElementVNode("span",{class:"chat-sidebar-resize-handle__grip","aria-hidden":"true"},null,-1)])],40,OpA))}}),VpA=Ie(HpA,[["__scopeId","data-v-b7bace8d"]]);let J8=0;function eM(e,A){return[...e,{id:ZpA(),payload:A}]}function tM(e,A,t){return e.map(r=>r.id===A?{...r,payload:Qf(t,r.payload.attachments)}:r)}function rM(e,A){return e.filter(t=>t.id!==A)}function iM(e,A,t){if(A===t||A<0||t<0||A>=e.length||t>=e.length)return[...e];const r=[...e],[i]=r.splice(A,1);return r.splice(t,0,i),r}function ZpA(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():(J8+=1,`chat-queue-${J8}`)}function Nl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Bf(e,A=""){return typeof e=="string"?e:e==null?A:String(e)}function Su(e){if(typeof e=="number"&&Number.isFinite(e))return e}function nM(e){if(!Nl(e))return null;const A=typeof e.original_url=="string"?e.original_url:typeof e.url=="string"?e.url:"",t=typeof e.filename=="string"?e.filename:e.filename==null?"":String(e.filename),r=typeof e.url_type=="string"?e.url_type:typeof e.fileType=="string"?e.fileType:e.url_type==null?"":String(e.url_type),i=typeof e.size=="number"&&Number.isFinite(e.size)?e.size:e.size==null?0:Number(e.size)||0;return{filename:t,url_type:r,size:i,original_url:A}}function qpA(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}}function PpA(e,A){if(!Nl(e))return null;const t=Nl(e.function)?e.function:null,r=t&&typeof t.name=="string"&&t.name||typeof e.name=="string"&&e.name||"";if(!r)return null;const i=typeof e.id=="string"&&e.id||typeof e.call_id=="string"&&e.call_id||`call_${A+1}`,n=t?t.arguments:e.arguments;return{id:i,type:"function",function:{name:r,arguments:qpA(n)}}}function aM(e){if(!Array.isArray(e))return[];const A=[];for(let t=0;t<e.length;t+=1){const r=PpA(e[t],t);r&&A.push(r)}return A}function KpA(e){if(!Array.isArray(e))return[];const A=[];for(const t of e)if(!(!Nl(t)||typeof t.type!="string")){if(t.type==="reasoning"){A.push({type:"reasoning",content:Bf(t.content)});continue}if(t.type==="content"){A.push({type:"content",content:Bf(t.content)});continue}if(t.type==="tool_calls"){const r=aM(t.tool_calls);r.length>0&&A.push({type:"tool_calls",tool_calls:r})}}return A}function zpA(e){const A=[],t=[],r=[];for(const a of e){if(a.type==="reasoning"){a.content&&A.push(a.content);continue}if(a.type==="content"){a.content&&t.push(a.content);continue}r.push(...a.tool_calls)}const i=A.join(""),n=t.join(`
|
|
656
656
|
|
|
657
|
-
`);return{...n?{content:n}:{},...i?{reasoning_content:i}:{},...r.length?{tool_calls:r}:{}}}function O8(e){return e==="text"||e==="input_text"||e==="output_text"}function H8(e){return typeof e.content=="string"&&e.content?e.content:typeof e.text=="string"&&e.text?e.text:Bf(e.content||e.text)}function WpA(e){if(typeof e=="string")return e;if(Nl(e)&&typeof e.type=="string"&&O8(e.type))return H8(e);if(!Array.isArray(e))return"";const A=[];for(const t of e){if(typeof t=="string"){t&&A.push({type:"text",text:t});continue}if(!(!Nl(t)||typeof t.type!="string")){if(O8(t.type)){const r=H8(t);r&&A.push({type:"text",text:r});continue}(t.type==="image_url"||t.type==="video_url"||t.type==="input_audio"||t.type==="file")&&A.push(t)}}return A.length===0?"":A.every(t=>t.type==="text")?A.map(t=>t.text).join(""):A}function XpA(e){const A=[];if(Array.isArray(e.resource_files))for(const r of e.resource_files){const i=nM(r);i&&A.push(i)}const t=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0;return{role:"user",...t?{id:t}:{},content:WpA(e.content),resource_files:A,...typeof e.name=="string"?{name:e.name}:{}}}function jpA(e){const A=KpA(e.steps),t=A.length>0?zpA(A):null,r=(t==null?void 0:t.content)??(typeof e.content=="string"&&e.content?e.content:void 0),i=(t==null?void 0:t.reasoning_content)??(typeof e.reasoning_content=="string"&&e.reasoning_content?e.reasoning_content:void 0),n=(t==null?void 0:t.tool_calls)??(Array.isArray(e.tool_calls)?aM(e.tool_calls):void 0),a=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0,o=Su(e.created_at),s=Su(e.completed_at),l=Su(e.run_ms),g=Su(e.ttft_ms),c=Su(e.tokens_per_second),C={role:"assistant",...a?{id:a}:{},...typeof e.name=="string"?{name:e.name}:{},...r?{content:r}:{},...i?{reasoning_content:i}:{},...typeof e.encrypted_content=="string"&&e.encrypted_content?{encrypted_content:e.encrypted_content}:{},...n&&n.length?{tool_calls:n}:{},...o!==void 0?{created_at:o}:{},...s!==void 0?{completed_at:s}:{},...l!==void 0?{run_ms:l}:{},...g!==void 0?{ttft_ms:g}:{},...c!==void 0?{tokens_per_second:c}:{},...e.feedback===null||e.feedback==="up"||e.feedback==="down"?{feedback:e.feedback}:{}};return A.length>0&&PR(A)&&(C.steps=A),C}function $pA(e){const A=typeof e.tool_call_id=="string"&&e.tool_call_id||typeof e.toolCallId=="string"&&e.toolCallId||"";if(!A)return null;const t=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0;return{role:"tool",...t?{id:t}:{},content:Bf(e.content),tool_call_id:A,...typeof e.name=="string"?{name:e.name}:{}}}function oM(e){if(!Array.isArray(e))return[];const A=[];for(const t of e)if(!(!Nl(t)||typeof t.role!="string")&&t.role!=="system"){if(t.role==="user"){A.push(XpA(t));continue}if(t.role==="assistant"){A.push(jpA(t));continue}if(t.role==="tool"){const r=$pA(t);r&&A.push(r)}}return A}const AEA=["data-chat-color-mode"],eEA={class:"chat-bot__main"},tEA={class:"chat-bot__conversation"},rEA={class:"chat-bot__sender"},iEA={key:2,class:"chat-bot__sidebar-placeholder"},nEA=u.defineComponent({name:"ChatBot",__name:"ChatBot",props:{messages:{},draft:{},attachments:{},showSidebar:{type:Boolean,default:!1},sidebarWidth:{default:"42%"},enableQueue:{type:Boolean,default:!1},senderConfig:{default:()=>({})},conversationConfig:{default:()=>({})},theme:{},colorMode:{},uploadConfig:{},attachmentLimits:{},previewRenderers:{},toolRenderers:{},toolStates:{},followUps:{},pendingAskUser:{}},emits:["update:messages","update:draft","update:attachments","update:queue","send","stop","retry","tool-action","action","copy","artifact-open","status-change","response-event","response-error","attachment-error","voice-click","voice-record","voice-start","voice-stop","voice-cancel","audio-device-change","audio-transcript","screenshot","menu-item-click","attachment-menu-open","attachment-menu-close","update:activeQuickAction","quick-action-select","quick-action-clear","trigger-open","trigger-query","trigger-close","mention-insert","mention-remove","mic-permission-guide-click","files-drop"],setup(e,{expose:A,emit:t}){const r=e,i=t,n=kc(),a=FA(r.messages),o=u.ref(a),s=u.ref("idle"),l=u.ref(null),g=u.ref(null),c=u.ref(-1),C=u.ref(),h=u.ref(),I=u.ref(null),d=u.ref(null),f=u.ref(null),B=u.ref(!1),Q=u.ref([]),p=u.ref(0),E=u.ref(!1),m=u.computed(()=>r.showSidebar||d.value!==null||f.value!==null),v=u.ref(null),w=u.ref([]),k=u.ref(null);let b=null,S=0;const N=u.computed(()=>({...n.theme.value,...r.theme})),F=u.computed(()=>r.colorMode??n.colorMode.value),x=u.computed(()=>r.uploadConfig?{...n.uploadConfig.value,...r.uploadConfig}:n.uploadConfig.value),M=u.computed(()=>{var iA,lA;return kf(n.limits.value,(iA=n.uploadConfig.value)==null?void 0:iA.limits,(lA=r.uploadConfig)==null?void 0:lA.limits,r.attachmentLimits)}),G=u.computed(()=>({...n.previewRenderers.value,...r.previewRenderers})),Z=u.computed(()=>({...n.toolRenderers.value,...r.toolRenderers})),O=u.computed(()=>({...r.senderConfig,draft:r.draft,attachments:r.attachments,uploadConfig:x.value,attachmentLimits:M.value,theme:N.value,streaming:s.value==="streaming"}));B7({colorMode:F,uploadConfig:x,limits:M,theme:N,previewRenderers:G,toolRenderers:Z}),u.watch(()=>r.messages,iA=>{const lA=FA(iA);o.value=lA,xe(iA,lA)||i("update:messages",aA(lA))},{deep:!0}),u.watch(s,iA=>{i("status-change",iA),iA==="completed"&&u.nextTick(j)}),u.onMounted(()=>{xe(r.messages,a)||i("update:messages",aA(a))});const Y=u.computed(()=>{if(v.value)return v.value;const iA=r.sidebarWidth;return typeof iA=="number"?`${iA}px`:iA}),AA=u.computed(()=>({"--chat-bot-sidebar-width":Y.value}));function K(iA){if(s.value==="streaming"){if(!r.enableQueue)return;tA(eM(w.value,iA));return}q(iA)}function q(iA){k.value=iA,UA([...o.value,te(iA.message)]),i("send",iA)}function j(){const iA=w.value[0];!iA||s.value==="streaming"||(tA(w.value.slice(1)),q(iA.payload))}function tA(iA){w.value=[...iA],i("update:queue",w.value)}function rA(iA,lA){tA(tM(w.value,iA,lA))}function cA(iA){tA(rM(w.value,iA))}function bA(iA,lA){tA(iM(w.value,iA,lA))}function LA(iA){var lA;if(iA.type==="open-artifact"){const BA=n1({type:iA.artifactType??"text",title:iA.title,src:iA.src,content:iA.content});BA==="sidebar"?(d.value=iA,f.value=null,E.value=!1,i("artifact-open",iA)):BA==="lightbox"&&iA.src?(Q.value=[sh({title:iA.title,type:iA.artifactType??"image",src:iA.src})],p.value=0,B.value=!0):BA==="new-tab"&&iA.src?a1(iA.src):bf({title:iA.title??"artifact",type:iA.artifactType??"file",language:iA.language,content:iA.content,src:iA.src})}iA.type==="submit"&&iA.source==="follow-up"&&((lA=iA.value)!=null&&lA.trim())&&K(Qf(iA.value.trim(),[])),i("action",iA)}function $A(iA){i("copy",iA)}function PA(iA){f.value=iA,d.value=null,E.value=!1}async function xA(iA,lA={}){var qr,er,Xi;b&&GA(),await u.nextTick();const BA=++S,Ve=new AbortController;b=Ve;const Zt=o.value.length;c.value=Zt,s.value="streaming",l.value=null,g.value=null,UA([...o.value,{role:"assistant"}]);const lt=()=>Ve.abort();(qr=lA.signal)==null||qr.addEventListener("abort",lt,{once:!0}),(er=lA.signal)!=null&&er.aborted&&Ve.abort();try{const Nt=await DQA(iA,{signal:Ve.signal,onUpdate(tr,ji){if(BA!==S)return;const Ze=[...o.value];Ze[Zt]=tr,l.value=ji,UA(Ze)},onEvent(tr,ji){var Ze;(Ze=lA.onEvent)==null||Ze.call(lA,tr,ji),i("response-event",tr,ji)}});if(BA!==S)return;l.value=Nt.response,s.value=Nt.status}catch(Nt){if(BA!==S)return;if(Ve.signal.aborted){s.value="aborted";return}const tr=Nt instanceof Error?Nt:new Error(String(Nt));throw g.value=tr,s.value="error",i("response-error",tr,oy(tr)),tr}finally{(Xi=lA.signal)==null||Xi.removeEventListener("abort",lt),BA===S&&(b=null,c.value=-1)}}function GA(){b&&(b.abort(),b=null,c.value=-1,s.value="aborted")}function YA(){GA(),i("stop")}function me(){g.value&&i("retry",k.value,g.value)}function ne(){var iA;(iA=h.value)==null||iA.scrollToBottom()}function Ge(iA){UA(FA(iA))}function NA(iA){var Zt,lt;const lA=oM(iA.messages),Ve=((Zt=iA.options)==null?void 0:Zt.replace)!==!1?lA:[...o.value,...lA];UA(FA(Ve)),((lt=iA.options)==null?void 0:lt.scrollToBottom)!==!1&&u.nextTick(()=>{ne()})}function UA(iA){o.value=iA,i("update:messages",aA(iA))}function aA(iA){return JSON.parse(JSON.stringify(iA))}function FA(iA){return iA.map(te)}function te(iA){const lA=aA([iA])[0];return lA.role==="user"&&(lA.id||(lA.id=Fv()),lA.resource_files||(lA.resource_files=[])),lA}function xe(iA,lA){return JSON.stringify(iA)===JSON.stringify(lA)}function tt(){d.value=null,f.value=null,E.value=!1}function st(iA){var qr;const lA=(qr=C.value)==null?void 0:qr.getBoundingClientRect(),BA=lA?lA.right:window.innerWidth,Ve=lA?lA.width:window.innerWidth,Zt=BA-iA,lt=Ve*.72;v.value=`${Math.min(lt,Math.max(360,Zt))}px`}function dr(){E.value=!E.value}const Me=u.ref(!1),wt=new Set;u.provide(OR,{register(iA){return wt.add(iA),()=>{wt.delete(iA)}}});const De=u.computed(()=>{const iA=O.value;return!(iA.showAttachment===!1||iA.disabled)});function Ar(){Me.value=!1}function _r(iA){if(iA.length!==0){if(wt.size>0){for(const lA of wt)lA(iA);return}if(I.value){I.value.addFiles(iA);return}i("files-drop",iA)}}function Fr(iA){!De.value||!rc(iA)||(iA.preventDefault(),Me.value=!0)}function ii(iA){!De.value||!rc(iA)||(iA.preventDefault(),iA.dataTransfer&&(iA.dataTransfer.dropEffect="copy"),Me.value=!0)}function Yi(iA){var BA;if(!De.value)return;const lA=iA.relatedTarget;lA&&((BA=C.value)!=null&&BA.contains(lA))||Ar()}function Zr(iA){De.value&&(iA.preventDefault(),iA.stopPropagation(),Ar(),_r(If(iA.dataTransfer)))}return u.watch(De,iA=>{iA||Ar()}),u.onBeforeUnmount(()=>{GA(),Ar()}),A({consume:xA,abort:GA,scrollToBottom:ne,sendNextQueued:j,addFiles:_r,setMessages:Ge,hydrateHistory:NA}),(iA,lA)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"rootRef",ref:C,class:u.normalizeClass(["chat-bot",{"chat-bot--drag-over":Me.value}]),style:u.normalizeStyle(AA.value),"data-chat-color-mode":F.value,onDragenter:Fr,onDragoverCapture:ii,onDragleave:Yi,onDropCapture:Zr},[Me.value?(u.openBlock(),u.createBlock(UR,{key:0})):u.createCommentVNode("",!0),u.createElementVNode("div",eEA,[u.createElementVNode("div",tEA,[u.createVNode(jR,u.mergeProps({ref_key:"conversationRef",ref:h,messages:o.value,status:s.value,"streaming-message-index":c.value,theme:N.value,"response-error":g.value??void 0},e.conversationConfig,{"tool-states":e.toolStates??e.conversationConfig.toolStates,"follow-ups":e.followUps??e.conversationConfig.followUps,"pending-ask-user":e.pendingAskUser??e.conversationConfig.pendingAskUser,onAction:LA,onCopy:$A,onRetry:me,onAttachmentPreview:PA,onToolAction:lA[0]||(lA[0]=BA=>i("tool-action",BA))}),u.createSlots({_:2},[iA.$slots.prepend?{name:"prepend",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,iA.$slots.empty?{name:"empty",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,iA.$slots.message?{name:"message",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"message",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"2"}:void 0,iA.$slots.append?{name:"append",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"append",{},void 0,!0)]),key:"3"}:void 0,iA.$slots["user-avatar"]?{name:"user-avatar",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"user-avatar",{},void 0,!0)]),key:"4"}:void 0,iA.$slots["assistant-avatar"]?{name:"assistant-avatar",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"assistant-avatar",{},void 0,!0)]),key:"5"}:void 0,iA.$slots["assistant-actionbar"]?{name:"assistant-actionbar",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"assistant-actionbar",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"6"}:void 0,iA.$slots.tool?{name:"tool",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"tool",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"7"}:void 0,iA.$slots.error?{name:"error",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"error",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"8"}:void 0]),1040,["messages","status","streaming-message-index","theme","response-error","tool-states","follow-ups","pending-ask-user"])]),u.createElementVNode("div",rEA,[u.renderSlot(iA.$slots,"sender-prepend",{},void 0,!0),e.enableQueue?(u.openBlock(),u.createBlock($R,{key:0,items:w.value,onEdit:rA,onRemove:cA,onReorder:bA},null,8,["items"])):u.createCommentVNode("",!0),u.renderSlot(iA.$slots,"sender",{},()=>[u.createVNode(ZR,u.mergeProps({ref_key:"senderRef",ref:I},O.value,{"enable-file-drop":!1,onSend:K,onStop:YA,"onUpdate:draft":lA[1]||(lA[1]=BA=>i("update:draft",BA)),"onUpdate:attachments":lA[2]||(lA[2]=BA=>i("update:attachments",BA)),onAttachmentError:lA[3]||(lA[3]=(BA,Ve)=>i("attachment-error",BA,Ve)),onVoiceClick:lA[4]||(lA[4]=BA=>i("voice-click")),onVoiceRecord:lA[5]||(lA[5]=BA=>i("voice-record")),onVoiceStart:lA[6]||(lA[6]=BA=>i("voice-start")),onVoiceStop:lA[7]||(lA[7]=BA=>i("voice-stop")),onVoiceCancel:lA[8]||(lA[8]=BA=>i("voice-cancel")),onAudioDeviceChange:lA[9]||(lA[9]=BA=>i("audio-device-change",BA)),onAudioTranscript:lA[10]||(lA[10]=BA=>i("audio-transcript",BA)),onMicPermissionGuideClick:lA[11]||(lA[11]=BA=>i("mic-permission-guide-click")),onScreenshot:lA[12]||(lA[12]=BA=>i("screenshot")),onMenuItemClick:lA[13]||(lA[13]=BA=>i("menu-item-click",BA)),onAttachmentMenuOpen:lA[14]||(lA[14]=BA=>i("attachment-menu-open")),onAttachmentMenuClose:lA[15]||(lA[15]=BA=>i("attachment-menu-close")),"onUpdate:activeQuickAction":lA[16]||(lA[16]=BA=>i("update:activeQuickAction",BA)),onQuickActionSelect:lA[17]||(lA[17]=BA=>i("quick-action-select",BA)),onQuickActionClear:lA[18]||(lA[18]=BA=>i("quick-action-clear")),onTriggerOpen:lA[19]||(lA[19]=BA=>i("trigger-open",BA)),onTriggerQuery:lA[20]||(lA[20]=BA=>i("trigger-query",BA)),onTriggerClose:lA[21]||(lA[21]=BA=>i("trigger-close",BA)),onMentionInsert:lA[22]||(lA[22]=BA=>i("mention-insert",BA)),onMentionRemove:lA[23]||(lA[23]=BA=>i("mention-remove",BA))}),u.createSlots({_:2},[iA.$slots["trigger-menu"]?{name:"trigger-menu",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"trigger-menu",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"0"}:void 0,iA.$slots.mention?{name:"mention",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"mention",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"1"}:void 0,iA.$slots["toolbar-before-voice"]?{name:"toolbar-before-voice",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"toolbar-before-voice",{},void 0,!0)]),key:"2"}:void 0]),1040)],!0),u.renderSlot(iA.$slots,"sender-append",{},void 0,!0)])]),m.value?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["chat-bot__sidebar",{"chat-bot__sidebar--open":m.value,"chat-bot__sidebar--expanded":E.value}])},[E.value?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(VpA,{key:0,onResize:st})),u.createElementVNode("div",{class:u.normalizeClass(["chat-bot__sidebar-content",{"chat-bot__sidebar-content--artifact":d.value&&!iA.$slots.sidebar}])},[u.renderSlot(iA.$slots,"sidebar",{artifact:d.value,file:f.value},()=>[f.value?(u.openBlock(),u.createBlock(AM,{key:0,resource:f.value,onClose:tt},u.createSlots({_:2},[iA.$slots["file-preview"]?{name:"default",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"file-preview",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"0"}:void 0]),1032,["resource"])):d.value?(u.openBlock(),u.createBlock(ppA,{key:1,artifact:d.value,expanded:E.value,onClose:tt,onToggleExpanded:dr},null,8,["artifact","expanded"])):(u.openBlock(),u.createElementBlock("div",iEA,[...lA[26]||(lA[26]=[u.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u.createElementVNode("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),u.createElementVNode("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1),u.createElementVNode("p",null,"侧边栏内容",-1)])]))],!0)],2)],2)):u.createCommentVNode("",!0),u.createVNode(Ef,{open:B.value,"onUpdate:open":lA[24]||(lA[24]=BA=>B.value=BA),index:p.value,"onUpdate:index":lA[25]||(lA[25]=BA=>p.value=BA),images:Q.value},null,8,["open","index","images"])],46,AEA))}}),aEA=Ie(nEA,[["__scopeId","data-v-00628e35"]]),oEA=["data-chat-color-mode"],sEA=u.defineComponent({name:"ChatProvider",__name:"ChatProvider",props:{colorMode:{type:String,default:void 0},uploadConfig:{type:Object,default:void 0},limits:{type:Object,default:void 0},theme:{type:Object,default:void 0},previewRenderers:{type:Object,default:void 0},toolRenderers:{type:Object,default:void 0}},setup(e){const A=e,t=kc(),r=u.computed(()=>A.uploadConfig?{...t.uploadConfig.value,...A.uploadConfig}:t.uploadConfig.value),i=u.computed(()=>{var l,g;return kf(t.limits.value,(l=t.uploadConfig.value)==null?void 0:l.limits,(g=A.uploadConfig)==null?void 0:g.limits,A.limits)}),n=u.computed(()=>({...t.theme.value,...A.theme})),a=u.computed(()=>A.colorMode??t.colorMode.value),o=u.computed(()=>({...t.previewRenderers.value,...A.previewRenderers})),s=u.computed(()=>({...t.toolRenderers.value,...A.toolRenderers}));return B7({colorMode:a,uploadConfig:r,limits:i,theme:n,previewRenderers:o,toolRenderers:s}),(l,g)=>(u.openBlock(),u.createElementBlock("div",{class:"chat-provider","data-chat-color-mode":a.value},[u.renderSlot(l.$slots,"default",{},void 0,!0)],8,oEA))}}),lEA=Ie(sEA,[["__scopeId","data-v-32922048"]]),gEA={class:"process-result-card__header"},cEA={key:0,class:"process-result-card__dot","aria-hidden":"true"},uEA={key:1,class:"process-result-card__title"},hEA=["title"],CEA={key:3,class:"process-result-card__meta"},IEA={key:0,class:"process-result-card__body"},dEA=u.defineComponent({name:"ProcessResultCard",__name:"ProcessResultCard",props:{title:{},summary:{},meta:{},gutterDot:{type:Boolean,default:!1},bordered:{type:Boolean,default:!0},status:{default:"neutral"},copyText:{}},setup(e){const A=e,t=u.ref(!1);let r;async function i(){const n=A.copyText;if(n)try{await navigator.clipboard.writeText(n),t.value=!0,clearTimeout(r),r=setTimeout(()=>{t.value=!1},1600)}catch{t.value=!1}}return(n,a)=>(u.openBlock(),u.createElementBlock("section",{class:u.normalizeClass(["process-result-card",[`process-result-card--${e.status}`,{"process-result-card--gutter":e.gutterDot&&e.status!=="neutral","process-result-card--bordered":e.bordered,"process-result-card--running":e.status==="running"}]])},[u.createElementVNode("header",gEA,[e.status!=="neutral"?(u.openBlock(),u.createElementBlock("span",cEA)):u.createCommentVNode("",!0),e.title?(u.openBlock(),u.createElementBlock("span",uEA,u.toDisplayString(e.title),1)):u.createCommentVNode("",!0),e.summary?(u.openBlock(),u.createElementBlock("span",{key:2,class:"process-result-card__summary",title:e.summary},u.toDisplayString(e.summary),9,hEA)):u.createCommentVNode("",!0),a[0]||(a[0]=u.createElementVNode("span",{class:"process-result-card__spacer"},null,-1)),e.meta?(u.openBlock(),u.createElementBlock("span",CEA,u.toDisplayString(e.meta),1)):u.createCommentVNode("",!0),e.copyText?(u.openBlock(),u.createElementBlock("button",{key:4,type:"button",class:"process-result-card__copy","data-testid":"process-result-copy",onClick:i},u.toDisplayString(t.value?"已复制":"复制"),1)):u.createCommentVNode("",!0)]),n.$slots.default?(u.openBlock(),u.createElementBlock("div",IEA,[u.renderSlot(n.$slots,"default",{},void 0,!0)])):u.createCommentVNode("",!0)],2))}}),fEA=Ie(dEA,[["__scopeId","data-v-8845e4fb"]]);function BEA(e=[]){const A=u.ref(V8(e));function t(n){A.value=[...A.value,sM(n)]}function r(n){A.value=V8(n)}function i(){A.value=[]}return{messages:A,appendMessage:t,setMessages:r,reset:i}}function V8(e){return e.map(sM)}function sM(e){return JSON.parse(JSON.stringify(e))}function QEA(){function e(A,t={}){return Il(A,t)}return{thumbnailUrl:e,appendImageViewParams:Il}}function pEA(e){const A=u.computed(()=>(e==null?void 0:e.direction)||"horizontal"),t=u.computed(()=>e==null?void 0:e.nodeSpacing),r=u.computed(()=>e==null?void 0:e.levelSpacing),i=u.computed(()=>(e==null?void 0:e.align)||"center"),n=u.computed(()=>A.value==="horizontal"),a=u.computed(()=>A.value==="vertical");return{direction:A,nodeSpacing:t,levelSpacing:r,align:i,isHorizontal:n,isVertical:a,getNodeSpacing:()=>t.value,getLevelSpacing:()=>r.value,getAlign:()=>i.value}}exports.ACTION_BAR_ICON_NAMES=N7;exports.ACTION_BAR_SYSTEM_PROMPT=TH;exports.ARTIFACT_BLOCK_SYSTEM_PROMPT=RH;exports.ASK_USER_FORM_SYSTEM_PROMPT=_H;exports.CHART_BLOCK_SYSTEM_PROMPT=LH;exports.CHART_TYPES=kF;exports.ChartToolRenderer=ES;exports.ChatActionbar=aS;exports.ChatAttachments=QS;exports.ChatBot=aEA;exports.ChatFilePreview=sy;exports.ChatFilePreviewPanel=AM;exports.ChatFollowUps=pS;exports.ChatImageLightbox=Ef;exports.ChatMessage=FR;exports.ChatPreviewSkeleton=NB;exports.ChatProvider=lEA;exports.ChatQueue=$R;exports.ChatReasoning=pE;exports.ChatSender=ZR;exports.ChatSenderAppendIcon=MR;exports.ChatSenderAtIcon=hfA;exports.ChatSenderCheckIcon=GR;exports.ChatSenderClickIcon=TR;exports.ChatSenderLinkIcon=YR;exports.ChatSenderMicIcon=Sv;exports.ChatSenderMicOffIcon=OI;exports.ChatSenderMoreIcon=LR;exports.ChatToolGroup=ME;exports.CodeToolRenderer=mf;exports.ConversationList=jR;exports.D3MindMap=nS;exports.DEFAULT_CHAT_ATTACHMENT_LIMITS=rh;exports.EmptyState=qR;exports.FileReadToolRenderer=Yv;exports.MessageBubble=_R;exports.MindMapToolRenderer=wS;exports.OpenGenUIToolRenderer=C7;exports.OpenGenerativeUiChartRenderer=e1;exports.OpenGenerativeUiPlanRenderer=c7;exports.OpenGenerativeUiScheduleRenderer=u7;exports.OpenGenerativeUiThemeRenderer=h7;exports.ProcessResultCard=fEA;exports.SearchToolRenderer=I7;exports.TextPartRenderer=bv;exports.ToolCallPart=S7;exports.appendImageViewParams=Il;exports.artifactToChatResource=sh;exports.buildAskUserFunctionCallOutput=WH;exports.buildChatSendPayload=Qf;exports.classifyAttachment=Q0;exports.classifyChatError=oy;exports.colorfulTheme=q8;exports.convertReferenceMarkers=DR;exports.createAttachmentFingerprint=IE;exports.createChatAttachmentController=JR;exports.createChatMessageId=Fv;exports.darkTheme=Z8;exports.debounce=wM;exports.deepClone=CE;exports.defaultTheme=Al;exports.downloadArtifact=bf;exports.downloadBlob=kM;exports.editChatQueueItem=tM;exports.enqueueChatPayload=eM;exports.extractAskFormMdocFromToolCalls=ZH;exports.extractAskFormNodes=PH;exports.extractAskUserFromToolCall=w7;exports.extractAskUserFromToolCalls=rd;exports.extractAskUserQuestionsFromContent=id;exports.filterOutAskFormToolCalls=qH;exports.filterOutAskUserToolCalls=D7;exports.formatAskUserAnswersLabel=b7;exports.getChatFileIconSrc=Rv;exports.getChatPreviewKind=p0;exports.getFileExtension=Jn;exports.getFilesFromDataTransfer=If;exports.getQiniuUploadCredential=iy;exports.getTextWidth=gI;exports.getTheme=yM;exports.hasFileDrag=rc;exports.isActionBarReady=_7;exports.isAskFormToolName=HH;exports.isAskUserAnswerComplete=FE;exports.isAskUserShapedArguments=VH;exports.isAskUserToolName=oh;exports.isChartType=bF;exports.isGradient=bM;exports.isTextArtifactType=Bl;exports.mergeTheme=W8;exports.minimalTheme=P8;exports.moveChatQueueItem=iM;exports.normalizeAgentHistoryMessages=oM;exports.normalizeAskUserPayload=v7;exports.normalizeAskUserQuestion=i1;exports.normalizeHistoryResourceFile=nM;exports.openArtifactInNewTab=a1;exports.parseAskUserPayloadFromArguments=y7;exports.parseGradientColor=SM;exports.parseQiniuUploadResult=_v;exports.professionalTheme=K8;exports.registerChatPreviewRenderer=RL;exports.registerToolRenderer=Qi;exports.removeChatQueueItem=rM;exports.resolveActionBarIcon=x7;exports.resolveArtifactOpenStrategy=n1;exports.resolveArtifactPreviewKind=M7;exports.resolveChatAttachmentLimits=kf;exports.resolveChatPreviewRenderer=hS;exports.resolveToolRenderer=d7;exports.resourceToContentPart=uS;exports.serializeAskUserOutput=k7;exports.svgToBlob=j8;exports.svgToPng=$8;exports.themes=z8;exports.throttle=DM;exports.toChatResourceFile=cS;exports.uploadFile=pfA;exports.uploadFileToQiniu=ny;exports.useChatContext=kc;exports.useConversation=BEA;exports.useImageUrl=QEA;exports.useMindMapLayout=pEA;exports.useMindMapTheme=X8;exports.validateAttachmentFile=gS;
|
|
657
|
+
`);return{...n?{content:n}:{},...i?{reasoning_content:i}:{},...r.length?{tool_calls:r}:{}}}function O8(e){return e==="text"||e==="input_text"||e==="output_text"}function H8(e){return typeof e.text=="string"&&e.text?e.text:typeof e.content=="string"&&e.content?e.content:Bf(e.text||e.content)}function WpA(e){if(typeof e=="string")return e;if(Nl(e)&&typeof e.type=="string"&&O8(e.type))return H8(e);if(!Array.isArray(e))return"";const A=[];for(const t of e){if(typeof t=="string"){t&&A.push({type:"text",text:t});continue}if(!(!Nl(t)||typeof t.type!="string")){if(O8(t.type)){const r=H8(t);r&&A.push({type:"text",text:r});continue}(t.type==="image_url"||t.type==="video_url"||t.type==="input_audio"||t.type==="file")&&A.push(t)}}return A.length===0?"":A.every(t=>t.type==="text")?A.map(t=>t.text).join(""):A}function XpA(e){const A=[];if(Array.isArray(e.resource_files))for(const r of e.resource_files){const i=nM(r);i&&A.push(i)}const t=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0;return{role:"user",...t?{id:t}:{},content:WpA(e.content),resource_files:A,...typeof e.name=="string"?{name:e.name}:{}}}function jpA(e){const A=KpA(e.steps),t=A.length>0?zpA(A):null,r=(t==null?void 0:t.content)??(typeof e.content=="string"&&e.content?e.content:void 0),i=(t==null?void 0:t.reasoning_content)??(typeof e.reasoning_content=="string"&&e.reasoning_content?e.reasoning_content:void 0),n=(t==null?void 0:t.tool_calls)??(Array.isArray(e.tool_calls)?aM(e.tool_calls):void 0),a=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0,o=Su(e.created_at),s=Su(e.completed_at),l=Su(e.run_ms),g=Su(e.ttft_ms),c=Su(e.tokens_per_second),C={role:"assistant",...a?{id:a}:{},...typeof e.name=="string"?{name:e.name}:{},...r?{content:r}:{},...i?{reasoning_content:i}:{},...typeof e.encrypted_content=="string"&&e.encrypted_content?{encrypted_content:e.encrypted_content}:{},...n&&n.length?{tool_calls:n}:{},...o!==void 0?{created_at:o}:{},...s!==void 0?{completed_at:s}:{},...l!==void 0?{run_ms:l}:{},...g!==void 0?{ttft_ms:g}:{},...c!==void 0?{tokens_per_second:c}:{},...e.feedback===null||e.feedback==="up"||e.feedback==="down"?{feedback:e.feedback}:{}};return A.length>0&&PR(A)&&(C.steps=A),C}function $pA(e){const A=typeof e.tool_call_id=="string"&&e.tool_call_id||typeof e.toolCallId=="string"&&e.toolCallId||"";if(!A)return null;const t=typeof e.id=="string"&&e.id||typeof e.message_id=="string"&&e.message_id||void 0;return{role:"tool",...t?{id:t}:{},content:Bf(e.content),tool_call_id:A,...typeof e.name=="string"?{name:e.name}:{}}}function oM(e){if(!Array.isArray(e))return[];const A=[];for(const t of e)if(!(!Nl(t)||typeof t.role!="string")&&t.role!=="system"){if(t.role==="user"){A.push(XpA(t));continue}if(t.role==="assistant"){A.push(jpA(t));continue}if(t.role==="tool"){const r=$pA(t);r&&A.push(r)}}return A}const AEA=["data-chat-color-mode"],eEA={class:"chat-bot__main"},tEA={class:"chat-bot__conversation"},rEA={class:"chat-bot__sender"},iEA={key:2,class:"chat-bot__sidebar-placeholder"},nEA=u.defineComponent({name:"ChatBot",__name:"ChatBot",props:{messages:{},draft:{},attachments:{},showSidebar:{type:Boolean,default:!1},sidebarWidth:{default:"42%"},enableQueue:{type:Boolean,default:!1},senderConfig:{default:()=>({})},conversationConfig:{default:()=>({})},theme:{},colorMode:{},uploadConfig:{},attachmentLimits:{},previewRenderers:{},toolRenderers:{},toolStates:{},followUps:{},pendingAskUser:{}},emits:["update:messages","update:draft","update:attachments","update:queue","send","stop","retry","tool-action","action","copy","artifact-open","status-change","response-event","response-error","attachment-error","voice-click","voice-record","voice-start","voice-stop","voice-cancel","audio-device-change","audio-transcript","screenshot","menu-item-click","attachment-menu-open","attachment-menu-close","update:activeQuickAction","quick-action-select","quick-action-clear","trigger-open","trigger-query","trigger-close","mention-insert","mention-remove","mic-permission-guide-click","files-drop"],setup(e,{expose:A,emit:t}){const r=e,i=t,n=kc(),a=FA(r.messages),o=u.ref(a),s=u.ref("idle"),l=u.ref(null),g=u.ref(null),c=u.ref(-1),C=u.ref(),h=u.ref(),I=u.ref(null),d=u.ref(null),f=u.ref(null),B=u.ref(!1),Q=u.ref([]),p=u.ref(0),E=u.ref(!1),m=u.computed(()=>r.showSidebar||d.value!==null||f.value!==null),v=u.ref(null),w=u.ref([]),k=u.ref(null);let b=null,S=0;const N=u.computed(()=>({...n.theme.value,...r.theme})),F=u.computed(()=>r.colorMode??n.colorMode.value),x=u.computed(()=>r.uploadConfig?{...n.uploadConfig.value,...r.uploadConfig}:n.uploadConfig.value),M=u.computed(()=>{var iA,lA;return kf(n.limits.value,(iA=n.uploadConfig.value)==null?void 0:iA.limits,(lA=r.uploadConfig)==null?void 0:lA.limits,r.attachmentLimits)}),G=u.computed(()=>({...n.previewRenderers.value,...r.previewRenderers})),Z=u.computed(()=>({...n.toolRenderers.value,...r.toolRenderers})),O=u.computed(()=>({...r.senderConfig,draft:r.draft,attachments:r.attachments,uploadConfig:x.value,attachmentLimits:M.value,theme:N.value,streaming:s.value==="streaming"}));B7({colorMode:F,uploadConfig:x,limits:M,theme:N,previewRenderers:G,toolRenderers:Z}),u.watch(()=>r.messages,iA=>{const lA=FA(iA);o.value=lA,xe(iA,lA)||i("update:messages",aA(lA))},{deep:!0}),u.watch(s,iA=>{i("status-change",iA),iA==="completed"&&u.nextTick(j)}),u.onMounted(()=>{xe(r.messages,a)||i("update:messages",aA(a))});const Y=u.computed(()=>{if(v.value)return v.value;const iA=r.sidebarWidth;return typeof iA=="number"?`${iA}px`:iA}),AA=u.computed(()=>({"--chat-bot-sidebar-width":Y.value}));function K(iA){if(s.value==="streaming"){if(!r.enableQueue)return;tA(eM(w.value,iA));return}q(iA)}function q(iA){k.value=iA,UA([...o.value,te(iA.message)]),i("send",iA)}function j(){const iA=w.value[0];!iA||s.value==="streaming"||(tA(w.value.slice(1)),q(iA.payload))}function tA(iA){w.value=[...iA],i("update:queue",w.value)}function rA(iA,lA){tA(tM(w.value,iA,lA))}function cA(iA){tA(rM(w.value,iA))}function bA(iA,lA){tA(iM(w.value,iA,lA))}function LA(iA){var lA;if(iA.type==="open-artifact"){const BA=n1({type:iA.artifactType??"text",title:iA.title,src:iA.src,content:iA.content});BA==="sidebar"?(d.value=iA,f.value=null,E.value=!1,i("artifact-open",iA)):BA==="lightbox"&&iA.src?(Q.value=[sh({title:iA.title,type:iA.artifactType??"image",src:iA.src})],p.value=0,B.value=!0):BA==="new-tab"&&iA.src?a1(iA.src):bf({title:iA.title??"artifact",type:iA.artifactType??"file",language:iA.language,content:iA.content,src:iA.src})}iA.type==="submit"&&iA.source==="follow-up"&&((lA=iA.value)!=null&&lA.trim())&&K(Qf(iA.value.trim(),[])),i("action",iA)}function $A(iA){i("copy",iA)}function PA(iA){f.value=iA,d.value=null,E.value=!1}async function xA(iA,lA={}){var qr,er,Xi;b&&GA(),await u.nextTick();const BA=++S,Ve=new AbortController;b=Ve;const Zt=o.value.length;c.value=Zt,s.value="streaming",l.value=null,g.value=null,UA([...o.value,{role:"assistant"}]);const lt=()=>Ve.abort();(qr=lA.signal)==null||qr.addEventListener("abort",lt,{once:!0}),(er=lA.signal)!=null&&er.aborted&&Ve.abort();try{const Nt=await DQA(iA,{signal:Ve.signal,onUpdate(tr,ji){if(BA!==S)return;const Ze=[...o.value];Ze[Zt]=tr,l.value=ji,UA(Ze)},onEvent(tr,ji){var Ze;(Ze=lA.onEvent)==null||Ze.call(lA,tr,ji),i("response-event",tr,ji)}});if(BA!==S)return;l.value=Nt.response,s.value=Nt.status}catch(Nt){if(BA!==S)return;if(Ve.signal.aborted){s.value="aborted";return}const tr=Nt instanceof Error?Nt:new Error(String(Nt));throw g.value=tr,s.value="error",i("response-error",tr,oy(tr)),tr}finally{(Xi=lA.signal)==null||Xi.removeEventListener("abort",lt),BA===S&&(b=null,c.value=-1)}}function GA(){b&&(b.abort(),b=null,c.value=-1,s.value="aborted")}function YA(){GA(),i("stop")}function me(){g.value&&i("retry",k.value,g.value)}function ne(){var iA;(iA=h.value)==null||iA.scrollToBottom()}function Ge(iA){UA(FA(iA))}function NA(iA){var Zt,lt;const lA=oM(iA.messages),Ve=((Zt=iA.options)==null?void 0:Zt.replace)!==!1?lA:[...o.value,...lA];UA(FA(Ve)),((lt=iA.options)==null?void 0:lt.scrollToBottom)!==!1&&u.nextTick(()=>{ne()})}function UA(iA){o.value=iA,i("update:messages",aA(iA))}function aA(iA){return JSON.parse(JSON.stringify(iA))}function FA(iA){return iA.map(te)}function te(iA){const lA=aA([iA])[0];return lA.role==="user"&&(lA.id||(lA.id=Fv()),lA.resource_files||(lA.resource_files=[])),lA}function xe(iA,lA){return JSON.stringify(iA)===JSON.stringify(lA)}function tt(){d.value=null,f.value=null,E.value=!1}function st(iA){var qr;const lA=(qr=C.value)==null?void 0:qr.getBoundingClientRect(),BA=lA?lA.right:window.innerWidth,Ve=lA?lA.width:window.innerWidth,Zt=BA-iA,lt=Ve*.72;v.value=`${Math.min(lt,Math.max(360,Zt))}px`}function dr(){E.value=!E.value}const Me=u.ref(!1),wt=new Set;u.provide(OR,{register(iA){return wt.add(iA),()=>{wt.delete(iA)}}});const De=u.computed(()=>{const iA=O.value;return!(iA.showAttachment===!1||iA.disabled)});function Ar(){Me.value=!1}function _r(iA){if(iA.length!==0){if(wt.size>0){for(const lA of wt)lA(iA);return}if(I.value){I.value.addFiles(iA);return}i("files-drop",iA)}}function Fr(iA){!De.value||!rc(iA)||(iA.preventDefault(),Me.value=!0)}function ii(iA){!De.value||!rc(iA)||(iA.preventDefault(),iA.dataTransfer&&(iA.dataTransfer.dropEffect="copy"),Me.value=!0)}function Yi(iA){var BA;if(!De.value)return;const lA=iA.relatedTarget;lA&&((BA=C.value)!=null&&BA.contains(lA))||Ar()}function Zr(iA){De.value&&(iA.preventDefault(),iA.stopPropagation(),Ar(),_r(If(iA.dataTransfer)))}return u.watch(De,iA=>{iA||Ar()}),u.onBeforeUnmount(()=>{GA(),Ar()}),A({consume:xA,abort:GA,scrollToBottom:ne,sendNextQueued:j,addFiles:_r,setMessages:Ge,hydrateHistory:NA}),(iA,lA)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"rootRef",ref:C,class:u.normalizeClass(["chat-bot",{"chat-bot--drag-over":Me.value}]),style:u.normalizeStyle(AA.value),"data-chat-color-mode":F.value,onDragenter:Fr,onDragoverCapture:ii,onDragleave:Yi,onDropCapture:Zr},[Me.value?(u.openBlock(),u.createBlock(UR,{key:0})):u.createCommentVNode("",!0),u.createElementVNode("div",eEA,[u.createElementVNode("div",tEA,[u.createVNode(jR,u.mergeProps({ref_key:"conversationRef",ref:h,messages:o.value,status:s.value,"streaming-message-index":c.value,theme:N.value,"response-error":g.value??void 0},e.conversationConfig,{"tool-states":e.toolStates??e.conversationConfig.toolStates,"follow-ups":e.followUps??e.conversationConfig.followUps,"pending-ask-user":e.pendingAskUser??e.conversationConfig.pendingAskUser,onAction:LA,onCopy:$A,onRetry:me,onAttachmentPreview:PA,onToolAction:lA[0]||(lA[0]=BA=>i("tool-action",BA))}),u.createSlots({_:2},[iA.$slots.prepend?{name:"prepend",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,iA.$slots.empty?{name:"empty",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,iA.$slots.message?{name:"message",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"message",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"2"}:void 0,iA.$slots.append?{name:"append",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"append",{},void 0,!0)]),key:"3"}:void 0,iA.$slots["user-avatar"]?{name:"user-avatar",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"user-avatar",{},void 0,!0)]),key:"4"}:void 0,iA.$slots["assistant-avatar"]?{name:"assistant-avatar",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"assistant-avatar",{},void 0,!0)]),key:"5"}:void 0,iA.$slots["assistant-actionbar"]?{name:"assistant-actionbar",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"assistant-actionbar",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"6"}:void 0,iA.$slots.tool?{name:"tool",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"tool",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"7"}:void 0,iA.$slots.error?{name:"error",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"error",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"8"}:void 0]),1040,["messages","status","streaming-message-index","theme","response-error","tool-states","follow-ups","pending-ask-user"])]),u.createElementVNode("div",rEA,[u.renderSlot(iA.$slots,"sender-prepend",{},void 0,!0),e.enableQueue?(u.openBlock(),u.createBlock($R,{key:0,items:w.value,onEdit:rA,onRemove:cA,onReorder:bA},null,8,["items"])):u.createCommentVNode("",!0),u.renderSlot(iA.$slots,"sender",{},()=>[u.createVNode(ZR,u.mergeProps({ref_key:"senderRef",ref:I},O.value,{"enable-file-drop":!1,onSend:K,onStop:YA,"onUpdate:draft":lA[1]||(lA[1]=BA=>i("update:draft",BA)),"onUpdate:attachments":lA[2]||(lA[2]=BA=>i("update:attachments",BA)),onAttachmentError:lA[3]||(lA[3]=(BA,Ve)=>i("attachment-error",BA,Ve)),onVoiceClick:lA[4]||(lA[4]=BA=>i("voice-click")),onVoiceRecord:lA[5]||(lA[5]=BA=>i("voice-record")),onVoiceStart:lA[6]||(lA[6]=BA=>i("voice-start")),onVoiceStop:lA[7]||(lA[7]=BA=>i("voice-stop")),onVoiceCancel:lA[8]||(lA[8]=BA=>i("voice-cancel")),onAudioDeviceChange:lA[9]||(lA[9]=BA=>i("audio-device-change",BA)),onAudioTranscript:lA[10]||(lA[10]=BA=>i("audio-transcript",BA)),onMicPermissionGuideClick:lA[11]||(lA[11]=BA=>i("mic-permission-guide-click")),onScreenshot:lA[12]||(lA[12]=BA=>i("screenshot")),onMenuItemClick:lA[13]||(lA[13]=BA=>i("menu-item-click",BA)),onAttachmentMenuOpen:lA[14]||(lA[14]=BA=>i("attachment-menu-open")),onAttachmentMenuClose:lA[15]||(lA[15]=BA=>i("attachment-menu-close")),"onUpdate:activeQuickAction":lA[16]||(lA[16]=BA=>i("update:activeQuickAction",BA)),onQuickActionSelect:lA[17]||(lA[17]=BA=>i("quick-action-select",BA)),onQuickActionClear:lA[18]||(lA[18]=BA=>i("quick-action-clear")),onTriggerOpen:lA[19]||(lA[19]=BA=>i("trigger-open",BA)),onTriggerQuery:lA[20]||(lA[20]=BA=>i("trigger-query",BA)),onTriggerClose:lA[21]||(lA[21]=BA=>i("trigger-close",BA)),onMentionInsert:lA[22]||(lA[22]=BA=>i("mention-insert",BA)),onMentionRemove:lA[23]||(lA[23]=BA=>i("mention-remove",BA))}),u.createSlots({_:2},[iA.$slots["trigger-menu"]?{name:"trigger-menu",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"trigger-menu",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"0"}:void 0,iA.$slots.mention?{name:"mention",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"mention",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"1"}:void 0,iA.$slots["toolbar-before-voice"]?{name:"toolbar-before-voice",fn:u.withCtx(()=>[u.renderSlot(iA.$slots,"toolbar-before-voice",{},void 0,!0)]),key:"2"}:void 0]),1040)],!0),u.renderSlot(iA.$slots,"sender-append",{},void 0,!0)])]),m.value?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["chat-bot__sidebar",{"chat-bot__sidebar--open":m.value,"chat-bot__sidebar--expanded":E.value}])},[E.value?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(VpA,{key:0,onResize:st})),u.createElementVNode("div",{class:u.normalizeClass(["chat-bot__sidebar-content",{"chat-bot__sidebar-content--artifact":d.value&&!iA.$slots.sidebar}])},[u.renderSlot(iA.$slots,"sidebar",{artifact:d.value,file:f.value},()=>[f.value?(u.openBlock(),u.createBlock(AM,{key:0,resource:f.value,onClose:tt},u.createSlots({_:2},[iA.$slots["file-preview"]?{name:"default",fn:u.withCtx(BA=>[u.renderSlot(iA.$slots,"file-preview",u.normalizeProps(u.guardReactiveProps(BA)),void 0,!0)]),key:"0"}:void 0]),1032,["resource"])):d.value?(u.openBlock(),u.createBlock(ppA,{key:1,artifact:d.value,expanded:E.value,onClose:tt,onToggleExpanded:dr},null,8,["artifact","expanded"])):(u.openBlock(),u.createElementBlock("div",iEA,[...lA[26]||(lA[26]=[u.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u.createElementVNode("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),u.createElementVNode("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1),u.createElementVNode("p",null,"侧边栏内容",-1)])]))],!0)],2)],2)):u.createCommentVNode("",!0),u.createVNode(Ef,{open:B.value,"onUpdate:open":lA[24]||(lA[24]=BA=>B.value=BA),index:p.value,"onUpdate:index":lA[25]||(lA[25]=BA=>p.value=BA),images:Q.value},null,8,["open","index","images"])],46,AEA))}}),aEA=Ie(nEA,[["__scopeId","data-v-00628e35"]]),oEA=["data-chat-color-mode"],sEA=u.defineComponent({name:"ChatProvider",__name:"ChatProvider",props:{colorMode:{type:String,default:void 0},uploadConfig:{type:Object,default:void 0},limits:{type:Object,default:void 0},theme:{type:Object,default:void 0},previewRenderers:{type:Object,default:void 0},toolRenderers:{type:Object,default:void 0}},setup(e){const A=e,t=kc(),r=u.computed(()=>A.uploadConfig?{...t.uploadConfig.value,...A.uploadConfig}:t.uploadConfig.value),i=u.computed(()=>{var l,g;return kf(t.limits.value,(l=t.uploadConfig.value)==null?void 0:l.limits,(g=A.uploadConfig)==null?void 0:g.limits,A.limits)}),n=u.computed(()=>({...t.theme.value,...A.theme})),a=u.computed(()=>A.colorMode??t.colorMode.value),o=u.computed(()=>({...t.previewRenderers.value,...A.previewRenderers})),s=u.computed(()=>({...t.toolRenderers.value,...A.toolRenderers}));return B7({colorMode:a,uploadConfig:r,limits:i,theme:n,previewRenderers:o,toolRenderers:s}),(l,g)=>(u.openBlock(),u.createElementBlock("div",{class:"chat-provider","data-chat-color-mode":a.value},[u.renderSlot(l.$slots,"default",{},void 0,!0)],8,oEA))}}),lEA=Ie(sEA,[["__scopeId","data-v-32922048"]]),gEA={class:"process-result-card__header"},cEA={key:0,class:"process-result-card__dot","aria-hidden":"true"},uEA={key:1,class:"process-result-card__title"},hEA=["title"],CEA={key:3,class:"process-result-card__meta"},IEA={key:0,class:"process-result-card__body"},dEA=u.defineComponent({name:"ProcessResultCard",__name:"ProcessResultCard",props:{title:{},summary:{},meta:{},gutterDot:{type:Boolean,default:!1},bordered:{type:Boolean,default:!0},status:{default:"neutral"},copyText:{}},setup(e){const A=e,t=u.ref(!1);let r;async function i(){const n=A.copyText;if(n)try{await navigator.clipboard.writeText(n),t.value=!0,clearTimeout(r),r=setTimeout(()=>{t.value=!1},1600)}catch{t.value=!1}}return(n,a)=>(u.openBlock(),u.createElementBlock("section",{class:u.normalizeClass(["process-result-card",[`process-result-card--${e.status}`,{"process-result-card--gutter":e.gutterDot&&e.status!=="neutral","process-result-card--bordered":e.bordered,"process-result-card--running":e.status==="running"}]])},[u.createElementVNode("header",gEA,[e.status!=="neutral"?(u.openBlock(),u.createElementBlock("span",cEA)):u.createCommentVNode("",!0),e.title?(u.openBlock(),u.createElementBlock("span",uEA,u.toDisplayString(e.title),1)):u.createCommentVNode("",!0),e.summary?(u.openBlock(),u.createElementBlock("span",{key:2,class:"process-result-card__summary",title:e.summary},u.toDisplayString(e.summary),9,hEA)):u.createCommentVNode("",!0),a[0]||(a[0]=u.createElementVNode("span",{class:"process-result-card__spacer"},null,-1)),e.meta?(u.openBlock(),u.createElementBlock("span",CEA,u.toDisplayString(e.meta),1)):u.createCommentVNode("",!0),e.copyText?(u.openBlock(),u.createElementBlock("button",{key:4,type:"button",class:"process-result-card__copy","data-testid":"process-result-copy",onClick:i},u.toDisplayString(t.value?"已复制":"复制"),1)):u.createCommentVNode("",!0)]),n.$slots.default?(u.openBlock(),u.createElementBlock("div",IEA,[u.renderSlot(n.$slots,"default",{},void 0,!0)])):u.createCommentVNode("",!0)],2))}}),fEA=Ie(dEA,[["__scopeId","data-v-8845e4fb"]]);function BEA(e=[]){const A=u.ref(V8(e));function t(n){A.value=[...A.value,sM(n)]}function r(n){A.value=V8(n)}function i(){A.value=[]}return{messages:A,appendMessage:t,setMessages:r,reset:i}}function V8(e){return e.map(sM)}function sM(e){return JSON.parse(JSON.stringify(e))}function QEA(){function e(A,t={}){return Il(A,t)}return{thumbnailUrl:e,appendImageViewParams:Il}}function pEA(e){const A=u.computed(()=>(e==null?void 0:e.direction)||"horizontal"),t=u.computed(()=>e==null?void 0:e.nodeSpacing),r=u.computed(()=>e==null?void 0:e.levelSpacing),i=u.computed(()=>(e==null?void 0:e.align)||"center"),n=u.computed(()=>A.value==="horizontal"),a=u.computed(()=>A.value==="vertical");return{direction:A,nodeSpacing:t,levelSpacing:r,align:i,isHorizontal:n,isVertical:a,getNodeSpacing:()=>t.value,getLevelSpacing:()=>r.value,getAlign:()=>i.value}}exports.ACTION_BAR_ICON_NAMES=N7;exports.ACTION_BAR_SYSTEM_PROMPT=TH;exports.ARTIFACT_BLOCK_SYSTEM_PROMPT=RH;exports.ASK_USER_FORM_SYSTEM_PROMPT=_H;exports.CHART_BLOCK_SYSTEM_PROMPT=LH;exports.CHART_TYPES=kF;exports.ChartToolRenderer=ES;exports.ChatActionbar=aS;exports.ChatAttachments=QS;exports.ChatBot=aEA;exports.ChatFilePreview=sy;exports.ChatFilePreviewPanel=AM;exports.ChatFollowUps=pS;exports.ChatImageLightbox=Ef;exports.ChatMessage=FR;exports.ChatPreviewSkeleton=NB;exports.ChatProvider=lEA;exports.ChatQueue=$R;exports.ChatReasoning=pE;exports.ChatSender=ZR;exports.ChatSenderAppendIcon=MR;exports.ChatSenderAtIcon=hfA;exports.ChatSenderCheckIcon=GR;exports.ChatSenderClickIcon=TR;exports.ChatSenderLinkIcon=YR;exports.ChatSenderMicIcon=Sv;exports.ChatSenderMicOffIcon=OI;exports.ChatSenderMoreIcon=LR;exports.ChatToolGroup=ME;exports.CodeToolRenderer=mf;exports.ConversationList=jR;exports.D3MindMap=nS;exports.DEFAULT_CHAT_ATTACHMENT_LIMITS=rh;exports.EmptyState=qR;exports.FileReadToolRenderer=Yv;exports.MessageBubble=_R;exports.MindMapToolRenderer=wS;exports.OpenGenUIToolRenderer=C7;exports.OpenGenerativeUiChartRenderer=e1;exports.OpenGenerativeUiPlanRenderer=c7;exports.OpenGenerativeUiScheduleRenderer=u7;exports.OpenGenerativeUiThemeRenderer=h7;exports.ProcessResultCard=fEA;exports.SearchToolRenderer=I7;exports.TextPartRenderer=bv;exports.ToolCallPart=S7;exports.appendImageViewParams=Il;exports.artifactToChatResource=sh;exports.buildAskUserFunctionCallOutput=WH;exports.buildChatSendPayload=Qf;exports.classifyAttachment=Q0;exports.classifyChatError=oy;exports.colorfulTheme=q8;exports.convertReferenceMarkers=DR;exports.createAttachmentFingerprint=IE;exports.createChatAttachmentController=JR;exports.createChatMessageId=Fv;exports.darkTheme=Z8;exports.debounce=wM;exports.deepClone=CE;exports.defaultTheme=Al;exports.downloadArtifact=bf;exports.downloadBlob=kM;exports.editChatQueueItem=tM;exports.enqueueChatPayload=eM;exports.extractAskFormMdocFromToolCalls=ZH;exports.extractAskFormNodes=PH;exports.extractAskUserFromToolCall=w7;exports.extractAskUserFromToolCalls=rd;exports.extractAskUserQuestionsFromContent=id;exports.filterOutAskFormToolCalls=qH;exports.filterOutAskUserToolCalls=D7;exports.formatAskUserAnswersLabel=b7;exports.getChatFileIconSrc=Rv;exports.getChatPreviewKind=p0;exports.getFileExtension=Jn;exports.getFilesFromDataTransfer=If;exports.getQiniuUploadCredential=iy;exports.getTextWidth=gI;exports.getTheme=yM;exports.hasFileDrag=rc;exports.isActionBarReady=_7;exports.isAskFormToolName=HH;exports.isAskUserAnswerComplete=FE;exports.isAskUserShapedArguments=VH;exports.isAskUserToolName=oh;exports.isChartType=bF;exports.isGradient=bM;exports.isTextArtifactType=Bl;exports.mergeTheme=W8;exports.minimalTheme=P8;exports.moveChatQueueItem=iM;exports.normalizeAgentHistoryMessages=oM;exports.normalizeAskUserPayload=v7;exports.normalizeAskUserQuestion=i1;exports.normalizeHistoryResourceFile=nM;exports.openArtifactInNewTab=a1;exports.parseAskUserPayloadFromArguments=y7;exports.parseGradientColor=SM;exports.parseQiniuUploadResult=_v;exports.professionalTheme=K8;exports.registerChatPreviewRenderer=RL;exports.registerToolRenderer=Qi;exports.removeChatQueueItem=rM;exports.resolveActionBarIcon=x7;exports.resolveArtifactOpenStrategy=n1;exports.resolveArtifactPreviewKind=M7;exports.resolveChatAttachmentLimits=kf;exports.resolveChatPreviewRenderer=hS;exports.resolveToolRenderer=d7;exports.resourceToContentPart=uS;exports.serializeAskUserOutput=k7;exports.svgToBlob=j8;exports.svgToPng=$8;exports.themes=z8;exports.throttle=DM;exports.toChatResourceFile=cS;exports.uploadFile=pfA;exports.uploadFileToQiniu=ny;exports.useChatContext=kc;exports.useConversation=BEA;exports.useImageUrl=QEA;exports.useMindMapLayout=pEA;exports.useMindMapTheme=X8;exports.validateAttachmentFile=gS;
|
package/dist/index.js
CHANGED
|
@@ -2498,7 +2498,7 @@ function tm(e, A) {
|
|
|
2498
2498
|
const t = A.filter(
|
|
2499
2499
|
(a) => a.status === "uploaded"
|
|
2500
2500
|
), i = t.map((a) => a.resource), r = [], n = e.trim();
|
|
2501
|
-
n && r.push({ type: "input_text",
|
|
2501
|
+
n && r.push({ type: "input_text", text: n });
|
|
2502
2502
|
for (const a of t) r.push(SL(a.resource));
|
|
2503
2503
|
return {
|
|
2504
2504
|
message: {
|
|
@@ -65495,7 +65495,7 @@ function IS(e) {
|
|
|
65495
65495
|
return e === "text" || e === "input_text" || e === "output_text";
|
|
65496
65496
|
}
|
|
65497
65497
|
function fS(e) {
|
|
65498
|
-
return typeof e.
|
|
65498
|
+
return typeof e.text == "string" && e.text ? e.text : typeof e.content == "string" && e.content ? e.content : Zd(e.text || e.content);
|
|
65499
65499
|
}
|
|
65500
65500
|
function bEA(e) {
|
|
65501
65501
|
if (typeof e == "string") return e;
|