@pierre/diffs 1.1.0-beta.8 → 1.1.0

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 (217) hide show
  1. package/README.md +7 -18
  2. package/dist/components/AdvancedVirtualizedFileDiff.js +2 -7
  3. package/dist/components/AdvancedVirtualizedFileDiff.js.map +1 -1
  4. package/dist/components/AdvancedVirtualizer.js +1 -1
  5. package/dist/components/AdvancedVirtualizer.js.map +1 -1
  6. package/dist/components/File.d.ts +17 -7
  7. package/dist/components/File.d.ts.map +1 -1
  8. package/dist/components/File.js +111 -54
  9. package/dist/components/File.js.map +1 -1
  10. package/dist/components/FileDiff.d.ts +32 -14
  11. package/dist/components/FileDiff.d.ts.map +1 -1
  12. package/dist/components/FileDiff.js +156 -81
  13. package/dist/components/FileDiff.js.map +1 -1
  14. package/dist/components/UnresolvedFile.d.ts +60 -0
  15. package/dist/components/UnresolvedFile.d.ts.map +1 -0
  16. package/dist/components/UnresolvedFile.js +280 -0
  17. package/dist/components/UnresolvedFile.js.map +1 -0
  18. package/dist/components/VirtualizedFile.js +8 -5
  19. package/dist/components/VirtualizedFile.js.map +1 -1
  20. package/dist/components/VirtualizedFileDiff.d.ts +1 -1
  21. package/dist/components/VirtualizedFileDiff.d.ts.map +1 -1
  22. package/dist/components/VirtualizedFileDiff.js +15 -11
  23. package/dist/components/VirtualizedFileDiff.js.map +1 -1
  24. package/dist/components/Virtualizer.d.ts +3 -1
  25. package/dist/components/Virtualizer.d.ts.map +1 -1
  26. package/dist/components/Virtualizer.js +50 -24
  27. package/dist/components/Virtualizer.js.map +1 -1
  28. package/dist/constants.d.ts +3 -1
  29. package/dist/constants.d.ts.map +1 -1
  30. package/dist/constants.js +8 -1
  31. package/dist/constants.js.map +1 -1
  32. package/dist/highlighter/shared_highlighter.d.ts +4 -2
  33. package/dist/highlighter/shared_highlighter.d.ts.map +1 -1
  34. package/dist/highlighter/shared_highlighter.js +15 -7
  35. package/dist/highlighter/shared_highlighter.js.map +1 -1
  36. package/dist/index.d.ts +9 -7
  37. package/dist/index.js +8 -6
  38. package/dist/managers/InteractionManager.d.ts +146 -0
  39. package/dist/managers/InteractionManager.d.ts.map +1 -0
  40. package/dist/managers/InteractionManager.js +813 -0
  41. package/dist/managers/InteractionManager.js.map +1 -0
  42. package/dist/managers/ResizeManager.d.ts +0 -2
  43. package/dist/managers/ResizeManager.d.ts.map +1 -1
  44. package/dist/managers/ResizeManager.js +43 -32
  45. package/dist/managers/ResizeManager.js.map +1 -1
  46. package/dist/react/File.d.ts +2 -0
  47. package/dist/react/File.d.ts.map +1 -1
  48. package/dist/react/File.js +3 -1
  49. package/dist/react/File.js.map +1 -1
  50. package/dist/react/FileDiff.d.ts +2 -0
  51. package/dist/react/FileDiff.d.ts.map +1 -1
  52. package/dist/react/FileDiff.js +3 -1
  53. package/dist/react/FileDiff.js.map +1 -1
  54. package/dist/react/MultiFileDiff.d.ts +2 -0
  55. package/dist/react/MultiFileDiff.d.ts.map +1 -1
  56. package/dist/react/MultiFileDiff.js +3 -1
  57. package/dist/react/MultiFileDiff.js.map +1 -1
  58. package/dist/react/PatchDiff.d.ts +2 -0
  59. package/dist/react/PatchDiff.d.ts.map +1 -1
  60. package/dist/react/PatchDiff.js +3 -1
  61. package/dist/react/PatchDiff.js.map +1 -1
  62. package/dist/react/UnresolvedFile.d.ts +36 -0
  63. package/dist/react/UnresolvedFile.d.ts.map +1 -0
  64. package/dist/react/UnresolvedFile.js +42 -0
  65. package/dist/react/UnresolvedFile.js.map +1 -0
  66. package/dist/react/constants.d.ts +3 -2
  67. package/dist/react/constants.d.ts.map +1 -1
  68. package/dist/react/constants.js +3 -2
  69. package/dist/react/constants.js.map +1 -1
  70. package/dist/react/index.d.ts +4 -3
  71. package/dist/react/index.js +3 -2
  72. package/dist/react/types.d.ts +11 -2
  73. package/dist/react/types.d.ts.map +1 -1
  74. package/dist/react/utils/renderDiffChildren.d.ts +16 -5
  75. package/dist/react/utils/renderDiffChildren.d.ts.map +1 -1
  76. package/dist/react/utils/renderDiffChildren.js +34 -7
  77. package/dist/react/utils/renderDiffChildren.js.map +1 -1
  78. package/dist/react/utils/renderFileChildren.d.ts +5 -1
  79. package/dist/react/utils/renderFileChildren.d.ts.map +1 -1
  80. package/dist/react/utils/renderFileChildren.js +13 -7
  81. package/dist/react/utils/renderFileChildren.js.map +1 -1
  82. package/dist/react/utils/useFileDiffInstance.d.ts +1 -2
  83. package/dist/react/utils/useFileDiffInstance.d.ts.map +1 -1
  84. package/dist/react/utils/useFileDiffInstance.js +2 -2
  85. package/dist/react/utils/useFileDiffInstance.js.map +1 -1
  86. package/dist/react/utils/useFileInstance.d.ts +1 -2
  87. package/dist/react/utils/useFileInstance.d.ts.map +1 -1
  88. package/dist/react/utils/useFileInstance.js.map +1 -1
  89. package/dist/react/utils/useUnresolvedFileInstance.d.ts +33 -0
  90. package/dist/react/utils/useUnresolvedFileInstance.d.ts.map +1 -0
  91. package/dist/react/utils/useUnresolvedFileInstance.js +87 -0
  92. package/dist/react/utils/useUnresolvedFileInstance.js.map +1 -0
  93. package/dist/renderers/DiffHunksRenderer.d.ts +50 -6
  94. package/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
  95. package/dist/renderers/DiffHunksRenderer.js +146 -45
  96. package/dist/renderers/DiffHunksRenderer.js.map +1 -1
  97. package/dist/renderers/FileRenderer.js +1 -1
  98. package/dist/renderers/UnresolvedFileHunksRenderer.d.ts +46 -0
  99. package/dist/renderers/UnresolvedFileHunksRenderer.d.ts.map +1 -0
  100. package/dist/renderers/UnresolvedFileHunksRenderer.js +207 -0
  101. package/dist/renderers/UnresolvedFileHunksRenderer.js.map +1 -0
  102. package/dist/shiki-stream/stream.d.ts +1 -1
  103. package/dist/shiki-stream/stream.d.ts.map +1 -1
  104. package/dist/shiki-stream/stream.js.map +1 -1
  105. package/dist/shiki-stream/tokenizer.d.ts +1 -1
  106. package/dist/shiki-stream/tokenizer.d.ts.map +1 -1
  107. package/dist/shiki-stream/tokenizer.js.map +1 -1
  108. package/dist/shiki-stream/types.d.ts +1 -1
  109. package/dist/shiki-stream/types.d.ts.map +1 -1
  110. package/dist/sprite.d.ts +2 -2
  111. package/dist/sprite.d.ts.map +1 -1
  112. package/dist/sprite.js +3 -0
  113. package/dist/sprite.js.map +1 -1
  114. package/dist/ssr/index.d.ts +3 -3
  115. package/dist/ssr/index.js +2 -2
  116. package/dist/ssr/preloadDiffs.d.ts +23 -14
  117. package/dist/ssr/preloadDiffs.d.ts.map +1 -1
  118. package/dist/ssr/preloadDiffs.js +40 -14
  119. package/dist/ssr/preloadDiffs.js.map +1 -1
  120. package/dist/style.js +1 -1
  121. package/dist/style.js.map +1 -1
  122. package/dist/types.d.ts +29 -2
  123. package/dist/types.d.ts.map +1 -1
  124. package/dist/utils/areMergeConflictActionsEqual.d.ts +7 -0
  125. package/dist/utils/areMergeConflictActionsEqual.d.ts.map +1 -0
  126. package/dist/utils/areMergeConflictActionsEqual.js +11 -0
  127. package/dist/utils/areMergeConflictActionsEqual.js.map +1 -0
  128. package/dist/utils/arePrePropertiesEqual.js +10 -1
  129. package/dist/utils/arePrePropertiesEqual.js.map +1 -1
  130. package/dist/utils/areSelectionPointsEqual.d.ts +7 -0
  131. package/dist/utils/areSelectionPointsEqual.d.ts.map +1 -0
  132. package/dist/utils/areSelectionPointsEqual.js +8 -0
  133. package/dist/utils/areSelectionPointsEqual.js.map +1 -0
  134. package/dist/utils/areSelectionsEqual.d.ts +1 -1
  135. package/dist/utils/areSelectionsEqual.d.ts.map +1 -1
  136. package/dist/utils/areSelectionsEqual.js.map +1 -1
  137. package/dist/utils/createFileHeaderElement.js +5 -2
  138. package/dist/utils/createFileHeaderElement.js.map +1 -1
  139. package/dist/utils/createGutterUtilityContentNode.d.ts +5 -0
  140. package/dist/utils/createGutterUtilityContentNode.d.ts.map +1 -0
  141. package/dist/utils/createGutterUtilityContentNode.js +15 -0
  142. package/dist/utils/createGutterUtilityContentNode.js.map +1 -0
  143. package/dist/utils/createGutterUtilityElement.d.ts +7 -0
  144. package/dist/utils/createGutterUtilityElement.d.ts.map +1 -0
  145. package/dist/utils/createGutterUtilityElement.js +20 -0
  146. package/dist/utils/createGutterUtilityElement.js.map +1 -0
  147. package/dist/utils/createPreElement.d.ts +2 -1
  148. package/dist/utils/createPreElement.d.ts.map +1 -1
  149. package/dist/utils/createPreElement.js +2 -1
  150. package/dist/utils/createPreElement.js.map +1 -1
  151. package/dist/utils/createSeparator.js +1 -1
  152. package/dist/utils/createSeparator.js.map +1 -1
  153. package/dist/utils/createWindowFromScrollPosition.js +12 -11
  154. package/dist/utils/createWindowFromScrollPosition.js.map +1 -1
  155. package/dist/utils/getHighlighterOptions.d.ts +7 -2
  156. package/dist/utils/getHighlighterOptions.d.ts.map +1 -1
  157. package/dist/utils/getHighlighterOptions.js +3 -2
  158. package/dist/utils/getHighlighterOptions.js.map +1 -1
  159. package/dist/utils/getMergeConflictActionSlotName.d.ts +16 -0
  160. package/dist/utils/getMergeConflictActionSlotName.d.ts.map +1 -0
  161. package/dist/utils/getMergeConflictActionSlotName.js +8 -0
  162. package/dist/utils/getMergeConflictActionSlotName.js.map +1 -0
  163. package/dist/utils/getMergeConflictLineTypes.d.ts +15 -0
  164. package/dist/utils/getMergeConflictLineTypes.d.ts.map +1 -0
  165. package/dist/utils/getMergeConflictLineTypes.js +81 -0
  166. package/dist/utils/getMergeConflictLineTypes.js.map +1 -0
  167. package/dist/utils/getOrCreateCodeNode.d.ts +3 -1
  168. package/dist/utils/getOrCreateCodeNode.d.ts.map +1 -1
  169. package/dist/utils/getOrCreateCodeNode.js +5 -3
  170. package/dist/utils/getOrCreateCodeNode.js.map +1 -1
  171. package/dist/utils/hast_utils.d.ts +2 -2
  172. package/dist/utils/hast_utils.d.ts.map +1 -1
  173. package/dist/utils/hast_utils.js +3 -2
  174. package/dist/utils/hast_utils.js.map +1 -1
  175. package/dist/utils/parseMergeConflictDiffFromFile.d.ts +26 -0
  176. package/dist/utils/parseMergeConflictDiffFromFile.d.ts.map +1 -0
  177. package/dist/utils/parseMergeConflictDiffFromFile.js +143 -0
  178. package/dist/utils/parseMergeConflictDiffFromFile.js.map +1 -0
  179. package/dist/utils/resolveMergeConflict.d.ts +7 -0
  180. package/dist/utils/resolveMergeConflict.d.ts.map +1 -0
  181. package/dist/utils/resolveMergeConflict.js +30 -0
  182. package/dist/utils/resolveMergeConflict.js.map +1 -0
  183. package/dist/utils/resolveVirtualFileMetrics.js +1 -0
  184. package/dist/utils/resolveVirtualFileMetrics.js.map +1 -1
  185. package/dist/utils/setWrapperNodeProps.d.ts +2 -1
  186. package/dist/utils/setWrapperNodeProps.d.ts.map +1 -1
  187. package/dist/utils/setWrapperNodeProps.js +5 -1
  188. package/dist/utils/setWrapperNodeProps.js.map +1 -1
  189. package/dist/worker/WorkerPoolManager.d.ts +4 -2
  190. package/dist/worker/WorkerPoolManager.d.ts.map +1 -1
  191. package/dist/worker/WorkerPoolManager.js +16 -9
  192. package/dist/worker/WorkerPoolManager.js.map +1 -1
  193. package/dist/worker/types.d.ts +3 -1
  194. package/dist/worker/types.d.ts.map +1 -1
  195. package/dist/worker/wasm-BlUZCxHM.js +10 -0
  196. package/dist/worker/wasm-BlUZCxHM.js.map +1 -0
  197. package/dist/worker/worker-portable.js +10546 -10106
  198. package/dist/worker/worker-portable.js.map +1 -1
  199. package/dist/worker/worker.js +27 -19
  200. package/dist/worker/worker.js.map +1 -1
  201. package/package.json +3 -7
  202. package/dist/managers/LineSelectionManager.d.ts +0 -64
  203. package/dist/managers/LineSelectionManager.d.ts.map +0 -1
  204. package/dist/managers/LineSelectionManager.js +0 -270
  205. package/dist/managers/LineSelectionManager.js.map +0 -1
  206. package/dist/managers/MouseEventManager.d.ts +0 -71
  207. package/dist/managers/MouseEventManager.d.ts.map +0 -1
  208. package/dist/managers/MouseEventManager.js +0 -358
  209. package/dist/managers/MouseEventManager.js.map +0 -1
  210. package/dist/themes/pierre-dark.js +0 -1328
  211. package/dist/themes/pierre-dark.js.map +0 -1
  212. package/dist/themes/pierre-light.js +0 -1328
  213. package/dist/themes/pierre-light.js.map +0 -1
  214. package/dist/utils/createHoverContentNode.d.ts +0 -5
  215. package/dist/utils/createHoverContentNode.d.ts.map +0 -1
  216. package/dist/utils/createHoverContentNode.js +0 -15
  217. package/dist/utils/createHoverContentNode.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { CodeToTokenTransformStreamOptions, RecallToken } from "./types.js";
