laif-ds 0.2.20 → 0.2.22

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 (283) hide show
  1. package/dist/_virtual/index.js +5 -3
  2. package/dist/_virtual/index3.js +2 -5
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index6.js +5 -2
  5. package/dist/_virtual/index7.js +2 -2
  6. package/dist/components/ui/app-select.js +92 -109
  7. package/dist/components/ui/app-stepper.js +212 -0
  8. package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
  9. package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
  10. package/dist/components/ui/message-input.js +23 -23
  11. package/dist/components/ui/sidebar.js +1 -1
  12. package/dist/components/ui/stepper.js +387 -0
  13. package/dist/index.d.ts +55 -6
  14. package/dist/index.js +30 -28
  15. package/dist/lib/audio-utils.js +2 -2
  16. package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
  17. package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
  18. package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
  19. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
  20. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
  21. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  22. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
  23. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  24. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
  25. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
  26. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
  27. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
  28. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
  29. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
  30. package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
  31. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
  32. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
  33. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
  34. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
  35. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
  36. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
  37. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
  38. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
  39. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
  40. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
  41. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
  42. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
  43. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
  44. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
  45. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
  46. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
  47. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
  48. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
  49. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
  50. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
  51. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
  52. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
  53. package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
  54. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
  55. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
  56. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
  57. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
  58. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
  59. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
  60. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
  61. package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
  62. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
  63. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
  64. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
  65. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
  66. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
  67. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  68. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
  69. package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
  70. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
  71. package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
  72. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  73. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
  74. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
  75. package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
  76. package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
  77. package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
  78. package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
  79. package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
  80. package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
  81. package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
  82. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
  83. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
  84. package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
  85. package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
  86. package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
  87. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
  88. package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
  89. package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
  90. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
  91. package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
  92. package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
  93. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
  94. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
  95. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
  96. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
  97. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
  98. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
  99. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
  100. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
  101. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
  102. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
  103. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
  104. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
  105. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
  106. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  107. package/dist/node_modules/classnames/index.js +2 -2
  108. package/dist/node_modules/cmdk/dist/index.js +2 -2
  109. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  110. package/dist/node_modules/dayjs/dayjs.min.js +14 -14
  111. package/dist/node_modules/dayjs/locale/it.js +4 -4
  112. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
  113. package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
  114. package/dist/node_modules/decimal.js-light/decimal.js +2 -2
  115. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
  116. package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
  117. package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
  118. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
  119. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
  120. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
  121. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
  122. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
  123. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
  124. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
  125. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
  126. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
  127. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
  128. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  129. package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
  130. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
  131. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
  132. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
  133. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
  134. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
  135. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
  136. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
  137. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
  138. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
  139. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
  140. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
  141. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
  142. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
  143. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
  144. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
  145. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
  146. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
  147. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
  148. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
  149. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
  150. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
  151. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
  152. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
  153. package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
  154. package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
  155. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
  156. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
  157. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
  158. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
  159. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
  160. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
  161. package/dist/node_modules/eventemitter3/index.js +1 -1
  162. package/dist/node_modules/eventemitter3/index2.js +3 -3
  163. package/dist/node_modules/immer/dist/immer.js +213 -216
  164. package/dist/node_modules/lexical/Lexical.prod.js +212 -212
  165. package/dist/node_modules/lodash/_baseCreate.js +2 -2
  166. package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
  167. package/dist/node_modules/lodash/_defineProperty.js +2 -2
  168. package/dist/node_modules/lodash/_isMasked.js +2 -2
  169. package/dist/node_modules/lodash/_nodeUtil.js +4 -4
  170. package/dist/node_modules/lodash/isArguments.js +2 -2
  171. package/dist/node_modules/lodash/isBuffer.js +2 -2
  172. package/dist/node_modules/lodash/lodash.js +16 -16
  173. package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
  174. package/dist/node_modules/prismjs/components/prism-java.js +2 -2
  175. package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
  176. package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
  177. package/dist/node_modules/prismjs/prism.js +8 -8
  178. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
  179. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
  180. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
  181. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
  182. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
  183. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
  185. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
  186. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  187. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
  188. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
  189. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
  190. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
  191. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
  192. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
  193. package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
  194. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
  195. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
  196. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
  197. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
  198. package/dist/node_modules/react-window/dist/index.esm.js +2 -2
  199. package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
  200. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
  201. package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
  202. package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
  203. package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
  204. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
  205. package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
  206. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
  207. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
  208. package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
  209. package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
  210. package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
  211. package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
  212. package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
  213. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
  214. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
  215. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
  216. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
  217. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
  218. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
  219. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
  220. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
  221. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
  222. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
  223. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
  224. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
  225. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
  226. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
  227. package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
  228. package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
  229. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  230. package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
  231. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
  232. package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
  233. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
  234. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
  235. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
  236. package/dist/node_modules/recharts/es6/util/types.js +22 -332
  237. package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
  238. package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
  239. package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
  240. package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
  241. package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
  242. package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
  243. package/dist/node_modules/shiki/dist/langs.js +225 -220
  244. package/dist/node_modules/shiki/dist/themes.js +60 -60
  245. package/dist/node_modules/sonner/dist/index.js +309 -305
  246. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  247. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
  248. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  249. package/dist/node_modules/unified/lib/index.js +1 -1
  250. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  251. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
  252. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
  253. package/dist/node_modules/vaul/dist/index.js +1 -1
  254. package/dist/node_modules/vfile-message/lib/index.js +1 -1
  255. package/dist/styles.v3.css +1 -1
  256. package/package.json +3 -2
  257. package/dist/_virtual/isEqual.js +0 -8
  258. package/dist/_virtual/isEqual2.js +0 -5
  259. package/dist/_virtual/isEqualWith.js +0 -5
  260. package/dist/_virtual/isPlainObject.js +0 -5
  261. package/dist/_virtual/noop.js +0 -5
  262. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
  263. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  264. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  265. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  266. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  267. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
  268. package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
  269. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
  270. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
  271. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
  272. package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
  273. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
  274. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
  275. package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
  276. package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
  277. package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
  278. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
  279. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  280. package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  281. package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  282. package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  283. package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
