diff --git a/dist/components/bubbles/BotBubble.d.ts.map b/dist/components/bubbles/BotBubble.d.ts.map index d4c8d4bfe..04aca0594 100644 --- a/dist/components/bubbles/BotBubble.d.ts.map +++ b/dist/components/bubbles/BotBubble.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAQ1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAElC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCAyjBrC,CAAC"} \ No newline at end of file +{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAElC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCAkkBrC,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts b/dist/components/buttons/TracesButton.d.ts new file mode 100644 index 000000000..89ef10fbf --- /dev/null +++ b/dist/components/buttons/TracesButton.d.ts @@ -0,0 +1,10 @@ +import { JSX } from 'solid-js'; +type TracesButtonProps = { + feedbackColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const TracesButton: (props: TracesButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=TracesButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts.map b/dist/components/buttons/TracesButton.d.ts.map new file mode 100644 index 000000000..37d7b8ccf --- /dev/null +++ b/dist/components/buttons/TracesButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/TracesButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAqBpD,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts b/dist/components/icons/TracesIcon.d.ts new file mode 100644 index 000000000..1a670bb4f --- /dev/null +++ b/dist/components/icons/TracesIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const TracesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=TracesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts.map b/dist/components/icons/TracesIcon.d.ts.map new file mode 100644 index 000000000..1d89825e3 --- /dev/null +++ b/dist/components/icons/TracesIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TracesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAqBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/index.d.ts b/dist/components/icons/index.d.ts index dcb0b83b3..2db062272 100644 --- a/dist/components/icons/index.d.ts +++ b/dist/components/icons/index.d.ts @@ -14,4 +14,5 @@ export * from './SparklesIcon'; export * from './VolumeIcon'; export * from './SquareStopIcon'; export * from './ChevronDownIcon'; +export * from './TracesIcon'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/index.d.ts.map b/dist/components/icons/index.d.ts.map index 3033dc70d..81a749e58 100644 --- a/dist/components/icons/index.d.ts.map +++ b/dist/components/icons/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts b/dist/components/treeview/NodeDetailsContent.d.ts new file mode 100644 index 000000000..8ce66a34e --- /dev/null +++ b/dist/components/treeview/NodeDetailsContent.d.ts @@ -0,0 +1,36 @@ +export type NodeDetailsNode = { + label: string; + name: string; + status: string; + data: any; +}; +type NodeDetailsContentProps = { + node: NodeDetailsNode; + backgroundColor?: string; + textColor?: string; + apiHost?: string; + chatflowid?: string; + chatId?: string; +}; +export declare function syntaxHighlight(json: string): string; +export declare const CloseIcon: () => import("solid-js").JSX.Element; +export declare const ClockIcon: () => import("solid-js").JSX.Element; +export declare const CoinIcon: () => import("solid-js").JSX.Element; +export declare const TokenIcon: () => import("solid-js").JSX.Element; +export declare const NodeIcon: (props: { + name: string; + apiHost?: string; + size?: number; + borderRadius?: string; + bgColor?: string; +}) => import("solid-js").JSX.Element; +export declare const jsonBlockStyle: Record; +export declare const nddStyles = "\n .ndd-json .string { color: #7ac35c; }\n .ndd-json .number { color: #e08331; }\n .ndd-json .boolean { color: #326dc3; }\n .ndd-json .null { color: #a951ad; }\n .ndd-json .key { color: #d73e3e; font-weight: bold; }\n @keyframes ndd-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n .ndd-spin { animation: ndd-spin 1.5s linear infinite; }\n .ndd-markdown p { margin: 0 0 0.5em 0; }\n .ndd-markdown p:last-child { margin-bottom: 0; }\n .ndd-markdown code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; font-size: 0.8em; font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace; }\n .ndd-markdown pre { background: rgba(0,0,0,0.04); padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 0.5em 0; }\n .ndd-markdown pre code { background: none; padding: 0; font-size: 0.8em; }\n .ndd-markdown a { color: #1976d2; text-decoration: underline; }\n .ndd-markdown ul, .ndd-markdown ol { margin: 0.4em 0; padding-left: 1.5em; }\n .ndd-markdown li { margin: 0.2em 0; }\n .ndd-markdown h1, .ndd-markdown h2, .ndd-markdown h3 { margin: 0.6em 0 0.3em 0; font-weight: 600; }\n .ndd-markdown h1 { font-size: 1.2em; }\n .ndd-markdown h2 { font-size: 1.1em; }\n .ndd-markdown h3 { font-size: 1em; }\n .ndd-markdown blockquote { border-left: 3px solid rgba(0,0,0,0.15); margin: 0.5em 0; padding: 0.2em 0 0.2em 0.8em; opacity: 0.85; }\n .ndd-markdown table { border-collapse: collapse; margin: 0.5em 0; font-size: 0.85em; }\n .ndd-markdown th, .ndd-markdown td { border: 1px solid rgba(0,0,0,0.12); padding: 4px 8px; }\n .ndd-markdown th { background: rgba(0,0,0,0.04); font-weight: 600; }\n .ndd-markdown strong { font-weight: 600; }\n"; +export declare const getMetrics: (data: any) => { + time?: string | undefined; + tokens?: string | undefined; + cost?: string | undefined; +} | null; +export declare const NodeDetailsContent: (props: NodeDetailsContentProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=NodeDetailsContent.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts.map b/dist/components/treeview/NodeDetailsContent.d.ts.map new file mode 100644 index 000000000..34f3148f1 --- /dev/null +++ b/dist/components/treeview/NodeDetailsContent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NodeDetailsContent.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsContent.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,eAAe,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcpD;AAID,eAAO,MAAM,SAAS,sCAerB,CAAC;AAkBF,eAAO,MAAM,SAAS,sCAerB,CAAC;AAEF,eAAO,MAAM,QAAQ,sCAgBpB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAiBrB,CAAC;AAyDF,eAAO,MAAM,QAAQ,UAAW;IAAE,MAAM,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,mCAmEzH,CAAC;AA2FF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC;AAsIF,eAAO,MAAM,SAAS,orDAyBrB,CAAC;AAIF,eAAO,MAAM,UAAU,SAAU,GAAG;;;;QAoBnC,CAAC;AAIF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,mCAimBhE,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsDialog.d.ts.map b/dist/components/treeview/NodeDetailsDialog.d.ts.map index 7c1a0716c..2af4635bf 100644 --- a/dist/components/treeview/NodeDetailsDialog.d.ts.map +++ b/dist/components/treeview/NodeDetailsDialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"NodeDetailsDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsDialog.tsx"],"names":[],"mappings":"AAOA,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,GAAG,CAAC;KACX,GAAG,IAAI,CAAC;IACT,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAieF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,mCA6uB9D,CAAC"} \ No newline at end of file +{"version":3,"file":"NodeDetailsDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsDialog.tsx"],"names":[],"mappings":"AAKA,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,GAAG,CAAC;KACX,GAAG,IAAI,CAAC;IACT,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,mCA0E9D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts b/dist/components/treeview/RichTreeView.d.ts index b814886a5..a6d85305d 100644 --- a/dist/components/treeview/RichTreeView.d.ts +++ b/dist/components/treeview/RichTreeView.d.ts @@ -2,6 +2,7 @@ import { JSXElement } from 'solid-js'; type RichTreeViewProps = { children: JSXElement; defaultExpanded?: string[]; + defaultSelected?: string; onNodeSelect?: (itemId: string) => void; highlightItems?: string[]; multiSelect?: boolean; diff --git a/dist/components/treeview/RichTreeView.d.ts.map b/dist/components/treeview/RichTreeView.d.ts.map index 26bc2b133..1828021e1 100644 --- a/dist/components/treeview/RichTreeView.d.ts.map +++ b/dist/components/treeview/RichTreeView.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAuC,MAAM,UAAU,CAAC;AAoHtG,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA8GpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA8D5C,CAAC"} \ No newline at end of file +{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAuC,MAAM,UAAU,CAAC;AAoHtG,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA4HpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA4D5C,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts b/dist/components/treeview/TracesDialog.d.ts new file mode 100644 index 000000000..0e592bbb9 --- /dev/null +++ b/dist/components/treeview/TracesDialog.d.ts @@ -0,0 +1,16 @@ +import { WorkflowNode } from './workflowUtils'; +type TracesDialogProps = { + isOpen: boolean; + onClose: () => void; + workflowData: WorkflowNode[]; + backgroundColor?: string; + textColor?: string; + apiHost?: string; + chatflowid?: string; + chatId?: string; + hasCustomHeader?: boolean; + dialogContainer?: HTMLElement; +}; +export declare const TracesDialog: (props: TracesDialogProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=TracesDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts.map b/dist/components/treeview/TracesDialog.d.ts.map new file mode 100644 index 000000000..8b523c103 --- /dev/null +++ b/dist/components/treeview/TracesDialog.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TracesDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAoD,MAAM,iBAAiB,CAAC;AAIjG,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAqDF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA2UpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts b/dist/components/treeview/WorkflowTreeView.d.ts index d2915b141..ad1562be8 100644 --- a/dist/components/treeview/WorkflowTreeView.d.ts +++ b/dist/components/treeview/WorkflowTreeView.d.ts @@ -1,10 +1,5 @@ -export type WorkflowNode = { - nodeId: string; - nodeLabel: string; - data: any; - previousNodeIds: string[]; - status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; -}; +import { WorkflowNode } from './workflowUtils'; +export type { WorkflowNode }; type WorkflowTreeViewProps = { workflowData: WorkflowNode[]; class?: string; @@ -21,5 +16,4 @@ type WorkflowTreeViewProps = { dialogContainer?: HTMLElement; }; export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element; -export {}; //# sourceMappingURL=WorkflowTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts.map b/dist/components/treeview/WorkflowTreeView.d.ts.map index 0ecebc2c5..7363c22d1 100644 --- a/dist/components/treeview/WorkflowTreeView.d.ts.map +++ b/dist/components/treeview/WorkflowTreeView.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"WorkflowTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/WorkflowTreeView.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAGF,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AA+JF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCA+Z5D,CAAC"} \ No newline at end of file +{"version":3,"file":"WorkflowTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/WorkflowTreeView.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAoD,MAAM,iBAAiB,CAAC;AAGjG,YAAY,EAAE,YAAY,EAAE,CAAC;AAG7B,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AA2CF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCAkI5D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts b/dist/components/treeview/workflowUtils.d.ts new file mode 100644 index 000000000..b4cf9f293 --- /dev/null +++ b/dist/components/treeview/workflowUtils.d.ts @@ -0,0 +1,25 @@ +export type WorkflowNode = { + nodeId: string; + nodeLabel: string; + data: any; + previousNodeIds: string[]; + status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; +}; +export declare const FLOWISE_CREDENTIAL_ID = "FLOWISE_CREDENTIAL_ID"; +export declare const FinishedIcon: () => import("solid-js").JSX.Element; +export declare const PendingIcon: () => import("solid-js").JSX.Element; +export declare const RunningIcon: () => import("solid-js").JSX.Element; +export declare const ErrorIcon: () => import("solid-js").JSX.Element; +export declare const StoppedIcon: () => import("solid-js").JSX.Element; +export declare const getStatusIcon: (status: string) => import("solid-js").JSX.Element; +export declare const removeFlowiseCredentialId: (data: any) => any; +export declare const getExecutionStatus: (executionTree: any[]) => string | null; +export declare const buildTreeData: (nodes: WorkflowNode[]) => { + id: any; + label: any; + name: any; + status: any; + data: any; + children: any; +}[]; +//# sourceMappingURL=workflowUtils.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts.map b/dist/components/treeview/workflowUtils.d.ts.map new file mode 100644 index 000000000..ce90ac25a --- /dev/null +++ b/dist/components/treeview/workflowUtils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"workflowUtils.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/workflowUtils.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAEF,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,YAAY,sCAKxB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAGF,eAAO,MAAM,aAAa,WAAY,MAAM,mCAuB3C,CAAC;AAGF,eAAO,MAAM,yBAAyB,SAAU,GAAG,KAAG,GAYrD,CAAC;AAGF,eAAO,MAAM,kBAAkB,kBAAmB,GAAG,EAAE,KAAG,MAAM,GAAG,IAkBlE,CAAC;AAGF,eAAO,MAAM,aAAa,UAAW,YAAY,EAAE;;;;;;;GAoQlD,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js index ef399d004..8f357daea 100644 --- a/dist/web.js +++ b/dist/web.js @@ -1 +1 @@ -function e(e){return Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=Object.assign({},a),!t(a.value)||function(e){return"[object Function]"===Object.prototype.toString.call(e)}(a.value)||Array.isArray(a.value)||(r[o].value=Object.assign({},a.value)),Array.isArray(a.value)&&(r[o].value=a.value.slice(0)),r}),{})}function r(e){if(e)try{return JSON.parse(e)}catch(r){return e}}function o(e,r,o){if(null==o||!1===o)return e.removeAttribute(r);let t=JSON.stringify(o);e.__updating[r]=!0,"true"===t&&(t=""),e.setAttribute(r,t),Promise.resolve().then((()=>delete e.__updating[r]))}function t(e){return null!=e&&("object"==typeof e||"function"==typeof e)}let a;function l(t,l){const n=Object.keys(l);return class extends t{static get observedAttributes(){return n.map((e=>l[e].attribute))}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(!this.__initialized){this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=function(t,a){const l=e(a);return Object.keys(a).forEach((e=>{const a=l[e],n=t.getAttribute(a.attribute),i=t[e];n&&(a.value=a.parse?r(n):n),null!=i&&(a.value=Array.isArray(i)?i.slice(0):i),a.reflect&&o(t,a.attribute,a.value),Object.defineProperty(t,e,{get:()=>a.value,set(r){var t=a.value;a.value=r,a.reflect&&o(this,a.attribute,a.value);for(let o=0,a=this.__propertyChangedCallbacks.length;o(r[o]=e[o].value,r)),{})}(this.props),n=this.Component,i=a;try{(a=this).__initialized=!0,function(e){return"function"==typeof e&&0===e.toString().indexOf("class")}(n)?new n(t,{element:this}):n(t,{element:this})}finally{a=i}}}async disconnectedCallback(){if(await Promise.resolve(),!this.isConnected){this.__propertyChangedCallbacks.length=0;for(var e=null;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}}attributeChangedCallback(e,o,t){!this.__initialized||this.__updating[e]||(e=this.lookupProp(e))in l&&(null==t&&!this[e]||(this[e]=l[e].parse?r(t):t))}lookupProp(e){if(l)return n.find((r=>e===r||e===l[r].attribute))}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function n(e,r={},o={}){const{BaseElement:a=HTMLElement,extension:n}=o;return o=>{if(!e)throw new Error("tag is required to register a Component");let i=customElements.get(e);return i?i.prototype.Component=o:((i=l(a,function(e){return e?Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=t(a)&&"value"in a?a:{value:a},r[o].attribute||(r[o].attribute=function(e){return e.replace(/\.?([A-Z]+)/g,((e,r)=>"-"+r.toLowerCase())).replace("_","-").replace(/^-/,"")}(o)),r[o].parse="parse"in r[o]?r[o].parse:"string"!=typeof r[o].value,r}),{}):{}}(r))).prototype.Component=o,i.prototype.registeredTag=e,customElements.define(e,i,n)),i}}const i=Symbol("solid-proxy"),d=Symbol("solid-track"),s=Symbol("solid-dev-component"),m={equals:(e,r)=>e===r};let g=D;const c=1,u=2,x={owned:null,cleanups:null,context:null,owner:null};var p=null;let h=null,v=null,S=null,b=null,f=0;function $(e,r){const o=v,t=p,a=0===e.length,l=a?x:{owned:null,cleanups:null,context:null,owner:void 0===r?t:r},n=a?e:()=>e((()=>T((()=>H(l)))));p=l,v=null;try{return k(n,!0)}finally{v=o,p=t}}function y(e,r){const o={value:e,observers:null,observerSlots:null,comparator:(r=r?Object.assign({},m,r):m).equals||void 0};return[E.bind(o),e=>("function"==typeof e&&(e=e(o.value)),B(o,e))]}function A(e,r,o){N(O(e,r,!1,c))}function P(e,r,o){g=R,(e=O(e,r,!1,c)).user=!0,b?b.push(e):N(e)}function M(e,r,o){return o=o?Object.assign({},m,o):m,(e=O(e,r,!0,0)).observers=null,e.observerSlots=null,e.comparator=o.equals||void 0,N(e),E.bind(e)}function T(e){if(null===v)return e();var r=v;v=null;try{return e()}finally{v=r}}function _(e){P((()=>T(e)))}function w(e){return null!==p&&(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function L(){return v}function G(e){var r;return void 0!==(r=V(p,e.id))?r:e.defaultValue}function C(e){const r=M(e),o=M((()=>W(r())));return o.toArray=()=>{var e=o();return Array.isArray(e)?e:null!=e?[e]:[]},o}function E(){var e;return this.sources&&this.state&&(this.state===c?N(this):(e=S,S=null,k((()=>F(this)),!1),S=e)),v&&(e=this.observers?this.observers.length:0,v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])),this.value}function B(e,r,o){var t=e.value;return e.comparator&&e.comparator(t,r)||(e.value=r,e.observers&&e.observers.length&&k((()=>{for(let t=0;tF(e,o[0])),!1),S=r)}}}function k(e,r){if(S)return e();let o=!1;r||(S=[]),b?o=!0:b=[],f++;try{var t=e();return function(e){if(S&&(D(S),S=null),!e){const e=b;b=null,e.length&&k((()=>g(e)),!1)}}(o),t}catch(e){o||(b=null),S=null,U(e)}}function D(e){for(let r=0;ro=T((()=>(p.context={[e]:r.value},C((()=>r.children)))))),void 0),o}}const Z=Symbol("fallback");function z(e){for(let r=0;re(r||{})))}function Y(){return!0}const J={get:(e,r,o)=>r===i?o:e.get(r),has:(e,r)=>r===i||e.has(r),set:Y,deleteProperty:Y,getOwnPropertyDescriptor:(e,r)=>({configurable:!0,enumerable:!0,get:()=>e.get(r),set:Y,deleteProperty:Y}),ownKeys:e=>e.keys()};function j(e){return(e="function"==typeof e?e():e)||{}}function q(...e){let r=!1;for(let t=0;tnew Proxy({get:o=>r.includes(o)?e[o]:void 0,has:o=>r.includes(o)&&o in e,keys:()=>r.filter((r=>r in e))},J)))).push(new Proxy({get:r=>o.has(r)?void 0:e[r],has:r=>!o.has(r)&&r in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},J)),t;const a=Object.getOwnPropertyDescriptors(e);return r.push(Object.keys(a).filter((e=>!o.has(e)))),r.map((r=>{var o={};for(let t=0;te[l],set:()=>!0,enumerable:!0})}return o}))}function re(e){var r="fallback"in e&&{fallback:()=>e.fallback};return M(function(e,r,o={}){let t=[],a=[],l=[],n=0,i=1z(l))),()=>{let s,m,g=e()||[];return g[d],T((()=>{let e,r,d,u,x,p,h,v,S,b=g.length;if(0===b)0!==n&&(z(l),l=[],t=[],a=[],n=0,i=i&&[]),o.fallback&&(t=[Z],a[0]=$((e=>(l[0]=e,o.fallback()))),n=1);else if(0===n){for(a=new Array(b),m=0;m=p&&v>=p&&t[h]===g[v];h--,v--)d[v]=a[h],u[v]=l[h],i&&(x[v]=i[h]);for(e=new Map,r=new Array(v+1),m=v;m>=p;m--)S=g[m],s=e.get(S),r[m]=void 0===s?-1:s,e.set(S,m);for(s=p;s<=h;s++)S=t[s],void 0!==(m=e.get(S))&&-1!==m?(d[m]=a[s],u[m]=l[s],i&&(x[m]=i[s]),m=r[m],e.set(S,m)):l[s]();for(m=p;me.each),e.children,r||void 0))}function oe(e){const r=e.keyed,o=M((()=>e.when),void 0,{equals:(e,o)=>r?e===o:!e==!o});return M((()=>{const t=o();if(t){const a=e.children;return"function"==typeof a&&0a(r?t:()=>{if(T(o))return e.when;throw(e=>`Stale read from <${e}>.`)("Show")}))):a}return e.fallback}),void 0,void 0)}const te=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ae=new Set(["innerHTML","textContent","innerText","children"]),le=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ne=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const ie=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),de=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),se={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const me="_$DX_DELEGATE";function ge(e,r,o){let t;const a=()=>{var r=document.createElement("template");return r.innerHTML=e,(o?r.content.firstChild:r.content).firstChild};return(r=r?()=>(t=t||a()).cloneNode(!0):()=>T((()=>document.importNode(t=t||a(),!0)))).cloneNode=r}function ce(e,r=window.document){var o=r[me]||(r[me]=new Set);for(let a=0,l=e.length;at.call(e,o[1],r))}else e.addEventListener(r,o)}function he(e,r,o){if(!r)return o?ue(e,"style"):r;var t=e.style;if("string"==typeof r)return t.cssText=r;let a,l;for(l in"string"==typeof o&&(t.cssText=o=void 0),r=r||{},o=o||{})null==r[l]&&t.removeProperty(l),delete o[l];for(l in r)(a=r[l])!==o[l]&&(t.setProperty(l,a),o[l]=a);return o}function ve(e,r={},o,t){const a={};return t||A((()=>a.children=Ae(e,r.children,a.children))),A((()=>r.ref&&r.ref(e))),A((()=>function(e,r,o,t,a={},l=!1){r=r||{};for(const t in a)t in r||"children"!==t&&(a[t]=$e(e,t,null,a[t],o,l));for(const i in r){var n;"children"===i?t||Ae(e,r.children):(n=r[i],a[i]=$e(e,i,n,a[i],o,l))}}(e,r,o,!0,a,!0))),a}function Se(e,r,o){return T((()=>e(r,o)))}function be(e,r,o,t){if(void 0!==o&&(t=t||[]),"function"!=typeof r)return Ae(e,r,t,o);A((t=>Ae(e,r(),t,o)),t)}function fe(e,r,o){var t=r.trim().split(/\s+/);for(let r=0,a=t.length;rr.toUpperCase()))}(r)]=o):(t=a&&-1o||document});o;){var t=o[r];if(t&&!o.disabled){var a=o[r+"Data"];if(void 0!==a?t.call(o,a,e):t.call(o,e),e.cancelBubble)return}o=o._$host||o.parentNode||o.host}}function Ae(e,r,o,t,a){for(;"function"==typeof o;)o=o();if(r!==o){var l=typeof r,n=void 0!==t;if(e=n&&o[0]&&o[0].parentNode||e,"string"==l||"number"==l)if("number"==l&&(r=r.toString()),n){let a=o[0];a&&3===a.nodeType?a.data=r:a=document.createTextNode(r),o=Te(e,o,t,a)}else o=""!==o&&"string"==typeof o?e.firstChild.data=r:e.textContent=r;else if(null==r||"boolean"==l)o=Te(e,o,t);else{if("function"==l)return A((()=>{let a=r();for(;"function"==typeof a;)a=a();o=Ae(e,a,o,t)})),()=>o;if(Array.isArray(r)){const i=[];if(l=o&&Array.isArray(o),Pe(i,r,o,a))return A((()=>o=Ae(e,i,o,t,!0))),()=>o;if(0===i.length){if(o=Te(e,o,t),n)return o}else l?0===o.length?Me(e,i,t):function(e,r,o){let t=o.length,a=r.length,l=t,n=0,i=0,d=r[a-1].nextSibling,s=null;for(;nc-i)for(var u=r[n];i{a=a||function(e,r){var o=p,t=v;p=e,v=null;try{return k(r,!0)}catch(e){U(e)}finally{p=o,v=t}}(t,(()=>e.children));const l=e.mount||document.body;if(l instanceof HTMLHeadElement){const[e,r]=y(!1);$((r=>be(l,(()=>e()?r():a),null))),w((()=>r(!0)))}else{const t=we(e.isSVG?"g":"div",e.isSVG),n=r&&t.attachShadow?t.attachShadow({mode:"open"}):t;Object.defineProperty(t,"_$host",{get:()=>o.parentNode,configurable:!0}),be(n,a),l.appendChild(t),e.ref&&e.ref(t),w((()=>l.removeChild(t)))}})),o}function Ge(e){const[r,o]=ee(e,["component"]),t=M((()=>r.component));return M((()=>{const e=t();switch(typeof e){case"function":return Object.assign(e,{[s]:!0}),T((()=>e(o)));case"string":var r=de.has(e),a=we(e,r);return ve(a,o,r),a}}))}function Ce(e){return(r,o)=>{const t=o.element;return $((a=>{const l=function(e){var r=Object.keys(e),o={};for(let t=0;te))}})}return o}(r);t.addPropertyChangedCallback(((e,r)=>l[e]=r)),t.addReleaseCallback((()=>{t.renderRoot.textContent="",a()}));var n=e(l,o);return be(t.renderRoot,n)}),function(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let r=e.parentNode;for(;r&&!r._$owner&&(!r.assignedSlot||!r.assignedSlot._$owner);)r=r.parentNode;return(r&&r.assignedSlot?r.assignedSlot:e)._$owner}(t))}}function Ee(e,r,o){return 2===arguments.length&&(o=r,r={}),n(e,r)(Ce(o))}const Be={chatflowid:"",apiHost:void 0,onRequest:void 0,chatflowConfig:void 0,theme:void 0,observersConfig:void 0,dialogContainer:void 0};var Ne='/*! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\\[140px\\]{bottom:140px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-\\[-8px\\]{right:-8px}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.float-right{float:right}.m-0{margin:0}.m-\\[6px\\]{margin:6px}.m-auto{margin:auto}.mx-4{margin-left:16px;margin-right:16px}.my-2{margin-bottom:8px;margin-top:8px}.my-6{margin-bottom:24px;margin-top:24px}.-ml-1{margin-left:-4px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-1{margin-left:4px}.ml-1\\.5{margin-left:6px}.ml-10{margin-left:40px}.ml-2{margin-left:8px}.ml-auto{margin-left:auto}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mr-\\[10px\\]{margin-right:10px}.mt-2{margin-top:8px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:40px}.h-12{height:48px}.h-14{height:56px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[58px\\]{height:58px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[128px\\]{max-height:128px}.max-h-\\[192px\\]{max-height:192px}.min-h-0{min-height:0}.min-h-\\[56px\\]{min-height:56px}.min-h-full{min-height:100%}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-8{width:32px}.w-\\[200px\\]{width:200px}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-3xl{max-width:768px}.max-w-\\[128px\\]{max-width:128px}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:448px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-rotate-180,.-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate:-180deg}.rotate-0{--tw-rotate:0deg}.rotate-0,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(8px*(1 - var(--tw-space-x-reverse)));margin-right:calc(8px*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(16px*(1 - var(--tw-space-x-reverse)));margin-right:calc(16px*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:4px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.rounded-none{border-radius:0}.rounded-xl{border-radius:12px}.rounded-b{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.rounded-t{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#eeeeee\\]{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{background-color:rgba(0,0,0,.3)}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.4\\)\\]{background-color:rgba(0,0,0,.4)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/10{background-color:rgba(0,0,0,.1)}.bg-black\\/60{background-color:rgba(0,0,0,.6)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-transparent{fill:transparent}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:4px}.p-10{padding:40px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.px-1{padding-left:4px;padding-right:4px}.px-12{padding-left:48px;padding-right:48px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.py-4{padding-bottom:16px;padding-top:16px}.py-8{padding-bottom:32px;padding-top:32px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-\\[10px\\]{padding-bottom:10px}.pl-4{padding-left:16px}.pr-0{padding-right:0}.pr-3{padding-right:12px}.pt-2{padding-top:8px}.pt-4{padding-top:16px}.pt-\\[6px\\]{padding-top:6px}.pt-\\[70px\\]{padding-top:70px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:24px;line-height:32px}.text-\\[13px\\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-\\[2px\\]{--tw-blur:blur(2px)}.blur-\\[2px\\],.blur-none{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-none{--tw-blur:blur(0)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{--chatbot-container-bg-image:none;--chatbot-container-bg-color:transparent;--chatbot-container-font-family:"Open Sans";--chatbot-button-bg-color:#0042da;--chatbot-button-color:#fff;--chatbot-host-bubble-bg-color:#f7f8ff;--chatbot-host-bubble-color:#303235;--chatbot-guest-bubble-bg-color:#3b81f6;--chatbot-guest-bubble-color:#fff;--chatbot-input-bg-color:#fff;--chatbot-input-color:#303235;--chatbot-input-placeholder-color:#9095a0;--chatbot-header-bg-color:#fff;--chatbot-header-color:#303235;--chatbot-border-radius:6px;--PhoneInputCountryFlag-borderColor:transparent;--PhoneInput-color--focus:transparent}a{color:#16bed7;font-weight:500}a:hover{text-decoration:underline}pre{word-wrap:break-word;font-size:13px;margin:5px;overflow:auto;padding:5px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;width:auto}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}.key{color:#002b36}.scrollable-container{scrollbar-color:rgba(0,0,0,.2) transparent;scrollbar-width:thin}.scrollable-container::-webkit-scrollbar{width:4px}.scrollable-container::-webkit-scrollbar-track{background:transparent}.scrollable-container::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:4px}.scrollable-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.35)}@media (hover:none) and (pointer:coarse){.scrollable-container{scrollbar-width:none}.scrollable-container::-webkit-scrollbar{display:none}}.text-fade-in{transition:opacity .4s ease-in .2s}.bubble-typing{transition:width .4s ease-out,height .4s ease-out}.bubble1,.bubble2,.bubble3{background-color:var(--chatbot-host-bubble-color);opacity:.5}.bubble1,.bubble2{animation:chatBubbles 1s ease-in-out infinite}.bubble2{animation-delay:.3s}.bubble3{animation:chatBubbles 1s ease-in-out infinite;animation-delay:.5s}@keyframes chatBubbles{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}button,input,textarea{font-weight:300}.slate-a{text-decoration:underline}.slate-html-container>div{min-height:24px}.slate-bold{font-weight:700}.slate-italic{font-style:oblique}.slate-underline{text-decoration:underline}.text-input::-moz-placeholder{color:#9095a0!important;opacity:1!important}.text-input::placeholder{color:#9095a0!important;opacity:1!important}.chatbot-container{background-color:var(--chatbot-container-bg-color);background-image:var(--chatbot-container-bg-image);font-family:Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.file-annotation-button{background-color:#02a0a0c2;border:1px solid #02a0a0c2;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button{background-color:#0042da;border:1px solid #0042da;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button.selectable{border:1px solid #0042da}.chatbot-button.selectable,.chatbot-host-bubble{background-color:#f7f8ff;color:var(--chatbot-host-bubble-color)}.chatbot-host-bubble{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-host-bubble>.bubble-typing{background-color:#f7f8ff;border:var(--chatbot-host-bubble-border);border-radius:6px}.chatbot-host-bubble iframe,.chatbot-host-bubble img,.chatbot-host-bubble video{border-radius:var(--chatbot-border-radius)}.chatbot-guest-bubble{word-wrap:break-word;background-color:#3b81f6;border-radius:6px;color:var(--chatbot-guest-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-input,.feedback-input{background-color:#fff;border-radius:var(--chatbot-border-radius);box-shadow:0 2px 6px -1px rgba(0,0,0,.1);color:#303235}.chatbot-input-error-message{color:#303235}.chatbot-button>.send-icon{fill:var(--chatbot-button-color);stroke:var(--chatbot-button-color)}.regenerate-response-button>.icon-tabler-refresh{height:16px;width:16px}.chatbot-chat-view{max-width:800px}.ping span{background-color:#0042da}.rating-icon-container svg{stroke:#0042da;fill:#f7f8ff;height:42px;transition:fill .1s ease-out;width:42px}.rating-icon-container.selected svg{fill:#0042da}.rating-icon-container:hover svg{filter:brightness(.9)}.rating-icon-container:active svg{filter:brightness(.75)}.upload-progress-bar{background-color:#0042da;border-radius:var(--chatbot-border-radius)}.total-files-indicator{background-color:#0042da;color:var(--chatbot-button-color);font-size:10px}.chatbot-upload-input{transition:border-color .1s ease-out}.chatbot-upload-input.dragging-over{border-color:#0042da}.secondary-button{background-color:#f7f8ff;border-radius:var(--chatbot-border-radius);color:var(--chatbot-host-bubble-color)}.chatbot-country-select{color:#303235}.chatbot-country-select,.chatbot-date-input{background-color:#fff;border-radius:var(--chatbot-border-radius)}.chatbot-date-input{color:#303235;color-scheme:light}.chatbot-popup-blocked-toast{border-radius:var(--chatbot-border-radius)}.messagelist{border-radius:.5rem;height:100%;overflow-y:scroll;width:100%}.messagelistloading{display:flex;justify-content:center;margin-top:1rem;width:100%}.usermessage{padding:1rem 1.5rem}.usermessagewaiting-light{background:linear-gradient(270deg,#ede7f6,#e3f2fd,#ede7f6);background-position:-100% 0;background-size:200% 200%}.usermessagewaiting-dark,.usermessagewaiting-light{animation:loading-gradient 2s ease-in-out infinite;animation-direction:alternate;animation-name:loading-gradient;padding:1rem 1.5rem}.usermessagewaiting-dark{background:linear-gradient(270deg,#2e2352,#1d3d60,#2e2352);background-position:-100% 0;background-size:200% 200%;color:#ececf1}@keyframes loading-gradient{0%{background-position:-100% 0}to{background-position:100% 0}}.apimessage{animation:fadein .5s;padding:1rem 1.5rem}@keyframes fadein{0%{opacity:0}to{opacity:1}}.apimessage,.usermessage,.usermessagewaiting{display:flex}.markdownanswer{line-height:1.75}.markdownanswer a:hover{opacity:.8}.markdownanswer a{color:#16bed7;font-weight:500}.markdownanswer code{color:#15cb19;font-weight:500;white-space:pre-wrap!important}.markdownanswer ol,.markdownanswer ul{margin:1rem}.boticon,.usericon{border-radius:1rem;margin-right:1rem}.markdownanswer h1,.markdownanswer h2,.markdownanswer h3{font-size:inherit}.chatbot-host-bubble .prose,.chatbot-host-bubble.prose{font-size:inherit;line-height:1.55}.chatbot-host-bubble .prose h1,.chatbot-host-bubble.prose h1{font-size:1.25em;font-weight:700;line-height:1.3;margin-bottom:.3em;margin-top:.6em}.chatbot-host-bubble .prose h2,.chatbot-host-bubble.prose h2{font-size:1.125em;font-weight:600;line-height:1.35;margin-bottom:.25em;margin-top:.5em}.chatbot-host-bubble .prose h3,.chatbot-host-bubble.prose h3{font-size:1em;font-weight:600;line-height:1.4;margin-bottom:.2em;margin-top:.4em}:is(.chatbot-host-bubble.prose,.chatbot-host-bubble .prose) :is(h4,h5,h6){font-size:.95em;font-weight:600;line-height:1.4;margin-bottom:.15em;margin-top:.3em}.chatbot-host-bubble .prose p,.chatbot-host-bubble.prose p{margin-bottom:.35em;margin-top:.35em}.chatbot-host-bubble .prose ol,.chatbot-host-bubble .prose ul,.chatbot-host-bubble.prose ol,.chatbot-host-bubble.prose ul{margin-bottom:.25em;margin-top:.25em;padding-left:1.25em}.chatbot-host-bubble .prose li,.chatbot-host-bubble.prose li{margin-bottom:.1em;margin-top:.1em}.chatbot-host-bubble .prose blockquote,.chatbot-host-bubble.prose blockquote{border-left:3px solid;margin-bottom:.3em;margin-top:.3em;padding-left:.75em}.chatbot-host-bubble .prose pre,.chatbot-host-bubble.prose pre{word-wrap:break-word;font-size:.85em;margin-bottom:.4em;margin-top:.4em;overflow:auto;padding:5px;white-space:pre-wrap}.chatbot-host-bubble .prose hr,.chatbot-host-bubble.prose hr{margin-bottom:.5em;margin-top:.5em}.chatbot-host-bubble .prose table,.chatbot-host-bubble.prose table{font-size:.9em;margin-bottom:.3em;margin-top:.3em}.chatbot-host-bubble .prose>:first-child,.chatbot-host-bubble.prose>:first-child{margin-top:0}.chatbot-host-bubble .prose>:last-child,.chatbot-host-bubble.prose>:last-child{margin-bottom:0}.center{flex-direction:column;padding:10px;position:relative}.center,.cloud{align-items:center;display:flex;justify-content:center}.cloud{border-radius:.5rem;height:calc(100% - 50px);width:400px}input,textarea{background-color:transparent;border:none;font-family:Poppins,sans-serif;padding:10px}@media (max-width:640px){div[part=bot]{height:100%!important;left:0!important;max-height:unset!important;max-width:unset!important;overflow:auto;overflow-x:hidden;position:fixed!important;top:0!important;width:100%!important}.chatbot-container,.rounded-lg,div[class="flex flex-row items-center w-full h-[50px] absolute top-0 left-0 z-10"],div[part=button]{border-radius:0!important}button{cursor:default!important}}.tooltip{background:var(--tooltip-background-color,#000);border-radius:5px;color:var(--tooltip-text-color,#fff);font-size:var(--tooltip-font-size,12px);max-width:calc(100vw - 20px);padding:5px 10px;position:fixed;transition:opacity .3s ease-in-out;white-space:pre-wrap;word-break:break-word;z-index:42424242}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spinner{animation:spin 1s linear infinite;border:4px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:24px;width:24px}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:bg-emerald-600:active{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity))}.active\\:brightness-75:active{--tw-brightness:brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:brightness-100:disabled{--tw-brightness:brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group:hover .group-hover\\:flex{display:flex}@media (min-width:640px){.sm\\:right-5{right:20px}.sm\\:my-8{margin-bottom:32px;margin-top:32px}.sm\\:w-\\[400px\\]{width:400px}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}.sm\\:p-0{padding:0}}';const Oe=e=>null==e,Ie=e=>null!=e,ke=async e=>{try{var r="string"==typeof e?e:e.url,o="string"!=typeof e&&Ie(e.body)?{"Content-Type":"application/json",...e.headers}:void 0;let n="string"!=typeof e&&Ie(e.body)?JSON.stringify(e.body):void 0;"string"!=typeof e&&e.formData&&(n=e.formData);var t={method:"string"==typeof e?"GET":e.method,mode:"cors",headers:o,body:n,signal:"string"!=typeof e?e.signal:void 0},a=("string"!=typeof e&&e.onRequest&&await e.onRequest(t),await fetch(r,t));let i;var l=a.headers.get("Content-Type");if(i=l&&l.includes("application/json")?await a.json():"string"!=typeof e&&"blob"===e.type?await a.blob():await a.text(),a.ok)return{data:i};{let e;throw e="object"==typeof i&&"error"in i?i.error:i||a.statusText}}catch(e){return console.error(e),{error:e}}},De=(e,r,o={})=>{var t=localStorage.getItem(e+"_EXTERNAL");o={...o};if(r&&(o.chatId=r),t)try{var a=JSON.parse(t);localStorage.setItem(e+"_EXTERNAL",JSON.stringify({...a,...o}))}catch(a){const r=t;o.chatId=r,localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))}else localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))},Re=e=>{if(!(e=localStorage.getItem(e+"_EXTERNAL")))return{};try{return JSON.parse(e)}catch(e){return{}}},Fe=e=>e?"number"==typeof e?e:"small"===e?32:"medium"!==e&&"large"===e?64:48:48,Xe=e=>{if("string"==typeof e)try{var r=document.querySelector(e);return null===r&&console.warn(`[Flowise] dialogContainer selector "${e}" did not match any element. Dialog will render inline.`),r??void 0}catch{return void console.warn(`[Flowise] Invalid dialogContainer selector: "${e}". Dialog will render inline.`)}if(e instanceof HTMLElement)return e},He=ge(''),Ue=ge('Bubble button icon'),Ve=ge('
');function yn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const $n=()=>Ul(),An=()=>Vl(),Pn=()=>Wl(),Mn=()=>Kl(),Tn=()=>Zl(),_n=()=>zl(),wn=()=>Ql(),Ln=e=>{{const r=Yl();return A((o=>{var t=e.size,a=e.size;return t!==o._v$&&ue(r,"width",o._v$=t),a!==o._v$2&&ue(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},Gn=e=>{const r=e.size??24,o=Ll(e.name);if(o){const t=Jl();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),be(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),A((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=$(!1);{const a=Jl();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),be(a,Q(oe,{get when(){return!o()},get fallback(){return Q(Ln,{get size(){return Math.round(.6*r)}})},get children(){const r=jl();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&ue(r,"src",o._v$5=t),a!==o._v$6&&ue(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),A((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=Jl();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),be(o,Q(Ln,{get size(){return Math.round(.6*r)}})),A((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},Cn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,En=e=>{const[r,o]=$(e.defaultOpen??!1),t=()=>o(!r());{const o=ql(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),be(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),be(n,Q(An,{})),be(o,Q(oe,{get when(){return r()},get children(){var r=Jl();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),be(r,(()=>e.children)),r}}),null),A((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&ue(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},Bn={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Nn=e=>{{const r=en();return he(r,Bn),A((()=>r.innerHTML=yn(JSON.stringify(e.data,null,2)))),r}},On=e=>{Fo.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Q(oe,{get when(){return r()},get fallback(){return Q(oe,{get when(){return e.content},get fallback(){return(e=on()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=rn();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A((()=>r.innerHTML=Fo.parse(e.content))),r}})},get children(){return Q(Nn,{get data(){return r()}})}})},In=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=tn(),a=o.firstChild;return ue(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),A((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=he(o,l,r._v$13),n!==r._v$14&&ue(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=Jl();return A((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=qt.sanitize(o);return r._v$15=he(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=Jl();return be(e,Q(On,{content:o})),A((r=>he(e,{...t,padding:"8px 12px"},r))),e}},kn=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=an(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),be(t,(()=>e.annotation.fileName)),be(o,Q(wn,{}),null),A((()=>ue(o,"title","Download "+e.annotation.fileName))),o}},Dn=e=>{const[r,o]=$("rendered"),[t,a]=$(null),l=()=>e.node?.data?Hl(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=xn()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,be(o,Q(oe,{get when(){return r.output?.availableTools?.length},get children(){var o=gn(),t=o.firstChild,a=t.nextSibling;return he(o,i),he(t,d),he(a,s),be(a,Q(re,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return Q(En,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Q(Gn,{name:i,get apiHost(){return e.apiHost},size:22}),(be(r=ln(),(()=>o.toolNode?.label||o.name)),r),Q(oe,{when:t,get children(){const e=pn();return A((r=>he(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return Q(Nn,{data:o})}})}})),o}}),t),he(t,i),he(m,d),he(g,s),be(g,Q(oe,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return Q(Nn,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),be(o,Q(re,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=ln();return be(a,o),A((o=>he(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=Jl()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),be(i,(()=>n(l.background,l.color,t)),null),be(i,Q(oe,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),be(i,Q(oe,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0Q(En,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Q(_n,{}),(be(r=ln(),(()=>e.function?.name||e.name||"Tool Call")),r),M((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return Q(Nn,{data:e})}})})}}),null),be(i,Q(oe,{get when(){return"tool"===t&&r.name},get children(){var e=nn(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),be(e,Q(_n,{}),o),o.style.setProperty("font-size","0.85rem"),be(o,(()=>r.name)),be(e,Q(oe,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=Jl();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),be(t,Q(re,{get each(){return r.additional_kwargs.usedTools},children:r=>Q(oe,{when:r,get children(){const t=dn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),be(t,Q(Gn,{get name(){return Cn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>r.tool),null),A((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),be(o,Q(re,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Q(In,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),be(i,Q(oe,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=tn(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),ue(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A((()=>ue(r,"alt","file-upload-"+o()))),e}}})),o}}),null),be(i,Q(oe,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=Jl();return e.style.setProperty("margin-top","4px"),be(e,Q(On,{get content(){return r.content}})),e}}),null),be(i,Q(oe,{get when(){return!r.content},get children(){var e=on();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Q(kn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),he(c,i),he(u,d),he(x,s),be(x,Q(oe,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Q(oe,{get when(){return r.output?.conditions},get fallback(){return Q(Nn,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>Q(re,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=sn(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),be(a,(()=>{const o=M((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),be(o,Q(oe,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=Jl();return r.style.setProperty("margin-top","4px"),be(r,Q(Nn,{data:e})),r}}),null),A((e=>he(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[Q(oe,{get when(){return r.output?.usedTools?.length},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.usedTools},children:o=>Q(oe,{when:o,get children(){const t=dn(),l=t.firstChild;return t.$$click=()=>a(o),be(t,Q(Gn,{get name(){return Cn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>o.tool),null),A((e=>he(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),Q(oe,{get when(){return r.output?.artifacts?.length},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.artifacts},children:(r,o)=>Q(In,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Q(oe,{get when(){return r.output?.content},get fallback(){return Q(oe,{get when(){return r.output},get children(){var e=on();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Q(On,{get content(){return r.output.content}})}}),Q(oe,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.output.fileAnnotations},children:r=>Q(kn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),be(o,Q(oe,{get when(){return r.error},get children(){const e=cn(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return he(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),be(a,(()=>{const e=M((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=he(o,r,e._v$20),e._v$21=he(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),be(o,Q(oe,{get when(){return M((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),be(x,Q(oe,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[Q(oe,{get when(){return e().time},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),be(r,Q(Pn,{}),o),be(r,(()=>e().time),null),r}}),Q(oe,{get when(){return e().tokens},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),be(r,Q(Tn,{}),o),be(r,(()=>e().tokens),null),r}}),Q(oe,{get when(){return e().cost},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),be(r,Q(Mn,{}),o),be(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=Sn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),A((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=Jl()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),be(c,Q(oe,{get when(){return"rendered"===r()},get fallback(){{const e=en();return he(e,Bn),A((()=>e.innerHTML=yn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),Q(oe,{get when(){return t()},get children(){return[(()=>{const r=fn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),be(i,Q(Gn,{get name(){return Cn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),be(d,(()=>t()?.tool||"Tool Detail")),be(i,Q(oe,{get when(){return t()?.error},get children(){var e=bn();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),be(s,Q($n,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),be(m,Q(Nn,{get data(){return t()}})),A((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=Jl()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},Rn=(ce(["click"]),ge('')),Fn=ge(''),Xn=ge(''),Hn=ge(""),Un=ge("
"),Vn=ge('
'),Wn=ge("
'),Ki=ge("
");const Zi=e=>{let r;const[o]=ee(e,["onOpen","onClose","isOpen","value"]),[t,a]=(_((()=>{r&&(r.innerHTML=function(e){return(e=(e="string"!=typeof e?JSON.stringify(e,void 0,2):e).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}))}(JSON.stringify(e?.value,void 0,2)))})),$(o.isOpen??!1)),l=(P((()=>{Oe(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Q(oe,{get when(){return t()},get children(){return[(be(a=Vi(),Ne),a),(a=Wi(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),be(o,Ne),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),be(t,(()=>{const o=M((()=>!!e.value));return()=>{return o()&&(t=(e=Ki()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?Se(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},zi=ge('
');function gn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const cn=()=>Bl(),un=()=>Nl(),xn=()=>Ol(),pn=()=>Il(),hn=()=>kl(),vn=()=>Dl(),Sn=()=>Rl(),bn=e=>{{const r=Fl();return f((o=>{var t=e.size,a=e.size;return t!==o._v$&&ae(r,"width",o._v$=t),a!==o._v$2&&ae(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},yn=e=>{const r=e.size??24,o=bl(e.name);if(o){const t=Xl();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),me(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),f((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=y(!1);{const a=Xl();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),me(a,F(Z,{get when(){return!o()},get fallback(){return F(bn,{get size(){return Math.round(.6*r)}})},get children(){const r=Hl();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),f((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&ae(r,"src",o._v$5=t),a!==o._v$6&&ae(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),f((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=Xl();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),me(o,F(bn,{get size(){return Math.round(.6*r)}})),f((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},fn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,$n=e=>{const[r,o]=y(e.defaultOpen??!1),t=()=>o(!r());{const o=Ul(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),me(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),me(n,F(un,{})),me(o,F(Z,{get when(){return r()},get children(){var r=Xl();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),me(r,(()=>e.children)),r}}),null),f((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&ae(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},An={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Pn=e=>{{const r=Vl();return ie(r,An),f((()=>r.innerHTML=gn(JSON.stringify(e.data,null,2)))),r}},Mn=e=>{Oo.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return F(Z,{get when(){return r()},get fallback(){return F(Z,{get when(){return e.content},get fallback(){return(e=Kl()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=Wl();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),f((()=>r.innerHTML=Oo.parse(e.content))),r}})},get children(){return F(Pn,{get data(){return r()}})}})},Tn=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=Zl(),a=o.firstChild;return ae(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),f((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=ie(o,l,r._v$13),n!==r._v$14&&ae(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=Xl();return f((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=Vt.sanitize(o);return r._v$15=ie(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=Xl();return me(e,F(Mn,{content:o})),f((r=>ie(e,{...t,padding:"8px 12px"},r))),e}},_n=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=zl(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),me(t,(()=>e.annotation.fileName)),me(o,F(Sn,{}),null),f((()=>ae(o,"title","Download "+e.annotation.fileName))),o}},wn=e=>{const[r,o]=y("rendered"),[t,a]=y(null),l=()=>e.node?.data?El(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=tn()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,me(o,F(Z,{get when(){return r.output?.availableTools?.length},get children(){var o=en(),t=o.firstChild,a=t.nextSibling;return ie(o,i),ie(t,d),ie(a,s),me(a,F(K,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return F($n,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[F(yn,{name:i,get apiHost(){return e.apiHost},size:22}),(me(r=Ql(),(()=>o.toolNode?.label||o.name)),r),F(Z,{when:t,get children(){const e=an();return f((r=>ie(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return F(Pn,{data:o})}})}})),o}}),t),ie(t,i),ie(m,d),ie(g,s),me(g,F(Z,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return F(Pn,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=Xl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),me(o,F(K,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=Ql();return me(a,o),f((o=>ie(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=Xl()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),me(i,(()=>n(l.background,l.color,t)),null),me(i,F(Z,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),me(i,F(Z,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0F($n,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[F(vn,{}),(me(r=Ql(),(()=>e.function?.name||e.name||"Tool Call")),r),A((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return F(Pn,{data:e})}})})}}),null),me(i,F(Z,{get when(){return"tool"===t&&r.name},get children(){var e=Yl(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),me(e,F(vn,{}),o),o.style.setProperty("font-size","0.85rem"),me(o,(()=>r.name)),me(e,F(Z,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=Xl();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),me(t,F(K,{get each(){return r.additional_kwargs.usedTools},children:r=>F(Z,{when:r,get children(){const t=Jl(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),me(t,F(yn,{get name(){return fn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),me(t,(()=>r.tool),null),f((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=Xl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),me(o,F(K,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>F(Tn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),me(i,F(Z,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=Zl(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),ae(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),f((()=>ae(r,"alt","file-upload-"+o()))),e}}})),o}}),null),me(i,F(Z,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=Xl();return e.style.setProperty("margin-top","4px"),me(e,F(Mn,{get content(){return r.content}})),e}}),null),me(i,F(Z,{get when(){return!r.content},get children(){var e=Kl();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=Xl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),me(o,F(K,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>F(_n,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),ie(c,i),ie(u,d),ie(x,s),me(x,F(Z,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return F(Z,{get when(){return r.output?.conditions},get fallback(){return F(Pn,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>F(K,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=jl(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),me(a,(()=>{const o=A((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),me(o,F(Z,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=Xl();return r.style.setProperty("margin-top","4px"),me(r,F(Pn,{data:e})),r}}),null),f((e=>ie(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[F(Z,{get when(){return r.output?.usedTools?.length},get children(){var o=Xl();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),me(o,F(K,{get each(){return r.output.usedTools},children:o=>F(Z,{when:o,get children(){const t=Jl(),l=t.firstChild;return t.$$click=()=>a(o),me(t,F(yn,{get name(){return fn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),me(t,(()=>o.tool),null),f((e=>ie(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),F(Z,{get when(){return r.output?.artifacts?.length},get children(){var o=Xl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),me(o,F(K,{get each(){return r.output.artifacts},children:(r,o)=>F(Tn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),F(Z,{get when(){return r.output?.content},get fallback(){return F(Z,{get when(){return r.output},get children(){var e=Kl();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return F(Mn,{get content(){return r.output.content}})}}),F(Z,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=Xl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),me(o,F(K,{get each(){return r.output.fileAnnotations},children:r=>F(_n,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),me(o,F(Z,{get when(){return r.error},get children(){const e=rn(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return ie(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),me(a,(()=>{const e=A((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),f((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=ie(o,r,e._v$20),e._v$21=ie(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),me(o,F(Z,{get when(){return A((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),me(x,F(Z,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[F(Z,{get when(){return e().time},get children(){var r=Jl(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),me(r,F(xn,{}),o),me(r,(()=>e().time),null),r}}),F(Z,{get when(){return e().tokens},get children(){var r=Jl(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),me(r,F(hn,{}),o),me(r,(()=>e().tokens),null),r}}),F(Z,{get when(){return e().cost},get children(){var r=Jl(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),me(r,F(pn,{}),o),me(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=dn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),f((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=Xl()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),me(c,F(Z,{get when(){return"rendered"===r()},get fallback(){{const e=Vl();return ie(e,An),f((()=>e.innerHTML=gn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),F(Z,{get when(){return t()},get children(){return[(()=>{const r=mn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),me(i,F(yn,{get name(){return fn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),me(d,(()=>t()?.tool||"Tool Detail")),me(i,F(Z,{get when(){return t()?.error},get children(){var e=sn();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),me(s,F(cn,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),me(m,F(Pn,{get data(){return t()}})),f((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=Xl()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},Ln=(te(["click"]),oe('')),Gn=oe(''),Cn=oe(''),En=oe(""),Bn=oe("
"),Nn=oe('
'),On=oe("
'),Ii=oe("
"),ki=e=>{let r;const[o]=W(e,["onOpen","onClose","isOpen","value"]),[t,a]=(M((()=>{var o;r&&(r.innerHTML=(o=(o="string"!=typeof(o=JSON.stringify(e?.value,void 0,2))?JSON.stringify(o,void 0,2):o).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))})),y(o.isOpen??!1)),l=($((()=>{Pe(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return F(Z,{get when(){return t()},get children(){return[(me(a=Ni(),Ae),a),(a=Oi(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),me(o,Ae),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),me(t,(()=>{const o=A((()=>!!e.value));return()=>{return o()&&(t=(e=Ii()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?se(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},Di=oe('