2
2
  import { ShikiStreamTokenizer } from "./tokenizer.js";
3
- import { ThemedToken } from "@shikijs/core";
3
+ import { ThemedToken } from "shiki/core";
4
4
 
5
5
  //#region src/shiki-stream/stream.d.ts
6
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","names":["ThemedToken","ShikiStreamTokenizer","CodeToTokenTransformStreamOptions","RecallToken","CodeToTokenTransformStream","TransformStream"],"sources":["../../src/shiki-stream/stream.d.ts"],"sourcesContent":["import type { ThemedToken } from '@shikijs/core';\nimport { ShikiStreamTokenizer } from './tokenizer';\nimport type { CodeToTokenTransformStreamOptions, RecallToken } from './types';\n/**\n * Create a transform stream that takes code chunks and emits themed tokens.\n */\nexport declare class CodeToTokenTransformStream extends TransformStream<string, ThemedToken | RecallToken> {\n readonly tokenizer: ShikiStreamTokenizer;\n readonly options: CodeToTokenTransformStreamOptions;\n constructor(options: CodeToTokenTransformStreamOptions);\n}\n//# sourceMappingURL=stream.d.ts.map"],"mappings":";;;;;;;;AAMA;AAAgFA,cAA3DI,0BAAAA,SAAmCC,eAAwBL,CAAAA,MAAAA,EAAAA,WAAAA,GAAcG,WAAdH,CAAAA,CAAAA;EAAcG,SAAAA,SAAAA,EACtEF,oBADsEE;EACtEF,SAAAA,OAAAA,EACFC,iCADED;EACFC,WAAAA,CAAAA,OAAAA,EACGA,iCADHA"}
1
+ {"version":3,"file":"stream.d.ts","names":["ThemedToken","ShikiStreamTokenizer","CodeToTokenTransformStreamOptions","RecallToken","CodeToTokenTransformStream","TransformStream"],"sources":["../../src/shiki-stream/stream.d.ts"],"sourcesContent":["import type { ThemedToken } from 'shiki/core';\nimport { ShikiStreamTokenizer } from './tokenizer';\nimport type { CodeToTokenTransformStreamOptions, RecallToken } from './types';\n/**\n * Create a transform stream that takes code chunks and emits themed tokens.\n */\nexport declare class CodeToTokenTransformStream extends TransformStream<string, ThemedToken | RecallToken> {\n readonly tokenizer: ShikiStreamTokenizer;\n readonly options: CodeToTokenTransformStreamOptions;\n constructor(options: CodeToTokenTransformStreamOptions);\n}\n//# sourceMappingURL=stream.d.ts.map"],"mappings":";;;;;;;;AAMA;AAAgFA,cAA3DI,0BAAAA,SAAmCC,eAAwBL,CAAAA,MAAAA,EAAAA,WAAAA,GAAcG,WAAdH,CAAAA,CAAAA;EAAcG,SAAAA,SAAAA,EACtEF,oBADsEE;EACtEF,SAAAA,OAAAA,EACFC,iCADED;EACFC,WAAAA,CAAAA,OAAAA,EACGA,iCADHA"}
@@ -1 +1 @@
1
- {"version":3,"file":"stream.js","names":[],"sources":["../../src/shiki-stream/stream.ts"],"sourcesContent":["import type { ThemedToken } from '@shikijs/core';\n\nimport { ShikiStreamTokenizer } from './tokenizer';\nimport type { CodeToTokenTransformStreamOptions, RecallToken } from './types';\n\n/**\n * Create a transform stream that takes code chunks and emits themed tokens.\n */\nexport class CodeToTokenTransformStream extends TransformStream<\n string,\n ThemedToken | RecallToken\n> {\n readonly tokenizer: ShikiStreamTokenizer;\n readonly options: CodeToTokenTransformStreamOptions;\n\n constructor(options: CodeToTokenTransformStreamOptions) {\n const tokenizer = new ShikiStreamTokenizer(options);\n const { allowRecalls = false } = options;\n\n super({\n async transform(chunk, controller) {\n const {\n stable,\n unstable: buffer,\n recall,\n } = await tokenizer.enqueue(chunk);\n if (allowRecalls && recall > 0) {\n // oxlint-disable-next-line typescript/no-explicit-any\n controller.enqueue({ recall } as any);\n }\n for (const token of stable) {\n controller.enqueue(token);\n }\n if (allowRecalls) {\n for (const token of buffer) {\n controller.enqueue(token);\n }\n }\n },\n // oxlint-disable-next-line typescript/require-await\n async flush(controller) {\n const { stable } = tokenizer.close();\n // if allow recalls, the tokens should already be sent\n if (!allowRecalls) {\n for (const token of stable) {\n controller.enqueue(token);\n }\n }\n },\n });\n\n this.tokenizer = tokenizer;\n this.options = options;\n }\n}\n"],"mappings":";;;;;;AAQA,IAAa,6BAAb,cAAgD,gBAG9C;CACA,AAAS;CACT,AAAS;CAET,YAAY,SAA4C;EACtD,MAAM,YAAY,IAAI,qBAAqB,QAAQ;EACnD,MAAM,EAAE,eAAe,UAAU;AAEjC,QAAM;GACJ,MAAM,UAAU,OAAO,YAAY;IACjC,MAAM,EACJ,QACA,UAAU,QACV,WACE,MAAM,UAAU,QAAQ,MAAM;AAClC,QAAI,gBAAgB,SAAS,EAE3B,YAAW,QAAQ,EAAE,QAAQ,CAAQ;AAEvC,SAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;AAE3B,QAAI,aACF,MAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;;GAK/B,MAAM,MAAM,YAAY;IACtB,MAAM,EAAE,WAAW,UAAU,OAAO;AAEpC,QAAI,CAAC,aACH,MAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;;GAIhC,CAAC;AAEF,OAAK,YAAY;AACjB,OAAK,UAAU"}
1
+ {"version":3,"file":"stream.js","names":[],"sources":["../../src/shiki-stream/stream.ts"],"sourcesContent":["import type { ThemedToken } from 'shiki/core';\n\nimport { ShikiStreamTokenizer } from './tokenizer';\nimport type { CodeToTokenTransformStreamOptions, RecallToken } from './types';\n\n/**\n * Create a transform stream that takes code chunks and emits themed tokens.\n */\nexport class CodeToTokenTransformStream extends TransformStream<\n string,\n ThemedToken | RecallToken\n> {\n readonly tokenizer: ShikiStreamTokenizer;\n readonly options: CodeToTokenTransformStreamOptions;\n\n constructor(options: CodeToTokenTransformStreamOptions) {\n const tokenizer = new ShikiStreamTokenizer(options);\n const { allowRecalls = false } = options;\n\n super({\n async transform(chunk, controller) {\n const {\n stable,\n unstable: buffer,\n recall,\n } = await tokenizer.enqueue(chunk);\n if (allowRecalls && recall > 0) {\n // oxlint-disable-next-line typescript/no-explicit-any\n controller.enqueue({ recall } as any);\n }\n for (const token of stable) {\n controller.enqueue(token);\n }\n if (allowRecalls) {\n for (const token of buffer) {\n controller.enqueue(token);\n }\n }\n },\n // oxlint-disable-next-line typescript/require-await\n async flush(controller) {\n const { stable } = tokenizer.close();\n // if allow recalls, the tokens should already be sent\n if (!allowRecalls) {\n for (const token of stable) {\n controller.enqueue(token);\n }\n }\n },\n });\n\n this.tokenizer = tokenizer;\n this.options = options;\n }\n}\n"],"mappings":";;;;;;AAQA,IAAa,6BAAb,cAAgD,gBAG9C;CACA,AAAS;CACT,AAAS;CAET,YAAY,SAA4C;EACtD,MAAM,YAAY,IAAI,qBAAqB,QAAQ;EACnD,MAAM,EAAE,eAAe,UAAU;AAEjC,QAAM;GACJ,MAAM,UAAU,OAAO,YAAY;IACjC,MAAM,EACJ,QACA,UAAU,QACV,WACE,MAAM,UAAU,QAAQ,MAAM;AAClC,QAAI,gBAAgB,SAAS,EAE3B,YAAW,QAAQ,EAAE,QAAQ,CAAQ;AAEvC,SAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;AAE3B,QAAI,aACF,MAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;;GAK/B,MAAM,MAAM,YAAY;IACtB,MAAM,EAAE,WAAW,UAAU,OAAO;AAEpC,QAAI,CAAC,aACH,MAAK,MAAM,SAAS,OAClB,YAAW,QAAQ,MAAM;;GAIhC,CAAC;AAEF,OAAK,YAAY;AACjB,OAAK,UAAU"}
@@ -1,5 +1,5 @@
1
1
  import { ShikiStreamTokenizerEnqueueResult, ShikiStreamTokenizerOptions } from "./types.js";
2
- import { GrammarState, ThemedToken } from "@shikijs/core";
2
+ import { GrammarState, ThemedToken } from "shiki/core";
3
3
 
4
4
  //#region src/shiki-stream/tokenizer.d.ts