@@ -29,7 +29,7 @@ function U(n) {
29
29
  function fe(n) {
30
30
  return U(n);
31
31
  }
32
- function he(n, e) {
32
+ function ue(n, e) {
33
33
  if (!e)
34
34
  return n;
35
35
  n.properties ||= {}, n.properties.class ||= [], typeof n.properties.class == "string" && (n.properties.class = n.properties.class.split(/\s+/g)), Array.isArray(n.properties.class) || (n.properties.class = []);
@@ -76,7 +76,7 @@ function _e(n) {
76
76
  posToIndex: s
77
77
  };
78
78
  }
79
- function ft(n, e, t) {
79
+ function ut(n, e, t) {
80
80
  const s = /* @__PURE__ */ new Set();
81
81
  for (const o of n.matchAll(/lang=["']([\w-]+)["']/g))
82
82
  s.add(o[1]);
@@ -117,24 +117,24 @@ function Ce(n, e, t, s, r = "css-vars") {
117
117
  content: n.content,
118
118
  explanation: n.explanation,
119
119
  offset: n.offset
120
- }, i = e.map((l) => M(n.variants[l])), a = new Set(i.flatMap((l) => Object.keys(l))), c = {}, f = (l, h) => {
121
- const u = h === "color" ? "" : h === "background-color" ? "-bg" : `-${h}`;
122
- return t + e[l] + (h === "color" ? "" : u);
120
+ }, i = e.map((l) => M(n.variants[l])), a = new Set(i.flatMap((l) => Object.keys(l))), c = {}, f = (l, u) => {
121
+ const h = u === "color" ? "" : u === "background-color" ? "-bg" : `-${u}`;
122
+ return t + e[l] + (u === "color" ? "" : h);
123
123
  };
124
- return i.forEach((l, h) => {
125
- for (const u of a) {
126
- const p = l[u] || "inherit";
127
- if (h === 0 && s && Le.includes(u))
124
+ return i.forEach((l, u) => {
125
+ for (const h of a) {
126
+ const p = l[h] || "inherit";
127
+ if (u === 0 && s && Le.includes(h))
128
128
  if (s === Y && i.length > 1) {
129
129
  const d = e.findIndex((g) => g === "light"), S = e.findIndex((g) => g === "dark");
130
130
  if (d === -1 || S === -1)
131
131
  throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
132
- const y = i[d][u] || "inherit", m = i[S][u] || "inherit";
133
- c[u] = `light-dark(${y}, ${m})`, r === "css-vars" && (c[f(h, u)] = p);
132
+ const y = i[d][h] || "inherit", m = i[S][h] || "inherit";
133
+ c[h] = `light-dark(${y}, ${m})`, r === "css-vars" && (c[f(u, h)] = p);
134
134
  } else
135
- c[u] = p;
135
+ c[h] = p;
136
136
  else
137
- r === "css-vars" && (c[f(h, u)] = p);
137
+ r === "css-vars" && (c[f(u, h)] = p);
138
138
  }
139
139
  }), o.htmlStyle = c, o;
140
140
  }
@@ -150,12 +150,12 @@ function M(n) {
150
150
  function J(n) {
151
151
  return typeof n == "string" ? n : Object.entries(n).map(([e, t]) => `${e}:${t}`).join(";");
152
152
  }
153
- const ue = /* @__PURE__ */ new WeakMap();
153
+ const he = /* @__PURE__ */ new WeakMap();
154
154
  function H(n, e) {
155
- ue.set(n, e);
155
+ he.set(n, e);
156
156
  }
157
157
  function E(n) {
158
- return ue.get(n);
158
+ return he.get(n);
159
159
  }
160
160
  class N {
161
161
  /**
@@ -241,11 +241,13 @@ function Ie() {
241
241
  const a = r.lines[i.line];
242
242
  if (a === void 0)
243
243
  throw new T(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${r.lines.length}`);
244
- if (i.character < 0 || i.character > a.length)
244
+ let c = i.character;
245
+ if (c < 0 && (c = a.length + c), c < 0 || c > a.length)
245
246
  throw new T(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);
246
247
  return {
247
248
  ...i,
248
- offset: r.posToIndex(i.line, i.character)
249
+ character: c,
250
+ offset: r.posToIndex(i.line, c)
249
251
  };
250
252
  }
251
253
  };
@@ -276,12 +278,12 @@ function Ie() {
276
278
  const s = e(this), r = Array.from(t.children).filter((l) => l.type === "element" && l.tagName === "span");
277
279
  if (r.length !== s.converter.lines.length)
278
280
  throw new T(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);
279
- function o(l, h, u, p) {
281
+ function o(l, u, h, p) {
280
282
  const d = r[l];
281
283
  let S = "", y = -1, m = -1;
282
- if (h === 0 && (y = 0), u === 0 && (m = 0), u === Number.POSITIVE_INFINITY && (m = d.children.length), y === -1 || m === -1)
284
+ if (u === 0 && (y = 0), h === 0 && (m = 0), h === Number.POSITIVE_INFINITY && (m = d.children.length), y === -1 || m === -1)
283
285
  for (let b = 0; b < d.children.length; b++)
284
- S += ge(d.children[b]), y === -1 && S.length === h && (y = b + 1), m === -1 && S.length === u && (m = b + 1);
286
+ S += ge(d.children[b]), y === -1 && S.length === u && (y = b + 1), m === -1 && S.length === h && (m = b + 1);
285
287
  if (y === -1)
286
288
  throw new T(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);
287
289
  if (m === -1)
@@ -301,27 +303,27 @@ function Ie() {
301
303
  a(b, p, "wrapper"), d.children.splice(y, g.length, b);
302
304
  }
303
305
  }
304
- function i(l, h) {
305
- r[l] = a(r[l], h, "line");
306
+ function i(l, u) {
307
+ r[l] = a(r[l], u, "line");
306
308
  }
307
- function a(l, h, u) {
308
- const p = h.properties || {}, d = h.transform || ((S) => S);
309
- return l.tagName = h.tagName || "span", l.properties = {
309
+ function a(l, u, h) {
310
+ const p = u.properties || {}, d = u.transform || ((S) => S);
311
+ return l.tagName = u.tagName || "span", l.properties = {
310
312
  ...l.properties,
311
313
  ...p,
312
314
  class: l.properties.class
313
- }, h.properties?.class && he(l, h.properties.class), l = d(l, u) || l, l;
315
+ }, u.properties?.class && ue(l, u.properties.class), l = d(l, h) || l, l;
314
316
  }
315
- const c = [], f = s.decorations.sort((l, h) => h.start.offset - l.start.offset || l.end.offset - h.end.offset);
317
+ const c = [], f = s.decorations.sort((l, u) => u.start.offset - l.start.offset || l.end.offset - u.end.offset);
316
318
  for (const l of f) {
317
- const { start: h, end: u } = l;
318
- if (h.line === u.line)
319
- o(h.line, h.character, u.character, l);
320
- else if (h.line < u.line) {
321
- o(h.line, h.character, Number.POSITIVE_INFINITY, l);
322
- for (let p = h.line + 1; p < u.line; p++)
319
+ const { start: u, end: h } = l;
320
+ if (u.line === h.line)
321
+ o(u.line, u.character, h.character, l);
322
+ else if (u.line < h.line) {
323
+ o(u.line, u.character, Number.POSITIVE_INFINITY, l);
324
+ for (let p = u.line + 1; p < h.line; p++)
323
325
  c.unshift(() => i(p, l));
324
- o(u.line, 0, u.character, l);
326
+ o(h.line, 0, h.character, l);
325
327
  }
326
328
  }
327
329
  c.forEach((l) => l());
@@ -336,7 +338,7 @@ function Ee(n) {
336
338
  for (let s = e + 1; s < n.length; s++) {
337
339
  const r = n[s], o = t.start.offset <= r.start.offset && r.start.offset < t.end.offset, i = t.start.offset < r.end.offset && r.end.offset <= t.end.offset, a = r.start.offset <= t.start.offset && t.start.offset < r.end.offset, c = r.start.offset < t.end.offset && t.end.offset <= r.end.offset;
338
340
  if (o || i || a || c) {
339
- if (o && i || a && c)
341
+ if (o && i || a && c || a && t.start.offset === t.end.offset || i && r.start.offset === r.end.offset)
340
342
  continue;
341
343
  throw new T(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(r.start)} intersect.`);
342
344
  }
@@ -350,11 +352,29 @@ const Oe = [
350
352
  /* @__PURE__ */ Ie()
351
353
  ];
352
354
  function A(n) {
355
+ const e = je(n.transformers || []);
353
356
  return [
354
- ...n.transformers || [],
357
+ ...e.pre,
358
+ ...e.normal,
359
+ ...e.post,
355
360
  ...Oe
356
361
  ];
357
362
  }
363
+ function je(n) {
364
+ const e = [], t = [], s = [];
365
+ for (const r of n)
366
+ switch (r.enforce) {
367
+ case "pre":
368
+ e.push(r);
369
+ break;
370
+ case "post":
371
+ t.push(r);
372
+ break;
373
+ default:
374
+ s.push(r);
375
+ }
376
+ return { pre: e, post: t, normal: s };
377
+ }
358
378
  var x = [
359
379
  "black",
360
380
  "red",
@@ -381,7 +401,7 @@ var x = [
381
401
  8: "hidden",
382
402
  9: "strikethrough"
383
403
  };
384
- function je(n, e) {
404
+ function Me(n, e) {
385
405
  const t = n.indexOf("\x1B", e);
386
406
  if (t !== -1 && n[t + 1] === "[") {
387
407
  const s = n.indexOf("m", t);
@@ -410,7 +430,7 @@ function ne(n) {
410
430
  return { type: "table", index: Number(t) };
411
431
  }
412
432
  }
413
- function Me(n) {
433
+ function Ae(n) {
414
434
  const e = [];
415
435
  for (; n.length > 0; ) {
416
436
  const t = n.shift();
@@ -478,21 +498,21 @@ function Me(n) {
478
498
  }
479
499
  return e;
480
500
  }
481
- function Ae() {
501
+ function Be() {
482
502
  let n = null, e = null, t = /* @__PURE__ */ new Set();
483
503
  return {
484
504
  parse(s) {
485
505
  const r = [];
486
506
  let o = 0;
487
507
  do {
488
- const i = je(s, o), a = i.sequence ? s.substring(o, i.startPosition) : s.substring(o);
508
+ const i = Me(s, o), a = i.sequence ? s.substring(o, i.startPosition) : s.substring(o);
489
509
  if (a.length > 0 && r.push({
490
510
  value: a,
491
511
  foreground: n,
492
512
  background: e,
493
513
  decorations: new Set(t)
494
514
  }), i.sequence) {
495
- const c = Me(i.sequence);
515
+ const c = Ae(i.sequence);
496
516
  for (const f of c)
497
517
  f.type === "resetAll" ? (n = null, e = null, t.clear()) : f.type === "resetForegroundColor" ? n = null : f.type === "resetBackgroundColor" ? e = null : f.type === "resetDecoration" && t.delete(f.value);
498
518
  for (const f of c)
@@ -504,7 +524,7 @@ function Ae() {
504
524
  }
505
525
  };
506
526
  }
507
- var Be = {
527
+ var Ge = {
508
528
  black: "#000000",
509
529
  red: "#bb0000",
510
530
  green: "#00bb00",
@@ -522,7 +542,7 @@ var Be = {
522
542
  brightCyan: "#55ffff",
523
543
  brightWhite: "#ffffff"
524
544
  };
525
- function Ge(n = Be) {
545
+ function Re(n = Ge) {
526
546
  function e(a) {
527
547
  return n[a];
528
548
  }
@@ -539,8 +559,8 @@ function Ge(n = Be) {
539
559
  let a = [0, 95, 135, 175, 215, 255];
540
560
  for (let f = 0; f < 6; f++)
541
561
  for (let l = 0; l < 6; l++)
542
- for (let h = 0; h < 6; h++)
543
- s.push(t([a[f], a[l], a[h]]));
562
+ for (let u = 0; u < 6; u++)
563
+ s.push(t([a[f], a[l], a[u]]));
544
564
  let c = 8;
545
565
  for (let f = 0; f < 24; f++, c += 10)
546
566
  s.push(t([c, c, c]));
@@ -563,32 +583,32 @@ function Ge(n = Be) {
563
583
  value: i
564
584
  };
565
585
  }
566
- function Re(n, e, t) {
567
- const s = j(n, t), r = W(e), o = Ge(
586
+ function We(n, e, t) {
587
+ const s = j(n, t), r = W(e), o = Re(
568
588
  Object.fromEntries(
569
589
  x.map((a) => [
570
590
  a,
571
591
  n.colors?.[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]
572
592
  ])
573
593
  )
574
- ), i = Ae();
594
+ ), i = Be();
575
595
  return r.map(
576
596
  (a) => i.parse(a[0]).map((c) => {
577
597
  let f, l;
578
- c.decorations.has("reverse") ? (f = c.background ? o.value(c.background) : n.bg, l = c.foreground ? o.value(c.foreground) : n.fg) : (f = c.foreground ? o.value(c.foreground) : n.fg, l = c.background ? o.value(c.background) : void 0), f = L(f, s), l = L(l, s), c.decorations.has("dim") && (f = We(f));
579
- let h = w.None;
580
- return c.decorations.has("bold") && (h |= w.Bold), c.decorations.has("italic") && (h |= w.Italic), c.decorations.has("underline") && (h |= w.Underline), c.decorations.has("strikethrough") && (h |= w.Strikethrough), {
598
+ c.decorations.has("reverse") ? (f = c.background ? o.value(c.background) : n.bg, l = c.foreground ? o.value(c.foreground) : n.fg) : (f = c.foreground ? o.value(c.foreground) : n.fg, l = c.background ? o.value(c.background) : void 0), f = L(f, s), l = L(l, s), c.decorations.has("dim") && (f = He(f));
599
+ let u = w.None;
600
+ return c.decorations.has("bold") && (u |= w.Bold), c.decorations.has("italic") && (u |= w.Italic), c.decorations.has("underline") && (u |= w.Underline), c.decorations.has("strikethrough") && (u |= w.Strikethrough), {
581
601
  content: c.value,
582
602
  offset: a[1],
583
603
  // TODO: more accurate offset? might need to fork ansi-sequence-parser
584
604
  color: f,
585
605
  bgColor: l,
586
- fontStyle: h
606
+ fontStyle: u
587
607
  };
588
608
  })
589
609
  );
590
610
  }
591
- function We(n) {
611
+ function He(n) {
592
612
  const e = n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);
593
613
  if (e)
594
614
  if (e[3]) {
@@ -607,7 +627,7 @@ function q(n, e, t = {}) {
607
627
  return W(e).map((c) => [{ content: c[0], offset: c[1] }]);
608
628
  const { theme: o, colorMap: i } = n.setTheme(r);
609
629
  if (s === "ansi")
610
- return Re(o, e, t);
630
+ return We(o, e, t);
611
631
  const a = n.getLanguage(s);
612
632
  if (t.grammarState) {
613
633
  if (t.grammarState.lang !== a.name)
@@ -615,9 +635,9 @@ function q(n, e, t = {}) {
615
635
  if (!t.grammarState.themes.includes(o.name))
616
636
  throw new T(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${o.name}"`);
617
637
  }
618
- return De(e, a, o, i, t);
638
+ return Fe(e, a, o, i, t);
619
639
  }
620
- function He(...n) {
640
+ function De(...n) {
621
641
  if (n.length === 2)
622
642
  return E(n[1]);
623
643
  const [e, t, s = {}] = n, {
@@ -635,7 +655,7 @@ function He(...n) {
635
655
  i.name
636
656
  );
637
657
  }
638
- function De(n, e, t, s, r) {
658
+ function Fe(n, e, t, s, r) {
639
659
  const o = B(n, e, t, s, r), i = new N(
640
660
  B(n, e, t, s, r).stateStack,
641
661
  e.name,
@@ -659,15 +679,15 @@ function B(n, e, t, s, r) {
659
679
  grammarContextCode: void 0
660
680
  }
661
681
  ).stateStack : V, l = [];
662
- const h = [];
663
- for (let u = 0, p = c.length; u < p; u++) {
664
- const [d, S] = c[u];
682
+ const u = [];
683
+ for (let h = 0, p = c.length; h < p; h++) {
684
+ const [d, S] = c[h];
665
685
  if (d === "") {
666
- l = [], h.push([]);
686
+ l = [], u.push([]);
667
687
  continue;
668
688
  }
669
689
  if (i > 0 && d.length >= i) {
670
- l = [], h.push([{
690
+ l = [], u.push([{
671
691
  content: d,
672
692
  offset: S,
673
693
  color: "",
@@ -720,9 +740,9 @@ function B(n, e, t, s, r) {
720
740
  );
721
741
  ee += C.length, F.explanation.push({
722
742
  content: C,
723
- scopes: r.includeExplanation === "scopeName" ? Fe(
743
+ scopes: r.includeExplanation === "scopeName" ? Pe(
724
744
  k.scopes
725
- ) : Pe(
745
+ ) : ze(
726
746
  Z,
727
747
  k.scopes
728
748
  )
@@ -731,23 +751,23 @@ function B(n, e, t, s, r) {
731
751
  }
732
752
  l.push(F);
733
753
  }
734
- h.push(l), l = [], f = b.ruleStack;
754
+ u.push(l), l = [], f = b.ruleStack;
735
755
  }
736
756
  return {
737
- tokens: h,
757
+ tokens: u,
738
758
  stateStack: f
739
759
  };
740
760
  }
741
- function Fe(n) {
761
+ function Pe(n) {
742
762
  return n.map((e) => ({ scopeName: e }));
743
763
  }
744
- function Pe(n, e) {
764
+ function ze(n, e) {
745
765
  const t = [];
746
766
  for (let s = 0, r = e.length; s < r; s++) {
747
767
  const o = e[s];
748
768
  t[s] = {
749
769
  scopeName: o,
750
- themeMatches: Ve(n, o, e.slice(0, s))
770
+ themeMatches: Je(n, o, e.slice(0, s))
751
771
  };
752
772
  }
753
773
  return t;
@@ -755,7 +775,7 @@ function Pe(n, e) {
755
775
  function se(n, e) {
756
776
  return n === e || e.substring(0, n.length) === n && e[n.length] === ".";
757
777
  }
758
- function ze(n, e, t) {
778
+ function Ve(n, e, t) {
759
779
  if (!se(n[n.length - 1], e))
760
780
  return !1;
761
781
  let s = n.length - 2, r = t.length - 1;
@@ -763,11 +783,11 @@ function ze(n, e, t) {
763
783
  se(n[s], t[r]) && (s -= 1), r -= 1;
764
784
  return s === -1;
765
785
  }
766
- function Ve(n, e, t) {
786
+ function Je(n, e, t) {
767
787
  const s = [];
768
788
  for (const { selectors: r, settings: o } of n)
769
789
  for (const i of r)
770
- if (ze(i, e, t)) {
790
+ if (Ve(i, e, t)) {
771
791
  s.push(o);
772
792
  break;
773
793
  }
@@ -778,30 +798,30 @@ function de(n, e, t) {
778
798
  const f = q(n, e, {
779
799
  ...t,
780
800
  theme: c.theme
781
- }), l = E(f), h = typeof c.theme == "string" ? c.theme : c.theme.name;
801
+ }), l = E(f), u = typeof c.theme == "string" ? c.theme : c.theme.name;
782
802
  return {
783
803
  tokens: f,
784
804
  state: l,
785
- theme: h
805
+ theme: u
786
806
  };
787
- }), o = Je(
807
+ }), o = Ke(
788
808
  ...r.map((c) => c.tokens)
789
809
  ), i = o[0].map(
790
- (c, f) => c.map((l, h) => {
791
- const u = {
810
+ (c, f) => c.map((l, u) => {
811
+ const h = {
792
812
  content: l.content,
793
813
  variants: {},
794
814
  offset: l.offset
795
815
  };
796
- return "includeExplanation" in t && t.includeExplanation && (u.explanation = l.explanation), o.forEach((p, d) => {
816
+ return "includeExplanation" in t && t.includeExplanation && (h.explanation = l.explanation), o.forEach((p, d) => {
797
817
  const {
798
818
  content: S,
799
819
  explanation: y,
800
820
  offset: m,
801
821
  ...g
802
- } = p[f][h];
803
- u.variants[s[d].color] = g;
804
- }), u;
822
+ } = p[f][u];
823
+ h.variants[s[d].color] = g;
824
+ }), h;
805
825
  })
806
826
  ), a = r[0].state ? new N(
807
827
  Object.fromEntries(r.map((c) => [c.theme, c.state?.getInternalStack(c.theme)])),
@@ -809,7 +829,7 @@ function de(n, e, t) {
809
829
  ) : void 0;
810
830
  return a && H(i, a), i;
811
831
  }
812
- function Je(...n) {
832
+ function Ke(...n) {
813
833
  const e = n.map(() => []), t = n.length;
814
834
  for (let s = 0; s < n[0].length; s++) {
815
835
  const r = n.map((c) => c[s]), o = e.map(() => []);
@@ -838,21 +858,21 @@ function G(n, e, t) {
838
858
  const {
839
859
  defaultColor: f = "light",
840
860
  cssVariablePrefix: l = "--shiki-",
841
- colorsRendering: h = "css-vars"
842
- } = t, u = Object.entries(t.themes).filter((m) => m[1]).map((m) => ({ color: m[0], theme: m[1] })).sort((m, g) => m.color === f ? -1 : g.color === f ? 1 : 0);
843
- if (u.length === 0)
861
+ colorsRendering: u = "css-vars"
862
+ } = t, h = Object.entries(t.themes).filter((m) => m[1]).map((m) => ({ color: m[0], theme: m[1] })).sort((m, g) => m.color === f ? -1 : g.color === f ? 1 : 0);
863
+ if (h.length === 0)
844
864
  throw new T("`themes` option must not be empty");
845
865
  const p = de(
846
866
  n,
847
867
  e,
848
868
  t
849
869
  );
850
- if (c = E(p), f && Y !== f && !u.find((m) => m.color === f))
870
+ if (c = E(p), f && Y !== f && !h.find((m) => m.color === f))
851
871
  throw new T(`\`themes\` option must contain the defaultColor key \`${f}\``);
852
- const d = u.map((m) => n.getTheme(m.theme)), S = u.map((m) => m.color);
853
- o = p.map((m) => m.map((g) => Ce(g, S, l, f, h))), c && H(o, c);
854
- const y = u.map((m) => j(m.theme, t));
855
- r = re(u, d, y, l, f, "fg", h), s = re(u, d, y, l, f, "bg", h), i = `shiki-themes ${d.map((m) => m.name).join(" ")}`, a = f ? void 0 : [r, s].join(";");
872
+ const d = h.map((m) => n.getTheme(m.theme)), S = h.map((m) => m.color);
873
+ o = p.map((m) => m.map((g) => Ce(g, S, l, f, u))), c && H(o, c);
874
+ const y = h.map((m) => j(m.theme, t));
875
+ r = re(h, d, y, l, f, "fg", u), s = re(h, d, y, l, f, "bg", u), i = `shiki-themes ${d.map((m) => m.name).join(" ")}`, a = f ? void 0 : [r, s].join(";");
856
876
  } else if ("theme" in t) {
857
877
  const f = j(t.theme, t);
858
878
  o = q(
@@ -878,10 +898,10 @@ function re(n, e, t, s, r, o, i) {
878
898
  const f = L(e[c][o], t[c]) || "inherit", l = `${s + a.color}${o === "bg" ? "-bg" : ""}:${f}`;
879
899
  if (c === 0 && r) {
880
900
  if (r === Y && n.length > 1) {
881
- const h = n.findIndex((S) => S.color === "light"), u = n.findIndex((S) => S.color === "dark");
882
- if (h === -1 || u === -1)
901
+ const u = n.findIndex((S) => S.color === "light"), h = n.findIndex((S) => S.color === "dark");
902
+ if (u === -1 || h === -1)
883
903
  throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
884
- const p = L(e[h][o], t[h]) || "inherit", d = L(e[u][o], t[u]) || "inherit";
904
+ const p = L(e[u][o], t[u]) || "inherit", d = L(e[h][o], t[h]) || "inherit";
885
905
  return `light-dark(${p}, ${d});${l}`;
886
906
  }
887
907
  return f;
@@ -907,10 +927,10 @@ function R(n, e, t, s = {
907
927
  grammarState: l
908
928
  } = G(n, r, t);
909
929
  const {
910
- mergeWhitespaces: h = !0,
911
- mergeSameStyleTokens: u = !1
930
+ mergeWhitespaces: u = !0,
931
+ mergeSameStyleTokens: h = !1
912
932
  } = t;
913
- h === !0 ? o = Ue(o) : h === "never" && (o = Ye(o)), u && (o = qe(o));
933
+ u === !0 ? o = Ye(o) : u === "never" && (o = qe(o)), h && (o = Qe(o));
914
934
  const p = {
915
935
  ...s,
916
936
  get source() {
@@ -919,7 +939,7 @@ function R(n, e, t, s = {
919
939
  };
920
940
  for (const d of A(t))
921
941
  o = d.tokens?.call(p, o) || o;
922
- return Ke(
942
+ return Ue(
923
943
  o,
924
944
  {
925
945
  ...t,
@@ -932,7 +952,7 @@ function R(n, e, t, s = {
932
952
  l
933
953
  );
934
954
  }
935
- function Ke(n, e, t, s = E(n)) {
955
+ function Ue(n, e, t, s = E(n)) {
936
956
  const r = A(e), o = [], i = {
937
957
  type: "root",
938
958
  children: []
@@ -962,10 +982,10 @@ function Ke(n, e, t, s = E(n)) {
962
982
  properties: {},
963
983
  children: o
964
984
  };
965
- const h = [], u = {
985
+ const u = [], h = {
966
986
  ...t,
967
987
  structure: a,
968
- addClassToHast: he,
988
+ addClassToHast: ue,
969
989
  get source() {
970
990
  return t.source;
971
991
  },
@@ -985,7 +1005,7 @@ function Ke(n, e, t, s = E(n)) {
985
1005
  return l;
986
1006
  },
987
1007
  get lines() {
988
- return h;
1008
+ return u;
989
1009
  }
990
1010
  };
991
1011
  if (n.forEach((d, S) => {
@@ -1009,28 +1029,28 @@ function Ke(n, e, t, s = E(n)) {
1009
1029
  const v = J(g.htmlStyle || M(g));
1010
1030
  v && (b.properties.style = v);
1011
1031
  for (const _ of r)
1012
- b = _?.span?.call(u, b, S + 1, m, y, g) || b;
1032
+ b = _?.span?.call(h, b, S + 1, m, y, g) || b;
1013
1033
  a === "inline" ? i.children.push(b) : a === "classic" && y.children.push(b), m += g.content.length;
1014
1034
  }
1015
1035
  if (a === "classic") {
1016
1036
  for (const g of r)
1017
- y = g?.line?.call(u, y, S + 1) || y;
1018
- h.push(y), o.push(y);
1037
+ y = g?.line?.call(h, y, S + 1) || y;
1038
+ u.push(y), o.push(y);
1019
1039
  }
1020
1040
  }), a === "classic") {
1021
1041
  for (const d of r)
1022
- l = d?.code?.call(u, l) || l;
1042
+ l = d?.code?.call(h, l) || l;
1023
1043
  f.children.push(l);
1024
1044
  for (const d of r)
1025
- f = d?.pre?.call(u, f) || f;
1045
+ f = d?.pre?.call(h, f) || f;
1026
1046
  i.children.push(f);
1027
1047
  }
1028
1048
  let p = i;
1029
1049
  for (const d of r)
1030
- p = d?.root?.call(u, p) || p;
1050
+ p = d?.root?.call(h, p) || p;
1031
1051
  return s && H(p, s), p;
1032
1052
  }
1033
- function Ue(n) {
1053
+ function Ye(n) {
1034
1054
  return n.map((e) => {
1035
1055
  const t = [];
1036
1056
  let s = "", r = 0;
@@ -1050,7 +1070,7 @@ function Ue(n) {
1050
1070
  }), t;
1051
1071
  });
1052
1072
  }
1053
- function Ye(n) {
1073
+ function qe(n) {
1054
1074
  return n.map((e) => e.flatMap((t) => {
1055
1075
  if (t.content.match(/^\s+$/))
1056
1076
  return t;
@@ -1074,7 +1094,7 @@ function Ye(n) {
1074
1094
  }), a;
1075
1095
  }));
1076
1096
  }
1077
- function qe(n) {
1097
+ function Qe(n) {
1078
1098
  return n.map((e) => {
1079
1099
  const t = [];
1080
1100
  for (const s of e) {
@@ -1088,15 +1108,15 @@ function qe(n) {
1088
1108
  return t;
1089
1109
  });
1090
1110
  }
1091
- const Qe = we;
1092
- function Xe(n, e, t) {
1111
+ const Xe = we;
1112
+ function Ze(n, e, t) {
1093
1113
  const s = {
1094
1114
  meta: {},
1095
1115
  options: t,
1096
1116
  codeToHast: (o, i) => R(n, o, i),
1097
1117
  codeToTokens: (o, i) => G(n, o, i)
1098
1118
  };
1099
- let r = Qe(R(n, e, t, s));
1119
+ let r = Xe(R(n, e, t, s));
1100
1120
  for (const o of A(t))
1101
1121
  r = o.postprocess?.call(s, r, t) || r;
1102
1122
  return r;
@@ -1140,12 +1160,12 @@ function Q(n) {
1140
1160
  }
1141
1161
  };
1142
1162
  if (c) {
1143
- const h = i(a.settings.foreground);
1144
- e.colorReplacements[h] = a.settings.foreground, l.settings.foreground = h;
1163
+ const u = i(a.settings.foreground);
1164
+ e.colorReplacements[u] = a.settings.foreground, l.settings.foreground = u;
1145
1165
  }
1146
1166
  if (f) {
1147
- const h = i(a.settings.background);
1148
- e.colorReplacements[h] = a.settings.background, l.settings.background = h;
1167
+ const u = i(a.settings.background);
1168
+ e.colorReplacements[u] = a.settings.background, l.settings.background = u;
1149
1169
  }
1150
1170
  return l;
1151
1171
  });
@@ -1172,16 +1192,16 @@ async function pe(n) {
1172
1192
  )
1173
1193
  )).filter((t) => !!t);
1174
1194
  }
1175
- let Ze = 3;
1176
- function et(n, e = 3) {
1177
- e > Ze || console.trace(`[SHIKI DEPRECATE]: ${n}`);
1195
+ let et = 3;
1196
+ function tt(n, e = 3) {
1197
+ e > et || console.trace(`[SHIKI DEPRECATE]: ${n}`);
1178
1198
  }
1179
1199
  class $ extends Error {
1180
1200
  constructor(e) {
1181
1201
  super(e), this.name = "ShikiError";
1182
1202
  }
1183
1203
  }
1184
- class tt extends Se {
1204
+ class nt extends Se {
1185
1205
  constructor(e, t, s, r = {}) {
1186
1206
  super(e), this._resolver = e, this._themes = t, this._langs = s, this._alias = r, this._themes.map((o) => this.loadTheme(o)), this.loadLanguages(this._langs);
1187
1207
  }
@@ -1268,7 +1288,7 @@ class tt extends Se {
1268
1288
  this._langGraph.set(t, this._langMap.get(t));
1269
1289
  }
1270
1290
  }
1271
- class nt {
1291
+ class st {
1272
1292
  _langs = /* @__PURE__ */ new Map();
1273
1293
  _scopeToLang = /* @__PURE__ */ new Map();
1274
1294
  _injections = /* @__PURE__ */ new Map();
@@ -1306,12 +1326,12 @@ class nt {
1306
1326
  }
1307
1327
  }
1308
1328
  let I = 0;
1309
- function st(n) {
1329
+ function rt(n) {
1310
1330
  I += 1, n.warnings !== !1 && I >= 10 && I % 10 === 0 && console.warn(`[Shiki] ${I} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
1311
1331
  let e = !1;
1312
1332
  if (!n.engine)
1313
1333
  throw new $("`engine` option is required for synchronous mode");
1314
- const t = (n.langs || []).flat(1), s = (n.themes || []).flat(1).map(Q), r = new nt(n.engine, t), o = new tt(r, s, t, n.langAlias);
1334
+ const t = (n.langs || []).flat(1), s = (n.themes || []).flat(1).map(Q), r = new st(n.engine, t), o = new nt(r, s, t, n.langAlias);
1315
1335
  let i;
1316
1336
  function a(g) {
1317
1337
  y();
@@ -1342,14 +1362,14 @@ function st(n) {
1342
1362
  function l() {
1343
1363
  return y(), o.getLoadedThemes();
1344
1364
  }
1345
- function h() {
1365
+ function u() {
1346
1366
  return y(), o.getLoadedLanguages();
1347
1367
  }
1348
- function u(...g) {
1368
+ function h(...g) {
1349
1369
  y(), o.loadLanguages(g.flat(1));
1350
1370
  }
1351
1371
  async function p(...g) {
1352
- return u(await me(g));
1372
+ return h(await me(g));
1353
1373
  }
1354
1374
  function d(...g) {
1355
1375
  y();
@@ -1371,17 +1391,17 @@ function st(n) {
1371
1391
  getTheme: c,
1372
1392
  getLanguage: a,
1373
1393
  getLoadedThemes: l,
1374
- getLoadedLanguages: h,
1394
+ getLoadedLanguages: u,
1375
1395
  loadLanguage: p,
1376
- loadLanguageSync: u,
1396
+ loadLanguageSync: h,
1377
1397
  loadTheme: S,
1378
1398
  loadThemeSync: d,
1379
1399
  dispose: m,
1380
1400
  [Symbol.dispose]: m
1381
1401
  };
1382
1402
  }
1383
- async function rt(n) {
1384
- n.engine || et("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1403
+ async function ot(n) {
1404
+ n.engine || tt("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1385
1405
  const [
1386
1406
  e,
1387
1407
  t,
@@ -1391,22 +1411,22 @@ async function rt(n) {
1391
1411
  me(n.langs || []),
1392
1412
  n.engine
1393
1413
  ]);
1394
- return st({
1414
+ return rt({
1395
1415
  ...n,
1396
1416
  themes: e,
1397
1417
  langs: t,
1398
1418
  engine: s
1399
1419
  });
1400
1420
  }
1401
- async function ot(n) {
1402
- const e = await rt(n);
1421
+ async function at(n) {
1422
+ const e = await ot(n);
1403
1423
  return {
1404
- getLastGrammarState: (...t) => He(e, ...t),
1424
+ getLastGrammarState: (...t) => De(e, ...t),
1405
1425
  codeToTokensBase: (t, s) => q(e, t, s),
1406
1426
  codeToTokensWithThemes: (t, s) => de(e, t, s),
1407
1427
  codeToTokens: (t, s) => G(e, t, s),
1408
1428
  codeToHast: (t, s) => R(e, t, s),
1409
- codeToHtml: (t, s) => Xe(e, t, s),
1429
+ codeToHtml: (t, s) => Ze(e, t, s),
1410
1430
  getBundledLanguages: () => ({}),
1411
1431
  getBundledThemes: () => ({}),
1412
1432
  ...e,
@@ -1416,30 +1436,30 @@ async function ot(n) {
1416
1436
  function ht(n) {
1417
1437
  const e = n.langs, t = n.themes, s = n.engine;
1418
1438
  async function r(o) {
1419
- function i(h) {
1420
- if (typeof h == "string") {
1421
- if (le(h))
1439
+ function i(u) {
1440
+ if (typeof u == "string") {
1441
+ if (le(u))
1422
1442
  return [];
1423
- h = o.langAlias?.[h] || h;
1424
- const u = e[h];
1425
- if (!u)
1426
- throw new T(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);
1427
- return u;
1443
+ u = o.langAlias?.[u] || u;
1444
+ const h = e[u];
1445
+ if (!h)
1446
+ throw new T(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);
1447
+ return h;
1428
1448
  }
1429
- return h;
1449
+ return u;
1430
1450
  }
1431
- function a(h) {
1432
- if (fe(h))
1451
+ function a(u) {
1452
+ if (fe(u))
1433
1453
  return "none";
1434
- if (typeof h == "string") {
1435
- const u = t[h];
1436
- if (!u)
1437
- throw new T(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);
1438
- return u;
1454
+ if (typeof u == "string") {
1455
+ const h = t[u];
1456
+ if (!h)
1457
+ throw new T(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);
1458
+ return h;
1439
1459
  }
1440
- return h;
1460
+ return u;
1441
1461
  }
1442
- const c = (o.themes ?? []).map((h) => a(h)), f = (o.langs ?? []).map((h) => i(h)), l = await ot({
1462
+ const c = (o.themes ?? []).map((u) => a(u)), f = (o.langs ?? []).map((u) => i(u)), l = await at({
1443
1463
  engine: o.engine ?? s(),
1444
1464
  ...o,
1445
1465
  themes: c,
@@ -1447,11 +1467,11 @@ function ht(n) {
1447
1467
  });
1448
1468
  return {
1449
1469
  ...l,
1450
- loadLanguage(...h) {
1451
- return l.loadLanguage(...h.map(i));
1470
+ loadLanguage(...u) {
1471
+ return l.loadLanguage(...u.map(i));
1452
1472
  },
1453
- loadTheme(...h) {
1454
- return l.loadTheme(...h.map(a));
1473
+ loadTheme(...u) {
1474
+ return l.loadTheme(...u.map(a));
1455
1475
  },
1456
1476
  getBundledLanguages() {
1457
1477
  return e;
@@ -1463,7 +1483,7 @@ function ht(n) {
1463
1483
  }
1464
1484
  return r;
1465
1485
  }
1466
- function at(n) {
1486
+ function it(n) {
1467
1487
  let e;
1468
1488
  async function t(s = {}) {
1469
1489
  if (e) {
@@ -1481,8 +1501,8 @@ function at(n) {
1481
1501
  }
1482
1502
  return t;
1483
1503
  }
1484
- function ut(n, e) {
1485
- const t = at(n);
1504
+ function gt(n, e) {
1505
+ const t = it(n);
1486
1506
  async function s(r, o) {
1487
1507
  const i = await t({
1488
1508
  langs: [o.lang],
@@ -1519,28 +1539,28 @@ function ut(n, e) {
1519
1539
  }
1520
1540
  export {
1521
1541
  T as ShikiError,
1522
- he as addClassToHast,
1542
+ ue as addClassToHast,
1523
1543
  L as applyColorReplacements,
1524
1544
  R as codeToHast,
1525
- Xe as codeToHtml,
1545
+ Ze as codeToHtml,
1526
1546
  G as codeToTokens,
1527
1547
  q as codeToTokensBase,
1528
1548
  de as codeToTokensWithThemes,
1529
- ot as createHighlighterCore,
1549
+ at as createHighlighterCore,
1530
1550
  _e as createPositionConverter,
1531
- rt as createShikiInternal,
1532
- st as createShikiInternalSync,
1533
- ut as createSingletonShorthands,
1551
+ ot as createShikiInternal,
1552
+ rt as createShikiInternalSync,
1553
+ gt as createSingletonShorthands,
1534
1554
  ht as createdBundledHighlighter,
1535
1555
  Ce as flatTokenVariants,
1536
1556
  M as getTokenStyleObject,
1537
- ft as guessEmbeddedLanguages,
1538
- Qe as hastToHtml,
1557
+ ut as guessEmbeddedLanguages,
1558
+ Xe as hastToHtml,
1539
1559
  U as isNoneTheme,
1540
1560
  K as isPlainLang,
1541
1561
  le as isSpecialLang,
1542
1562
  fe as isSpecialTheme,
1543
- at as makeSingletonHighlighter,
1563
+ it as makeSingletonHighlighter,
1544
1564
  ce as normalizeGetter,
1545
1565
  Q as normalizeTheme,
1546
1566
  j as resolveColorReplacements,
@@ -1549,9 +1569,9 @@ export {
1549
1569
  xe as splitTokens,
1550
1570
  J as stringifyTokenStyle,
1551
1571
  ke as toArray,
1552
- Re as tokenizeAnsiWithTheme,
1553
- De as tokenizeWithTheme,
1554
- Ke as tokensToHast,
1572
+ We as tokenizeAnsiWithTheme,
1573
+ Fe as tokenizeWithTheme,
1574
+ Ue as tokensToHast,
1555
1575
  Ie as transformerDecorations,
1556
- et as warnDeprecated
1576
+ tt as warnDeprecated
1557
1577
  };