impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.2

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 (212) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  11. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  12. package/dist/components/data/ag-grid-react/index.js +115 -111
  13. package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
  14. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  15. package/dist/impact-nova-components.css +85 -0
  16. package/dist/impact-nova.css +1 -1
  17. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  18. package/dist/llms/rules/installation.js +1 -1
  19. package/dist/llms/rules/requirements.js +1 -1
  20. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  21. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  22. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  23. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  24. package/dist/node_modules/bail/index.js +7 -0
  25. package/dist/node_modules/ccount/index.js +12 -0
  26. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  27. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  28. package/dist/node_modules/devlop/lib/default.js +8 -0
  29. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  30. package/dist/node_modules/extend/index.js +43 -0
  31. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  32. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  33. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  34. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  35. package/dist/node_modules/is-plain-obj/index.js +9 -0
  36. package/dist/node_modules/longest-streak/index.js +12 -0
  37. package/dist/node_modules/markdown-table/index.js +75 -0
  38. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  39. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  40. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  41. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  42. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  43. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  44. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  45. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  46. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  47. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  76. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  77. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  78. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  79. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  80. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  81. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  82. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  83. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  84. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  85. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  86. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  87. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  88. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  89. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  90. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  91. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  92. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  93. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  94. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  95. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  96. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  97. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  98. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  99. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  100. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  101. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  102. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  103. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  104. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  105. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  106. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  107. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  108. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  109. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  110. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  111. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  112. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  113. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  114. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  115. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  116. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  117. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  118. package/dist/node_modules/micromark/lib/parse.js +32 -0
  119. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  120. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  144. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  145. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  146. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  147. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  148. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  149. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  150. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  151. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  152. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  153. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  154. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  155. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  156. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  157. package/dist/node_modules/micromark-util-character/index.js +39 -0
  158. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  159. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  160. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  161. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  162. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  163. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  164. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  165. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  166. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  167. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  168. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  169. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  170. package/dist/node_modules/property-information/index.js +12 -0
  171. package/dist/node_modules/property-information/lib/aria.js +61 -0
  172. package/dist/node_modules/property-information/lib/find.js +33 -0
  173. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  174. package/dist/node_modules/property-information/lib/html.js +378 -0
  175. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  176. package/dist/node_modules/property-information/lib/svg.js +568 -0
  177. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  178. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  179. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  180. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  181. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  182. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  183. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  184. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  185. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  186. package/dist/node_modules/property-information/lib/xml.js +11 -0
  187. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  188. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  189. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  190. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  191. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  192. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  193. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  194. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  195. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  196. package/dist/node_modules/trim-lines/index.js +28 -0
  197. package/dist/node_modules/trough/lib/index.js +60 -0
  198. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  199. package/dist/node_modules/unified/lib/index.js +529 -0
  200. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  201. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  202. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  203. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  204. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  205. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  206. package/dist/node_modules/vfile/lib/index.js +406 -0
  207. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  208. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  209. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  210. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  211. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  212. package/package.json +1 -1
