@octanejs/streamdown 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/client/chunks/{chunk-HOETYBTH.js → chunk-HTKGPGBF.js} +394 -305
  2. package/dist/client/chunks/{highlighted-body-X5FGOOXL.js → highlighted-body-PO42OPN2.js} +9 -9
  3. package/dist/{server/chunks/mermaid-SICAYVAP.js → client/chunks/mermaid-2J5JVDRZ.js} +1 -1
  4. package/dist/client/index.js +1 -1
  5. package/dist/server/chunks/{chunk-55X6YY2C.js → chunk-SZ5CVE3Y.js} +783 -411
  6. package/dist/server/chunks/{highlighted-body-NLELYOBH.js → highlighted-body-7UTJYNOJ.js} +18 -9
  7. package/dist/{client/chunks/mermaid-RM4TPAM4.js → server/chunks/mermaid-EGA7TDDR.js} +1 -1
  8. package/dist/server/index.js +1 -1
  9. package/dist/types/index.d.ts +8 -2
  10. package/dist/types/lib/code-block/body.d.ts +4 -1
  11. package/dist/types/lib/code-block/container.d.ts +1 -1
  12. package/dist/types/lib/code-block/copy-button.d.ts +1 -1
  13. package/dist/types/lib/code-block/download-button.d.ts +1 -1
  14. package/dist/types/lib/code-block/header.d.ts +1 -1
  15. package/dist/types/lib/code-block/highlighted-body.d.ts +1 -1
  16. package/dist/types/lib/code-block/index.d.ts +1 -1
  17. package/dist/types/lib/code-block/skeleton.d.ts +1 -1
  18. package/dist/types/lib/icon-context.d.ts +1 -1
  19. package/dist/types/lib/icons.d.ts +10 -10
  20. package/dist/types/lib/image.d.ts +1 -1
  21. package/dist/types/lib/link-modal.d.ts +1 -1
  22. package/dist/types/lib/mermaid/download-button.d.ts +1 -1
  23. package/dist/types/lib/mermaid/fullscreen-button.d.ts +1 -1
  24. package/dist/types/lib/mermaid/index.d.ts +1 -1
  25. package/dist/types/lib/mermaid/pan-zoom.d.ts +1 -1
  26. package/dist/types/lib/table/copy-dropdown.d.ts +1 -1
  27. package/dist/types/lib/table/download-dropdown.d.ts +2 -2
  28. package/dist/types/lib/table/fullscreen-button.d.ts +1 -1
  29. package/dist/types/lib/table/index.d.ts +1 -1
  30. package/package.json +7 -7
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/lib/mermaid/index.tsrx
4
4
  import {
5
- createElement as _$createElement18,
5
+ createElement as _$createElement7,
6
6
  createScopedElement as _$createScopedElement19,
7
7
  createScopedValue as _$createScopedValue21,
8
8
  hookSlots as _$hookSlots22,
@@ -13,6 +13,7 @@ import {
13
13
  useState as useState13,
14
14
  withSlot as _$withSlot19
15
15
  } from "octane";
16
+ import { createElementFromConfig as _$createElementFromConfig16 } from "octane/internal/client";
16
17
 
17
18
  // src/hooks/use-deferred-render.tsrx
18
19
  import {
@@ -178,7 +179,7 @@ function useDeferredRender(options = {}) {
178
179
  import {
179
180
  createContext as createContext7,
180
181
  createElement as createElement3,
181
- createElement as _$createElement16,
182
+ createElement as _$createElement6,
182
183
  createScopedElement as _$createScopedElement17,
183
184
  createScopedValue as _$createScopedValue19,
184
185
  hookSlots as _$hookSlots20,
@@ -192,6 +193,7 @@ import {
192
193
  useTransition
193
194
  } from "octane";
194
195
  import {
196
+ createElementFromConfig as _$createElementFromConfig14,
195
197
  memoPublish as _$memoPublish7,
196
198
  memoSlot as _$memoSlot7,
197
199
  memoTake1 as _$memoTake15,
@@ -364,7 +366,7 @@ import {
364
366
  Fragment as _$Fragment4,
365
367
  Suspense as Suspense2,
366
368
  cloneElement,
367
- createElement as _$createElement15,
369
+ createElement as _$createElement5,
368
370
  createScopedElement as _$createScopedElement16,
369
371
  createScopedValue as _$createScopedValue18,
370
372
  hookSlots as _$hookSlots19,
@@ -378,6 +380,7 @@ import {
378
380
  withSlot as _$withSlot17
379
381
  } from "octane";
380
382
  import {
383
+ createElementFromConfig as _$createElementFromConfig13,
381
384
  memoPublish as _$memoPublish6,
382
385
  memoSlot as _$memoSlot6,
383
386
  memoTake0 as _$memoTake02,
@@ -388,7 +391,6 @@ import {
388
391
  // src/lib/code-block/index.tsrx
389
392
  import {
390
393
  Suspense,
391
- createElement as _$createElement2,
392
394
  createScopedElement as _$createScopedElement3,
393
395
  createScopedValue as _$createScopedValue4,
394
396
  hookSlots as _$hookSlots5,
@@ -398,6 +400,7 @@ import {
398
400
  withSlot as _$withSlot4
399
401
  } from "octane";
400
402
  import {
403
+ createElementFromConfig as _$createElementFromConfig,
401
404
  memoPublish as _$memoPublish3,
402
405
  memoSlot as _$memoSlot3,
403
406
  memoTake1 as _$memoTake12
@@ -481,7 +484,7 @@ var CodeBlockBody = memo(
481
484
  ...rest
482
485
  }) => {
483
486
  let __hks, __hkd0, __hkd1, __hke, __hkr, __hks$, __hkd0$, __hkd1$, __hkd2, __hkv, __hke$;
484
- const cn2 = _$withSlot(_h$02, useCn, _h$02);
487
+ const cn2 = _$withSlot(_h$02, useCn);
485
488
  const lineClasses = (__hkd0 = cn2, __hkd1 = lineNumbers, __hks = _$memoSlot2(_h$12, "useMemo"), __hke = _$memoTake2(__hks, __hkd0, __hkd1), __hke === null ? _$memoPublish2(__hks, cn2("block", lineNumbers && LINE_NUMBER_CLASSES_BASE), __hkd0, __hkd1) : __hke.value);
486
489
  {
487
490
  __hkd0$ = result.bg;
@@ -582,7 +585,7 @@ import {
582
585
  var _hs$3 = /* @__PURE__ */ _$hookSlots3(1);
583
586
  var _h$03 = /* @__PURE__ */ Symbol(_hs$3);
584
587
  var CodeBlockContainer = ({ className, language, style, isIncomplete, ...props }) => {
585
- const cn2 = _$withSlot2(_h$03, useCn, _h$03);
588
+ const cn2 = _$withSlot2(_h$03, useCn);
586
589
  return _$createScopedValue2(() => _$createElement("div", {
587
590
  className: cn2("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", className),
588
591
  "data-incomplete": isIncomplete || void 0,
@@ -612,7 +615,7 @@ import {
612
615
  var _hs$4 = /* @__PURE__ */ _$hookSlots4(1);
613
616
  var _h$04 = /* @__PURE__ */ Symbol(_hs$4);
614
617
  var CodeBlockHeader = ({ language }) => {
615
- const cn2 = _$withSlot3(_h$04, useCn, _h$04);
618
+ const cn2 = _$withSlot3(_h$04, useCn);
616
619
  return _$createScopedValue3(() => _$createScopedElement2(
617
620
  "div",
618
621
  {
@@ -636,7 +639,7 @@ var trimTrailingNewlines = (str) => {
636
639
  }
637
640
  return str.slice(0, end);
638
641
  };
639
- var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-X5FGOOXL.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
642
+ var HighlightedCodeBlockBody = /* @__PURE__ */ lazy(() => import("./highlighted-body-PO42OPN2.js").then((mod) => ({ default: mod.HighlightedCodeBlockBody })));
640
643
  var CodeBlock = ({
641
644
  code,
642
645
  language,
@@ -648,7 +651,7 @@ var CodeBlock = ({
648
651
  ...rest
649
652
  }) => {
650
653
  let __hks, __hkd0, __hke, __hks$, __hkd0$, __hke$;
651
- const cn2 = _$withSlot4(_h$05, useCn, _h$05);
654
+ const cn2 = _$withSlot4(_h$05, useCn);
652
655
  const trimmedCode = (__hkd0 = code, __hks = _$memoSlot3(_h$13, "useMemo"), __hke = _$memoTake12(__hks, __hkd0), __hke === null ? _$memoPublish3(__hks, trimTrailingNewlines(code), __hkd0) : __hke.value);
653
656
  const raw = (__hkd0$ = trimmedCode, __hks$ = _$memoSlot3(_h$23, "useMemo"), __hke$ = _$memoTake12(__hks$, __hkd0$), __hke$ === null ? _$memoPublish3(
654
657
  __hks$,
@@ -667,50 +670,61 @@ var CodeBlock = ({
667
670
  },
668
671
  __hkd0$
669
672
  ) : __hke$.value);
670
- return _$createScopedValue4(() => _$createScopedElement3(CodeBlockContext.Provider, { value: { code } }, () => _$createScopedValue4(() => _$createScopedElement3(CodeBlockContainer, { isIncomplete, language }, () => _$positionalChildren([
671
- _$createScopedValue4(() => _$createElement2(CodeBlockHeader, { language })),
672
- children ? _$createScopedValue4(() => _$createScopedElement3(
673
- "div",
674
- {
675
- className: cn2("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end")
676
- },
677
- () => _$createScopedValue4(() => _$createScopedElement3(
678
- "div",
679
- {
680
- className: cn2("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
681
- "data-streamdown": "code-block-actions"
682
- },
683
- () => children
684
- ))
685
- )) : null,
686
- _$createScopedValue4(() => _$createScopedElement3(
687
- Suspense,
688
- {
689
- fallback: _$createScopedValue4(() => _$createElement2(CodeBlockBody, {
690
- className,
691
- language,
692
- lineNumbers,
693
- result: raw,
694
- startLine,
695
- ...rest
696
- }))
697
- },
698
- () => _$createScopedValue4(() => _$createElement2(HighlightedCodeBlockBody, {
699
- className,
700
- code: trimmedCode,
701
- language,
702
- lineNumbers,
703
- raw,
704
- startLine,
705
- ...rest
706
- }))
707
- ))
708
- ])))));
673
+ return _$createScopedValue4(() => _$createScopedElement3(
674
+ CodeBlockContext,
675
+ { value: { code } },
676
+ () => _$createScopedValue4(() => _$createScopedElement3(
677
+ CodeBlockContainer,
678
+ { isIncomplete, language },
679
+ () => _$positionalChildren([
680
+ _$createScopedValue4(() => _$createElementFromConfig("c:57b3a094", CodeBlockHeader, { language })),
681
+ children ? _$createScopedValue4(() => _$createScopedElement3(
682
+ "div",
683
+ {
684
+ className: cn2("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end")
685
+ },
686
+ () => _$createScopedValue4(() => _$createScopedElement3(
687
+ "div",
688
+ {
689
+ className: cn2("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
690
+ "data-streamdown": "code-block-actions"
691
+ },
692
+ () => children
693
+ ))
694
+ )) : null,
695
+ _$createScopedValue4(() => _$createScopedElement3(
696
+ Suspense,
697
+ {
698
+ fallback: _$createScopedValue4(() => _$createElementFromConfig("c:1daece3e", CodeBlockBody, {
699
+ className,
700
+ language,
701
+ lineNumbers,
702
+ result: raw,
703
+ startLine,
704
+ ...rest
705
+ }))
706
+ },
707
+ () => _$createScopedValue4(() => _$createElementFromConfig("c:a038f091", HighlightedCodeBlockBody, {
708
+ className,
709
+ code: trimmedCode,
710
+ language,
711
+ lineNumbers,
712
+ raw,
713
+ startLine,
714
+ ...rest
715
+ })),
716
+ "c:12e1bcaf"
717
+ ))
718
+ ]),
719
+ "c:dbefdff7"
720
+ )),
721
+ "c:292e16ce"
722
+ ));
709
723
  };
710
724
 
711
725
  // src/lib/code-block/copy-button.tsrx
726
+ import { createElementFromConfig as _$createElementFromConfig2 } from "octane/internal/client";
712
727
  import {
713
- createElement as _$createElement4,
714
728
  createScopedElement as _$createScopedElement5,
715
729
  createScopedValue as _$createScopedValue7,
716
730
  hookSlots as _$hookSlots7,
@@ -733,10 +747,10 @@ import {
733
747
 
734
748
  // src/lib/icons.tsrx
735
749
  import {
736
- createElement as _$createElement3,
750
+ createElement as _$createElement2,
737
751
  createScopedValue as _$createScopedValue5
738
752
  } from "octane";
739
- var CheckIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
753
+ var CheckIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
740
754
  "svg",
741
755
  {
742
756
  color: "currentColor",
@@ -746,14 +760,14 @@ var CheckIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$create
746
760
  width: size,
747
761
  ...props
748
762
  },
749
- _$createElement3("path", {
763
+ _$createElement2("path", {
750
764
  clipRule: "evenodd",
751
765
  d: "M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",
752
766
  fill: "currentColor",
753
767
  fillRule: "evenodd"
754
768
  })
755
769
  ));
756
- var CopyIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
770
+ var CopyIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
757
771
  "svg",
758
772
  {
759
773
  color: "currentColor",
@@ -763,14 +777,14 @@ var CopyIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createE
763
777
  width: size,
764
778
  ...props
765
779
  },
766
- _$createElement3("path", {
780
+ _$createElement2("path", {
767
781
  clipRule: "evenodd",
768
782
  d: "M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",
769
783
  fill: "currentColor",
770
784
  fillRule: "evenodd"
771
785
  })
772
786
  ));
773
- var DownloadIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
787
+ var DownloadIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
774
788
  "svg",
775
789
  {
776
790
  color: "currentColor",
@@ -780,14 +794,14 @@ var DownloadIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$cre
780
794
  width: size,
781
795
  ...props
782
796
  },
783
- _$createElement3("path", {
797
+ _$createElement2("path", {
784
798
  clipRule: "evenodd",
785
799
  d: "M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",
786
800
  fill: "currentColor",
787
801
  fillRule: "evenodd"
788
802
  })
789
803
  ));
790
- var Loader2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
804
+ var Loader2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
791
805
  "svg",
792
806
  {
793
807
  color: "currentColor",
@@ -797,63 +811,63 @@ var Loader2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$crea
797
811
  width: size,
798
812
  ...props
799
813
  },
800
- _$createElement3("path", { d: "M8 0V4", stroke: "currentColor", strokeWidth: "1.5" }),
801
- _$createElement3("path", {
814
+ _$createElement2("path", { d: "M8 0V4", stroke: "currentColor", strokeWidth: "1.5" }),
815
+ _$createElement2("path", {
802
816
  d: "M8 16V12",
803
817
  opacity: "0.5",
804
818
  stroke: "currentColor",
805
819
  strokeWidth: "1.5"
806
820
  }),
807
- _$createElement3("path", {
821
+ _$createElement2("path", {
808
822
  d: "M3.29773 1.52783L5.64887 4.7639",
809
823
  opacity: "0.9",
810
824
  stroke: "currentColor",
811
825
  strokeWidth: "1.5"
812
826
  }),
813
- _$createElement3("path", {
827
+ _$createElement2("path", {
814
828
  d: "M12.7023 1.52783L10.3511 4.7639",
815
829
  opacity: "0.1",
816
830
  stroke: "currentColor",
817
831
  strokeWidth: "1.5"
818
832
  }),
819
- _$createElement3("path", {
833
+ _$createElement2("path", {
820
834
  d: "M12.7023 14.472L10.3511 11.236",
821
835
  opacity: "0.4",
822
836
  stroke: "currentColor",
823
837
  strokeWidth: "1.5"
824
838
  }),
825
- _$createElement3("path", {
839
+ _$createElement2("path", {
826
840
  d: "M3.29773 14.472L5.64887 11.236",
827
841
  opacity: "0.6",
828
842
  stroke: "currentColor",
829
843
  strokeWidth: "1.5"
830
844
  }),
831
- _$createElement3("path", {
845
+ _$createElement2("path", {
832
846
  d: "M15.6085 5.52783L11.8043 6.7639",
833
847
  opacity: "0.2",
834
848
  stroke: "currentColor",
835
849
  strokeWidth: "1.5"
836
850
  }),
837
- _$createElement3("path", {
851
+ _$createElement2("path", {
838
852
  d: "M0.391602 10.472L4.19583 9.23598",
839
853
  opacity: "0.7",
840
854
  stroke: "currentColor",
841
855
  strokeWidth: "1.5"
842
856
  }),
843
- _$createElement3("path", {
857
+ _$createElement2("path", {
844
858
  d: "M15.6085 10.4722L11.8043 9.2361",
845
859
  opacity: "0.3",
846
860
  stroke: "currentColor",
847
861
  strokeWidth: "1.5"
848
862
  }),
849
- _$createElement3("path", {
863
+ _$createElement2("path", {
850
864
  d: "M0.391602 5.52783L4.19583 6.7639",
851
865
  opacity: "0.8",
852
866
  stroke: "currentColor",
853
867
  strokeWidth: "1.5"
854
868
  })
855
869
  ));
856
- var Maximize2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
870
+ var Maximize2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
857
871
  "svg",
858
872
  {
859
873
  color: "currentColor",
@@ -863,14 +877,14 @@ var Maximize2Icon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$cr
863
877
  width: size,
864
878
  ...props
865
879
  },
866
- _$createElement3("path", {
880
+ _$createElement2("path", {
867
881
  clipRule: "evenodd",
868
882
  d: "M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",
869
883
  fill: "currentColor",
870
884
  fillRule: "evenodd"
871
885
  })
872
886
  ));
873
- var RotateCcwIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
887
+ var RotateCcwIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
874
888
  "svg",
875
889
  {
876
890
  color: "currentColor",
@@ -880,14 +894,14 @@ var RotateCcwIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$cr
880
894
  width: size,
881
895
  ...props
882
896
  },
883
- _$createElement3("path", {
897
+ _$createElement2("path", {
884
898
  clipRule: "evenodd",
885
899
  d: "M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",
886
900
  fill: "currentColor",
887
901
  fillRule: "evenodd"
888
902
  })
889
903
  ));
890
- var XIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
904
+ var XIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
891
905
  "svg",
892
906
  {
893
907
  color: "currentColor",
@@ -897,14 +911,14 @@ var XIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElem
897
911
  width: size,
898
912
  ...props
899
913
  },
900
- _$createElement3("path", {
914
+ _$createElement2("path", {
901
915
  clipRule: "evenodd",
902
916
  d: "M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",
903
917
  fill: "currentColor",
904
918
  fillRule: "evenodd"
905
919
  })
906
920
  ));
907
- var ExternalLinkIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
921
+ var ExternalLinkIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
908
922
  "svg",
909
923
  {
910
924
  color: "currentColor",
@@ -914,14 +928,14 @@ var ExternalLinkIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _
914
928
  width: size,
915
929
  ...props
916
930
  },
917
- _$createElement3("path", {
931
+ _$createElement2("path", {
918
932
  clipRule: "evenodd",
919
933
  d: "M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",
920
934
  fill: "currentColor",
921
935
  fillRule: "evenodd"
922
936
  })
923
937
  ));
924
- var ZoomInIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
938
+ var ZoomInIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
925
939
  "svg",
926
940
  {
927
941
  color: "currentColor",
@@ -931,14 +945,14 @@ var ZoomInIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$creat
931
945
  width: size,
932
946
  ...props
933
947
  },
934
- _$createElement3("path", {
948
+ _$createElement2("path", {
935
949
  clipRule: "evenodd",
936
950
  d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",
937
951
  fill: "currentColor",
938
952
  fillRule: "evenodd"
939
953
  })
940
954
  ));
941
- var ZoomOutIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement3(
955
+ var ZoomOutIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$createElement2(
942
956
  "svg",
943
957
  {
944
958
  color: "currentColor",
@@ -948,7 +962,7 @@ var ZoomOutIcon = ({ size = 16, ...props }) => _$createScopedValue5(() => _$crea
948
962
  width: size,
949
963
  ...props
950
964
  },
951
- _$createElement3("path", {
965
+ _$createElement2("path", {
952
966
  clipRule: "evenodd",
953
967
  d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",
954
968
  fill: "currentColor",
@@ -995,7 +1009,7 @@ var IconProvider = ({ icons, children }) => {
995
1009
  prevValueRef.current = icons ? { ...defaultIcons, ...icons } : defaultIcons;
996
1010
  }
997
1011
  const value = prevValueRef.current;
998
- return _$createScopedValue6(() => _$createScopedElement4(IconContext.Provider, { value }, () => children));
1012
+ return _$createScopedValue6(() => _$createScopedElement4(IconContext, { value }, () => children, "c:5201f800"));
999
1013
  };
1000
1014
  var useIcons = () => useContext4(IconContext);
1001
1015
 
@@ -1053,12 +1067,12 @@ var CodeBlockCopyButton = ({
1053
1067
  code: propCode,
1054
1068
  ...props
1055
1069
  }) => {
1056
- const cn2 = _$withSlot5(_h$07, useCn, _h$07);
1070
+ const cn2 = _$withSlot5(_h$07, useCn);
1057
1071
  const [isCopied, setIsCopied] = useState2(false, _h$15);
1058
1072
  const timeoutRef = useRef3(0, _h$24);
1059
- const { code: contextCode } = _$withSlot5(_h$32, useCodeBlockContext, _h$32);
1073
+ const { code: contextCode } = _$withSlot5(_h$32, useCodeBlockContext);
1060
1074
  const { isAnimating } = useContext6(StreamdownContext);
1061
- const t = _$withSlot5(_h$42, useTranslations, _h$42);
1075
+ const t = _$withSlot5(_h$42, useTranslations);
1062
1076
  const code = propCode ?? contextCode;
1063
1077
  const copyToClipboard = async () => {
1064
1078
  if (typeof window === "undefined" || !navigator?.clipboard?.writeText) {
@@ -1083,7 +1097,7 @@ var CodeBlockCopyButton = ({
1083
1097
  [],
1084
1098
  _h$52
1085
1099
  );
1086
- const icons = _$withSlot5(_h$62, useIcons, _h$62);
1100
+ const icons = _$withSlot5(_h$62, useIcons);
1087
1101
  const Icon = isCopied ? icons.CheckIcon : icons.CopyIcon;
1088
1102
  return _$createScopedValue7(() => _$createScopedElement5(
1089
1103
  "button",
@@ -1096,13 +1110,13 @@ var CodeBlockCopyButton = ({
1096
1110
  type: "button",
1097
1111
  ...props
1098
1112
  },
1099
- () => children ?? _$createElement4(Icon, { size: 14 })
1113
+ () => children ?? _$createElementFromConfig2("c:c4f382a3", Icon, { size: 14 })
1100
1114
  ));
1101
1115
  };
1102
1116
 
1103
1117
  // src/lib/code-block/download-button.tsrx
1118
+ import { createElementFromConfig as _$createElementFromConfig3 } from "octane/internal/client";
1104
1119
  import {
1105
- createElement as _$createElement5,
1106
1120
  createScopedElement as _$createScopedElement6,
1107
1121
  createScopedValue as _$createScopedValue8,
1108
1122
  hookSlots as _$hookSlots8,
@@ -1431,11 +1445,11 @@ var CodeBlockDownloadButton = ({
1431
1445
  code: propCode,
1432
1446
  ...props
1433
1447
  }) => {
1434
- const cn2 = _$withSlot6(_h$08, useCn, _h$08);
1435
- const { code: contextCode } = _$withSlot6(_h$16, useCodeBlockContext, _h$16);
1448
+ const cn2 = _$withSlot6(_h$08, useCn);
1449
+ const { code: contextCode } = _$withSlot6(_h$16, useCodeBlockContext);
1436
1450
  const { isAnimating } = useContext7(StreamdownContext);
1437
- const t = _$withSlot6(_h$25, useTranslations, _h$25);
1438
- const icons = _$withSlot6(_h$33, useIcons, _h$33);
1451
+ const t = _$withSlot6(_h$25, useTranslations);
1452
+ const icons = _$withSlot6(_h$33, useIcons);
1439
1453
  const code = propCode ?? contextCode;
1440
1454
  const extension = language && language in languageExtensionMap ? languageExtensionMap[language] : "txt";
1441
1455
  const filename = `file.${extension}`;
@@ -1459,33 +1473,34 @@ var CodeBlockDownloadButton = ({
1459
1473
  type: "button",
1460
1474
  ...props
1461
1475
  },
1462
- () => children ?? _$createScopedValue8(() => _$createElement5(icons.DownloadIcon, { size: 14 }))
1476
+ () => children ?? _$createScopedValue8(() => _$createElementFromConfig3("c:695e73ca", icons.DownloadIcon, { size: 14 }))
1463
1477
  ));
1464
1478
  };
1465
1479
 
1466
1480
  // src/lib/code-block/skeleton.tsrx
1467
1481
  import {
1468
- createElement as _$createElement6,
1482
+ createElement as _$createElement3,
1469
1483
  createScopedElement as _$createScopedElement7,
1470
1484
  createScopedValue as _$createScopedValue9,
1471
1485
  hookSlots as _$hookSlots9,
1472
1486
  positionalChildren as _$positionalChildren2,
1473
1487
  withSlot as _$withSlot7
1474
1488
  } from "octane";
1489
+ import { createElementFromConfig as _$createElementFromConfig4 } from "octane/internal/client";
1475
1490
  var _hs$9 = /* @__PURE__ */ _$hookSlots9(2);
1476
1491
  var _h$09 = /* @__PURE__ */ Symbol(_hs$9);
1477
1492
  var _h$17 = /* @__PURE__ */ Symbol(_hs$9 + 1);
1478
1493
  var CodeBlockSkeleton = () => {
1479
- const { Loader2Icon: Loader2Icon2 } = _$withSlot7(_h$09, useIcons, _h$09);
1480
- const cn2 = _$withSlot7(_h$17, useCn, _h$17);
1494
+ const { Loader2Icon: Loader2Icon2 } = _$withSlot7(_h$09, useIcons);
1495
+ const cn2 = _$withSlot7(_h$17, useCn);
1481
1496
  return _$createScopedValue9(() => _$createScopedElement7(
1482
1497
  "div",
1483
1498
  {
1484
1499
  className: cn2("w-full divide-y divide-border overflow-hidden rounded-xl border border-border")
1485
1500
  },
1486
1501
  () => _$positionalChildren2([
1487
- _$createScopedValue9(() => _$createElement6("div", { className: cn2("h-[46px] w-full bg-muted/80") })),
1488
- _$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElement6(Loader2Icon2, { className: cn2("size-4 animate-spin") }))))
1502
+ _$createScopedValue9(() => _$createElement3("div", { className: cn2("h-[46px] w-full bg-muted/80") })),
1503
+ _$createScopedValue9(() => _$createScopedElement7("div", { className: cn2("flex w-full items-center justify-center p-4") }, () => _$createScopedValue9(() => _$createElementFromConfig4("c:986888e5", Loader2Icon2, { className: cn2("size-4 animate-spin") }))))
1489
1504
  ])
1490
1505
  ));
1491
1506
  };
@@ -1493,7 +1508,7 @@ var CodeBlockSkeleton = () => {
1493
1508
  // src/lib/image.tsrx
1494
1509
  import {
1495
1510
  createElement,
1496
- createElement as _$createElement7,
1511
+ createElement as _$createElement4,
1497
1512
  createScopedElement as _$createScopedElement8,
1498
1513
  createScopedValue as _$createScopedValue10,
1499
1514
  hookSlots as _$hookSlots10,
@@ -1505,6 +1520,7 @@ import {
1505
1520
  withSlot as _$withSlot8
1506
1521
  } from "octane";
1507
1522
  import {
1523
+ createElementFromConfig as _$createElementFromConfig5,
1508
1524
  memoPublish as _$memoPublish4,
1509
1525
  memoSlot as _$memoSlot4,
1510
1526
  memoTake2 as _$memoTake22
@@ -1529,11 +1545,11 @@ var ImageComponent = ({
1529
1545
  ...props
1530
1546
  }) => {
1531
1547
  let __hks, __hkd0, __hkd1, __hke, __hks$, __hkd0$, __hkd1$, __hke$;
1532
- const { DownloadIcon: DownloadIcon2 } = _$withSlot8(_h$010, useIcons, _h$010);
1533
- const cn2 = _$withSlot8(_h$18, useCn, _h$18);
1548
+ const { DownloadIcon: DownloadIcon2 } = _$withSlot8(_h$010, useIcons);
1549
+ const cn2 = _$withSlot8(_h$18, useCn);
1534
1550
  const imgRef = useRef4(null, _h$26);
1535
1551
  const [imageState, setImageState] = useState3({ error: false, loaded: false, source: src }, _h$34);
1536
- const t = _$withSlot8(_h$43, useTranslations, _h$43);
1552
+ const t = _$withSlot8(_h$43, useTranslations);
1537
1553
  const imageLoaded = imageState.source === src && imageState.loaded;
1538
1554
  const imageError = imageState.source === src && imageState.error;
1539
1555
  const hasExplicitDimensions = props.width != null || props.height != null;
@@ -1634,7 +1650,7 @@ var ImageComponent = ({
1634
1650
  },
1635
1651
  () => t.imageNotAvailable
1636
1652
  )),
1637
- _$createScopedValue10(() => _$createElement7("div", {
1653
+ _$createScopedValue10(() => _$createElement4("div", {
1638
1654
  className: cn2("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")
1639
1655
  })),
1640
1656
  showDownload && _$createScopedValue10(() => _$createScopedElement8(
@@ -1645,7 +1661,7 @@ var ImageComponent = ({
1645
1661
  title: t.downloadImage,
1646
1662
  type: "button"
1647
1663
  },
1648
- () => _$createElement7(DownloadIcon2, { size: 14 })
1664
+ () => _$createElementFromConfig5("c:75fe6da8", DownloadIcon2, { size: 14 })
1649
1665
  ))
1650
1666
  ])
1651
1667
  ));
@@ -1654,7 +1670,6 @@ var ImageComponent = ({
1654
1670
  // src/lib/link-modal.tsrx
1655
1671
  import {
1656
1672
  Fragment as _$Fragment,
1657
- createElement as _$createElement8,
1658
1673
  createScopedElement as _$createScopedElement9,
1659
1674
  createScopedValue as _$createScopedValue11,
1660
1675
  hookSlots as _$hookSlots11,
@@ -1665,6 +1680,7 @@ import {
1665
1680
  withSlot as _$withSlot9
1666
1681
  } from "octane";
1667
1682
  import {
1683
+ createElementFromConfig as _$createElementFromConfig6,
1668
1684
  memoPublish as _$memoPublish5,
1669
1685
  memoSlot as _$memoSlot5,
1670
1686
  memoTake1 as _$memoTake13,
@@ -1697,10 +1713,10 @@ var _h$54 = /* @__PURE__ */ Symbol(_hs$11 + 5);
1697
1713
  var _h$64 = /* @__PURE__ */ Symbol(_hs$11 + 6);
1698
1714
  var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1699
1715
  let __hks, __hkd0, __hke, __hks$, __hkd0$, __hkd1, __hke$;
1700
- const { CheckIcon: CheckIcon2, CopyIcon: CopyIcon2, ExternalLinkIcon: ExternalLinkIcon2, XIcon: XIcon2 } = _$withSlot9(_h$011, useIcons, _h$011);
1701
- const cn2 = _$withSlot9(_h$19, useCn, _h$19);
1716
+ const { CheckIcon: CheckIcon2, CopyIcon: CopyIcon2, ExternalLinkIcon: ExternalLinkIcon2, XIcon: XIcon2 } = _$withSlot9(_h$011, useIcons);
1717
+ const cn2 = _$withSlot9(_h$19, useCn);
1702
1718
  const [copied, setCopied] = useState4(false, _h$27);
1703
- const t = _$withSlot9(_h$35, useTranslations, _h$35);
1719
+ const t = _$withSlot9(_h$35, useTranslations);
1704
1720
  const handleCopy = (__hkd0 = url, __hks = _$memoSlot5(_h$44, "useCallback"), __hke = _$memoTake13(__hks, __hkd0), __hke === null ? _$memoPublish5(
1705
1721
  __hks,
1706
1722
  async () => {
@@ -1775,7 +1791,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1775
1791
  title: t.close,
1776
1792
  type: "button"
1777
1793
  },
1778
- () => _$createElement8(XIcon2, { size: 16 })
1794
+ () => _$createElementFromConfig6("c:bb74145d", XIcon2, { size: 16 })
1779
1795
  )),
1780
1796
  _$createScopedValue11(() => _$createScopedElement9("div", { className: cn2("flex flex-col gap-2") }, () => _$positionalChildren4([
1781
1797
  _$createScopedValue11(() => _$createScopedElement9(
@@ -1784,7 +1800,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1784
1800
  className: cn2("flex items-center gap-2 font-semibold text-lg")
1785
1801
  },
1786
1802
  () => _$positionalChildren4([
1787
- _$createElement8(ExternalLinkIcon2, { size: 20 }),
1803
+ _$createElementFromConfig6("c:d2395277", ExternalLinkIcon2, { size: 20 }),
1788
1804
  _$createScopedElement9("span", {}, () => t.openExternalLink)
1789
1805
  ])
1790
1806
  )),
@@ -1806,10 +1822,10 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1806
1822
  type: "button"
1807
1823
  },
1808
1824
  () => copied ? _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
1809
- _$createElement8(CheckIcon2, { size: 14 }),
1825
+ _$createElementFromConfig6("c:4e056c63", CheckIcon2, { size: 14 }),
1810
1826
  _$createScopedElement9("span", {}, () => t.copied)
1811
1827
  ])) : _$createScopedElement9(_$Fragment, {}, () => _$positionalChildren4([
1812
- _$createElement8(CopyIcon2, { size: 14 }),
1828
+ _$createElementFromConfig6("c:f679c944", CopyIcon2, { size: 14 }),
1813
1829
  _$createScopedElement9("span", {}, () => t.copyLink)
1814
1830
  ]))
1815
1831
  )),
@@ -1821,7 +1837,7 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1821
1837
  type: "button"
1822
1838
  },
1823
1839
  () => _$positionalChildren4([
1824
- _$createElement8(ExternalLinkIcon2, { size: 14 }),
1840
+ _$createElementFromConfig6("c:3207e193", ExternalLinkIcon2, { size: 14 }),
1825
1841
  _$createScopedElement9("span", {}, () => t.openLink)
1826
1842
  ])
1827
1843
  ))
@@ -1832,8 +1848,8 @@ var LinkSafetyModal = ({ url, isOpen, onClose, onConfirm }) => {
1832
1848
  };
1833
1849
 
1834
1850
  // src/lib/mermaid/download-button.tsrx
1851
+ import { createElementFromConfig as _$createElementFromConfig7 } from "octane/internal/client";
1835
1852
  import {
1836
- createElement as _$createElement9,
1837
1853
  createScopedElement as _$createScopedElement10,
1838
1854
  createScopedValue as _$createScopedValue12,
1839
1855
  hookSlots as _$hookSlots13,
@@ -1861,15 +1877,15 @@ var _h$45 = /* @__PURE__ */ Symbol(_hs$12 + 4);
1861
1877
  var PluginContext = createContext6(null);
1862
1878
  var usePlugins = () => useContext8(PluginContext);
1863
1879
  var useCodePlugin = () => {
1864
- const plugins = _$withSlot10(_h$012, usePlugins, _h$012);
1880
+ const plugins = _$withSlot10(_h$012, usePlugins);
1865
1881
  return plugins?.code ?? null;
1866
1882
  };
1867
1883
  var useMermaidPlugin = () => {
1868
- const plugins = _$withSlot10(_h$110, usePlugins, _h$110);
1884
+ const plugins = _$withSlot10(_h$110, usePlugins);
1869
1885
  return plugins?.mermaid ?? null;
1870
1886
  };
1871
1887
  var useCustomRenderer = (language) => {
1872
- const plugins = _$withSlot10(_h$45, usePlugins, _h$45);
1888
+ const plugins = _$withSlot10(_h$45, usePlugins);
1873
1889
  if (!(plugins?.renderers && language)) {
1874
1890
  return null;
1875
1891
  }
@@ -1918,13 +1934,13 @@ var _h$46 = /* @__PURE__ */ Symbol(_hs$13 + 4);
1918
1934
  var _h$55 = /* @__PURE__ */ Symbol(_hs$13 + 5);
1919
1935
  var _h$65 = /* @__PURE__ */ Symbol(_hs$13 + 6);
1920
1936
  var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config, onError }) => {
1921
- const cn2 = _$withSlot11(_h$013, useCn, _h$013);
1937
+ const cn2 = _$withSlot11(_h$013, useCn);
1922
1938
  const [isOpen, setIsOpen] = useState5(false, _h$111);
1923
1939
  const dropdownRef = useRef5(null, _h$29);
1924
1940
  const { isAnimating } = useContext9(StreamdownContext);
1925
- const icons = _$withSlot11(_h$37, useIcons, _h$37);
1926
- const mermaidPlugin = _$withSlot11(_h$46, useMermaidPlugin, _h$46);
1927
- const t = _$withSlot11(_h$55, useTranslations, _h$55);
1941
+ const icons = _$withSlot11(_h$37, useIcons);
1942
+ const mermaidPlugin = _$withSlot11(_h$46, useMermaidPlugin);
1943
+ const t = _$withSlot11(_h$55, useTranslations);
1928
1944
  const downloadMermaid = async (format) => {
1929
1945
  try {
1930
1946
  if (format === "mmd") {
@@ -1997,7 +2013,7 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
1997
2013
  title: t.downloadDiagram,
1998
2014
  type: "button"
1999
2015
  },
2000
- () => children ?? _$createScopedValue12(() => _$createElement9(icons.DownloadIcon, { size: 14 }))
2016
+ () => children ?? _$createScopedValue12(() => _$createElementFromConfig7("c:43d7362c", icons.DownloadIcon, { size: 14 }))
2001
2017
  )),
2002
2018
  isOpen ? _$createScopedValue12(() => _$createScopedElement10(
2003
2019
  "div",
@@ -2043,7 +2059,6 @@ var MermaidDownloadDropdown = ({ chart, children, className, onDownload, config,
2043
2059
  // src/lib/mermaid/fullscreen-button.tsrx
2044
2060
  import {
2045
2061
  Fragment as _$Fragment2,
2046
- createElement as _$createElement10,
2047
2062
  createPortal,
2048
2063
  createScopedElement as _$createScopedElement11,
2049
2064
  createScopedValue as _$createScopedValue13,
@@ -2054,6 +2069,7 @@ import {
2054
2069
  useState as useState6,
2055
2070
  withSlot as _$withSlot12
2056
2071
  } from "octane";
2072
+ import { createElementFromConfig as _$createElementFromConfig8 } from "octane/internal/client";
2057
2073
  var _hs$14 = /* @__PURE__ */ _$hookSlots14(6);
2058
2074
  var _h$014 = /* @__PURE__ */ Symbol(_hs$14);
2059
2075
  var _h$112 = /* @__PURE__ */ Symbol(_hs$14 + 1);
@@ -2062,11 +2078,11 @@ var _h$38 = /* @__PURE__ */ Symbol(_hs$14 + 3);
2062
2078
  var _h$47 = /* @__PURE__ */ Symbol(_hs$14 + 4);
2063
2079
  var _h$56 = /* @__PURE__ */ Symbol(_hs$14 + 5);
2064
2080
  var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className, ...props }) => {
2065
- const { Maximize2Icon: Maximize2Icon2, XIcon: XIcon2 } = _$withSlot12(_h$014, useIcons, _h$014);
2066
- const cn2 = _$withSlot12(_h$112, useCn, _h$112);
2081
+ const { Maximize2Icon: Maximize2Icon2, XIcon: XIcon2 } = _$withSlot12(_h$014, useIcons);
2082
+ const cn2 = _$withSlot12(_h$112, useCn);
2067
2083
  const [isFullscreen, setIsFullscreen] = useState6(false, _h$210);
2068
2084
  const { isAnimating, controls: controlsConfig } = useContext10(StreamdownContext);
2069
- const t = _$withSlot12(_h$38, useTranslations, _h$38);
2085
+ const t = _$withSlot12(_h$38, useTranslations);
2070
2086
  const showPanZoomControls = (() => {
2071
2087
  if (typeof controlsConfig === "boolean") {
2072
2088
  return controlsConfig;
@@ -2124,7 +2140,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2124
2140
  type: "button",
2125
2141
  ...props
2126
2142
  },
2127
- () => _$createElement10(Maximize2Icon2, { size: 14 })
2143
+ () => _$createElementFromConfig8("c:9e767713", Maximize2Icon2, { size: 14 })
2128
2144
  )),
2129
2145
  isFullscreen ? createPortal(
2130
2146
  _$createScopedValue13(() => _$createScopedElement11(
@@ -2149,7 +2165,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2149
2165
  title: t.exitFullscreen,
2150
2166
  type: "button"
2151
2167
  },
2152
- () => _$createElement10(XIcon2, { size: 20 })
2168
+ () => _$createElementFromConfig8("c:67dc7e4f", XIcon2, { size: 20 })
2153
2169
  )),
2154
2170
  _$createScopedValue13(() => _$createScopedElement11(
2155
2171
  "div",
@@ -2159,7 +2175,7 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2159
2175
  onKeyDown: (e) => e.stopPropagation(),
2160
2176
  role: "presentation"
2161
2177
  },
2162
- () => _$createScopedValue13(() => _$createElement10(Mermaid, {
2178
+ () => _$createScopedValue13(() => _$createElementFromConfig8("c:f35e3414", Mermaid, {
2163
2179
  chart,
2164
2180
  className: cn2("size-full [&_svg]:h-auto [&_svg]:w-auto"),
2165
2181
  config,
@@ -2175,8 +2191,8 @@ var MermaidFullscreenButton = ({ chart, config, onFullscreen, onExit, className,
2175
2191
  };
2176
2192
 
2177
2193
  // src/lib/table/index.tsrx
2194
+ import { createElementFromConfig as _$createElementFromConfig12 } from "octane/internal/client";
2178
2195
  import {
2179
- createElement as _$createElement14,
2180
2196
  createScopedElement as _$createScopedElement15,
2181
2197
  createScopedValue as _$createScopedValue17,
2182
2198
  hookSlots as _$hookSlots18,
@@ -2185,8 +2201,8 @@ import {
2185
2201
  } from "octane";
2186
2202
 
2187
2203
  // src/lib/table/copy-dropdown.tsrx
2204
+ import { createElementFromConfig as _$createElementFromConfig9 } from "octane/internal/client";
2188
2205
  import {
2189
- createElement as _$createElement11,
2190
2206
  createScopedElement as _$createScopedElement12,
2191
2207
  createScopedValue as _$createScopedValue14,
2192
2208
  hookSlots as _$hookSlots15,
@@ -2362,13 +2378,13 @@ var _h$57 = /* @__PURE__ */ Symbol(_hs$15 + 5);
2362
2378
  var _h$66 = /* @__PURE__ */ Symbol(_hs$15 + 6);
2363
2379
  var _h$73 = /* @__PURE__ */ Symbol(_hs$15 + 7);
2364
2380
  var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }) => {
2365
- const cn2 = _$withSlot13(_h$015, useCn, _h$015);
2381
+ const cn2 = _$withSlot13(_h$015, useCn);
2366
2382
  const [isOpen, setIsOpen] = useState7(false, _h$113);
2367
2383
  const [isCopied, setIsCopied] = useState7(false, _h$211);
2368
2384
  const dropdownRef = useRef6(null, _h$39);
2369
2385
  const timeoutRef = useRef6(0, _h$48);
2370
2386
  const { isAnimating } = useContext11(StreamdownContext);
2371
- const t = _$withSlot13(_h$57, useTranslations, _h$57);
2387
+ const t = _$withSlot13(_h$57, useTranslations);
2372
2388
  const copyTableData = async (format) => {
2373
2389
  if (typeof window === "undefined" || !navigator?.clipboard?.write) {
2374
2390
  onError?.(new Error("Clipboard API not available"));
@@ -2418,7 +2434,7 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
2418
2434
  [],
2419
2435
  _h$66
2420
2436
  );
2421
- const icons = _$withSlot13(_h$73, useIcons, _h$73);
2437
+ const icons = _$withSlot13(_h$73, useIcons);
2422
2438
  const Icon = isCopied ? icons.CheckIcon : icons.CopyIcon;
2423
2439
  return _$createScopedValue14(() => _$createScopedElement12("div", { className: cn2("relative"), ref: dropdownRef }, () => _$positionalChildren7([
2424
2440
  _$createScopedValue14(() => _$createScopedElement12(
@@ -2430,7 +2446,7 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
2430
2446
  title: t.copyTable,
2431
2447
  type: "button"
2432
2448
  },
2433
- () => children ?? _$createElement11(Icon, { height: 14, width: 14 })
2449
+ () => children ?? _$createElementFromConfig9("c:c05b4554", Icon, { height: 14, width: 14 })
2434
2450
  )),
2435
2451
  isOpen ? _$createScopedValue14(() => _$createScopedElement12(
2436
2452
  "div",
@@ -2474,8 +2490,8 @@ var TableCopyDropdown = ({ children, className, onCopy, onError, timeout = 2e3 }
2474
2490
  };
2475
2491
 
2476
2492
  // src/lib/table/download-dropdown.tsrx
2493
+ import { createElementFromConfig as _$createElementFromConfig10 } from "octane/internal/client";
2477
2494
  import {
2478
- createElement as _$createElement12,
2479
2495
  createScopedElement as _$createScopedElement13,
2480
2496
  createScopedValue as _$createScopedValue15,
2481
2497
  hookSlots as _$hookSlots16,
@@ -2504,10 +2520,10 @@ var TableDownloadButton = ({
2504
2520
  format = "csv",
2505
2521
  filename
2506
2522
  }) => {
2507
- const cn2 = _$withSlot14(_h$016, useCn, _h$016);
2523
+ const cn2 = _$withSlot14(_h$016, useCn);
2508
2524
  const { isAnimating } = useContext12(StreamdownContext);
2509
- const t = _$withSlot14(_h$114, useTranslations, _h$114);
2510
- const icons = _$withSlot14(_h$212, useIcons, _h$212);
2525
+ const t = _$withSlot14(_h$114, useTranslations);
2526
+ const icons = _$withSlot14(_h$212, useIcons);
2511
2527
  const downloadTableData = (event) => {
2512
2528
  try {
2513
2529
  const tableElement = findTableForControl(event.currentTarget);
@@ -2550,16 +2566,16 @@ var TableDownloadButton = ({
2550
2566
  title: format === "csv" ? t.downloadTableAsCsv : t.downloadTableAsMarkdown,
2551
2567
  type: "button"
2552
2568
  },
2553
- () => children ?? _$createScopedValue15(() => _$createElement12(icons.DownloadIcon, { size: 14 }))
2569
+ () => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:8bf08d42", icons.DownloadIcon, { size: 14 }))
2554
2570
  ));
2555
2571
  };
2556
2572
  var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
2557
- const cn2 = _$withSlot14(_h$310, useCn, _h$310);
2573
+ const cn2 = _$withSlot14(_h$310, useCn);
2558
2574
  const [isOpen, setIsOpen] = useState8(false, _h$49);
2559
2575
  const dropdownRef = useRef7(null, _h$58);
2560
2576
  const { isAnimating } = useContext12(StreamdownContext);
2561
- const t = _$withSlot14(_h$67, useTranslations, _h$67);
2562
- const icons = _$withSlot14(_h$74, useIcons, _h$74);
2577
+ const t = _$withSlot14(_h$67, useTranslations);
2578
+ const icons = _$withSlot14(_h$74, useIcons);
2563
2579
  const downloadTableData = (format) => {
2564
2580
  try {
2565
2581
  const tableElement = findTableForControl(dropdownRef.current);
@@ -2605,7 +2621,7 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
2605
2621
  title: t.downloadTable,
2606
2622
  type: "button"
2607
2623
  },
2608
- () => children ?? _$createScopedValue15(() => _$createElement12(icons.DownloadIcon, { size: 14 }))
2624
+ () => children ?? _$createScopedValue15(() => _$createElementFromConfig10("c:b748805c", icons.DownloadIcon, { size: 14 }))
2609
2625
  )),
2610
2626
  isOpen ? _$createScopedValue15(() => _$createScopedElement13(
2611
2627
  "div",
@@ -2641,7 +2657,6 @@ var TableDownloadDropdown = ({ children, className, onDownload, onError }) => {
2641
2657
  // src/lib/table/fullscreen-button.tsrx
2642
2658
  import {
2643
2659
  Fragment as _$Fragment3,
2644
- createElement as _$createElement13,
2645
2660
  createPortal as createPortal2,
2646
2661
  createScopedElement as _$createScopedElement14,
2647
2662
  createScopedValue as _$createScopedValue16,
@@ -2652,6 +2667,7 @@ import {
2652
2667
  useState as useState9,
2653
2668
  withSlot as _$withSlot15
2654
2669
  } from "octane";
2670
+ import { createElementFromConfig as _$createElementFromConfig11 } from "octane/internal/client";
2655
2671
  var _hs$17 = /* @__PURE__ */ _$hookSlots17(5);
2656
2672
  var _h$017 = /* @__PURE__ */ Symbol(_hs$17);
2657
2673
  var _h$115 = /* @__PURE__ */ Symbol(_hs$17 + 1);
@@ -2659,11 +2675,11 @@ var _h$213 = /* @__PURE__ */ Symbol(_hs$17 + 2);
2659
2675
  var _h$311 = /* @__PURE__ */ Symbol(_hs$17 + 3);
2660
2676
  var _h$410 = /* @__PURE__ */ Symbol(_hs$17 + 4);
2661
2677
  var TableFullscreenButton = ({ children, className, showCopy = true, showDownload = true }) => {
2662
- const { Maximize2Icon: Maximize2Icon2, XIcon: XIcon2 } = _$withSlot15(_h$017, useIcons, _h$017);
2663
- const cn2 = _$withSlot15(_h$115, useCn, _h$115);
2678
+ const { Maximize2Icon: Maximize2Icon2, XIcon: XIcon2 } = _$withSlot15(_h$017, useIcons);
2679
+ const cn2 = _$withSlot15(_h$115, useCn);
2664
2680
  const [isFullscreen, setIsFullscreen] = useState9(false, _h$213);
2665
2681
  const { isAnimating } = useContext13(StreamdownContext);
2666
- const t = _$withSlot15(_h$311, useTranslations, _h$311);
2682
+ const t = _$withSlot15(_h$311, useTranslations);
2667
2683
  const handleOpen = () => {
2668
2684
  setIsFullscreen(true);
2669
2685
  };
@@ -2699,7 +2715,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
2699
2715
  title: t.viewFullscreen,
2700
2716
  type: "button"
2701
2717
  },
2702
- () => _$createElement13(Maximize2Icon2, { size: 14 })
2718
+ () => _$createElementFromConfig11("c:06098222", Maximize2Icon2, { size: 14 })
2703
2719
  )),
2704
2720
  isFullscreen ? createPortal2(
2705
2721
  _$createScopedValue16(() => _$createScopedElement14(
@@ -2727,8 +2743,8 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
2727
2743
  },
2728
2744
  () => _$positionalChildren9([
2729
2745
  _$createScopedValue16(() => _$createScopedElement14("div", { className: cn2("flex items-center justify-end gap-1 p-4") }, () => _$positionalChildren9([
2730
- showCopy ? _$createElement13(TableCopyDropdown, {}) : null,
2731
- showDownload ? _$createElement13(TableDownloadDropdown, {}) : null,
2746
+ showCopy ? _$createElementFromConfig11("c:ea761060", TableCopyDropdown, {}) : null,
2747
+ showDownload ? _$createElementFromConfig11("c:01eb7b5a", TableDownloadDropdown, {}) : null,
2732
2748
  _$createScopedValue16(() => _$createScopedElement14(
2733
2749
  "button",
2734
2750
  {
@@ -2737,7 +2753,7 @@ var TableFullscreenButton = ({ children, className, showCopy = true, showDownloa
2737
2753
  title: t.exitFullscreen,
2738
2754
  type: "button"
2739
2755
  },
2740
- () => _$createElement13(XIcon2, { size: 20 })
2756
+ () => _$createElementFromConfig11("c:6341d405", XIcon2, { size: 20 })
2741
2757
  ))
2742
2758
  ]))),
2743
2759
  _$createScopedValue16(() => _$createScopedElement14(
@@ -2774,7 +2790,7 @@ var Table = ({
2774
2790
  showFullscreen = true,
2775
2791
  ...props
2776
2792
  }) => {
2777
- const cn2 = _$withSlot16(_h$018, useCn, _h$018);
2793
+ const cn2 = _$withSlot16(_h$018, useCn);
2778
2794
  const hasCopy = showControls && showCopy;
2779
2795
  const hasDownload = showControls && showDownload;
2780
2796
  const hasFullscreen = showControls && showFullscreen;
@@ -2787,9 +2803,9 @@ var Table = ({
2787
2803
  },
2788
2804
  () => _$positionalChildren10([
2789
2805
  hasAnyControl ? _$createScopedValue17(() => _$createScopedElement15("div", { className: cn2("flex items-center justify-end gap-1") }, () => _$positionalChildren10([
2790
- hasCopy ? _$createElement14(TableCopyDropdown, {}) : null,
2791
- hasDownload ? _$createElement14(TableDownloadDropdown, {}) : null,
2792
- hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children)) : null
2806
+ hasCopy ? _$createElementFromConfig12("c:00fe617c", TableCopyDropdown, {}) : null,
2807
+ hasDownload ? _$createElementFromConfig12("c:b652fccb", TableDownloadDropdown, {}) : null,
2808
+ hasFullscreen ? _$createScopedValue17(() => _$createScopedElement15(TableFullscreenButton, { showCopy: hasCopy, showDownload: hasDownload }, () => children, "c:2f548659")) : null
2793
2809
  ]))) : null,
2794
2810
  _$createScopedValue17(() => _$createScopedElement15(
2795
2811
  "div",
@@ -2842,7 +2858,7 @@ var _h$262 = /* @__PURE__ */ Symbol(_hs$19 + 26);
2842
2858
  var _h$272 = /* @__PURE__ */ Symbol(_hs$19 + 27);
2843
2859
  var START_LINE_PATTERN = /startLine=(\d+)/;
2844
2860
  var NO_LINE_NUMBERS_PATTERN = /\bnoLineNumbers\b/;
2845
- var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-RM4TPAM4.js").then((mod) => ({ default: mod.Mermaid })));
2861
+ var Mermaid2 = /* @__PURE__ */ lazy2(() => import("./mermaid-2J5JVDRZ.js").then((mod) => ({ default: mod.Mermaid })));
2846
2862
  var LANGUAGE_REGEX = /language-([^\s]+)/;
2847
2863
  function sameNodePosition(prev, next) {
2848
2864
  if (!(prev?.position || next?.position)) {
@@ -2907,7 +2923,7 @@ var shouldShowMermaidControl = (config, controlType) => {
2907
2923
  };
2908
2924
  var MemoOl = memo2(
2909
2925
  ({ children, className, node, ...props }) => {
2910
- const cn2 = _$withSlot17(_h$019, useCn, _h$019);
2926
+ const cn2 = _$withSlot17(_h$019, useCn);
2911
2927
  return _$createScopedValue18(() => _$createScopedElement16(
2912
2928
  "ol",
2913
2929
  {
@@ -2923,7 +2939,7 @@ var MemoOl = memo2(
2923
2939
  Object.assign(MemoOl, { displayName: "MarkdownOl" });
2924
2940
  var MemoLi = memo2(
2925
2941
  ({ children, className, node, ...props }) => {
2926
- const cn2 = _$withSlot17(_h$116, useCn, _h$116);
2942
+ const cn2 = _$withSlot17(_h$116, useCn);
2927
2943
  return _$createScopedValue18(() => _$createScopedElement16(
2928
2944
  "li",
2929
2945
  {
@@ -2939,7 +2955,7 @@ var MemoLi = memo2(
2939
2955
  Object.assign(MemoLi, { displayName: "MarkdownLi" });
2940
2956
  var MemoUl = memo2(
2941
2957
  ({ children, className, node, ...props }) => {
2942
- const cn2 = _$withSlot17(_h$214, useCn, _h$214);
2958
+ const cn2 = _$withSlot17(_h$214, useCn);
2943
2959
  return _$createScopedValue18(() => _$createScopedElement16(
2944
2960
  "ul",
2945
2961
  {
@@ -2955,8 +2971,8 @@ var MemoUl = memo2(
2955
2971
  Object.assign(MemoUl, { displayName: "MarkdownUl" });
2956
2972
  var MemoHr = memo2(
2957
2973
  ({ className, node, ...props }) => {
2958
- const cn2 = _$withSlot17(_h$312, useCn, _h$312);
2959
- return _$createScopedValue18(() => _$createElement15("hr", {
2974
+ const cn2 = _$withSlot17(_h$312, useCn);
2975
+ return _$createScopedValue18(() => _$createElement5("hr", {
2960
2976
  className: cn2("my-6 border-border", className),
2961
2977
  "data-streamdown": "horizontal-rule",
2962
2978
  ...props
@@ -2967,7 +2983,7 @@ var MemoHr = memo2(
2967
2983
  Object.assign(MemoHr, { displayName: "MarkdownHr" });
2968
2984
  var MemoStrong = memo2(
2969
2985
  ({ children, className, node, ...props }) => {
2970
- const cn2 = _$withSlot17(_h$411, useCn, _h$411);
2986
+ const cn2 = _$withSlot17(_h$411, useCn);
2971
2987
  return _$createScopedValue18(() => _$createScopedElement16(
2972
2988
  "span",
2973
2989
  {
@@ -2983,7 +2999,7 @@ var MemoStrong = memo2(
2983
2999
  Object.assign(MemoStrong, { displayName: "MarkdownStrong" });
2984
3000
  var LinkComponent = ({ children, className, href, node, ...props }) => {
2985
3001
  let __hks, __hkd0, __hkd1, __hkd2, __hke, __hks$, __hkd0$, __hke$, __hks$2, __hke$2;
2986
- const cn2 = _$withSlot17(_h$59, useCn, _h$59);
3002
+ const cn2 = _$withSlot17(_h$59, useCn);
2987
3003
  const { linkSafety } = useContext14(StreamdownContext);
2988
3004
  const [isModalOpen, setIsModalOpen] = useState10(false, _h$68);
2989
3005
  const isIncomplete = href === "streamdown:incomplete-link";
@@ -3038,7 +3054,7 @@ var LinkComponent = ({ children, className, href, node, ...props }) => {
3038
3054
  },
3039
3055
  () => children
3040
3056
  )),
3041
- linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElement15(LinkSafetyModal, { ...modalProps }))
3057
+ linkSafety.renderModal ? linkSafety.renderModal(modalProps) : _$createScopedValue18(() => _$createElementFromConfig13("c:5b3f51d7", LinkSafetyModal, { ...modalProps }))
3042
3058
  ]));
3043
3059
  }
3044
3060
  return _$createScopedValue18(() => _$createScopedElement16(
@@ -3059,7 +3075,7 @@ var MemoA = memo2(LinkComponent, (p, n) => sameClassAndNode(p, n) && p.href ===
3059
3075
  Object.assign(MemoA, { displayName: "MarkdownA" });
3060
3076
  var MemoH1 = memo2(
3061
3077
  ({ children, className, node, ...props }) => {
3062
- const cn2 = _$withSlot17(_h$10, useCn, _h$10);
3078
+ const cn2 = _$withSlot17(_h$10, useCn);
3063
3079
  return _$createScopedValue18(() => _$createScopedElement16(
3064
3080
  "h1",
3065
3081
  {
@@ -3075,7 +3091,7 @@ var MemoH1 = memo2(
3075
3091
  Object.assign(MemoH1, { displayName: "MarkdownH1" });
3076
3092
  var MemoH2 = memo2(
3077
3093
  ({ children, className, node, ...props }) => {
3078
- const cn2 = _$withSlot17(_h$11, useCn, _h$11);
3094
+ const cn2 = _$withSlot17(_h$11, useCn);
3079
3095
  return _$createScopedValue18(() => _$createScopedElement16(
3080
3096
  "h2",
3081
3097
  {
@@ -3091,7 +3107,7 @@ var MemoH2 = memo2(
3091
3107
  Object.assign(MemoH2, { displayName: "MarkdownH2" });
3092
3108
  var MemoH3 = memo2(
3093
3109
  ({ children, className, node, ...props }) => {
3094
- const cn2 = _$withSlot17(_h$122, useCn, _h$122);
3110
+ const cn2 = _$withSlot17(_h$122, useCn);
3095
3111
  return _$createScopedValue18(() => _$createScopedElement16(
3096
3112
  "h3",
3097
3113
  {
@@ -3107,7 +3123,7 @@ var MemoH3 = memo2(
3107
3123
  Object.assign(MemoH3, { displayName: "MarkdownH3" });
3108
3124
  var MemoH4 = memo2(
3109
3125
  ({ children, className, node, ...props }) => {
3110
- const cn2 = _$withSlot17(_h$132, useCn, _h$132);
3126
+ const cn2 = _$withSlot17(_h$132, useCn);
3111
3127
  return _$createScopedValue18(() => _$createScopedElement16(
3112
3128
  "h4",
3113
3129
  {
@@ -3123,7 +3139,7 @@ var MemoH4 = memo2(
3123
3139
  Object.assign(MemoH4, { displayName: "MarkdownH4" });
3124
3140
  var MemoH5 = memo2(
3125
3141
  ({ children, className, node, ...props }) => {
3126
- const cn2 = _$withSlot17(_h$142, useCn, _h$142);
3142
+ const cn2 = _$withSlot17(_h$142, useCn);
3127
3143
  return _$createScopedValue18(() => _$createScopedElement16(
3128
3144
  "h5",
3129
3145
  {
@@ -3139,7 +3155,7 @@ var MemoH5 = memo2(
3139
3155
  Object.assign(MemoH5, { displayName: "MarkdownH5" });
3140
3156
  var MemoH6 = memo2(
3141
3157
  ({ children, className, node, ...props }) => {
3142
- const cn2 = _$withSlot17(_h$152, useCn, _h$152);
3158
+ const cn2 = _$withSlot17(_h$152, useCn);
3143
3159
  return _$createScopedValue18(() => _$createScopedElement16(
3144
3160
  "h6",
3145
3161
  {
@@ -3170,7 +3186,8 @@ var MemoTable = memo2(
3170
3186
  showFullscreen,
3171
3187
  ...props
3172
3188
  },
3173
- () => children
3189
+ () => children,
3190
+ "c:c99c56ec"
3174
3191
  ));
3175
3192
  },
3176
3193
  (p, n) => sameClassAndNode(p, n)
@@ -3178,7 +3195,7 @@ var MemoTable = memo2(
3178
3195
  Object.assign(MemoTable, { displayName: "MarkdownTable" });
3179
3196
  var MemoThead = memo2(
3180
3197
  ({ children, className, node, ...props }) => {
3181
- const cn2 = _$withSlot17(_h$162, useCn, _h$162);
3198
+ const cn2 = _$withSlot17(_h$162, useCn);
3182
3199
  return _$createScopedValue18(() => _$createScopedElement16(
3183
3200
  "thead",
3184
3201
  {
@@ -3194,7 +3211,7 @@ var MemoThead = memo2(
3194
3211
  Object.assign(MemoThead, { displayName: "MarkdownThead" });
3195
3212
  var MemoTbody = memo2(
3196
3213
  ({ children, className, node, ...props }) => {
3197
- const cn2 = _$withSlot17(_h$172, useCn, _h$172);
3214
+ const cn2 = _$withSlot17(_h$172, useCn);
3198
3215
  return _$createScopedValue18(() => _$createScopedElement16(
3199
3216
  "tbody",
3200
3217
  {
@@ -3210,7 +3227,7 @@ var MemoTbody = memo2(
3210
3227
  Object.assign(MemoTbody, { displayName: "MarkdownTbody" });
3211
3228
  var MemoTr = memo2(
3212
3229
  ({ children, className, node, ...props }) => {
3213
- const cn2 = _$withSlot17(_h$182, useCn, _h$182);
3230
+ const cn2 = _$withSlot17(_h$182, useCn);
3214
3231
  return _$createScopedValue18(() => _$createScopedElement16(
3215
3232
  "tr",
3216
3233
  {
@@ -3226,7 +3243,7 @@ var MemoTr = memo2(
3226
3243
  Object.assign(MemoTr, { displayName: "MarkdownTr" });
3227
3244
  var MemoTh = memo2(
3228
3245
  ({ children, className, node, ...props }) => {
3229
- const cn2 = _$withSlot17(_h$192, useCn, _h$192);
3246
+ const cn2 = _$withSlot17(_h$192, useCn);
3230
3247
  return _$createScopedValue18(() => _$createScopedElement16(
3231
3248
  "th",
3232
3249
  {
@@ -3242,7 +3259,7 @@ var MemoTh = memo2(
3242
3259
  Object.assign(MemoTh, { displayName: "MarkdownTh" });
3243
3260
  var MemoTd = memo2(
3244
3261
  ({ children, className, node, ...props }) => {
3245
- const cn2 = _$withSlot17(_h$20, useCn, _h$20);
3262
+ const cn2 = _$withSlot17(_h$20, useCn);
3246
3263
  return _$createScopedValue18(() => _$createScopedElement16(
3247
3264
  "td",
3248
3265
  {
@@ -3258,7 +3275,7 @@ var MemoTd = memo2(
3258
3275
  Object.assign(MemoTd, { displayName: "MarkdownTd" });
3259
3276
  var MemoBlockquote = memo2(
3260
3277
  ({ children, className, node, ...props }) => {
3261
- const cn2 = _$withSlot17(_h$21, useCn, _h$21);
3278
+ const cn2 = _$withSlot17(_h$21, useCn);
3262
3279
  return _$createScopedValue18(() => _$createScopedElement16(
3263
3280
  "blockquote",
3264
3281
  {
@@ -3274,7 +3291,7 @@ var MemoBlockquote = memo2(
3274
3291
  Object.assign(MemoBlockquote, { displayName: "MarkdownBlockquote" });
3275
3292
  var MemoSup = memo2(
3276
3293
  ({ children, className, node, ...props }) => {
3277
- const cn2 = _$withSlot17(_h$222, useCn, _h$222);
3294
+ const cn2 = _$withSlot17(_h$222, useCn);
3278
3295
  return _$createScopedValue18(() => _$createScopedElement16(
3279
3296
  "sup",
3280
3297
  {
@@ -3290,7 +3307,7 @@ var MemoSup = memo2(
3290
3307
  Object.assign(MemoSup, { displayName: "MarkdownSup" });
3291
3308
  var MemoSub = memo2(
3292
3309
  ({ children, className, node, ...props }) => {
3293
- const cn2 = _$withSlot17(_h$232, useCn, _h$232);
3310
+ const cn2 = _$withSlot17(_h$232, useCn);
3294
3311
  return _$createScopedValue18(() => _$createScopedElement16(
3295
3312
  "sub",
3296
3313
  {
@@ -3369,18 +3386,18 @@ var MemoSection = memo2(
3369
3386
  );
3370
3387
  Object.assign(MemoSection, { displayName: "MarkdownSection" });
3371
3388
  var CodeComponent = ({ node, className, children, ...props }) => {
3372
- const cn2 = _$withSlot17(_h$242, useCn, _h$242);
3389
+ const cn2 = _$withSlot17(_h$242, useCn);
3373
3390
  const inline = !("data-block" in props);
3374
3391
  const {
3375
3392
  mermaid: mermaidContext,
3376
3393
  controls: controlsConfig,
3377
3394
  lineNumbers: contextLineNumbers
3378
3395
  } = useContext14(StreamdownContext);
3379
- const mermaidPlugin = _$withSlot17(_h$252, useMermaidPlugin, _h$252);
3380
- const isBlockIncomplete = _$withSlot17(_h$262, useIsCodeFenceIncomplete, _h$262);
3396
+ const mermaidPlugin = _$withSlot17(_h$252, useMermaidPlugin);
3397
+ const isBlockIncomplete = _$withSlot17(_h$262, useIsCodeFenceIncomplete);
3381
3398
  const match = className?.match(LANGUAGE_REGEX);
3382
3399
  const language = match?.at(1) ?? "";
3383
- const customRenderer = _$withSlot17(_h$272, useCustomRenderer, language, _h$272);
3400
+ const customRenderer = _$withSlot17(_h$272, useCustomRenderer, language);
3384
3401
  if (inline) {
3385
3402
  return _$createScopedValue18(() => _$createScopedElement16(
3386
3403
  "code",
@@ -3406,12 +3423,19 @@ var CodeComponent = ({ node, className, children, ...props }) => {
3406
3423
  }
3407
3424
  if (customRenderer) {
3408
3425
  const CustomComponent = customRenderer.component;
3409
- return _$createScopedValue18(() => _$createScopedElement16(Suspense2, { fallback: _$createElement15(CodeBlockSkeleton, {}) }, () => _$createScopedValue18(() => _$createElement15(CustomComponent, {
3410
- code,
3411
- isIncomplete: isBlockIncomplete,
3412
- language,
3413
- meta: metastring
3414
- }))));
3426
+ return _$createScopedValue18(() => _$createScopedElement16(
3427
+ Suspense2,
3428
+ {
3429
+ fallback: _$createElementFromConfig13("c:a21b100d", CodeBlockSkeleton, {})
3430
+ },
3431
+ () => _$createScopedValue18(() => _$createElementFromConfig13("c:4d96e250", CustomComponent, {
3432
+ code,
3433
+ isIncomplete: isBlockIncomplete,
3434
+ language,
3435
+ meta: metastring
3436
+ })),
3437
+ "c:a0dec580"
3438
+ ));
3415
3439
  }
3416
3440
  if (language === "mermaid" && mermaidPlugin) {
3417
3441
  const showMermaidControls = shouldShowControls(controlsConfig, "mermaid");
@@ -3420,51 +3444,58 @@ var CodeComponent = ({ node, className, children, ...props }) => {
3420
3444
  const showFullscreen = shouldShowMermaidControl(controlsConfig, "fullscreen");
3421
3445
  const showPanZoomControls = shouldShowMermaidControl(controlsConfig, "panZoom");
3422
3446
  const shouldShowMermaidControls = showMermaidControls && (showDownload2 || showCopy2 || showFullscreen);
3423
- return _$createScopedValue18(() => _$createScopedElement16(Suspense2, { fallback: _$createElement15(CodeBlockSkeleton, {}) }, () => _$createScopedValue18(() => _$createScopedElement16(
3424
- "div",
3447
+ return _$createScopedValue18(() => _$createScopedElement16(
3448
+ Suspense2,
3425
3449
  {
3426
- className: cn2("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", className),
3427
- "data-streamdown": "mermaid-block"
3450
+ fallback: _$createElementFromConfig13("c:014dfcb3", CodeBlockSkeleton, {})
3428
3451
  },
3429
- () => _$positionalChildren11([
3430
- _$createScopedValue18(() => _$createScopedElement16(
3431
- "div",
3432
- {
3433
- className: cn2("flex h-8 items-center text-muted-foreground text-xs")
3434
- },
3435
- () => _$createScopedValue18(() => _$createElement15("span", { className: cn2("ml-1 font-mono lowercase") }, "mermaid"))
3436
- )),
3437
- shouldShowMermaidControls ? _$createScopedValue18(() => _$createScopedElement16(
3438
- "div",
3439
- {
3440
- className: cn2("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end")
3441
- },
3442
- () => _$createScopedValue18(() => _$createScopedElement16(
3452
+ () => _$createScopedValue18(() => _$createScopedElement16(
3453
+ "div",
3454
+ {
3455
+ className: cn2("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", className),
3456
+ "data-streamdown": "mermaid-block"
3457
+ },
3458
+ () => _$positionalChildren11([
3459
+ _$createScopedValue18(() => _$createScopedElement16(
3443
3460
  "div",
3444
3461
  {
3445
- className: cn2("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
3446
- "data-streamdown": "mermaid-block-actions"
3462
+ className: cn2("flex h-8 items-center text-muted-foreground text-xs")
3447
3463
  },
3448
- () => _$positionalChildren11([
3449
- showDownload2 ? _$createScopedValue18(() => _$createElement15(MermaidDownloadDropdown, { chart: code, config: mermaidContext?.config })) : null,
3450
- showCopy2 ? _$createScopedValue18(() => _$createElement15(CodeBlockCopyButton, { code })) : null,
3451
- showFullscreen ? _$createScopedValue18(() => _$createElement15(MermaidFullscreenButton, { chart: code, config: mermaidContext?.config })) : null
3452
- ])
3464
+ () => _$createScopedValue18(() => _$createElement5("span", { className: cn2("ml-1 font-mono lowercase") }, "mermaid"))
3465
+ )),
3466
+ shouldShowMermaidControls ? _$createScopedValue18(() => _$createScopedElement16(
3467
+ "div",
3468
+ {
3469
+ className: cn2("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end")
3470
+ },
3471
+ () => _$createScopedValue18(() => _$createScopedElement16(
3472
+ "div",
3473
+ {
3474
+ className: cn2("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
3475
+ "data-streamdown": "mermaid-block-actions"
3476
+ },
3477
+ () => _$positionalChildren11([
3478
+ showDownload2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:d909645c", MermaidDownloadDropdown, { chart: code, config: mermaidContext?.config })) : null,
3479
+ showCopy2 ? _$createScopedValue18(() => _$createElementFromConfig13("c:b1c7f947", CodeBlockCopyButton, { code })) : null,
3480
+ showFullscreen ? _$createScopedValue18(() => _$createElementFromConfig13("c:3ff4690e", MermaidFullscreenButton, { chart: code, config: mermaidContext?.config })) : null
3481
+ ])
3482
+ ))
3483
+ )) : null,
3484
+ _$createScopedValue18(() => _$createScopedElement16(
3485
+ "div",
3486
+ {
3487
+ className: cn2("rounded-md border border-border bg-background")
3488
+ },
3489
+ () => _$createScopedValue18(() => _$createElementFromConfig13("c:18b8a90e", Mermaid2, {
3490
+ chart: code,
3491
+ config: mermaidContext?.config,
3492
+ showControls: showPanZoomControls
3493
+ }))
3453
3494
  ))
3454
- )) : null,
3455
- _$createScopedValue18(() => _$createScopedElement16(
3456
- "div",
3457
- {
3458
- className: cn2("rounded-md border border-border bg-background")
3459
- },
3460
- () => _$createScopedValue18(() => _$createElement15(Mermaid2, {
3461
- chart: code,
3462
- config: mermaidContext?.config,
3463
- showControls: showPanZoomControls
3464
- }))
3465
- ))
3466
- ])
3467
- ))));
3495
+ ])
3496
+ )),
3497
+ "c:cedf5a7f"
3498
+ ));
3468
3499
  }
3469
3500
  const showCodeControls = shouldShowControls(controlsConfig, "code");
3470
3501
  const showDownload = shouldShowCodeControl(controlsConfig, "download");
@@ -3481,9 +3512,10 @@ var CodeComponent = ({ node, className, children, ...props }) => {
3481
3512
  startLine
3482
3513
  },
3483
3514
  () => shouldShowCodeControls ? _$createScopedElement16(_$Fragment4, {}, () => _$positionalChildren11([
3484
- showDownload ? _$createScopedValue18(() => _$createElement15(CodeBlockDownloadButton, { code, language })) : null,
3485
- showCopy ? _$createElement15(CodeBlockCopyButton, {}) : null
3486
- ])) : null
3515
+ showDownload ? _$createScopedValue18(() => _$createElementFromConfig13("c:2aa19271", CodeBlockDownloadButton, { code, language })) : null,
3516
+ showCopy ? _$createElementFromConfig13("c:801704e7", CodeBlockCopyButton, {}) : null
3517
+ ])) : null,
3518
+ "c:3237a6ea"
3487
3519
  ));
3488
3520
  };
3489
3521
  var MemoCode = memo2(CodeComponent, (p, n) => p.className === n.className && sameNodePosition(p.node, n.node));
@@ -4117,8 +4149,13 @@ var Block = memo3(({
4117
4149
  animatePluginProp.setPrevContentLength(prevCount);
4118
4150
  }
4119
4151
  const normalizedContent = typeof content === "string" && shouldNormalizeHtmlIndentation ? normalizeHtmlIndentation(content) : content;
4120
- const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent));
4121
- return _$createScopedValue19(() => _$createScopedElement17(BlockIncompleteContext.Provider, { value: isIncomplete }, () => dir ? _$createScopedValue19(() => _$createScopedElement17("div", { dir, style: { display: "contents" } }, () => inner)) : inner));
4152
+ const inner = _$createScopedValue19(() => _$createScopedElement17(Markdown, { ...props }, () => normalizedContent, "c:3d95de58"));
4153
+ return _$createScopedValue19(() => _$createScopedElement17(
4154
+ BlockIncompleteContext,
4155
+ { value: isIncomplete },
4156
+ () => dir ? _$createScopedValue19(() => _$createScopedElement17("div", { dir, style: { display: "contents" } }, () => inner)) : inner,
4157
+ "c:3d14fe88"
4158
+ ));
4122
4159
  });
4123
4160
  Object.assign(Block, { displayName: "Block" });
4124
4161
  var Streamdown = memo3(({
@@ -4426,62 +4463,121 @@ var Streamdown = memo3(({
4426
4463
  ) : __hke$11.value);
4427
4464
  if (mode === "static") {
4428
4465
  animatePlugin?.setActiveBlock("static");
4429
- return _$createScopedValue19(() => _$createScopedElement17(TranslationsContext.Provider, { value: translationsValue }, () => _$createScopedValue19(() => _$createScopedElement17(PluginContext.Provider, { value: plugins ?? null }, () => _$createScopedValue19(() => _$createScopedElement17(StreamdownContext.Provider, { value: contextValue }, () => _$createScopedValue19(() => _$createScopedElement17(IconProvider, { icons: iconOverrides }, () => _$createScopedValue19(() => _$createScopedElement17(PrefixContext.Provider, { value: prefixedCn }, () => _$createScopedValue19(() => _$createScopedElement17(
4430
- "div",
4431
- {
4432
- className: prefixedCn("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", className),
4433
- dir: dir === "auto" ? detectTextDirection(processedChildren) : dir
4434
- },
4466
+ return _$createScopedValue19(() => _$createScopedElement17(
4467
+ TranslationsContext,
4468
+ { value: translationsValue },
4435
4469
  () => _$createScopedValue19(() => _$createScopedElement17(
4436
- Markdown,
4437
- {
4438
- components: mergedComponents,
4439
- rehypePlugins: mergedRehypePlugins,
4440
- remarkPlugins: mergedRemarkPlugins,
4441
- ...props
4442
- },
4443
- () => processedChildren
4444
- ))
4445
- ))))))))))));
4470
+ PluginContext,
4471
+ { value: plugins ?? null },
4472
+ () => _$createScopedValue19(() => _$createScopedElement17(
4473
+ StreamdownContext,
4474
+ { value: contextValue },
4475
+ () => _$createScopedValue19(() => _$createScopedElement17(
4476
+ IconProvider,
4477
+ { icons: iconOverrides },
4478
+ () => _$createScopedValue19(() => _$createScopedElement17(
4479
+ PrefixContext,
4480
+ { value: prefixedCn },
4481
+ () => _$createScopedValue19(() => _$createScopedElement17(
4482
+ "div",
4483
+ {
4484
+ className: prefixedCn("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", className),
4485
+ dir: dir === "auto" ? detectTextDirection(processedChildren) : dir
4486
+ },
4487
+ () => _$createScopedValue19(() => _$createScopedElement17(
4488
+ Markdown,
4489
+ {
4490
+ components: mergedComponents,
4491
+ rehypePlugins: mergedRehypePlugins,
4492
+ remarkPlugins: mergedRemarkPlugins,
4493
+ ...props
4494
+ },
4495
+ () => processedChildren,
4496
+ "c:87a87cf7"
4497
+ ))
4498
+ )),
4499
+ "c:83592d58"
4500
+ )),
4501
+ "c:b3ad250d"
4502
+ )),
4503
+ "c:6a5bc70f"
4504
+ )),
4505
+ "c:6044c2c4"
4506
+ )),
4507
+ "c:b2350cae"
4508
+ ));
4446
4509
  }
4447
- return _$createScopedValue19(() => _$createScopedElement17(TranslationsContext.Provider, { value: translationsValue }, () => _$createScopedValue19(() => _$createScopedElement17(PluginContext.Provider, { value: plugins ?? null }, () => _$createScopedValue19(() => _$createScopedElement17(StreamdownContext.Provider, { value: contextValue }, () => _$createScopedValue19(() => _$createScopedElement17(IconProvider, { icons: iconOverrides }, () => _$createScopedValue19(() => _$createScopedElement17(PrefixContext.Provider, { value: prefixedCn }, () => _$createScopedValue19(() => _$createScopedElement17(
4448
- "div",
4449
- {
4450
- className: prefixedCn(
4451
- "space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
4452
- caret && !shouldHideCaret ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null,
4453
- className
4454
- ),
4455
- style
4456
- },
4457
- () => _$positionalChildren12([
4458
- blocksToRender.length === 0 && caret && isAnimating && _$createElement16("span", {}),
4459
- blocksToRender.map((block, index) => {
4460
- const isLastBlock = index === blocksToRender.length - 1;
4461
- const isIncomplete = isAnimating && isLastBlock && hasIncompleteCodeFence(block);
4462
- return _$createElement16(BlockComponent, {
4463
- animatePlugin,
4464
- components: mergedComponents,
4465
- content: block,
4466
- dir: blockDirections?.[index] ?? (dir !== "auto" ? dir : void 0),
4467
- index,
4468
- isIncomplete,
4469
- key: blockKeys[index],
4470
- rehypePlugins: mergedRehypePlugins,
4471
- remarkPlugins: mergedRemarkPlugins,
4472
- shouldNormalizeHtmlIndentation,
4473
- shouldParseIncompleteMarkdown,
4474
- ...props
4475
- });
4476
- })
4477
- ])
4478
- ))))))))))));
4510
+ return _$createScopedValue19(() => _$createScopedElement17(
4511
+ TranslationsContext,
4512
+ { value: translationsValue },
4513
+ () => _$createScopedValue19(() => _$createScopedElement17(
4514
+ PluginContext,
4515
+ { value: plugins ?? null },
4516
+ () => _$createScopedValue19(() => _$createScopedElement17(
4517
+ StreamdownContext,
4518
+ { value: contextValue },
4519
+ () => _$createScopedValue19(() => _$createScopedElement17(
4520
+ IconProvider,
4521
+ { icons: iconOverrides },
4522
+ () => _$createScopedValue19(() => _$createScopedElement17(
4523
+ PrefixContext,
4524
+ { value: prefixedCn },
4525
+ () => _$createScopedValue19(() => _$createScopedElement17(
4526
+ "div",
4527
+ {
4528
+ className: prefixedCn(
4529
+ "space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",
4530
+ caret && !shouldHideCaret ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null,
4531
+ className
4532
+ ),
4533
+ style
4534
+ },
4535
+ () => _$positionalChildren12([
4536
+ blocksToRender.length === 0 && caret && isAnimating && _$createElement6("span", {}),
4537
+ blocksToRender.map((block, index) => {
4538
+ const isLastBlock = index === blocksToRender.length - 1;
4539
+ const isIncomplete = isAnimating && isLastBlock && hasIncompleteCodeFence(block);
4540
+ return _$createElementFromConfig14("c:0e7d24cb", BlockComponent, {
4541
+ animatePlugin,
4542
+ components: mergedComponents,
4543
+ content: block,
4544
+ dir: blockDirections?.[index] ?? (dir !== "auto" ? dir : void 0),
4545
+ index,
4546
+ isIncomplete,
4547
+ key: blockKeys[index],
4548
+ rehypePlugins: mergedRehypePlugins,
4549
+ remarkPlugins: mergedRemarkPlugins,
4550
+ shouldNormalizeHtmlIndentation,
4551
+ shouldParseIncompleteMarkdown,
4552
+ ...props
4553
+ });
4554
+ })
4555
+ ])
4556
+ )),
4557
+ "c:bfd3933c"
4558
+ )),
4559
+ "c:469aa280"
4560
+ )),
4561
+ "c:9aac48b7"
4562
+ )),
4563
+ "c:2dccd544"
4564
+ )),
4565
+ "c:90a5f7cf"
4566
+ ));
4479
4567
  });
4480
4568
  Object.assign(Streamdown, { displayName: "Streamdown" });
4481
4569
 
4482
4570
  // src/lib/mermaid/pan-zoom.tsrx
4483
4571
  import {
4484
- createElement as _$createElement17,
4572
+ createElementFromConfig as _$createElementFromConfig15,
4573
+ memoPublish as _$memoPublish8,
4574
+ memoSlot as _$memoSlot8,
4575
+ memoTake0 as _$memoTake03,
4576
+ memoTake1 as _$memoTake16,
4577
+ memoTake2 as _$memoTake25,
4578
+ memoTake3 as _$memoTake34
4579
+ } from "octane/internal/client";
4580
+ import {
4485
4581
  createScopedElement as _$createScopedElement18,
4486
4582
  createScopedValue as _$createScopedValue20,
4487
4583
  hookSlots as _$hookSlots21,
@@ -4492,14 +4588,6 @@ import {
4492
4588
  useState as useState12,
4493
4589
  withSlot as _$withSlot18
4494
4590
  } from "octane";
4495
- import {
4496
- memoPublish as _$memoPublish8,
4497
- memoSlot as _$memoSlot8,
4498
- memoTake0 as _$memoTake03,
4499
- memoTake1 as _$memoTake16,
4500
- memoTake2 as _$memoTake25,
4501
- memoTake3 as _$memoTake34
4502
- } from "octane/internal/client";
4503
4591
  var _hs$21 = /* @__PURE__ */ _$hookSlots21(19);
4504
4592
  var _h$021 = /* @__PURE__ */ Symbol(_hs$21);
4505
4593
  var _h$119 = /* @__PURE__ */ Symbol(_hs$21 + 1);
@@ -4531,8 +4619,8 @@ var PanZoom = ({
4531
4619
  fullscreen = false
4532
4620
  }) => {
4533
4621
  let __hks, __hkd0, __hkd1, __hke, __hks$, __hkd0$, __hkd1$, __hke$, __hks$2, __hkd0$2, __hkd1$2, __hke$2, __hks$3, __hkd0$3, __hke$3, __hks$4, __hkd0$4, __hkd1$3, __hke$4, __hks$5, __hkd0$5, __hke$5, __hks$6, __hkd0$6, __hkd1$4, __hkd2, __hke$6, __hks$7, __hke$7;
4534
- const { RotateCcwIcon: RotateCcwIcon2, ZoomInIcon: ZoomInIcon2, ZoomOutIcon: ZoomOutIcon2 } = _$withSlot18(_h$021, useIcons, _h$021);
4535
- const cn2 = _$withSlot18(_h$119, useCn, _h$119);
4622
+ const { RotateCcwIcon: RotateCcwIcon2, ZoomInIcon: ZoomInIcon2, ZoomOutIcon: ZoomOutIcon2 } = _$withSlot18(_h$021, useIcons);
4623
+ const cn2 = _$withSlot18(_h$119, useCn);
4536
4624
  const containerRef = useRef9(null, _h$217);
4537
4625
  const contentRef = useRef9(null, _h$314);
4538
4626
  const [zoom, setZoom] = useState12(initialZoom, _h$413);
@@ -4685,7 +4773,7 @@ var PanZoom = ({
4685
4773
  title: "Zoom in",
4686
4774
  type: "button"
4687
4775
  },
4688
- () => _$createElement17(ZoomInIcon2, { size: 16 })
4776
+ () => _$createElementFromConfig15("c:86059c57", ZoomInIcon2, { size: 16 })
4689
4777
  )),
4690
4778
  _$createScopedValue20(() => _$createScopedElement18(
4691
4779
  "button",
@@ -4696,7 +4784,7 @@ var PanZoom = ({
4696
4784
  title: "Zoom out",
4697
4785
  type: "button"
4698
4786
  },
4699
- () => _$createElement17(ZoomOutIcon2, { size: 16 })
4787
+ () => _$createElementFromConfig15("c:c5368084", ZoomOutIcon2, { size: 16 })
4700
4788
  )),
4701
4789
  _$createScopedValue20(() => _$createScopedElement18(
4702
4790
  "button",
@@ -4706,7 +4794,7 @@ var PanZoom = ({
4706
4794
  title: "Reset zoom and pan",
4707
4795
  type: "button"
4708
4796
  },
4709
- () => _$createElement17(RotateCcwIcon2, { size: 16 })
4797
+ () => _$createElementFromConfig15("c:1ed9eaeb", RotateCcwIcon2, { size: 16 })
4710
4798
  ))
4711
4799
  ])
4712
4800
  )) : null,
@@ -4749,7 +4837,7 @@ var Mermaid = ({
4749
4837
  fullscreen = false,
4750
4838
  showControls = true
4751
4839
  }) => {
4752
- const cn2 = _$withSlot19(_h$022, useCn, _h$022);
4840
+ const cn2 = _$withSlot19(_h$022, useCn);
4753
4841
  const [error, setError] = useState13(null, _h$120);
4754
4842
  const [isLoading, setIsLoading] = useState13(false, _h$218);
4755
4843
  const [svgContent, setSvgContent] = useState13("", _h$315);
@@ -4757,9 +4845,9 @@ var Mermaid = ({
4757
4845
  const [retryCount, setRetryCount] = useState13(0, _h$512);
4758
4846
  const activeRenderRef = useRef10(null, _h$611);
4759
4847
  const { mermaid: mermaidContext } = useContext15(StreamdownContext);
4760
- const mermaidPlugin = _$withSlot19(_h$78, useMermaidPlugin, _h$78);
4848
+ const mermaidPlugin = _$withSlot19(_h$78, useMermaidPlugin);
4761
4849
  const ErrorComponent = mermaidContext?.errorComponent;
4762
- const { shouldRender, containerRef } = _$withSlot19(_h$85, useDeferredRender, { immediate: fullscreen }, _h$85);
4850
+ const { shouldRender, containerRef } = _$withSlot19(_h$85, useDeferredRender, { immediate: fullscreen });
4763
4851
  useEffect12(
4764
4852
  () => {
4765
4853
  const renderRequest = {};
@@ -4816,7 +4904,7 @@ var Mermaid = ({
4816
4904
  _h$94
4817
4905
  );
4818
4906
  if (!(shouldRender || svgContent || lastValidSvg)) {
4819
- return _$createScopedValue21(() => _$createElement18("div", {
4907
+ return _$createScopedValue21(() => _$createElement7("div", {
4820
4908
  className: cn2("my-4 min-h-[200px]", className),
4821
4909
  ref: containerRef
4822
4910
  }));
@@ -4834,10 +4922,10 @@ var Mermaid = ({
4834
4922
  className: cn2("flex items-center space-x-2 text-muted-foreground")
4835
4923
  },
4836
4924
  () => _$positionalChildren14([
4837
- _$createScopedValue21(() => _$createElement18("div", {
4925
+ _$createScopedValue21(() => _$createElement7("div", {
4838
4926
  className: cn2("h-4 w-4 animate-spin rounded-full border-current border-b-2")
4839
4927
  })),
4840
- _$createScopedValue21(() => _$createElement18("span", { className: cn2("text-sm") }, "Loading diagram..."))
4928
+ _$createScopedValue21(() => _$createElement7("span", { className: cn2("text-sm") }, "Loading diagram..."))
4841
4929
  ])
4842
4930
  ))
4843
4931
  ));
@@ -4845,7 +4933,7 @@ var Mermaid = ({
4845
4933
  if (error && !svgContent && !lastValidSvg) {
4846
4934
  const retry = () => setRetryCount((count) => count + 1);
4847
4935
  if (ErrorComponent) {
4848
- return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElement18(ErrorComponent, { chart, error, retry }))));
4936
+ return _$createScopedValue21(() => _$createScopedElement19("div", { ref: containerRef }, () => _$createScopedValue21(() => _$createElementFromConfig16("c:41f09895", ErrorComponent, { chart, error, retry }))));
4849
4937
  }
4850
4938
  return _$createScopedValue21(() => _$createScopedElement19(
4851
4939
  "div",
@@ -4854,9 +4942,9 @@ var Mermaid = ({
4854
4942
  ref: containerRef
4855
4943
  },
4856
4944
  () => _$positionalChildren14([
4857
- _$createScopedValue21(() => _$createScopedElement19("p", { className: cn2("font-mono text-red-700 text-sm") }, () => _$positionalChildren14(["\n Mermaid Error:\n ", error]))),
4945
+ _$createScopedValue21(() => _$createScopedElement19("p", { className: cn2("font-mono text-red-700 text-sm") }, () => _$positionalChildren14(["Mermaid Error:", error]))),
4858
4946
  _$createScopedValue21(() => _$createScopedElement19("details", { className: cn2("mt-2") }, () => _$positionalChildren14([
4859
- _$createScopedValue21(() => _$createElement18("summary", { className: cn2("cursor-pointer text-red-600 text-xs") }, "\n Show Code\n ")),
4947
+ _$createScopedValue21(() => _$createElement7("summary", { className: cn2("cursor-pointer text-red-600 text-xs") }, "Show Code")),
4860
4948
  _$createScopedValue21(() => _$createScopedElement19(
4861
4949
  "pre",
4862
4950
  {
@@ -4886,12 +4974,13 @@ var Mermaid = ({
4886
4974
  showControls,
4887
4975
  zoomStep: 0.1
4888
4976
  },
4889
- () => _$createScopedValue21(() => _$createElement18("div", {
4977
+ () => _$createScopedValue21(() => _$createElement7("div", {
4890
4978
  "aria-label": "Mermaid chart",
4891
4979
  className: cn2("flex justify-center", fullscreen ? "size-full items-center" : null),
4892
4980
  dangerouslySetInnerHTML: { __html: displaySvg },
4893
4981
  role: "img"
4894
- }))
4982
+ })),
4983
+ "c:88f2b72c"
4895
4984
  ))
4896
4985
  ));
4897
4986
  };