@btst/stack 1.9.0 → 1.10.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.
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.mjs +5 -0
- package/dist/_virtual/a11y-dark.cjs +5 -0
- package/dist/_virtual/a11y-dark.mjs +3 -0
- package/dist/_virtual/atom-dark.cjs +5 -0
- package/dist/_virtual/atom-dark.mjs +3 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
- package/dist/_virtual/cb.cjs +5 -0
- package/dist/_virtual/cb.mjs +3 -0
- package/dist/_virtual/coldark-cold.cjs +5 -0
- package/dist/_virtual/coldark-cold.mjs +3 -0
- package/dist/_virtual/coldark-dark.cjs +5 -0
- package/dist/_virtual/coldark-dark.mjs +3 -0
- package/dist/_virtual/coy-without-shadows.cjs +5 -0
- package/dist/_virtual/coy-without-shadows.mjs +3 -0
- package/dist/_virtual/coy.cjs +5 -0
- package/dist/_virtual/coy.mjs +3 -0
- package/dist/_virtual/darcula.cjs +5 -0
- package/dist/_virtual/darcula.mjs +3 -0
- package/dist/_virtual/dark.cjs +5 -0
- package/dist/_virtual/dark.mjs +3 -0
- package/dist/_virtual/dracula.cjs +5 -0
- package/dist/_virtual/dracula.mjs +3 -0
- package/dist/_virtual/duotone-dark.cjs +5 -0
- package/dist/_virtual/duotone-dark.mjs +3 -0
- package/dist/_virtual/duotone-earth.cjs +5 -0
- package/dist/_virtual/duotone-earth.mjs +3 -0
- package/dist/_virtual/duotone-forest.cjs +5 -0
- package/dist/_virtual/duotone-forest.mjs +3 -0
- package/dist/_virtual/duotone-light.cjs +5 -0
- package/dist/_virtual/duotone-light.mjs +3 -0
- package/dist/_virtual/duotone-sea.cjs +5 -0
- package/dist/_virtual/duotone-sea.mjs +3 -0
- package/dist/_virtual/duotone-space.cjs +5 -0
- package/dist/_virtual/duotone-space.mjs +3 -0
- package/dist/_virtual/funky.cjs +5 -0
- package/dist/_virtual/funky.mjs +3 -0
- package/dist/_virtual/ghcolors.cjs +5 -0
- package/dist/_virtual/ghcolors.mjs +3 -0
- package/dist/_virtual/gruvbox-dark.cjs +5 -0
- package/dist/_virtual/gruvbox-dark.mjs +3 -0
- package/dist/_virtual/gruvbox-light.cjs +5 -0
- package/dist/_virtual/gruvbox-light.mjs +3 -0
- package/dist/_virtual/holi-theme.cjs +5 -0
- package/dist/_virtual/holi-theme.mjs +3 -0
- package/dist/_virtual/hopscotch.cjs +5 -0
- package/dist/_virtual/hopscotch.mjs +3 -0
- package/dist/_virtual/index.cjs +9 -0
- package/dist/_virtual/index.mjs +7 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.mjs +5 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.mjs +5 -0
- package/dist/_virtual/index4.cjs +9 -0
- package/dist/_virtual/index4.mjs +7 -0
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.mjs +3 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.mjs +3 -0
- package/dist/_virtual/index7.cjs +5 -0
- package/dist/_virtual/index7.mjs +3 -0
- package/dist/_virtual/index8.cjs +5 -0
- package/dist/_virtual/index8.mjs +3 -0
- package/dist/_virtual/interopRequireDefault.cjs +5 -0
- package/dist/_virtual/interopRequireDefault.mjs +3 -0
- package/dist/_virtual/lucario.cjs +5 -0
- package/dist/_virtual/lucario.mjs +3 -0
- package/dist/_virtual/material-dark.cjs +5 -0
- package/dist/_virtual/material-dark.mjs +3 -0
- package/dist/_virtual/material-light.cjs +5 -0
- package/dist/_virtual/material-light.mjs +3 -0
- package/dist/_virtual/material-oceanic.cjs +5 -0
- package/dist/_virtual/material-oceanic.mjs +3 -0
- package/dist/_virtual/night-owl.cjs +5 -0
- package/dist/_virtual/night-owl.mjs +3 -0
- package/dist/_virtual/nord.cjs +5 -0
- package/dist/_virtual/nord.mjs +3 -0
- package/dist/_virtual/okaidia.cjs +5 -0
- package/dist/_virtual/okaidia.mjs +3 -0
- package/dist/_virtual/one-dark.cjs +5 -0
- package/dist/_virtual/one-dark.mjs +3 -0
- package/dist/_virtual/one-light.cjs +5 -0
- package/dist/_virtual/one-light.mjs +3 -0
- package/dist/_virtual/pojoaque.cjs +5 -0
- package/dist/_virtual/pojoaque.mjs +3 -0
- package/dist/_virtual/prism.cjs +5 -0
- package/dist/_virtual/prism.mjs +3 -0
- package/dist/_virtual/shades-of-purple.cjs +5 -0
- package/dist/_virtual/shades-of-purple.mjs +3 -0
- package/dist/_virtual/solarized-dark-atom.cjs +5 -0
- package/dist/_virtual/solarized-dark-atom.mjs +3 -0
- package/dist/_virtual/solarizedlight.cjs +5 -0
- package/dist/_virtual/solarizedlight.mjs +3 -0
- package/dist/_virtual/synthwave84.cjs +5 -0
- package/dist/_virtual/synthwave84.mjs +3 -0
- package/dist/_virtual/tomorrow.cjs +5 -0
- package/dist/_virtual/tomorrow.mjs +3 -0
- package/dist/_virtual/twilight.cjs +5 -0
- package/dist/_virtual/twilight.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
- package/dist/_virtual/vs.cjs +5 -0
- package/dist/_virtual/vs.mjs +3 -0
- package/dist/_virtual/vsc-dark-plus.cjs +5 -0
- package/dist/_virtual/vsc-dark-plus.mjs +3 -0
- package/dist/_virtual/with-selector.cjs +9 -0
- package/dist/_virtual/with-selector.development.cjs +5 -0
- package/dist/_virtual/with-selector.development.mjs +3 -0
- package/dist/_virtual/with-selector.development2.cjs +5 -0
- package/dist/_virtual/with-selector.development2.mjs +3 -0
- package/dist/_virtual/with-selector.mjs +7 -0
- package/dist/_virtual/with-selector.production.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.mjs +3 -0
- package/dist/_virtual/with-selector.production.mjs +3 -0
- package/dist/_virtual/with-selector2.cjs +7 -0
- package/dist/_virtual/with-selector2.mjs +5 -0
- package/dist/_virtual/with-selector3.cjs +5 -0
- package/dist/_virtual/with-selector3.mjs +3 -0
- package/dist/_virtual/with-selector4.cjs +5 -0
- package/dist/_virtual/with-selector4.mjs +3 -0
- package/dist/_virtual/xonokai.cjs +5 -0
- package/dist/_virtual/xonokai.mjs +3 -0
- package/dist/_virtual/z-touch.cjs +5 -0
- package/dist/_virtual/z-touch.mjs +3 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +62 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +64 -3
- package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +269 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +243 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +48 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +32 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +15 -15
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +12 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +3 -2
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +569 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +544 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +178 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +169 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.cjs +519 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.mjs +492 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -1
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +22 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.cjs +96 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.mjs +90 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +375 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.mjs +372 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.cjs +150 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.mjs +144 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.cjs +325 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.mjs +318 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.cjs +72 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.mjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +246 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.mjs +243 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.cjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.mjs +66 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.cjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.mjs +86 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +82 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.mjs +80 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.cjs +156 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.mjs +153 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.mjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.cjs +421 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.mjs +418 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.cjs +1060 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.mjs +1049 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.mjs +52 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.cjs +81 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.mjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.cjs +580 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.mjs +568 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.mjs +339 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.cjs +216 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.cjs +76 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.cjs +364 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.mjs +357 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.cjs +958 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.mjs +947 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.cjs +1030 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.mjs +909 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.cjs +122 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.mjs +116 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.cjs +36 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +27 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.cjs +541 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.mjs +533 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.cjs +101 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.cjs +807 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +800 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.cjs +2418 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.mjs +2393 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.cjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.mjs +164 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.cjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.mjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.cjs +202 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.mjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.cjs +269 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.mjs +267 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.cjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.mjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.cjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.mjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.cjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.mjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.cjs +168 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.mjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs +373 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.mjs +371 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.cjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.mjs +213 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.cjs +223 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.mjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.cjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.mjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.cjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.mjs +170 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.cjs +176 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.mjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.cjs +521 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.mjs +519 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.cjs +509 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.mjs +507 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.cjs +254 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.mjs +252 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.cjs +188 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.mjs +186 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.cjs +203 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.mjs +201 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.cjs +234 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.mjs +232 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.cjs +226 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.mjs +224 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.cjs +302 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.mjs +300 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.cjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.mjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.cjs +216 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.mjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +8 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +6 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +121 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +110 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +394 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +388 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.cjs +9 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +7 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.cjs +12 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.cjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +194 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1867 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.mjs +1854 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +181 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +175 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.cjs +32 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +26 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +254 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +248 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.cjs +30 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +24 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +115 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +109 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.cjs +103 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +97 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +112 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +106 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +83 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +77 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.cjs +112 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.mjs +110 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.cjs +47 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.mjs +39 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.cjs +339 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.mjs +336 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.cjs +34 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.mjs +32 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
- package/dist/packages/ui/src/components/accordion.cjs +2 -2
- package/dist/packages/ui/src/components/accordion.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/array.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/fields/array.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/date.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/date.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/enum.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/enum.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/object.cjs +9 -9
- package/dist/packages/ui/src/components/auto-form/fields/object.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/index.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/index.mjs +1 -1
- package/dist/packages/ui/src/components/button.cjs +4 -2
- package/dist/packages/ui/src/components/button.mjs +4 -2
- package/dist/packages/ui/src/components/calendar.cjs +4 -4
- package/dist/packages/ui/src/components/card.cjs +11 -0
- package/dist/packages/ui/src/components/card.mjs +11 -1
- package/dist/packages/ui/src/components/carousel.cjs +3 -3
- package/dist/packages/ui/src/components/checkbox.cjs +2 -2
- package/dist/packages/ui/src/components/command.cjs +33 -2
- package/dist/packages/ui/src/components/command.mjs +31 -2
- package/dist/packages/ui/src/components/date-picker.cjs +2 -2
- package/dist/packages/ui/src/components/dialog.cjs +9 -3
- package/dist/packages/ui/src/components/dialog.mjs +7 -2
- package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
- package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
- package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/form-preview.cjs +5 -5
- package/dist/packages/ui/src/components/form-builder/form-preview.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
- package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
- package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +164 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +153 -0
- package/dist/packages/ui/src/components/multi-select.cjs +3 -3
- package/dist/packages/ui/src/components/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/resizable.cjs +51 -0
- package/dist/packages/ui/src/components/resizable.mjs +47 -0
- package/dist/packages/ui/src/components/select.cjs +13 -6
- package/dist/packages/ui/src/components/select.mjs +9 -2
- package/dist/packages/ui/src/components/sheet.cjs +2 -2
- package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
- package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
- package/dist/packages/ui/src/components/toggle.cjs +46 -0
- package/dist/packages/ui/src/components/toggle.mjs +43 -0
- package/dist/packages/ui/src/components/tooltip.cjs +58 -0
- package/dist/packages/ui/src/components/tooltip.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
- package/dist/packages/ui/src/components/ui-builder/index.cjs +274 -0
- package/dist/packages/ui/src/components/ui-builder/index.mjs +262 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +295 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +289 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +230 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +224 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +19 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +17 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +555 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +540 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +156 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +150 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +207 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +269 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +263 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
- package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
- package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
- package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
- package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
- package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
- package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +159 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +157 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +91 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +88 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +44 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +55 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +27 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +25 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +185 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +177 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +36 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +384 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +381 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +326 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +311 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +30 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +23 -0
- package/dist/plugins/cms/api/index.d.cts +2 -2
- package/dist/plugins/cms/api/index.d.mts +2 -2
- package/dist/plugins/cms/api/index.d.ts +2 -2
- package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
- package/dist/plugins/cms/client/index.d.cts +2 -2
- package/dist/plugins/cms/client/index.d.mts +2 -2
- package/dist/plugins/cms/client/index.d.ts +2 -2
- package/dist/plugins/cms/query-keys.d.cts +1 -1
- package/dist/plugins/cms/query-keys.d.mts +1 -1
- package/dist/plugins/cms/query-keys.d.ts +1 -1
- package/dist/plugins/form-builder/api/index.d.cts +1 -1
- package/dist/plugins/form-builder/api/index.d.mts +1 -1
- package/dist/plugins/form-builder/api/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/index.d.cts +2 -2
- package/dist/plugins/form-builder/client/index.d.mts +2 -2
- package/dist/plugins/form-builder/client/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
- package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
- package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
- package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
- package/dist/plugins/ui-builder/client/index.cjs +38 -0
- package/dist/plugins/ui-builder/client/index.d.cts +349 -0
- package/dist/plugins/ui-builder/client/index.d.mts +349 -0
- package/dist/plugins/ui-builder/client/index.d.ts +349 -0
- package/dist/plugins/ui-builder/client/index.mjs +8 -0
- package/dist/plugins/ui-builder/client.css +2 -0
- package/dist/plugins/ui-builder/index.cjs +9 -0
- package/dist/plugins/ui-builder/index.d.cts +47 -0
- package/dist/plugins/ui-builder/index.d.mts +47 -0
- package/dist/plugins/ui-builder/index.d.ts +47 -0
- package/dist/plugins/ui-builder/index.mjs +1 -0
- package/dist/plugins/ui-builder/style.css +26 -0
- package/dist/shared/{stack.BIh2AXaW.d.cts → stack.8nldKomx.d.cts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.mts → stack.8nldKomx.d.mts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.ts → stack.8nldKomx.d.ts} +1 -10
- package/dist/shared/stack.BD1m-4yB.d.ts +116 -0
- package/dist/shared/stack.BSM2cgoq.d.cts +116 -0
- package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.mts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.ts} +1 -1
- package/dist/shared/stack.CLtOoAqF.d.mts +116 -0
- package/dist/shared/{stack.AX5nZ6A3.d.ts → stack.Co034Fpm.d.cts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.cts → stack.Co034Fpm.d.mts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.mts → stack.Co034Fpm.d.ts} +0 -21
- package/dist/shared/stack.CqfZWfjJ.d.cts +42 -0
- package/dist/shared/stack.MMntCVZZ.d.ts +42 -0
- package/dist/shared/stack.e1FN86dE.d.mts +42 -0
- package/package.json +54 -1
- package/src/plugins/cms/client/components/forms/content-form.tsx +2 -2
- package/src/plugins/form-builder/client/components/forms/form-renderer.tsx +1 -1
- package/src/plugins/ui-builder/client/components/index.ts +10 -0
- package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
- package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
- package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
- package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
- package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
- package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
- package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
- package/src/plugins/ui-builder/client/index.ts +64 -0
- package/src/plugins/ui-builder/client/localization/index.ts +64 -0
- package/src/plugins/ui-builder/client/overrides.ts +99 -0
- package/src/plugins/ui-builder/client/plugin.tsx +315 -0
- package/src/plugins/ui-builder/client/registry.ts +611 -0
- package/src/plugins/ui-builder/client.css +2 -0
- package/src/plugins/ui-builder/index.ts +41 -0
- package/src/plugins/ui-builder/schemas.ts +48 -0
- package/src/plugins/ui-builder/style.css +26 -0
- package/src/plugins/ui-builder/types.ts +137 -0
- package/src/plugins/index.ts +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.cjs → helpers.cjs} +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.mjs → helpers.mjs} +0 -0
|
@@ -0,0 +1,1753 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// THIS FILE IS AUTOMATICALLY GENERATED DO NOT EDIT DIRECTLY
|
|
4
|
+
// See update-tlds.js for encoding/decoding format
|
|
5
|
+
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
6
|
+
const encodedTlds = 'aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2';
|
|
7
|
+
// Internationalized domain names containing non-ASCII
|
|
8
|
+
const encodedUtlds = 'ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Finite State Machine generation utilities
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @template T
|
|
16
|
+
* @typedef {{ [group: string]: T[] }} Collections
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @typedef {{ [group: string]: true }} Flags
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
// Keys in scanner Collections instances
|
|
24
|
+
const numeric = 'numeric';
|
|
25
|
+
const ascii = 'ascii';
|
|
26
|
+
const alpha = 'alpha';
|
|
27
|
+
const asciinumeric = 'asciinumeric';
|
|
28
|
+
const alphanumeric = 'alphanumeric';
|
|
29
|
+
const domain = 'domain';
|
|
30
|
+
const emoji = 'emoji';
|
|
31
|
+
const scheme = 'scheme';
|
|
32
|
+
const slashscheme = 'slashscheme';
|
|
33
|
+
const whitespace = 'whitespace';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @template T
|
|
37
|
+
* @param {string} name
|
|
38
|
+
* @param {Collections<T>} groups to register in
|
|
39
|
+
* @returns {T[]} Current list of tokens in the given collection
|
|
40
|
+
*/
|
|
41
|
+
function registerGroup(name, groups) {
|
|
42
|
+
if (!(name in groups)) {
|
|
43
|
+
groups[name] = [];
|
|
44
|
+
}
|
|
45
|
+
return groups[name];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @template T
|
|
50
|
+
* @param {T} t token to add
|
|
51
|
+
* @param {Collections<T>} groups
|
|
52
|
+
* @param {Flags} flags
|
|
53
|
+
*/
|
|
54
|
+
function addToGroups(t, flags, groups) {
|
|
55
|
+
if (flags[numeric]) {
|
|
56
|
+
flags[asciinumeric] = true;
|
|
57
|
+
flags[alphanumeric] = true;
|
|
58
|
+
}
|
|
59
|
+
if (flags[ascii]) {
|
|
60
|
+
flags[asciinumeric] = true;
|
|
61
|
+
flags[alpha] = true;
|
|
62
|
+
}
|
|
63
|
+
if (flags[asciinumeric]) {
|
|
64
|
+
flags[alphanumeric] = true;
|
|
65
|
+
}
|
|
66
|
+
if (flags[alpha]) {
|
|
67
|
+
flags[alphanumeric] = true;
|
|
68
|
+
}
|
|
69
|
+
if (flags[alphanumeric]) {
|
|
70
|
+
flags[domain] = true;
|
|
71
|
+
}
|
|
72
|
+
if (flags[emoji]) {
|
|
73
|
+
flags[domain] = true;
|
|
74
|
+
}
|
|
75
|
+
for (const k in flags) {
|
|
76
|
+
const group = registerGroup(k, groups);
|
|
77
|
+
if (group.indexOf(t) < 0) {
|
|
78
|
+
group.push(t);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @template T
|
|
85
|
+
* @param {T} t token to check
|
|
86
|
+
* @param {Collections<T>} groups
|
|
87
|
+
* @returns {Flags} group flags that contain this token
|
|
88
|
+
*/
|
|
89
|
+
function flagsForToken(t, groups) {
|
|
90
|
+
const result = {};
|
|
91
|
+
for (const c in groups) {
|
|
92
|
+
if (groups[c].indexOf(t) >= 0) {
|
|
93
|
+
result[c] = true;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @template T
|
|
101
|
+
* @typedef {null | T } Transition
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Define a basic state machine state. j is the list of character transitions,
|
|
106
|
+
* jr is the list of regex-match transitions, jd is the default state to
|
|
107
|
+
* transition to t is the accepting token type, if any. If this is the terminal
|
|
108
|
+
* state, then it does not emit a token.
|
|
109
|
+
*
|
|
110
|
+
* The template type T represents the type of the token this state accepts. This
|
|
111
|
+
* should be a string (such as of the token exports in `text.js`) or a
|
|
112
|
+
* MultiToken subclass (from `multi.js`)
|
|
113
|
+
*
|
|
114
|
+
* @template T
|
|
115
|
+
* @param {T} [token] Token that this state emits
|
|
116
|
+
*/
|
|
117
|
+
function State(token = null) {
|
|
118
|
+
// this.n = null; // DEBUG: State name
|
|
119
|
+
/** @type {{ [input: string]: State<T> }} j */
|
|
120
|
+
this.j = {}; // IMPLEMENTATION 1
|
|
121
|
+
// this.j = []; // IMPLEMENTATION 2
|
|
122
|
+
/** @type {[RegExp, State<T>][]} jr */
|
|
123
|
+
this.jr = [];
|
|
124
|
+
/** @type {?State<T>} jd */
|
|
125
|
+
this.jd = null;
|
|
126
|
+
/** @type {?T} t */
|
|
127
|
+
this.t = token;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Scanner token groups
|
|
132
|
+
* @type Collections<string>
|
|
133
|
+
*/
|
|
134
|
+
State.groups = {};
|
|
135
|
+
State.prototype = {
|
|
136
|
+
accepts() {
|
|
137
|
+
return !!this.t;
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* Follow an existing transition from the given input to the next state.
|
|
141
|
+
* Does not mutate.
|
|
142
|
+
* @param {string} input character or token type to transition on
|
|
143
|
+
* @returns {?State<T>} the next state, if any
|
|
144
|
+
*/
|
|
145
|
+
go(input) {
|
|
146
|
+
const state = this;
|
|
147
|
+
const nextState = state.j[input];
|
|
148
|
+
if (nextState) {
|
|
149
|
+
return nextState;
|
|
150
|
+
}
|
|
151
|
+
for (let i = 0; i < state.jr.length; i++) {
|
|
152
|
+
const regex = state.jr[i][0];
|
|
153
|
+
const nextState = state.jr[i][1]; // note: might be empty to prevent default jump
|
|
154
|
+
if (nextState && regex.test(input)) {
|
|
155
|
+
return nextState;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
// Nowhere left to jump! Return default, if any
|
|
159
|
+
return state.jd;
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* Whether the state has a transition for the given input. Set the second
|
|
163
|
+
* argument to true to only look for an exact match (and not a default or
|
|
164
|
+
* regular-expression-based transition)
|
|
165
|
+
* @param {string} input
|
|
166
|
+
* @param {boolean} exactOnly
|
|
167
|
+
*/
|
|
168
|
+
has(input, exactOnly = false) {
|
|
169
|
+
return exactOnly ? input in this.j : !!this.go(input);
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* Short for "transition all"; create a transition from the array of items
|
|
173
|
+
* in the given list to the same final resulting state.
|
|
174
|
+
* @param {string | string[]} inputs Group of inputs to transition on
|
|
175
|
+
* @param {Transition<T> | State<T>} [next] Transition options
|
|
176
|
+
* @param {Flags} [flags] Collections flags to add token to
|
|
177
|
+
* @param {Collections<T>} [groups] Master list of token groups
|
|
178
|
+
*/
|
|
179
|
+
ta(inputs, next, flags, groups) {
|
|
180
|
+
for (let i = 0; i < inputs.length; i++) {
|
|
181
|
+
this.tt(inputs[i], next, flags, groups);
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* Short for "take regexp transition"; defines a transition for this state
|
|
186
|
+
* when it encounters a token which matches the given regular expression
|
|
187
|
+
* @param {RegExp} regexp Regular expression transition (populate first)
|
|
188
|
+
* @param {T | State<T>} [next] Transition options
|
|
189
|
+
* @param {Flags} [flags] Collections flags to add token to
|
|
190
|
+
* @param {Collections<T>} [groups] Master list of token groups
|
|
191
|
+
* @returns {State<T>} taken after the given input
|
|
192
|
+
*/
|
|
193
|
+
tr(regexp, next, flags, groups) {
|
|
194
|
+
groups = groups || State.groups;
|
|
195
|
+
let nextState;
|
|
196
|
+
if (next && next.j) {
|
|
197
|
+
nextState = next;
|
|
198
|
+
} else {
|
|
199
|
+
// Token with maybe token groups
|
|
200
|
+
nextState = new State(next);
|
|
201
|
+
if (flags && groups) {
|
|
202
|
+
addToGroups(next, flags, groups);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
this.jr.push([regexp, nextState]);
|
|
206
|
+
return nextState;
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* Short for "take transitions", will take as many sequential transitions as
|
|
210
|
+
* the length of the given input and returns the
|
|
211
|
+
* resulting final state.
|
|
212
|
+
* @param {string | string[]} input
|
|
213
|
+
* @param {T | State<T>} [next] Transition options
|
|
214
|
+
* @param {Flags} [flags] Collections flags to add token to
|
|
215
|
+
* @param {Collections<T>} [groups] Master list of token groups
|
|
216
|
+
* @returns {State<T>} taken after the given input
|
|
217
|
+
*/
|
|
218
|
+
ts(input, next, flags, groups) {
|
|
219
|
+
let state = this;
|
|
220
|
+
const len = input.length;
|
|
221
|
+
if (!len) {
|
|
222
|
+
return state;
|
|
223
|
+
}
|
|
224
|
+
for (let i = 0; i < len - 1; i++) {
|
|
225
|
+
state = state.tt(input[i]);
|
|
226
|
+
}
|
|
227
|
+
return state.tt(input[len - 1], next, flags, groups);
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Short for "take transition", this is a method for building/working with
|
|
231
|
+
* state machines.
|
|
232
|
+
*
|
|
233
|
+
* If a state already exists for the given input, returns it.
|
|
234
|
+
*
|
|
235
|
+
* If a token is specified, that state will emit that token when reached by
|
|
236
|
+
* the linkify engine.
|
|
237
|
+
*
|
|
238
|
+
* If no state exists, it will be initialized with some default transitions
|
|
239
|
+
* that resemble existing default transitions.
|
|
240
|
+
*
|
|
241
|
+
* If a state is given for the second argument, that state will be
|
|
242
|
+
* transitioned to on the given input regardless of what that input
|
|
243
|
+
* previously did.
|
|
244
|
+
*
|
|
245
|
+
* Specify a token group flags to define groups that this token belongs to.
|
|
246
|
+
* The token will be added to corresponding entires in the given groups
|
|
247
|
+
* object.
|
|
248
|
+
*
|
|
249
|
+
* @param {string} input character, token type to transition on
|
|
250
|
+
* @param {T | State<T>} [next] Transition options
|
|
251
|
+
* @param {Flags} [flags] Collections flags to add token to
|
|
252
|
+
* @param {Collections<T>} [groups] Master list of groups
|
|
253
|
+
* @returns {State<T>} taken after the given input
|
|
254
|
+
*/
|
|
255
|
+
tt(input, next, flags, groups) {
|
|
256
|
+
groups = groups || State.groups;
|
|
257
|
+
const state = this;
|
|
258
|
+
|
|
259
|
+
// Check if existing state given, just a basic transition
|
|
260
|
+
if (next && next.j) {
|
|
261
|
+
state.j[input] = next;
|
|
262
|
+
return next;
|
|
263
|
+
}
|
|
264
|
+
const t = next;
|
|
265
|
+
|
|
266
|
+
// Take the transition with the usual default mechanisms and use that as
|
|
267
|
+
// a template for creating the next state
|
|
268
|
+
let nextState,
|
|
269
|
+
templateState = state.go(input);
|
|
270
|
+
if (templateState) {
|
|
271
|
+
nextState = new State();
|
|
272
|
+
Object.assign(nextState.j, templateState.j);
|
|
273
|
+
nextState.jr.push.apply(nextState.jr, templateState.jr);
|
|
274
|
+
nextState.jd = templateState.jd;
|
|
275
|
+
nextState.t = templateState.t;
|
|
276
|
+
} else {
|
|
277
|
+
nextState = new State();
|
|
278
|
+
}
|
|
279
|
+
if (t) {
|
|
280
|
+
// Ensure newly token is in the same groups as the old token
|
|
281
|
+
if (groups) {
|
|
282
|
+
if (nextState.t && typeof nextState.t === 'string') {
|
|
283
|
+
const allFlags = Object.assign(flagsForToken(nextState.t, groups), flags);
|
|
284
|
+
addToGroups(t, allFlags, groups);
|
|
285
|
+
} else if (flags) {
|
|
286
|
+
addToGroups(t, flags, groups);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
nextState.t = t; // overwrite anything that was previously there
|
|
290
|
+
}
|
|
291
|
+
state.j[input] = nextState;
|
|
292
|
+
return nextState;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// Helper functions to improve minification (not exported outside linkifyjs module)
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @template T
|
|
300
|
+
* @param {State<T>} state
|
|
301
|
+
* @param {string | string[]} input
|
|
302
|
+
* @param {Flags} [flags]
|
|
303
|
+
* @param {Collections<T>} [groups]
|
|
304
|
+
*/
|
|
305
|
+
const ta = (state, input, next, flags, groups) => state.ta(input, next, flags, groups);
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @template T
|
|
309
|
+
* @param {State<T>} state
|
|
310
|
+
* @param {RegExp} regexp
|
|
311
|
+
* @param {T | State<T>} [next]
|
|
312
|
+
* @param {Flags} [flags]
|
|
313
|
+
* @param {Collections<T>} [groups]
|
|
314
|
+
*/
|
|
315
|
+
const tr = (state, regexp, next, flags, groups) => state.tr(regexp, next, flags, groups);
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @template T
|
|
319
|
+
* @param {State<T>} state
|
|
320
|
+
* @param {string | string[]} input
|
|
321
|
+
* @param {T | State<T>} [next]
|
|
322
|
+
* @param {Flags} [flags]
|
|
323
|
+
* @param {Collections<T>} [groups]
|
|
324
|
+
*/
|
|
325
|
+
const ts = (state, input, next, flags, groups) => state.ts(input, next, flags, groups);
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @template T
|
|
329
|
+
* @param {State<T>} state
|
|
330
|
+
* @param {string} input
|
|
331
|
+
* @param {T | State<T>} [next]
|
|
332
|
+
* @param {Collections<T>} [groups]
|
|
333
|
+
* @param {Flags} [flags]
|
|
334
|
+
*/
|
|
335
|
+
const tt = (state, input, next, flags, groups) => state.tt(input, next, flags, groups);
|
|
336
|
+
|
|
337
|
+
/******************************************************************************
|
|
338
|
+
Text Tokens
|
|
339
|
+
Identifiers for token outputs from the regexp scanner
|
|
340
|
+
******************************************************************************/
|
|
341
|
+
|
|
342
|
+
// A valid web domain token
|
|
343
|
+
const WORD = 'WORD'; // only contains a-z
|
|
344
|
+
const UWORD = 'UWORD'; // contains letters other than a-z, used for IDN
|
|
345
|
+
const ASCIINUMERICAL = 'ASCIINUMERICAL'; // contains a-z, 0-9
|
|
346
|
+
const ALPHANUMERICAL = 'ALPHANUMERICAL'; // contains numbers and letters other than a-z, used for IDN
|
|
347
|
+
|
|
348
|
+
// Special case of word
|
|
349
|
+
const LOCALHOST = 'LOCALHOST';
|
|
350
|
+
|
|
351
|
+
// Valid top-level domain, special case of WORD (see tlds.js)
|
|
352
|
+
const TLD = 'TLD';
|
|
353
|
+
|
|
354
|
+
// Valid IDN TLD, special case of UWORD (see tlds.js)
|
|
355
|
+
const UTLD = 'UTLD';
|
|
356
|
+
|
|
357
|
+
// The scheme portion of a web URI protocol. Supported types include: `mailto`,
|
|
358
|
+
// `file`, and user-defined custom protocols. Limited to schemes that contain
|
|
359
|
+
// only letters
|
|
360
|
+
const SCHEME = 'SCHEME';
|
|
361
|
+
|
|
362
|
+
// Similar to SCHEME, except makes distinction for schemes that must always be
|
|
363
|
+
// followed by `://`, not just `:`. Supported types include `http`, `https`,
|
|
364
|
+
// `ftp`, `ftps`
|
|
365
|
+
const SLASH_SCHEME = 'SLASH_SCHEME';
|
|
366
|
+
|
|
367
|
+
// Any sequence of digits 0-9
|
|
368
|
+
const NUM = 'NUM';
|
|
369
|
+
|
|
370
|
+
// Any number of consecutive whitespace characters that are not newline
|
|
371
|
+
const WS = 'WS';
|
|
372
|
+
|
|
373
|
+
// New line (unix style)
|
|
374
|
+
const NL = 'NL'; // \n
|
|
375
|
+
|
|
376
|
+
// Opening/closing bracket classes
|
|
377
|
+
// TODO: Rename OPEN -> LEFT and CLOSE -> RIGHT in v5 to fit with Unicode names
|
|
378
|
+
// Also rename angle brackes to LESSTHAN and GREATER THAN
|
|
379
|
+
const OPENBRACE = 'OPENBRACE'; // {
|
|
380
|
+
const CLOSEBRACE = 'CLOSEBRACE'; // }
|
|
381
|
+
const OPENBRACKET = 'OPENBRACKET'; // [
|
|
382
|
+
const CLOSEBRACKET = 'CLOSEBRACKET'; // ]
|
|
383
|
+
const OPENPAREN = 'OPENPAREN'; // (
|
|
384
|
+
const CLOSEPAREN = 'CLOSEPAREN'; // )
|
|
385
|
+
const OPENANGLEBRACKET = 'OPENANGLEBRACKET'; // <
|
|
386
|
+
const CLOSEANGLEBRACKET = 'CLOSEANGLEBRACKET'; // >
|
|
387
|
+
const FULLWIDTHLEFTPAREN = 'FULLWIDTHLEFTPAREN'; // (
|
|
388
|
+
const FULLWIDTHRIGHTPAREN = 'FULLWIDTHRIGHTPAREN'; // )
|
|
389
|
+
const LEFTCORNERBRACKET = 'LEFTCORNERBRACKET'; // 「
|
|
390
|
+
const RIGHTCORNERBRACKET = 'RIGHTCORNERBRACKET'; // 」
|
|
391
|
+
const LEFTWHITECORNERBRACKET = 'LEFTWHITECORNERBRACKET'; // 『
|
|
392
|
+
const RIGHTWHITECORNERBRACKET = 'RIGHTWHITECORNERBRACKET'; // 』
|
|
393
|
+
const FULLWIDTHLESSTHAN = 'FULLWIDTHLESSTHAN'; // <
|
|
394
|
+
const FULLWIDTHGREATERTHAN = 'FULLWIDTHGREATERTHAN'; // >
|
|
395
|
+
|
|
396
|
+
// Various symbols
|
|
397
|
+
const AMPERSAND = 'AMPERSAND'; // &
|
|
398
|
+
const APOSTROPHE = 'APOSTROPHE'; // '
|
|
399
|
+
const ASTERISK = 'ASTERISK'; // *
|
|
400
|
+
const AT = 'AT'; // @
|
|
401
|
+
const BACKSLASH = 'BACKSLASH'; // \
|
|
402
|
+
const BACKTICK = 'BACKTICK'; // `
|
|
403
|
+
const CARET = 'CARET'; // ^
|
|
404
|
+
const COLON = 'COLON'; // :
|
|
405
|
+
const COMMA = 'COMMA'; // ,
|
|
406
|
+
const DOLLAR = 'DOLLAR'; // $
|
|
407
|
+
const DOT = 'DOT'; // .
|
|
408
|
+
const EQUALS = 'EQUALS'; // =
|
|
409
|
+
const EXCLAMATION = 'EXCLAMATION'; // !
|
|
410
|
+
const HYPHEN = 'HYPHEN'; // -
|
|
411
|
+
const PERCENT = 'PERCENT'; // %
|
|
412
|
+
const PIPE = 'PIPE'; // |
|
|
413
|
+
const PLUS = 'PLUS'; // +
|
|
414
|
+
const POUND = 'POUND'; // #
|
|
415
|
+
const QUERY = 'QUERY'; // ?
|
|
416
|
+
const QUOTE = 'QUOTE'; // "
|
|
417
|
+
const FULLWIDTHMIDDLEDOT = 'FULLWIDTHMIDDLEDOT'; // ・
|
|
418
|
+
|
|
419
|
+
const SEMI = 'SEMI'; // ;
|
|
420
|
+
const SLASH = 'SLASH'; // /
|
|
421
|
+
const TILDE = 'TILDE'; // ~
|
|
422
|
+
const UNDERSCORE = 'UNDERSCORE'; // _
|
|
423
|
+
|
|
424
|
+
// Emoji symbol
|
|
425
|
+
const EMOJI$1 = 'EMOJI';
|
|
426
|
+
|
|
427
|
+
// Default token - anything that is not one of the above
|
|
428
|
+
const SYM = 'SYM';
|
|
429
|
+
|
|
430
|
+
var tk = /*#__PURE__*/Object.freeze({
|
|
431
|
+
__proto__: null,
|
|
432
|
+
ALPHANUMERICAL: ALPHANUMERICAL,
|
|
433
|
+
AMPERSAND: AMPERSAND,
|
|
434
|
+
APOSTROPHE: APOSTROPHE,
|
|
435
|
+
ASCIINUMERICAL: ASCIINUMERICAL,
|
|
436
|
+
ASTERISK: ASTERISK,
|
|
437
|
+
AT: AT,
|
|
438
|
+
BACKSLASH: BACKSLASH,
|
|
439
|
+
BACKTICK: BACKTICK,
|
|
440
|
+
CARET: CARET,
|
|
441
|
+
CLOSEANGLEBRACKET: CLOSEANGLEBRACKET,
|
|
442
|
+
CLOSEBRACE: CLOSEBRACE,
|
|
443
|
+
CLOSEBRACKET: CLOSEBRACKET,
|
|
444
|
+
CLOSEPAREN: CLOSEPAREN,
|
|
445
|
+
COLON: COLON,
|
|
446
|
+
COMMA: COMMA,
|
|
447
|
+
DOLLAR: DOLLAR,
|
|
448
|
+
DOT: DOT,
|
|
449
|
+
EMOJI: EMOJI$1,
|
|
450
|
+
EQUALS: EQUALS,
|
|
451
|
+
EXCLAMATION: EXCLAMATION,
|
|
452
|
+
FULLWIDTHGREATERTHAN: FULLWIDTHGREATERTHAN,
|
|
453
|
+
FULLWIDTHLEFTPAREN: FULLWIDTHLEFTPAREN,
|
|
454
|
+
FULLWIDTHLESSTHAN: FULLWIDTHLESSTHAN,
|
|
455
|
+
FULLWIDTHMIDDLEDOT: FULLWIDTHMIDDLEDOT,
|
|
456
|
+
FULLWIDTHRIGHTPAREN: FULLWIDTHRIGHTPAREN,
|
|
457
|
+
HYPHEN: HYPHEN,
|
|
458
|
+
LEFTCORNERBRACKET: LEFTCORNERBRACKET,
|
|
459
|
+
LEFTWHITECORNERBRACKET: LEFTWHITECORNERBRACKET,
|
|
460
|
+
LOCALHOST: LOCALHOST,
|
|
461
|
+
NL: NL,
|
|
462
|
+
NUM: NUM,
|
|
463
|
+
OPENANGLEBRACKET: OPENANGLEBRACKET,
|
|
464
|
+
OPENBRACE: OPENBRACE,
|
|
465
|
+
OPENBRACKET: OPENBRACKET,
|
|
466
|
+
OPENPAREN: OPENPAREN,
|
|
467
|
+
PERCENT: PERCENT,
|
|
468
|
+
PIPE: PIPE,
|
|
469
|
+
PLUS: PLUS,
|
|
470
|
+
POUND: POUND,
|
|
471
|
+
QUERY: QUERY,
|
|
472
|
+
QUOTE: QUOTE,
|
|
473
|
+
RIGHTCORNERBRACKET: RIGHTCORNERBRACKET,
|
|
474
|
+
RIGHTWHITECORNERBRACKET: RIGHTWHITECORNERBRACKET,
|
|
475
|
+
SCHEME: SCHEME,
|
|
476
|
+
SEMI: SEMI,
|
|
477
|
+
SLASH: SLASH,
|
|
478
|
+
SLASH_SCHEME: SLASH_SCHEME,
|
|
479
|
+
SYM: SYM,
|
|
480
|
+
TILDE: TILDE,
|
|
481
|
+
TLD: TLD,
|
|
482
|
+
UNDERSCORE: UNDERSCORE,
|
|
483
|
+
UTLD: UTLD,
|
|
484
|
+
UWORD: UWORD,
|
|
485
|
+
WORD: WORD,
|
|
486
|
+
WS: WS
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
// Note that these two Unicode ones expand into a really big one with Babel
|
|
490
|
+
const ASCII_LETTER = /[a-z]/;
|
|
491
|
+
const LETTER = /\p{L}/u; // Any Unicode character with letter data type
|
|
492
|
+
const EMOJI = /\p{Emoji}/u; // Any Unicode emoji character
|
|
493
|
+
const DIGIT = /\d/;
|
|
494
|
+
const SPACE = /\s/;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
The scanner provides an interface that takes a string of text as input, and
|
|
498
|
+
outputs an array of tokens instances that can be used for easy URL parsing.
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
const CR = '\r'; // carriage-return character
|
|
502
|
+
const LF = '\n'; // line-feed character
|
|
503
|
+
const EMOJI_VARIATION = '\ufe0f'; // Variation selector, follows heart and others
|
|
504
|
+
const EMOJI_JOINER = '\u200d'; // zero-width joiner
|
|
505
|
+
const OBJECT_REPLACEMENT = '\ufffc'; // whitespace placeholder that sometimes appears in rich text editors
|
|
506
|
+
|
|
507
|
+
let tlds = null,
|
|
508
|
+
utlds = null; // don't change so only have to be computed once
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Scanner output token:
|
|
512
|
+
* - `t` is the token name (e.g., 'NUM', 'EMOJI', 'TLD')
|
|
513
|
+
* - `v` is the value of the token (e.g., '123', '❤️', 'com')
|
|
514
|
+
* - `s` is the start index of the token in the original string
|
|
515
|
+
* - `e` is the end index of the token in the original string
|
|
516
|
+
* @typedef {{t: string, v: string, s: number, e: number}} Token
|
|
517
|
+
*/
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @template T
|
|
521
|
+
* @typedef {{ [collection: string]: T[] }} Collections
|
|
522
|
+
*/
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Initialize the scanner character-based state machine for the given start
|
|
526
|
+
* state
|
|
527
|
+
* @param {[string, boolean][]} customSchemes List of custom schemes, where each
|
|
528
|
+
* item is a length-2 tuple with the first element set to the string scheme, and
|
|
529
|
+
* the second element set to `true` if the `://` after the scheme is optional
|
|
530
|
+
*/
|
|
531
|
+
function init$2(customSchemes = []) {
|
|
532
|
+
// Frequently used states (name argument removed during minification)
|
|
533
|
+
/** @type Collections<string> */
|
|
534
|
+
const groups = {}; // of tokens
|
|
535
|
+
State.groups = groups;
|
|
536
|
+
/** @type State<string> */
|
|
537
|
+
const Start = new State();
|
|
538
|
+
if (tlds == null) {
|
|
539
|
+
tlds = decodeTlds(encodedTlds);
|
|
540
|
+
}
|
|
541
|
+
if (utlds == null) {
|
|
542
|
+
utlds = decodeTlds(encodedUtlds);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// States for special URL symbols that accept immediately after start
|
|
546
|
+
tt(Start, "'", APOSTROPHE);
|
|
547
|
+
tt(Start, '{', OPENBRACE);
|
|
548
|
+
tt(Start, '}', CLOSEBRACE);
|
|
549
|
+
tt(Start, '[', OPENBRACKET);
|
|
550
|
+
tt(Start, ']', CLOSEBRACKET);
|
|
551
|
+
tt(Start, '(', OPENPAREN);
|
|
552
|
+
tt(Start, ')', CLOSEPAREN);
|
|
553
|
+
tt(Start, '<', OPENANGLEBRACKET);
|
|
554
|
+
tt(Start, '>', CLOSEANGLEBRACKET);
|
|
555
|
+
tt(Start, '(', FULLWIDTHLEFTPAREN);
|
|
556
|
+
tt(Start, ')', FULLWIDTHRIGHTPAREN);
|
|
557
|
+
tt(Start, '「', LEFTCORNERBRACKET);
|
|
558
|
+
tt(Start, '」', RIGHTCORNERBRACKET);
|
|
559
|
+
tt(Start, '『', LEFTWHITECORNERBRACKET);
|
|
560
|
+
tt(Start, '』', RIGHTWHITECORNERBRACKET);
|
|
561
|
+
tt(Start, '<', FULLWIDTHLESSTHAN);
|
|
562
|
+
tt(Start, '>', FULLWIDTHGREATERTHAN);
|
|
563
|
+
tt(Start, '&', AMPERSAND);
|
|
564
|
+
tt(Start, '*', ASTERISK);
|
|
565
|
+
tt(Start, '@', AT);
|
|
566
|
+
tt(Start, '`', BACKTICK);
|
|
567
|
+
tt(Start, '^', CARET);
|
|
568
|
+
tt(Start, ':', COLON);
|
|
569
|
+
tt(Start, ',', COMMA);
|
|
570
|
+
tt(Start, '$', DOLLAR);
|
|
571
|
+
tt(Start, '.', DOT);
|
|
572
|
+
tt(Start, '=', EQUALS);
|
|
573
|
+
tt(Start, '!', EXCLAMATION);
|
|
574
|
+
tt(Start, '-', HYPHEN);
|
|
575
|
+
tt(Start, '%', PERCENT);
|
|
576
|
+
tt(Start, '|', PIPE);
|
|
577
|
+
tt(Start, '+', PLUS);
|
|
578
|
+
tt(Start, '#', POUND);
|
|
579
|
+
tt(Start, '?', QUERY);
|
|
580
|
+
tt(Start, '"', QUOTE);
|
|
581
|
+
tt(Start, '/', SLASH);
|
|
582
|
+
tt(Start, ';', SEMI);
|
|
583
|
+
tt(Start, '~', TILDE);
|
|
584
|
+
tt(Start, '_', UNDERSCORE);
|
|
585
|
+
tt(Start, '\\', BACKSLASH);
|
|
586
|
+
tt(Start, '・', FULLWIDTHMIDDLEDOT);
|
|
587
|
+
const Num = tr(Start, DIGIT, NUM, {
|
|
588
|
+
[numeric]: true
|
|
589
|
+
});
|
|
590
|
+
tr(Num, DIGIT, Num);
|
|
591
|
+
const Asciinumeric = tr(Num, ASCII_LETTER, ASCIINUMERICAL, {
|
|
592
|
+
[asciinumeric]: true
|
|
593
|
+
});
|
|
594
|
+
const Alphanumeric = tr(Num, LETTER, ALPHANUMERICAL, {
|
|
595
|
+
[alphanumeric]: true
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
// State which emits a word token
|
|
599
|
+
const Word = tr(Start, ASCII_LETTER, WORD, {
|
|
600
|
+
[ascii]: true
|
|
601
|
+
});
|
|
602
|
+
tr(Word, DIGIT, Asciinumeric);
|
|
603
|
+
tr(Word, ASCII_LETTER, Word);
|
|
604
|
+
tr(Asciinumeric, DIGIT, Asciinumeric);
|
|
605
|
+
tr(Asciinumeric, ASCII_LETTER, Asciinumeric);
|
|
606
|
+
|
|
607
|
+
// Same as previous, but specific to non-fsm.ascii alphabet words
|
|
608
|
+
const UWord = tr(Start, LETTER, UWORD, {
|
|
609
|
+
[alpha]: true
|
|
610
|
+
});
|
|
611
|
+
tr(UWord, ASCII_LETTER); // Non-accepting
|
|
612
|
+
tr(UWord, DIGIT, Alphanumeric);
|
|
613
|
+
tr(UWord, LETTER, UWord);
|
|
614
|
+
tr(Alphanumeric, DIGIT, Alphanumeric);
|
|
615
|
+
tr(Alphanumeric, ASCII_LETTER); // Non-accepting
|
|
616
|
+
tr(Alphanumeric, LETTER, Alphanumeric); // Non-accepting
|
|
617
|
+
|
|
618
|
+
// Whitespace jumps
|
|
619
|
+
// Tokens of only non-newline whitespace are arbitrarily long
|
|
620
|
+
// If any whitespace except newline, more whitespace!
|
|
621
|
+
const Nl = tt(Start, LF, NL, {
|
|
622
|
+
[whitespace]: true
|
|
623
|
+
});
|
|
624
|
+
const Cr = tt(Start, CR, WS, {
|
|
625
|
+
[whitespace]: true
|
|
626
|
+
});
|
|
627
|
+
const Ws = tr(Start, SPACE, WS, {
|
|
628
|
+
[whitespace]: true
|
|
629
|
+
});
|
|
630
|
+
tt(Start, OBJECT_REPLACEMENT, Ws);
|
|
631
|
+
tt(Cr, LF, Nl); // \r\n
|
|
632
|
+
tt(Cr, OBJECT_REPLACEMENT, Ws);
|
|
633
|
+
tr(Cr, SPACE, Ws);
|
|
634
|
+
tt(Ws, CR); // non-accepting state to avoid mixing whitespaces
|
|
635
|
+
tt(Ws, LF); // non-accepting state to avoid mixing whitespaces
|
|
636
|
+
tr(Ws, SPACE, Ws);
|
|
637
|
+
tt(Ws, OBJECT_REPLACEMENT, Ws);
|
|
638
|
+
|
|
639
|
+
// Emoji tokens. They are not grouped by the scanner except in cases where a
|
|
640
|
+
// zero-width joiner is present
|
|
641
|
+
const Emoji = tr(Start, EMOJI, EMOJI$1, {
|
|
642
|
+
[emoji]: true
|
|
643
|
+
});
|
|
644
|
+
tt(Emoji, '#'); // no transition, emoji regex seems to match #
|
|
645
|
+
tr(Emoji, EMOJI, Emoji);
|
|
646
|
+
tt(Emoji, EMOJI_VARIATION, Emoji);
|
|
647
|
+
// tt(Start, EMOJI_VARIATION, Emoji); // This one is sketchy
|
|
648
|
+
|
|
649
|
+
const EmojiJoiner = tt(Emoji, EMOJI_JOINER);
|
|
650
|
+
tt(EmojiJoiner, '#');
|
|
651
|
+
tr(EmojiJoiner, EMOJI, Emoji);
|
|
652
|
+
// tt(EmojiJoiner, EMOJI_VARIATION, Emoji); // also sketchy
|
|
653
|
+
|
|
654
|
+
// Generates states for top-level domains
|
|
655
|
+
// Note that this is most accurate when tlds are in alphabetical order
|
|
656
|
+
const wordjr = [[ASCII_LETTER, Word], [DIGIT, Asciinumeric]];
|
|
657
|
+
const uwordjr = [[ASCII_LETTER, null], [LETTER, UWord], [DIGIT, Alphanumeric]];
|
|
658
|
+
for (let i = 0; i < tlds.length; i++) {
|
|
659
|
+
fastts(Start, tlds[i], TLD, WORD, wordjr);
|
|
660
|
+
}
|
|
661
|
+
for (let i = 0; i < utlds.length; i++) {
|
|
662
|
+
fastts(Start, utlds[i], UTLD, UWORD, uwordjr);
|
|
663
|
+
}
|
|
664
|
+
addToGroups(TLD, {
|
|
665
|
+
tld: true,
|
|
666
|
+
ascii: true
|
|
667
|
+
}, groups);
|
|
668
|
+
addToGroups(UTLD, {
|
|
669
|
+
utld: true,
|
|
670
|
+
alpha: true
|
|
671
|
+
}, groups);
|
|
672
|
+
|
|
673
|
+
// Collect the states generated by different protocols. NOTE: If any new TLDs
|
|
674
|
+
// get added that are also protocols, set the token to be the same as the
|
|
675
|
+
// protocol to ensure parsing works as expected.
|
|
676
|
+
fastts(Start, 'file', SCHEME, WORD, wordjr);
|
|
677
|
+
fastts(Start, 'mailto', SCHEME, WORD, wordjr);
|
|
678
|
+
fastts(Start, 'http', SLASH_SCHEME, WORD, wordjr);
|
|
679
|
+
fastts(Start, 'https', SLASH_SCHEME, WORD, wordjr);
|
|
680
|
+
fastts(Start, 'ftp', SLASH_SCHEME, WORD, wordjr);
|
|
681
|
+
fastts(Start, 'ftps', SLASH_SCHEME, WORD, wordjr);
|
|
682
|
+
addToGroups(SCHEME, {
|
|
683
|
+
scheme: true,
|
|
684
|
+
ascii: true
|
|
685
|
+
}, groups);
|
|
686
|
+
addToGroups(SLASH_SCHEME, {
|
|
687
|
+
slashscheme: true,
|
|
688
|
+
ascii: true
|
|
689
|
+
}, groups);
|
|
690
|
+
|
|
691
|
+
// Register custom schemes. Assumes each scheme is asciinumeric with hyphens
|
|
692
|
+
customSchemes = customSchemes.sort((a, b) => a[0] > b[0] ? 1 : -1);
|
|
693
|
+
for (let i = 0; i < customSchemes.length; i++) {
|
|
694
|
+
const sch = customSchemes[i][0];
|
|
695
|
+
const optionalSlashSlash = customSchemes[i][1];
|
|
696
|
+
const flags = optionalSlashSlash ? {
|
|
697
|
+
[scheme]: true
|
|
698
|
+
} : {
|
|
699
|
+
[slashscheme]: true
|
|
700
|
+
};
|
|
701
|
+
if (sch.indexOf('-') >= 0) {
|
|
702
|
+
flags[domain] = true;
|
|
703
|
+
} else if (!ASCII_LETTER.test(sch)) {
|
|
704
|
+
flags[numeric] = true; // numbers only
|
|
705
|
+
} else if (DIGIT.test(sch)) {
|
|
706
|
+
flags[asciinumeric] = true;
|
|
707
|
+
} else {
|
|
708
|
+
flags[ascii] = true;
|
|
709
|
+
}
|
|
710
|
+
ts(Start, sch, sch, flags);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// Localhost token
|
|
714
|
+
ts(Start, 'localhost', LOCALHOST, {
|
|
715
|
+
ascii: true
|
|
716
|
+
});
|
|
717
|
+
|
|
718
|
+
// Set default transition for start state (some symbol)
|
|
719
|
+
Start.jd = new State(SYM);
|
|
720
|
+
return {
|
|
721
|
+
start: Start,
|
|
722
|
+
tokens: Object.assign({
|
|
723
|
+
groups
|
|
724
|
+
}, tk)
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
Given a string, returns an array of TOKEN instances representing the
|
|
730
|
+
composition of that string.
|
|
731
|
+
|
|
732
|
+
@method run
|
|
733
|
+
@param {State<string>} start scanner starting state
|
|
734
|
+
@param {string} str input string to scan
|
|
735
|
+
@return {Token[]} list of tokens, each with a type and value
|
|
736
|
+
*/
|
|
737
|
+
function run$1(start, str) {
|
|
738
|
+
// State machine is not case sensitive, so input is tokenized in lowercased
|
|
739
|
+
// form (still returns regular case). Uses selective `toLowerCase` because
|
|
740
|
+
// lowercasing the entire string causes the length and character position to
|
|
741
|
+
// vary in some non-English strings with V8-based runtimes.
|
|
742
|
+
const iterable = stringToArray(str.replace(/[A-Z]/g, c => c.toLowerCase()));
|
|
743
|
+
const charCount = iterable.length; // <= len if there are emojis, etc
|
|
744
|
+
const tokens = []; // return value
|
|
745
|
+
|
|
746
|
+
// cursor through the string itself, accounting for characters that have
|
|
747
|
+
// width with length 2 such as emojis
|
|
748
|
+
let cursor = 0;
|
|
749
|
+
|
|
750
|
+
// Cursor through the array-representation of the string
|
|
751
|
+
let charCursor = 0;
|
|
752
|
+
|
|
753
|
+
// Tokenize the string
|
|
754
|
+
while (charCursor < charCount) {
|
|
755
|
+
let state = start;
|
|
756
|
+
let nextState = null;
|
|
757
|
+
let tokenLength = 0;
|
|
758
|
+
let latestAccepting = null;
|
|
759
|
+
let sinceAccepts = -1;
|
|
760
|
+
let charsSinceAccepts = -1;
|
|
761
|
+
while (charCursor < charCount && (nextState = state.go(iterable[charCursor]))) {
|
|
762
|
+
state = nextState;
|
|
763
|
+
|
|
764
|
+
// Keep track of the latest accepting state
|
|
765
|
+
if (state.accepts()) {
|
|
766
|
+
sinceAccepts = 0;
|
|
767
|
+
charsSinceAccepts = 0;
|
|
768
|
+
latestAccepting = state;
|
|
769
|
+
} else if (sinceAccepts >= 0) {
|
|
770
|
+
sinceAccepts += iterable[charCursor].length;
|
|
771
|
+
charsSinceAccepts++;
|
|
772
|
+
}
|
|
773
|
+
tokenLength += iterable[charCursor].length;
|
|
774
|
+
cursor += iterable[charCursor].length;
|
|
775
|
+
charCursor++;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
// Roll back to the latest accepting state
|
|
779
|
+
cursor -= sinceAccepts;
|
|
780
|
+
charCursor -= charsSinceAccepts;
|
|
781
|
+
tokenLength -= sinceAccepts;
|
|
782
|
+
|
|
783
|
+
// No more jumps, just make a new token from the last accepting one
|
|
784
|
+
tokens.push({
|
|
785
|
+
t: latestAccepting.t,
|
|
786
|
+
// token type/name
|
|
787
|
+
v: str.slice(cursor - tokenLength, cursor),
|
|
788
|
+
// string value
|
|
789
|
+
s: cursor - tokenLength,
|
|
790
|
+
// start index
|
|
791
|
+
e: cursor // end index (excluding)
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
return tokens;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Convert a String to an Array of characters, taking into account that some
|
|
799
|
+
* characters like emojis take up two string indexes.
|
|
800
|
+
*
|
|
801
|
+
* Adapted from core-js (MIT license)
|
|
802
|
+
* https://github.com/zloirock/core-js/blob/2d69cf5f99ab3ea3463c395df81e5a15b68f49d9/packages/core-js/internals/string-multibyte.js
|
|
803
|
+
*
|
|
804
|
+
* @function stringToArray
|
|
805
|
+
* @param {string} str
|
|
806
|
+
* @returns {string[]}
|
|
807
|
+
*/
|
|
808
|
+
function stringToArray(str) {
|
|
809
|
+
const result = [];
|
|
810
|
+
const len = str.length;
|
|
811
|
+
let index = 0;
|
|
812
|
+
while (index < len) {
|
|
813
|
+
let first = str.charCodeAt(index);
|
|
814
|
+
let second;
|
|
815
|
+
let char = first < 0xd800 || first > 0xdbff || index + 1 === len || (second = str.charCodeAt(index + 1)) < 0xdc00 || second > 0xdfff ? str[index] // single character
|
|
816
|
+
: str.slice(index, index + 2); // two-index characters
|
|
817
|
+
result.push(char);
|
|
818
|
+
index += char.length;
|
|
819
|
+
}
|
|
820
|
+
return result;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Fast version of ts function for when transition defaults are well known
|
|
825
|
+
* @param {State<string>} state
|
|
826
|
+
* @param {string} input
|
|
827
|
+
* @param {string} t
|
|
828
|
+
* @param {string} defaultt
|
|
829
|
+
* @param {[RegExp, State<string>][]} jr
|
|
830
|
+
* @returns {State<string>}
|
|
831
|
+
*/
|
|
832
|
+
function fastts(state, input, t, defaultt, jr) {
|
|
833
|
+
let next;
|
|
834
|
+
const len = input.length;
|
|
835
|
+
for (let i = 0; i < len - 1; i++) {
|
|
836
|
+
const char = input[i];
|
|
837
|
+
if (state.j[char]) {
|
|
838
|
+
next = state.j[char];
|
|
839
|
+
} else {
|
|
840
|
+
next = new State(defaultt);
|
|
841
|
+
next.jr = jr.slice();
|
|
842
|
+
state.j[char] = next;
|
|
843
|
+
}
|
|
844
|
+
state = next;
|
|
845
|
+
}
|
|
846
|
+
next = new State(t);
|
|
847
|
+
next.jr = jr.slice();
|
|
848
|
+
state.j[input[len - 1]] = next;
|
|
849
|
+
return next;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Converts a string of Top-Level Domain names encoded in update-tlds.js back
|
|
854
|
+
* into a list of strings.
|
|
855
|
+
* @param {str} encoded encoded TLDs string
|
|
856
|
+
* @returns {str[]} original TLDs list
|
|
857
|
+
*/
|
|
858
|
+
function decodeTlds(encoded) {
|
|
859
|
+
const words = [];
|
|
860
|
+
const stack = [];
|
|
861
|
+
let i = 0;
|
|
862
|
+
let digits = '0123456789';
|
|
863
|
+
while (i < encoded.length) {
|
|
864
|
+
let popDigitCount = 0;
|
|
865
|
+
while (digits.indexOf(encoded[i + popDigitCount]) >= 0) {
|
|
866
|
+
popDigitCount++; // encountered some digits, have to pop to go one level up trie
|
|
867
|
+
}
|
|
868
|
+
if (popDigitCount > 0) {
|
|
869
|
+
words.push(stack.join('')); // whatever preceded the pop digits must be a word
|
|
870
|
+
for (let popCount = parseInt(encoded.substring(i, i + popDigitCount), 10); popCount > 0; popCount--) {
|
|
871
|
+
stack.pop();
|
|
872
|
+
}
|
|
873
|
+
i += popDigitCount;
|
|
874
|
+
} else {
|
|
875
|
+
stack.push(encoded[i]); // drop down a level into the trie
|
|
876
|
+
i++;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return words;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* An object where each key is a valid DOM Event Name such as `click` or `focus`
|
|
884
|
+
* and each value is an event handler function.
|
|
885
|
+
*
|
|
886
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Element#events
|
|
887
|
+
* @typedef {?{ [event: string]: Function }} EventListeners
|
|
888
|
+
*/
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* All formatted properties required to render a link, including `tagName`,
|
|
892
|
+
* `attributes`, `content` and `eventListeners`.
|
|
893
|
+
* @typedef {{ tagName: any, attributes: {[attr: string]: any}, content: string,
|
|
894
|
+
* eventListeners: EventListeners }} IntermediateRepresentation
|
|
895
|
+
*/
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Specify either an object described by the template type `O` or a function.
|
|
899
|
+
*
|
|
900
|
+
* The function takes a string value (usually the link's href attribute), the
|
|
901
|
+
* link type (`'url'`, `'hashtag`', etc.) and an internal token representation
|
|
902
|
+
* of the link. It should return an object of the template type `O`
|
|
903
|
+
* @template O
|
|
904
|
+
* @typedef {O | ((value: string, type: string, token: MultiToken) => O)} OptObj
|
|
905
|
+
*/
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Specify either a function described by template type `F` or an object.
|
|
909
|
+
*
|
|
910
|
+
* Each key in the object should be a link type (`'url'`, `'hashtag`', etc.). Each
|
|
911
|
+
* value should be a function with template type `F` that is called when the
|
|
912
|
+
* corresponding link type is encountered.
|
|
913
|
+
* @template F
|
|
914
|
+
* @typedef {F | { [type: string]: F}} OptFn
|
|
915
|
+
*/
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Specify either a value with template type `V`, a function that returns `V` or
|
|
919
|
+
* an object where each value resolves to `V`.
|
|
920
|
+
*
|
|
921
|
+
* The function takes a string value (usually the link's href attribute), the
|
|
922
|
+
* link type (`'url'`, `'hashtag`', etc.) and an internal token representation
|
|
923
|
+
* of the link. It should return an object of the template type `V`
|
|
924
|
+
*
|
|
925
|
+
* For the object, each key should be a link type (`'url'`, `'hashtag`', etc.).
|
|
926
|
+
* Each value should either have type `V` or a function that returns V. This
|
|
927
|
+
* function similarly takes a string value and a token.
|
|
928
|
+
*
|
|
929
|
+
* Example valid types for `Opt<string>`:
|
|
930
|
+
*
|
|
931
|
+
* ```js
|
|
932
|
+
* 'hello'
|
|
933
|
+
* (value, type, token) => 'world'
|
|
934
|
+
* { url: 'hello', email: (value, token) => 'world'}
|
|
935
|
+
* ```
|
|
936
|
+
* @template V
|
|
937
|
+
* @typedef {V | ((value: string, type: string, token: MultiToken) => V) | { [type: string]: V | ((value: string, token: MultiToken) => V) }} Opt
|
|
938
|
+
*/
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* See available options: https://linkify.js.org/docs/options.html
|
|
942
|
+
* @typedef {{
|
|
943
|
+
* defaultProtocol?: string,
|
|
944
|
+
* events?: OptObj<EventListeners>,
|
|
945
|
+
* format?: Opt<string>,
|
|
946
|
+
* formatHref?: Opt<string>,
|
|
947
|
+
* nl2br?: boolean,
|
|
948
|
+
* tagName?: Opt<any>,
|
|
949
|
+
* target?: Opt<string>,
|
|
950
|
+
* rel?: Opt<string>,
|
|
951
|
+
* validate?: Opt<boolean>,
|
|
952
|
+
* truncate?: Opt<number>,
|
|
953
|
+
* className?: Opt<string>,
|
|
954
|
+
* attributes?: OptObj<({ [attr: string]: any })>,
|
|
955
|
+
* ignoreTags?: string[],
|
|
956
|
+
* render?: OptFn<((ir: IntermediateRepresentation) => any)>
|
|
957
|
+
* }} Opts
|
|
958
|
+
*/
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* @type Required<Opts>
|
|
962
|
+
*/
|
|
963
|
+
const defaults = {
|
|
964
|
+
defaultProtocol: 'http',
|
|
965
|
+
events: null,
|
|
966
|
+
format: noop,
|
|
967
|
+
formatHref: noop,
|
|
968
|
+
nl2br: false,
|
|
969
|
+
tagName: 'a',
|
|
970
|
+
target: null,
|
|
971
|
+
rel: null,
|
|
972
|
+
validate: true,
|
|
973
|
+
truncate: Infinity,
|
|
974
|
+
className: null,
|
|
975
|
+
attributes: null,
|
|
976
|
+
ignoreTags: [],
|
|
977
|
+
render: null
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Utility class for linkify interfaces to apply specified
|
|
982
|
+
* {@link Opts formatting and rendering options}.
|
|
983
|
+
*
|
|
984
|
+
* @param {Opts | Options} [opts] Option value overrides.
|
|
985
|
+
* @param {(ir: IntermediateRepresentation) => any} [defaultRender] (For
|
|
986
|
+
* internal use) default render function that determines how to generate an
|
|
987
|
+
* HTML element based on a link token's derived tagName, attributes and HTML.
|
|
988
|
+
* Similar to render option
|
|
989
|
+
*/
|
|
990
|
+
function Options(opts, defaultRender = null) {
|
|
991
|
+
let o = Object.assign({}, defaults);
|
|
992
|
+
if (opts) {
|
|
993
|
+
o = Object.assign(o, opts instanceof Options ? opts.o : opts);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
// Ensure all ignored tags are uppercase
|
|
997
|
+
const ignoredTags = o.ignoreTags;
|
|
998
|
+
const uppercaseIgnoredTags = [];
|
|
999
|
+
for (let i = 0; i < ignoredTags.length; i++) {
|
|
1000
|
+
uppercaseIgnoredTags.push(ignoredTags[i].toUpperCase());
|
|
1001
|
+
}
|
|
1002
|
+
/** @protected */
|
|
1003
|
+
this.o = o;
|
|
1004
|
+
if (defaultRender) {
|
|
1005
|
+
this.defaultRender = defaultRender;
|
|
1006
|
+
}
|
|
1007
|
+
this.ignoreTags = uppercaseIgnoredTags;
|
|
1008
|
+
}
|
|
1009
|
+
Options.prototype = {
|
|
1010
|
+
o: defaults,
|
|
1011
|
+
/**
|
|
1012
|
+
* @type string[]
|
|
1013
|
+
*/
|
|
1014
|
+
ignoreTags: [],
|
|
1015
|
+
/**
|
|
1016
|
+
* @param {IntermediateRepresentation} ir
|
|
1017
|
+
* @returns {any}
|
|
1018
|
+
*/
|
|
1019
|
+
defaultRender(ir) {
|
|
1020
|
+
return ir;
|
|
1021
|
+
},
|
|
1022
|
+
/**
|
|
1023
|
+
* Returns true or false based on whether a token should be displayed as a
|
|
1024
|
+
* link based on the user options.
|
|
1025
|
+
* @param {MultiToken} token
|
|
1026
|
+
* @returns {boolean}
|
|
1027
|
+
*/
|
|
1028
|
+
check(token) {
|
|
1029
|
+
return this.get('validate', token.toString(), token);
|
|
1030
|
+
},
|
|
1031
|
+
// Private methods
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Resolve an option's value based on the value of the option and the given
|
|
1035
|
+
* params. If operator and token are specified and the target option is
|
|
1036
|
+
* callable, automatically calls the function with the given argument.
|
|
1037
|
+
* @template {keyof Opts} K
|
|
1038
|
+
* @param {K} key Name of option to use
|
|
1039
|
+
* @param {string} [operator] will be passed to the target option if it's a
|
|
1040
|
+
* function. If not specified, RAW function value gets returned
|
|
1041
|
+
* @param {MultiToken} [token] The token from linkify.tokenize
|
|
1042
|
+
* @returns {Opts[K] | any}
|
|
1043
|
+
*/
|
|
1044
|
+
get(key, operator, token) {
|
|
1045
|
+
const isCallable = operator != null;
|
|
1046
|
+
let option = this.o[key];
|
|
1047
|
+
if (!option) {
|
|
1048
|
+
return option;
|
|
1049
|
+
}
|
|
1050
|
+
if (typeof option === 'object') {
|
|
1051
|
+
option = token.t in option ? option[token.t] : defaults[key];
|
|
1052
|
+
if (typeof option === 'function' && isCallable) {
|
|
1053
|
+
option = option(operator, token);
|
|
1054
|
+
}
|
|
1055
|
+
} else if (typeof option === 'function' && isCallable) {
|
|
1056
|
+
option = option(operator, token.t, token);
|
|
1057
|
+
}
|
|
1058
|
+
return option;
|
|
1059
|
+
},
|
|
1060
|
+
/**
|
|
1061
|
+
* @template {keyof Opts} L
|
|
1062
|
+
* @param {L} key Name of options object to use
|
|
1063
|
+
* @param {string} [operator]
|
|
1064
|
+
* @param {MultiToken} [token]
|
|
1065
|
+
* @returns {Opts[L] | any}
|
|
1066
|
+
*/
|
|
1067
|
+
getObj(key, operator, token) {
|
|
1068
|
+
let obj = this.o[key];
|
|
1069
|
+
if (typeof obj === 'function' && operator != null) {
|
|
1070
|
+
obj = obj(operator, token.t, token);
|
|
1071
|
+
}
|
|
1072
|
+
return obj;
|
|
1073
|
+
},
|
|
1074
|
+
/**
|
|
1075
|
+
* Convert the given token to a rendered element that may be added to the
|
|
1076
|
+
* calling-interface's DOM
|
|
1077
|
+
* @param {MultiToken} token Token to render to an HTML element
|
|
1078
|
+
* @returns {any} Render result; e.g., HTML string, DOM element, React
|
|
1079
|
+
* Component, etc.
|
|
1080
|
+
*/
|
|
1081
|
+
render(token) {
|
|
1082
|
+
const ir = token.render(this); // intermediate representation
|
|
1083
|
+
const renderFn = this.get('render', null, token) || this.defaultRender;
|
|
1084
|
+
return renderFn(ir, token.t, token);
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
function noop(val) {
|
|
1088
|
+
return val;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
/******************************************************************************
|
|
1092
|
+
Multi-Tokens
|
|
1093
|
+
Tokens composed of arrays of TextTokens
|
|
1094
|
+
******************************************************************************/
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* @param {string} value
|
|
1098
|
+
* @param {Token[]} tokens
|
|
1099
|
+
*/
|
|
1100
|
+
function MultiToken(value, tokens) {
|
|
1101
|
+
this.t = 'token';
|
|
1102
|
+
this.v = value;
|
|
1103
|
+
this.tk = tokens;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Abstract class used for manufacturing tokens of text tokens. That is rather
|
|
1108
|
+
* than the value for a token being a small string of text, it's value an array
|
|
1109
|
+
* of text tokens.
|
|
1110
|
+
*
|
|
1111
|
+
* Used for grouping together URLs, emails, hashtags, and other potential
|
|
1112
|
+
* creations.
|
|
1113
|
+
* @class MultiToken
|
|
1114
|
+
* @property {string} t
|
|
1115
|
+
* @property {string} v
|
|
1116
|
+
* @property {Token[]} tk
|
|
1117
|
+
* @abstract
|
|
1118
|
+
*/
|
|
1119
|
+
MultiToken.prototype = {
|
|
1120
|
+
isLink: false,
|
|
1121
|
+
/**
|
|
1122
|
+
* Return the string this token represents.
|
|
1123
|
+
* @return {string}
|
|
1124
|
+
*/
|
|
1125
|
+
toString() {
|
|
1126
|
+
return this.v;
|
|
1127
|
+
},
|
|
1128
|
+
/**
|
|
1129
|
+
* What should the value for this token be in the `href` HTML attribute?
|
|
1130
|
+
* Returns the `.toString` value by default.
|
|
1131
|
+
* @param {string} [scheme]
|
|
1132
|
+
* @return {string}
|
|
1133
|
+
*/
|
|
1134
|
+
toHref(scheme) {
|
|
1135
|
+
return this.toString();
|
|
1136
|
+
},
|
|
1137
|
+
/**
|
|
1138
|
+
* @param {Options} options Formatting options
|
|
1139
|
+
* @returns {string}
|
|
1140
|
+
*/
|
|
1141
|
+
toFormattedString(options) {
|
|
1142
|
+
const val = this.toString();
|
|
1143
|
+
const truncate = options.get('truncate', val, this);
|
|
1144
|
+
const formatted = options.get('format', val, this);
|
|
1145
|
+
return truncate && formatted.length > truncate ? formatted.substring(0, truncate) + '…' : formatted;
|
|
1146
|
+
},
|
|
1147
|
+
/**
|
|
1148
|
+
*
|
|
1149
|
+
* @param {Options} options
|
|
1150
|
+
* @returns {string}
|
|
1151
|
+
*/
|
|
1152
|
+
toFormattedHref(options) {
|
|
1153
|
+
return options.get('formatHref', this.toHref(options.get('defaultProtocol')), this);
|
|
1154
|
+
},
|
|
1155
|
+
/**
|
|
1156
|
+
* The start index of this token in the original input string
|
|
1157
|
+
* @returns {number}
|
|
1158
|
+
*/
|
|
1159
|
+
startIndex() {
|
|
1160
|
+
return this.tk[0].s;
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* The end index of this token in the original input string (up to this
|
|
1164
|
+
* index but not including it)
|
|
1165
|
+
* @returns {number}
|
|
1166
|
+
*/
|
|
1167
|
+
endIndex() {
|
|
1168
|
+
return this.tk[this.tk.length - 1].e;
|
|
1169
|
+
},
|
|
1170
|
+
/**
|
|
1171
|
+
Returns an object of relevant values for this token, which includes keys
|
|
1172
|
+
* type - Kind of token ('url', 'email', etc.)
|
|
1173
|
+
* value - Original text
|
|
1174
|
+
* href - The value that should be added to the anchor tag's href
|
|
1175
|
+
attribute
|
|
1176
|
+
@method toObject
|
|
1177
|
+
@param {string} [protocol] `'http'` by default
|
|
1178
|
+
*/
|
|
1179
|
+
toObject(protocol = defaults.defaultProtocol) {
|
|
1180
|
+
return {
|
|
1181
|
+
type: this.t,
|
|
1182
|
+
value: this.toString(),
|
|
1183
|
+
isLink: this.isLink,
|
|
1184
|
+
href: this.toHref(protocol),
|
|
1185
|
+
start: this.startIndex(),
|
|
1186
|
+
end: this.endIndex()
|
|
1187
|
+
};
|
|
1188
|
+
},
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @param {Options} options Formatting option
|
|
1192
|
+
*/
|
|
1193
|
+
toFormattedObject(options) {
|
|
1194
|
+
return {
|
|
1195
|
+
type: this.t,
|
|
1196
|
+
value: this.toFormattedString(options),
|
|
1197
|
+
isLink: this.isLink,
|
|
1198
|
+
href: this.toFormattedHref(options),
|
|
1199
|
+
start: this.startIndex(),
|
|
1200
|
+
end: this.endIndex()
|
|
1201
|
+
};
|
|
1202
|
+
},
|
|
1203
|
+
/**
|
|
1204
|
+
* Whether this token should be rendered as a link according to the given options
|
|
1205
|
+
* @param {Options} options
|
|
1206
|
+
* @returns {boolean}
|
|
1207
|
+
*/
|
|
1208
|
+
validate(options) {
|
|
1209
|
+
return options.get('validate', this.toString(), this);
|
|
1210
|
+
},
|
|
1211
|
+
/**
|
|
1212
|
+
* Return an object that represents how this link should be rendered.
|
|
1213
|
+
* @param {Options} options Formattinng options
|
|
1214
|
+
*/
|
|
1215
|
+
render(options) {
|
|
1216
|
+
const token = this;
|
|
1217
|
+
const href = this.toHref(options.get('defaultProtocol'));
|
|
1218
|
+
const formattedHref = options.get('formatHref', href, this);
|
|
1219
|
+
const tagName = options.get('tagName', href, token);
|
|
1220
|
+
const content = this.toFormattedString(options);
|
|
1221
|
+
const attributes = {};
|
|
1222
|
+
const className = options.get('className', href, token);
|
|
1223
|
+
const target = options.get('target', href, token);
|
|
1224
|
+
const rel = options.get('rel', href, token);
|
|
1225
|
+
const attrs = options.getObj('attributes', href, token);
|
|
1226
|
+
const eventListeners = options.getObj('events', href, token);
|
|
1227
|
+
attributes.href = formattedHref;
|
|
1228
|
+
if (className) {
|
|
1229
|
+
attributes.class = className;
|
|
1230
|
+
}
|
|
1231
|
+
if (target) {
|
|
1232
|
+
attributes.target = target;
|
|
1233
|
+
}
|
|
1234
|
+
if (rel) {
|
|
1235
|
+
attributes.rel = rel;
|
|
1236
|
+
}
|
|
1237
|
+
if (attrs) {
|
|
1238
|
+
Object.assign(attributes, attrs);
|
|
1239
|
+
}
|
|
1240
|
+
return {
|
|
1241
|
+
tagName,
|
|
1242
|
+
attributes,
|
|
1243
|
+
content,
|
|
1244
|
+
eventListeners
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Create a new token that can be emitted by the parser state machine
|
|
1251
|
+
* @param {string} type readable type of the token
|
|
1252
|
+
* @param {object} props properties to assign or override, including isLink = true or false
|
|
1253
|
+
* @returns {new (value: string, tokens: Token[]) => MultiToken} new token class
|
|
1254
|
+
*/
|
|
1255
|
+
function createTokenClass(type, props) {
|
|
1256
|
+
class Token extends MultiToken {
|
|
1257
|
+
constructor(value, tokens) {
|
|
1258
|
+
super(value, tokens);
|
|
1259
|
+
this.t = type;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
for (const p in props) {
|
|
1263
|
+
Token.prototype[p] = props[p];
|
|
1264
|
+
}
|
|
1265
|
+
Token.t = type;
|
|
1266
|
+
return Token;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
Represents a list of tokens making up a valid email address
|
|
1271
|
+
*/
|
|
1272
|
+
const Email = createTokenClass('email', {
|
|
1273
|
+
isLink: true,
|
|
1274
|
+
toHref() {
|
|
1275
|
+
return 'mailto:' + this.toString();
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
Represents some plain text
|
|
1281
|
+
*/
|
|
1282
|
+
const Text = createTokenClass('text');
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
Multi-linebreak token - represents a line break
|
|
1286
|
+
@class Nl
|
|
1287
|
+
*/
|
|
1288
|
+
const Nl = createTokenClass('nl');
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
Represents a list of text tokens making up a valid URL
|
|
1292
|
+
@class Url
|
|
1293
|
+
*/
|
|
1294
|
+
const Url = createTokenClass('url', {
|
|
1295
|
+
isLink: true,
|
|
1296
|
+
/**
|
|
1297
|
+
Lowercases relevant parts of the domain and adds the protocol if
|
|
1298
|
+
required. Note that this will not escape unsafe HTML characters in the
|
|
1299
|
+
URL.
|
|
1300
|
+
@param {string} [scheme] default scheme (e.g., 'https')
|
|
1301
|
+
@return {string} the full href
|
|
1302
|
+
*/
|
|
1303
|
+
toHref(scheme = defaults.defaultProtocol) {
|
|
1304
|
+
// Check if already has a prefix scheme
|
|
1305
|
+
return this.hasProtocol() ? this.v : `${scheme}://${this.v}`;
|
|
1306
|
+
},
|
|
1307
|
+
/**
|
|
1308
|
+
* Check whether this URL token has a protocol
|
|
1309
|
+
* @return {boolean}
|
|
1310
|
+
*/
|
|
1311
|
+
hasProtocol() {
|
|
1312
|
+
const tokens = this.tk;
|
|
1313
|
+
return tokens.length >= 2 && tokens[0].t !== LOCALHOST && tokens[1].t === COLON;
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
Not exactly parser, more like the second-stage scanner (although we can
|
|
1319
|
+
theoretically hotswap the code here with a real parser in the future... but
|
|
1320
|
+
for a little URL-finding utility abstract syntax trees may be a little
|
|
1321
|
+
overkill).
|
|
1322
|
+
|
|
1323
|
+
URL format: http://en.wikipedia.org/wiki/URI_scheme
|
|
1324
|
+
Email format: http://en.wikipedia.org/wiki/EmailAddress (links to RFC in
|
|
1325
|
+
reference)
|
|
1326
|
+
|
|
1327
|
+
@module linkify
|
|
1328
|
+
@submodule parser
|
|
1329
|
+
@main run
|
|
1330
|
+
*/
|
|
1331
|
+
|
|
1332
|
+
const makeState = arg => new State(arg);
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Generate the parser multi token-based state machine
|
|
1336
|
+
* @param {{ groups: Collections<string> }} tokens
|
|
1337
|
+
*/
|
|
1338
|
+
function init$1({
|
|
1339
|
+
groups
|
|
1340
|
+
}) {
|
|
1341
|
+
// Types of characters the URL can definitely end in
|
|
1342
|
+
const qsAccepting = groups.domain.concat([AMPERSAND, ASTERISK, AT, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, NUM, PERCENT, PIPE, PLUS, POUND, SLASH, SYM, TILDE, UNDERSCORE]);
|
|
1343
|
+
|
|
1344
|
+
// Types of tokens that can follow a URL and be part of the query string
|
|
1345
|
+
// but cannot be the very last characters
|
|
1346
|
+
// Characters that cannot appear in the URL at all should be excluded
|
|
1347
|
+
const qsNonAccepting = [APOSTROPHE, COLON, COMMA, DOT, EXCLAMATION, PERCENT, QUERY, QUOTE, SEMI, OPENANGLEBRACKET, CLOSEANGLEBRACKET, OPENBRACE, CLOSEBRACE, CLOSEBRACKET, OPENBRACKET, OPENPAREN, CLOSEPAREN, FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN, LEFTCORNERBRACKET, RIGHTCORNERBRACKET, LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET, FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN];
|
|
1348
|
+
|
|
1349
|
+
// For addresses without the mailto prefix
|
|
1350
|
+
// Tokens allowed in the localpart of the email
|
|
1351
|
+
const localpartAccepting = [AMPERSAND, APOSTROPHE, ASTERISK, BACKSLASH, BACKTICK, CARET, DOLLAR, EQUALS, HYPHEN, OPENBRACE, CLOSEBRACE, PERCENT, PIPE, PLUS, POUND, QUERY, SLASH, SYM, TILDE, UNDERSCORE];
|
|
1352
|
+
|
|
1353
|
+
// The universal starting state.
|
|
1354
|
+
/**
|
|
1355
|
+
* @type State<Token>
|
|
1356
|
+
*/
|
|
1357
|
+
const Start = makeState();
|
|
1358
|
+
const Localpart = tt(Start, TILDE); // Local part of the email address
|
|
1359
|
+
ta(Localpart, localpartAccepting, Localpart);
|
|
1360
|
+
ta(Localpart, groups.domain, Localpart);
|
|
1361
|
+
const Domain = makeState(),
|
|
1362
|
+
Scheme = makeState(),
|
|
1363
|
+
SlashScheme = makeState();
|
|
1364
|
+
ta(Start, groups.domain, Domain); // parsed string ends with a potential domain name (A)
|
|
1365
|
+
ta(Start, groups.scheme, Scheme); // e.g., 'mailto'
|
|
1366
|
+
ta(Start, groups.slashscheme, SlashScheme); // e.g., 'http'
|
|
1367
|
+
|
|
1368
|
+
ta(Domain, localpartAccepting, Localpart);
|
|
1369
|
+
ta(Domain, groups.domain, Domain);
|
|
1370
|
+
const LocalpartAt = tt(Domain, AT); // Local part of the email address plus @
|
|
1371
|
+
|
|
1372
|
+
tt(Localpart, AT, LocalpartAt); // close to an email address now
|
|
1373
|
+
|
|
1374
|
+
// Local part of an email address can be e.g. 'http' or 'mailto'
|
|
1375
|
+
tt(Scheme, AT, LocalpartAt);
|
|
1376
|
+
tt(SlashScheme, AT, LocalpartAt);
|
|
1377
|
+
const LocalpartDot = tt(Localpart, DOT); // Local part of the email address plus '.' (localpart cannot end in .)
|
|
1378
|
+
ta(LocalpartDot, localpartAccepting, Localpart);
|
|
1379
|
+
ta(LocalpartDot, groups.domain, Localpart);
|
|
1380
|
+
const EmailDomain = makeState();
|
|
1381
|
+
ta(LocalpartAt, groups.domain, EmailDomain); // parsed string starts with local email info + @ with a potential domain name
|
|
1382
|
+
ta(EmailDomain, groups.domain, EmailDomain);
|
|
1383
|
+
const EmailDomainDot = tt(EmailDomain, DOT); // domain followed by DOT
|
|
1384
|
+
ta(EmailDomainDot, groups.domain, EmailDomain);
|
|
1385
|
+
const Email$1 = makeState(Email); // Possible email address (could have more tlds)
|
|
1386
|
+
ta(EmailDomainDot, groups.tld, Email$1);
|
|
1387
|
+
ta(EmailDomainDot, groups.utld, Email$1);
|
|
1388
|
+
tt(LocalpartAt, LOCALHOST, Email$1);
|
|
1389
|
+
|
|
1390
|
+
// Hyphen can jump back to a domain name
|
|
1391
|
+
const EmailDomainHyphen = tt(EmailDomain, HYPHEN); // parsed string starts with local email info + @ with a potential domain name
|
|
1392
|
+
tt(EmailDomainHyphen, HYPHEN, EmailDomainHyphen);
|
|
1393
|
+
ta(EmailDomainHyphen, groups.domain, EmailDomain);
|
|
1394
|
+
ta(Email$1, groups.domain, EmailDomain);
|
|
1395
|
+
tt(Email$1, DOT, EmailDomainDot);
|
|
1396
|
+
tt(Email$1, HYPHEN, EmailDomainHyphen);
|
|
1397
|
+
|
|
1398
|
+
// Final possible email states
|
|
1399
|
+
const EmailColon = tt(Email$1, COLON); // URL followed by colon (potential port number here)
|
|
1400
|
+
/*const EmailColonPort = */
|
|
1401
|
+
ta(EmailColon, groups.numeric, Email); // URL followed by colon and port number
|
|
1402
|
+
|
|
1403
|
+
// Account for dots and hyphens. Hyphens are usually parts of domain names
|
|
1404
|
+
// (but not TLDs)
|
|
1405
|
+
const DomainHyphen = tt(Domain, HYPHEN); // domain followed by hyphen
|
|
1406
|
+
const DomainDot = tt(Domain, DOT); // domain followed by DOT
|
|
1407
|
+
tt(DomainHyphen, HYPHEN, DomainHyphen);
|
|
1408
|
+
ta(DomainHyphen, groups.domain, Domain);
|
|
1409
|
+
ta(DomainDot, localpartAccepting, Localpart);
|
|
1410
|
+
ta(DomainDot, groups.domain, Domain);
|
|
1411
|
+
const DomainDotTld = makeState(Url); // Simplest possible URL with no query string
|
|
1412
|
+
ta(DomainDot, groups.tld, DomainDotTld);
|
|
1413
|
+
ta(DomainDot, groups.utld, DomainDotTld);
|
|
1414
|
+
ta(DomainDotTld, groups.domain, Domain);
|
|
1415
|
+
ta(DomainDotTld, localpartAccepting, Localpart);
|
|
1416
|
+
tt(DomainDotTld, DOT, DomainDot);
|
|
1417
|
+
tt(DomainDotTld, HYPHEN, DomainHyphen);
|
|
1418
|
+
tt(DomainDotTld, AT, LocalpartAt);
|
|
1419
|
+
const DomainDotTldColon = tt(DomainDotTld, COLON); // URL followed by colon (potential port number here)
|
|
1420
|
+
const DomainDotTldColonPort = makeState(Url); // TLD followed by a port number
|
|
1421
|
+
ta(DomainDotTldColon, groups.numeric, DomainDotTldColonPort);
|
|
1422
|
+
|
|
1423
|
+
// Long URL with optional port and maybe query string
|
|
1424
|
+
const Url$1 = makeState(Url);
|
|
1425
|
+
|
|
1426
|
+
// URL with extra symbols at the end, followed by an opening bracket
|
|
1427
|
+
const UrlNonaccept = makeState(); // URL followed by some symbols (will not be part of the final URL)
|
|
1428
|
+
|
|
1429
|
+
// Query strings
|
|
1430
|
+
ta(Url$1, qsAccepting, Url$1);
|
|
1431
|
+
ta(Url$1, qsNonAccepting, UrlNonaccept);
|
|
1432
|
+
ta(UrlNonaccept, qsAccepting, Url$1);
|
|
1433
|
+
ta(UrlNonaccept, qsNonAccepting, UrlNonaccept);
|
|
1434
|
+
|
|
1435
|
+
// Become real URLs after `SLASH` or `COLON NUM SLASH`
|
|
1436
|
+
// Here works with or without scheme:// prefix
|
|
1437
|
+
tt(DomainDotTld, SLASH, Url$1);
|
|
1438
|
+
tt(DomainDotTldColonPort, SLASH, Url$1);
|
|
1439
|
+
|
|
1440
|
+
// Note that domains that begin with schemes are treated slighly differently
|
|
1441
|
+
const SchemeColon = tt(Scheme, COLON); // e.g., 'mailto:'
|
|
1442
|
+
const SlashSchemeColon = tt(SlashScheme, COLON); // e.g., 'http:'
|
|
1443
|
+
const SlashSchemeColonSlash = tt(SlashSchemeColon, SLASH); // e.g., 'http:/'
|
|
1444
|
+
|
|
1445
|
+
const UriPrefix = tt(SlashSchemeColonSlash, SLASH); // e.g., 'http://'
|
|
1446
|
+
|
|
1447
|
+
// Scheme states can transition to domain states
|
|
1448
|
+
ta(Scheme, groups.domain, Domain);
|
|
1449
|
+
tt(Scheme, DOT, DomainDot);
|
|
1450
|
+
tt(Scheme, HYPHEN, DomainHyphen);
|
|
1451
|
+
ta(SlashScheme, groups.domain, Domain);
|
|
1452
|
+
tt(SlashScheme, DOT, DomainDot);
|
|
1453
|
+
tt(SlashScheme, HYPHEN, DomainHyphen);
|
|
1454
|
+
|
|
1455
|
+
// Force URL with scheme prefix followed by anything sane
|
|
1456
|
+
ta(SchemeColon, groups.domain, Url$1);
|
|
1457
|
+
tt(SchemeColon, SLASH, Url$1);
|
|
1458
|
+
tt(SchemeColon, QUERY, Url$1);
|
|
1459
|
+
ta(UriPrefix, groups.domain, Url$1);
|
|
1460
|
+
ta(UriPrefix, qsAccepting, Url$1);
|
|
1461
|
+
tt(UriPrefix, SLASH, Url$1);
|
|
1462
|
+
const bracketPairs = [[OPENBRACE, CLOSEBRACE],
|
|
1463
|
+
// {}
|
|
1464
|
+
[OPENBRACKET, CLOSEBRACKET],
|
|
1465
|
+
// []
|
|
1466
|
+
[OPENPAREN, CLOSEPAREN],
|
|
1467
|
+
// ()
|
|
1468
|
+
[OPENANGLEBRACKET, CLOSEANGLEBRACKET],
|
|
1469
|
+
// <>
|
|
1470
|
+
[FULLWIDTHLEFTPAREN, FULLWIDTHRIGHTPAREN],
|
|
1471
|
+
// ()
|
|
1472
|
+
[LEFTCORNERBRACKET, RIGHTCORNERBRACKET],
|
|
1473
|
+
// 「」
|
|
1474
|
+
[LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET],
|
|
1475
|
+
// 『』
|
|
1476
|
+
[FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN] // <>
|
|
1477
|
+
];
|
|
1478
|
+
for (let i = 0; i < bracketPairs.length; i++) {
|
|
1479
|
+
const [OPEN, CLOSE] = bracketPairs[i];
|
|
1480
|
+
const UrlOpen = tt(Url$1, OPEN); // URL followed by open bracket
|
|
1481
|
+
|
|
1482
|
+
// Continue not accepting for open brackets
|
|
1483
|
+
tt(UrlNonaccept, OPEN, UrlOpen);
|
|
1484
|
+
|
|
1485
|
+
// Closing bracket component. This character WILL be included in the URL
|
|
1486
|
+
tt(UrlOpen, CLOSE, Url$1);
|
|
1487
|
+
|
|
1488
|
+
// URL that beings with an opening bracket, followed by a symbols.
|
|
1489
|
+
// Note that the final state can still be `UrlOpen` (if the URL has a
|
|
1490
|
+
// single opening bracket for some reason).
|
|
1491
|
+
const UrlOpenQ = makeState(Url);
|
|
1492
|
+
ta(UrlOpen, qsAccepting, UrlOpenQ);
|
|
1493
|
+
const UrlOpenSyms = makeState(); // UrlOpen followed by some symbols it cannot end it
|
|
1494
|
+
ta(UrlOpen, qsNonAccepting);
|
|
1495
|
+
|
|
1496
|
+
// URL that begins with an opening bracket, followed by some symbols
|
|
1497
|
+
ta(UrlOpenQ, qsAccepting, UrlOpenQ);
|
|
1498
|
+
ta(UrlOpenQ, qsNonAccepting, UrlOpenSyms);
|
|
1499
|
+
ta(UrlOpenSyms, qsAccepting, UrlOpenQ);
|
|
1500
|
+
ta(UrlOpenSyms, qsNonAccepting, UrlOpenSyms);
|
|
1501
|
+
|
|
1502
|
+
// Close brace/bracket to become regular URL
|
|
1503
|
+
tt(UrlOpenQ, CLOSE, Url$1);
|
|
1504
|
+
tt(UrlOpenSyms, CLOSE, Url$1);
|
|
1505
|
+
}
|
|
1506
|
+
tt(Start, LOCALHOST, DomainDotTld); // localhost is a valid URL state
|
|
1507
|
+
tt(Start, NL, Nl); // single new line
|
|
1508
|
+
|
|
1509
|
+
return {
|
|
1510
|
+
start: Start,
|
|
1511
|
+
tokens: tk
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* Run the parser state machine on a list of scanned string-based tokens to
|
|
1517
|
+
* create a list of multi tokens, each of which represents a URL, email address,
|
|
1518
|
+
* plain text, etc.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {State<MultiToken>} start parser start state
|
|
1521
|
+
* @param {string} input the original input used to generate the given tokens
|
|
1522
|
+
* @param {Token[]} tokens list of scanned tokens
|
|
1523
|
+
* @returns {MultiToken[]}
|
|
1524
|
+
*/
|
|
1525
|
+
function run(start, input, tokens) {
|
|
1526
|
+
let len = tokens.length;
|
|
1527
|
+
let cursor = 0;
|
|
1528
|
+
let multis = [];
|
|
1529
|
+
let textTokens = [];
|
|
1530
|
+
while (cursor < len) {
|
|
1531
|
+
let state = start;
|
|
1532
|
+
let secondState = null;
|
|
1533
|
+
let nextState = null;
|
|
1534
|
+
let multiLength = 0;
|
|
1535
|
+
let latestAccepting = null;
|
|
1536
|
+
let sinceAccepts = -1;
|
|
1537
|
+
while (cursor < len && !(secondState = state.go(tokens[cursor].t))) {
|
|
1538
|
+
// Starting tokens with nowhere to jump to.
|
|
1539
|
+
// Consider these to be just plain text
|
|
1540
|
+
textTokens.push(tokens[cursor++]);
|
|
1541
|
+
}
|
|
1542
|
+
while (cursor < len && (nextState = secondState || state.go(tokens[cursor].t))) {
|
|
1543
|
+
// Get the next state
|
|
1544
|
+
secondState = null;
|
|
1545
|
+
state = nextState;
|
|
1546
|
+
|
|
1547
|
+
// Keep track of the latest accepting state
|
|
1548
|
+
if (state.accepts()) {
|
|
1549
|
+
sinceAccepts = 0;
|
|
1550
|
+
latestAccepting = state;
|
|
1551
|
+
} else if (sinceAccepts >= 0) {
|
|
1552
|
+
sinceAccepts++;
|
|
1553
|
+
}
|
|
1554
|
+
cursor++;
|
|
1555
|
+
multiLength++;
|
|
1556
|
+
}
|
|
1557
|
+
if (sinceAccepts < 0) {
|
|
1558
|
+
// No accepting state was found, part of a regular text token add
|
|
1559
|
+
// the first text token to the text tokens array and try again from
|
|
1560
|
+
// the next
|
|
1561
|
+
cursor -= multiLength;
|
|
1562
|
+
if (cursor < len) {
|
|
1563
|
+
textTokens.push(tokens[cursor]);
|
|
1564
|
+
cursor++;
|
|
1565
|
+
}
|
|
1566
|
+
} else {
|
|
1567
|
+
// Accepting state!
|
|
1568
|
+
// First close off the textTokens (if available)
|
|
1569
|
+
if (textTokens.length > 0) {
|
|
1570
|
+
multis.push(initMultiToken(Text, input, textTokens));
|
|
1571
|
+
textTokens = [];
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
// Roll back to the latest accepting state
|
|
1575
|
+
cursor -= sinceAccepts;
|
|
1576
|
+
multiLength -= sinceAccepts;
|
|
1577
|
+
|
|
1578
|
+
// Create a new multitoken
|
|
1579
|
+
const Multi = latestAccepting.t;
|
|
1580
|
+
const subtokens = tokens.slice(cursor - multiLength, cursor);
|
|
1581
|
+
multis.push(initMultiToken(Multi, input, subtokens));
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
// Finally close off the textTokens (if available)
|
|
1586
|
+
if (textTokens.length > 0) {
|
|
1587
|
+
multis.push(initMultiToken(Text, input, textTokens));
|
|
1588
|
+
}
|
|
1589
|
+
return multis;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Utility function for instantiating a new multitoken with all the relevant
|
|
1594
|
+
* fields during parsing.
|
|
1595
|
+
* @param {new (value: string, tokens: Token[]) => MultiToken} Multi class to instantiate
|
|
1596
|
+
* @param {string} input original input string
|
|
1597
|
+
* @param {Token[]} tokens consecutive tokens scanned from input string
|
|
1598
|
+
* @returns {MultiToken}
|
|
1599
|
+
*/
|
|
1600
|
+
function initMultiToken(Multi, input, tokens) {
|
|
1601
|
+
const startIdx = tokens[0].s;
|
|
1602
|
+
const endIdx = tokens[tokens.length - 1].e;
|
|
1603
|
+
const value = input.slice(startIdx, endIdx);
|
|
1604
|
+
return new Multi(value, tokens);
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
const warn = typeof console !== 'undefined' && console && console.warn || (() => {});
|
|
1608
|
+
const warnAdvice = 'until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.';
|
|
1609
|
+
|
|
1610
|
+
// Side-effect initialization state
|
|
1611
|
+
const INIT = {
|
|
1612
|
+
scanner: null,
|
|
1613
|
+
parser: null,
|
|
1614
|
+
tokenQueue: [],
|
|
1615
|
+
pluginQueue: [],
|
|
1616
|
+
customSchemes: [],
|
|
1617
|
+
initialized: false
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* @typedef {{
|
|
1622
|
+
* start: State<string>,
|
|
1623
|
+
* tokens: { groups: Collections<string> } & typeof tk
|
|
1624
|
+
* }} ScannerInit
|
|
1625
|
+
*/
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* @typedef {{
|
|
1629
|
+
* start: State<MultiToken>,
|
|
1630
|
+
* tokens: typeof multi
|
|
1631
|
+
* }} ParserInit
|
|
1632
|
+
*/
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* @typedef {(arg: { scanner: ScannerInit }) => void} TokenPlugin
|
|
1636
|
+
*/
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* @typedef {(arg: { scanner: ScannerInit, parser: ParserInit }) => void} Plugin
|
|
1640
|
+
*/
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* De-register all plugins and reset the internal state-machine. Used for
|
|
1644
|
+
* testing; not required in practice.
|
|
1645
|
+
* @private
|
|
1646
|
+
*/
|
|
1647
|
+
function reset() {
|
|
1648
|
+
State.groups = {};
|
|
1649
|
+
INIT.scanner = null;
|
|
1650
|
+
INIT.parser = null;
|
|
1651
|
+
INIT.tokenQueue = [];
|
|
1652
|
+
INIT.pluginQueue = [];
|
|
1653
|
+
INIT.customSchemes = [];
|
|
1654
|
+
INIT.initialized = false;
|
|
1655
|
+
return INIT;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Detect URLs with the following additional protocol. Anything with format
|
|
1660
|
+
* "protocol://..." will be considered a link. If `optionalSlashSlash` is set to
|
|
1661
|
+
* `true`, anything with format "protocol:..." will be considered a link.
|
|
1662
|
+
* @param {string} scheme
|
|
1663
|
+
* @param {boolean} [optionalSlashSlash]
|
|
1664
|
+
*/
|
|
1665
|
+
function registerCustomProtocol(scheme, optionalSlashSlash = false) {
|
|
1666
|
+
if (INIT.initialized) {
|
|
1667
|
+
warn(`linkifyjs: already initialized - will not register custom scheme "${scheme}" ${warnAdvice}`);
|
|
1668
|
+
}
|
|
1669
|
+
if (!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(scheme)) {
|
|
1670
|
+
throw new Error(`linkifyjs: incorrect scheme format.
|
|
1671
|
+
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
1672
|
+
2. Cannot start or end with "-"
|
|
1673
|
+
3. "-" cannot repeat`);
|
|
1674
|
+
}
|
|
1675
|
+
INIT.customSchemes.push([scheme, optionalSlashSlash]);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Initialize the linkify state machine. Called automatically the first time
|
|
1680
|
+
* linkify is called on a string, but may be called manually as well.
|
|
1681
|
+
*/
|
|
1682
|
+
function init() {
|
|
1683
|
+
// Initialize scanner state machine and plugins
|
|
1684
|
+
INIT.scanner = init$2(INIT.customSchemes);
|
|
1685
|
+
for (let i = 0; i < INIT.tokenQueue.length; i++) {
|
|
1686
|
+
INIT.tokenQueue[i][1]({
|
|
1687
|
+
scanner: INIT.scanner
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
// Initialize parser state machine and plugins
|
|
1692
|
+
INIT.parser = init$1(INIT.scanner.tokens);
|
|
1693
|
+
for (let i = 0; i < INIT.pluginQueue.length; i++) {
|
|
1694
|
+
INIT.pluginQueue[i][1]({
|
|
1695
|
+
scanner: INIT.scanner,
|
|
1696
|
+
parser: INIT.parser
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
INIT.initialized = true;
|
|
1700
|
+
return INIT;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Parse a string into tokens that represent linkable and non-linkable sub-components
|
|
1705
|
+
* @param {string} str
|
|
1706
|
+
* @return {MultiToken[]} tokens
|
|
1707
|
+
*/
|
|
1708
|
+
function tokenize(str) {
|
|
1709
|
+
if (!INIT.initialized) {
|
|
1710
|
+
init();
|
|
1711
|
+
}
|
|
1712
|
+
return run(INIT.parser.start, str, run$1(INIT.scanner.start, str));
|
|
1713
|
+
}
|
|
1714
|
+
tokenize.scan = run$1; // for testing
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* Find a list of linkable items in the given string.
|
|
1718
|
+
* @param {string} str string to find links in
|
|
1719
|
+
* @param {string | Opts} [type] either formatting options or specific type of
|
|
1720
|
+
* links to find, e.g., 'url' or 'email'
|
|
1721
|
+
* @param {Opts} [opts] formatting options for final output. Cannot be specified
|
|
1722
|
+
* if opts already provided in `type` argument
|
|
1723
|
+
*/
|
|
1724
|
+
function find(str, type = null, opts = null) {
|
|
1725
|
+
if (type && typeof type === 'object') {
|
|
1726
|
+
if (opts) {
|
|
1727
|
+
throw Error(`linkifyjs: Invalid link type ${type}; must be a string`);
|
|
1728
|
+
}
|
|
1729
|
+
opts = type;
|
|
1730
|
+
type = null;
|
|
1731
|
+
}
|
|
1732
|
+
const options = new Options(opts);
|
|
1733
|
+
const tokens = tokenize(str);
|
|
1734
|
+
const filtered = [];
|
|
1735
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
1736
|
+
const token = tokens[i];
|
|
1737
|
+
if (token.isLink && (!type || token.t === type) && options.check(token)) {
|
|
1738
|
+
filtered.push(token.toFormattedObject(options));
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
return filtered;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
exports.MultiToken = MultiToken;
|
|
1745
|
+
exports.Options = Options;
|
|
1746
|
+
exports.State = State;
|
|
1747
|
+
exports.createTokenClass = createTokenClass;
|
|
1748
|
+
exports.find = find;
|
|
1749
|
+
exports.init = init;
|
|
1750
|
+
exports.registerCustomProtocol = registerCustomProtocol;
|
|
1751
|
+
exports.reset = reset;
|
|
1752
|
+
exports.stringToArray = stringToArray;
|
|
1753
|
+
exports.tokenize = tokenize;
|