@@ -0,0 +1,632 @@
1
+ import { decodeNumericCharacterReference as Le } from "../../micromark-util-decode-numeric-character-reference/index.js";
2
+ import { decodeString as He } from "../../micromark-util-decode-string/index.js";
3
+ import { normalizeIdentifier as F } from "../../micromark-util-normalize-identifier/index.js";
4
+ import { decodeNamedCharacterReference as Pe } from "../../decode-named-character-reference/index.dom.js";
5
+ import { postprocess as Oe } from "../../micromark/lib/postprocess.js";
6
+ import { parse as De } from "../../micromark/lib/parse.js";
7
+ import { preprocess as Me } from "../../micromark/lib/preprocess.js";
8
+ import { stringifyPosition as I } from "../../unist-util-stringify-position/lib/index.js";
9
+ import { toString as Ve } from "../../mdast-util-to-string/lib/index.js";
10
+ const N = {}.hasOwnProperty;
11
+ function Ke(o, a, l) {
12
+ return a && typeof a == "object" && (l = a, a = void 0), Qe(l)(Oe(De(l).document().write(Me()(o, a, !0))));
13
+ }
14
+ function Qe(o) {
15
+ const a = {
16
+ afterExit: [],
17
+ beforeEnter: [],
18
+ transforms: [],
19
+ canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
20
+ enter: {
21
+ autolink: r(M),
22
+ autolinkProtocol: g,
23
+ autolinkEmail: g,
24
+ atxHeading: r(P),
25
+ blockQuote: r(Se),
26
+ characterEscape: g,
27
+ characterReference: g,
28
+ codeFenced: r(H),
29
+ codeFencedFenceInfo: h,
30
+ codeFencedFenceMeta: h,
31
+ codeIndented: r(H, h),
32
+ codeText: r(we, h),
33
+ codeTextData: g,
34
+ data: g,
35
+ codeFlowValue: g,
36
+ definition: r(Ee),
37
+ definitionDestinationString: h,
38
+ definitionLabelString: h,
39
+ definitionTitleString: h,
40
+ emphasis: r(Ie),
41
+ hardBreakEscape: r(O),
42
+ hardBreakTrailing: r(O),
43
+ htmlFlow: r(D, h),
44
+ htmlFlowData: g,
45
+ htmlText: r(D, h),
46
+ htmlTextData: g,
47
+ image: r(Te),
48
+ label: h,
49
+ link: r(M),
50
+ listItem: r(Fe),
51
+ listItemValue: W,
52
+ listOrdered: r(V, A),
53
+ listUnordered: r(V),
54
+ paragraph: r(ze),
55
+ reference: ge,
56
+ referenceString: h,
57
+ resourceDestinationString: h,
58
+ resourceTitleString: h,
59
+ setextHeading: r(P),
60
+ strong: r(Be),
61
+ thematicBreak: r(Ce)
62
+ },
63
+ exit: {
64
+ atxHeading: c(),
65
+ atxHeadingSequence: ee,
66
+ autolink: c(),
67
+ autolinkEmail: be,
68
+ autolinkProtocol: ye,
69
+ blockQuote: c(),
70
+ characterEscapeValue: m,
71
+ characterReferenceMarkerHexadecimal: L,
72
+ characterReferenceMarkerNumeric: L,
73
+ characterReferenceValue: me,
74
+ characterReference: xe,
75
+ codeFenced: c(K),
76
+ codeFencedFence: J,
77
+ codeFencedFenceInfo: $,
78
+ codeFencedFenceMeta: G,
79
+ codeFlowValue: m,
80
+ codeIndented: c(X),
81
+ codeText: c(ce),
82
+ codeTextData: m,
83
+ data: m,
84
+ definition: c(),
85
+ definitionDestinationString: v,
86
+ definitionLabelString: Y,
87
+ definitionTitleString: Z,
88
+ emphasis: c(),
89
+ hardBreakEscape: c(C),
90
+ hardBreakTrailing: c(C),
91
+ htmlFlow: c(se),
92
+ htmlFlowData: m,
93
+ htmlText: c(re),
94
+ htmlTextData: m,
95
+ image: c(le),
96
+ label: he,
97
+ labelText: de,
98
+ lineEnding: ae,
99
+ link: c(oe),
100
+ listItem: c(),
101
+ listOrdered: c(),
102
+ listUnordered: c(),
103
+ paragraph: c(),
104
+ referenceString: ke,
105
+ resourceDestinationString: fe,
106
+ resourceTitleString: ue,
107
+ resource: pe,
108
+ setextHeading: c(ie),
109
+ setextHeadingLineSequence: ne,
110
+ setextHeadingText: te,
111
+ strong: c(),
112
+ thematicBreak: c()
113
+ }
114
+ };
115
+ U(a, (o || {}).mdastExtensions || []);
116
+ const l = {};
117
+ return d;
118
+ function d(e) {
119
+ let t = {
120
+ type: "root",
121
+ children: [],
122
+ position: void 0
123
+ };
124
+ const n = {
125
+ stack: [t],
126
+ tokenStack: [],
127
+ config: a,
128
+ enter: B,
129
+ exit: R,
130
+ buffer: h,
131
+ resume: j,
132
+ data: l
133
+ }, i = [], f = [];
134
+ let s = -1;
135
+ for (; ++s < e.length; )
136
+ if (f.push(e[s]), e[s][1].type === "listOrdered" || e[s][1].type === "listUnordered")
137
+ if (e[s][0] === "enter")
138
+ i.push(f.length - 1);
139
+ else {
140
+ const u = i.pop();
141
+ _(f, u);
142
+ }
143
+ for (e = f, s = -1; ++s < e.length; ) {
144
+ const u = a[e[s][0]];
145
+ e[s][0] === "enter" && a.beforeEnter.length > 0 && z(a.beforeEnter, {
146
+ ...n,
147
+ sliceSerialize: e[s][2].sliceSerialize
148
+ }, e[s][1]), N.call(u, e[s][1].type) && u[e[s][1].type].call({
149
+ ...n,
150
+ sliceSerialize: e[s][2].sliceSerialize
151
+ }, e[s][1]), e[s][0] === "exit" && a.afterExit.length > 0 && z(a.afterExit, {
152
+ ...n,
153
+ sliceSerialize: e[s][2].sliceSerialize
154
+ }, e[s][1]);
155
+ }
156
+ if (n.tokenStack.length > 0) {
157
+ const u = n.tokenStack[n.tokenStack.length - 1];
158
+ (u[1] || q).call(n, void 0, u[0]);
159
+ }
160
+ for (t.position = {
161
+ start: y(e.length > 0 ? e[0][1].start : {
162
+ line: 1,
163
+ column: 1,
164
+ offset: 0
165
+ }),
166
+ end: y(e.length > 0 ? e[e.length - 2][1].end : {
167
+ line: 1,
168
+ column: 1,
169
+ offset: 0
170
+ })
171
+ }, s = -1; ++s < a.transforms.length; )
172
+ t = a.transforms[s](t) || t;
173
+ return t;
174
+ }
175
+ function z(e, t, n) {
176
+ let i = -1;
177
+ for (; ++i < e.length; )
178
+ e[i].call(t, n);
179
+ }
180
+ function _(e, t) {
181
+ const n = e.length - 1;
182
+ let i = t - 1, f = -1, s = !1, u, k, S, w;
183
+ const E = [];
184
+ for (; ++i <= n; ) {
185
+ const p = e[i];
186
+ switch (p[1].type) {
187
+ case "listUnordered":
188
+ case "listOrdered":
189
+ case "blockQuote": {
190
+ p[0] === "enter" ? f++ : f--, w = void 0;
191
+ break;
192
+ }
193
+ case "lineEndingBlank": {
194
+ p[0] === "enter" && (u && !w && !f && !S && (S = i), w = void 0);
195
+ break;
196
+ }
197
+ case "linePrefix":
198
+ case "listItemValue":
199
+ case "listItemMarker":
200
+ case "listItemPrefix":
201
+ case "listItemPrefixWhitespace":
202
+ break;
203
+ default:
204
+ w = void 0;
205
+ }
206
+ if (!f && p[0] === "enter" && p[1].type === "listItemPrefix" || f === -1 && p[0] === "exit" && (p[1].type === "listUnordered" || p[1].type === "listOrdered")) {
207
+ if (u) {
208
+ let b = i;
209
+ for (k = void 0; b--; ) {
210
+ const x = e[b];
211
+ if (x[1].type === "lineEnding" || x[1].type === "lineEndingBlank") {
212
+ if (x[0] === "exit") continue;
213
+ k && (e[k][1].type = "lineEndingBlank", s = !0), x[1].type = "lineEnding", k = b;
214
+ } else if (!(x[1].type === "linePrefix" || x[1].type === "blockQuotePrefix" || x[1].type === "blockQuotePrefixWhitespace" || x[1].type === "blockQuoteMarker" || x[1].type === "listItemIndent")) break;
215
+ }
216
+ S && (!k || S < k) && (u._spread = !0), u.end = Object.assign({}, k ? e[k][1].start : p[1].end), E.push({
217
+ at: k || i,
218
+ event: ["exit", u, p[2]]
219
+ });
220
+ }
221
+ if (p[1].type === "listItemPrefix") {
222
+ const b = {
223
+ type: "listItem",
224
+ _spread: !1,
225
+ start: Object.assign({}, p[1].start),
226
+ // @ts-expect-error: we’ll add `end` in a second.
227
+ end: void 0
228
+ };
229
+ u = b, E.push({
230
+ at: i,
231
+ event: ["enter", b, p[2]]
232
+ }), S = void 0, w = !0;
233
+ }
234
+ }
235
+ }
236
+ const Q = e.splice(t);
237
+ let T = 0;
238
+ for (i = -1; ++i < Q.length; ) {
239
+ for (; T < E.length && E[T].at === t + i; )
240
+ e.push(E[T++].event);
241
+ e.push(Q[i]);
242
+ }
243
+ e[t][1]._spread = s;
244
+ }
245
+ function r(e, t) {
246
+ return n;
247
+ function n(i) {
248
+ B.call(this, e(i), i), t && t.call(this, i);
249
+ }
250
+ }
251
+ function h() {
252
+ this.stack.push({
253
+ type: "fragment",
254
+ children: []
255
+ });
256
+ }
257
+ function B(e, t, n) {
258
+ this.stack[this.stack.length - 1].children.push(e), this.stack.push(e), this.tokenStack.push([t, n || void 0]), e.position = {
259
+ start: y(t.start),
260
+ // @ts-expect-error: `end` will be patched later.
261
+ end: void 0
262
+ };
263
+ }
264
+ function c(e) {
265
+ return t;
266
+ function t(n) {
267
+ e && e.call(this, n), R.call(this, n);
268
+ }
269
+ }
270
+ function R(e, t) {
271
+ const n = this.stack.pop(), i = this.tokenStack.pop();
272
+ if (!i)
273
+ throw new Error("Cannot close `" + e.type + "` (" + I({
274
+ start: e.start,
275
+ end: e.end
276
+ }) + "): it’s not open");
277
+ i[0].type !== e.type && (t ? t.call(this, e, i[0]) : (i[1] || q).call(this, e, i[0])), n.position.end = y(e.end);
278
+ }
279
+ function j() {
280
+ return Ve(this.stack.pop());
281
+ }
282
+ function A() {
283
+ this.data.expectingFirstListItemValue = !0;
284
+ }
285
+ function W(e) {
286
+ if (this.data.expectingFirstListItemValue) {
287
+ const t = this.stack[this.stack.length - 2];
288
+ t.start = Number.parseInt(this.sliceSerialize(e), 10), this.data.expectingFirstListItemValue = void 0;
289
+ }
290
+ }
291
+ function $() {
292
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
293
+ t.lang = e;
294
+ }
295
+ function G() {
296
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
297
+ t.meta = e;
298
+ }
299
+ function J() {
300
+ this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
301
+ }
302
+ function K() {
303
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
304
+ t.value = e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
305
+ }
306
+ function X() {
307
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
308
+ t.value = e.replace(/(\r?\n|\r)$/g, "");
309
+ }
310
+ function Y(e) {
311
+ const t = this.resume(), n = this.stack[this.stack.length - 1];
312
+ n.label = t, n.identifier = F(this.sliceSerialize(e)).toLowerCase();
313
+ }
314
+ function Z() {
315
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
316
+ t.title = e;
317
+ }
318
+ function v() {
319
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
320
+ t.url = e;
321
+ }
322
+ function ee(e) {
323
+ const t = this.stack[this.stack.length - 1];
324
+ if (!t.depth) {
325
+ const n = this.sliceSerialize(e).length;
326
+ t.depth = n;
327
+ }
328
+ }
329
+ function te() {
330
+ this.data.setextHeadingSlurpLineEnding = !0;
331
+ }
332
+ function ne(e) {
333
+ const t = this.stack[this.stack.length - 1];
334
+ t.depth = this.sliceSerialize(e).codePointAt(0) === 61 ? 1 : 2;
335
+ }
336
+ function ie() {
337
+ this.data.setextHeadingSlurpLineEnding = void 0;
338
+ }
339
+ function g(e) {
340
+ const n = this.stack[this.stack.length - 1].children;
341
+ let i = n[n.length - 1];
342
+ (!i || i.type !== "text") && (i = Re(), i.position = {
343
+ start: y(e.start),
344
+ // @ts-expect-error: we’ll add `end` later.
345
+ end: void 0
346
+ }, n.push(i)), this.stack.push(i);
347
+ }
348
+ function m(e) {
349
+ const t = this.stack.pop();
350
+ t.value += this.sliceSerialize(e), t.position.end = y(e.end);
351
+ }
352
+ function ae(e) {
353
+ const t = this.stack[this.stack.length - 1];
354
+ if (this.data.atHardBreak) {
355
+ const n = t.children[t.children.length - 1];
356
+ n.position.end = y(e.end), this.data.atHardBreak = void 0;
357
+ return;
358
+ }
359
+ !this.data.setextHeadingSlurpLineEnding && a.canContainEols.includes(t.type) && (g.call(this, e), m.call(this, e));
360
+ }
361
+ function C() {
362
+ this.data.atHardBreak = !0;
363
+ }
364
+ function se() {
365
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
366
+ t.value = e;
367
+ }
368
+ function re() {
369
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
370
+ t.value = e;
371
+ }
372
+ function ce() {
373
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
374
+ t.value = e;
375
+ }
376
+ function oe() {
377
+ const e = this.stack[this.stack.length - 1];
378
+ if (this.data.inReference) {
379
+ const t = this.data.referenceType || "shortcut";
380
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
381
+ } else
382
+ delete e.identifier, delete e.label;
383
+ this.data.referenceType = void 0;
384
+ }
385
+ function le() {
386
+ const e = this.stack[this.stack.length - 1];
387
+ if (this.data.inReference) {
388
+ const t = this.data.referenceType || "shortcut";
389
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
390
+ } else
391
+ delete e.identifier, delete e.label;
392
+ this.data.referenceType = void 0;
393
+ }
394
+ function de(e) {
395
+ const t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
396
+ n.label = He(t), n.identifier = F(t).toLowerCase();
397
+ }
398
+ function he() {
399
+ const e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
400
+ if (this.data.inReference = !0, n.type === "link") {
401
+ const i = e.children;
402
+ n.children = i;
403
+ } else
404
+ n.alt = t;
405
+ }
406
+ function fe() {
407
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
408
+ t.url = e;
409
+ }
410
+ function ue() {
411
+ const e = this.resume(), t = this.stack[this.stack.length - 1];
412
+ t.title = e;
413
+ }
414
+ function pe() {
415
+ this.data.inReference = void 0;
416
+ }
417
+ function ge() {
418
+ this.data.referenceType = "collapsed";
419
+ }
420
+ function ke(e) {
421
+ const t = this.resume(), n = this.stack[this.stack.length - 1];
422
+ n.label = t, n.identifier = F(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
423
+ }
424
+ function L(e) {
425
+ this.data.characterReferenceType = e.type;
426
+ }
427
+ function me(e) {
428
+ const t = this.sliceSerialize(e), n = this.data.characterReferenceType;
429
+ let i;
430
+ n ? (i = Le(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : i = Pe(t);
431
+ const f = this.stack[this.stack.length - 1];
432
+ f.value += i;
433
+ }
434
+ function xe(e) {
435
+ const t = this.stack.pop();
436
+ t.position.end = y(e.end);
437
+ }
438
+ function ye(e) {
439
+ m.call(this, e);
440
+ const t = this.stack[this.stack.length - 1];
441
+ t.url = this.sliceSerialize(e);
442
+ }
443
+ function be(e) {
444
+ m.call(this, e);
445
+ const t = this.stack[this.stack.length - 1];
446
+ t.url = "mailto:" + this.sliceSerialize(e);
447
+ }
448
+ function Se() {
449
+ return {
450
+ type: "blockquote",
451
+ children: [],
452
+ position: void 0
453
+ };
454
+ }
455
+ function H() {
456
+ return {
457
+ type: "code",
458
+ lang: null,
459
+ meta: null,
460
+ value: "",
461
+ position: void 0
462
+ };
463
+ }
464
+ function we() {
465
+ return {
466
+ type: "inlineCode",
467
+ value: "",
468
+ position: void 0
469
+ };
470
+ }
471
+ function Ee() {
472
+ return {
473
+ type: "definition",
474
+ identifier: "",
475
+ label: null,
476
+ title: null,
477
+ url: "",
478
+ position: void 0
479
+ };
480
+ }
481
+ function Ie() {
482
+ return {
483
+ type: "emphasis",
484
+ children: [],
485
+ position: void 0
486
+ };
487
+ }
488
+ function P() {
489
+ return {
490
+ type: "heading",
491
+ // @ts-expect-error `depth` will be set later.
492
+ depth: 0,
493
+ children: [],
494
+ position: void 0
495
+ };
496
+ }
497
+ function O() {
498
+ return {
499
+ type: "break",
500
+ position: void 0
501
+ };
502
+ }
503
+ function D() {
504
+ return {
505
+ type: "html",
506
+ value: "",
507
+ position: void 0
508
+ };
509
+ }
510
+ function Te() {
511
+ return {
512
+ type: "image",
513
+ title: null,
514
+ url: "",
515
+ alt: null,
516
+ position: void 0
517
+ };
518
+ }
519
+ function M() {
520
+ return {
521
+ type: "link",
522
+ title: null,
523
+ url: "",
524
+ children: [],
525
+ position: void 0
526
+ };
527
+ }
528
+ function V(e) {
529
+ return {
530
+ type: "list",
531
+ ordered: e.type === "listOrdered",
532
+ start: null,
533
+ spread: e._spread,
534
+ children: [],
535
+ position: void 0
536
+ };
537
+ }
538
+ function Fe(e) {
539
+ return {
540
+ type: "listItem",
541
+ spread: e._spread,
542
+ checked: null,
543
+ children: [],
544
+ position: void 0
545
+ };
546
+ }
547
+ function ze() {
548
+ return {
549
+ type: "paragraph",
550
+ children: [],
551
+ position: void 0
552
+ };
553
+ }
554
+ function Be() {
555
+ return {
556
+ type: "strong",
557
+ children: [],
558
+ position: void 0
559
+ };
560
+ }
561
+ function Re() {
562
+ return {
563
+ type: "text",
564
+ value: "",
565
+ position: void 0
566
+ };
567
+ }
568
+ function Ce() {
569
+ return {
570
+ type: "thematicBreak",
571
+ position: void 0
572
+ };
573
+ }
574
+ }
575
+ function y(o) {
576
+ return {
577
+ line: o.line,
578
+ column: o.column,
579
+ offset: o.offset
580
+ };
581
+ }
582
+ function U(o, a) {
583
+ let l = -1;
584
+ for (; ++l < a.length; ) {
585
+ const d = a[l];
586
+ Array.isArray(d) ? U(o, d) : qe(o, d);
587
+ }
588
+ }
589
+ function qe(o, a) {
590
+ let l;
591
+ for (l in a)
592
+ if (N.call(a, l))
593
+ switch (l) {
594
+ case "canContainEols": {
595
+ const d = a[l];
596
+ d && o[l].push(...d);
597
+ break;
598
+ }
599
+ case "transforms": {
600
+ const d = a[l];
601
+ d && o[l].push(...d);
602
+ break;
603
+ }
604
+ case "afterExit":
605
+ case "beforeEnter": {
606
+ const d = a[l];
607
+ d && o[l].push(d);
608
+ break;
609
+ }
610
+ case "enter":
611
+ case "exit": {
612
+ const d = a[l];
613
+ d && Object.assign(o[l], d);
614
+ break;
615
+ }
616
+ }
617
+ }
618
+ function q(o, a) {
619
+ throw o ? new Error("Cannot close `" + o.type + "` (" + I({
620
+ start: o.start,
621
+ end: o.end
622
+ }) + "): a different token (`" + a.type + "`, " + I({
623
+ start: a.start,
624
+ end: a.end
625
+ }) + ") is open") : new Error("Cannot close document, a token (`" + a.type + "`, " + I({
626
+ start: a.start,
627
+ end: a.end
628
+ }) + ") is still open");
629
+ }
630
+ export {
631
+ Ke as fromMarkdown
632
+ };
@@ -0,0 +1,29 @@
1
+ import { gfmAutolinkLiteralFromMarkdown as r, gfmAutolinkLiteralToMarkdown as m } from "../../mdast-util-gfm-autolink-literal/lib/index.js";
2
+ import { gfmFootnoteFromMarkdown as t, gfmFootnoteToMarkdown as n } from "../../mdast-util-gfm-footnote/lib/index.js";
3
+ import { gfmStrikethroughFromMarkdown as f, gfmStrikethroughToMarkdown as a } from "../../mdast-util-gfm-strikethrough/lib/index.js";
4
+ import { gfmTableFromMarkdown as k, gfmTableToMarkdown as e } from "../../mdast-util-gfm-table/lib/index.js";
5
+ import { gfmTaskListItemFromMarkdown as i, gfmTaskListItemToMarkdown as g } from "../../mdast-util-gfm-task-list-item/lib/index.js";
6
+ function F() {
7
+ return [
8
+ r(),
9
+ t(),
10
+ f(),
11
+ k(),
12
+ i()
13
+ ];
14
+ }
15
+ function l(o) {
16
+ return {
17
+ extensions: [
18
+ m(),
19
+ n(o),
20
+ a(),
21
+ e(o),
22
+ g()
23
+ ]
24
+ };
25
+ }
26
+ export {
27
+ F as gfmFromMarkdown,
28
+ l as gfmToMarkdown
29
+ };