5
5
  declare class ShikiStreamTokenizer {
@@ -1 +1 @@
1
- {"version":3,"file":"tokenizer.d.ts","names":["GrammarState","ThemedToken","ShikiStreamTokenizerEnqueueResult","ShikiStreamTokenizerOptions","ShikiStreamTokenizer","Promise"],"sources":["../../src/shiki-stream/tokenizer.d.ts"],"sourcesContent":["import type { GrammarState, ThemedToken } from '@shikijs/core';\nimport type { ShikiStreamTokenizerEnqueueResult, ShikiStreamTokenizerOptions } from './types';\nexport declare class ShikiStreamTokenizer {\n readonly options: ShikiStreamTokenizerOptions;\n tokensStable: ThemedToken[];\n tokensUnstable: ThemedToken[];\n lastUnstableCodeChunk: string;\n lastStableGrammarState: GrammarState | undefined;\n constructor(options: ShikiStreamTokenizerOptions);\n /**\n * Enqueue a chunk of code to the buffer.\n */\n enqueue(chunk: string): Promise<ShikiStreamTokenizerEnqueueResult>;\n close(): {\n stable: ThemedToken[];\n };\n clear(): void;\n clone(): ShikiStreamTokenizer;\n}\n//# sourceMappingURL=tokenizer.d.ts.map"],"mappings":";;;;cAEqBI,oBAAAA;oBACCD;EADDC,YAAAA,EAEHH,WAFuB,EAAA;EACnBE,cAAAA,EAEFF,WAFEE,EAAAA;EACJF,qBAAAA,EAAAA,MAAAA;EACEA,sBAAAA,EAEQD,YAFRC,GAAAA,SAAAA;EAEQD,WAAAA,CAAAA,OAAAA,EACHG,2BADGH;EACHG;;;EAMTF,OAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAFYI,OAEZJ,CAFoBC,iCAEpBD,CAAAA;EAGHG,KAAAA,CAAAA,CAAAA,EAAAA;IAAoB,MAAA,EAHjBH,WAGiB,EAAA;;;WAApBG"}
1
+ {"version":3,"file":"tokenizer.d.ts","names":["GrammarState","ThemedToken","ShikiStreamTokenizerEnqueueResult","ShikiStreamTokenizerOptions","ShikiStreamTokenizer","Promise"],"sources":["../../src/shiki-stream/tokenizer.d.ts"],"sourcesContent":["import type { GrammarState, ThemedToken } from 'shiki/core';\nimport type { ShikiStreamTokenizerEnqueueResult, ShikiStreamTokenizerOptions } from './types';\nexport declare class ShikiStreamTokenizer {\n readonly options: ShikiStreamTokenizerOptions;\n tokensStable: ThemedToken[];\n tokensUnstable: ThemedToken[];\n lastUnstableCodeChunk: string;\n lastStableGrammarState: GrammarState | undefined;\n constructor(options: ShikiStreamTokenizerOptions);\n /**\n * Enqueue a chunk of code to the buffer.\n */\n enqueue(chunk: string): Promise<ShikiStreamTokenizerEnqueueResult>;\n close(): {\n stable: ThemedToken[];\n };\n clear(): void;\n clone(): ShikiStreamTokenizer;\n}\n//# sourceMappingURL=tokenizer.d.ts.map"],"mappings":";;;;cAEqBI,oBAAAA;oBACCD;EADDC,YAAAA,EAEHH,WAFuB,EAAA;EACnBE,cAAAA,EAEFF,WAFEE,EAAAA;EACJF,qBAAAA,EAAAA,MAAAA;EACEA,sBAAAA,EAEQD,YAFRC,GAAAA,SAAAA;EAEQD,WAAAA,CAAAA,OAAAA,EACHG,2BADGH;EACHG;;;EAMTF,OAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAFYI,OAEZJ,CAFoBC,iCAEpBD,CAAAA;EAGHG,KAAAA,CAAAA,CAAAA,EAAAA;IAAoB,MAAA,EAHjBH,WAGiB,EAAA;;;WAApBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokenizer.js","names":["stable: ThemedToken[]","unstable: ThemedToken[]"],"sources":["../../src/shiki-stream/tokenizer.ts"],"sourcesContent":["import type { GrammarState, ThemedToken } from '@shikijs/core';\n\nimport type {\n ShikiStreamTokenizerEnqueueResult,\n ShikiStreamTokenizerOptions,\n} from './types';\n\nexport class ShikiStreamTokenizer {\n public readonly options: ShikiStreamTokenizerOptions;\n\n public tokensStable: ThemedToken[] = [];\n public tokensUnstable: ThemedToken[] = [];\n\n public lastUnstableCodeChunk: string = '';\n public lastStableGrammarState: GrammarState | undefined;\n\n constructor(options: ShikiStreamTokenizerOptions) {\n this.options = options;\n }\n\n /**\n * Enqueue a chunk of code to the buffer.\n */\n // oxlint-disable-next-line typescript/require-await\n async enqueue(chunk: string): Promise<ShikiStreamTokenizerEnqueueResult> {\n const chunkLines = (this.lastUnstableCodeChunk + chunk).split('\\n');\n\n const stable: ThemedToken[] = [];\n let unstable: ThemedToken[] = [];\n const recall = this.tokensUnstable.length;\n\n chunkLines.forEach((line, i) => {\n const isLastLine = i === chunkLines.length - 1;\n\n const result = this.options.highlighter.codeToTokens(line, {\n ...this.options,\n grammarState: this.lastStableGrammarState,\n });\n const tokens = result.tokens[0]; // only one line\n if (!isLastLine) tokens.push({ content: '\\n', offset: 0 });\n\n if (!isLastLine) {\n this.lastStableGrammarState = result.grammarState;\n stable.push(...tokens);\n } else {\n unstable = tokens;\n this.lastUnstableCodeChunk = line;\n }\n });\n\n this.tokensStable.push(...stable);\n this.tokensUnstable = unstable;\n\n return {\n recall,\n stable,\n unstable,\n };\n }\n\n close(): { stable: ThemedToken[] } {\n const stable = this.tokensUnstable;\n this.tokensUnstable = [];\n this.lastUnstableCodeChunk = '';\n this.lastStableGrammarState = undefined;\n return {\n stable,\n };\n }\n\n clear(): void {\n this.tokensStable = [];\n this.tokensUnstable = [];\n this.lastUnstableCodeChunk = '';\n this.lastStableGrammarState = undefined;\n }\n\n clone(): ShikiStreamTokenizer {\n const clone = new ShikiStreamTokenizer(this.options);\n clone.lastUnstableCodeChunk = this.lastUnstableCodeChunk;\n clone.tokensUnstable = this.tokensUnstable;\n clone.tokensStable = this.tokensStable;\n clone.lastStableGrammarState = this.lastStableGrammarState;\n return clone;\n }\n}\n"],"mappings":";AAOA,IAAa,uBAAb,MAAa,qBAAqB;CAChC,AAAgB;CAEhB,AAAO,eAA8B,EAAE;CACvC,AAAO,iBAAgC,EAAE;CAEzC,AAAO,wBAAgC;CACvC,AAAO;CAEP,YAAY,SAAsC;AAChD,OAAK,UAAU;;;;;CAOjB,MAAM,QAAQ,OAA2D;EACvE,MAAM,cAAc,KAAK,wBAAwB,OAAO,MAAM,KAAK;EAEnE,MAAMA,SAAwB,EAAE;EAChC,IAAIC,WAA0B,EAAE;EAChC,MAAM,SAAS,KAAK,eAAe;AAEnC,aAAW,SAAS,MAAM,MAAM;GAC9B,MAAM,aAAa,MAAM,WAAW,SAAS;GAE7C,MAAM,SAAS,KAAK,QAAQ,YAAY,aAAa,MAAM;IACzD,GAAG,KAAK;IACR,cAAc,KAAK;IACpB,CAAC;GACF,MAAM,SAAS,OAAO,OAAO;AAC7B,OAAI,CAAC,WAAY,QAAO,KAAK;IAAE,SAAS;IAAM,QAAQ;IAAG,CAAC;AAE1D,OAAI,CAAC,YAAY;AACf,SAAK,yBAAyB,OAAO;AACrC,WAAO,KAAK,GAAG,OAAO;UACjB;AACL,eAAW;AACX,SAAK,wBAAwB;;IAE/B;AAEF,OAAK,aAAa,KAAK,GAAG,OAAO;AACjC,OAAK,iBAAiB;AAEtB,SAAO;GACL;GACA;GACA;GACD;;CAGH,QAAmC;EACjC,MAAM,SAAS,KAAK;AACpB,OAAK,iBAAiB,EAAE;AACxB,OAAK,wBAAwB;AAC7B,OAAK,yBAAyB;AAC9B,SAAO,EACL,QACD;;CAGH,QAAc;AACZ,OAAK,eAAe,EAAE;AACtB,OAAK,iBAAiB,EAAE;AACxB,OAAK,wBAAwB;AAC7B,OAAK,yBAAyB;;CAGhC,QAA8B;EAC5B,MAAM,QAAQ,IAAI,qBAAqB,KAAK,QAAQ;AACpD,QAAM,wBAAwB,KAAK;AACnC,QAAM,iBAAiB,KAAK;AAC5B,QAAM,eAAe,KAAK;AAC1B,QAAM,yBAAyB,KAAK;AACpC,SAAO"}
1
+ {"version":3,"file":"tokenizer.js","names":["stable: ThemedToken[]","unstable: ThemedToken[]"],"sources":["../../src/shiki-stream/tokenizer.ts"],"sourcesContent":["import type { GrammarState, ThemedToken } from 'shiki/core';\n\nimport type {\n ShikiStreamTokenizerEnqueueResult,\n ShikiStreamTokenizerOptions,\n} from './types';\n\nexport class ShikiStreamTokenizer {\n public readonly options: ShikiStreamTokenizerOptions;\n\n public tokensStable: ThemedToken[] = [];\n public tokensUnstable: ThemedToken[] = [];\n\n public lastUnstableCodeChunk: string = '';\n public lastStableGrammarState: GrammarState | undefined;\n\n constructor(options: ShikiStreamTokenizerOptions) {\n this.options = options;\n }\n\n /**\n * Enqueue a chunk of code to the buffer.\n */\n // oxlint-disable-next-line typescript/require-await\n async enqueue(chunk: string): Promise<ShikiStreamTokenizerEnqueueResult> {\n const chunkLines = (this.lastUnstableCodeChunk + chunk).split('\\n');\n\n const stable: ThemedToken[] = [];\n let unstable: ThemedToken[] = [];\n const recall = this.tokensUnstable.length;\n\n chunkLines.forEach((line, i) => {\n const isLastLine = i === chunkLines.length - 1;\n\n const result = this.options.highlighter.codeToTokens(line, {\n ...this.options,\n grammarState: this.lastStableGrammarState,\n });\n const tokens = result.tokens[0]; // only one line\n if (!isLastLine) tokens.push({ content: '\\n', offset: 0 });\n\n if (!isLastLine) {\n this.lastStableGrammarState = result.grammarState;\n stable.push(...tokens);\n } else {\n unstable = tokens;\n this.lastUnstableCodeChunk = line;\n }\n });\n\n this.tokensStable.push(...stable);\n this.tokensUnstable = unstable;\n\n return {\n recall,\n stable,\n unstable,\n };\n }\n\n close(): { stable: ThemedToken[] } {\n const stable = this.tokensUnstable;\n this.tokensUnstable = [];\n this.lastUnstableCodeChunk = '';\n this.lastStableGrammarState = undefined;\n return {\n stable,\n };\n }\n\n clear(): void {\n this.tokensStable = [];\n this.tokensUnstable = [];\n this.lastUnstableCodeChunk = '';\n this.lastStableGrammarState = undefined;\n }\n\n clone(): ShikiStreamTokenizer {\n const clone = new ShikiStreamTokenizer(this.options);\n clone.lastUnstableCodeChunk = this.lastUnstableCodeChunk;\n clone.tokensUnstable = this.tokensUnstable;\n clone.tokensStable = this.tokensStable;\n clone.lastStableGrammarState = this.lastStableGrammarState;\n return clone;\n }\n}\n"],"mappings":";AAOA,IAAa,uBAAb,MAAa,qBAAqB;CAChC,AAAgB;CAEhB,AAAO,eAA8B,EAAE;CACvC,AAAO,iBAAgC,EAAE;CAEzC,AAAO,wBAAgC;CACvC,AAAO;CAEP,YAAY,SAAsC;AAChD,OAAK,UAAU;;;;;CAOjB,MAAM,QAAQ,OAA2D;EACvE,MAAM,cAAc,KAAK,wBAAwB,OAAO,MAAM,KAAK;EAEnE,MAAMA,SAAwB,EAAE;EAChC,IAAIC,WAA0B,EAAE;EAChC,MAAM,SAAS,KAAK,eAAe;AAEnC,aAAW,SAAS,MAAM,MAAM;GAC9B,MAAM,aAAa,MAAM,WAAW,SAAS;GAE7C,MAAM,SAAS,KAAK,QAAQ,YAAY,aAAa,MAAM;IACzD,GAAG,KAAK;IACR,cAAc,KAAK;IACpB,CAAC;GACF,MAAM,SAAS,OAAO,OAAO;AAC7B,OAAI,CAAC,WAAY,QAAO,KAAK;IAAE,SAAS;IAAM,QAAQ;IAAG,CAAC;AAE1D,OAAI,CAAC,YAAY;AACf,SAAK,yBAAyB,OAAO;AACrC,WAAO,KAAK,GAAG,OAAO;UACjB;AACL,eAAW;AACX,SAAK,wBAAwB;;IAE/B;AAEF,OAAK,aAAa,KAAK,GAAG,OAAO;AACjC,OAAK,iBAAiB;AAEtB,SAAO;GACL;GACA;GACA;GACD;;CAGH,QAAmC;EACjC,MAAM,SAAS,KAAK;AACpB,OAAK,iBAAiB,EAAE;AACxB,OAAK,wBAAwB;AAC7B,OAAK,yBAAyB;AAC9B,SAAO,EACL,QACD;;CAGH,QAAc;AACZ,OAAK,eAAe,EAAE;AACtB,OAAK,iBAAiB,EAAE;AACxB,OAAK,wBAAwB;AAC7B,OAAK,yBAAyB;;CAGhC,QAA8B;EAC5B,MAAM,QAAQ,IAAI,qBAAqB,KAAK,QAAQ;AACpD,QAAM,wBAAwB,KAAK;AACnC,QAAM,iBAAiB,KAAK;AAC5B,QAAM,eAAe,KAAK;AAC1B,QAAM,yBAAyB,KAAK;AACpC,SAAO"}
@@ -1,4 +1,4 @@
1
- import { CodeToTokensOptions, HighlighterCore, HighlighterGeneric, ThemedToken } from "@shikijs/core";
1
+ import { CodeToTokensOptions, HighlighterCore, HighlighterGeneric, ThemedToken } from "shiki/core";
2
2
 
3
3
  //#region src/shiki-stream/types.d.ts
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":["CodeToTokensOptions","HighlighterCore","HighlighterGeneric","ThemedToken","RecallToken","CodeToTokenTransformStreamOptions","ShikiStreamTokenizerOptions","ShikiStreamTokenizerEnqueueResult"],"sources":["../../src/shiki-stream/types.d.ts"],"sourcesContent":["import type { CodeToTokensOptions, HighlighterCore, HighlighterGeneric, ThemedToken } from '@shikijs/core';\n/**\n * A special token that indicates the number of tokens to be removed from the previous streamed tokens.\n *\n * Pass `allowRecalls: true` to the `CodeToTokenTransformStream` to enable recall tokens.\n */\nexport interface RecallToken {\n /**\n * Number of tokens to be removed from the previous streamed tokens.\n */\n recall: number;\n}\nexport type CodeToTokenTransformStreamOptions = ShikiStreamTokenizerOptions & {\n /**\n * Whether to allow recall tokens to be emitted.\n *\n * A recall token is a special token that indicates the number of tokens to be removed from the previous streamed tokens.\n *\n * @default false\n */\n allowRecalls?: boolean;\n};\nexport type ShikiStreamTokenizerOptions = CodeToTokensOptions<string, string> & {\n highlighter: HighlighterCore | HighlighterGeneric<any, any>;\n};\nexport interface ShikiStreamTokenizerEnqueueResult {\n /**\n * Number of last tokens to be recalled\n */\n recall: number;\n /**\n * Stable tokens\n */\n stable: ThemedToken[];\n /**\n * Unstable tokens, they might or might not be recalled\n */\n unstable: ThemedToken[];\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;;;AAMA;AAMA;AAUA;AAA0CA,UAhBzBI,WAAAA,CAgByBJ;EACzBC;;;EAEAM,MAAAA,EAAAA,MAAAA;;KAbLF,iCAAAA,GAAoCC;;;;;;;;;;KAUpCA,2BAAAA,GAA8BN;eACzBC,kBAAkBC;;UAElBK,iCAAAA;;;;;;;;UAQLJ;;;;YAIEA"}
1
+ {"version":3,"file":"types.d.ts","names":["CodeToTokensOptions","HighlighterCore","HighlighterGeneric","ThemedToken","RecallToken","CodeToTokenTransformStreamOptions","ShikiStreamTokenizerOptions","ShikiStreamTokenizerEnqueueResult"],"sources":["../../src/shiki-stream/types.d.ts"],"sourcesContent":["import type { CodeToTokensOptions, HighlighterCore, HighlighterGeneric, ThemedToken } from 'shiki/core';\n/**\n * A special token that indicates the number of tokens to be removed from the previous streamed tokens.\n *\n * Pass `allowRecalls: true` to the `CodeToTokenTransformStream` to enable recall tokens.\n */\nexport interface RecallToken {\n /**\n * Number of tokens to be removed from the previous streamed tokens.\n */\n recall: number;\n}\nexport type CodeToTokenTransformStreamOptions = ShikiStreamTokenizerOptions & {\n /**\n * Whether to allow recall tokens to be emitted.\n *\n * A recall token is a special token that indicates the number of tokens to be removed from the previous streamed tokens.\n *\n * @default false\n */\n allowRecalls?: boolean;\n};\nexport type ShikiStreamTokenizerOptions = CodeToTokensOptions<string, string> & {\n highlighter: HighlighterCore | HighlighterGeneric<any, any>;\n};\nexport interface ShikiStreamTokenizerEnqueueResult {\n /**\n * Number of last tokens to be recalled\n */\n recall: number;\n /**\n * Stable tokens\n */\n stable: ThemedToken[];\n /**\n * Unstable tokens, they might or might not be recalled\n */\n unstable: ThemedToken[];\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;;;AAMA;AAMA;AAUA;AAA0CA,UAhBzBI,WAAAA,CAgByBJ;EACzBC;;;EAEAM,MAAAA,EAAAA,MAAAA;;KAbLF,iCAAAA,GAAoCC;;;;;;;;;;KAUpCA,2BAAAA,GAA8BN;eACzBC,kBAAkBC;;UAElBK,iCAAAA;;;;;;;;UAQLJ;;;;YAIEA"}
package/dist/sprite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region src/sprite.d.ts
2
- type SVGSpriteNames = 'diffs-icon-arrow-right-short' | 'diffs-icon-brand-github' | 'diffs-icon-chevron' | 'diffs-icon-chevrons-narrow' | 'diffs-icon-diff-split' | 'diffs-icon-diff-unified' | 'diffs-icon-expand' | 'diffs-icon-expand-all' | 'diffs-icon-file-code' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-diffstat' | 'diffs-icon-symbol-ignored' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-moved' | 'diffs-icon-symbol-ref';
3
- declare const SVGSpriteSheet = "<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"diffs-icon-arrow-right-short\" viewBox=\"0 0 16 16\">\n <path d=\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>\n </symbol>\n <symbol id=\"diffs-icon-brand-github\" viewBox=\"0 0 16 16\">\n <path d=\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevrons-narrow\" viewBox=\"0 0 10 16\">\n <path d=\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-split\" viewBox=\"0 0 16 16\">\n <path d=\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\"/><path d=\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\" opacity=\".3\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-unified\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\" clip-rule=\"evenodd\" opacity=\".4\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand\" viewBox=\"0 0 16 16\">\n <path d=\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand-all\" viewBox=\"0 0 16 16\">\n <path d=\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\"/>\n </symbol>\n <symbol id=\"diffs-icon-file-code\" viewBox=\"0 0 16 16\">\n <path d=\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\"/><path d=\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-added\" viewBox=\"0 0 16 16\">\n <path d=\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-deleted\" viewBox=\"0 0 16 16\">\n <path d=\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-diffstat\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ignored\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-modified\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-moved\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ref\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\"/>\n </symbol>\n</svg>";
2
+ type SVGSpriteNames = 'diffs-icon-arrow-right-short' | 'diffs-icon-brand-github' | 'diffs-icon-chevron' | 'diffs-icon-chevrons-narrow' | 'diffs-icon-diff-split' | 'diffs-icon-diff-unified' | 'diffs-icon-expand' | 'diffs-icon-expand-all' | 'diffs-icon-file-code' | 'diffs-icon-plus' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-diffstat' | 'diffs-icon-symbol-ignored' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-moved' | 'diffs-icon-symbol-ref';
3
+ declare const SVGSpriteSheet = "<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"diffs-icon-arrow-right-short\" viewBox=\"0 0 16 16\">\n <path d=\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>\n </symbol>\n <symbol id=\"diffs-icon-brand-github\" viewBox=\"0 0 16 16\">\n <path d=\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevrons-narrow\" viewBox=\"0 0 10 16\">\n <path d=\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-split\" viewBox=\"0 0 16 16\">\n <path d=\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\"/><path d=\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\" opacity=\".3\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-unified\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\" clip-rule=\"evenodd\" opacity=\".4\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand\" viewBox=\"0 0 16 16\">\n <path d=\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand-all\" viewBox=\"0 0 16 16\">\n <path d=\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\"/>\n </symbol>\n <symbol id=\"diffs-icon-file-code\" viewBox=\"0 0 16 16\">\n <path d=\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\"/><path d=\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\"/>\n </symbol>\n <symbol id=\"diffs-icon-plus\" viewBox=\"0 0 16 16\">\n <path d=\"M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-added\" viewBox=\"0 0 16 16\">\n <path d=\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-deleted\" viewBox=\"0 0 16 16\">\n <path d=\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-diffstat\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ignored\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-modified\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-moved\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ref\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\"/>\n </symbol>\n</svg>";
4
4
  //#endregion
5
5
  export { SVGSpriteNames, SVGSpriteSheet };
6
6
  //# sourceMappingURL=sprite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sprite.d.ts","names":["SVGSpriteNames","SVGSpriteSheet"],"sources":["../src/sprite.d.ts"],"sourcesContent":["export type SVGSpriteNames = 'diffs-icon-arrow-right-short' | 'diffs-icon-brand-github' | 'diffs-icon-chevron' | 'diffs-icon-chevrons-narrow' | 'diffs-icon-diff-split' | 'diffs-icon-diff-unified' | 'diffs-icon-expand' | 'diffs-icon-expand-all' | 'diffs-icon-file-code' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-diffstat' | 'diffs-icon-symbol-ignored' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-moved' | 'diffs-icon-symbol-ref';\nexport declare const SVGSpriteSheet = \"<svg data-icon-sprite aria-hidden=\\\"true\\\" width=\\\"0\\\" height=\\\"0\\\">\\n <symbol id=\\\"diffs-icon-arrow-right-short\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-brand-github\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-chevron\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-chevrons-narrow\\\" viewBox=\\\"0 0 10 16\\\">\\n <path d=\\\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-diff-split\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\\\"/><path d=\\\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\\\" opacity=\\\".3\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-diff-unified\\\" viewBox=\\\"0 0 16 16\\\">\\n <path fill-rule=\\\"evenodd\\\" d=\\\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\\\" clip-rule=\\\"evenodd\\\"/><path fill-rule=\\\"evenodd\\\" d=\\\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\\\" clip-rule=\\\"evenodd\\\" opacity=\\\".4\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-expand\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-expand-all\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-file-code\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\\\"/><path d=\\\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-added\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\\\"/><path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-deleted\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\\\"/><path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-diffstat\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/><path d=\\\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-ignored\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-modified\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-moved\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/><path d=\\\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-ref\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\\\"/>\\n </symbol>\\n</svg>\";\n//# sourceMappingURL=sprite.d.ts.map"],"mappings":";KAAYA,cAAAA;AAAAA,cACSC,cAAAA,GADK,yqQAAA"}
1
+ {"version":3,"file":"sprite.d.ts","names":["SVGSpriteNames","SVGSpriteSheet"],"sources":["../src/sprite.d.ts"],"sourcesContent":["export type SVGSpriteNames = 'diffs-icon-arrow-right-short' | 'diffs-icon-brand-github' | 'diffs-icon-chevron' | 'diffs-icon-chevrons-narrow' | 'diffs-icon-diff-split' | 'diffs-icon-diff-unified' | 'diffs-icon-expand' | 'diffs-icon-expand-all' | 'diffs-icon-file-code' | 'diffs-icon-plus' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-diffstat' | 'diffs-icon-symbol-ignored' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-moved' | 'diffs-icon-symbol-ref';\nexport declare const SVGSpriteSheet = \"<svg data-icon-sprite aria-hidden=\\\"true\\\" width=\\\"0\\\" height=\\\"0\\\">\\n <symbol id=\\\"diffs-icon-arrow-right-short\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-brand-github\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-chevron\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-chevrons-narrow\\\" viewBox=\\\"0 0 10 16\\\">\\n <path d=\\\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-diff-split\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\\\"/><path d=\\\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\\\" opacity=\\\".3\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-diff-unified\\\" viewBox=\\\"0 0 16 16\\\">\\n <path fill-rule=\\\"evenodd\\\" d=\\\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\\\" clip-rule=\\\"evenodd\\\"/><path fill-rule=\\\"evenodd\\\" d=\\\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\\\" clip-rule=\\\"evenodd\\\" opacity=\\\".4\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-expand\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-expand-all\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-file-code\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\\\"/><path d=\\\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-plus\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-added\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\\\"/><path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-deleted\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\\\"/><path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-diffstat\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/><path d=\\\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-ignored\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-modified\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-moved\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\\\"/><path d=\\\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\\\"/>\\n </symbol>\\n <symbol id=\\\"diffs-icon-symbol-ref\\\" viewBox=\\\"0 0 16 16\\\">\\n <path d=\\\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\\\"/>\\n </symbol>\\n</svg>\";\n//# sourceMappingURL=sprite.d.ts.map"],"mappings":";KAAYA,cAAAA;AAAAA,cACSC,cAAAA,GADK,y4QAAA"}
package/dist/sprite.js CHANGED
@@ -27,6 +27,9 @@ const SVGSpriteSheet = `<svg data-icon-sprite aria-hidden="true" width="0" heigh
27
27
  <symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
28
28
  <path d="M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z"/><path d="M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z"/>
29
29
  </symbol>
30
+ <symbol id="diffs-icon-plus" viewBox="0 0 16 16">
31
+ <path d="M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3"/>
32
+ </symbol>
30
33
  <symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
31
34
  <path d="M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
32
35
  </symbol>
@@ -1 +1 @@
1
- {"version":3,"file":"sprite.js","names":[],"sources":["../src/sprite.ts"],"sourcesContent":["export type SVGSpriteNames =\n | 'diffs-icon-arrow-right-short'\n | 'diffs-icon-brand-github'\n | 'diffs-icon-chevron'\n | 'diffs-icon-chevrons-narrow'\n | 'diffs-icon-diff-split'\n | 'diffs-icon-diff-unified'\n | 'diffs-icon-expand'\n | 'diffs-icon-expand-all'\n | 'diffs-icon-file-code'\n | 'diffs-icon-symbol-added'\n | 'diffs-icon-symbol-deleted'\n | 'diffs-icon-symbol-diffstat'\n | 'diffs-icon-symbol-ignored'\n | 'diffs-icon-symbol-modified'\n | 'diffs-icon-symbol-moved'\n | 'diffs-icon-symbol-ref';\n\nexport const SVGSpriteSheet = `<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"diffs-icon-arrow-right-short\" viewBox=\"0 0 16 16\">\n <path d=\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>\n </symbol>\n <symbol id=\"diffs-icon-brand-github\" viewBox=\"0 0 16 16\">\n <path d=\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevrons-narrow\" viewBox=\"0 0 10 16\">\n <path d=\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-split\" viewBox=\"0 0 16 16\">\n <path d=\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\"/><path d=\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\" opacity=\".3\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-unified\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\" clip-rule=\"evenodd\" opacity=\".4\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand\" viewBox=\"0 0 16 16\">\n <path d=\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand-all\" viewBox=\"0 0 16 16\">\n <path d=\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\"/>\n </symbol>\n <symbol id=\"diffs-icon-file-code\" viewBox=\"0 0 16 16\">\n <path d=\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\"/><path d=\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-added\" viewBox=\"0 0 16 16\">\n <path d=\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-deleted\" viewBox=\"0 0 16 16\">\n <path d=\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-diffstat\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ignored\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-modified\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-moved\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ref\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\"/>\n </symbol>\n</svg>`;\n"],"mappings":";AAkBA,MAAa,iBAAiB"}
1
+ {"version":3,"file":"sprite.js","names":[],"sources":["../src/sprite.ts"],"sourcesContent":["export type SVGSpriteNames =\n | 'diffs-icon-arrow-right-short'\n | 'diffs-icon-brand-github'\n | 'diffs-icon-chevron'\n | 'diffs-icon-chevrons-narrow'\n | 'diffs-icon-diff-split'\n | 'diffs-icon-diff-unified'\n | 'diffs-icon-expand'\n | 'diffs-icon-expand-all'\n | 'diffs-icon-file-code'\n | 'diffs-icon-plus'\n | 'diffs-icon-symbol-added'\n | 'diffs-icon-symbol-deleted'\n | 'diffs-icon-symbol-diffstat'\n | 'diffs-icon-symbol-ignored'\n | 'diffs-icon-symbol-modified'\n | 'diffs-icon-symbol-moved'\n | 'diffs-icon-symbol-ref';\n\nexport const SVGSpriteSheet = `<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"diffs-icon-arrow-right-short\" viewBox=\"0 0 16 16\">\n <path d=\"M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0\"/>\n </symbol>\n <symbol id=\"diffs-icon-brand-github\" viewBox=\"0 0 16 16\">\n <path d=\"M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-chevrons-narrow\" viewBox=\"0 0 10 16\">\n <path d=\"M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-split\" viewBox=\"0 0 16 16\">\n <path d=\"M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0\"/><path d=\"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1\" opacity=\".3\"/>\n </symbol>\n <symbol id=\"diffs-icon-diff-unified\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z\" clip-rule=\"evenodd\" opacity=\".4\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand\" viewBox=\"0 0 16 16\">\n <path d=\"M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06\"/>\n </symbol>\n <symbol id=\"diffs-icon-expand-all\" viewBox=\"0 0 16 16\">\n <path d=\"M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z\"/>\n </symbol>\n <symbol id=\"diffs-icon-file-code\" viewBox=\"0 0 16 16\">\n <path d=\"M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z\"/><path d=\"M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z\"/>\n </symbol>\n <symbol id=\"diffs-icon-plus\" viewBox=\"0 0 16 16\">\n <path d=\"M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-added\" viewBox=\"0 0 16 16\">\n <path d=\"M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-deleted\" viewBox=\"0 0 16 16\">\n <path d=\"M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8\"/><path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-diffstat\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ignored\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-modified\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-moved\" viewBox=\"0 0 16 16\">\n <path d=\"M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8\"/><path d=\"M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05\"/>\n </symbol>\n <symbol id=\"diffs-icon-symbol-ref\" viewBox=\"0 0 16 16\">\n <path d=\"M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\"/>\n </symbol>\n</svg>`;\n"],"mappings":";AAmBA,MAAa,iBAAiB"}
@@ -1,6 +1,6 @@
1
- import { AnnotationLineMap, AnnotationSide, AnnotationSpan, BaseCodeOptions, BaseDiffOptions, BundledLanguage, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, ContextContent, DecorationItem, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, ExpansionDirections, ExtensionFormatMap, FileContents, FileDiffMetadata, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GapSpan, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSpans, LineTypes, ObservedAnnotationNodes, ObservedGridNodes, ParsedPatch, PrePropertiesConfig, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, SelectionSide, SharedRenderState, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, VirtualFileMetrics, VirtualWindowSpecs } from "../types.js";
2
- import { PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff } from "./preloadDiffs.js";
1
+ import { AnnotationLineMap, AnnotationSide, AnnotationSpan, BaseCodeOptions, BaseDiffOptions, BaseDiffOptionsWithDefaults, BundledLanguage, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, ContextContent, CustomPreProperties, DecorationItem, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, ExpansionDirections, ExtensionFormatMap, FileContents, FileDiffMetadata, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GapSpan, HighlighterTypes, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSpans, LineTypes, MergeConflictActionPayload, MergeConflictRegion, MergeConflictResolution, ObservedAnnotationNodes, ObservedGridNodes, ParsedPatch, PrePropertiesConfig, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderHeaderPrefixCallback, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, SelectionPoint, SelectionSide, SharedRenderState, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, VirtualFileMetrics, VirtualWindowSpecs } from "../types.js";
2
+ import { PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, PreloadUnresolvedFileOptions, PreloadUnresolvedFileResult, preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadUnresolvedFile, preloadUnresolvedFileHTML } from "./preloadDiffs.js";
3
3
  import { PreloadFileOptions, PreloadedFileResult, preloadFile } from "./preloadFile.js";
4
4
  import { PreloadPatchFileOptions, preloadPatchFile } from "./preloadPatchFile.js";
5
5
  import { renderHTML } from "./renderHTML.js";
6
- export { AnnotationLineMap, AnnotationSide, AnnotationSpan, BaseCodeOptions, BaseDiffOptions, BundledLanguage, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, ContextContent, DecorationItem, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, ExpansionDirections, ExtensionFormatMap, FileContents, FileDiffMetadata, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GapSpan, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSpans, LineTypes, ObservedAnnotationNodes, ObservedGridNodes, ParsedPatch, PrePropertiesConfig, PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadFileOptions, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, PreloadPatchFileOptions, PreloadedFileResult, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, SelectionSide, SharedRenderState, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, VirtualFileMetrics, VirtualWindowSpecs, preloadDiffHTML, preloadFile, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadPatchFile, renderHTML };
6
+ export { AnnotationLineMap, AnnotationSide, AnnotationSpan, BaseCodeOptions, BaseDiffOptions, BaseDiffOptionsWithDefaults, BundledLanguage, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, ContextContent, CustomPreProperties, DecorationItem, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, ExpansionDirections, ExtensionFormatMap, FileContents, FileDiffMetadata, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GapSpan, HighlighterTypes, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSpans, LineTypes, MergeConflictActionPayload, MergeConflictRegion, MergeConflictResolution, ObservedAnnotationNodes, ObservedGridNodes, ParsedPatch, PrePropertiesConfig, PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadFileOptions, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, PreloadPatchFileOptions, PreloadUnresolvedFileOptions, PreloadUnresolvedFileResult, PreloadedFileResult, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderHeaderPrefixCallback, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, SelectionPoint, SelectionSide, SharedRenderState, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, VirtualFileMetrics, VirtualWindowSpecs, preloadDiffHTML, preloadFile, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadPatchFile, preloadUnresolvedFile, preloadUnresolvedFileHTML, renderHTML };
package/dist/ssr/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { renderHTML } from "./renderHTML.js";
2
- import { preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff } from "./preloadDiffs.js";
2
+ import { preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadUnresolvedFile, preloadUnresolvedFileHTML } from "./preloadDiffs.js";
3
3
  import { preloadFile } from "./preloadFile.js";
4
4
  import { preloadPatchFile } from "./preloadPatchFile.js";
5
5
 
6
- export { preloadDiffHTML, preloadFile, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadPatchFile, renderHTML };
6
+ export { preloadDiffHTML, preloadFile, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadPatchFile, preloadUnresolvedFile, preloadUnresolvedFileHTML, renderHTML };
@@ -1,4 +1,5 @@
1
1
  import { DiffLineAnnotation, FileContents, FileDiffMetadata } from "../types.js";
2
+ import { UnresolvedFileHunksRendererOptions } from "../renderers/UnresolvedFileHunksRenderer.js";
2
3
  import { FileDiffOptions } from "../components/FileDiff.js";
3
4
 
4
5
  //#region src/ssr/preloadDiffs.d.ts
@@ -16,17 +17,18 @@ declare function preloadDiffHTML<LAnnotation = undefined>({
16
17
  options,
17
18
  annotations
18
19
  }: PreloadDiffOptions<LAnnotation>): Promise<string>;
20
+ declare function preloadUnresolvedFileHTML<LAnnotation = undefined>({
21
+ file,
22
+ options,
23
+ annotations
24
+ }: PreloadUnresolvedFileOptions<LAnnotation>): Promise<string>;
19
25
  interface PreloadMultiFileDiffOptions<LAnnotation> {
20
26
  oldFile: FileContents;
21
27
  newFile: FileContents;
22
28
  options?: FileDiffOptions<LAnnotation>;
23
29
  annotations?: DiffLineAnnotation<LAnnotation>[];
24
30
  }
25
- interface PreloadMultiFileDiffResult<LAnnotation> {
26
- oldFile: FileContents;
27
- newFile: FileContents;
28
- options?: FileDiffOptions<LAnnotation>;
29
- annotations?: DiffLineAnnotation<LAnnotation>[];
31
+ interface PreloadMultiFileDiffResult<LAnnotation> extends PreloadMultiFileDiffOptions<LAnnotation> {
30
32
  prerenderedHTML: string;
31
33
  }
32
34
  declare function preloadMultiFileDiff<LAnnotation = undefined>({
@@ -40,10 +42,7 @@ interface PreloadFileDiffOptions<LAnnotation> {
40
42
  options?: FileDiffOptions<LAnnotation>;
41
43
  annotations?: DiffLineAnnotation<LAnnotation>[];
42
44
  }
43
- interface PreloadFileDiffResult<LAnnotation> {
44
- fileDiff: FileDiffMetadata;
45
- options?: FileDiffOptions<LAnnotation>;
46
- annotations?: DiffLineAnnotation<LAnnotation>[];
45
+ interface PreloadFileDiffResult<LAnnotation> extends PreloadFileDiffOptions<LAnnotation> {
47
46
  prerenderedHTML: string;
48
47
  }
49
48
  declare function preloadFileDiff<LAnnotation = undefined>({
@@ -51,15 +50,25 @@ declare function preloadFileDiff<LAnnotation = undefined>({
51
50
  options,
52
51
  annotations
53
52
  }: PreloadFileDiffOptions<LAnnotation>): Promise<PreloadFileDiffResult<LAnnotation>>;
54
- interface PreloadPatchDiffOptions<LAnnotation> {
55
- patch: string;
56
- options?: FileDiffOptions<LAnnotation>;
53
+ interface PreloadUnresolvedFileOptions<LAnnotation> {
54
+ file: FileContents;
55
+ options?: UnresolvedFileHunksRendererOptions;
57
56
  annotations?: DiffLineAnnotation<LAnnotation>[];
58
57
  }
59
- interface PreloadPatchDiffResult<LAnnotation> {
58
+ interface PreloadUnresolvedFileResult<LAnnotation> extends PreloadUnresolvedFileOptions<LAnnotation> {
59
+ prerenderedHTML: string;
60
+ }
61
+ declare function preloadUnresolvedFile<LAnnotation = undefined>({
62
+ file,
63
+ options,
64
+ annotations
65
+ }: PreloadUnresolvedFileOptions<LAnnotation>): Promise<PreloadUnresolvedFileResult<LAnnotation>>;
66
+ interface PreloadPatchDiffOptions<LAnnotation> {
60
67
  patch: string;
61
68
  options?: FileDiffOptions<LAnnotation>;
62
69
  annotations?: DiffLineAnnotation<LAnnotation>[];
70
+ }
71
+ interface PreloadPatchDiffResult<LAnnotation> extends PreloadPatchDiffOptions<LAnnotation> {
63
72
  prerenderedHTML: string;
64
73
  }
65
74
  declare function preloadPatchDiff<LAnnotation = undefined>({
@@ -68,5 +77,5 @@ declare function preloadPatchDiff<LAnnotation = undefined>({
68
77
  annotations
69
78
  }: PreloadPatchDiffOptions<LAnnotation>): Promise<PreloadPatchDiffResult<LAnnotation>>;
70
79
  //#endregion
71
- export { PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff };
80
+ export { PreloadDiffOptions, PreloadFileDiffOptions, PreloadFileDiffResult, PreloadMultiFileDiffOptions, PreloadMultiFileDiffResult, PreloadPatchDiffOptions, PreloadPatchDiffResult, PreloadUnresolvedFileOptions, PreloadUnresolvedFileResult, preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadUnresolvedFile, preloadUnresolvedFileHTML };
72
81
  //# sourceMappingURL=preloadDiffs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preloadDiffs.d.ts","names":["FileDiffOptions","DiffLineAnnotation","FileContents","FileDiffMetadata","PreloadDiffOptions","LAnnotation","preloadDiffHTML","fileDiff","oldFile","newFile","options","annotations","Promise","PreloadMultiFileDiffOptions","PreloadMultiFileDiffResult","preloadMultiFileDiff","PreloadFileDiffOptions","PreloadFileDiffResult","preloadFileDiff","PreloadPatchDiffOptions","PreloadPatchDiffResult","preloadPatchDiff","patch"],"sources":["../../src/ssr/preloadDiffs.d.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport type { DiffLineAnnotation, FileContents, FileDiffMetadata } from '../types';\nexport interface PreloadDiffOptions<LAnnotation> {\n fileDiff?: FileDiffMetadata;\n oldFile?: FileContents;\n newFile?: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport declare function preloadDiffHTML<LAnnotation = undefined>({ fileDiff, oldFile, newFile, options, annotations }: PreloadDiffOptions<LAnnotation>): Promise<string>;\nexport interface PreloadMultiFileDiffOptions<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadMultiFileDiffResult<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\nexport declare function preloadMultiFileDiff<LAnnotation = undefined>({ oldFile, newFile, options, annotations }: PreloadMultiFileDiffOptions<LAnnotation>): Promise<PreloadMultiFileDiffResult<LAnnotation>>;\nexport interface PreloadFileDiffOptions<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadFileDiffResult<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\nexport declare function preloadFileDiff<LAnnotation = undefined>({ fileDiff, options, annotations }: PreloadFileDiffOptions<LAnnotation>): Promise<PreloadFileDiffResult<LAnnotation>>;\nexport interface PreloadPatchDiffOptions<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadPatchDiffResult<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\nexport declare function preloadPatchDiff<LAnnotation = undefined>({ patch, options, annotations }: PreloadPatchDiffOptions<LAnnotation>): Promise<PreloadPatchDiffResult<LAnnotation>>;\n//# sourceMappingURL=preloadDiffs.d.ts.map"],"mappings":";;;;UAEiBI;aACFD;EADEC,OAAAA,CAAAA,EAEHF,YAFqB;EACpBC,OAAAA,CAAAA,EAEDD,YAFCC;EACDD,OAAAA,CAAAA,EAEAF,eAFAE,CAEgBG,WAFhBH,CAAAA;EACAA,WAAAA,CAAAA,EAEID,kBAFJC,CAEuBG,WAFvBH,CAAAA,EAAAA;;AACAF,iBAGUM,eAHVN,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAGyGI,kBAHzGJ,CAG4HK,WAH5HL,CAAAA,CAAAA,EAG2IY,OAH3IZ,CAAAA,MAAAA,CAAAA;AACuBK,UAGpBQ,2BAHoBR,CAAAA,WAAAA,CAAAA,CAAAA;EAAnBJ,OAAAA,EAILC,YAJKD;EAAkB,OAAA,EAKvBC,YALuB;EAEZI,OAAAA,CAAAA,EAIVN,eAJyBK,CAITA,WAJSA,CAAAA;EAA4BE,WAAAA,CAAAA,EAKjDN,kBALiDM,CAK9BF,WAL8BE,CAAAA,EAAAA;;AAAmBE,UAOrEK,0BAPqEL,CAAAA,WAAAA,CAAAA,CAAAA;EAASC,OAAAA,EAQlFR,YARkFQ;EAASC,OAAAA,EAS3FT,YAT2FS;EAAkCN,OAAAA,CAAAA,EAU5HL,eAV4HK,CAU5GA,WAV4GA,CAAAA;EAAnBD,WAAAA,CAAAA,EAWrGH,kBAXqGG,CAWlFC,WAXkFD,CAAAA,EAAAA;EAAkCQ,eAAAA,EAAAA,MAAAA;;AACxIC,iBAaOE,oBAboBV,CAAAA,cAAA,SAAA,CAAA,CAAA;EAAA,OAAA;EAAA,OAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAasEQ,2BAbtE,CAakGR,WAblG,CAAA,CAAA,EAaiHO,OAbjH,CAayHE,0BAbzH,CAaoJT,WAbpJ,CAAA,CAAA;AAC/BH,UAaIc,sBAbJd,CAAAA,WAAAA,CAAAA,CAAAA;EACAA,QAAAA,EAaCC,gBAbDD;EACiBG,OAAAA,CAAAA,EAahBL,eAbgBK,CAaAA,WAbAA,CAAAA;EAAhBL,WAAAA,CAAAA,EAcIC,kBAdJD,CAcuBK,WAdvBL,CAAAA,EAAAA;;AACIC,UAeDgB,qBAfChB,CAAAA,WAAAA,CAAAA,CAAAA;EAAkB,QAAA,EAgBtBE,gBAhBsB;EAEnBW,OAAAA,CAAAA,EAeHd,eAfGc,CAeaT,WAfaA,CAAAA;EAC9BH,WAAAA,CAAAA,EAeKD,kBAfLC,CAewBG,WAfxBH,CAAAA,EAAAA;EACAA,eAAAA,EAAAA,MAAAA;;AACCF,iBAgBUkB,eAhBVlB,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAgBuFgB,sBAhBvFhB,CAgB8GK,WAhB9GL,CAAAA,CAAAA,EAgB6HY,OAhB7HZ,CAgBqIiB,qBAhBrIjB,CAgB2JK,WAhB3JL,CAAAA,CAAAA;AACuBK,UAgBpBc,uBAhBoBd,CAAAA,WAAAA,CAAAA,CAAAA;EAAnBJ,KAAAA,EAAAA,MAAAA;EAAkB,OAAA,CAAA,EAkBtBD,eAlBsB,CAkBNK,WAlBM,CAAA;EAGZU,WAAAA,CAAAA,EAgBNd,kBAhB0BI,CAgBPA,WAhBOA,CAAAA,EAAA;;AAAqCI,UAkBhEW,sBAlBgEX,CAAAA,WAAAA,CAAAA,CAAAA;EAASC,KAAAA,EAAAA,MAAAA;EAASC,OAAAA,CAAAA,EAoBrFX,eApBqFW,CAoBrEN,WApBqEM,CAAAA;EAA2CN,WAAAA,CAAAA,EAqB5HJ,kBArB4HI,CAqBzGA,WArByGA,CAAAA,EAAAA;EAA5BQ,eAAAA,EAAAA,MAAAA;;AAAmDC,iBAwB7IO,gBAxB6IP,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,KAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAwBlEK,uBAxBkEL,CAwB1CT,WAxB0CS,CAAAA,CAAAA,EAwB3BF,OAxB2BE,CAwBnBM,sBAxBmBN,CAwBIT,WAxBJS,CAAAA,CAAAA"}
1
+ {"version":3,"file":"preloadDiffs.d.ts","names":["FileDiffOptions","UnresolvedFileHunksRendererOptions","DiffLineAnnotation","FileContents","FileDiffMetadata","PreloadDiffOptions","LAnnotation","preloadDiffHTML","fileDiff","oldFile","newFile","options","annotations","Promise","preloadUnresolvedFileHTML","file","PreloadUnresolvedFileOptions","PreloadMultiFileDiffOptions","PreloadMultiFileDiffResult","preloadMultiFileDiff","PreloadFileDiffOptions","PreloadFileDiffResult","preloadFileDiff","PreloadUnresolvedFileResult","preloadUnresolvedFile","PreloadPatchDiffOptions","PreloadPatchDiffResult","preloadPatchDiff","patch"],"sources":["../../src/ssr/preloadDiffs.d.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport { type UnresolvedFileHunksRendererOptions } from '../renderers/UnresolvedFileHunksRenderer';\nimport type { DiffLineAnnotation, FileContents, FileDiffMetadata } from '../types';\nexport interface PreloadDiffOptions<LAnnotation> {\n fileDiff?: FileDiffMetadata;\n oldFile?: FileContents;\n newFile?: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport declare function preloadDiffHTML<LAnnotation = undefined>({ fileDiff, oldFile, newFile, options, annotations }: PreloadDiffOptions<LAnnotation>): Promise<string>;\nexport declare function preloadUnresolvedFileHTML<LAnnotation = undefined>({ file, options, annotations }: PreloadUnresolvedFileOptions<LAnnotation>): Promise<string>;\nexport interface PreloadMultiFileDiffOptions<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadMultiFileDiffResult<LAnnotation> extends PreloadMultiFileDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\nexport declare function preloadMultiFileDiff<LAnnotation = undefined>({ oldFile, newFile, options, annotations }: PreloadMultiFileDiffOptions<LAnnotation>): Promise<PreloadMultiFileDiffResult<LAnnotation>>;\nexport interface PreloadFileDiffOptions<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadFileDiffResult<LAnnotation> extends PreloadFileDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\nexport declare function preloadFileDiff<LAnnotation = undefined>({ fileDiff, options, annotations }: PreloadFileDiffOptions<LAnnotation>): Promise<PreloadFileDiffResult<LAnnotation>>;\nexport interface PreloadUnresolvedFileOptions<LAnnotation> {\n file: FileContents;\n options?: UnresolvedFileHunksRendererOptions;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadUnresolvedFileResult<LAnnotation> extends PreloadUnresolvedFileOptions<LAnnotation> {\n prerenderedHTML: string;\n}\nexport declare function preloadUnresolvedFile<LAnnotation = undefined>({ file, options, annotations }: PreloadUnresolvedFileOptions<LAnnotation>): Promise<PreloadUnresolvedFileResult<LAnnotation>>;\nexport interface PreloadPatchDiffOptions<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\nexport interface PreloadPatchDiffResult<LAnnotation> extends PreloadPatchDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\nexport declare function preloadPatchDiff<LAnnotation = undefined>({ patch, options, annotations }: PreloadPatchDiffOptions<LAnnotation>): Promise<PreloadPatchDiffResult<LAnnotation>>;\n//# sourceMappingURL=preloadDiffs.d.ts.map"],"mappings":";;;;;UAGiBK;aACFD;EADEC,OAAAA,CAAAA,EAEHF,YAFqB;EACpBC,OAAAA,CAAAA,EAEDD,YAFCC;EACDD,OAAAA,CAAAA,EAEAH,eAFAG,CAEgBG,WAFhBH,CAAAA;EACAA,WAAAA,CAAAA,EAEID,kBAFJC,CAEuBG,WAFvBH,CAAAA,EAAAA;;AACAH,iBAGUO,eAHVP,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAGyGK,kBAHzGL,CAG4HM,WAH5HN,CAAAA,CAAAA,EAG2Ia,OAH3Ib,CAAAA,MAAAA,CAAAA;AACuBM,iBAGbQ,yBAHaR,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,IAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAGsEU,4BAHtEV,CAGmGA,WAHnGA,CAAAA,CAAAA,EAGkHO,OAHlHP,CAAAA,MAAAA,CAAAA;AAAnBJ,UAIDe,2BAJCf,CAAAA,WAAAA,CAAAA,CAAAA;EAAkB,OAAA,EAKvBC,YALuB;EAEZI,OAAAA,EAIXJ,YAJ0B;EAA4BK,OAAAA,CAAAA,EAKrDR,eALqDQ,CAKrCF,WALqCE,CAAAA;EAAUC,WAAAA,CAAAA,EAM3DP,kBAN2DO,CAMxCH,WANwCG,CAAAA,EAAAA;;AAAkBE,UAQ9EO,0BAR8EP,CAAAA,WAAAA,CAAAA,SAQ9BM,2BAR8BN,CAQFL,WAREK,CAAAA,CAAAA;EAASC,eAAAA,EAAAA,MAAAA;;AAAeP,iBAW/Fc,oBAX+Fd,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAWLY,2BAXKZ,CAWuBC,WAXvBD,CAAAA,CAAAA,EAWsCQ,OAXtCR,CAW8Ca,0BAX9Cb,CAWyEC,WAXzED,CAAAA,CAAAA;AAAkCQ,UAYxIO,sBAZwIP,CAAAA,WAAAA,CAAAA,CAAAA;EAAO,QAAA,EAalJT,gBAbkJ;EACxIU,OAAAA,CAAAA,EAaVd,eAbUc,CAaMR,WAbmBA,CAAAA;EAA4BS,WAAAA,CAAAA,EAc3Db,kBAd2Da,CAcxCT,WAdwCS,CAAAA,EAAAA;;AAAeH,UAgB3ES,qBAhB2ET,CAAAA,WAAAA,CAAAA,SAgBhCQ,sBAhBgCR,CAgBTN,WAhBSM,CAAAA,CAAAA;EAA4CN,eAAAA,EAAAA,MAAAA;;AAAeO,iBAmB/HS,eAnB+HT,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EAmBlDO,sBAnBkDP,CAmB3BP,WAnB2BO,CAAAA,CAAAA,EAmBZA,OAnBYA,CAmBJQ,qBAnBIR,CAmBkBP,WAnBlBO,CAAAA,CAAAA;AAAO,UAoB7IG,4BApB6I,CAAA,WAAA,CAAA,CAAA;EAC7IC,IAAAA,EAoBPd,YApBOc;EACJd,OAAAA,CAAAA,EAoBCF,kCApBDE;EACAA,WAAAA,CAAAA,EAoBKD,kBApBLC,CAoBwBG,WApBxBH,CAAAA,EAAAA;;AACCH,UAqBGuB,2BArBHvB,CAAAA,WAAAA,CAAAA,SAqBoDgB,4BArBpDhB,CAqBiFM,WArBjFN,CAAAA,CAAAA;EACuBM,eAAAA,EAAAA,MAAAA;;AAAD,iBAuBZkB,qBAvBY,CAAA,cAAA,SAAA,CAAA,CAAA;EAAA,IAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAuBmER,4BAvBnE,CAuBgGV,WAvBhG,CAAA,CAAA,EAuB+GO,OAvB/G,CAuBuHU,2BAvBvH,CAuBmJjB,WAvBnJ,CAAA,CAAA;AAEnBY,UAsBAO,uBAtB0BnB,CAAAA,WAAAA,CAAAA,CAAAA;EAGnBa,KAAAA,EAAAA,MAAAA;EAAgDV,OAAAA,CAAAA,EAqB1DT,eArB0DS,CAqB1CH,WArB0CG,CAAAA;EAASC,WAAAA,CAAAA,EAsB/DR,kBAtB+DQ,CAsB5CJ,WAtB4CI,CAAAA,EAAAA;;AAAkBE,UAwBlFc,sBAxBkFd,CAAAA,WAAAA,CAAAA,SAwBtCa,uBAxBsCb,CAwBdN,WAxBcM,CAAAA,CAAAA;EAA2CN,eAAAA,EAAAA,MAAAA;;AAAkDA,iBA2BxKqB,gBA3BwKrB,CAAAA,cAAAA,SAAAA,CAAAA,CAAAA;EAAAA,KAAAA;EAAAA,OAAAA;EAAAA;AAAAA,CAAAA,EA2B7FmB,uBA3B6FnB,CA2BrEA,WA3BqEA,CAAAA,CAAAA,EA2BtDO,OA3BsDP,CA2B9CoB,sBA3B8CpB,CA2BvBA,WA3BuBA,CAAAA,CAAAA"}
@@ -1,5 +1,7 @@
1
1
  import { DiffHunksRenderer } from "../renderers/DiffHunksRenderer.js";
2
2
  import { parseDiffFromFile } from "../utils/parseDiffFromFile.js";
3
+ import { parseMergeConflictDiffFromFile } from "../utils/parseMergeConflictDiffFromFile.js";
4
+ import { UnresolvedFileHunksRenderer } from "../renderers/UnresolvedFileHunksRenderer.js";
3
5
  import { createStyleElement } from "../utils/createStyleElement.js";
4
6
  import { getSingularPatch } from "../utils/getSingularPatch.js";
5
7
  import { renderHTML } from "./renderHTML.js";
@@ -8,19 +10,16 @@ import { renderHTML } from "./renderHTML.js";
8
10
  async function preloadDiffHTML({ fileDiff, oldFile, newFile, options, annotations }) {
9
11
  if (fileDiff == null && oldFile != null && newFile != null) fileDiff = parseDiffFromFile(oldFile, newFile);
10
12
  if (fileDiff == null) throw new Error("preloadFileDiff: You must pass at least a fileDiff prop or oldFile/newFile props");
11
- const diffHunksRenderer = new DiffHunksRenderer({
12
- ...options,
13
- hunkSeparators: typeof options?.hunkSeparators === "function" ? "custom" : options?.hunkSeparators
14
- });
15
- if (annotations !== void 0 && annotations.length > 0) diffHunksRenderer.setLineAnnotations(annotations);
16
- const hunkResult = await diffHunksRenderer.asyncRender(fileDiff);
17
- const children = [createStyleElement(hunkResult.css, true)];
18
- if (options?.unsafeCSS != null) children.push(createStyleElement(options.unsafeCSS));
19
- if (hunkResult.headerElement != null) children.push(hunkResult.headerElement);
20
- const code = diffHunksRenderer.renderFullAST(hunkResult);
21
- code.properties["data-dehydrated"] = "";
22
- children.push(code);
23
- return renderHTML(children);
13
+ const renderer = new DiffHunksRenderer(getHunksRendererOptions(options));
14
+ if (annotations != null && annotations.length > 0) renderer.setLineAnnotations(annotations);
15
+ return renderHTML(processHunkResult(await renderer.asyncRender(fileDiff), renderer, options?.unsafeCSS));
16
+ }
17
+ async function preloadUnresolvedFileHTML({ file, options, annotations }) {
18
+ const { fileDiff, actions } = parseMergeConflictDiffFromFile(file);
19
+ const renderer = new UnresolvedFileHunksRenderer(options);
20
+ if (annotations != null && annotations.length > 0) renderer.setLineAnnotations(annotations);
21
+ renderer.setConflictActions(actions);
22
+ return renderHTML(processHunkResult(await renderer.asyncRender(fileDiff), renderer, options?.unsafeCSS));
24
23
  }
25
24
  async function preloadMultiFileDiff({ oldFile, newFile, options, annotations }) {
26
25
  return {
@@ -48,6 +47,18 @@ async function preloadFileDiff({ fileDiff, options, annotations }) {
48
47
  })
49
48
  };
50
49
  }
50
+ async function preloadUnresolvedFile({ file, options, annotations }) {
51
+ return {
52
+ file,
53
+ options,
54
+ annotations,
55
+ prerenderedHTML: await preloadUnresolvedFileHTML({
56
+ file,
57
+ options,
58
+ annotations
59
+ })
60
+ };
61
+ }
51
62
  async function preloadPatchDiff({ patch, options, annotations }) {
52
63
  return {
53
64
  patch,
@@ -60,7 +71,22 @@ async function preloadPatchDiff({ patch, options, annotations }) {
60
71
  })
61
72
  };
62
73
  }
74
+ function processHunkResult(hunkResult, renderer, unsafeCSS) {
75
+ const children = [createStyleElement(hunkResult.css, true)];
76
+ if (unsafeCSS != null) children.push(createStyleElement(unsafeCSS));
77
+ if (hunkResult.headerElement != null) children.push(hunkResult.headerElement);
78
+ const code = renderer.renderFullAST(hunkResult);
79
+ code.properties["data-dehydrated"] = "";
80
+ children.push(code);
81
+ return children;
82
+ }
83
+ function getHunksRendererOptions(options) {
84
+ return {
85
+ ...options,
86
+ hunkSeparators: typeof options?.hunkSeparators === "function" ? "custom" : options?.hunkSeparators
87
+ };
88
+ }
63
89
 
64
90
  //#endregion
65
- export { preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff };
91
+ export { preloadDiffHTML, preloadFileDiff, preloadMultiFileDiff, preloadPatchDiff, preloadUnresolvedFile, preloadUnresolvedFileHTML };
66
92
  //# sourceMappingURL=preloadDiffs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"preloadDiffs.js","names":[],"sources":["../../src/ssr/preloadDiffs.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport { DiffHunksRenderer } from '../renderers/DiffHunksRenderer';\nimport type {\n DiffLineAnnotation,\n FileContents,\n FileDiffMetadata,\n} from '../types';\nimport { createStyleElement } from '../utils/createStyleElement';\nimport { getSingularPatch } from '../utils/getSingularPatch';\nimport { parseDiffFromFile } from '../utils/parseDiffFromFile';\nimport { renderHTML } from './renderHTML';\n\nexport interface PreloadDiffOptions<LAnnotation> {\n fileDiff?: FileDiffMetadata;\n oldFile?: FileContents;\n newFile?: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport async function preloadDiffHTML<LAnnotation = undefined>({\n fileDiff,\n oldFile,\n newFile,\n options,\n annotations,\n}: PreloadDiffOptions<LAnnotation>): Promise<string> {\n if (fileDiff == null && oldFile != null && newFile != null) {\n fileDiff = parseDiffFromFile(oldFile, newFile);\n }\n if (fileDiff == null) {\n throw new Error(\n 'preloadFileDiff: You must pass at least a fileDiff prop or oldFile/newFile props'\n );\n }\n const diffHunksRenderer = new DiffHunksRenderer<LAnnotation>({\n ...options,\n hunkSeparators:\n typeof options?.hunkSeparators === 'function'\n ? 'custom'\n : options?.hunkSeparators,\n });\n\n // Set line annotations if provided\n if (annotations !== undefined && annotations.length > 0) {\n diffHunksRenderer.setLineAnnotations(annotations);\n }\n\n const hunkResult = await diffHunksRenderer.asyncRender(fileDiff);\n\n const children = [createStyleElement(hunkResult.css, true)];\n\n if (options?.unsafeCSS != null) {\n children.push(createStyleElement(options.unsafeCSS));\n }\n\n if (hunkResult.headerElement != null) {\n children.push(hunkResult.headerElement);\n }\n const code = diffHunksRenderer.renderFullAST(hunkResult);\n code.properties['data-dehydrated'] = '';\n children.push(code);\n\n return renderHTML(children);\n}\n\nexport interface PreloadMultiFileDiffOptions<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadMultiFileDiffResult<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\n\nexport async function preloadMultiFileDiff<LAnnotation = undefined>({\n oldFile,\n newFile,\n options,\n annotations,\n}: PreloadMultiFileDiffOptions<LAnnotation>): Promise<\n PreloadMultiFileDiffResult<LAnnotation>\n> {\n return {\n newFile,\n oldFile,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n oldFile,\n newFile,\n options,\n annotations,\n }),\n };\n}\n\nexport interface PreloadFileDiffOptions<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadFileDiffResult<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\n\nexport async function preloadFileDiff<LAnnotation = undefined>({\n fileDiff,\n options,\n annotations,\n}: PreloadFileDiffOptions<LAnnotation>): Promise<\n PreloadFileDiffResult<LAnnotation>\n> {\n return {\n fileDiff,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n fileDiff,\n options,\n annotations,\n }),\n };\n}\n\nexport interface PreloadPatchDiffOptions<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadPatchDiffResult<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n prerenderedHTML: string;\n}\n\nexport async function preloadPatchDiff<LAnnotation = undefined>({\n patch,\n options,\n annotations,\n}: PreloadPatchDiffOptions<LAnnotation>): Promise<\n PreloadPatchDiffResult<LAnnotation>\n> {\n const fileDiff = getSingularPatch(patch);\n return {\n patch,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n fileDiff,\n options,\n annotations,\n }),\n };\n}\n"],"mappings":";;;;;;;AAoBA,eAAsB,gBAAyC,EAC7D,UACA,SACA,SACA,SACA,eACmD;AACnD,KAAI,YAAY,QAAQ,WAAW,QAAQ,WAAW,KACpD,YAAW,kBAAkB,SAAS,QAAQ;AAEhD,KAAI,YAAY,KACd,OAAM,IAAI,MACR,mFACD;CAEH,MAAM,oBAAoB,IAAI,kBAA+B;EAC3D,GAAG;EACH,gBACE,OAAO,SAAS,mBAAmB,aAC/B,WACA,SAAS;EAChB,CAAC;AAGF,KAAI,gBAAgB,UAAa,YAAY,SAAS,EACpD,mBAAkB,mBAAmB,YAAY;CAGnD,MAAM,aAAa,MAAM,kBAAkB,YAAY,SAAS;CAEhE,MAAM,WAAW,CAAC,mBAAmB,WAAW,KAAK,KAAK,CAAC;AAE3D,KAAI,SAAS,aAAa,KACxB,UAAS,KAAK,mBAAmB,QAAQ,UAAU,CAAC;AAGtD,KAAI,WAAW,iBAAiB,KAC9B,UAAS,KAAK,WAAW,cAAc;CAEzC,MAAM,OAAO,kBAAkB,cAAc,WAAW;AACxD,MAAK,WAAW,qBAAqB;AACrC,UAAS,KAAK,KAAK;AAEnB,QAAO,WAAW,SAAS;;AAkB7B,eAAsB,qBAA8C,EAClE,SACA,SACA,SACA,eAGA;AACA,QAAO;EACL;EACA;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC;GACA;GACA;GACA;GACD,CAAC;EACH;;AAgBH,eAAsB,gBAAyC,EAC7D,UACA,SACA,eAGA;AACA,QAAO;EACL;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC;GACA;GACA;GACD,CAAC;EACH;;AAgBH,eAAsB,iBAA0C,EAC9D,OACA,SACA,eAGA;AAEA,QAAO;EACL;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC,UANa,iBAAiB,MAAM;GAOpC;GACA;GACD,CAAC;EACH"}
1
+ {"version":3,"file":"preloadDiffs.js","names":[],"sources":["../../src/ssr/preloadDiffs.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport {\n DiffHunksRenderer,\n type HunksRenderResult,\n} from '../renderers/DiffHunksRenderer';\nimport {\n UnresolvedFileHunksRenderer,\n type UnresolvedFileHunksRendererOptions,\n} from '../renderers/UnresolvedFileHunksRenderer';\nimport type {\n BaseDiffOptions,\n DiffLineAnnotation,\n FileContents,\n FileDiffMetadata,\n} from '../types';\nimport { createStyleElement } from '../utils/createStyleElement';\nimport { getSingularPatch } from '../utils/getSingularPatch';\nimport { parseDiffFromFile } from '../utils/parseDiffFromFile';\nimport { parseMergeConflictDiffFromFile } from '../utils/parseMergeConflictDiffFromFile';\nimport { renderHTML } from './renderHTML';\n\nexport interface PreloadDiffOptions<LAnnotation> {\n fileDiff?: FileDiffMetadata;\n oldFile?: FileContents;\n newFile?: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport async function preloadDiffHTML<LAnnotation = undefined>({\n fileDiff,\n oldFile,\n newFile,\n options,\n annotations,\n}: PreloadDiffOptions<LAnnotation>): Promise<string> {\n if (fileDiff == null && oldFile != null && newFile != null) {\n fileDiff = parseDiffFromFile(oldFile, newFile);\n }\n if (fileDiff == null) {\n throw new Error(\n 'preloadFileDiff: You must pass at least a fileDiff prop or oldFile/newFile props'\n );\n }\n const renderer = new DiffHunksRenderer<LAnnotation>(\n getHunksRendererOptions(options)\n );\n if (annotations != null && annotations.length > 0) {\n renderer.setLineAnnotations(annotations);\n }\n return renderHTML(\n processHunkResult(\n await renderer.asyncRender(fileDiff),\n renderer,\n options?.unsafeCSS\n )\n );\n}\n\nexport async function preloadUnresolvedFileHTML<LAnnotation = undefined>({\n file,\n options,\n annotations,\n}: PreloadUnresolvedFileOptions<LAnnotation>): Promise<string> {\n const { fileDiff, actions } = parseMergeConflictDiffFromFile(file);\n const renderer = new UnresolvedFileHunksRenderer<LAnnotation>(options);\n if (annotations != null && annotations.length > 0) {\n renderer.setLineAnnotations(annotations);\n }\n renderer.setConflictActions(actions);\n return renderHTML(\n processHunkResult(\n await renderer.asyncRender(fileDiff),\n renderer,\n options?.unsafeCSS\n )\n );\n}\n\nexport interface PreloadMultiFileDiffOptions<LAnnotation> {\n oldFile: FileContents;\n newFile: FileContents;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadMultiFileDiffResult<\n LAnnotation,\n> extends PreloadMultiFileDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\n\nexport async function preloadMultiFileDiff<LAnnotation = undefined>({\n oldFile,\n newFile,\n options,\n annotations,\n}: PreloadMultiFileDiffOptions<LAnnotation>): Promise<\n PreloadMultiFileDiffResult<LAnnotation>\n> {\n return {\n newFile,\n oldFile,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n oldFile,\n newFile,\n options,\n annotations,\n }),\n };\n}\n\nexport interface PreloadFileDiffOptions<LAnnotation> {\n fileDiff: FileDiffMetadata;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadFileDiffResult<\n LAnnotation,\n> extends PreloadFileDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\n\nexport async function preloadFileDiff<LAnnotation = undefined>({\n fileDiff,\n options,\n annotations,\n}: PreloadFileDiffOptions<LAnnotation>): Promise<\n PreloadFileDiffResult<LAnnotation>\n> {\n return {\n fileDiff,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n fileDiff,\n options,\n annotations,\n }),\n };\n}\n\nexport interface PreloadUnresolvedFileOptions<LAnnotation> {\n file: FileContents;\n options?: UnresolvedFileHunksRendererOptions;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadUnresolvedFileResult<\n LAnnotation,\n> extends PreloadUnresolvedFileOptions<LAnnotation> {\n prerenderedHTML: string;\n}\n\nexport async function preloadUnresolvedFile<LAnnotation = undefined>({\n file,\n options,\n annotations,\n}: PreloadUnresolvedFileOptions<LAnnotation>): Promise<\n PreloadUnresolvedFileResult<LAnnotation>\n> {\n return {\n file,\n options,\n annotations,\n prerenderedHTML: await preloadUnresolvedFileHTML({\n file,\n options,\n annotations,\n }),\n };\n}\n\nexport interface PreloadPatchDiffOptions<LAnnotation> {\n patch: string;\n options?: FileDiffOptions<LAnnotation>;\n annotations?: DiffLineAnnotation<LAnnotation>[];\n}\n\nexport interface PreloadPatchDiffResult<\n LAnnotation,\n> extends PreloadPatchDiffOptions<LAnnotation> {\n prerenderedHTML: string;\n}\n\nexport async function preloadPatchDiff<LAnnotation = undefined>({\n patch,\n options,\n annotations,\n}: PreloadPatchDiffOptions<LAnnotation>): Promise<\n PreloadPatchDiffResult<LAnnotation>\n> {\n const fileDiff = getSingularPatch(patch);\n return {\n patch,\n options,\n annotations,\n prerenderedHTML: await preloadDiffHTML({\n fileDiff,\n options,\n annotations,\n }),\n };\n}\n\nfunction processHunkResult<LAnnotation>(\n hunkResult: HunksRenderResult,\n renderer:\n | DiffHunksRenderer<LAnnotation>\n | UnresolvedFileHunksRenderer<LAnnotation>,\n unsafeCSS: string | undefined\n) {\n const children = [createStyleElement(hunkResult.css, true)];\n if (unsafeCSS != null) {\n children.push(createStyleElement(unsafeCSS));\n }\n if (hunkResult.headerElement != null) {\n children.push(hunkResult.headerElement);\n }\n const code = renderer.renderFullAST(hunkResult);\n code.properties['data-dehydrated'] = '';\n children.push(code);\n return children;\n}\n\nfunction getHunksRendererOptions<LAnnotation>(\n options: FileDiffOptions<LAnnotation> | undefined\n): BaseDiffOptions {\n return {\n ...options,\n hunkSeparators:\n typeof options?.hunkSeparators === 'function'\n ? 'custom'\n : options?.hunkSeparators,\n };\n}\n"],"mappings":";;;;;;;;;AA6BA,eAAsB,gBAAyC,EAC7D,UACA,SACA,SACA,SACA,eACmD;AACnD,KAAI,YAAY,QAAQ,WAAW,QAAQ,WAAW,KACpD,YAAW,kBAAkB,SAAS,QAAQ;AAEhD,KAAI,YAAY,KACd,OAAM,IAAI,MACR,mFACD;CAEH,MAAM,WAAW,IAAI,kBACnB,wBAAwB,QAAQ,CACjC;AACD,KAAI,eAAe,QAAQ,YAAY,SAAS,EAC9C,UAAS,mBAAmB,YAAY;AAE1C,QAAO,WACL,kBACE,MAAM,SAAS,YAAY,SAAS,EACpC,UACA,SAAS,UACV,CACF;;AAGH,eAAsB,0BAAmD,EACvE,MACA,SACA,eAC6D;CAC7D,MAAM,EAAE,UAAU,YAAY,+BAA+B,KAAK;CAClE,MAAM,WAAW,IAAI,4BAAyC,QAAQ;AACtE,KAAI,eAAe,QAAQ,YAAY,SAAS,EAC9C,UAAS,mBAAmB,YAAY;AAE1C,UAAS,mBAAmB,QAAQ;AACpC,QAAO,WACL,kBACE,MAAM,SAAS,YAAY,SAAS,EACpC,UACA,SAAS,UACV,CACF;;AAgBH,eAAsB,qBAA8C,EAClE,SACA,SACA,SACA,eAGA;AACA,QAAO;EACL;EACA;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC;GACA;GACA;GACA;GACD,CAAC;EACH;;AAeH,eAAsB,gBAAyC,EAC7D,UACA,SACA,eAGA;AACA,QAAO;EACL;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC;GACA;GACA;GACD,CAAC;EACH;;AAeH,eAAsB,sBAA+C,EACnE,MACA,SACA,eAGA;AACA,QAAO;EACL;EACA;EACA;EACA,iBAAiB,MAAM,0BAA0B;GAC/C;GACA;GACA;GACD,CAAC;EACH;;AAeH,eAAsB,iBAA0C,EAC9D,OACA,SACA,eAGA;AAEA,QAAO;EACL;EACA;EACA;EACA,iBAAiB,MAAM,gBAAgB;GACrC,UANa,iBAAiB,MAAM;GAOpC;GACA;GACD,CAAC;EACH;;AAGH,SAAS,kBACP,YACA,UAGA,WACA;CACA,MAAM,WAAW,CAAC,mBAAmB,WAAW,KAAK,KAAK,CAAC;AAC3D,KAAI,aAAa,KACf,UAAS,KAAK,mBAAmB,UAAU,CAAC;AAE9C,KAAI,WAAW,iBAAiB,KAC9B,UAAS,KAAK,WAAW,cAAc;CAEzC,MAAM,OAAO,SAAS,cAAc,WAAW;AAC/C,MAAK,WAAW,qBAAqB;AACrC,UAAS,KAAK,KAAK;AACnB,QAAO;;AAGT,SAAS,wBACP,SACiB;AACjB,QAAO;EACL,GAAG;EACH,gBACE,OAAO,SAAS,mBAAmB,aAC/B,WACA,SAAS;EAChB"}