xmlui 0.7.20 → 0.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/{apiInterceptorWorker-D3L7dpSV.mjs → apiInterceptorWorker-LRHkKnha.mjs} +1 -1
  2. package/dist/{grammar.tmLanguage-69iP6c5d.mjs → grammar.tmLanguage-DNepe_jP.mjs} +1 -1
  3. package/dist/index-5NLXyjX0.mjs +31055 -0
  4. package/dist/index.css +1 -1
  5. package/dist/scripts/bin/build-lib.js +1 -1
  6. package/dist/scripts/bin/index.js +2 -2
  7. package/dist/scripts/bin/start.js +23 -6
  8. package/dist/scripts/bin/viteConfig.js +1 -0
  9. package/dist/scripts/package.json +2 -1
  10. package/dist/scripts/src/abstractions/ExtensionDefs.js +2 -0
  11. package/dist/scripts/src/components/ComponentProvider.js +171 -148
  12. package/dist/scripts/src/components/FormItem/FormItemNative.js +1 -1
  13. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +33 -0
  14. package/dist/scripts/src/components/RawHtml/RawHtml.js +39 -0
  15. package/dist/scripts/src/components/RawHtml/RawHtmlNative.js +13 -0
  16. package/dist/scripts/src/components/Theme/ThemeNative.js +1 -1
  17. package/dist/scripts/src/components-core/LoaderComponent.js +1 -1
  18. package/dist/scripts/src/components-core/RestApiProxy.js +1 -1
  19. package/dist/scripts/src/components-core/StandaloneApp.js +19 -19
  20. package/dist/scripts/src/components-core/{StandaloneComponentManager.js → StandaloneExtensionManager.js} +6 -13
  21. package/dist/scripts/src/components-core/action/APICall.js +1 -1
  22. package/dist/scripts/src/components-core/loader/PageableLoader.js +4 -4
  23. package/dist/scripts/src/components-core/{AppRoot.js → rendering/AppContent.js} +60 -145
  24. package/dist/scripts/src/components-core/rendering/AppRoot.js +55 -0
  25. package/dist/scripts/src/components-core/rendering/AppWrapper.js +44 -0
  26. package/dist/scripts/src/components-core/{ComponentBed.js → rendering/ComponentAdapter.js} +8 -8
  27. package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +147 -0
  28. package/dist/scripts/src/components-core/rendering/Container.js +576 -0
  29. package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +82 -0
  30. package/dist/scripts/src/components-core/{ErrorBoundary.js → rendering/ErrorBoundary.js} +9 -3
  31. package/dist/scripts/src/components-core/rendering/StateContainer.js +331 -0
  32. package/dist/scripts/src/components-core/{container → rendering}/buildProxy.js +11 -7
  33. package/dist/scripts/src/components-core/{container → rendering}/collectFnVarDeps.js +2 -2
  34. package/dist/scripts/src/components-core/{container → rendering}/reducer.js +3 -0
  35. package/dist/scripts/src/components-core/rendering/renderChild.js +81 -0
  36. package/dist/scripts/src/index.js +3 -6
  37. package/dist/scripts/src/parsers/xmlui-parser/transform.js +193 -164
  38. package/dist/scripts/src/syntax/grammar.tmLanguage.json +1 -1
  39. package/dist/style.css +1 -1
  40. package/dist/xmlui-metadata.mjs +4216 -4232
  41. package/dist/xmlui-metadata.umd.js +16 -16
  42. package/dist/xmlui-standalone.umd.js +262 -290
  43. package/dist/xmlui.d.ts +36 -61
  44. package/dist/xmlui.mjs +1 -1
  45. package/package.json +2 -1
  46. package/dist/index-BYjaMGrD.mjs +0 -76804
  47. package/dist/scripts/src/components/BarChart/BarChart.js +0 -49
  48. package/dist/scripts/src/components/BarChart/BarChartNative.js +0 -176
  49. package/dist/scripts/src/components/Map/Map.js +0 -75
  50. package/dist/scripts/src/components/Map/world_countries.json +0 -45307
  51. package/dist/scripts/src/components/PieChart/PieChart.js +0 -45
  52. package/dist/scripts/src/components/PieChart/PieChartNative.js +0 -165
  53. package/dist/scripts/src/components/chart-color-schemes.js +0 -43
  54. package/dist/scripts/src/components-core/container/Container.js +0 -1186
  55. package/dist/scripts/src/components-core/container/ContainerComponentDef.js +0 -15
  56. /package/dist/scripts/src/components-core/{InvalidComponent.js → rendering/InvalidComponent.js} +0 -0
  57. /package/dist/scripts/src/components-core/{UnknownComponent.js → rendering/UnknownComponent.js} +0 -0
  58. /package/dist/scripts/src/components-core/{container → rendering}/valueExtractor.js +0 -0
@@ -1,12 +1,12 @@
1
- (function(Ee,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react"),require("react/jsx-runtime"),require("@remix-run/react"),require("lodash-es"),require("@eslint-community/regexpp")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","@remix-run/react","lodash-es","@eslint-community/regexpp"],Y):(Ee=typeof globalThis<"u"?globalThis:Ee||self,Y(Ee["xmlui-metadata"]={},Ee.React,Ee["react/jsx-runtime"],Ee.react,Ee.lodashEs,Ee.regexpp))})(this,function(Ee,Y,oe,Sr,xo,fo){"use strict";const Er={themeVars:`'{"width-Button": "var(--xmlui-width-Button)", "height-Button": "var(--xmlui-height-Button)", "padding-vertical-Button-xs": "var(--xmlui-padding-vertical-Button-xs)", "padding-horizontal-Button-xs": "var(--xmlui-padding-horizontal-Button-xs)", "padding-vertical-Button-sm": "var(--xmlui-padding-vertical-Button-sm)", "padding-horizontal-Button-sm": "var(--xmlui-padding-horizontal-Button-sm)", "padding-vertical-Button-md": "var(--xmlui-padding-vertical-Button-md)", "padding-horizontal-Button-md": "var(--xmlui-padding-horizontal-Button-md)", "padding-vertical-Button-lg": "var(--xmlui-padding-vertical-Button-lg)", "padding-horizontal-Button-lg": "var(--xmlui-padding-horizontal-Button-lg)", "font-family-Button-primary-solid": "var(--xmlui-font-family-Button-primary-solid)", "font-size-Button-primary-solid": "var(--xmlui-font-size-Button-primary-solid)", "font-weight-Button-primary-solid": "var(--xmlui-font-weight-Button-primary-solid)", "radius-Button-primary-solid": "var(--xmlui-radius-Button-primary-solid)", "thickness-border-Button-primary-solid": "var(--xmlui-thickness-border-Button-primary-solid)", "color-border-Button-primary-solid": "var(--xmlui-color-border-Button-primary-solid)", "style-border-Button-primary-solid": "var(--xmlui-style-border-Button-primary-solid)", "color-bg-Button-primary-solid": "var(--xmlui-color-bg-Button-primary-solid)", "color-text-Button-primary-solid": "var(--xmlui-color-text-Button-primary-solid)", "shadow-Button-primary-solid": "var(--xmlui-shadow-Button-primary-solid)", "thickness-outline-Button-primary-solid--focus": "var(--xmlui-thickness-outline-Button-primary-solid--focus)", "color-outline-Button-primary-solid--focus": "var(--xmlui-color-outline-Button-primary-solid--focus)", "style-outline-Button-primary-solid--focus": "var(--xmlui-style-outline-Button-primary-solid--focus)", "offset-outline-Button-primary-solid--focus": "var(--xmlui-offset-outline-Button-primary-solid--focus)", "color-border-Button-primary-solid--hover": "var(--xmlui-color-border-Button-primary-solid--hover)", "color-text-Button-primary-solid--hover": "var(--xmlui-color-text-Button-primary-solid--hover)", "color-bg-Button-primary-solid--hover": "var(--xmlui-color-bg-Button-primary-solid--hover)", "color-border-Button-primary-solid--active": "var(--xmlui-color-border-Button-primary-solid--active)", "color-text-Button-primary-solid--active": "var(--xmlui-color-text-Button-primary-solid--active)", "shadow-Button-primary-solid--active": "var(--xmlui-shadow-Button-primary-solid--active)", "color-bg-Button-primary-solid--active": "var(--xmlui-color-bg-Button-primary-solid--active)", "color-bg-Button--disabled": "var(--xmlui-color-bg-Button--disabled)", "color-text-Button--disabled": "var(--xmlui-color-text-Button--disabled)", "color-border-Button--disabled": "var(--xmlui-color-border-Button--disabled)", "font-family-Button-secondary-solid": "var(--xmlui-font-family-Button-secondary-solid)", "font-size-Button-secondary-solid": "var(--xmlui-font-size-Button-secondary-solid)", "font-weight-Button-secondary-solid": "var(--xmlui-font-weight-Button-secondary-solid)", "radius-Button-secondary-solid": "var(--xmlui-radius-Button-secondary-solid)", "thickness-border-Button-secondary-solid": "var(--xmlui-thickness-border-Button-secondary-solid)", "color-border-Button-secondary-solid": "var(--xmlui-color-border-Button-secondary-solid)", "style-border-Button-secondary-solid": "var(--xmlui-style-border-Button-secondary-solid)", "color-bg-Button-secondary-solid": "var(--xmlui-color-bg-Button-secondary-solid)", "color-text-Button-secondary-solid": "var(--xmlui-color-text-Button-secondary-solid)", "shadow-Button-secondary-solid": "var(--xmlui-shadow-Button-secondary-solid)", "thickness-outline-Button-secondary-solid--focus": "var(--xmlui-thickness-outline-Button-secondary-solid--focus)", "color-outline-Button-secondary-solid--focus": "var(--xmlui-color-outline-Button-secondary-solid--focus)", "style-outline-Button-secondary-solid--focus": "var(--xmlui-style-outline-Button-secondary-solid--focus)", "offset-outline-Button-secondary-solid--focus": "var(--xmlui-offset-outline-Button-secondary-solid--focus)", "color-border-Button-secondary-solid--hover": "var(--xmlui-color-border-Button-secondary-solid--hover)", "color-text-Button-secondary-solid--hover": "var(--xmlui-color-text-Button-secondary-solid--hover)", "color-bg-Button-secondary-solid--hover": "var(--xmlui-color-bg-Button-secondary-solid--hover)", "color-border-Button-secondary-solid--active": "var(--xmlui-color-border-Button-secondary-solid--active)", "color-text-Button-secondary-solid--active": "var(--xmlui-color-text-Button-secondary-solid--active)", "shadow-Button-secondary-solid--active": "var(--xmlui-shadow-Button-secondary-solid--active)", "color-bg-Button-secondary-solid--active": "var(--xmlui-color-bg-Button-secondary-solid--active)", "font-family-Button-attention-solid": "var(--xmlui-font-family-Button-attention-solid)", "font-size-Button-attention-solid": "var(--xmlui-font-size-Button-attention-solid)", "font-weight-Button-attention-solid": "var(--xmlui-font-weight-Button-attention-solid)", "radius-Button-attention-solid": "var(--xmlui-radius-Button-attention-solid)", "thickness-border-Button-attention-solid": "var(--xmlui-thickness-border-Button-attention-solid)", "color-border-Button-attention-solid": "var(--xmlui-color-border-Button-attention-solid)", "style-border-Button-attention-solid": "var(--xmlui-style-border-Button-attention-solid)", "color-bg-Button-attention-solid": "var(--xmlui-color-bg-Button-attention-solid)", "color-text-Button-attention-solid": "var(--xmlui-color-text-Button-attention-solid)", "shadow-Button-attention-solid": "var(--xmlui-shadow-Button-attention-solid)", "thickness-outline-Button-attention-solid--focus": "var(--xmlui-thickness-outline-Button-attention-solid--focus)", "color-outline-Button-attention-solid--focus": "var(--xmlui-color-outline-Button-attention-solid--focus)", "style-outline-Button-attention-solid--focus": "var(--xmlui-style-outline-Button-attention-solid--focus)", "offset-outline-Button-attention-solid--focus": "var(--xmlui-offset-outline-Button-attention-solid--focus)", "color-border-Button-attention-solid--hover": "var(--xmlui-color-border-Button-attention-solid--hover)", "color-text-Button-attention-solid--hover": "var(--xmlui-color-text-Button-attention-solid--hover)", "color-bg-Button-attention-solid--hover": "var(--xmlui-color-bg-Button-attention-solid--hover)", "color-border-Button-attention-solid--active": "var(--xmlui-color-border-Button-attention-solid--active)", "color-text-Button-attention-solid--active": "var(--xmlui-color-text-Button-attention-solid--active)", "shadow-Button-attention-solid--active": "var(--xmlui-shadow-Button-attention-solid--active)", "color-bg-Button-attention-solid--active": "var(--xmlui-color-bg-Button-attention-solid--active)", "font-family-Button-primary-outlined": "var(--xmlui-font-family-Button-primary-outlined)", "font-size-Button-primary-outlined": "var(--xmlui-font-size-Button-primary-outlined)", "font-weight-Button-primary-outlined": "var(--xmlui-font-weight-Button-primary-outlined)", "radius-Button-primary-outlined": "var(--xmlui-radius-Button-primary-outlined)", "thickness-border-Button-primary-outlined": "var(--xmlui-thickness-border-Button-primary-outlined)", "color-border-Button-primary-outlined": "var(--xmlui-color-border-Button-primary-outlined)", "style-border-Button-primary-outlined": "var(--xmlui-style-border-Button-primary-outlined)", "color-text-Button-primary-outlined": "var(--xmlui-color-text-Button-primary-outlined)", "shadow-Button-primary-outlined": "var(--xmlui-shadow-Button-primary-outlined)", "thickness-outline-Button-primary-outlined--focus": "var(--xmlui-thickness-outline-Button-primary-outlined--focus)", "color-outline-Button-primary-outlined--focus": "var(--xmlui-color-outline-Button-primary-outlined--focus)", "style-outline-Button-primary-outlined--focus": "var(--xmlui-style-outline-Button-primary-outlined--focus)", "offset-outline-Button-primary-outlined--focus": "var(--xmlui-offset-outline-Button-primary-outlined--focus)", "color-border-Button-primary-outlined--hover": "var(--xmlui-color-border-Button-primary-outlined--hover)", "color-bg-Button-primary-outlined--hover": "var(--xmlui-color-bg-Button-primary-outlined--hover)", "color-text-Button-primary-outlined--hover": "var(--xmlui-color-text-Button-primary-outlined--hover)", "color-border-Button-primary-outlined--active": "var(--xmlui-color-border-Button-primary-outlined--active)", "color-bg-Button-primary-outlined--active": "var(--xmlui-color-bg-Button-primary-outlined--active)", "color-text-Button-primary-outlined--active": "var(--xmlui-color-text-Button-primary-outlined--active)", "font-family-Button-secondary-outlined": "var(--xmlui-font-family-Button-secondary-outlined)", "font-size-Button-secondary-outlined": "var(--xmlui-font-size-Button-secondary-outlined)", "font-weight-Button-secondary-outlined": "var(--xmlui-font-weight-Button-secondary-outlined)", "radius-Button-secondary-outlined": "var(--xmlui-radius-Button-secondary-outlined)", "thickness-border-Button-secondary-outlined": "var(--xmlui-thickness-border-Button-secondary-outlined)", "color-border-Button-secondary-outlined": "var(--xmlui-color-border-Button-secondary-outlined)", "style-border-Button-secondary-outlined": "var(--xmlui-style-border-Button-secondary-outlined)", "color-text-Button-secondary-outlined": "var(--xmlui-color-text-Button-secondary-outlined)", "shadow-Button-secondary-outlined": "var(--xmlui-shadow-Button-secondary-outlined)", "thickness-outline-Button-secondary-outlined--focus": "var(--xmlui-thickness-outline-Button-secondary-outlined--focus)", "color-outline-Button-secondary-outlined--focus": "var(--xmlui-color-outline-Button-secondary-outlined--focus)", "style-outline-Button-secondary-outlined--focus": "var(--xmlui-style-outline-Button-secondary-outlined--focus)", "offset-outline-Button-secondary-outlined--focus": "var(--xmlui-offset-outline-Button-secondary-outlined--focus)", "color-border-Button-secondary-outlined--hover": "var(--xmlui-color-border-Button-secondary-outlined--hover)", "color-bg-Button-secondary-outlined--hover": "var(--xmlui-color-bg-Button-secondary-outlined--hover)", "color-text-Button-secondary-outlined--hover": "var(--xmlui-color-text-Button-secondary-outlined--hover)", "color-border-Button-secondary-outlined--active": "var(--xmlui-color-border-Button-secondary-outlined--active)", "color-bg-Button-secondary-outlined--active": "var(--xmlui-color-bg-Button-secondary-outlined--active)", "color-text-Button-secondary-outlined--active": "var(--xmlui-color-text-Button-secondary-outlined--active)", "font-family-Button-attention-outlined": "var(--xmlui-font-family-Button-attention-outlined)", "font-size-Button-attention-outlined": "var(--xmlui-font-size-Button-attention-outlined)", "font-weight-Button-attention-outlined": "var(--xmlui-font-weight-Button-attention-outlined)", "radius-Button-attention-outlined": "var(--xmlui-radius-Button-attention-outlined)", "thickness-border-Button-attention-outlined": "var(--xmlui-thickness-border-Button-attention-outlined)", "color-border-Button-attention-outlined": "var(--xmlui-color-border-Button-attention-outlined)", "style-border-Button-attention-outlined": "var(--xmlui-style-border-Button-attention-outlined)", "color-text-Button-attention-outlined": "var(--xmlui-color-text-Button-attention-outlined)", "shadow-Button-attention-outlined": "var(--xmlui-shadow-Button-attention-outlined)", "thickness-outline-Button-attention-outlined--focus": "var(--xmlui-thickness-outline-Button-attention-outlined--focus)", "color-outline-Button-attention-outlined--focus": "var(--xmlui-color-outline-Button-attention-outlined--focus)", "style-outline-Button-attention-outlined--focus": "var(--xmlui-style-outline-Button-attention-outlined--focus)", "offset-outline-Button-attention-outlined--focus": "var(--xmlui-offset-outline-Button-attention-outlined--focus)", "color-border-Button-attention-outlined--hover": "var(--xmlui-color-border-Button-attention-outlined--hover)", "color-bg-Button-attention-outlined--hover": "var(--xmlui-color-bg-Button-attention-outlined--hover)", "color-text-Button-attention-outlined--hover": "var(--xmlui-color-text-Button-attention-outlined--hover)", "color-border-Button-attention-outlined--active": "var(--xmlui-color-border-Button-attention-outlined--active)", "color-bg-Button-attention-outlined--active": "var(--xmlui-color-bg-Button-attention-outlined--active)", "color-text-Button-attention-outlined--active": "var(--xmlui-color-text-Button-attention-outlined--active)", "font-family-Button-primary-ghost": "var(--xmlui-font-family-Button-primary-ghost)", "font-size-Button-primary-ghost": "var(--xmlui-font-size-Button-primary-ghost)", "font-weight-Button-primary-ghost": "var(--xmlui-font-weight-Button-primary-ghost)", "radius-Button-primary-ghost": "var(--xmlui-radius-Button-primary-ghost)", "thickness-border-Button-primary-ghost": "var(--xmlui-thickness-border-Button-primary-ghost)", "color-text-Button-primary-ghost": "var(--xmlui-color-text-Button-primary-ghost)", "thickness-outline-Button-primary-ghost--focus": "var(--xmlui-thickness-outline-Button-primary-ghost--focus)", "color-outline-Button-primary-ghost--focus": "var(--xmlui-color-outline-Button-primary-ghost--focus)", "style-outline-Button-primary-ghost--focus": "var(--xmlui-style-outline-Button-primary-ghost--focus)", "offset-outline-Button-primary-ghost--focus": "var(--xmlui-offset-outline-Button-primary-ghost--focus)", "color-bg-Button-primary-ghost--hover": "var(--xmlui-color-bg-Button-primary-ghost--hover)", "color-text-Button-primary-ghost--hover": "var(--xmlui-color-text-Button-primary-ghost--hover)", "color-bg-Button-primary-ghost--active": "var(--xmlui-color-bg-Button-primary-ghost--active)", "color-text-Button-primary-ghost--active": "var(--xmlui-color-text-Button-primary-ghost--active)", "font-family-Button-secondary-ghost": "var(--xmlui-font-family-Button-secondary-ghost)", "font-size-Button-secondary-ghost": "var(--xmlui-font-size-Button-secondary-ghost)", "font-weight-Button-secondary-ghost": "var(--xmlui-font-weight-Button-secondary-ghost)", "radius-Button-secondary-ghost": "var(--xmlui-radius-Button-secondary-ghost)", "thickness-border-Button-secondary-ghost": "var(--xmlui-thickness-border-Button-secondary-ghost)", "color-text-Button-secondary-ghost": "var(--xmlui-color-text-Button-secondary-ghost)", "thickness-outline-Button-secondary-ghost--focus": "var(--xmlui-thickness-outline-Button-secondary-ghost--focus)", "color-outline-Button-secondary-ghost--focus": "var(--xmlui-color-outline-Button-secondary-ghost--focus)", "style-outline-Button-secondary-ghost--focus": "var(--xmlui-style-outline-Button-secondary-ghost--focus)", "offset-outline-Button-secondary-ghost--focus": "var(--xmlui-offset-outline-Button-secondary-ghost--focus)", "color-bg-Button-secondary-ghost--hover": "var(--xmlui-color-bg-Button-secondary-ghost--hover)", "color-text-Button-secondary-ghost--hover": "var(--xmlui-color-text-Button-secondary-ghost--hover)", "color-bg-Button-secondary-ghost--active": "var(--xmlui-color-bg-Button-secondary-ghost--active)", "color-text-Button-secondary-ghost--active": "var(--xmlui-color-text-Button-secondary-ghost--active)", "font-family-Button-attention-ghost": "var(--xmlui-font-family-Button-attention-ghost)", "font-size-Button-attention-ghost": "var(--xmlui-font-size-Button-attention-ghost)", "font-weight-Button-attention-ghost": "var(--xmlui-font-weight-Button-attention-ghost)", "radius-Button-attention-ghost": "var(--xmlui-radius-Button-attention-ghost)", "thickness-border-Button-attention-ghost": "var(--xmlui-thickness-border-Button-attention-ghost)", "color-text-Button-attention-ghost": "var(--xmlui-color-text-Button-attention-ghost)", "thickness-outline-Button-attention-ghost--focus": "var(--xmlui-thickness-outline-Button-attention-ghost--focus)", "color-outline-Button-attention-ghost--focus": "var(--xmlui-color-outline-Button-attention-ghost--focus)", "style-outline-Button-attention-ghost--focus": "var(--xmlui-style-outline-Button-attention-ghost--focus)", "offset-outline-Button-attention-ghost--focus": "var(--xmlui-offset-outline-Button-attention-ghost--focus)", "color-bg-Button-attention-ghost--hover": "var(--xmlui-color-bg-Button-attention-ghost--hover)", "color-text-Button-attention-ghost--hover": "var(--xmlui-color-text-Button-attention-ghost--hover)", "color-bg-Button-attention-ghost--active": "var(--xmlui-color-bg-Button-attention-ghost--active)", "color-text-Button-attention-ghost--active": "var(--xmlui-color-text-Button-attention-ghost--active)"}'`,button:"_button_eqkk3_13",alignStart:"_alignStart_eqkk3_29",alignEnd:"_alignEnd_eqkk3_32",buttonHorizontal:"_buttonHorizontal_eqkk3_38",xs:"_xs_eqkk3_41",sm:"_sm_eqkk3_44",md:"_md_eqkk3_47",lg:"_lg_eqkk3_50",buttonVertical:"_buttonVertical_eqkk3_53",solidPrimary:"_solidPrimary_eqkk3_71",solidSecondary:"_solidSecondary_eqkk3_106",solidAttention:"_solidAttention_eqkk3_141",outlinedPrimary:"_outlinedPrimary_eqkk3_176",outlinedSecondary:"_outlinedSecondary_eqkk3_209",outlinedAttention:"_outlinedAttention_eqkk3_242",ghostPrimary:"_ghostPrimary_eqkk3_275",ghostSecondary:"_ghostSecondary_eqkk3_304",ghostAttention:"_ghostAttention_eqkk3_333"};function k({description:e,shortDescription:t,specializedFrom:o,status:i,props:n,events:s,contextVars:l,apis:c,nonVisual:u,opaque:w,themeVars:f,defaultThemeVars:p,toneSpecificThemeVars:C,allowArbitraryProps:v,docFolder:M}){return{description:e,shortDescription:t,specializedFrom:o,status:i,props:n,events:s,contextVars:l,apis:c,nonVisual:u,opaque:w,themeVars:f,defaultThemeVars:p,toneSpecificThemeVars:C,allowArbitraryProps:v,docFolder:M}}function a(e,t,o,i,n){return{description:e,availableValues:t,valueType:o,defaultValue:i,isValid:n}}const Ar=[{value:"_self",description:"The link will open in the same frame as it was clicked."},{value:"_blank",description:"The link will open in a new window or tab."},{value:"_parent",description:"The link will open in the parent frame. If no parent, behaves as _self."},{value:"_top",description:"The topmost browsing context. The link will open in the full body of the window. If no ancestors, behaves as _self."}],Gt=[{value:"xs",description:"Extra small button"},{value:"sm",description:"Small button"},{value:"md",description:"Medium button"},{value:"lg",description:"Large button"}],Nr=[...["attention","primary","secondary"]],go=[{value:"attention",description:"Attention state theme color"},{value:"primary",description:"Primary theme color"},{value:"secondary",description:"Secondary theme color"}],zr=[{value:"button",description:"Regular behavior that only executes logic if explicitly determined."},{value:"submit",description:"The button submits the form data to the server. This is the default for buttons in a Form or NativeForm component."},{value:"reset",description:"Resets all the controls to their initial values. Using it is ill advised for UX reasons."}],Lr="button",Cr=[...["solid","outlined","ghost"]],vo=[{value:"solid",description:"A button with a border and a filled background."},{value:"outlined",description:"The button is displayed with a border and a transparent background."},{value:"ghost",description:"A button with no border and fill. Only the label is visible; the background is colored when hovered or clicked."}],Pr=[{value:"center",description:"Place the content in the middle"},{value:"start",description:"Justify the content to the left (to the right if in right-to-left)"},{value:"end",description:"Justify the content to the right (to the left if in right-to-left)"}],Yt=[{value:"horizontal",description:"The component will fill the available space horizontally"},{value:"vertical",description:"The component will fill the available space vertically"}],bo=[...["start","end"]],yo=[{value:"start",description:"The icon will appear at the start (left side when the left-to-right direction is set)"},{value:"end",description:"The icon will appear at the end (right side when the left-to-right direction is set)"}],Or=[{value:"primary",description:"Primary theme color, no default icon"},{value:"secondary",description:"Secondary theme color, no default icon"},{value:"success",description:'Success theme color, "success" icon'},{value:"danger",description:'Warning theme color, "warning" icon'},{value:"warning",description:'Danger theme color, "danger" icon'},{value:"info",description:'Info theme color, "info" icon'},{value:"light",description:"Light theme color, no default icon"},{value:"dark",description:"Dark theme color, no default icon"}],Dr=[{value:"start",description:"The left side of the window (left-to-right) or the right side of the window (right-to-left)"},{value:"end",description:"The right side of the window (left-to-right) or the left side of the window (right-to-left)"},{value:"top",description:"The top of the window"},{value:"bottom",description:"The bottom of the window"}],To=[{value:"start",description:"The left side of the input (left-to-right) or the right side of the input (right-to-left)"},{value:"end",description:"The right side of the input (left-to-right) or the left side of the input (right-to-left)"},{value:"top",description:"The top of the input"},{value:"bottom",description:"The bottom of the input"}],Mr=[...["start","end"]],Hr=[{value:"valid",description:"Visual indicator for an input that is accepted"},{value:"warning",description:"Visual indicator for an input that produced a warning"},{value:"error",description:"Visual indicator for an input that produced an error"}],Fr=["top","bottom"],ko={abbr:"abbr",cite:"cite",code:"code",codefence:"pre",deleted:"del",inserted:"ins",keyboard:"kbd",marked:"mark",sample:"samp",sub:"sub",sup:"sup",var:"var",mono:"pre",strong:"strong",em:"em",title:"span",subtitle:"span",small:"span",caption:"span",placeholder:"span",paragraph:"p",subheading:"h6",tableheading:"h6",secondary:"span"},Wr=[{value:"abbr",description:"Represents an abbreviation or acronym"},{value:"caption",description:"Represents the caption (or title) of a table"},{value:"cite",description:"Is used to mark up the title of a cited work"},{value:"code",description:"Represents a line of code"},{value:"codefence",description:"Handles the display of code blocks if combined with a `code` variant"},{value:"deleted",description:"Represents text that has been deleted"},{value:"em",description:"Marks text to stress emphasis"},{value:"inserted",description:"Represents a range of text that has been added to a document"},{value:"keyboard",description:"Represents a span of text denoting textual user input from a keyboard or voice input"},{value:"marked",description:"Represents text which is marked or highlighted for reference or notation"},{value:"mono",description:"Text using a mono style font family"},{value:"paragraph",description:"Represents a paragraph"},{value:"placeholder",description:"Text that is mostly used as the placeholder style in input controls"},{value:"sample",description:"Represents sample (or quoted) output from a computer program"},{value:"secondary",description:"Represents a bit dimmed secondary text"},{value:"small",description:"Represents side-comments and small print"},{value:"sub",description:"Specifies inline text as subscript"},{value:"strong",description:"Contents have strong importance"},{value:"subheading",description:"Indicates that the text is the subtitle in a heading"},{value:"subtitle",description:"Indicates that the text is the subtitle of some other content"},{value:"sup",description:"Specifies inline text as superscript"},{value:"tableheading",description:"Indicates that the text is a table heading"},{value:"title",description:"Indicates that the text is the title of some other content"},{value:"var",description:"Represents the name of a variable in a mathematical expression"}],wo={themeVars:`'{"size-Icon": "var(--xmlui-size-Icon)", "thickness-stroke-Icon": "var(--xmlui-thickness-stroke-Icon)"}'`,base:"_base_13qtg_13"},Rr=Y.createContext(null);function $o(){return Y.useContext(Rr)}const qr={accentheight:"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baseprofile:"baseProfile",baselineshift:"baselineShift",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight",clip:"clip",clippath:"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule",colorinterpolation:"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters",colorprofile:"colorProfile",colorrendering:"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity",fillrule:"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodcolor:"floodColor",floodopacity:"floodOpacity",focusable:"focusable",fontfamily:"fontFamily",fontsize:"fontSize",fontsizeadjust:"fontSizeAdjust",fontstretch:"fontStretch",fontstyle:"fontStyle",fontvariant:"fontVariant",fontweight:"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX",horizoriginx:"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering",in:"in",in2:"in2",intercept:"intercept",k:"k",k1:"k1",k2:"k2",k3:"k3",k4:"k4",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing",lightingcolor:"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd",markerheight:"markerHeight",markermid:"markerMid",markerstart:"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition",overlinethickness:"overlineThickness",paintorder:"paintOrder",panose1:"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",restart:"restart",result:"result",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",seed:"seed",shaperendering:"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor",stopopacity:"stopOpacity",strikethroughposition:"strikethroughPosition",strikethroughthickness:"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray",strokedashoffset:"strokeDashoffset",strokelinecap:"strokeLinecap",strokelinejoin:"strokeLinejoin",strokemiterlimit:"strokeMiterlimit",strokeopacity:"strokeOpacity",strokewidth:"strokeWidth",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor",textdecoration:"textDecoration",textlength:"textLength",textrendering:"textRendering",to:"to",transform:"transform",u1:"u1",u2:"u2",underlineposition:"underlinePosition",underlinethickness:"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi",unicoderange:"unicodeRange",unitsperem:"unitsPerEm",valphabetic:"vAlphabetic",vhanging:"vHanging",videographic:"vIdeographic",vmathematical:"vMathematical",values:"values",vectoreffect:"vectorEffect",version:"version",vertadvy:"vertAdvY",vertoriginx:"vertOriginX",vertoriginy:"vertOriginY",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",widths:"widths",wordspacing:"wordSpacing",writingmode:"writingMode",x:"x",x1:"x1",x2:"x2",xchannelselector:"xChannelSelector",xheight:"xHeight",xlinkactuate:"xlinkActuate",xlinkarcrole:"xlinkArcrole",xlinkhref:"xlinkHref",xlinkrole:"xlinkRole",xlinkshow:"xlinkShow",xlinktitle:"xlinkTitle",xlinktype:"xlinkType",xmlns:"xmlns",xmlnsxlink:"xmlnsXlink",xmlbase:"xmlBase",xmllang:"xmlLang",xmlspace:"xmlSpace",y:"y",y1:"y1",y2:"y2",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Vr=/[-:]/g;function Ur(e){const{ensureCustomSvgIcon:t,customSvgs:o}=$o();Y.useLayoutEffect(()=>{e&&t(e)},[t,e]);const i=e?o[e]:null,n=Y.useCallback(({style:s,className:l})=>{if(!i)return null;const{attributes:c,name:u}=i,w={};return Object.entries(c).forEach(([f,p])=>{let C=f;/^(data-|aria-)/.test(f)?C=f:C=f.replace(Vr,"").toLowerCase(),w[qr[C]||f]=p}),oe.jsx("svg",{...w,style:s,className:l,children:oe.jsx("use",{href:`#${u}`})})},[i]);return e?n:null}function ot(...e){const t=e.filter(Boolean);let o=0,i,n="",s="";for(;o<t.length;)i=t[o++],i&&(n=l(i),n&&(s&&(s+=" "),s+=n));return s;function l(c){let u,w,f="";if(typeof c=="string"||typeof c=="number")f+=c;else if(typeof c=="object")if(Array.isArray(c))for(u=0;u<c.length;u++)c[u]&&(w=l(c[u]),w&&(f&&(f+=" "),f+=w));else for(u in c)c[u]&&(f&&(f+=" "),f+=u);return f}}const Gr=Y.createContext(void 0);Y.createContext(void 0);function _o(){return Y.useContext(Gr)}function Yr(e){const{getResourceUrl:t}=_o();return t(e)}const Qt="xmlui";function Io(e){if(typeof e=="string")return`var(--${Qt}-${e.substring(1)})`;if(e.defaultValue&&e.defaultValue.length>0){let t="";for(const o of e.defaultValue)t+=typeof o=="string"?o:Io(o);return`var(--${Qt}-${e.id.substring(1)}, ${t})`}else return`var(--${Qt}-${e.id.substring(1)})`}const Qr=Y.forwardRef(function({name:t,fallback:o,style:i,className:n,...s},l){var v;const c=jr(t,o),u=typeof(s==null?void 0:s.size)=="string"?Jr(s.size):s==null?void 0:s.size,w=u||s.width,f=u||s.height,p={className:ot(wo.base,n),...s,size:u,width:w,height:f,style:{...i,"--icon-width":w,"--icon-height":f}},C=Zr(t);return C?oe.jsx(Xr,{...p,url:C,name:t}):((v=c==null?void 0:c.renderer)==null?void 0:v.call(c,p))||null});function Xr(e){var f;const{url:t,width:o,height:i,name:n,style:s,className:l}=e,c=Yr(t),u=(f=c==null?void 0:c.toLowerCase())==null?void 0:f.endsWith(".svg"),w=Ur(c);if(c&&u){const p=w==null?void 0:w({style:s,className:l});return p||oe.jsx("span",{style:s,className:l})}return oe.jsx("img",{src:c,style:{width:o,height:i,...s},alt:n})}function Zr(e){const{getResourceUrl:t}=_o();return e&&t(`resource:icon.${e}`)}function Jr(e){return/^\$[a-zA-Z0-9_$-]+$/g.test(e)?Io(e):{xs:"0.75em",sm:"1em",md:"1.5rem",lg:"2em"}[e]||e}function jr(e,t){const o=$o();if(e&&typeof e=="string"){const i=":",n=e.split(i);if(n.length>1){const s=o.lookupIconRenderer(`${n[0].toLowerCase()}${i}${n[1]}`);if(s)return s}if(n.length===1){const s=o.lookupIconRenderer(n[0]);if(s)return s}}if(t&&typeof t=="string"){const i=o.lookupIconRenderer(t.toLowerCase());if(i)return i}return null}const Bo={keyPrefix:"xmlui",themeVars:'"[]"'};function N(e){if(!e||typeof e!="string")return e;let t=e.replace(/(^['"])|(['"]$)/g,"");try{return JSON.parse(t)}catch{try{return JSON.parse(e.replace("(","{").replace(")","}").replace(/: ?([^,}]+)([,}])/g,': "$1"$2').replace(/([\s{,])(?!")([^:\s]+)+:/g,'$1"$2":'))}catch{return t}}}N(Bo.keyPrefix),N(Bo.themeVars);function rt(e){return{description:e??"This property is for internal use only.",isInternal:!0}}function Ye(e){return{description:`This event is triggered when the ${e} is clicked.`}}function Ae(e){return{description:`This event is triggered when the ${e} has received the focus.`}}function Ne(e){return{description:`This event is triggered when the ${e} has lost the focus.`}}function Te(e){return{description:`This event is triggered when value of ${e} has changed.`}}function So(){return{description:"The `true` value of this property signals that the component is in an _intedeterminate state_."}}function xe(){return{description:"This property sets the label of the component."}}function Re(e){return{description:"Places the label at the given position of the component.",availableValues:To,defaultValue:e}}function Qe(e){return{description:`This property sets the width of the \`${e}\`.`}}function Xe(e){return{description:`This boolean value indicates if the \`${e}\` labels can be split into multiple lines if it would overflow the available label width.`,valueType:"boolean",defaultValue:!1}}function ke(){return{description:"If this property is set to `true`, the component gets the focus automatically when displayed.",valueType:"boolean",defaultValue:!1}}function ze(e){return{description:"This property sets the component's initial value.",defaultValue:e}}function De(){return{description:"Set this property to `true` to disallow changing the component value."}}function be(){return{description:"This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).",valueType:"boolean",defaultValue:!0}}function Eo(){return{description:"The `true` value of the property indicates if the user can select multiple items.",valueType:"boolean",defaultValue:!1}}function Me(){return{description:"This property allows you to set the validation status of the input component.",availableValues:Hr}}function Ao(){return{description:"You can query this read-only API property to query the component's current value (`true`: checked, `false`: unchecked)."}}function Ze(){return{description:"You can use this method to set the component's current value programmatically (`true`: checked, `false`: unchecked)."}}function te(e){return{description:e,valueType:"ComponentDef"}}function nt(){return{description:"A placeholder text that is visible in the input field when its empty."}}function _t(){return{description:"This property sets the maximum length of the input it accepts."}}function He(){return{description:"Set this property to `true` to indicate it must have a value before submitting the containing form."}}function No(){return{description:"This property sets a text to appear at the start (left side when the left-to-right direction is set) of the input."}}function zo(){return{description:"This property sets an icon to appear at the start (left side when the left-to-right direction is set) of the input."}}function Lo(){return{description:"This property sets a text to appear on the end (right side when the left-to-right direction is set) of the input."}}function Co(){return{description:"This property sets an icon to appear on the end (right side when the left-to-right direction is set) of the input."}}function Kr(e){return{description:`This property indicates if the ${e} is expanded (\`true\`) or collapsed (\`false\`).`}}function en(e){return{description:`This method expands the ${e}.`}}function tn(e){return{description:`This method collapses the ${e}.`}}function Je(e){return{description:`This method sets the focus on the ${e}.`}}function Po(){return{description:"You can query the component's value. If no value is set, it will retrieve `undefined`."}}function on(e){return{description:`This event is triggered when the ${e} has been displayed. The event handler has a single boolean argument set to \`true\`, indicating that the user opened the component.`}}function rn(e){return{description:`This event is triggered when the ${e} has been closed. The event handler has a single boolean argument set to \`true\`, indicating that the user closed the component.`}}function Oo(e){return{description:`This property allows you to define a custom trigger instead of the default one provided by \`${e}\`.`,valueType:"ComponentDef"}}function nn(e){return{description:"This property sets the main axis along which the nested components are rendered.",availableValues:Yt,valueType:"string",defaultValue:e}}const $="Button",an=k({description:"Button is an interactive element that triggers an action when clicked.",status:"stable",props:{autoFocus:a("Indicates if the button should receive focus when the page loads.",null,"boolean",!1),variant:a("The button variant determines the level of emphasis the button should possess.",vo,"string","solid"),themeColor:a("Sets the button color scheme defined in the application theme.",go,"string","primary"),size:a("The size of the button.",Gt,"string","sm"),label:a(`This property is an optional string to set a label for the ${$}. If no label is specified and an icon is set, the ${$} will modify its styling to look like a small icon button. When the ${$} has nested children, it will display them and ignore the value of the \`label\` prop.`),type:a(`This optional string describes how the ${$} appears in an HTML context. You rarely need to set this property explicitly.`,zr,"string",Lr),enabled:a("The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",null,null,!0),icon:a(`This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${$} displays only that icon.`),iconPosition:a(`This optional string determines the location of the icon in the ${$}.`,yo,"string","start"),contentPosition:a(`This optional value determines how the label and icon (or nested children) should be placedinside the ${$} component.`,Pr,"string","center")},events:{click:Ye($),gotFocus:Ae($),lostFocus:Ne($)},themeVars:N(Er.themeVars),defaultThemeVars:{[`width-${$}`]:"fit-content",[`height-${$}`]:"fit-content",[`radius-${$}`]:"$radius",[`font-size-${$}`]:"$font-size-small",[`font-weight-${$}`]:"$font-weight-medium",[`color-bg-${$}-primary`]:"$color-primary-500",[`color-bg-${$}-attention`]:"$color-bg-attention",[`color-border-${$}-attention`]:"$color-attention",[`color-bg-${$}--disabled`]:"$color-bg--disabled",[`color-border-${$}--disabled`]:"$color-border--disabled",[`style-border-${$}`]:"solid",[`color-text-${$}--disabled`]:"$color-text--disabled",[`color-outline-${$}--focus`]:"$color-outline--focus",[`thickness-border-${$}`]:"1px",[`thickness-outline-${$}--focus`]:"$thickness-outline--focus",[`style-outline-${$}--focus`]:"$style-outline--focus",[`offset-outline-${$}--focus`]:"$offset-outline--focus",[`padding-horizontal-${$}-xs`]:"$space-1",[`padding-vertical-${$}-xs`]:"$space-0_5",[`padding-horizontal-${$}-sm`]:"$space-4",[`padding-vertical-${$}-sm`]:"$space-2",[`padding-horizontal-${$}-md`]:"$space-4",[`padding-vertical-${$}-md`]:"$space-3",[`padding-horizontal-${$}-lg`]:"$space-5",[`padding-vertical-${$}-lg`]:"$space-4",light:{[`color-text-${$}`]:"$color-surface-950",[`color-text-${$}-solid`]:"$color-surface-50",[`color-border-${$}-primary`]:"$color-primary-500",[`color-bg-${$}-primary--hover`]:"$color-primary-400",[`color-bg-${$}-primary--active`]:"$color-primary-500",[`color-bg-${$}-primary-outlined--hover`]:"$color-primary-50",[`color-bg-${$}-primary-outlined--active`]:"$color-primary-100",[`color-border-${$}-primary-outlined`]:"$color-primary-600",[`color-border-${$}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${$}-primary-outlined`]:"$color-primary-900",[`color-text-${$}-primary-outlined--hover`]:"$color-primary-950",[`color-text-${$}-primary-outlined--active`]:"$color-primary-900",[`color-bg-${$}-primary-ghost--hover`]:"$color-primary-50",[`color-bg-${$}-primary-ghost--active`]:"$color-primary-100",[`color-border-${$}-secondary`]:"$color-secondary-100",[`color-bg-${$}-secondary`]:"$color-secondary-500",[`color-bg-${$}-secondary--hover`]:"$color-secondary-400",[`color-bg-${$}-secondary--active`]:"$color-secondary-500",[`color-bg-${$}-secondary-outlined--hover`]:"$color-secondary-50",[`color-bg-${$}-secondary-outlined--active`]:"$color-secondary-100",[`color-bg-${$}-secondary-ghost--hover`]:"$color-secondary-100",[`color-bg-${$}-secondary-ghost--active`]:"$color-secondary-100",[`color-bg-${$}-attention--hover`]:"$color-danger-400",[`color-bg-${$}-attention--active`]:"$color-danger-500",[`color-bg-${$}-attention-outlined--hover`]:"$color-danger-50",[`color-bg-${$}-attention-outlined--active`]:"$color-danger-100",[`color-bg-${$}-attention-ghost--hover`]:"$color-danger-50",[`color-bg-${$}-attention-ghost--active`]:"$color-danger-100"},dark:{[`color-text-${$}`]:"$color-surface-50",[`color-text-${$}-solid`]:"$color-surface-50",[`color-border-${$}-primary`]:"$color-primary-500",[`color-bg-${$}-primary--hover`]:"$color-primary-600",[`color-bg-${$}-primary--active`]:"$color-primary-500",[`color-bg-${$}-primary-outlined--hover`]:"$color-primary-900",[`color-bg-${$}-primary-outlined--active`]:"$color-primary-950",[`color-border-${$}-primary-outlined`]:"$color-primary-600",[`color-border-${$}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${$}-primary-outlined`]:"$color-primary-100",[`color-text-${$}-primary-outlined--hover`]:"$color-primary-50",[`color-text-${$}-primary-outlined--active`]:"$color-primary-100",[`color-bg-${$}-primary-ghost--hover`]:"$color-primary-900",[`color-bg-${$}-primary-ghost--active`]:"$color-primary-950",[`color-border-${$}-secondary`]:"$color-secondary-500",[`color-bg-${$}-secondary`]:"$color-secondary-500",[`color-bg-${$}-secondary--hover`]:"$color-secondary-400",[`color-bg-${$}-secondary--active`]:"$color-secondary-500",[`color-bg-${$}-secondary-outlined--hover`]:"$color-secondary-600",[`color-bg-${$}-secondary-outlined--active`]:"$color-secondary-500",[`color-bg-${$}-secondary-ghost--hover`]:"$color-secondary-900",[`color-bg-${$}-secondary-ghost--active`]:"$color-secondary-950",[`color-bg-${$}-attention--hover`]:"$color-danger-400",[`color-bg-${$}-attention--active`]:"$color-danger-500",[`color-bg-${$}-attention-outlined--hover`]:"$color-danger-900",[`color-bg-${$}-attention-outlined--active`]:"$color-danger-950",[`color-bg-${$}-attention-ghost--hover`]:"$color-danger-900",[`color-bg-${$}-attention-ghost--active`]:"$color-danger-950"}}}),Le={themeVars:'"[]"',base:"_base_gzmhm_13",hoverContainer:"_hoverContainer_gzmhm_22",handlesClick:"_handlesClick_gzmhm_32",vertical:"_vertical_gzmhm_36",reverse:"_reverse_gzmhm_40",horizontal:"_horizontal_gzmhm_44",justifyItemsStart:"_justifyItemsStart_gzmhm_52",justifyItemsCenter:"_justifyItemsCenter_gzmhm_56",justifyItemsStretch:"_justifyItemsStretch_gzmhm_60",justifyItemsEnd:"_justifyItemsEnd_gzmhm_64",alignItemsStart:"_alignItemsStart_gzmhm_69",alignItemsCenter:"_alignItemsCenter_gzmhm_73",alignItemsStretch:"_alignItemsStretch_gzmhm_77",alignItemsEnd:"_alignItemsEnd_gzmhm_81"};function Nt(e){return e[0].toUpperCase()+e.substring(1)}function ln(e,t,o){return Y.useMemo(()=>e==="horizontal"?{horizontal:t&&Le[`justifyItems${Nt(t)}`],vertical:o&&Le[`alignItems${Nt(o)}`]}:{horizontal:t&&Le[`alignItems${Nt(t)}`],vertical:o&&Le[`justifyItems${Nt(o)}`]},[e,t,o])}const sn=Object.freeze({});function cn(e){const t=Y.useRef({mountedFired:!1});Y.useEffect(()=>{t.current.mountedFired||(t.current.mountedFired=!0,e==null||e())},[e])}const un="vertical",Do=Y.forwardRef(function({uid:t,children:o,orientation:i=un,horizontalAlignment:n,verticalAlignment:s,style:l,reverse:c,hoverContainer:u,visibleOnHover:w,onClick:f,onMount:p,...C},v){cn(p);const{horizontal:M,vertical:E}=ln(i,n,s);return oe.jsx("div",{...C,onClick:f,ref:v,style:l,className:ot(Le.base,{[Le.vertical]:i==="vertical",[Le.horizontal]:i==="horizontal",[Le.reverse]:c,[Le.hoverContainer]:u,"display-on-hover":w,[Le.handlesClick]:!!f},M??"",E??""),children:o})}),It="Stack",Xt=a("Manages the horizontal content alignment for each child element in the Stack."),Zt=a("Manages the vertical content alignment for each child element in the Stack."),zt=k({description:"`Stack` is a layout container displaying children in a horizontal or vertical stack.",props:{gap:a("Optional size value indicating the gap between child elements."),reverse:a("Optional boolean property to reverse the order of child elements."),wrapContent:a("Optional boolean which wraps the content if set to true and the available space is not big enough. Works in all orientations."),hoverContainer:a("Reserved for future use"),visibleOnHover:a("Reserved for future use")},events:{click:Ye(It),mounted:a("Reserved for future use")},themeVars:N(Le.themeVars)}),Bt={...zt,props:{...zt.props,orientation:a("An optional property that governs the Stack's orientation (whether the Stack lays out its children in a row or a column)."),horizontalAlignment:Xt,verticalAlignment:Zt}},dn={...Bt,specializedFrom:It,description:"This component represents a stack rendering its contents vertically.",props:{...zt.props,horizontalAlignment:Xt,verticalAlignment:Zt}},pn={...Bt,specializedFrom:It,description:"This component represents a stack rendering its contents horizontally.",props:{...zt.props,horizontalAlignment:Xt,verticalAlignment:Zt}},hn={...Bt,specializedFrom:It,description:"This component represents a stack that renders its contents vertically and aligns that in the center along both axes."},mn={...Bt,specializedFrom:It,description:"This component represents a stack that renders its contents horizontally and aligns that in the center along both axes."},xn={themeVars:`'{"Input:radius-TextBox-default": "var(--xmlui-radius-TextBox-default)", "Input:color-border-TextBox-default": "var(--xmlui-color-border-TextBox-default)", "Input:thickness-border-TextBox-default": "var(--xmlui-thickness-border-TextBox-default)", "Input:style-border-TextBox-default": "var(--xmlui-style-border-TextBox-default)", "Input:font-size-TextBox-default": "var(--xmlui-font-size-TextBox-default)", "Input:padding-TextBox-default": "var(--xmlui-padding-TextBox-default)", "Input:color-bg-TextBox-default": "var(--xmlui-color-bg-TextBox-default)", "Input:shadow-TextBox-default": "var(--xmlui-shadow-TextBox-default)", "Input:color-text-TextBox-default": "var(--xmlui-color-text-TextBox-default)", "Input:color-border-TextBox-default--hover": "var(--xmlui-color-border-TextBox-default--hover)", "Input:color-bg-TextBox-default--hover": "var(--xmlui-color-bg-TextBox-default--hover)", "Input:shadow-TextBox-default--hover": "var(--xmlui-shadow-TextBox-default--hover)", "Input:color-text-TextBox-default--hover": "var(--xmlui-color-text-TextBox-default--hover)", "Input:color-border-TextBox-default--focus": "var(--xmlui-color-border-TextBox-default--focus)", "Input:color-bg-TextBox-default--focus": "var(--xmlui-color-bg-TextBox-default--focus)", "Input:shadow-TextBox-default--focus": "var(--xmlui-shadow-TextBox-default--focus)", "Input:color-text-TextBox-default--focus": "var(--xmlui-color-text-TextBox-default--focus)", "Input:thickness-outline-TextBox-default--focus": "var(--xmlui-thickness-outline-TextBox-default--focus)", "Input:color-outline-TextBox-default--focus": "var(--xmlui-color-outline-TextBox-default--focus)", "Input:style-outline-TextBox-default--focus": "var(--xmlui-style-outline-TextBox-default--focus)", "Input:offset-outline-TextBox-default--focus": "var(--xmlui-offset-outline-TextBox-default--focus)", "Input:color-placeholder-TextBox-default": "var(--xmlui-color-placeholder-TextBox-default)", "Input:color-adornment-TextBox-default": "var(--xmlui-color-adornment-TextBox-default)", "Input:radius-TextBox-error": "var(--xmlui-radius-TextBox-error)", "Input:color-border-TextBox-error": "var(--xmlui-color-border-TextBox-error)", "Input:thickness-border-TextBox-error": "var(--xmlui-thickness-border-TextBox-error)", "Input:style-border-TextBox-error": "var(--xmlui-style-border-TextBox-error)", "Input:font-size-TextBox-error": "var(--xmlui-font-size-TextBox-error)", "Input:padding-TextBox-error": "var(--xmlui-padding-TextBox-error)", "Input:color-bg-TextBox-error": "var(--xmlui-color-bg-TextBox-error)", "Input:shadow-TextBox-error": "var(--xmlui-shadow-TextBox-error)", "Input:color-text-TextBox-error": "var(--xmlui-color-text-TextBox-error)", "Input:color-border-TextBox-error--hover": "var(--xmlui-color-border-TextBox-error--hover)", "Input:color-bg-TextBox-error--hover": "var(--xmlui-color-bg-TextBox-error--hover)", "Input:shadow-TextBox-error--hover": "var(--xmlui-shadow-TextBox-error--hover)", "Input:color-text-TextBox-error--hover": "var(--xmlui-color-text-TextBox-error--hover)", "Input:color-border-TextBox-error--focus": "var(--xmlui-color-border-TextBox-error--focus)", "Input:color-bg-TextBox-error--focus": "var(--xmlui-color-bg-TextBox-error--focus)", "Input:shadow-TextBox-error--focus": "var(--xmlui-shadow-TextBox-error--focus)", "Input:color-text-TextBox-error--focus": "var(--xmlui-color-text-TextBox-error--focus)", "Input:thickness-outline-TextBox-error--focus": "var(--xmlui-thickness-outline-TextBox-error--focus)", "Input:color-outline-TextBox-error--focus": "var(--xmlui-color-outline-TextBox-error--focus)", "Input:style-outline-TextBox-error--focus": "var(--xmlui-style-outline-TextBox-error--focus)", "Input:offset-outline-TextBox-error--focus": "var(--xmlui-offset-outline-TextBox-error--focus)", "Input:color-placeholder-TextBox-error": "var(--xmlui-color-placeholder-TextBox-error)", "Input:color-adornment-TextBox-error": "var(--xmlui-color-adornment-TextBox-error)", "Input:radius-TextBox-warning": "var(--xmlui-radius-TextBox-warning)", "Input:color-border-TextBox-warning": "var(--xmlui-color-border-TextBox-warning)", "Input:thickness-border-TextBox-warning": "var(--xmlui-thickness-border-TextBox-warning)", "Input:style-border-TextBox-warning": "var(--xmlui-style-border-TextBox-warning)", "Input:font-size-TextBox-warning": "var(--xmlui-font-size-TextBox-warning)", "Input:padding-TextBox-warning": "var(--xmlui-padding-TextBox-warning)", "Input:color-bg-TextBox-warning": "var(--xmlui-color-bg-TextBox-warning)", "Input:shadow-TextBox-warning": "var(--xmlui-shadow-TextBox-warning)", "Input:color-text-TextBox-warning": "var(--xmlui-color-text-TextBox-warning)", "Input:color-border-TextBox-warning--hover": "var(--xmlui-color-border-TextBox-warning--hover)", "Input:color-bg-TextBox-warning--hover": "var(--xmlui-color-bg-TextBox-warning--hover)", "Input:shadow-TextBox-warning--hover": "var(--xmlui-shadow-TextBox-warning--hover)", "Input:color-text-TextBox-warning--hover": "var(--xmlui-color-text-TextBox-warning--hover)", "Input:color-border-TextBox-warning--focus": "var(--xmlui-color-border-TextBox-warning--focus)", "Input:color-bg-TextBox-warning--focus": "var(--xmlui-color-bg-TextBox-warning--focus)", "Input:shadow-TextBox-warning--focus": "var(--xmlui-shadow-TextBox-warning--focus)", "Input:color-text-TextBox-warning--focus": "var(--xmlui-color-text-TextBox-warning--focus)", "Input:thickness-outline-TextBox-warning--focus": "var(--xmlui-thickness-outline-TextBox-warning--focus)", "Input:color-outline-TextBox-warning--focus": "var(--xmlui-color-outline-TextBox-warning--focus)", "Input:style-outline-TextBox-warning--focus": "var(--xmlui-style-outline-TextBox-warning--focus)", "Input:offset-outline-TextBox-warning--focus": "var(--xmlui-offset-outline-TextBox-warning--focus)", "Input:color-placeholder-TextBox-warning": "var(--xmlui-color-placeholder-TextBox-warning)", "Input:color-adornment-TextBox-warning": "var(--xmlui-color-adornment-TextBox-warning)", "Input:radius-TextBox-success": "var(--xmlui-radius-TextBox-success)", "Input:color-border-TextBox-success": "var(--xmlui-color-border-TextBox-success)", "Input:thickness-border-TextBox-success": "var(--xmlui-thickness-border-TextBox-success)", "Input:style-border-TextBox-success": "var(--xmlui-style-border-TextBox-success)", "Input:font-size-TextBox-success": "var(--xmlui-font-size-TextBox-success)", "Input:padding-TextBox-success": "var(--xmlui-padding-TextBox-success)", "Input:color-bg-TextBox-success": "var(--xmlui-color-bg-TextBox-success)", "Input:shadow-TextBox-success": "var(--xmlui-shadow-TextBox-success)", "Input:color-text-TextBox-success": "var(--xmlui-color-text-TextBox-success)", "Input:color-border-TextBox-success--hover": "var(--xmlui-color-border-TextBox-success--hover)", "Input:color-bg-TextBox-success--hover": "var(--xmlui-color-bg-TextBox-success--hover)", "Input:shadow-TextBox-success--hover": "var(--xmlui-shadow-TextBox-success--hover)", "Input:color-text-TextBox-success--hover": "var(--xmlui-color-text-TextBox-success--hover)", "Input:color-border-TextBox-success--focus": "var(--xmlui-color-border-TextBox-success--focus)", "Input:color-bg-TextBox-success--focus": "var(--xmlui-color-bg-TextBox-success--focus)", "Input:shadow-TextBox-success--focus": "var(--xmlui-shadow-TextBox-success--focus)", "Input:color-text-TextBox-success--focus": "var(--xmlui-color-text-TextBox-success--focus)", "Input:thickness-outline-TextBox-success--focus": "var(--xmlui-thickness-outline-TextBox-success--focus)", "Input:color-outline-TextBox-success--focus": "var(--xmlui-color-outline-TextBox-success--focus)", "Input:style-outline-TextBox-success--focus": "var(--xmlui-style-outline-TextBox-success--focus)", "Input:offset-outline-TextBox-success--focus": "var(--xmlui-offset-outline-TextBox-success--focus)", "Input:color-placeholder-TextBox-success": "var(--xmlui-color-placeholder-TextBox-success)", "Input:color-adornment-TextBox-success": "var(--xmlui-color-adornment-TextBox-success)", "Input:color-bg-TextBox--disabled": "var(--xmlui-color-bg-TextBox--disabled)", "Input:color-text-TextBox--disabled": "var(--xmlui-color-text-TextBox--disabled)", "Input:color-border-TextBox--disabled": "var(--xmlui-color-border-TextBox--disabled)"}'`,inputRoot:"_inputRoot_1s937_13",input:"_input_1s937_13",adornment:"_adornment_1s937_53",error:"_error_1s937_56",warning:"_warning_1s937_91",valid:"_valid_1s937_126",readOnly:"_readOnly_1s937_178"},xt={themeVars:`'{"font-family-Text-abbr": "var(--xmlui-font-family-Text-abbr)", "font-size-Text-abbr": "var(--xmlui-font-size-Text-abbr)", "font-weight-Text-abbr": "var(--xmlui-font-weight-Text-abbr)", "font-style-Text-abbr": "var(--xmlui-font-style-Text-abbr)", "font-stretch-Text-abbr": "var(--xmlui-font-stretch-Text-abbr)", "line-decoration-Text-abbr": "var(--xmlui-line-decoration-Text-abbr)", "color-decoration-Text-abbr": "var(--xmlui-color-decoration-Text-abbr)", "style-decoration-Text-abbr": "var(--xmlui-style-decoration-Text-abbr)", "thickness-decoration-Text-abbr": "var(--xmlui-thickness-decoration-Text-abbr)", "offset-decoration-Text-abbr": "var(--xmlui-offset-decoration-Text-abbr)", "line-height-Text-abbr": "var(--xmlui-line-height-Text-abbr)", "color-Text-abbr": "var(--xmlui-color-Text-abbr)", "color-bg-Text-abbr": "var(--xmlui-color-bg-Text-abbr)", "border-radius-Text-abbr": "var(--xmlui-border-radius-Text-abbr)", "color-border-Text-abbr": "var(--xmlui-color-border-Text-abbr)", "thickness-border-Text-abbr": "var(--xmlui-thickness-border-Text-abbr)", "style-border-Text-abbr": "var(--xmlui-style-border-Text-abbr)", "margin-top-Text-abbr": "var(--xmlui-margin-top-Text-abbr)", "margin-bottom-Text-abbr": "var(--xmlui-margin-bottom-Text-abbr)", "padding-horizontal-Text-abbr": "var(--xmlui-padding-horizontal-Text-abbr)", "padding-vertical-Text-abbr": "var(--xmlui-padding-vertical-Text-abbr)", "transform-Text-abbr": "var(--xmlui-transform-Text-abbr)", "align-vertical-Text-abbr": "var(--xmlui-align-vertical-Text-abbr)", "letter-spacing-Text-abbr": "var(--xmlui-letter-spacing-Text-abbr)", "font-family-Text-cite": "var(--xmlui-font-family-Text-cite)", "font-size-Text-cite": "var(--xmlui-font-size-Text-cite)", "font-weight-Text-cite": "var(--xmlui-font-weight-Text-cite)", "font-style-Text-cite": "var(--xmlui-font-style-Text-cite)", "font-stretch-Text-cite": "var(--xmlui-font-stretch-Text-cite)", "line-decoration-Text-cite": "var(--xmlui-line-decoration-Text-cite)", "color-decoration-Text-cite": "var(--xmlui-color-decoration-Text-cite)", "style-decoration-Text-cite": "var(--xmlui-style-decoration-Text-cite)", "thickness-decoration-Text-cite": "var(--xmlui-thickness-decoration-Text-cite)", "offset-decoration-Text-cite": "var(--xmlui-offset-decoration-Text-cite)", "line-height-Text-cite": "var(--xmlui-line-height-Text-cite)", "color-Text-cite": "var(--xmlui-color-Text-cite)", "color-bg-Text-cite": "var(--xmlui-color-bg-Text-cite)", "border-radius-Text-cite": "var(--xmlui-border-radius-Text-cite)", "color-border-Text-cite": "var(--xmlui-color-border-Text-cite)", "thickness-border-Text-cite": "var(--xmlui-thickness-border-Text-cite)", "style-border-Text-cite": "var(--xmlui-style-border-Text-cite)", "margin-top-Text-cite": "var(--xmlui-margin-top-Text-cite)", "margin-bottom-Text-cite": "var(--xmlui-margin-bottom-Text-cite)", "padding-horizontal-Text-cite": "var(--xmlui-padding-horizontal-Text-cite)", "padding-vertical-Text-cite": "var(--xmlui-padding-vertical-Text-cite)", "transform-Text-cite": "var(--xmlui-transform-Text-cite)", "align-vertical-Text-cite": "var(--xmlui-align-vertical-Text-cite)", "letter-spacing-Text-cite": "var(--xmlui-letter-spacing-Text-cite)", "font-family-Text-code": "var(--xmlui-font-family-Text-code)", "font-size-Text-code": "var(--xmlui-font-size-Text-code)", "font-weight-Text-code": "var(--xmlui-font-weight-Text-code)", "font-style-Text-code": "var(--xmlui-font-style-Text-code)", "font-stretch-Text-code": "var(--xmlui-font-stretch-Text-code)", "line-decoration-Text-code": "var(--xmlui-line-decoration-Text-code)", "color-decoration-Text-code": "var(--xmlui-color-decoration-Text-code)", "style-decoration-Text-code": "var(--xmlui-style-decoration-Text-code)", "thickness-decoration-Text-code": "var(--xmlui-thickness-decoration-Text-code)", "offset-decoration-Text-code": "var(--xmlui-offset-decoration-Text-code)", "line-height-Text-code": "var(--xmlui-line-height-Text-code)", "color-Text-code": "var(--xmlui-color-Text-code)", "color-bg-Text-code": "var(--xmlui-color-bg-Text-code)", "border-radius-Text-code": "var(--xmlui-border-radius-Text-code)", "color-border-Text-code": "var(--xmlui-color-border-Text-code)", "thickness-border-Text-code": "var(--xmlui-thickness-border-Text-code)", "style-border-Text-code": "var(--xmlui-style-border-Text-code)", "margin-top-Text-code": "var(--xmlui-margin-top-Text-code)", "margin-bottom-Text-code": "var(--xmlui-margin-bottom-Text-code)", "padding-horizontal-Text-code": "var(--xmlui-padding-horizontal-Text-code)", "padding-vertical-Text-code": "var(--xmlui-padding-vertical-Text-code)", "transform-Text-code": "var(--xmlui-transform-Text-code)", "align-vertical-Text-code": "var(--xmlui-align-vertical-Text-code)", "letter-spacing-Text-code": "var(--xmlui-letter-spacing-Text-code)", "font-family-Text-codefence": "var(--xmlui-font-family-Text-codefence)", "font-size-Text-codefence": "var(--xmlui-font-size-Text-codefence)", "font-weight-Text-codefence": "var(--xmlui-font-weight-Text-codefence)", "font-style-Text-codefence": "var(--xmlui-font-style-Text-codefence)", "font-stretch-Text-codefence": "var(--xmlui-font-stretch-Text-codefence)", "line-decoration-Text-codefence": "var(--xmlui-line-decoration-Text-codefence)", "color-decoration-Text-codefence": "var(--xmlui-color-decoration-Text-codefence)", "style-decoration-Text-codefence": "var(--xmlui-style-decoration-Text-codefence)", "thickness-decoration-Text-codefence": "var(--xmlui-thickness-decoration-Text-codefence)", "offset-decoration-Text-codefence": "var(--xmlui-offset-decoration-Text-codefence)", "line-height-Text-codefence": "var(--xmlui-line-height-Text-codefence)", "color-Text-codefence": "var(--xmlui-color-Text-codefence)", "color-bg-Text-codefence": "var(--xmlui-color-bg-Text-codefence)", "border-radius-Text-codefence": "var(--xmlui-border-radius-Text-codefence)", "color-border-Text-codefence": "var(--xmlui-color-border-Text-codefence)", "thickness-border-Text-codefence": "var(--xmlui-thickness-border-Text-codefence)", "style-border-Text-codefence": "var(--xmlui-style-border-Text-codefence)", "margin-top-Text-codefence": "var(--xmlui-margin-top-Text-codefence)", "margin-bottom-Text-codefence": "var(--xmlui-margin-bottom-Text-codefence)", "padding-horizontal-Text-codefence": "var(--xmlui-padding-horizontal-Text-codefence)", "padding-vertical-Text-codefence": "var(--xmlui-padding-vertical-Text-codefence)", "transform-Text-codefence": "var(--xmlui-transform-Text-codefence)", "align-vertical-Text-codefence": "var(--xmlui-align-vertical-Text-codefence)", "letter-spacing-Text-codefence": "var(--xmlui-letter-spacing-Text-codefence)", "font-family-Text-deleted": "var(--xmlui-font-family-Text-deleted)", "font-size-Text-deleted": "var(--xmlui-font-size-Text-deleted)", "font-weight-Text-deleted": "var(--xmlui-font-weight-Text-deleted)", "font-style-Text-deleted": "var(--xmlui-font-style-Text-deleted)", "font-stretch-Text-deleted": "var(--xmlui-font-stretch-Text-deleted)", "line-decoration-Text-deleted": "var(--xmlui-line-decoration-Text-deleted)", "color-decoration-Text-deleted": "var(--xmlui-color-decoration-Text-deleted)", "style-decoration-Text-deleted": "var(--xmlui-style-decoration-Text-deleted)", "thickness-decoration-Text-deleted": "var(--xmlui-thickness-decoration-Text-deleted)", "offset-decoration-Text-deleted": "var(--xmlui-offset-decoration-Text-deleted)", "line-height-Text-deleted": "var(--xmlui-line-height-Text-deleted)", "color-Text-deleted": "var(--xmlui-color-Text-deleted)", "color-bg-Text-deleted": "var(--xmlui-color-bg-Text-deleted)", "border-radius-Text-deleted": "var(--xmlui-border-radius-Text-deleted)", "color-border-Text-deleted": "var(--xmlui-color-border-Text-deleted)", "thickness-border-Text-deleted": "var(--xmlui-thickness-border-Text-deleted)", "style-border-Text-deleted": "var(--xmlui-style-border-Text-deleted)", "margin-top-Text-deleted": "var(--xmlui-margin-top-Text-deleted)", "margin-bottom-Text-deleted": "var(--xmlui-margin-bottom-Text-deleted)", "padding-horizontal-Text-deleted": "var(--xmlui-padding-horizontal-Text-deleted)", "padding-vertical-Text-deleted": "var(--xmlui-padding-vertical-Text-deleted)", "transform-Text-deleted": "var(--xmlui-transform-Text-deleted)", "align-vertical-Text-deleted": "var(--xmlui-align-vertical-Text-deleted)", "letter-spacing-Text-deleted": "var(--xmlui-letter-spacing-Text-deleted)", "font-family-Text-inserted": "var(--xmlui-font-family-Text-inserted)", "font-size-Text-inserted": "var(--xmlui-font-size-Text-inserted)", "font-weight-Text-inserted": "var(--xmlui-font-weight-Text-inserted)", "font-style-Text-inserted": "var(--xmlui-font-style-Text-inserted)", "font-stretch-Text-inserted": "var(--xmlui-font-stretch-Text-inserted)", "line-decoration-Text-inserted": "var(--xmlui-line-decoration-Text-inserted)", "color-decoration-Text-inserted": "var(--xmlui-color-decoration-Text-inserted)", "style-decoration-Text-inserted": "var(--xmlui-style-decoration-Text-inserted)", "thickness-decoration-Text-inserted": "var(--xmlui-thickness-decoration-Text-inserted)", "offset-decoration-Text-inserted": "var(--xmlui-offset-decoration-Text-inserted)", "line-height-Text-inserted": "var(--xmlui-line-height-Text-inserted)", "color-Text-inserted": "var(--xmlui-color-Text-inserted)", "color-bg-Text-inserted": "var(--xmlui-color-bg-Text-inserted)", "border-radius-Text-inserted": "var(--xmlui-border-radius-Text-inserted)", "color-border-Text-inserted": "var(--xmlui-color-border-Text-inserted)", "thickness-border-Text-inserted": "var(--xmlui-thickness-border-Text-inserted)", "style-border-Text-inserted": "var(--xmlui-style-border-Text-inserted)", "margin-top-Text-inserted": "var(--xmlui-margin-top-Text-inserted)", "margin-bottom-Text-inserted": "var(--xmlui-margin-bottom-Text-inserted)", "padding-horizontal-Text-inserted": "var(--xmlui-padding-horizontal-Text-inserted)", "padding-vertical-Text-inserted": "var(--xmlui-padding-vertical-Text-inserted)", "transform-Text-inserted": "var(--xmlui-transform-Text-inserted)", "align-vertical-Text-inserted": "var(--xmlui-align-vertical-Text-inserted)", "letter-spacing-Text-inserted": "var(--xmlui-letter-spacing-Text-inserted)", "font-family-Text-keyboard": "var(--xmlui-font-family-Text-keyboard)", "font-size-Text-keyboard": "var(--xmlui-font-size-Text-keyboard)", "font-weight-Text-keyboard": "var(--xmlui-font-weight-Text-keyboard)", "font-style-Text-keyboard": "var(--xmlui-font-style-Text-keyboard)", "font-stretch-Text-keyboard": "var(--xmlui-font-stretch-Text-keyboard)", "line-decoration-Text-keyboard": "var(--xmlui-line-decoration-Text-keyboard)", "color-decoration-Text-keyboard": "var(--xmlui-color-decoration-Text-keyboard)", "style-decoration-Text-keyboard": "var(--xmlui-style-decoration-Text-keyboard)", "thickness-decoration-Text-keyboard": "var(--xmlui-thickness-decoration-Text-keyboard)", "offset-decoration-Text-keyboard": "var(--xmlui-offset-decoration-Text-keyboard)", "line-height-Text-keyboard": "var(--xmlui-line-height-Text-keyboard)", "color-Text-keyboard": "var(--xmlui-color-Text-keyboard)", "color-bg-Text-keyboard": "var(--xmlui-color-bg-Text-keyboard)", "border-radius-Text-keyboard": "var(--xmlui-border-radius-Text-keyboard)", "color-border-Text-keyboard": "var(--xmlui-color-border-Text-keyboard)", "thickness-border-Text-keyboard": "var(--xmlui-thickness-border-Text-keyboard)", "style-border-Text-keyboard": "var(--xmlui-style-border-Text-keyboard)", "margin-top-Text-keyboard": "var(--xmlui-margin-top-Text-keyboard)", "margin-bottom-Text-keyboard": "var(--xmlui-margin-bottom-Text-keyboard)", "padding-horizontal-Text-keyboard": "var(--xmlui-padding-horizontal-Text-keyboard)", "padding-vertical-Text-keyboard": "var(--xmlui-padding-vertical-Text-keyboard)", "transform-Text-keyboard": "var(--xmlui-transform-Text-keyboard)", "align-vertical-Text-keyboard": "var(--xmlui-align-vertical-Text-keyboard)", "letter-spacing-Text-keyboard": "var(--xmlui-letter-spacing-Text-keyboard)", "font-family-Text-marked": "var(--xmlui-font-family-Text-marked)", "font-size-Text-marked": "var(--xmlui-font-size-Text-marked)", "font-weight-Text-marked": "var(--xmlui-font-weight-Text-marked)", "font-style-Text-marked": "var(--xmlui-font-style-Text-marked)", "font-stretch-Text-marked": "var(--xmlui-font-stretch-Text-marked)", "line-decoration-Text-marked": "var(--xmlui-line-decoration-Text-marked)", "color-decoration-Text-marked": "var(--xmlui-color-decoration-Text-marked)", "style-decoration-Text-marked": "var(--xmlui-style-decoration-Text-marked)", "thickness-decoration-Text-marked": "var(--xmlui-thickness-decoration-Text-marked)", "offset-decoration-Text-marked": "var(--xmlui-offset-decoration-Text-marked)", "line-height-Text-marked": "var(--xmlui-line-height-Text-marked)", "color-Text-marked": "var(--xmlui-color-Text-marked)", "color-bg-Text-marked": "var(--xmlui-color-bg-Text-marked)", "border-radius-Text-marked": "var(--xmlui-border-radius-Text-marked)", "color-border-Text-marked": "var(--xmlui-color-border-Text-marked)", "thickness-border-Text-marked": "var(--xmlui-thickness-border-Text-marked)", "style-border-Text-marked": "var(--xmlui-style-border-Text-marked)", "margin-top-Text-marked": "var(--xmlui-margin-top-Text-marked)", "margin-bottom-Text-marked": "var(--xmlui-margin-bottom-Text-marked)", "padding-horizontal-Text-marked": "var(--xmlui-padding-horizontal-Text-marked)", "padding-vertical-Text-marked": "var(--xmlui-padding-vertical-Text-marked)", "transform-Text-marked": "var(--xmlui-transform-Text-marked)", "align-vertical-Text-marked": "var(--xmlui-align-vertical-Text-marked)", "letter-spacing-Text-marked": "var(--xmlui-letter-spacing-Text-marked)", "font-family-Text-mono": "var(--xmlui-font-family-Text-mono)", "font-size-Text-mono": "var(--xmlui-font-size-Text-mono)", "font-weight-Text-mono": "var(--xmlui-font-weight-Text-mono)", "font-style-Text-mono": "var(--xmlui-font-style-Text-mono)", "font-stretch-Text-mono": "var(--xmlui-font-stretch-Text-mono)", "line-decoration-Text-mono": "var(--xmlui-line-decoration-Text-mono)", "color-decoration-Text-mono": "var(--xmlui-color-decoration-Text-mono)", "style-decoration-Text-mono": "var(--xmlui-style-decoration-Text-mono)", "thickness-decoration-Text-mono": "var(--xmlui-thickness-decoration-Text-mono)", "offset-decoration-Text-mono": "var(--xmlui-offset-decoration-Text-mono)", "line-height-Text-mono": "var(--xmlui-line-height-Text-mono)", "color-Text-mono": "var(--xmlui-color-Text-mono)", "color-bg-Text-mono": "var(--xmlui-color-bg-Text-mono)", "border-radius-Text-mono": "var(--xmlui-border-radius-Text-mono)", "color-border-Text-mono": "var(--xmlui-color-border-Text-mono)", "thickness-border-Text-mono": "var(--xmlui-thickness-border-Text-mono)", "style-border-Text-mono": "var(--xmlui-style-border-Text-mono)", "margin-top-Text-mono": "var(--xmlui-margin-top-Text-mono)", "margin-bottom-Text-mono": "var(--xmlui-margin-bottom-Text-mono)", "padding-horizontal-Text-mono": "var(--xmlui-padding-horizontal-Text-mono)", "padding-vertical-Text-mono": "var(--xmlui-padding-vertical-Text-mono)", "transform-Text-mono": "var(--xmlui-transform-Text-mono)", "align-vertical-Text-mono": "var(--xmlui-align-vertical-Text-mono)", "letter-spacing-Text-mono": "var(--xmlui-letter-spacing-Text-mono)", "font-family-Text-sample": "var(--xmlui-font-family-Text-sample)", "font-size-Text-sample": "var(--xmlui-font-size-Text-sample)", "font-weight-Text-sample": "var(--xmlui-font-weight-Text-sample)", "font-style-Text-sample": "var(--xmlui-font-style-Text-sample)", "font-stretch-Text-sample": "var(--xmlui-font-stretch-Text-sample)", "line-decoration-Text-sample": "var(--xmlui-line-decoration-Text-sample)", "color-decoration-Text-sample": "var(--xmlui-color-decoration-Text-sample)", "style-decoration-Text-sample": "var(--xmlui-style-decoration-Text-sample)", "thickness-decoration-Text-sample": "var(--xmlui-thickness-decoration-Text-sample)", "offset-decoration-Text-sample": "var(--xmlui-offset-decoration-Text-sample)", "line-height-Text-sample": "var(--xmlui-line-height-Text-sample)", "color-Text-sample": "var(--xmlui-color-Text-sample)", "color-bg-Text-sample": "var(--xmlui-color-bg-Text-sample)", "border-radius-Text-sample": "var(--xmlui-border-radius-Text-sample)", "color-border-Text-sample": "var(--xmlui-color-border-Text-sample)", "thickness-border-Text-sample": "var(--xmlui-thickness-border-Text-sample)", "style-border-Text-sample": "var(--xmlui-style-border-Text-sample)", "margin-top-Text-sample": "var(--xmlui-margin-top-Text-sample)", "margin-bottom-Text-sample": "var(--xmlui-margin-bottom-Text-sample)", "padding-horizontal-Text-sample": "var(--xmlui-padding-horizontal-Text-sample)", "padding-vertical-Text-sample": "var(--xmlui-padding-vertical-Text-sample)", "transform-Text-sample": "var(--xmlui-transform-Text-sample)", "align-vertical-Text-sample": "var(--xmlui-align-vertical-Text-sample)", "letter-spacing-Text-sample": "var(--xmlui-letter-spacing-Text-sample)", "font-family-Text-sup": "var(--xmlui-font-family-Text-sup)", "font-size-Text-sup": "var(--xmlui-font-size-Text-sup)", "font-weight-Text-sup": "var(--xmlui-font-weight-Text-sup)", "font-style-Text-sup": "var(--xmlui-font-style-Text-sup)", "font-stretch-Text-sup": "var(--xmlui-font-stretch-Text-sup)", "line-decoration-Text-sup": "var(--xmlui-line-decoration-Text-sup)", "color-decoration-Text-sup": "var(--xmlui-color-decoration-Text-sup)", "style-decoration-Text-sup": "var(--xmlui-style-decoration-Text-sup)", "thickness-decoration-Text-sup": "var(--xmlui-thickness-decoration-Text-sup)", "offset-decoration-Text-sup": "var(--xmlui-offset-decoration-Text-sup)", "line-height-Text-sup": "var(--xmlui-line-height-Text-sup)", "color-Text-sup": "var(--xmlui-color-Text-sup)", "color-bg-Text-sup": "var(--xmlui-color-bg-Text-sup)", "border-radius-Text-sup": "var(--xmlui-border-radius-Text-sup)", "color-border-Text-sup": "var(--xmlui-color-border-Text-sup)", "thickness-border-Text-sup": "var(--xmlui-thickness-border-Text-sup)", "style-border-Text-sup": "var(--xmlui-style-border-Text-sup)", "margin-top-Text-sup": "var(--xmlui-margin-top-Text-sup)", "margin-bottom-Text-sup": "var(--xmlui-margin-bottom-Text-sup)", "padding-horizontal-Text-sup": "var(--xmlui-padding-horizontal-Text-sup)", "padding-vertical-Text-sup": "var(--xmlui-padding-vertical-Text-sup)", "transform-Text-sup": "var(--xmlui-transform-Text-sup)", "align-vertical-Text-sup": "var(--xmlui-align-vertical-Text-sup)", "letter-spacing-Text-sup": "var(--xmlui-letter-spacing-Text-sup)", "font-family-Text-sub": "var(--xmlui-font-family-Text-sub)", "font-size-Text-sub": "var(--xmlui-font-size-Text-sub)", "font-weight-Text-sub": "var(--xmlui-font-weight-Text-sub)", "font-style-Text-sub": "var(--xmlui-font-style-Text-sub)", "font-stretch-Text-sub": "var(--xmlui-font-stretch-Text-sub)", "line-decoration-Text-sub": "var(--xmlui-line-decoration-Text-sub)", "color-decoration-Text-sub": "var(--xmlui-color-decoration-Text-sub)", "style-decoration-Text-sub": "var(--xmlui-style-decoration-Text-sub)", "thickness-decoration-Text-sub": "var(--xmlui-thickness-decoration-Text-sub)", "offset-decoration-Text-sub": "var(--xmlui-offset-decoration-Text-sub)", "line-height-Text-sub": "var(--xmlui-line-height-Text-sub)", "color-Text-sub": "var(--xmlui-color-Text-sub)", "color-bg-Text-sub": "var(--xmlui-color-bg-Text-sub)", "border-radius-Text-sub": "var(--xmlui-border-radius-Text-sub)", "color-border-Text-sub": "var(--xmlui-color-border-Text-sub)", "thickness-border-Text-sub": "var(--xmlui-thickness-border-Text-sub)", "style-border-Text-sub": "var(--xmlui-style-border-Text-sub)", "margin-top-Text-sub": "var(--xmlui-margin-top-Text-sub)", "margin-bottom-Text-sub": "var(--xmlui-margin-bottom-Text-sub)", "padding-horizontal-Text-sub": "var(--xmlui-padding-horizontal-Text-sub)", "padding-vertical-Text-sub": "var(--xmlui-padding-vertical-Text-sub)", "transform-Text-sub": "var(--xmlui-transform-Text-sub)", "align-vertical-Text-sub": "var(--xmlui-align-vertical-Text-sub)", "letter-spacing-Text-sub": "var(--xmlui-letter-spacing-Text-sub)", "font-family-Text-var": "var(--xmlui-font-family-Text-var)", "font-size-Text-var": "var(--xmlui-font-size-Text-var)", "font-weight-Text-var": "var(--xmlui-font-weight-Text-var)", "font-style-Text-var": "var(--xmlui-font-style-Text-var)", "font-stretch-Text-var": "var(--xmlui-font-stretch-Text-var)", "line-decoration-Text-var": "var(--xmlui-line-decoration-Text-var)", "color-decoration-Text-var": "var(--xmlui-color-decoration-Text-var)", "style-decoration-Text-var": "var(--xmlui-style-decoration-Text-var)", "thickness-decoration-Text-var": "var(--xmlui-thickness-decoration-Text-var)", "offset-decoration-Text-var": "var(--xmlui-offset-decoration-Text-var)", "line-height-Text-var": "var(--xmlui-line-height-Text-var)", "color-Text-var": "var(--xmlui-color-Text-var)", "color-bg-Text-var": "var(--xmlui-color-bg-Text-var)", "border-radius-Text-var": "var(--xmlui-border-radius-Text-var)", "color-border-Text-var": "var(--xmlui-color-border-Text-var)", "thickness-border-Text-var": "var(--xmlui-thickness-border-Text-var)", "style-border-Text-var": "var(--xmlui-style-border-Text-var)", "margin-top-Text-var": "var(--xmlui-margin-top-Text-var)", "margin-bottom-Text-var": "var(--xmlui-margin-bottom-Text-var)", "padding-horizontal-Text-var": "var(--xmlui-padding-horizontal-Text-var)", "padding-vertical-Text-var": "var(--xmlui-padding-vertical-Text-var)", "transform-Text-var": "var(--xmlui-transform-Text-var)", "align-vertical-Text-var": "var(--xmlui-align-vertical-Text-var)", "letter-spacing-Text-var": "var(--xmlui-letter-spacing-Text-var)", "font-family-Text-title": "var(--xmlui-font-family-Text-title)", "font-size-Text-title": "var(--xmlui-font-size-Text-title)", "font-weight-Text-title": "var(--xmlui-font-weight-Text-title)", "font-style-Text-title": "var(--xmlui-font-style-Text-title)", "font-stretch-Text-title": "var(--xmlui-font-stretch-Text-title)", "line-decoration-Text-title": "var(--xmlui-line-decoration-Text-title)", "color-decoration-Text-title": "var(--xmlui-color-decoration-Text-title)", "style-decoration-Text-title": "var(--xmlui-style-decoration-Text-title)", "thickness-decoration-Text-title": "var(--xmlui-thickness-decoration-Text-title)", "offset-decoration-Text-title": "var(--xmlui-offset-decoration-Text-title)", "line-height-Text-title": "var(--xmlui-line-height-Text-title)", "color-Text-title": "var(--xmlui-color-Text-title)", "color-bg-Text-title": "var(--xmlui-color-bg-Text-title)", "border-radius-Text-title": "var(--xmlui-border-radius-Text-title)", "color-border-Text-title": "var(--xmlui-color-border-Text-title)", "thickness-border-Text-title": "var(--xmlui-thickness-border-Text-title)", "style-border-Text-title": "var(--xmlui-style-border-Text-title)", "margin-top-Text-title": "var(--xmlui-margin-top-Text-title)", "margin-bottom-Text-title": "var(--xmlui-margin-bottom-Text-title)", "padding-horizontal-Text-title": "var(--xmlui-padding-horizontal-Text-title)", "padding-vertical-Text-title": "var(--xmlui-padding-vertical-Text-title)", "transform-Text-title": "var(--xmlui-transform-Text-title)", "align-vertical-Text-title": "var(--xmlui-align-vertical-Text-title)", "letter-spacing-Text-title": "var(--xmlui-letter-spacing-Text-title)", "font-family-Text-subtitle": "var(--xmlui-font-family-Text-subtitle)", "font-size-Text-subtitle": "var(--xmlui-font-size-Text-subtitle)", "font-weight-Text-subtitle": "var(--xmlui-font-weight-Text-subtitle)", "font-style-Text-subtitle": "var(--xmlui-font-style-Text-subtitle)", "font-stretch-Text-subtitle": "var(--xmlui-font-stretch-Text-subtitle)", "line-decoration-Text-subtitle": "var(--xmlui-line-decoration-Text-subtitle)", "color-decoration-Text-subtitle": "var(--xmlui-color-decoration-Text-subtitle)", "style-decoration-Text-subtitle": "var(--xmlui-style-decoration-Text-subtitle)", "thickness-decoration-Text-subtitle": "var(--xmlui-thickness-decoration-Text-subtitle)", "offset-decoration-Text-subtitle": "var(--xmlui-offset-decoration-Text-subtitle)", "line-height-Text-subtitle": "var(--xmlui-line-height-Text-subtitle)", "color-Text-subtitle": "var(--xmlui-color-Text-subtitle)", "color-bg-Text-subtitle": "var(--xmlui-color-bg-Text-subtitle)", "border-radius-Text-subtitle": "var(--xmlui-border-radius-Text-subtitle)", "color-border-Text-subtitle": "var(--xmlui-color-border-Text-subtitle)", "thickness-border-Text-subtitle": "var(--xmlui-thickness-border-Text-subtitle)", "style-border-Text-subtitle": "var(--xmlui-style-border-Text-subtitle)", "margin-top-Text-subtitle": "var(--xmlui-margin-top-Text-subtitle)", "margin-bottom-Text-subtitle": "var(--xmlui-margin-bottom-Text-subtitle)", "padding-horizontal-Text-subtitle": "var(--xmlui-padding-horizontal-Text-subtitle)", "padding-vertical-Text-subtitle": "var(--xmlui-padding-vertical-Text-subtitle)", "transform-Text-subtitle": "var(--xmlui-transform-Text-subtitle)", "align-vertical-Text-subtitle": "var(--xmlui-align-vertical-Text-subtitle)", "letter-spacing-Text-subtitle": "var(--xmlui-letter-spacing-Text-subtitle)", "font-family-Text-small": "var(--xmlui-font-family-Text-small)", "font-size-Text-small": "var(--xmlui-font-size-Text-small)", "font-weight-Text-small": "var(--xmlui-font-weight-Text-small)", "font-style-Text-small": "var(--xmlui-font-style-Text-small)", "font-stretch-Text-small": "var(--xmlui-font-stretch-Text-small)", "line-decoration-Text-small": "var(--xmlui-line-decoration-Text-small)", "color-decoration-Text-small": "var(--xmlui-color-decoration-Text-small)", "style-decoration-Text-small": "var(--xmlui-style-decoration-Text-small)", "thickness-decoration-Text-small": "var(--xmlui-thickness-decoration-Text-small)", "offset-decoration-Text-small": "var(--xmlui-offset-decoration-Text-small)", "line-height-Text-small": "var(--xmlui-line-height-Text-small)", "color-Text-small": "var(--xmlui-color-Text-small)", "color-bg-Text-small": "var(--xmlui-color-bg-Text-small)", "border-radius-Text-small": "var(--xmlui-border-radius-Text-small)", "color-border-Text-small": "var(--xmlui-color-border-Text-small)", "thickness-border-Text-small": "var(--xmlui-thickness-border-Text-small)", "style-border-Text-small": "var(--xmlui-style-border-Text-small)", "margin-top-Text-small": "var(--xmlui-margin-top-Text-small)", "margin-bottom-Text-small": "var(--xmlui-margin-bottom-Text-small)", "padding-horizontal-Text-small": "var(--xmlui-padding-horizontal-Text-small)", "padding-vertical-Text-small": "var(--xmlui-padding-vertical-Text-small)", "transform-Text-small": "var(--xmlui-transform-Text-small)", "align-vertical-Text-small": "var(--xmlui-align-vertical-Text-small)", "letter-spacing-Text-small": "var(--xmlui-letter-spacing-Text-small)", "font-family-Text-caption": "var(--xmlui-font-family-Text-caption)", "font-size-Text-caption": "var(--xmlui-font-size-Text-caption)", "font-weight-Text-caption": "var(--xmlui-font-weight-Text-caption)", "font-style-Text-caption": "var(--xmlui-font-style-Text-caption)", "font-stretch-Text-caption": "var(--xmlui-font-stretch-Text-caption)", "line-decoration-Text-caption": "var(--xmlui-line-decoration-Text-caption)", "color-decoration-Text-caption": "var(--xmlui-color-decoration-Text-caption)", "style-decoration-Text-caption": "var(--xmlui-style-decoration-Text-caption)", "thickness-decoration-Text-caption": "var(--xmlui-thickness-decoration-Text-caption)", "offset-decoration-Text-caption": "var(--xmlui-offset-decoration-Text-caption)", "line-height-Text-caption": "var(--xmlui-line-height-Text-caption)", "color-Text-caption": "var(--xmlui-color-Text-caption)", "color-bg-Text-caption": "var(--xmlui-color-bg-Text-caption)", "border-radius-Text-caption": "var(--xmlui-border-radius-Text-caption)", "color-border-Text-caption": "var(--xmlui-color-border-Text-caption)", "thickness-border-Text-caption": "var(--xmlui-thickness-border-Text-caption)", "style-border-Text-caption": "var(--xmlui-style-border-Text-caption)", "margin-top-Text-caption": "var(--xmlui-margin-top-Text-caption)", "margin-bottom-Text-caption": "var(--xmlui-margin-bottom-Text-caption)", "padding-horizontal-Text-caption": "var(--xmlui-padding-horizontal-Text-caption)", "padding-vertical-Text-caption": "var(--xmlui-padding-vertical-Text-caption)", "transform-Text-caption": "var(--xmlui-transform-Text-caption)", "align-vertical-Text-caption": "var(--xmlui-align-vertical-Text-caption)", "letter-spacing-Text-caption": "var(--xmlui-letter-spacing-Text-caption)", "font-family-Text-placeholder": "var(--xmlui-font-family-Text-placeholder)", "font-size-Text-placeholder": "var(--xmlui-font-size-Text-placeholder)", "font-weight-Text-placeholder": "var(--xmlui-font-weight-Text-placeholder)", "font-style-Text-placeholder": "var(--xmlui-font-style-Text-placeholder)", "font-stretch-Text-placeholder": "var(--xmlui-font-stretch-Text-placeholder)", "line-decoration-Text-placeholder": "var(--xmlui-line-decoration-Text-placeholder)", "color-decoration-Text-placeholder": "var(--xmlui-color-decoration-Text-placeholder)", "style-decoration-Text-placeholder": "var(--xmlui-style-decoration-Text-placeholder)", "thickness-decoration-Text-placeholder": "var(--xmlui-thickness-decoration-Text-placeholder)", "offset-decoration-Text-placeholder": "var(--xmlui-offset-decoration-Text-placeholder)", "line-height-Text-placeholder": "var(--xmlui-line-height-Text-placeholder)", "color-Text-placeholder": "var(--xmlui-color-Text-placeholder)", "color-bg-Text-placeholder": "var(--xmlui-color-bg-Text-placeholder)", "border-radius-Text-placeholder": "var(--xmlui-border-radius-Text-placeholder)", "color-border-Text-placeholder": "var(--xmlui-color-border-Text-placeholder)", "thickness-border-Text-placeholder": "var(--xmlui-thickness-border-Text-placeholder)", "style-border-Text-placeholder": "var(--xmlui-style-border-Text-placeholder)", "margin-top-Text-placeholder": "var(--xmlui-margin-top-Text-placeholder)", "margin-bottom-Text-placeholder": "var(--xmlui-margin-bottom-Text-placeholder)", "padding-horizontal-Text-placeholder": "var(--xmlui-padding-horizontal-Text-placeholder)", "padding-vertical-Text-placeholder": "var(--xmlui-padding-vertical-Text-placeholder)", "transform-Text-placeholder": "var(--xmlui-transform-Text-placeholder)", "align-vertical-Text-placeholder": "var(--xmlui-align-vertical-Text-placeholder)", "letter-spacing-Text-placeholder": "var(--xmlui-letter-spacing-Text-placeholder)", "font-family-Text-paragraph": "var(--xmlui-font-family-Text-paragraph)", "font-size-Text-paragraph": "var(--xmlui-font-size-Text-paragraph)", "font-weight-Text-paragraph": "var(--xmlui-font-weight-Text-paragraph)", "font-style-Text-paragraph": "var(--xmlui-font-style-Text-paragraph)", "font-stretch-Text-paragraph": "var(--xmlui-font-stretch-Text-paragraph)", "line-decoration-Text-paragraph": "var(--xmlui-line-decoration-Text-paragraph)", "color-decoration-Text-paragraph": "var(--xmlui-color-decoration-Text-paragraph)", "style-decoration-Text-paragraph": "var(--xmlui-style-decoration-Text-paragraph)", "thickness-decoration-Text-paragraph": "var(--xmlui-thickness-decoration-Text-paragraph)", "offset-decoration-Text-paragraph": "var(--xmlui-offset-decoration-Text-paragraph)", "line-height-Text-paragraph": "var(--xmlui-line-height-Text-paragraph)", "color-Text-paragraph": "var(--xmlui-color-Text-paragraph)", "color-bg-Text-paragraph": "var(--xmlui-color-bg-Text-paragraph)", "border-radius-Text-paragraph": "var(--xmlui-border-radius-Text-paragraph)", "color-border-Text-paragraph": "var(--xmlui-color-border-Text-paragraph)", "thickness-border-Text-paragraph": "var(--xmlui-thickness-border-Text-paragraph)", "style-border-Text-paragraph": "var(--xmlui-style-border-Text-paragraph)", "margin-top-Text-paragraph": "var(--xmlui-margin-top-Text-paragraph)", "margin-bottom-Text-paragraph": "var(--xmlui-margin-bottom-Text-paragraph)", "padding-horizontal-Text-paragraph": "var(--xmlui-padding-horizontal-Text-paragraph)", "padding-vertical-Text-paragraph": "var(--xmlui-padding-vertical-Text-paragraph)", "transform-Text-paragraph": "var(--xmlui-transform-Text-paragraph)", "align-vertical-Text-paragraph": "var(--xmlui-align-vertical-Text-paragraph)", "letter-spacing-Text-paragraph": "var(--xmlui-letter-spacing-Text-paragraph)", "font-family-Text-subheading": "var(--xmlui-font-family-Text-subheading)", "font-size-Text-subheading": "var(--xmlui-font-size-Text-subheading)", "font-weight-Text-subheading": "var(--xmlui-font-weight-Text-subheading)", "font-style-Text-subheading": "var(--xmlui-font-style-Text-subheading)", "font-stretch-Text-subheading": "var(--xmlui-font-stretch-Text-subheading)", "line-decoration-Text-subheading": "var(--xmlui-line-decoration-Text-subheading)", "color-decoration-Text-subheading": "var(--xmlui-color-decoration-Text-subheading)", "style-decoration-Text-subheading": "var(--xmlui-style-decoration-Text-subheading)", "thickness-decoration-Text-subheading": "var(--xmlui-thickness-decoration-Text-subheading)", "offset-decoration-Text-subheading": "var(--xmlui-offset-decoration-Text-subheading)", "line-height-Text-subheading": "var(--xmlui-line-height-Text-subheading)", "color-Text-subheading": "var(--xmlui-color-Text-subheading)", "color-bg-Text-subheading": "var(--xmlui-color-bg-Text-subheading)", "border-radius-Text-subheading": "var(--xmlui-border-radius-Text-subheading)", "color-border-Text-subheading": "var(--xmlui-color-border-Text-subheading)", "thickness-border-Text-subheading": "var(--xmlui-thickness-border-Text-subheading)", "style-border-Text-subheading": "var(--xmlui-style-border-Text-subheading)", "margin-top-Text-subheading": "var(--xmlui-margin-top-Text-subheading)", "margin-bottom-Text-subheading": "var(--xmlui-margin-bottom-Text-subheading)", "padding-horizontal-Text-subheading": "var(--xmlui-padding-horizontal-Text-subheading)", "padding-vertical-Text-subheading": "var(--xmlui-padding-vertical-Text-subheading)", "transform-Text-subheading": "var(--xmlui-transform-Text-subheading)", "align-vertical-Text-subheading": "var(--xmlui-align-vertical-Text-subheading)", "letter-spacing-Text-subheading": "var(--xmlui-letter-spacing-Text-subheading)", "font-family-Text-tableheading": "var(--xmlui-font-family-Text-tableheading)", "font-size-Text-tableheading": "var(--xmlui-font-size-Text-tableheading)", "font-weight-Text-tableheading": "var(--xmlui-font-weight-Text-tableheading)", "font-style-Text-tableheading": "var(--xmlui-font-style-Text-tableheading)", "font-stretch-Text-tableheading": "var(--xmlui-font-stretch-Text-tableheading)", "line-decoration-Text-tableheading": "var(--xmlui-line-decoration-Text-tableheading)", "color-decoration-Text-tableheading": "var(--xmlui-color-decoration-Text-tableheading)", "style-decoration-Text-tableheading": "var(--xmlui-style-decoration-Text-tableheading)", "thickness-decoration-Text-tableheading": "var(--xmlui-thickness-decoration-Text-tableheading)", "offset-decoration-Text-tableheading": "var(--xmlui-offset-decoration-Text-tableheading)", "line-height-Text-tableheading": "var(--xmlui-line-height-Text-tableheading)", "color-Text-tableheading": "var(--xmlui-color-Text-tableheading)", "color-bg-Text-tableheading": "var(--xmlui-color-bg-Text-tableheading)", "border-radius-Text-tableheading": "var(--xmlui-border-radius-Text-tableheading)", "color-border-Text-tableheading": "var(--xmlui-color-border-Text-tableheading)", "thickness-border-Text-tableheading": "var(--xmlui-thickness-border-Text-tableheading)", "style-border-Text-tableheading": "var(--xmlui-style-border-Text-tableheading)", "margin-top-Text-tableheading": "var(--xmlui-margin-top-Text-tableheading)", "margin-bottom-Text-tableheading": "var(--xmlui-margin-bottom-Text-tableheading)", "padding-horizontal-Text-tableheading": "var(--xmlui-padding-horizontal-Text-tableheading)", "padding-vertical-Text-tableheading": "var(--xmlui-padding-vertical-Text-tableheading)", "transform-Text-tableheading": "var(--xmlui-transform-Text-tableheading)", "align-vertical-Text-tableheading": "var(--xmlui-align-vertical-Text-tableheading)", "letter-spacing-Text-tableheading": "var(--xmlui-letter-spacing-Text-tableheading)", "font-family-Text-secondary": "var(--xmlui-font-family-Text-secondary)", "font-size-Text-secondary": "var(--xmlui-font-size-Text-secondary)", "font-weight-Text-secondary": "var(--xmlui-font-weight-Text-secondary)", "font-style-Text-secondary": "var(--xmlui-font-style-Text-secondary)", "font-stretch-Text-secondary": "var(--xmlui-font-stretch-Text-secondary)", "line-decoration-Text-secondary": "var(--xmlui-line-decoration-Text-secondary)", "color-decoration-Text-secondary": "var(--xmlui-color-decoration-Text-secondary)", "style-decoration-Text-secondary": "var(--xmlui-style-decoration-Text-secondary)", "thickness-decoration-Text-secondary": "var(--xmlui-thickness-decoration-Text-secondary)", "offset-decoration-Text-secondary": "var(--xmlui-offset-decoration-Text-secondary)", "line-height-Text-secondary": "var(--xmlui-line-height-Text-secondary)", "color-Text-secondary": "var(--xmlui-color-Text-secondary)", "color-bg-Text-secondary": "var(--xmlui-color-bg-Text-secondary)", "border-radius-Text-secondary": "var(--xmlui-border-radius-Text-secondary)", "color-border-Text-secondary": "var(--xmlui-color-border-Text-secondary)", "thickness-border-Text-secondary": "var(--xmlui-thickness-border-Text-secondary)", "style-border-Text-secondary": "var(--xmlui-style-border-Text-secondary)", "margin-top-Text-secondary": "var(--xmlui-margin-top-Text-secondary)", "margin-bottom-Text-secondary": "var(--xmlui-margin-bottom-Text-secondary)", "padding-horizontal-Text-secondary": "var(--xmlui-padding-horizontal-Text-secondary)", "padding-vertical-Text-secondary": "var(--xmlui-padding-vertical-Text-secondary)", "transform-Text-secondary": "var(--xmlui-transform-Text-secondary)", "align-vertical-Text-secondary": "var(--xmlui-align-vertical-Text-secondary)", "letter-spacing-Text-secondary": "var(--xmlui-letter-spacing-Text-secondary)"}'`,text:"_text_1v46g_13",abbr:"_abbr_1v46g_23",cite:"_cite_1v46g_51",codefence:"_codefence_1v46g_79",code:"_code_1v46g_79",deleted:"_deleted_1v46g_135",inserted:"_inserted_1v46g_178",keyboard:"_keyboard_1v46g_221",marked:"_marked_1v46g_249",mono:"_mono_1v46g_292",sample:"_sample_1v46g_320",sup:"_sup_1v46g_348",sub:"_sub_1v46g_376",var:"_var_1v46g_404",title:"_title_1v46g_432",subtitle:"_subtitle_1v46g_460",small:"_small_1v46g_488",caption:"_caption_1v46g_516",placeholder:"_placeholder_1v46g_544",paragraph:"_paragraph_1v46g_572",subheading:"_subheading_1v46g_600",tableheading:"_tableheading_1v46g_628",secondary:"_secondary_1v46g_656",strong:"_strong_1v46g_684",truncateOverflow:"_truncateOverflow_1v46g_692",preserveLinebreaks:"_preserveLinebreaks_1v46g_699",noEllipsis:"_noEllipsis_1v46g_703"};function Mo(e){const t=e&&e>0?e:0;return t>1?{WebkitLineClamp:t,lineClamp:t,display:"-webkit-box",WebkitBoxOrient:"vertical",boxOrient:"vertical",whiteSpace:"initial"}:sn}function fn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ho(...e){return t=>e.forEach(o=>fn(o,t))}const gn=Y.forwardRef(function({uid:t,variant:o,maxLines:i=0,style:n,children:s,preserveLinebreaks:l,ellipses:c=!0,...u},w){const f=Y.useRef(null),p=w?Ho(f,w):f,C=Y.useMemo(()=>!o||!ko[o]?"div":ko[o],[o]);return oe.jsx(oe.Fragment,{children:oe.jsx(C,{...u,ref:p,className:ot([xt.text,xt[o||"default"],{[xt.truncateOverflow]:i>0,[xt.preserveLinebreaks]:l,[xt.noEllipsis]:!c}]),style:{...n,...Mo(i)},children:s})})}),vn={themeVars:`'{"color-text-FormItemLabel": "var(--xmlui-color-text-FormItemLabel)", "font-family-FormItemLabel": "var(--xmlui-font-family-FormItemLabel)", "font-size-FormItemLabel": "var(--xmlui-font-size-FormItemLabel)", "font-weight-FormItemLabel": "var(--xmlui-font-weight-FormItemLabel)", "font-style-FormItemLabel": "var(--xmlui-font-style-FormItemLabel)", "transform-text-FormItemLabel": "var(--xmlui-transform-text-FormItemLabel)", "color-text-FormItemLabel-required": "var(--xmlui-color-text-FormItemLabel-required)", "font-size-FormItemLabel-required": "var(--xmlui-font-size-FormItemLabel-required)", "font-weight-FormItemLabel-required": "var(--xmlui-font-weight-FormItemLabel-required)", "font-style-FormItemLabel-required": "var(--xmlui-font-style-FormItemLabel-required)", "transform-text-FormItemLabel-required": "var(--xmlui-transform-text-FormItemLabel-required)", "color-text-FormItemLabel-requiredMark": "var(--xmlui-color-text-FormItemLabel-requiredMark)"}'`,container:"_container_knwya_13",top:"_top_knwya_20",end:"_end_knwya_25",bottom:"_bottom_knwya_31",start:"_start_knwya_36",shrinkToLabel:"_shrinkToLabel_knwya_42",inputLabel:"_inputLabel_knwya_45",disabled:"_disabled_knwya_58",labelBreak:"_labelBreak_knwya_62",required:"_required_knwya_66",requiredMark:"_requiredMark_knwya_73"},bn={themeVars:`'{"size-Spinner": "var(--xmlui-size-Spinner)", "thickness-Spinner": "var(--xmlui-thickness-Spinner)", "color-border-Spinner": "var(--xmlui-color-border-Spinner)"}'`,"lds-ring":"_lds-ring_xu4p3_13",fullScreenSpinnerWrapper:"_fullScreenSpinnerWrapper_xu4p3_54"},it="TextBox",Fo=k({status:"experimental",description:`The \`${it}\` is an input component that allows users to input and edit textual data.`,props:{placeholder:nt(),initialValue:ze(),label:xe(),labelPosition:Re("top"),labelWidth:Qe(it),labelBreak:Xe(it),maxLength:_t(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),startText:No(),startIcon:zo(),endText:Lo(),endIcon:Co()},events:{gotFocus:Ae(it),lostFocus:Ne(it),didChange:Te(it)},apis:{focus:Je(it),value:a("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ze()},themeVars:N(xn.themeVars),defaultThemeVars:{"radius-Input":"$radius","color-text-Input":"$color-text-primary","color-bg-Input--disabled":"$color-bg--disabled","thickness-border-Input":"1px","min-height-Input":"39px","padding-Input":"$space-2","style-border-Input":"solid","color-border-Input--disabled":"$color-border--disabled","color-text-Input--disabled":"$color-text--disabled","color-border-Input-error":"$color-border-Input-default--error","color-border-Input-warning":"$color-border-Input-default--warning","color-border-Input-success":"$color-border-Input-default--success","color-placeholder-Input":"$color-text-subtitle","color-adornment-Input":"$color-text-subtitle","color-outline-Input--focus":"$color-outline--focus","thickness-outline-Input--focus":"$thickness-outline--focus","style-outline-Input--focus":"$style-outline--focus","offset-outline-Input--focus":"$offset-outline--focus",light:{},dark:{}}}),yn=k({...Fo,description:"The `Password` component is a specialized version of the `TextBox` component that allows users to input and edit passwords."}),Wo="Theme",Tn=k({description:`The \`${Wo}\` component provides a way to define a particular theming context for its nested components. The XMLUI framework uses \`${Wo}\` to define the default theming context for all of its child components. Theme variables and theme settings only work in this context.`,allowArbitraryProps:!0,props:{themeId:a("This property specifies which theme to use by setting the theme's id."),tone:a("This property allows the setting of the current theme's tone. Tone is either `light` or `dark`."),root:a("This property indicates whether the component is at the root of the application.")},opaque:!0}),kn=[{value:"vertical",description:"This layout puts the navigation bar on the left side and displays its items vertically. The main content is aligned to the right (including the header and the footer), and its content is a single scroll container; every part of it moves as you scroll the page. This layout does not display the logo in the app header."},{value:"vertical-sticky",description:"Similar to `vertical`, the header and the navigation bar dock to the top of the main content's viewport, while the footer sticks to the bottom. This layout does not display the logo in the app header."},{value:"vertical-full-header",description:"Similar to `vertical-sticky`. However, the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom."},{value:"condensed",description:"Similar to `horizontal`. However, the header and the navigation bar are in a single header block. (default)"},{value:"condensed-sticky",description:"However, the header and the navigation bar are in a single header block."},{value:"horizontal",description:"This layout stacks the layout sections in a single column in this order: header, navigation bar, main content, and footer. The application is a single scroll container; every part moves as you scroll the page."},{value:"horizontal-sticky",description:"Similar to `horizontal`, the header and the navigation bar dock to the top of the viewport, while the footer sticks to the bottom."}];Y.createContext(null);const wn={themeVars:`'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "shadow-header-App": "var(--xmlui-shadow-header-App)", "shadow-pages-App": "var(--xmlui-shadow-pages-App)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "border-bottom-AppHeader": "var(--xmlui-border-bottom-AppHeader)"}'`,wrapper:"_wrapper_1e0pi_13",vertical:"_vertical_1e0pi_23",contentWrapper:"_contentWrapper_1e0pi_27",navPanelWrapper:"_navPanelWrapper_1e0pi_32",PagesWrapper:"_PagesWrapper_1e0pi_36",footerWrapper:"_footerWrapper_1e0pi_40",sticky:"_sticky_1e0pi_43",horizontal:"_horizontal_1e0pi_47",verticalFullHeader:"_verticalFullHeader_1e0pi_68",PagesWrapperInner:"_PagesWrapperInner_1e0pi_85",scrollWholePage:"_scrollWholePage_1e0pi_97",headerWrapper:"_headerWrapper_1e0pi_100",content:"_content_1e0pi_27",noScrollbarGutters:"_noScrollbarGutters_1e0pi_138"},$n={themeVars:`'{"padding-horizontal-AppHeader": "var(--xmlui-padding-horizontal-AppHeader)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "padding-top-AppHeader": "var(--xmlui-padding-top-AppHeader)", "padding-bottom-AppHeader": "var(--xmlui-padding-bottom-AppHeader)", "padding-left-AppHeader": "var(--xmlui-padding-left-AppHeader)", "padding-right-AppHeader": "var(--xmlui-padding-right-AppHeader)", "padding-AppHeader": "var(--xmlui-padding-AppHeader)", "padding-horizontal-logo-AppHeader": "var(--xmlui-padding-horizontal-logo-AppHeader)", "padding-vertical-logo-AppHeader": "var(--xmlui-padding-vertical-logo-AppHeader)", "padding-top-logo-AppHeader": "var(--xmlui-padding-top-logo-AppHeader)", "padding-bottom-logo-AppHeader": "var(--xmlui-padding-bottom-logo-AppHeader)", "padding-left-logo-AppHeader": "var(--xmlui-padding-left-logo-AppHeader)", "padding-right-logo-AppHeader": "var(--xmlui-padding-right-logo-AppHeader)", "padding-logo-AppHeader": "var(--xmlui-padding-logo-AppHeader)", "color-border-horizontal-AppHeader": "var(--xmlui-color-border-horizontal-AppHeader)", "thickness-border-horizontal-AppHeader": "var(--xmlui-thickness-border-horizontal-AppHeader)", "style-border-horizontal-AppHeader": "var(--xmlui-style-border-horizontal-AppHeader)", "color-border-vertical-AppHeader": "var(--xmlui-color-border-vertical-AppHeader)", "thickness-border-vertical-AppHeader": "var(--xmlui-thickness-border-vertical-AppHeader)", "style-border-vertical-AppHeader": "var(--xmlui-style-border-vertical-AppHeader)", "color-border-left-AppHeader": "var(--xmlui-color-border-left-AppHeader)", "thickness-border-left-AppHeader": "var(--xmlui-thickness-border-left-AppHeader)", "style-border-left-AppHeader": "var(--xmlui-style-border-left-AppHeader)", "color-border-right-AppHeader": "var(--xmlui-color-border-right-AppHeader)", "thickness-border-right-AppHeader": "var(--xmlui-thickness-border-right-AppHeader)", "style-border-right-AppHeader": "var(--xmlui-style-border-right-AppHeader)", "color-border-top-AppHeader": "var(--xmlui-color-border-top-AppHeader)", "thickness-border-top-AppHeader": "var(--xmlui-thickness-border-top-AppHeader)", "style-border-top-AppHeader": "var(--xmlui-style-border-top-AppHeader)", "color-border-bottom-AppHeader": "var(--xmlui-color-border-bottom-AppHeader)", "thickness-border-bottom-AppHeader": "var(--xmlui-thickness-border-bottom-AppHeader)", "style-border-bottom-AppHeader": "var(--xmlui-style-border-bottom-AppHeader)", "color-border-AppHeader": "var(--xmlui-color-border-AppHeader)", "thickness-border-AppHeader": "var(--xmlui-thickness-border-AppHeader)", "style-border-AppHeader": "var(--xmlui-style-border-AppHeader)", "radius-AppHeader": "var(--xmlui-radius-AppHeader)", "width-logo-AppHeader": "var(--xmlui-width-logo-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "max-content-width-AppHeader": "var(--xmlui-max-content-width-AppHeader)"}'`,header:"_header_1h7yt_13",headerInner:"_headerInner_1h7yt_36",full:"_full_1h7yt_51",childrenWrapper:"_childrenWrapper_1h7yt_55",logoAndTitle:"_logoAndTitle_1h7yt_67",logoContainer:"_logoContainer_1h7yt_80",customLogoContainer:"_customLogoContainer_1h7yt_89",rightItems:"_rightItems_1h7yt_98",appHub:"_appHub_1h7yt_110"},_n={themeVars:'"[]"',img:"_img_dk2s3_13",clickable:"_clickable_dk2s3_19"},In={themeVars:`'{"radius-NavLink": "var(--xmlui-radius-NavLink)", "color-bg-NavLink": "var(--xmlui-color-bg-NavLink)", "color-bg-NavLink--hover": "var(--xmlui-color-bg-NavLink--hover)", "color-bg-NavLink--hover--active": "var(--xmlui-color-bg-NavLink--hover--active)", "color-bg-NavLink--active": "var(--xmlui-color-bg-NavLink--active)", "color-bg-NavLink--pressed": "var(--xmlui-color-bg-NavLink--pressed)", "color-bg-NavLink--pressed--active": "var(--xmlui-color-bg-NavLink--pressed--active)", "padding-horizontal-NavLink": "var(--xmlui-padding-horizontal-NavLink)", "padding-vertical-NavLink": "var(--xmlui-padding-vertical-NavLink)", "font-size-NavLink": "var(--xmlui-font-size-NavLink)", "color-text-NavLink": "var(--xmlui-color-text-NavLink)", "color-text-NavLink--hover": "var(--xmlui-color-text-NavLink--hover)", "color-text-NavLink--active": "var(--xmlui-color-text-NavLink--active)", "color-text-NavLink--hover--active": "var(--xmlui-color-text-NavLink--hover--active)", "color-text-NavLink--pressed": "var(--xmlui-color-text-NavLink--pressed)", "color-text-NavLink--pressed--active": "var(--xmlui-color-text-NavLink--pressed--active)", "color-icon-NavLink": "var(--xmlui-color-icon-NavLink)", "font-family-NavLink": "var(--xmlui-font-family-NavLink)", "font-weight-NavLink": "var(--xmlui-font-weight-NavLink)", "font-weight-NavLink--pressed": "var(--xmlui-font-weight-NavLink--pressed)", "font-weight-NavLink--active": "var(--xmlui-font-weight-NavLink--active)", "radius-indicator-NavLink": "var(--xmlui-radius-indicator-NavLink)", "thickness-indicator-NavLink": "var(--xmlui-thickness-indicator-NavLink)", "color-indicator-NavLink": "var(--xmlui-color-indicator-NavLink)", "color-indicator-NavLink--hover": "var(--xmlui-color-indicator-NavLink--hover)", "color-indicator-NavLink--active": "var(--xmlui-color-indicator-NavLink--active)", "color-indicator-NavLink--pressed": "var(--xmlui-color-indicator-NavLink--pressed)", "thickness-outline-NavLink--focus": "var(--xmlui-thickness-outline-NavLink--focus)", "color-outline-NavLink--focus": "var(--xmlui-color-outline-NavLink--focus)", "style-outline-NavLink--focus": "var(--xmlui-style-outline-NavLink--focus)", "offset-outline-NavLink--focus": "var(--xmlui-offset-outline-NavLink--focus)"}'`,content:"_content_qpkxv_13",base:"_base_qpkxv_13",icon:"_icon_qpkxv_33",includeHoverIndicator:"_includeHoverIndicator_qpkxv_39",displayActive:"_displayActive_qpkxv_49",navItemActive:"_navItemActive_qpkxv_86",disabled:"_disabled_qpkxv_121",vertical:"_vertical_qpkxv_125",indented:"_indented_qpkxv_134"},Bn={themeVars:`'{"color-border-horizontal-NavPanel": "var(--xmlui-color-border-horizontal-NavPanel)", "thickness-border-horizontal-NavPanel": "var(--xmlui-thickness-border-horizontal-NavPanel)", "style-border-horizontal-NavPanel": "var(--xmlui-style-border-horizontal-NavPanel)", "color-border-vertical-NavPanel": "var(--xmlui-color-border-vertical-NavPanel)", "thickness-border-vertical-NavPanel": "var(--xmlui-thickness-border-vertical-NavPanel)", "style-border-vertical-NavPanel": "var(--xmlui-style-border-vertical-NavPanel)", "color-border-left-NavPanel": "var(--xmlui-color-border-left-NavPanel)", "thickness-border-left-NavPanel": "var(--xmlui-thickness-border-left-NavPanel)", "style-border-left-NavPanel": "var(--xmlui-style-border-left-NavPanel)", "color-border-right-NavPanel": "var(--xmlui-color-border-right-NavPanel)", "thickness-border-right-NavPanel": "var(--xmlui-thickness-border-right-NavPanel)", "style-border-right-NavPanel": "var(--xmlui-style-border-right-NavPanel)", "color-border-top-NavPanel": "var(--xmlui-color-border-top-NavPanel)", "thickness-border-top-NavPanel": "var(--xmlui-thickness-border-top-NavPanel)", "style-border-top-NavPanel": "var(--xmlui-style-border-top-NavPanel)", "color-border-bottom-NavPanel": "var(--xmlui-color-border-bottom-NavPanel)", "thickness-border-bottom-NavPanel": "var(--xmlui-thickness-border-bottom-NavPanel)", "style-border-bottom-NavPanel": "var(--xmlui-style-border-bottom-NavPanel)", "color-border-NavPanel": "var(--xmlui-color-border-NavPanel)", "thickness-border-NavPanel": "var(--xmlui-thickness-border-NavPanel)", "style-border-NavPanel": "var(--xmlui-style-border-NavPanel)", "radius-NavPanel": "var(--xmlui-radius-NavPanel)", "color-bg-NavPanel": "var(--xmlui-color-bg-NavPanel)", "shadow-NavPanel": "var(--xmlui-shadow-NavPanel)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "padding-horizontal-NavPanel": "var(--xmlui-padding-horizontal-NavPanel)", "padding-horizontal-logo-NavPanel": "var(--xmlui-padding-horizontal-logo-NavPanel)", "padding-vertical-logo-NavPanel": "var(--xmlui-padding-vertical-logo-NavPanel)", "margin-bottom-logo-NavPanel": "var(--xmlui-margin-bottom-logo-NavPanel)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)"}'`,wrapper:"_wrapper_dzy35_13",condensed:"_condensed_dzy35_40",horizontal:"_horizontal_dzy35_43",wrapperInner:"_wrapperInner_dzy35_48",logoWrapper:"_logoWrapper_dzy35_67",inDrawer:"_inDrawer_dzy35_77"};function Sn(e){return!e||typeof e=="string"||typeof e=="number"?e:e.queryParams!==void 0?{...e,search:new URLSearchParams(xo.omitBy(e.queryParams,xo.isUndefined)).toString()}:e}const at="App",En=k({status:"stable",description:`The \`${at}\` component provides a UI frame for XMLUI apps. According to predefined (and run-time configurable) structure templates, \`${at}\` allows you to display your preferred layout.`,props:{layout:a("This property sets the layout template of the app. This setting determines the position and size of the app parts (such as header, navigation bar, footer, etc.) and the app's scroll behavior.",kn),loggedInUser:a("Stores information about the currently logged in user."),logoTemplate:te("Optional template of the app logo"),logo:a("Optional logo path"),"logo-dark":a("Optional logo path in dark tone"),"logo-light":a("Optional logo path in light tone"),name:a("Optional application name (visible in the browser tab)"),scrollWholePage:a("This boolean property specifies whether the whole page should scroll (`true`) or just the content area (`false`). The default value is `true`.",null,"boolean",!0),noScrollbarGutters:a("This boolean property specifies whether the scrollbar gutters should be hidden.",null,"boolean",!1),defaultTone:a(`This property sets the app's default tone ("light" or "dark").`,null,"string","light"),defaultTheme:a("This property sets the app's default theme.",null,"string","xmlui")},events:{ready:a(`This event fires when the \`${at}\` component finishes rendering on the page.`)},themeVars:N(wn.themeVars),defaultThemeVars:{[`width-navPanel-${at}`]:"$space-64",[`max-content-width-${at}`]:"$max-content-width",[`shadow-header-${at}`]:"$shadow-spread",[`shadow-pages-${at}`]:"$shadow-spread",light:{},dark:{}}});function Lt(e,t){return{[`padding-left-${e}`]:(t==null?void 0:t.left)??`$padding-horizontal-${e}`,[`padding-right-${e}`]:(t==null?void 0:t.right)??`$padding-horizontal-${e}`,[`padding-top-${e}`]:(t==null?void 0:t.top)??`$padding-vertical-${e}`,[`padding-bottom-${e}`]:(t==null?void 0:t.bottom)??`$padding-vertical-${e}`,[`padding-horizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`padding-vertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$padding-top-${e} $padding-right-${e} $padding-bottom-${e} $padding-left-${e}`}}function Jt(e,t){var i,n,s,l,c,u;return{[`radius-${e}`]:"$radius",...o("left",(t==null?void 0:t.left)??(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("right",(t==null?void 0:t.right)??(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("top",(t==null?void 0:t.top)??(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),...o("bottom",(t==null?void 0:t.bottom)??(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),...o("horizontal",(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("vertical",(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),[`color-border-${e}`]:((i=t==null?void 0:t.all)==null?void 0:i.color)??"",[`thickness-border-${e}`]:((n=t==null?void 0:t.all)==null?void 0:n.thickness)??"",[`style-border-${e}`]:((s=t==null?void 0:t.all)==null?void 0:s.style)??"",[`border-${e}`]:`${((l=t==null?void 0:t.all)==null?void 0:l.thickness)??`$thickness-border-${e}`} ${((c=t==null?void 0:t.all)==null?void 0:c.style)??`$style-border-${e}`} ${((u=t==null?void 0:t.all)==null?void 0:u.color)??`$color-border-${e}`} `};function o(w,f){return{[`color-border-${w}-${e}`]:(f==null?void 0:f.color)??"",[`thickness-border-${w}-${e}`]:(f==null?void 0:f.thickness)??"",[`style-border-${w}-${e}`]:(f==null?void 0:f.style)??"",[`border-${w}-${e}`]:(f==null?void 0:f.all)??`$thickness-border-${w}-${e} $style-border-${w}-${e} $color-border-${w}-${e}`}}}const Ro="AppHeader",An=k({status:"experimental",description:`\`${Ro}\` is a placeholder within \`App\` to define a custom application header.`,props:{profileMenuTemplate:te(`This property makes the profile menu slot of the \`${Ro}\` component customizable.`),logoTemplate:te("This property defines the template to use for the logo. With this property, you can construct your custom logo instead of using a single image."),titleTemplate:te("This property defines the template to use for the title. With this property, you can construct your custom title instead of using a single image."),title:a("Title for the application logo"),showLogo:a("Show the logo in the header",null,"boolean",!0)},themeVars:N($n.themeVars),defaultThemeVars:{"height-AppHeader":"$space-14","max-content-width-AppHeader":"$max-content-width-App",...Jt("AppHeader",{bottom:{color:"$color-border",thickness:"1px",style:"solid"},all:{color:"$color-border",thickness:"0",style:"solid"}}),...Lt("logo-AppHeader",{horizontal:"$space-0",vertical:"$space-4"}),...Lt("AppHeader",{horizontal:"$space-4",vertical:"$space-0"}),"radius-AppHeader":"0px",light:{"color-bg-AppHeader":"white"},dark:{"color-bg-AppHeader":"$color-surface-900"}}}),St="AppState",Nn=k({description:`${St} is a functional component (without a visible user interface) that helps store and manage the app's state.`,props:{bucket:a(`This property is the identifier of the bucket to which the \`${St}\` instance is bound. Multiple \`${St}\` instances with the same bucket will share the same state object: any of them updating the state will cause the other instances to view the new, updated state.`),initialValue:a(`This property contains the initial state value. Though you can use multiple \`${St}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${St}\` with an explicit initial value, that value is immediately set. Multiple initial values may result in undesired initialization.`)},apis:{update:a("This method updates the application state object bound to the `AppState` instance. The function's single argument is an object that specifies the new state value.")},nonVisual:!0}),lt={themeVars:`'{"color-bg-Avatar": "var(--xmlui-color-bg-Avatar)", "color-border-Avatar": "var(--xmlui-color-border-Avatar)", "thickness-border-Avatar": "var(--xmlui-thickness-border-Avatar)", "style-border-Avatar": "var(--xmlui-style-border-Avatar)", "border-Avatar": "var(--xmlui-border-Avatar)", "radius-Avatar": "var(--xmlui-radius-Avatar)", "shadow-Avatar": "var(--xmlui-shadow-Avatar)", "color-text-Avatar": "var(--xmlui-color-text-Avatar)", "font-weight-Avatar": "var(--xmlui-font-weight-Avatar)"}'`,container:"_container_1fbc9_13",xs:"_xs_1fbc9_34",sm:"_sm_1fbc9_41",md:"_md_1fbc9_48",lg:"_lg_1fbc9_55",clickable:"_clickable_1fbc9_62"},zn=Y.forwardRef(function({size:t="sm",url:o,name:i,style:n,onClick:s,...l},c){let u=null;return!o&&i&&(u=i.trim().split(" ").filter(w=>!!w.trim().length).map(w=>w[0].toUpperCase()).slice(0,3)),oe.jsx("div",{...l,ref:c,className:ot(lt.container,{[lt.xs]:t==="xs",[lt.sm]:t==="sm",[lt.md]:t==="md",[lt.lg]:t==="lg",[lt.clickable]:!!s}),style:{backgroundImage:o?`url(${o})`:"none",...n},onClick:s,children:u})}),me="Avatar",Ln=k({description:`The \`${me}\` component represents a user, group (or other entity's) avatar with a small image or initials.`,props:{size:a(`This property defines the display size of the ${me}.`,Gt,"string","sm"),name:a(`This property sets the name value the ${me} uses to display initials.`),url:a(`This property specifies the URL of the image to display in the ${me}.`)},events:{click:a("This event is triggered when the avatar is clicked.")},themeVars:N(lt.themeVars),defaultThemeVars:{[`radius-${me}`]:"4px",[`thickness-border-${me}`]:"0px",[`style-border-${me}`]:"solid",[`border-${me}`]:`$thickness-border-${me} $style-border-${me} $color-border-${me}`,[`shadow-${me}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`color-text-${me}`]:"$color-text-secondary",[`font-weight-${me}`]:"$font-weight-bold",light:{[`color-bg-${me}`]:"$color-surface-100",[`color-border-${me}`]:"$color-surface-400A80"},dark:{[`color-bg-${me}`]:"$color-surface-800",[`color-border-${me}`]:"$color-surface-700"}}}),Cn={themeVars:`'{"color-bg-Badge": "var(--xmlui-color-bg-Badge)", "radius-Badge": "var(--xmlui-radius-Badge)", "color-text-Badge": "var(--xmlui-color-text-Badge)", "font-size-Badge": "var(--xmlui-font-size-Badge)", "font-size-Badge-pill": "var(--xmlui-font-size-Badge-pill)", "font-weight-Badge": "var(--xmlui-font-weight-Badge)", "font-weight-Badge-pill": "var(--xmlui-font-weight-Badge-pill)", "padding-horizontal-Badge": "var(--xmlui-padding-horizontal-Badge)", "padding-vertical-Badge": "var(--xmlui-padding-vertical-Badge)", "padding-Badge": "var(--xmlui-padding-Badge)", "padding-horizontal-Badge-pill": "var(--xmlui-padding-horizontal-Badge-pill)", "padding-vertical-Badge-pill": "var(--xmlui-padding-vertical-Badge-pill)", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)"}'`,badge:"_badge_xcyhw_13",pill:"_pill_xcyhw_29"},fe="Badge",Pn=k({status:"stable",description:`The \`${fe}\` is a text label that accepts a color map to define its background color and, optionally, its label color.`,props:{value:a("The text that the component displays"),variant:a("Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners."),colorMap:a(`The \`${fe}\` component supports the mapping of a list of colors using the \`value\` prop as the key. Provide the component with a list or key-value pairs in two ways:`),themeColor:a("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:a("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:a("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:a("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:a("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:N(Cn.themeVars),defaultThemeVars:{[`padding-horizontal-${fe}`]:"$space-2",[`padding-vertical-${fe}`]:"$space-0_5",[`padding-${fe}`]:`$padding-vertical-${fe} $padding-horizontal-${fe}`,[`padding-${fe}-pill`]:`$padding-vertical-${fe}-pill $padding-horizontal-${fe}-pill`,[`radius-${fe}`]:"4px",[`font-size-${fe}`]:"0.8em",[`font-size-${fe}-pill`]:"0.8em",light:{[`color-bg-${fe}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${fe}`]:"white"},dark:{[`color-bg-${fe}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${fe}`]:"$color-surface-50"}}}),On=Y.createContext(null),Dn=k({description:"As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",opaque:!0,props:{id:a("The unique identifier of the bookmark. You can use this identifier in links to navigate to this component's location."),level:a("The level of the bookmark. The level is used to determine the bookmark's position in the table of contents.")}}),Et={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "padding-horizontal-Card": "var(--xmlui-padding-horizontal-Card)", "padding-vertical-Card": "var(--xmlui-padding-vertical-Card)", "shadow-Card": "var(--xmlui-shadow-Card)", "color-bg-Card": "var(--xmlui-color-bg-Card)", "radius-Card": "var(--xmlui-radius-Card)", "color-border-Card": "var(--xmlui-color-border-Card)", "thickness-border-Card": "var(--xmlui-thickness-border-Card)", "style-border-Card": "var(--xmlui-style-border-Card)", "border-Card": "var(--xmlui-border-Card)"}'`,wrapper:"_wrapper_qmtvs_13",horizontal:"_horizontal_qmtvs_23",vertical:"_vertical_qmtvs_28",isClickable:"_isClickable_qmtvs_31"},ft={themeVars:`'{"color-text-Link": "var(--xmlui-color-text-Link)", "color-text-Link--active": "var(--xmlui-color-text-Link--active)", "color-text-Link--hover": "var(--xmlui-color-text-Link--hover)", "color-text-Link--hover--active": "var(--xmlui-color-text-Link--hover--active)", "font-family-Link": "var(--xmlui-font-family-Link)", "font-size-Link": "var(--xmlui-font-size-Link)", "font-weight-Link": "var(--xmlui-font-weight-Link)", "font-weight-Link--active": "var(--xmlui-font-weight-Link--active)", "color-decoration-Link": "var(--xmlui-color-decoration-Link)", "offset-decoration-Link": "var(--xmlui-offset-decoration-Link)", "line-decoration-Link": "var(--xmlui-line-decoration-Link)", "style-decoration-Link": "var(--xmlui-style-decoration-Link)", "thickness-decoration-Link": "var(--xmlui-thickness-decoration-Link)", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "thickness-outline-Link--focus": "var(--xmlui-thickness-outline-Link--focus)", "color-outline-Link--focus": "var(--xmlui-color-outline-Link--focus)", "style-outline-Link--focus": "var(--xmlui-style-outline-Link--focus)", "offset-outline-Link--focus": "var(--xmlui-offset-outline-Link--focus)"}'`,container:"_container_nq0ie_13",active:"_active_nq0ie_28",disabled:"_disabled_nq0ie_32",iconWrapper:"_iconWrapper_nq0ie_48"},Mn=Y.forwardRef(function({to:t,children:o,icon:i,active:n,onClick:s,target:l,disabled:c,style:u},w){const f=!!i&&!o,p=Y.useMemo(()=>Sn(t),[t]),C=t?Sr.Link:"div";return oe.jsxs(C,{ref:w,to:p,style:u,target:l,onClick:s,className:ot(ft.container,{[ft.iconLink]:f,[ft.active]:n,[ft.disabled]:c}),children:[i&&oe.jsx("div",{className:ft.iconWrapper,children:oe.jsx(Qr,{name:i})}),o]})}),Ie={themeVars:`'{"Heading:color-text-H1": "var(--xmlui-color-text-H1)", "Heading:letter-spacing-H1": "var(--xmlui-letter-spacing-H1)", "Heading:font-family-H1": "var(--xmlui-font-family-H1)", "Heading:font-weight-H1": "var(--xmlui-font-weight-H1)", "font-size-H1": "var(--xmlui-font-size-H1)", "line-height-H1": "var(--xmlui-line-height-H1)", "margin-top-H1": "var(--xmlui-margin-top-H1)", "margin-bottom-H1": "var(--xmlui-margin-bottom-H1)", "Heading:line-decoration-H1": "var(--xmlui-line-decoration-H1)", "Heading:color-decoration-H1": "var(--xmlui-color-decoration-H1)", "Heading:style-decoration-H1": "var(--xmlui-style-decoration-H1)", "Heading:thickness-decoration-H1": "var(--xmlui-thickness-decoration-H1)", "Heading:offset-decoration-H1": "var(--xmlui-offset-decoration-H1)", "Heading:color-text-H2": "var(--xmlui-color-text-H2)", "Heading:letter-spacing-H2": "var(--xmlui-letter-spacing-H2)", "Heading:font-family-H2": "var(--xmlui-font-family-H2)", "Heading:font-weight-H2": "var(--xmlui-font-weight-H2)", "font-size-H2": "var(--xmlui-font-size-H2)", "line-height-H2": "var(--xmlui-line-height-H2)", "margin-top-H2": "var(--xmlui-margin-top-H2)", "margin-bottom-H2": "var(--xmlui-margin-bottom-H2)", "Heading:line-decoration-H2": "var(--xmlui-line-decoration-H2)", "Heading:color-decoration-H2": "var(--xmlui-color-decoration-H2)", "Heading:style-decoration-H2": "var(--xmlui-style-decoration-H2)", "Heading:thickness-decoration-H2": "var(--xmlui-thickness-decoration-H2)", "Heading:offset-decoration-H2": "var(--xmlui-offset-decoration-H2)", "Heading:color-text-H3": "var(--xmlui-color-text-H3)", "Heading:letter-spacing-H3": "var(--xmlui-letter-spacing-H3)", "Heading:font-family-H3": "var(--xmlui-font-family-H3)", "Heading:font-weight-H3": "var(--xmlui-font-weight-H3)", "font-size-H3": "var(--xmlui-font-size-H3)", "line-height-H3": "var(--xmlui-line-height-H3)", "margin-top-H3": "var(--xmlui-margin-top-H3)", "margin-bottom-H3": "var(--xmlui-margin-bottom-H3)", "Heading:line-decoration-H3": "var(--xmlui-line-decoration-H3)", "Heading:color-decoration-H3": "var(--xmlui-color-decoration-H3)", "Heading:style-decoration-H3": "var(--xmlui-style-decoration-H3)", "Heading:thickness-decoration-H3": "var(--xmlui-thickness-decoration-H3)", "Heading:offset-decoration-H3": "var(--xmlui-offset-decoration-H3)", "Heading:color-text-H4": "var(--xmlui-color-text-H4)", "Heading:letter-spacing-H4": "var(--xmlui-letter-spacing-H4)", "Heading:font-family-H4": "var(--xmlui-font-family-H4)", "Heading:font-weight-H4": "var(--xmlui-font-weight-H4)", "font-size-H4": "var(--xmlui-font-size-H4)", "line-height-H4": "var(--xmlui-line-height-H4)", "margin-top-H4": "var(--xmlui-margin-top-H4)", "margin-bottom-H4": "var(--xmlui-margin-bottom-H4)", "Heading:line-decoration-H4": "var(--xmlui-line-decoration-H4)", "Heading:color-decoration-H4": "var(--xmlui-color-decoration-H4)", "Heading:style-decoration-H4": "var(--xmlui-style-decoration-H4)", "Heading:thickness-decoration-H4": "var(--xmlui-thickness-decoration-H4)", "Heading:offset-decoration-H4": "var(--xmlui-offset-decoration-H4)", "Heading:color-text-H5": "var(--xmlui-color-text-H5)", "Heading:letter-spacing-H5": "var(--xmlui-letter-spacing-H5)", "Heading:font-family-H5": "var(--xmlui-font-family-H5)", "Heading:font-weight-H5": "var(--xmlui-font-weight-H5)", "font-size-H5": "var(--xmlui-font-size-H5)", "line-height-H5": "var(--xmlui-line-height-H5)", "margin-top-H5": "var(--xmlui-margin-top-H5)", "margin-bottom-H5": "var(--xmlui-margin-bottom-H5)", "Heading:line-decoration-H5": "var(--xmlui-line-decoration-H5)", "Heading:color-decoration-H5": "var(--xmlui-color-decoration-H5)", "Heading:style-decoration-H5": "var(--xmlui-style-decoration-H5)", "Heading:thickness-decoration-H5": "var(--xmlui-thickness-decoration-H5)", "Heading:offset-decoration-H5": "var(--xmlui-offset-decoration-H5)", "Heading:color-text-H6": "var(--xmlui-color-text-H6)", "Heading:letter-spacing-H6": "var(--xmlui-letter-spacing-H6)", "Heading:font-family-H6": "var(--xmlui-font-family-H6)", "Heading:font-weight-H6": "var(--xmlui-font-weight-H6)", "font-size-H6": "var(--xmlui-font-size-H6)", "line-height-H6": "var(--xmlui-line-height-H6)", "margin-top-H6": "var(--xmlui-margin-top-H6)", "margin-bottom-H6": "var(--xmlui-margin-bottom-H6)", "Heading:line-decoration-H6": "var(--xmlui-line-decoration-H6)", "Heading:color-decoration-H6": "var(--xmlui-color-decoration-H6)", "Heading:style-decoration-H6": "var(--xmlui-style-decoration-H6)", "Heading:thickness-decoration-H6": "var(--xmlui-thickness-decoration-H6)", "Heading:offset-decoration-H6": "var(--xmlui-offset-decoration-H6)"}'`,heading:"_heading_1tifa_13",h1:"_h1_1tifa_13",h2:"_h2_1tifa_28",h3:"_h3_1tifa_43",h4:"_h4_1tifa_58",h5:"_h5_1tifa_73",h6:"_h6_1tifa_88",truncateOverflow:"_truncateOverflow_1tifa_108",preserveLinebreaks:"_preserveLinebreaks_1tifa_114",noEllipsis:"_noEllipsis_1tifa_118"},qo=Y.forwardRef(function({uid:t,level:o="h1",children:i,sx:n,style:s,title:l,maxLines:c=0,preserveLinebreaks:u,ellipses:w=!0,className:f},p){const C=o==null?void 0:o.toLowerCase(),v=Y.useRef(null),[M,E]=Y.useState(null),_=Y.useRef(null),se=Y.useContext(On),T=se==null?void 0:se.registerHeading,q=se==null?void 0:se.observeIntersection,ce=p?Ho(v,p):v;return Y.useEffect(()=>{var ge,pe,re,W;if(q&&v.current){const F=(W=(re=(pe=(ge=v.current.textContent)==null?void 0:ge.trim())==null?void 0:pe.replace(/[^\w\s-]/g,""))==null?void 0:re.replace(/\s+/g,"-"))==null?void 0:W.toLowerCase();E(F||null)}},[q]),Y.useEffect(()=>{if(q&&v.current&&M)return T==null?void 0:T({id:M,level:parseInt(o.replace("h","")),text:v.current.textContent.trim(),anchor:_.current})},[M,q,T,o]),oe.jsxs(C,{ref:ce,id:t,title:l,style:{...n,...s,...Mo(c)},className:ot(Ie.heading,Ie[C],f||"",{[Ie.truncateOverflow]:c>0,[Ie.preserveLinebreaks]:u,[Ie.noEllipsis]:!w}),children:[M&&q&&oe.jsx("span",{ref:_,id:M,style:{width:0,height:0}}),i]})}),Vo="vertical";Y.forwardRef(function({children:t,orientation:o=Vo,style:i,title:n,subtitle:s,linkTo:l,avatarUrl:c,showAvatar:u=!!c||!1,onClick:w},f){const p={level:"h2"};return oe.jsxs("div",{ref:f,className:ot(Et.wrapper,{[Et.isClickable]:!!w,[Et.vertical]:o==="vertical",[Et.horizontal]:o==="horizontal"}),style:i,onClick:w,children:[[n,s,c,u].some(Boolean)&&oe.jsxs(Do,{orientation:"horizontal",verticalAlignment:"center",style:{gap:"1rem"},children:[u&&oe.jsx(zn,{url:c,name:n}),oe.jsxs(Do,{orientation:"vertical",children:[l?n?oe.jsx(Mn,{to:l+"",children:oe.jsx(qo,{...p,children:n})}):null:n?oe.jsx(qo,{...p,children:n}):null,s!==void 0&&oe.jsx(gn,{variant:"small",children:s})]})]}),t]})});const ne="Card",Hn=k({description:`The \`${ne}\` component is a container for cohesive elements, often rendered visually as a card.`,props:{avatarUrl:a(`Show the avatar (\`true\`) or not (\`false\`). If not specified, the ${ne} will show the first letters of the [\`title\`](#title).`),showAvatar:a(`Indicates whether the ${ne} should be displayed`,null,"boolean"),title:a("This prop sets the prestyled title."),subtitle:a("This prop sets the prestyled subtitle."),linkTo:a("This property wraps the title in a `Link` component that is clickable to navigate."),orientation:a(`An optional property that governs the ${ne}'s orientation (whether the ${ne} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${ne} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,Yt,"string",Vo)},events:{click:Ye(ne)},themeVars:N(Et.themeVars),defaultThemeVars:{[`padding-horizontal-${ne}`]:"$space-4",[`padding-vertical-${ne}`]:"$space-4",[`padding-${ne}`]:`$padding-vertical-${ne} $padding-horizontal-${ne}`,[`color-border-${ne}`]:"$color-border",[`thickness-border-${ne}`]:"1px",[`style-border-${ne}`]:"solid",[`border-${ne}`]:`$thickness-border-${ne} $style-border-${ne} $color-border-${ne}`,[`radius-${ne}`]:"$radius",[`shadow-${ne}`]:"none",light:{[`color-bg-${ne}`]:"white"},dark:{[`color-bg-${ne}`]:"$color-surface-900"}}}),Uo="ChangeListener",Fn=k({description:`\`${Uo}\` is a functional component (it renders no UI) to trigger an action when a particular value (component property, state, etc.) changes.`,props:{listenTo:a("Value to the changes of which this component listens."),throttleWaitInMs:a("This variable sets a throttling time (in milliseconds) to apply when executing the `didChange` event handler. All changes within that throttling time will only fire the `didChange` event once.")},events:{didChange:Te(Uo)}}),Go={themeVars:`'{"Input:radius-Checkbox-default": "var(--xmlui-radius-Checkbox-default)", "Input:color-border-Checkbox-default": "var(--xmlui-color-border-Checkbox-default)", "Input:color-bg-Checkbox-default": "var(--xmlui-color-bg-Checkbox-default)", "Input:thickness-outline-Checkbox-default--focus": "var(--xmlui-thickness-outline-Checkbox-default--focus)", "Input:color-outline-Checkbox-default--focus": "var(--xmlui-color-outline-Checkbox-default--focus)", "Input:style-outline-Checkbox-default--focus": "var(--xmlui-style-outline-Checkbox-default--focus)", "Input:offset-outline-Checkbox-default--focus": "var(--xmlui-offset-outline-Checkbox-default--focus)", "Input:color-border-Checkbox-default--hover": "var(--xmlui-color-border-Checkbox-default--hover)", "Input:color-bg-Checkbox--disabled": "var(--xmlui-color-bg-Checkbox--disabled)", "Input:color-border-Checkbox--disabled": "var(--xmlui-color-border-Checkbox--disabled)", "Input:radius-Checkbox-error": "var(--xmlui-radius-Checkbox-error)", "Input:color-border-Checkbox-error": "var(--xmlui-color-border-Checkbox-error)", "Input:color-bg-Checkbox-error": "var(--xmlui-color-bg-Checkbox-error)", "Input:thickness-outline-Checkbox-error--focus": "var(--xmlui-thickness-outline-Checkbox-error--focus)", "Input:color-outline-Checkbox-error--focus": "var(--xmlui-color-outline-Checkbox-error--focus)", "Input:style-outline-Checkbox-error--focus": "var(--xmlui-style-outline-Checkbox-error--focus)", "Input:offset-outline-Checkbox-error--focus": "var(--xmlui-offset-outline-Checkbox-error--focus)", "Input:radius-Checkbox-warning": "var(--xmlui-radius-Checkbox-warning)", "Input:color-border-Checkbox-warning": "var(--xmlui-color-border-Checkbox-warning)", "Input:color-bg-Checkbox-warning": "var(--xmlui-color-bg-Checkbox-warning)", "Input:thickness-outline-Checkbox-warning--focus": "var(--xmlui-thickness-outline-Checkbox-warning--focus)", "Input:color-outline-Checkbox-warning--focus": "var(--xmlui-color-outline-Checkbox-warning--focus)", "Input:style-outline-Checkbox-warning--focus": "var(--xmlui-style-outline-Checkbox-warning--focus)", "Input:offset-outline-Checkbox-warning--focus": "var(--xmlui-offset-outline-Checkbox-warning--focus)", "Input:radius-Checkbox-success": "var(--xmlui-radius-Checkbox-success)", "Input:color-border-Checkbox-success": "var(--xmlui-color-border-Checkbox-success)", "Input:color-bg-Checkbox-success": "var(--xmlui-color-bg-Checkbox-success)", "Input:thickness-outline-Checkbox-success--focus": "var(--xmlui-thickness-outline-Checkbox-success--focus)", "Input:color-outline-Checkbox-success--focus": "var(--xmlui-color-outline-Checkbox-success--focus)", "Input:style-outline-Checkbox-success--focus": "var(--xmlui-style-outline-Checkbox-success--focus)", "Input:offset-outline-Checkbox-success--focus": "var(--xmlui-offset-outline-Checkbox-success--focus)", "color-bg-indicator-Checkbox": "var(--xmlui-color-bg-indicator-Checkbox)", "Input:color-border-checked-Checkbox": "var(--xmlui-color-border-checked-Checkbox)", "Input:color-bg-checked-Checkbox": "var(--xmlui-color-bg-checked-Checkbox)", "Input:color-border-checked-Checkbox-error": "var(--xmlui-color-border-checked-Checkbox-error)", "Input:color-bg-checked-Checkbox-error": "var(--xmlui-color-bg-checked-Checkbox-error)", "Input:color-border-checked-Checkbox-warning": "var(--xmlui-color-border-checked-Checkbox-warning)", "Input:color-bg-checked-Checkbox-warning": "var(--xmlui-color-bg-checked-Checkbox-warning)", "Input:color-border-checked-Checkbox-success": "var(--xmlui-color-border-checked-Checkbox-success)", "Input:color-bg-checked-Checkbox-success": "var(--xmlui-color-bg-checked-Checkbox-success)", "Input:color-border-Switch": "var(--xmlui-color-border-Switch)", "Input:color-bg-Switch": "var(--xmlui-color-bg-Switch)", "Input:color-border-Switch-default--hover": "var(--xmlui-color-border-Switch-default--hover)", "Input:color-bg-Switch--disabled": "var(--xmlui-color-bg-Switch--disabled)", "Input:color-border-Switch--disabled": "var(--xmlui-color-border-Switch--disabled)", "Input:color-border-Switch-error": "var(--xmlui-color-border-Switch-error)", "Input:color-border-Switch-warning": "var(--xmlui-color-border-Switch-warning)", "Input:color-border-Switch-success": "var(--xmlui-color-border-Switch-success)", "color-bg-indicator-Switch": "var(--xmlui-color-bg-indicator-Switch)", "Input:color-border-checked-Switch": "var(--xmlui-color-border-checked-Switch)", "Input:color-bg-checked-Switch": "var(--xmlui-color-bg-checked-Switch)", "Input:color-border-checked-Switch-error": "var(--xmlui-color-border-checked-Switch-error)", "Input:color-bg-checked-Switch-error": "var(--xmlui-color-bg-checked-Switch-error)", "Input:color-border-checked-Switch-warning": "var(--xmlui-color-border-checked-Switch-warning)", "Input:color-bg-checked-Switch-warning": "var(--xmlui-color-bg-checked-Switch-warning)", "Input:color-border-checked-Switch-success": "var(--xmlui-color-border-checked-Switch-success)", "Input:color-bg-checked-Switch-success": "var(--xmlui-color-bg-checked-Switch-success)", "Input:thickness-outline-Switch--focus": "var(--xmlui-thickness-outline-Switch--focus)", "Input:color-outline-Switch--focus": "var(--xmlui-color-outline-Switch--focus)", "Input:style-outline-Switch--focus": "var(--xmlui-style-outline-Switch--focus)", "Input:offset-outline-Switch--focus": "var(--xmlui-offset-outline-Switch--focus)"}'`,resetAppearance:"_resetAppearance_fdujw_13",checkbox:"_checkbox_fdujw_21",error:"_error_fdujw_50",warning:"_warning_fdujw_61",valid:"_valid_fdujw_72",switch:"_switch_fdujw_132"},j="Checkbox",Wn=k({status:"stable",description:`The \`${j}\` component allows users to make binary choices, typically between checked or unchecked. It consists of a small box that can be toggled on or off by clicking on it.`,props:{indeterminate:So(),label:xe(),labelPosition:Re("end"),labelWidth:Qe(j),labelBreak:Xe(j),required:He(),initialValue:ze(!1),autoFocus:ke(),readOnly:De(),enabled:be(),validationStatus:Me(),description:a(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description of the ${j} besides its label.`)},events:{click:Ye(j),gotFocus:Ae(j),lostFocus:Ne(j),didChange:Te(j)},apis:{value:Ao(),setValue:Ze()},themeVars:N(Go.themeVars),defaultThemeVars:{[`color-border-checked-${j}-error`]:`$color-border-${j}-error`,[`color-bg-checked-${j}-error`]:`$color-border-${j}-error`,[`color-border-checked-${j}-warning`]:`$color-border-${j}-warning`,[`color-bg-checked-${j}-warning`]:`$color-border-${j}-warning`,[`color-border-checked-${j}-success`]:`$color-border-${j}-success`,[`color-bg-checked-${j}-success`]:`$color-border-${j}-success`,light:{[`color-bg-indicator-${j}`]:"$color-bg-primary",[`color-border-checked-${j}`]:"$color-primary-500",[`color-bg-checked-${j}`]:"$color-primary-500",[`color-bg-${j}--disabled`]:"$color-surface-200"},dark:{[`color-bg-indicator-${j}`]:"$color-bg-primary",[`color-border-checked-${j}`]:"$color-primary-400",[`color-bg-checked-${j}`]:"$color-primary-400",[`color-bg-${j}--disabled`]:"$color-surface-800"}}}),Rn={themeVars:`'{"color-bg-ContentSeparator": "var(--xmlui-color-bg-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_qlxwk_13",horizontal:"_horizontal_qlxwk_16",vertical:"_vertical_qlxwk_20"},jt="ContentSeparator",qn=k({description:`A \`${jt}\` is a component that divides or separates content visually within a layout. It serves as a visual cue to distinguish between different sections or groups of content, helping to improve readability and organization.`,props:{size:a("This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical)."),orientation:a("Sets the main axis of the component",Yt)},themeVars:N(Rn.themeVars),defaultThemeVars:{[`color-bg-${jt}`]:"$color-border",[`size-${jt}`]:"1px",light:{},dark:{}}}),Vn={themeVars:`'{"Input:min-height-DatePicker": "var(--xmlui-min-height-DatePicker)", "Input:font-size-DatePicker": "var(--xmlui-font-size-DatePicker)", "Input:radius-DatePicker-default": "var(--xmlui-radius-DatePicker-default)", "Input:color-border-DatePicker-default": "var(--xmlui-color-border-DatePicker-default)", "Input:thickness-border-DatePicker-default": "var(--xmlui-thickness-border-DatePicker-default)", "Input:style-border-DatePicker-default": "var(--xmlui-style-border-DatePicker-default)", "Input:color-bg-DatePicker-default": "var(--xmlui-color-bg-DatePicker-default)", "Input:shadow-DatePicker-default": "var(--xmlui-shadow-DatePicker-default)", "Input:color-text-DatePicker-default": "var(--xmlui-color-text-DatePicker-default)", "Input:color-border-DatePicker-default--hover": "var(--xmlui-color-border-DatePicker-default--hover)", "Input:color-bg-DatePicker-default--hover": "var(--xmlui-color-bg-DatePicker-default--hover)", "Input:shadow-DatePicker-default--hover": "var(--xmlui-shadow-DatePicker-default--hover)", "Input:color-text-DatePicker-default--hover": "var(--xmlui-color-text-DatePicker-default--hover)", "Input:thickness-outline-DatePicker-default--focus": "var(--xmlui-thickness-outline-DatePicker-default--focus)", "Input:color-outline-DatePicker-default--focus": "var(--xmlui-color-outline-DatePicker-default--focus)", "Input:style-outline-DatePicker-default--focus": "var(--xmlui-style-outline-DatePicker-default--focus)", "Input:offset-outline-DatePicker-default--focus": "var(--xmlui-offset-outline-DatePicker-default--focus)", "Input:color-placeholder-DatePicker-default": "var(--xmlui-color-placeholder-DatePicker-default)", "Input:radius-DatePicker-error": "var(--xmlui-radius-DatePicker-error)", "Input:color-border-DatePicker-error": "var(--xmlui-color-border-DatePicker-error)", "Input:thickness-border-DatePicker-error": "var(--xmlui-thickness-border-DatePicker-error)", "Input:style-border-DatePicker-error": "var(--xmlui-style-border-DatePicker-error)", "Input:color-bg-DatePicker-error": "var(--xmlui-color-bg-DatePicker-error)", "Input:shadow-DatePicker-error": "var(--xmlui-shadow-DatePicker-error)", "Input:color-text-DatePicker-error": "var(--xmlui-color-text-DatePicker-error)", "Input:color-border-DatePicker-error--hover": "var(--xmlui-color-border-DatePicker-error--hover)", "Input:color-bg-DatePicker-error--hover": "var(--xmlui-color-bg-DatePicker-error--hover)", "Input:shadow-DatePicker-error--hover": "var(--xmlui-shadow-DatePicker-error--hover)", "Input:color-text-DatePicker-error--hover": "var(--xmlui-color-text-DatePicker-error--hover)", "Input:thickness-outline-DatePicker-error--focus": "var(--xmlui-thickness-outline-DatePicker-error--focus)", "Input:color-outline-DatePicker-error--focus": "var(--xmlui-color-outline-DatePicker-error--focus)", "Input:style-outline-DatePicker-error--focus": "var(--xmlui-style-outline-DatePicker-error--focus)", "Input:offset-outline-DatePicker-error--focus": "var(--xmlui-offset-outline-DatePicker-error--focus)", "Input:color-placeholder-DatePicker-error": "var(--xmlui-color-placeholder-DatePicker-error)", "Input:radius-DatePicker-warning": "var(--xmlui-radius-DatePicker-warning)", "Input:color-border-DatePicker-warning": "var(--xmlui-color-border-DatePicker-warning)", "Input:thickness-border-DatePicker-warning": "var(--xmlui-thickness-border-DatePicker-warning)", "Input:style-border-DatePicker-warning": "var(--xmlui-style-border-DatePicker-warning)", "Input:color-bg-DatePicker-warning": "var(--xmlui-color-bg-DatePicker-warning)", "Input:shadow-DatePicker-warning": "var(--xmlui-shadow-DatePicker-warning)", "Input:color-text-DatePicker-warning": "var(--xmlui-color-text-DatePicker-warning)", "Input:color-border-DatePicker-warning--hover": "var(--xmlui-color-border-DatePicker-warning--hover)", "Input:color-bg-DatePicker-warning--hover": "var(--xmlui-color-bg-DatePicker-warning--hover)", "Input:shadow-DatePicker-warning--hover": "var(--xmlui-shadow-DatePicker-warning--hover)", "Input:color-text-DatePicker-warning--hover": "var(--xmlui-color-text-DatePicker-warning--hover)", "Input:thickness-outline-DatePicker-warning--focus": "var(--xmlui-thickness-outline-DatePicker-warning--focus)", "Input:color-outline-DatePicker-warning--focus": "var(--xmlui-color-outline-DatePicker-warning--focus)", "Input:style-outline-DatePicker-warning--focus": "var(--xmlui-style-outline-DatePicker-warning--focus)", "Input:offset-outline-DatePicker-warning--focus": "var(--xmlui-offset-outline-DatePicker-warning--focus)", "Input:color-placeholder-DatePicker-warning": "var(--xmlui-color-placeholder-DatePicker-warning)", "Input:radius-DatePicker-success": "var(--xmlui-radius-DatePicker-success)", "Input:color-border-DatePicker-success": "var(--xmlui-color-border-DatePicker-success)", "Input:thickness-border-DatePicker-success": "var(--xmlui-thickness-border-DatePicker-success)", "Input:style-border-DatePicker-success": "var(--xmlui-style-border-DatePicker-success)", "Input:color-bg-DatePicker-success": "var(--xmlui-color-bg-DatePicker-success)", "Input:shadow-DatePicker-success": "var(--xmlui-shadow-DatePicker-success)", "Input:color-text-DatePicker-success": "var(--xmlui-color-text-DatePicker-success)", "Input:color-border-DatePicker-success--hover": "var(--xmlui-color-border-DatePicker-success--hover)", "Input:color-bg-DatePicker-success--hover": "var(--xmlui-color-bg-DatePicker-success--hover)", "Input:shadow-DatePicker-success--hover": "var(--xmlui-shadow-DatePicker-success--hover)", "Input:color-text-DatePicker-success--hover": "var(--xmlui-color-text-DatePicker-success--hover)", "Input:thickness-outline-DatePicker-success--focus": "var(--xmlui-thickness-outline-DatePicker-success--focus)", "Input:color-outline-DatePicker-success--focus": "var(--xmlui-color-outline-DatePicker-success--focus)", "Input:style-outline-DatePicker-success--focus": "var(--xmlui-style-outline-DatePicker-success--focus)", "Input:offset-outline-DatePicker-success--focus": "var(--xmlui-offset-outline-DatePicker-success--focus)", "Input:color-placeholder-DatePicker-success": "var(--xmlui-color-placeholder-DatePicker-success)", "Input:color-bg-DatePicker--disabled": "var(--xmlui-color-bg-DatePicker--disabled)", "Input:color-text-DatePicker--disabled": "var(--xmlui-color-text-DatePicker--disabled)", "Input:color-border-DatePicker--disabled": "var(--xmlui-color-border-DatePicker--disabled)", "Input:shadow-menu-DatePicker": "var(--xmlui-shadow-menu-DatePicker)", "Input:color-bg-menu-DatePicker": "var(--xmlui-color-bg-menu-DatePicker)", "Input:radius-menu-DatePicker": "var(--xmlui-radius-menu-DatePicker)", "Input:color-bg-item-DatePicker--active": "var(--xmlui-color-bg-item-DatePicker--active)", "Input:color-bg-item-DatePicker--hover": "var(--xmlui-color-bg-item-DatePicker--hover)", "Input:color-text-value-DatePicker": "var(--xmlui-color-text-value-DatePicker)"}'`,datePicker:"_datePicker_t0hf0_13",placeholder:"_placeholder_t0hf0_46",error:"_error_t0hf0_49",warning:"_warning_t0hf0_73",valid:"_valid_t0hf0_97",disabled:"_disabled_t0hf0_121",indicator:"_indicator_t0hf0_127",datePickerInput:"_datePickerInput_t0hf0_127",datePickerMenu:"_datePickerMenu_t0hf0_131",root:"_root_t0hf0_140",vhidden:"_vhidden_t0hf0_145",button_reset:"_button_reset_t0hf0_165",button:"_button_t0hf0_165",day_selected:"_day_selected_t0hf0_187",months:"_months_t0hf0_205",month:"_month_t0hf0_205",table:"_table_t0hf0_221",with_weeknumber:"_with_weeknumber_t0hf0_227",caption:"_caption_t0hf0_232",multiple_months:"_multiple_months_t0hf0_240",caption_dropdowns:"_caption_dropdowns_t0hf0_246",caption_label:"_caption_label_t0hf0_251",nav:"_nav_t0hf0_267",caption_start:"_caption_start_t0hf0_271",caption_end:"_caption_end_t0hf0_278",nav_button:"_nav_button_t0hf0_285",dropdown_year:"_dropdown_year_t0hf0_298",dropdown_month:"_dropdown_month_t0hf0_299",dropdown:"_dropdown_t0hf0_298",dropdown_icon:"_dropdown_icon_t0hf0_335",head:"_head_t0hf0_339",head_row:"_head_row_t0hf0_343",row:"_row_t0hf0_344",head_cell:"_head_cell_t0hf0_348",tbody:"_tbody_t0hf0_359",tfoot:"_tfoot_t0hf0_363",cell:"_cell_t0hf0_367",weeknumber:"_weeknumber_t0hf0_375",day:"_day_t0hf0_187",day_today:"_day_today_t0hf0_394",day_outside:"_day_outside_t0hf0_394",day_range_start:"_day_range_start_t0hf0_417",day_range_end:"_day_range_end_t0hf0_417",day_range_middle:"_day_range_middle_t0hf0_441"},Be="DatePicker",Un=k({status:"experimental",description:"A datepicker component enables the selection of a date or a range of dates in a specified format from an interactive display.",props:{placeholder:nt(),initialValue:ze(),autoFocus:ke(),readOnly:De(),enabled:be(),validationStatus:Me(),mode:a("The mode of the datepicker (single or range)"),dateFormat:a("The format of the date displayed in the input field"),showWeekNumber:a("Whether to show the week number in the calendar"),weekStartsOn:a("The first day of the week. 0 is Sunday, 1 is Monday, etc."),fromDate:a("The start date of the range of selectable dates"),toDate:a("The end date of the range of selectable dates"),disabledDates:a("An array of dates that are disabled")},events:{didChange:Te(Be),gotFocus:Ae(Be),lostFocus:Ne(Be)},apis:{focus:Je(Be),value:a("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ze()},themeVars:N(Vn.themeVars),defaultThemeVars:{[`shadow-menu-${Be}`]:"$shadow-md",[`radius-menu-${Be}`]:"$radius",[`color-text-value-${Be}`]:"$color-text-primary",[`color-bg-menu-${Be}`]:"$color-bg-primary",[`color-bg-item-${Be}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${Be}--active`]:"$color-bg-dropdown-item--active",light:{[`color-bg-menu-${Be}`]:"$color-bg-primary"},dark:{[`color-bg-menu-${Be}`]:"$color-bg-primary"}}}),Kt={themeVars:`'{"color-bg-DropdownMenu": "var(--xmlui-color-bg-DropdownMenu)", "radius-DropdownMenu": "var(--xmlui-radius-DropdownMenu)", "shadow-DropdownMenu": "var(--xmlui-shadow-DropdownMenu)", "color-border-DropdownMenu-content": "var(--xmlui-color-border-DropdownMenu-content)", "thickness-border-DropdownMenu-content": "var(--xmlui-thickness-border-DropdownMenu-content)", "style-border-DropdownMenu-content": "var(--xmlui-style-border-DropdownMenu-content)", "min-width-DropdownMenu": "var(--xmlui-min-width-DropdownMenu)", "color-bg-MenuItem": "var(--xmlui-color-bg-MenuItem)", "color-MenuItem": "var(--xmlui-color-MenuItem)", "font-family-MenuItem": "var(--xmlui-font-family-MenuItem)", "gap-MenuItem": "var(--xmlui-gap-MenuItem)", "font-size-MenuItem": "var(--xmlui-font-size-MenuItem)", "padding-vertical-MenuItem": "var(--xmlui-padding-vertical-MenuItem)", "padding-horizontal-MenuItem": "var(--xmlui-padding-horizontal-MenuItem)", "color-bg-MenuItem--hover": "var(--xmlui-color-bg-MenuItem--hover)", "color-bg-MenuItem--active": "var(--xmlui-color-bg-MenuItem--active)", "color-bg-MenuItem--active--hover": "var(--xmlui-color-bg-MenuItem--active--hover)", "color-MenuItem--hover": "var(--xmlui-color-MenuItem--hover)", "color-MenuItem--active": "var(--xmlui-color-MenuItem--active)", "color-MenuItem--active--hover": "var(--xmlui-color-MenuItem--active--hover)", "margin-top-MenuSeparator": "var(--xmlui-margin-top-MenuSeparator)", "margin-bottom-MenuSeparator": "var(--xmlui-margin-bottom-MenuSeparator)", "width-MenuSeparator": "var(--xmlui-width-MenuSeparator)", "height-MenuSeparator": "var(--xmlui-height-MenuSeparator)", "color-MenuSeparator": "var(--xmlui-color-MenuSeparator)"}'`,DropdownMenuContent:"_DropdownMenuContent_uvcr0_13",DropdownMenuSubContent:"_DropdownMenuSubContent_uvcr0_14",DropdownMenuItem:"_DropdownMenuItem_uvcr0_26",DropdownMenuSubTrigger:"_DropdownMenuSubTrigger_uvcr0_27",active:"_active_uvcr0_50",wrapper:"_wrapper_uvcr0_60",DropdownMenuSeparator:"_DropdownMenuSeparator_uvcr0_65"},Fe="DropdownMenu",Gn=k({description:"This component represents a dropdown menu with a trigger. When the user clicks the trigger, the dropdown menu displays its items.",props:{label:xe(),triggerTemplate:Oo(Fe),alignment:a("This property allows you to determine the alignment of the displayed menu items."),enabled:be(),triggerButtonVariant:a("This property defines the theme variant of the `Button` as the dropdown menu's trigger. It has no effect when a custom trigger is defined with `triggerTemplate`."),triggerButtonThemeColor:a("This property defines the theme color of the `Button` as the dropdown menu's trigger. It has no effect when a custom trigger is defined with `triggerTemplate`."),triggerButtonIcon:a("This property defines the icon to display on the trigger button."),triggerButtonIconPosition:a("This property defines the position of the icon on the trigger button.",bo)},events:{willOpen:a(`This event fires when the \`${Fe}\` component is opened.`)},apis:{close:a("This method command closes the dropdown.")},themeVars:N(Kt.themeVars),defaultThemeVars:{[`color-bg-${Fe}`]:"$color-bg-primary",[`min-width-${Fe}`]:"160px",[`shadow-${Fe}`]:"$shadow-xl",[`style-border-${Fe}-content`]:"solid",[`radius-${Fe}`]:"$radius"}}),Se="MenuItem",Yn=k({description:"This property represents a leaf item in a menu hierarchy. Clicking the item triggers an action.",docFolder:Fe,props:{iconPosition:a("This property allows you to determine the position of the icon displayed in the menu item.",yo.filter(e=>e.value==="start"||e.value==="end")),icon:a("This property names an optional icon to display with the menu item."),label:xe(),to:a("This property defines the URL of the menu item. If this property is defined (and the `click` event does not have an event handler), clicking the menu item navigates to this link."),active:a("This property indicates if the specified menu item is active.")},events:{click:Ye(Se)},themeVars:N(Kt.themeVars),defaultThemeVars:{[`color-bg-${Se}`]:"$color-bg-dropdown-item",[`color-${Se}`]:"$color-text-primary",[`font-family-${Se}`]:"$font-family",[`font-size-${Se}`]:"$font-size-small",[`padding-vertical-${Se}`]:"$space-2",[`padding-horizontal-${Se}`]:"$space-3",[`color-bg-${Se}--hover`]:"$color-bg-dropdown-item--hover",[`color-${Se}--hover`]:"inherit",[`gap-${Se}`]:"$space-2",[`color-${Se}--active`]:"$color-primary",[`color-bg-${Se}--active`]:"$color-bg-dropdown-item--active",light:{},dark:{}}}),Qn=k({description:"This component represents a nested menu item within another menu or menu item.",docFolder:Fe,props:{label:xe(),triggerTemplate:Oo("SubMenuItem")}}),gt="MenuSeparator",Xn=k({description:"This component displays a separator line between menu items.",docFolder:Fe,themeVars:N(Kt.themeVars),defaultThemeVars:{[`margin-top-${gt}`]:"$space-1",[`margin-bottom-${gt}`]:"$space-1",[`width-${gt}`]:"100%",[`height-${gt}`]:"1px",[`color-${gt}`]:"$color-border-dropdown-item",[`margin-horizontal-${gt}`]:"12px"}}),Zn=k({status:"experimental",description:"The `EmojiSelector` component provides users with a graphical interface to browse, search and select emojis to insert into text fields, messages, or other forms of communication.",props:{autoFocus:ke()},events:{select:a("This event is fired when the user selects an emoticon from this component.")}}),Jn={themeVars:'"[]"',container:"_container_mle43_13",textBoxWrapper:"_textBoxWrapper_mle43_21",button:"_button_mle43_27"},st="FileInput",jn=k({description:`The \`${st}\` is a user interface component that allows users to select files from their device's file system for upload (or processing its content otherwise).`,status:"experimental",props:{placeholder:nt(),initialValue:ze(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),label:xe(),labelPosition:Re("top"),labelWidth:Qe(st),labelBreak:Xe(st),buttonVariant:a("The button variant to use",Cr),buttonLabel:a("This property is an optional string to set a label for the button part."),buttonIcon:a("The ID of the icon to display in the button"),buttonIconPosition:a("This optional string determines the location of the button icon.",bo),acceptsFileType:a("A list of file types the input controls accepts provided as a string array."),multiple:a("This boolean property enables to add not just one (`false`), but multiple files to the field (`true`). This is done either by dragging onto the field or by selecting multiple files in the browser menu after clicking the input field button.",null,"boolean",!1),directory:a("This boolean property indicates whether the component allows selecting directories (`true`) or files only (`false`).",null,"boolean",!1),buttonSize:a("The size of the button (small, medium, large)",Gt),buttonThemeColor:a("The button color scheme (primary, secondary, attention)",Nr)},events:{didChange:Te(st),gotFocus:Ae(st),lostFocus:Ne(st)},apis:{value:a("By setting an ID for the component, you can refer to the value of the field if set. If no value is set, the value will be undefined."),setValue:a("(**NOT IMPLEMENTED YET**) You can use this method to set the component's current value programmatically."),focus:Je(st),open:a("This API command triggers the file browsing dialog to open.")},themeVars:N(Jn.themeVars)}),Kn={themeVars:`'{"color-bg-FileUploadDropZone": "var(--xmlui-color-bg-FileUploadDropZone)", "color-text-FileUploadDropZone": "var(--xmlui-color-text-FileUploadDropZone)", "color-bg-dropping-FileUploadDropZone": "var(--xmlui-color-bg-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_u50h5_13",dropPlaceholder:"_dropPlaceholder_u50h5_21"},ei=k({description:"The `FileUploadDropZone` component allows users to upload files to a web application by dragging and dropping files from their local file system onto a designated area within the UI.",props:{text:a('With this property, you can change the default text ("Drop files here") to display when files are dragged over the drop zone.'),allowPaste:a("This property indicates if the drop zone accepts files pasted from the clipboard (`true`) or only dragged files (`false`)."),enabled:a("If set to `false`, the drop zone will be disabled and users will not be able to upload files.",null,"boolean",!0)},events:{upload:a("This component accepts files for upload but does not perform the actual operation. It fires the `upload` event and passes the list files to upload in the method's argument. You can use the passed file information to implement the upload (according to the protocol your backend supports).")},themeVars:N(Kn.themeVars),defaultThemeVars:{"color-bg-FileUploadDropZone":"$color-bg","color-bg-dropping-FileUploadDropZone":"$color-bg--selected","opacity-dropping-FileUploadDropZone":"0.5","color-text-FileUploadDropZone":"$color-text",light:{},dark:{}}}),ti={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",vertical:"_vertical_aarhe_32",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},eo="FlowLayout",oi=k({description:"This layout component is used to position content in rows with an auto wrapping feature: if the length of the items exceed the available space the layout will wrap into a new line.",props:{gap:a(`This property defines the gap between items in the same row and between rows. The ${eo} component creates a new row when an item is about to overflow the current row.`),columnGap:a("The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value."),rowGap:a(`The \`rowGap\` property specifies the space between the ${eo} rows; it overrides the \`gap\` value.`),shadow:a(`${eo} does not support shadow, we're waiting for a decent solution.`)},themeVars:N(ti.themeVars)}),ri={themeVars:`'{"padding-horizontal-Footer": "var(--xmlui-padding-horizontal-Footer)", "padding-vertical-Footer": "var(--xmlui-padding-vertical-Footer)", "padding-top-Footer": "var(--xmlui-padding-top-Footer)", "padding-bottom-Footer": "var(--xmlui-padding-bottom-Footer)", "padding-left-Footer": "var(--xmlui-padding-left-Footer)", "padding-right-Footer": "var(--xmlui-padding-right-Footer)", "padding-Footer": "var(--xmlui-padding-Footer)", "color-border-horizontal-Footer": "var(--xmlui-color-border-horizontal-Footer)", "thickness-border-horizontal-Footer": "var(--xmlui-thickness-border-horizontal-Footer)", "style-border-horizontal-Footer": "var(--xmlui-style-border-horizontal-Footer)", "color-border-vertical-Footer": "var(--xmlui-color-border-vertical-Footer)", "thickness-border-vertical-Footer": "var(--xmlui-thickness-border-vertical-Footer)", "style-border-vertical-Footer": "var(--xmlui-style-border-vertical-Footer)", "color-border-left-Footer": "var(--xmlui-color-border-left-Footer)", "thickness-border-left-Footer": "var(--xmlui-thickness-border-left-Footer)", "style-border-left-Footer": "var(--xmlui-style-border-left-Footer)", "color-border-right-Footer": "var(--xmlui-color-border-right-Footer)", "thickness-border-right-Footer": "var(--xmlui-thickness-border-right-Footer)", "style-border-right-Footer": "var(--xmlui-style-border-right-Footer)", "color-border-top-Footer": "var(--xmlui-color-border-top-Footer)", "thickness-border-top-Footer": "var(--xmlui-thickness-border-top-Footer)", "style-border-top-Footer": "var(--xmlui-style-border-top-Footer)", "color-border-bottom-Footer": "var(--xmlui-color-border-bottom-Footer)", "thickness-border-bottom-Footer": "var(--xmlui-thickness-border-bottom-Footer)", "style-border-bottom-Footer": "var(--xmlui-style-border-bottom-Footer)", "color-border-Footer": "var(--xmlui-color-border-Footer)", "thickness-border-Footer": "var(--xmlui-thickness-border-Footer)", "style-border-Footer": "var(--xmlui-style-border-Footer)", "radius-Footer": "var(--xmlui-radius-Footer)", "color-bg-Footer": "var(--xmlui-color-bg-Footer)", "color-text-Footer": "var(--xmlui-color-text-Footer)", "height-Footer": "var(--xmlui-height-Footer)", "font-size-Footer": "var(--xmlui-font-size-Footer)", "align-vertical-Footer": "var(--xmlui-align-vertical-Footer)", "max-content-width-Footer": "var(--xmlui-max-content-width-Footer)"}'`,outerWrapper:"_outerWrapper_188xu_13",wrapper:"_wrapper_188xu_34",full:"_full_188xu_50"},je="Footer",ni=k({description:`The \`${je}\` is a component that acts as a placeholder within \`App\`.`,themeVars:N(ri.themeVars),defaultThemeVars:{[`color-bg-${je}`]:"$color-bg-AppHeader",[`align-vertical-${je}`]:"center",[`font-size-${je}`]:"$font-size-small",[`color-text-${je}`]:"$color-text-secondary",[`max-content-width-${je}`]:"$max-content-width",...Lt(je,{horizontal:"$space-4",vertical:"$space-2"}),...Jt(je,{top:{color:"$color-border",thickness:"1px",style:"solid"}}),light:{},dark:{}}}),ii={themeVars:`'{"gap-Form": "var(--xmlui-gap-Form)", "gap-buttonRow-Form": "var(--xmlui-gap-buttonRow-Form)"}'`,wrapper:"_wrapper_wscb6_13",buttonRow:"_buttonRow_wscb6_19"},ai={themeVars:'"[]"',spacer:"_spacer_1414d_13"},li={themeVars:`'{"padding-horizontal-ModalDialog": "var(--xmlui-padding-horizontal-ModalDialog)", "padding-vertical-ModalDialog": "var(--xmlui-padding-vertical-ModalDialog)", "padding-top-ModalDialog": "var(--xmlui-padding-top-ModalDialog)", "padding-bottom-ModalDialog": "var(--xmlui-padding-bottom-ModalDialog)", "padding-left-ModalDialog": "var(--xmlui-padding-left-ModalDialog)", "padding-right-ModalDialog": "var(--xmlui-padding-right-ModalDialog)", "padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "padding-horizontal-overlay-ModalDialog": "var(--xmlui-padding-horizontal-overlay-ModalDialog)", "padding-vertical-overlay-ModalDialog": "var(--xmlui-padding-vertical-overlay-ModalDialog)", "padding-top-overlay-ModalDialog": "var(--xmlui-padding-top-overlay-ModalDialog)", "padding-bottom-overlay-ModalDialog": "var(--xmlui-padding-bottom-overlay-ModalDialog)", "padding-left-overlay-ModalDialog": "var(--xmlui-padding-left-overlay-ModalDialog)", "padding-right-overlay-ModalDialog": "var(--xmlui-padding-right-overlay-ModalDialog)", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "Dialog:color-bg-ModalDialog": "var(--xmlui-color-bg-ModalDialog)", "Dialog:color-bg-overlay-ModalDialog": "var(--xmlui-color-bg-overlay-ModalDialog)", "Dialog:radius-ModalDialog": "var(--xmlui-radius-ModalDialog)", "Dialog:font-family-ModalDialog": "var(--xmlui-font-family-ModalDialog)", "Dialog:color-text-ModalDialog": "var(--xmlui-color-text-ModalDialog)", "Dialog:min-width-ModalDialog": "var(--xmlui-min-width-ModalDialog)", "Dialog:max-width-ModalDialog": "var(--xmlui-max-width-ModalDialog)", "Dialog:margin-bottom-title-ModalDialog": "var(--xmlui-margin-bottom-title-ModalDialog)"}'`,overlay:"_overlay_1lmtb_13",fullScreen:"_fullScreen_1lmtb_21",content:"_content_1lmtb_27",overlayBg:"_overlayBg_1lmtb_36",overlayShow:"_overlayShow_1lmtb_1",contentShow:"_contentShow_1lmtb_1",dialogTitle:"_dialogTitle_1lmtb_66",innerContent:"_innerContent_1lmtb_72",closeButton:"_closeButton_1lmtb_98",dialog:"_dialog_1lmtb_66"},si=k({status:"experimental",description:"A `Form` is a fundamental component that displays user interfaces that allow users to input (or change) data and submit it to the app (a server) for further processing.",props:{buttonRowTemplate:te("This property allows defining a custom component to display the buttons at the bottom of the form."),itemLabelPosition:a("This property sets the position of the item labels within the form.Individual `FormItem` instances can override this property.",To,"string","top"),itemLabelWidth:a("This property sets the width of the item labels within the form. Individual `FormItem` instances can override this property."),itemLabelBreak:a("This boolean value indicates if form item labels can be split into multiple lines if it would overflow the available label width. Individual `FormItem` instances can override this property."),keepModalOpenOnSubmit:a("This property prevents the modal from closing when the form is submitted."),data:a("This property sets the initial value of the form's data structure. The form infrastructure uses this value to set the initial state of form items within the form."),cancelLabel:a('This property defines the label of the Cancel button, by default, "Cancel".'),saveLabel:a('This property defines the label of the Save button, by default, "Save".'),saveInProgressLabel:a("This property defines the label of the Save button to display during the form data submit (save) operation. By default, the value of `saveLabel`."),swapCancelAndSave:a("By default, the Cancel button is to the left of the Save button. Set this property to `true` to swap them or `false` to keep their original location."),submitUrl:a("URL to submit the form data."),submitMethod:a("HTTP method to use when submitting the form data."),enabled:a("Whether the form is enabled or not. The default value is `true`."),_data_url:rt("when we have an api bound data prop, we inject the url here")},events:{submit:a("The form infrastructure fires this event when the form is submitted. The event argument is the current `data` value to save."),cancel:a("The form infrastructure fires this event when the form is canceled."),reset:a("The form infrastructure fires this event when the form is reset.")},contextVars:{$data:a("This property represents the value of the form data. You can access the fields of the form using the IDs in the `bindTo` property of nested `FormItem` instances.")},themeVars:N(ii.themeVars),defaultThemeVars:{"gap-Form":"$space-4","gap-buttonRow-Form":"$space-4",light:{"color-bg-ValidationDisplay-error":"$color-danger-100","color-bg-ValidationDisplay-warning":"$color-warn-100","color-bg-ValidationDisplay-info":"$color-primary-100","color-bg-ValidationDisplay-valid":"$color-success-100","color-accent-ValidationDisplay-error":"$color-error","color-accent-ValidationDisplay-warning":"$color-warning","color-accent-ValidationDisplay-info":"$color-info","color-accent-ValidationDisplay-valid":"$color-valid","color-text-ValidationDisplay-error":"$color-error","color-text-ValidationDisplay-warning":"$color-warning","color-text-ValidationDisplay-info":"$color-info","color-text-ValidationDisplay-valid":"$color-valid"},dark:{"color-bg-ValidationDisplay-error":"$color-danger-900","color-bg-ValidationDisplay-warning":"$color-warn-900","color-bg-ValidationDisplay-info":"$color-secondary-800","color-bg-ValidationDisplay-valid":"$color-success-900","color-accent-ValidationDisplay-error":"$color-danger-500","color-accent-ValidationDisplay-warning":"$color-warn-700","color-accent-ValidationDisplay-info":"$color-surface-200","color-accent-ValidationDisplay-valid":"$color-success-600","color-text-ValidationDisplay-error":"$color-danger-500","color-text-ValidationDisplay-warning":"$color-warn-700","color-text-ValidationDisplay-info":"$color-secondary-200","color-text-ValidationDisplay-valid":"$color-success-600"}}}),ci={themeVars:`'{"Input:radius-NumberBox-default": "var(--xmlui-radius-NumberBox-default)", "Input:color-border-NumberBox-default": "var(--xmlui-color-border-NumberBox-default)", "Input:thickness-border-NumberBox-default": "var(--xmlui-thickness-border-NumberBox-default)", "Input:style-border-NumberBox-default": "var(--xmlui-style-border-NumberBox-default)", "Input:font-size-NumberBox-default": "var(--xmlui-font-size-NumberBox-default)", "Input:color-bg-NumberBox-default": "var(--xmlui-color-bg-NumberBox-default)", "Input:shadow-NumberBox-default": "var(--xmlui-shadow-NumberBox-default)", "Input:color-text-NumberBox-default": "var(--xmlui-color-text-NumberBox-default)", "Input:color-border-NumberBox-default--hover": "var(--xmlui-color-border-NumberBox-default--hover)", "Input:color-bg-NumberBox-default--hover": "var(--xmlui-color-bg-NumberBox-default--hover)", "Input:shadow-NumberBox-default--hover": "var(--xmlui-shadow-NumberBox-default--hover)", "Input:color-text-NumberBox-default--hover": "var(--xmlui-color-text-NumberBox-default--hover)", "Input:color-border-NumberBox-default--focus": "var(--xmlui-color-border-NumberBox-default--focus)", "Input:color-bg-NumberBox-default--focus": "var(--xmlui-color-bg-NumberBox-default--focus)", "Input:shadow-NumberBox-default--focus": "var(--xmlui-shadow-NumberBox-default--focus)", "Input:color-text-NumberBox-default--focus": "var(--xmlui-color-text-NumberBox-default--focus)", "Input:thickness-outline-NumberBox-default--focus": "var(--xmlui-thickness-outline-NumberBox-default--focus)", "Input:color-outline-NumberBox-default--focus": "var(--xmlui-color-outline-NumberBox-default--focus)", "Input:style-outline-NumberBox-default--focus": "var(--xmlui-style-outline-NumberBox-default--focus)", "Input:offset-outline-NumberBox-default--focus": "var(--xmlui-offset-outline-NumberBox-default--focus)", "Input:color-placeholder-NumberBox-default": "var(--xmlui-color-placeholder-NumberBox-default)", "Input:color-adornment-NumberBox-default": "var(--xmlui-color-adornment-NumberBox-default)", "Input:radius-NumberBox-error": "var(--xmlui-radius-NumberBox-error)", "Input:color-border-NumberBox-error": "var(--xmlui-color-border-NumberBox-error)", "Input:thickness-border-NumberBox-error": "var(--xmlui-thickness-border-NumberBox-error)", "Input:style-border-NumberBox-error": "var(--xmlui-style-border-NumberBox-error)", "Input:font-size-NumberBox-error": "var(--xmlui-font-size-NumberBox-error)", "Input:color-bg-NumberBox-error": "var(--xmlui-color-bg-NumberBox-error)", "Input:shadow-NumberBox-error": "var(--xmlui-shadow-NumberBox-error)", "Input:color-text-NumberBox-error": "var(--xmlui-color-text-NumberBox-error)", "Input:color-border-NumberBox-error--hover": "var(--xmlui-color-border-NumberBox-error--hover)", "Input:color-bg-NumberBox-error--hover": "var(--xmlui-color-bg-NumberBox-error--hover)", "Input:shadow-NumberBox-error--hover": "var(--xmlui-shadow-NumberBox-error--hover)", "Input:color-text-NumberBox-error--hover": "var(--xmlui-color-text-NumberBox-error--hover)", "Input:color-border-NumberBox-error--focus": "var(--xmlui-color-border-NumberBox-error--focus)", "Input:color-bg-NumberBox-error--focus": "var(--xmlui-color-bg-NumberBox-error--focus)", "Input:shadow-NumberBox-error--focus": "var(--xmlui-shadow-NumberBox-error--focus)", "Input:color-text-NumberBox-error--focus": "var(--xmlui-color-text-NumberBox-error--focus)", "Input:thickness-outline-NumberBox-error--focus": "var(--xmlui-thickness-outline-NumberBox-error--focus)", "Input:color-outline-NumberBox-error--focus": "var(--xmlui-color-outline-NumberBox-error--focus)", "Input:style-outline-NumberBox-error--focus": "var(--xmlui-style-outline-NumberBox-error--focus)", "Input:offset-outline-NumberBox-error--focus": "var(--xmlui-offset-outline-NumberBox-error--focus)", "Input:color-placeholder-NumberBox-error": "var(--xmlui-color-placeholder-NumberBox-error)", "Input:color-adornment-NumberBox-error": "var(--xmlui-color-adornment-NumberBox-error)", "Input:radius-NumberBox-warning": "var(--xmlui-radius-NumberBox-warning)", "Input:color-border-NumberBox-warning": "var(--xmlui-color-border-NumberBox-warning)", "Input:thickness-border-NumberBox-warning": "var(--xmlui-thickness-border-NumberBox-warning)", "Input:style-border-NumberBox-warning": "var(--xmlui-style-border-NumberBox-warning)", "Input:font-size-NumberBox-warning": "var(--xmlui-font-size-NumberBox-warning)", "Input:color-bg-NumberBox-warning": "var(--xmlui-color-bg-NumberBox-warning)", "Input:shadow-NumberBox-warning": "var(--xmlui-shadow-NumberBox-warning)", "Input:color-text-NumberBox-warning": "var(--xmlui-color-text-NumberBox-warning)", "Input:color-border-NumberBox-warning--hover": "var(--xmlui-color-border-NumberBox-warning--hover)", "Input:color-bg-NumberBox-warning--hover": "var(--xmlui-color-bg-NumberBox-warning--hover)", "Input:shadow-NumberBox-warning--hover": "var(--xmlui-shadow-NumberBox-warning--hover)", "Input:color-text-NumberBox-warning--hover": "var(--xmlui-color-text-NumberBox-warning--hover)", "Input:color-border-NumberBox-warning--focus": "var(--xmlui-color-border-NumberBox-warning--focus)", "Input:color-bg-NumberBox-warning--focus": "var(--xmlui-color-bg-NumberBox-warning--focus)", "Input:shadow-NumberBox-warning--focus": "var(--xmlui-shadow-NumberBox-warning--focus)", "Input:color-text-NumberBox-warning--focus": "var(--xmlui-color-text-NumberBox-warning--focus)", "Input:thickness-outline-NumberBox-warning--focus": "var(--xmlui-thickness-outline-NumberBox-warning--focus)", "Input:color-outline-NumberBox-warning--focus": "var(--xmlui-color-outline-NumberBox-warning--focus)", "Input:style-outline-NumberBox-warning--focus": "var(--xmlui-style-outline-NumberBox-warning--focus)", "Input:offset-outline-NumberBox-warning--focus": "var(--xmlui-offset-outline-NumberBox-warning--focus)", "Input:color-placeholder-NumberBox-warning": "var(--xmlui-color-placeholder-NumberBox-warning)", "Input:color-adornment-NumberBox-warning": "var(--xmlui-color-adornment-NumberBox-warning)", "Input:radius-NumberBox-success": "var(--xmlui-radius-NumberBox-success)", "Input:color-border-NumberBox-success": "var(--xmlui-color-border-NumberBox-success)", "Input:thickness-border-NumberBox-success": "var(--xmlui-thickness-border-NumberBox-success)", "Input:style-border-NumberBox-success": "var(--xmlui-style-border-NumberBox-success)", "Input:font-size-NumberBox-success": "var(--xmlui-font-size-NumberBox-success)", "Input:color-bg-NumberBox-success": "var(--xmlui-color-bg-NumberBox-success)", "Input:shadow-NumberBox-success": "var(--xmlui-shadow-NumberBox-success)", "Input:color-text-NumberBox-success": "var(--xmlui-color-text-NumberBox-success)", "Input:color-border-NumberBox-success--hover": "var(--xmlui-color-border-NumberBox-success--hover)", "Input:color-bg-NumberBox-success--hover": "var(--xmlui-color-bg-NumberBox-success--hover)", "Input:shadow-NumberBox-success--hover": "var(--xmlui-shadow-NumberBox-success--hover)", "Input:color-text-NumberBox-success--hover": "var(--xmlui-color-text-NumberBox-success--hover)", "Input:color-border-NumberBox-success--focus": "var(--xmlui-color-border-NumberBox-success--focus)", "Input:color-bg-NumberBox-success--focus": "var(--xmlui-color-bg-NumberBox-success--focus)", "Input:shadow-NumberBox-success--focus": "var(--xmlui-shadow-NumberBox-success--focus)", "Input:color-text-NumberBox-success--focus": "var(--xmlui-color-text-NumberBox-success--focus)", "Input:thickness-outline-NumberBox-success--focus": "var(--xmlui-thickness-outline-NumberBox-success--focus)", "Input:color-outline-NumberBox-success--focus": "var(--xmlui-color-outline-NumberBox-success--focus)", "Input:style-outline-NumberBox-success--focus": "var(--xmlui-style-outline-NumberBox-success--focus)", "Input:offset-outline-NumberBox-success--focus": "var(--xmlui-offset-outline-NumberBox-success--focus)", "Input:color-placeholder-NumberBox-success": "var(--xmlui-color-placeholder-NumberBox-success)", "Input:color-adornment-NumberBox-success": "var(--xmlui-color-adornment-NumberBox-success)", "Input:color-bg-NumberBox--disabled": "var(--xmlui-color-bg-NumberBox--disabled)", "Input:color-text-NumberBox--disabled": "var(--xmlui-color-text-NumberBox--disabled)", "Input:color-border-NumberBox--disabled": "var(--xmlui-color-border-NumberBox--disabled)"}'`,inputRoot:"_inputRoot_zavgy_13",input:"_input_zavgy_13",adornment:"_adornment_zavgy_53",error:"_error_zavgy_56",warning:"_warning_zavgy_90",valid:"_valid_zavgy_124",spinnerBox:"_spinnerBox_zavgy_184",spinnerButton:"_spinnerButton_zavgy_191",readOnly:"_readOnly_zavgy_197"},ui={themeVars:`'{"Input:font-size-Select-default": "var(--xmlui-font-size-Select-default)", "Input:color-placeholder-Select-default": "var(--xmlui-color-placeholder-Select-default)", "Input:color-text-Select-default": "var(--xmlui-color-text-Select-default)", "Input:font-size-Select-error": "var(--xmlui-font-size-Select-error)", "Input:color-placeholder-Select-error": "var(--xmlui-color-placeholder-Select-error)", "Input:color-text-Select-error": "var(--xmlui-color-text-Select-error)", "Input:font-size-Select-warning": "var(--xmlui-font-size-Select-warning)", "Input:color-placeholder-Select-warning": "var(--xmlui-color-placeholder-Select-warning)", "Input:color-text-Select-warning": "var(--xmlui-color-text-Select-warning)", "Input:font-size-Select-success": "var(--xmlui-font-size-Select-success)", "Input:color-placeholder-Select-success": "var(--xmlui-color-placeholder-Select-success)", "Input:color-text-Select-success": "var(--xmlui-color-text-Select-success)", "Input:radius-Select-default": "var(--xmlui-radius-Select-default)", "Input:color-border-Select-default": "var(--xmlui-color-border-Select-default)", "Input:thickness-border-Select-default": "var(--xmlui-thickness-border-Select-default)", "Input:style-border-Select-default": "var(--xmlui-style-border-Select-default)", "Input:color-bg-Select-default": "var(--xmlui-color-bg-Select-default)", "Input:shadow-Select-default": "var(--xmlui-shadow-Select-default)", "Input:color-border-Select-default--hover": "var(--xmlui-color-border-Select-default--hover)", "Input:color-bg-Select-default--hover": "var(--xmlui-color-bg-Select-default--hover)", "Input:shadow-Select-default--hover": "var(--xmlui-shadow-Select-default--hover)", "Input:color-text-Select-default--hover": "var(--xmlui-color-text-Select-default--hover)", "Input:thickness-outline-Select-default--focus": "var(--xmlui-thickness-outline-Select-default--focus)", "Input:color-outline-Select-default--focus": "var(--xmlui-color-outline-Select-default--focus)", "Input:style-outline-Select-default--focus": "var(--xmlui-style-outline-Select-default--focus)", "Input:offset-outline-Select-default--focus": "var(--xmlui-offset-outline-Select-default--focus)", "Input:radius-Select-error": "var(--xmlui-radius-Select-error)", "Input:color-border-Select-error": "var(--xmlui-color-border-Select-error)", "Input:thickness-border-Select-error": "var(--xmlui-thickness-border-Select-error)", "Input:style-border-Select-error": "var(--xmlui-style-border-Select-error)", "Input:color-bg-Select-error": "var(--xmlui-color-bg-Select-error)", "Input:shadow-Select-error": "var(--xmlui-shadow-Select-error)", "Input:color-border-Select-error--hover": "var(--xmlui-color-border-Select-error--hover)", "Input:color-bg-Select-error--hover": "var(--xmlui-color-bg-Select-error--hover)", "Input:shadow-Select-error--hover": "var(--xmlui-shadow-Select-error--hover)", "Input:color-text-Select-error--hover": "var(--xmlui-color-text-Select-error--hover)", "Input:thickness-outline-Select-error--focus": "var(--xmlui-thickness-outline-Select-error--focus)", "Input:color-outline-Select-error--focus": "var(--xmlui-color-outline-Select-error--focus)", "Input:style-outline-Select-error--focus": "var(--xmlui-style-outline-Select-error--focus)", "Input:offset-outline-Select-error--focus": "var(--xmlui-offset-outline-Select-error--focus)", "Input:radius-Select-warning": "var(--xmlui-radius-Select-warning)", "Input:color-border-Select-warning": "var(--xmlui-color-border-Select-warning)", "Input:thickness-border-Select-warning": "var(--xmlui-thickness-border-Select-warning)", "Input:style-border-Select-warning": "var(--xmlui-style-border-Select-warning)", "Input:color-bg-Select-warning": "var(--xmlui-color-bg-Select-warning)", "Input:shadow-Select-warning": "var(--xmlui-shadow-Select-warning)", "Input:color-border-Select-warning--hover": "var(--xmlui-color-border-Select-warning--hover)", "Input:color-bg-Select-warning--hover": "var(--xmlui-color-bg-Select-warning--hover)", "Input:shadow-Select-warning--hover": "var(--xmlui-shadow-Select-warning--hover)", "Input:color-text-Select-warning--hover": "var(--xmlui-color-text-Select-warning--hover)", "Input:thickness-outline-Select-warning--focus": "var(--xmlui-thickness-outline-Select-warning--focus)", "Input:color-outline-Select-warning--focus": "var(--xmlui-color-outline-Select-warning--focus)", "Input:style-outline-Select-warning--focus": "var(--xmlui-style-outline-Select-warning--focus)", "Input:offset-outline-Select-warning--focus": "var(--xmlui-offset-outline-Select-warning--focus)", "Input:radius-Select-success": "var(--xmlui-radius-Select-success)", "Input:color-border-Select-success": "var(--xmlui-color-border-Select-success)", "Input:thickness-border-Select-success": "var(--xmlui-thickness-border-Select-success)", "Input:style-border-Select-success": "var(--xmlui-style-border-Select-success)", "Input:color-bg-Select-success": "var(--xmlui-color-bg-Select-success)", "Input:shadow-Select-success": "var(--xmlui-shadow-Select-success)", "Input:color-border-Select-success--hover": "var(--xmlui-color-border-Select-success--hover)", "Input:color-bg-Select-success--hover": "var(--xmlui-color-bg-Select-success--hover)", "Input:shadow-Select-success--hover": "var(--xmlui-shadow-Select-success--hover)", "Input:color-text-Select-success--hover": "var(--xmlui-color-text-Select-success--hover)", "Input:thickness-outline-Select-success--focus": "var(--xmlui-thickness-outline-Select-success--focus)", "Input:color-outline-Select-success--focus": "var(--xmlui-color-outline-Select-success--focus)", "Input:style-outline-Select-success--focus": "var(--xmlui-style-outline-Select-success--focus)", "Input:offset-outline-Select-success--focus": "var(--xmlui-offset-outline-Select-success--focus)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:color-bg-Select--disabled": "var(--xmlui-color-bg-Select--disabled)", "Input:color-text-Select--disabled": "var(--xmlui-color-text-Select--disabled)", "Input:color-border-Select--disabled": "var(--xmlui-color-border-Select--disabled)", "padding-vertical-Select-badge": "var(--xmlui-padding-vertical-Select-badge)", "padding-horizontal-Select-badge": "var(--xmlui-padding-horizontal-Select-badge)", "Input:font-size-Select-badge": "var(--xmlui-font-size-Select-badge)", "Input:color-bg-Select-badge": "var(--xmlui-color-bg-Select-badge)", "Input:color-text-Select-badge": "var(--xmlui-color-text-Select-badge)", "Input:color-bg-Select-badge--hover": "var(--xmlui-color-bg-Select-badge--hover)", "Input:color-text-Select-badge--hover": "var(--xmlui-color-text-Select-badge--hover)", "Input:color-bg-Select-badge--active": "var(--xmlui-color-bg-Select-badge--active)", "Input:color-text-Select-badge--active": "var(--xmlui-color-text-Select-badge--active)", "Input:color-placeholder-Select": "var(--xmlui-color-placeholder-Select)", "Input:color-bg-menu-Select": "var(--xmlui-color-bg-menu-Select)", "Input:radius-menu-Select": "var(--xmlui-radius-menu-Select)", "Input:shadow-menu-Select": "var(--xmlui-shadow-menu-Select)", "Input:thickness-border-menu-Select": "var(--xmlui-thickness-border-menu-Select)", "Input:color-border-menu-Select": "var(--xmlui-color-border-menu-Select)", "color-bg-item-Select": "var(--xmlui-color-bg-item-Select)", "color-bg-item-Select--hover": "var(--xmlui-color-bg-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "font-size-Select": "var(--xmlui-font-size-Select)", "color-bg-item-Select--active": "var(--xmlui-color-bg-item-Select--active)", "color-text-indicator-Select": "var(--xmlui-color-text-indicator-Select)"}'`,selectValue:"_selectValue_z2kxg_13",error:"_error_z2kxg_21",warning:"_warning_z2kxg_29",valid:"_valid_z2kxg_37",selectTrigger:"_selectTrigger_z2kxg_46",badgeListContainer:"_badgeListContainer_z2kxg_170",badgeList:"_badgeList_z2kxg_170",badge:"_badge_z2kxg_170",actions:"_actions_z2kxg_210",placeholder:"_placeholder_z2kxg_216",emptyList:"_emptyList_z2kxg_221",selectScrollUpButton:"_selectScrollUpButton_z2kxg_231",selectScrollDownButton:"_selectScrollDownButton_z2kxg_240",command:"_command_z2kxg_249",commandInputContainer:"_commandInputContainer_z2kxg_259",commandInput:"_commandInput_z2kxg_259",commandList:"_commandList_z2kxg_284",selectContent:"_selectContent_z2kxg_289",fadeIn:"_fadeIn_z2kxg_1",zoomIn:"_zoomIn_z2kxg_1",fadeOut:"_fadeOut_z2kxg_1",zoomOut:"_zoomOut_z2kxg_1",slideInFromTop:"_slideInFromTop_z2kxg_1",slideInFromRight:"_slideInFromRight_z2kxg_1",slideInFromLeft:"_slideInFromLeft_z2kxg_1",slideInFromBottom:"_slideInFromBottom_z2kxg_1",multiComboboxOption:"_multiComboboxOption_z2kxg_329",selectItem:"_selectItem_z2kxg_349",selectItemIndicator:"_selectItemIndicator_z2kxg_377",selectViewport:"_selectViewport_z2kxg_388",selectEmpty:"_selectEmpty_z2kxg_394",srOnly:"_srOnly_z2kxg_405"},di=Y.createContext(null);function pi(){return Y.useContext(di)}const hi={themeVars:`'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Input:color-bg-RadioGroupOption-default": "var(--xmlui-color-bg-RadioGroupOption-default)", "thickness-border-RadioGroupOption": "var(--xmlui-thickness-border-RadioGroupOption)", "Input:color-border-RadioGroupOption-default": "var(--xmlui-color-border-RadioGroupOption-default)", "Input:color-border-RadioGroupOption-default--hover": "var(--xmlui-color-border-RadioGroupOption-default--hover)", "Input:color-border-RadioGroupOption-default--active": "var(--xmlui-color-border-RadioGroupOption-default--active)", "Input:color-border-RadioGroupOption--disabled": "var(--xmlui-color-border-RadioGroupOption--disabled)", "Input:color-text-RadioGroupOption--disabled": "var(--xmlui-color-text-RadioGroupOption--disabled)", "Input:color-border-RadioGroupOption-error": "var(--xmlui-color-border-RadioGroupOption-error)", "Input:color-border-RadioGroupOption-warning": "var(--xmlui-color-border-RadioGroupOption-warning)", "Input:color-border-RadioGroupOption-success": "var(--xmlui-color-border-RadioGroupOption-success)", "color-bg-checked-RadioGroupOption-default": "var(--xmlui-color-bg-checked-RadioGroupOption-default)", "color-bg-checked-RadioGroupOption--disabled": "var(--xmlui-color-bg-checked-RadioGroupOption--disabled)", "color-bg-checked-RadioGroupOption-error": "var(--xmlui-color-bg-checked-RadioGroupOption-error)", "color-bg-checked-RadioGroupOption-warning": "var(--xmlui-color-bg-checked-RadioGroupOption-warning)", "color-bg-checked-RadioGroupOption-success": "var(--xmlui-color-bg-checked-RadioGroupOption-success)", "Input:font-size-RadioGroupOption": "var(--xmlui-font-size-RadioGroupOption)", "Input:font-weight-RadioGroupOption": "var(--xmlui-font-weight-RadioGroupOption)", "Input:color-text-RadioGroupOption-default": "var(--xmlui-color-text-RadioGroupOption-default)", "Input:color-text-RadioGroupOption-error": "var(--xmlui-color-text-RadioGroupOption-error)", "Input:color-text-RadioGroupOption-warning": "var(--xmlui-color-text-RadioGroupOption-warning)", "Input:color-text-RadioGroupOption-success": "var(--xmlui-color-text-RadioGroupOption-success)", "Input:thickness-outline-RadioGroupOption--focus": "var(--xmlui-thickness-outline-RadioGroupOption--focus)", "Input:color-outline-RadioGroupOption--focus": "var(--xmlui-color-outline-RadioGroupOption--focus)", "Input:style-outline-RadioGroupOption--focus": "var(--xmlui-style-outline-RadioGroupOption--focus)", "Input:offset-outline-RadioGroupOption--focus": "var(--xmlui-offset-outline-RadioGroupOption--focus)"}'`,radioGroupContainer:"_radioGroupContainer_1wu5b_13",radioOptionContainer:"_radioOptionContainer_1wu5b_20",radioOption:"_radioOption_1wu5b_20",error:"_error_1wu5b_55",warning:"_warning_1wu5b_58",valid:"_valid_1wu5b_61",indicator:"_indicator_1wu5b_65",disabled:"_disabled_1wu5b_78",label:"_label_1wu5b_91"},mi={themeVars:`'{"Input:radius-Textarea-default": "var(--xmlui-radius-Textarea-default)", "Input:color-border-Textarea-default": "var(--xmlui-color-border-Textarea-default)", "Input:thickness-border-Textarea-default": "var(--xmlui-thickness-border-Textarea-default)", "Input:style-border-Textarea-default": "var(--xmlui-style-border-Textarea-default)", "Input:font-size-Textarea-default": "var(--xmlui-font-size-Textarea-default)", "Input:padding-Textarea-default": "var(--xmlui-padding-Textarea-default)", "Input:color-bg-Textarea-default": "var(--xmlui-color-bg-Textarea-default)", "Input:shadow-Textarea-default": "var(--xmlui-shadow-Textarea-default)", "Input:color-text-Textarea-default": "var(--xmlui-color-text-Textarea-default)", "Input:color-border-Textarea-default--hover": "var(--xmlui-color-border-Textarea-default--hover)", "Input:color-bg-Textarea-default--hover": "var(--xmlui-color-bg-Textarea-default--hover)", "Input:shadow-Textarea-default--hover": "var(--xmlui-shadow-Textarea-default--hover)", "Input:color-text-Textarea-default--hover": "var(--xmlui-color-text-Textarea-default--hover)", "Input:color-border-Textarea-default--focus": "var(--xmlui-color-border-Textarea-default--focus)", "Input:color-bg-Textarea-default--focus": "var(--xmlui-color-bg-Textarea-default--focus)", "Input:shadow-Textarea-default--focus": "var(--xmlui-shadow-Textarea-default--focus)", "Input:color-text-Textarea-default--focus": "var(--xmlui-color-text-Textarea-default--focus)", "Input:thickness-outline-Textarea-default--focus": "var(--xmlui-thickness-outline-Textarea-default--focus)", "Input:color-outline-Textarea-default--focus": "var(--xmlui-color-outline-Textarea-default--focus)", "Input:style-outline-Textarea-default--focus": "var(--xmlui-style-outline-Textarea-default--focus)", "Input:offset-outline-Textarea-default--focus": "var(--xmlui-offset-outline-Textarea-default--focus)", "Input:color-placeholder-Textarea-default": "var(--xmlui-color-placeholder-Textarea-default)", "Input:radius-Textarea-error": "var(--xmlui-radius-Textarea-error)", "Input:color-border-Textarea-error": "var(--xmlui-color-border-Textarea-error)", "Input:thickness-border-Textarea-error": "var(--xmlui-thickness-border-Textarea-error)", "Input:style-border-Textarea-error": "var(--xmlui-style-border-Textarea-error)", "Input:font-size-Textarea-error": "var(--xmlui-font-size-Textarea-error)", "Input:padding-Textarea-error": "var(--xmlui-padding-Textarea-error)", "Input:color-bg-Textarea-error": "var(--xmlui-color-bg-Textarea-error)", "Input:shadow-Textarea-error": "var(--xmlui-shadow-Textarea-error)", "Input:color-text-Textarea-error": "var(--xmlui-color-text-Textarea-error)", "Input:color-border-Textarea-error--hover": "var(--xmlui-color-border-Textarea-error--hover)", "Input:color-bg-Textarea-error--hover": "var(--xmlui-color-bg-Textarea-error--hover)", "Input:shadow-Textarea-error--hover": "var(--xmlui-shadow-Textarea-error--hover)", "Input:color-text-Textarea-error--hover": "var(--xmlui-color-text-Textarea-error--hover)", "Input:color-border-Textarea-error--focus": "var(--xmlui-color-border-Textarea-error--focus)", "Input:color-bg-Textarea-error--focus": "var(--xmlui-color-bg-Textarea-error--focus)", "Input:shadow-Textarea-error--focus": "var(--xmlui-shadow-Textarea-error--focus)", "Input:color-text-Textarea-error--focus": "var(--xmlui-color-text-Textarea-error--focus)", "Input:thickness-outline-Textarea-error--focus": "var(--xmlui-thickness-outline-Textarea-error--focus)", "Input:color-outline-Textarea-error--focus": "var(--xmlui-color-outline-Textarea-error--focus)", "Input:style-outline-Textarea-error--focus": "var(--xmlui-style-outline-Textarea-error--focus)", "Input:offset-outline-Textarea-error--focus": "var(--xmlui-offset-outline-Textarea-error--focus)", "Input:color-placeholder-Textarea-error": "var(--xmlui-color-placeholder-Textarea-error)", "Input:radius-Textarea-warning": "var(--xmlui-radius-Textarea-warning)", "Input:color-border-Textarea-warning": "var(--xmlui-color-border-Textarea-warning)", "Input:thickness-border-Textarea-warning": "var(--xmlui-thickness-border-Textarea-warning)", "Input:style-border-Textarea-warning": "var(--xmlui-style-border-Textarea-warning)", "Input:font-size-Textarea-warning": "var(--xmlui-font-size-Textarea-warning)", "Input:padding-Textarea-warning": "var(--xmlui-padding-Textarea-warning)", "Input:color-bg-Textarea-warning": "var(--xmlui-color-bg-Textarea-warning)", "Input:shadow-Textarea-warning": "var(--xmlui-shadow-Textarea-warning)", "Input:color-text-Textarea-warning": "var(--xmlui-color-text-Textarea-warning)", "Input:color-border-Textarea-warning--hover": "var(--xmlui-color-border-Textarea-warning--hover)", "Input:color-bg-Textarea-warning--hover": "var(--xmlui-color-bg-Textarea-warning--hover)", "Input:shadow-Textarea-warning--hover": "var(--xmlui-shadow-Textarea-warning--hover)", "Input:color-text-Textarea-warning--hover": "var(--xmlui-color-text-Textarea-warning--hover)", "Input:color-border-Textarea-warning--focus": "var(--xmlui-color-border-Textarea-warning--focus)", "Input:color-bg-Textarea-warning--focus": "var(--xmlui-color-bg-Textarea-warning--focus)", "Input:shadow-Textarea-warning--focus": "var(--xmlui-shadow-Textarea-warning--focus)", "Input:color-text-Textarea-warning--focus": "var(--xmlui-color-text-Textarea-warning--focus)", "Input:thickness-outline-Textarea-warning--focus": "var(--xmlui-thickness-outline-Textarea-warning--focus)", "Input:color-outline-Textarea-warning--focus": "var(--xmlui-color-outline-Textarea-warning--focus)", "Input:style-outline-Textarea-warning--focus": "var(--xmlui-style-outline-Textarea-warning--focus)", "Input:offset-outline-Textarea-warning--focus": "var(--xmlui-offset-outline-Textarea-warning--focus)", "Input:color-placeholder-Textarea-warning": "var(--xmlui-color-placeholder-Textarea-warning)", "Input:radius-Textarea-success": "var(--xmlui-radius-Textarea-success)", "Input:color-border-Textarea-success": "var(--xmlui-color-border-Textarea-success)", "Input:thickness-border-Textarea-success": "var(--xmlui-thickness-border-Textarea-success)", "Input:style-border-Textarea-success": "var(--xmlui-style-border-Textarea-success)", "Input:font-size-Textarea-success": "var(--xmlui-font-size-Textarea-success)", "Input:padding-Textarea-success": "var(--xmlui-padding-Textarea-success)", "Input:color-bg-Textarea-success": "var(--xmlui-color-bg-Textarea-success)", "Input:shadow-Textarea-success": "var(--xmlui-shadow-Textarea-success)", "Input:color-text-Textarea-success": "var(--xmlui-color-text-Textarea-success)", "Input:color-border-Textarea-success--hover": "var(--xmlui-color-border-Textarea-success--hover)", "Input:color-bg-Textarea-success--hover": "var(--xmlui-color-bg-Textarea-success--hover)", "Input:shadow-Textarea-success--hover": "var(--xmlui-shadow-Textarea-success--hover)", "Input:color-text-Textarea-success--hover": "var(--xmlui-color-text-Textarea-success--hover)", "Input:color-border-Textarea-success--focus": "var(--xmlui-color-border-Textarea-success--focus)", "Input:color-bg-Textarea-success--focus": "var(--xmlui-color-bg-Textarea-success--focus)", "Input:shadow-Textarea-success--focus": "var(--xmlui-shadow-Textarea-success--focus)", "Input:color-text-Textarea-success--focus": "var(--xmlui-color-text-Textarea-success--focus)", "Input:thickness-outline-Textarea-success--focus": "var(--xmlui-thickness-outline-Textarea-success--focus)", "Input:color-outline-Textarea-success--focus": "var(--xmlui-color-outline-Textarea-success--focus)", "Input:style-outline-Textarea-success--focus": "var(--xmlui-style-outline-Textarea-success--focus)", "Input:offset-outline-Textarea-success--focus": "var(--xmlui-offset-outline-Textarea-success--focus)", "Input:color-placeholder-Textarea-success": "var(--xmlui-color-placeholder-Textarea-success)", "Input:color-bg-Textarea--disabled": "var(--xmlui-color-bg-Textarea--disabled)", "Input:color-text-Textarea--disabled": "var(--xmlui-color-text-Textarea--disabled)", "Input:color-border-Textarea--disabled": "var(--xmlui-color-border-Textarea--disabled)"}'`,textarea:"_textarea_8qfuq_13",error:"_error_8qfuq_53",warning:"_warning_8qfuq_85",valid:"_valid_8qfuq_117",resizeHorizontal:"_resizeHorizontal_8qfuq_156",resizeVertical:"_resizeVertical_8qfuq_160",resizeBoth:"_resizeBoth_8qfuq_164"};var r=(e=>(e[e.Eof=-1]="Eof",e[e.Ws=-2]="Ws",e[e.BlockComment=-3]="BlockComment",e[e.EolComment=-4]="EolComment",e[e.Unknown=0]="Unknown",e[e.LParent=1]="LParent",e[e.RParent=2]="RParent",e[e.Identifier=3]="Identifier",e[e.Exponent=4]="Exponent",e[e.Divide=5]="Divide",e[e.Multiply=6]="Multiply",e[e.Remainder=7]="Remainder",e[e.Plus=8]="Plus",e[e.Minus=9]="Minus",e[e.BitwiseXor=10]="BitwiseXor",e[e.BitwiseOr=11]="BitwiseOr",e[e.LogicalOr=12]="LogicalOr",e[e.BitwiseAnd=13]="BitwiseAnd",e[e.LogicalAnd=14]="LogicalAnd",e[e.IncOp=15]="IncOp",e[e.DecOp=16]="DecOp",e[e.Assignment=17]="Assignment",e[e.AddAssignment=18]="AddAssignment",e[e.SubtractAssignment=19]="SubtractAssignment",e[e.ExponentAssignment=20]="ExponentAssignment",e[e.MultiplyAssignment=21]="MultiplyAssignment",e[e.DivideAssignment=22]="DivideAssignment",e[e.RemainderAssignment=23]="RemainderAssignment",e[e.ShiftLeftAssignment=24]="ShiftLeftAssignment",e[e.ShiftRightAssignment=25]="ShiftRightAssignment",e[e.SignedShiftRightAssignment=26]="SignedShiftRightAssignment",e[e.BitwiseAndAssignment=27]="BitwiseAndAssignment",e[e.BitwiseXorAssignment=28]="BitwiseXorAssignment",e[e.BitwiseOrAssignment=29]="BitwiseOrAssignment",e[e.LogicalAndAssignment=30]="LogicalAndAssignment",e[e.LogicalOrAssignment=31]="LogicalOrAssignment",e[e.NullCoalesceAssignment=32]="NullCoalesceAssignment",e[e.Semicolon=33]="Semicolon",e[e.Comma=34]="Comma",e[e.Colon=35]="Colon",e[e.LSquare=36]="LSquare",e[e.RSquare=37]="RSquare",e[e.QuestionMark=38]="QuestionMark",e[e.NullCoalesce=39]="NullCoalesce",e[e.OptionalChaining=40]="OptionalChaining",e[e.BinaryNot=41]="BinaryNot",e[e.LBrace=42]="LBrace",e[e.RBrace=43]="RBrace",e[e.Equal=44]="Equal",e[e.StrictEqual=45]="StrictEqual",e[e.LogicalNot=46]="LogicalNot",e[e.NotEqual=47]="NotEqual",e[e.StrictNotEqual=48]="StrictNotEqual",e[e.LessThan=49]="LessThan",e[e.LessThanOrEqual=50]="LessThanOrEqual",e[e.ShiftLeft=51]="ShiftLeft",e[e.GreaterThan=52]="GreaterThan",e[e.GreaterThanOrEqual=53]="GreaterThanOrEqual",e[e.ShiftRight=54]="ShiftRight",e[e.SignedShiftRight=55]="SignedShiftRight",e[e.Dot=56]="Dot",e[e.Spread=57]="Spread",e[e.Global=58]="Global",e[e.Backtick=59]="Backtick",e[e.DollarLBrace=60]="DollarLBrace",e[e.Arrow=61]="Arrow",e[e.DecimalLiteral=62]="DecimalLiteral",e[e.HexadecimalLiteral=63]="HexadecimalLiteral",e[e.BinaryLiteral=64]="BinaryLiteral",e[e.RealLiteral=65]="RealLiteral",e[e.StringLiteral=66]="StringLiteral",e[e.Infinity=67]="Infinity",e[e.NaN=68]="NaN",e[e.True=69]="True",e[e.False=70]="False",e[e.Typeof=71]="Typeof",e[e.Null=72]="Null",e[e.Undefined=73]="Undefined",e[e.In=74]="In",e[e.Let=75]="Let",e[e.Const=76]="Const",e[e.Var=77]="Var",e[e.If=78]="If",e[e.Else=79]="Else",e[e.Return=80]="Return",e[e.Break=81]="Break",e[e.Continue=82]="Continue",e[e.Do=83]="Do",e[e.While=84]="While",e[e.For=85]="For",e[e.Of=86]="Of",e[e.Try=87]="Try",e[e.Catch=88]="Catch",e[e.Finally=89]="Finally",e[e.Throw=90]="Throw",e[e.Switch=91]="Switch",e[e.Case=92]="Case",e[e.Default=93]="Default",e[e.Delete=94]="Delete",e[e.Function=95]="Function",e[e.Export=96]="Export",e[e.Import=97]="Import",e[e.As=98]="As",e[e.From=99]="From",e))(r||{});class xi{constructor(t){this.source=t,this._pos=0,this._line=1,this._column=0}get position(){return this._pos}get line(){return this._line}get column(){return this._column}peek(){return this.ahead(0)}ahead(t=1){return this._pos+t>this.source.length-1?null:this.source[this._pos+t]}get(){if(this._pos>=this.source.length)return null;const t=this.source[this._pos++];return t===`
2
- `?(this._line++,this._column=0):this._column++,t}getTail(t){var o;return((o=this.source)==null?void 0:o.substring(t))??""}}const ct={[r.Eof]:{},[r.Ws]:{},[r.DollarLBrace]:{},[r.Backtick]:{expressionStart:!0},[r.BlockComment]:{},[r.EolComment]:{},[r.Unknown]:{},[r.LParent]:{expressionStart:!0},[r.RParent]:{},[r.Identifier]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[r.Exponent]:{},[r.Divide]:{},[r.Multiply]:{},[r.Remainder]:{},[r.Plus]:{expressionStart:!0,canBeUnary:!0},[r.Minus]:{expressionStart:!0,canBeUnary:!0},[r.BitwiseXor]:{},[r.BitwiseOr]:{},[r.LogicalOr]:{},[r.BitwiseAnd]:{},[r.LogicalAnd]:{},[r.Assignment]:{isAssignment:!0},[r.AddAssignment]:{isAssignment:!0},[r.SubtractAssignment]:{isAssignment:!0},[r.ExponentAssignment]:{isAssignment:!0},[r.MultiplyAssignment]:{isAssignment:!0},[r.DivideAssignment]:{isAssignment:!0},[r.RemainderAssignment]:{isAssignment:!0},[r.ShiftLeftAssignment]:{isAssignment:!0},[r.ShiftRightAssignment]:{isAssignment:!0},[r.SignedShiftRightAssignment]:{isAssignment:!0},[r.BitwiseAndAssignment]:{isAssignment:!0},[r.BitwiseXorAssignment]:{isAssignment:!0},[r.BitwiseOrAssignment]:{isAssignment:!0},[r.LogicalAndAssignment]:{isAssignment:!0},[r.LogicalOrAssignment]:{isAssignment:!0},[r.NullCoalesceAssignment]:{isAssignment:!0},[r.Semicolon]:{},[r.Comma]:{},[r.Colon]:{},[r.LSquare]:{expressionStart:!0},[r.RSquare]:{},[r.QuestionMark]:{},[r.NullCoalesce]:{},[r.OptionalChaining]:{},[r.BinaryNot]:{expressionStart:!0,canBeUnary:!0},[r.LBrace]:{expressionStart:!0},[r.RBrace]:{},[r.Equal]:{},[r.StrictEqual]:{},[r.LogicalNot]:{expressionStart:!0,canBeUnary:!0},[r.NotEqual]:{},[r.StrictNotEqual]:{},[r.LessThan]:{},[r.LessThanOrEqual]:{},[r.ShiftLeft]:{},[r.GreaterThan]:{},[r.GreaterThanOrEqual]:{},[r.ShiftRight]:{},[r.SignedShiftRight]:{},[r.Dot]:{},[r.Spread]:{expressionStart:!0,isPropLiteral:!0},[r.Global]:{expressionStart:!0},[r.DecimalLiteral]:{expressionStart:!0,isPropLiteral:!0},[r.HexadecimalLiteral]:{expressionStart:!0,isPropLiteral:!0},[r.BinaryLiteral]:{expressionStart:!0,isPropLiteral:!0},[r.RealLiteral]:{expressionStart:!0,isPropLiteral:!0},[r.StringLiteral]:{expressionStart:!0,isPropLiteral:!0},[r.IncOp]:{expressionStart:!0},[r.DecOp]:{expressionStart:!0},[r.Infinity]:{expressionStart:!0,keywordLike:!0},[r.NaN]:{expressionStart:!0,keywordLike:!0},[r.True]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[r.False]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[r.Typeof]:{expressionStart:!0,canBeUnary:!0,keywordLike:!0},[r.Null]:{expressionStart:!0,keywordLike:!0},[r.Undefined]:{expressionStart:!0,keywordLike:!0},[r.In]:{keywordLike:!0},[r.Let]:{keywordLike:!0},[r.Const]:{keywordLike:!0},[r.Var]:{keywordLike:!0},[r.If]:{keywordLike:!0},[r.Else]:{keywordLike:!0},[r.Arrow]:{keywordLike:!0},[r.Return]:{keywordLike:!0},[r.Break]:{keywordLike:!0},[r.Continue]:{keywordLike:!0},[r.Do]:{keywordLike:!0},[r.While]:{keywordLike:!0},[r.For]:{keywordLike:!0},[r.Of]:{keywordLike:!0},[r.Throw]:{keywordLike:!0},[r.Try]:{keywordLike:!0},[r.Catch]:{keywordLike:!0},[r.Finally]:{keywordLike:!0},[r.Switch]:{keywordLike:!0},[r.Case]:{keywordLike:!0},[r.Default]:{keywordLike:!0},[r.Delete]:{expressionStart:!0,canBeUnary:!0,keywordLike:!0},[r.Function]:{keywordLike:!0,expressionStart:!0},[r.Export]:{keywordLike:!0},[r.Import]:{keywordLike:!0},[r.As]:{keywordLike:!0},[r.From]:{keywordLike:!0}};class fi{constructor(t){this.input=t,this._ahead=[],this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null,this._lastFetchPosition=0,this._phaseExternallySet=null}peek(t=!1){return this.ahead(0,t)}ahead(t=1,o=!1){if(t>16)throw new Error("Cannot look ahead more than 16 tokens");for(;this._ahead.length<=t;){const i=this.fetch();if(Yo(i))return i;(o||!o&&!Qo(i))&&this._ahead.push(i)}return this._ahead[t]}get(t=!1){if(this._ahead.length>0){const o=this._ahead.shift();if(!o)throw new Error("Token expected");return o}for(;;){const o=this.fetch();if(Yo(o)||t||!t&&!Qo(o))return o}}getRegEx(){return this.fetchRegEx()}getTail(){return this._ahead.length>0?this.input.getTail(this._ahead[0].location.startPosition):this.input.getTail(this._lastFetchPosition)}setStartingPhaseToTemplateLiteral(){this._phaseExternallySet=33}fetchNextChar(){return this._prefetched||(this._prefetchedPos=this.input.position,this._prefetchedColumn=this.input.column,this._prefetched=this.input.get()),this._prefetched}fetch(){const t=this,o=this.input,i=this._prefetchedPos||o.position,n=o.line,s=this._prefetchedColumn||o.column;this._lastFetchPosition=this.input.position;let l=null,c="",u=r.Eof,w=o.position,f=o.column,p=null,C=!1,v=this.getStartingPhaseThenReset();for(;;){if(p=this.fetchNextChar(),p===null)return E();u===r.Eof&&(u=r.Unknown);e:switch(v){case 0:switch(p){case" ":case" ":case`
3
- `:case"\r":v=1,u=r.Ws;break;case"/":v=5,u=r.Divide;break;case"$":v=6,u=r.Identifier;break;case"*":v=8,u=r.Multiply;break;case"%":v=54,u=r.Remainder;break;case"+":v=51,u=r.Plus;break;case"-":v=52,u=r.Minus;break;case"^":v=58,u=r.BitwiseXor;break;case"|":v=7,u=r.BitwiseOr;break;case"&":v=9,u=r.BitwiseAnd;break;case"?":v=22,u=r.QuestionMark;break;case";":return _(r.Semicolon);case",":return _(r.Comma);case"(":return _(r.LParent);case")":return _(r.RParent);case":":v=20,u=r.Colon;break;case"`":return _(r.Backtick);case"[":return _(r.LSquare);case"]":return _(r.RSquare);case"~":return _(r.BinaryNot);case"{":return _(r.LBrace);case"}":return _(r.RBrace);case"=":v=10,u=r.Assignment;break;case"!":v=13,u=r.LogicalNot;break;case"<":v=14,u=r.LessThan;break;case">":v=15,u=r.GreaterThan;break;case"0":v=21,u=r.DecimalLiteral;break;case".":v=18,u=r.Dot;break;case'"':case"'":l=p,v=35;break;default:Xo(p)?(C=!0,v=17,u=r.Identifier):We(p)?(v=27,u=r.DecimalLiteral):_(r.Unknown);break}break;case 6:if(p==="{")return _(r.DollarLBrace);v=17,C=!0,u=r.Identifier,Zo(p)||E();break;case 1:if(p!==" "&&p!==" "&&p!=="\r"&&p!==`
4
- `)return E();break;case 3:p==="*"&&(v=4);break;case 4:if(p==="/")return _(r.BlockComment);break;case 2:if(p===`
5
- `)return _();break;case 17:if(!Zo(p))return E();break;case 20:return p===":"?_(r.Global):E();case 5:if(p==="*")v=3;else if(p==="/")v=2,u=r.EolComment;else return p==="="?_(r.DivideAssignment):E();break;case 51:return p==="+"?_(r.IncOp):p==="="?_(r.AddAssignment):E();case 52:return p==="-"?_(r.DecOp):p==="="?_(r.SubtractAssignment):E();case 54:return p==="="?_(r.RemainderAssignment):E();case 58:return p==="="?_(r.BitwiseXorAssignment):E();case 7:if(p==="=")return _(r.BitwiseOrAssignment);if(p==="|"){v=59,u=r.LogicalOr;break}return E();case 59:return p==="="?_(r.LogicalOrAssignment):E();case 9:if(p==="=")return _(r.BitwiseAndAssignment);if(p==="&"){v=57,u=r.LogicalAnd;break}return E();case 57:return p==="="?_(r.LogicalAndAssignment):E();case 8:if(p==="*"){v=50,u=r.Exponent;break}else if(p==="=")return _(r.MultiplyAssignment);return E();case 50:return p==="="?_(r.ExponentAssignment):E();case 22:if(p==="?"){v=60,u=r.NullCoalesce;break}return p==="."?_(r.OptionalChaining):E();case 60:return p==="="?_(r.NullCoalesceAssignment):E();case 10:if(p===">")return _(r.Arrow);if(p==="="){v=11,u=r.Equal;break}return E();case 11:return p==="="?_(r.StrictEqual):E();case 13:if(p==="="){v=12,u=r.NotEqual;break}return E();case 12:return p==="="?_(r.StrictNotEqual):E();case 14:if(p==="=")return _(r.LessThanOrEqual);if(p==="<"){v=55,u=r.ShiftLeft;break}return E();case 55:return p==="="?_(r.ShiftLeftAssignment):E();case 15:if(p==="=")return _(r.GreaterThanOrEqual);if(p===">"){v=16,u=r.SignedShiftRight;break}return E();case 16:if(p===">"){v=56,u=r.ShiftRight;break}return p==="="?_(r.SignedShiftRightAssignment):E();case 56:return p==="="?_(r.ShiftRightAssignment):E();case 21:if(p==="x")v=23,u=r.Unknown;else if(p==="b")v=25,u=r.Unknown;else if(We(p)||p==="_")v=27;else if(p===".")v=28,u=r.Unknown;else if(p==="e"||p==="E")v=30,u=r.Unknown;else return E();break;case 18:if(p==="."){v=19,u=r.Unknown;break}if(!We(p))return E();v=29,u=r.RealLiteral;break;case 19:return p==="."?_(r.Spread):E();case 23:if(p==="_")break;if(!ye(p))return E();v=24,u=r.HexadecimalLiteral;break;case 24:if(!ye(p)&&p!=="_")return E();break;case 25:if(p==="_")break;if(!Jo(p))return E();v=26,u=r.BinaryLiteral;break;case 26:if(!Jo(p)&&p!=="_")return E();u=r.BinaryLiteral;break;case 27:if(We(p)||p==="_")break;if(p==="."&&(this.input.peek()===null||We(this.input.peek())))v=28,u=r.Unknown;else if(p==="e"||p==="E")v=30,u=r.Unknown;else return E();break;case 28:if(We(p))v=29,u=r.RealLiteral;else if(p==="e"||p==="E")v=30;else return E();break;case 29:if(p==="e"||p==="E")v=30,u=r.Unknown;else if(!We(p)&&p!=="_")return E();break;case 30:if(p==="+"||p==="-")v=31;else if(We(p))v=32,u=r.RealLiteral;else return E();break;case 31:if(We(p))v=32,u=r.RealLiteral;else return E();break;case 32:if(!We(p))return E();break;case 34:{v=33;const q=this.input.ahead(0),ce=this.input.ahead(1);if(q==="`"||q==="$"&&ce==="{")return _(r.StringLiteral);break}case 33:switch(p){case"\\":v=34,u=r.Unknown;break e;case"`":return _(r.Backtick);case"$":if(this.input.ahead(0)==="{")return M(),this.fetchNextChar(),_(r.DollarLBrace)}const se=this.input.ahead(0),T=this.input.ahead(1);if(se==="`"||se==="$"&&T==="{")return _(r.StringLiteral);break;case 35:if(p===l)return _(r.StringLiteral);if(gi(p))return _(r.Unknown);p==="\\"&&(v=36,u=r.Unknown);break;case 36:switch(p){case"b":case"f":case"n":case"r":case"t":case"v":case"S":case"0":case"'":case'"':case"`":case"\\":v=35;break;case"x":v=37;break;case"u":v=39;break;default:v=35;break}break;case 37:if(ye(p))v=38;else return _(r.Unknown);break;case 38:if(ye(p))v=35;else return _(r.Unknown);break;case 39:if(p==="{"){v=43;break}if(ye(p))v=40;else return _(r.Unknown);break;case 40:if(ye(p))v=41;else return _(r.Unknown);break;case 41:if(ye(p))v=42;else return _(r.Unknown);break;case 42:if(ye(p))v=35;else return _(r.Unknown);break;case 43:if(ye(p))v=44;else return _(r.Unknown);break;case 44:if(p==="}")v=35;else if(ye(p))v=45;else return _(r.Unknown);break;case 45:if(p==="}")v=35;else if(ye(p))v=46;else return _(r.Unknown);break;case 46:if(p==="}")v=35;else if(ye(p))v=47;else return _(r.Unknown);break;case 47:if(p==="}")v=35;else if(ye(p))v=48;else return _(r.Unknown);break;case 48:if(p==="}")v=35;else if(ye(p))v=49;else return _(r.Unknown);break;case 49:if(p==="}")v=35;else return _(r.Unknown);break;default:return E()}M()}function M(){c+=p,t._prefetched=null,t._prefetchedPos=null,t._prefetchedColumn=null,w=o.position,f=o.position}function E(){return C&&(u=Q.get(c)??(Xo(c[0])&&c[c.length-1]!=="'"?r.Identifier:r.Unknown)),{text:c,type:u,location:{startPosition:i,endPosition:w,startLine:n,endLine:n,startColumn:s,endColumn:f}}}function _(se){return M(),se!==void 0&&(u=se),E()}}getStartingPhaseThenReset(){if(this._phaseExternallySet!==null){const t=this._phaseExternallySet;return this._phaseExternallySet=null,t}return 0}fetchRegEx(){const t=this._ahead.length>0?this._ahead[0].location.startPosition:this._lastFetchPosition,o=this.input.getTail(t);try{const i=fo.parseRegExpLiteral(o),n=i.raw;for(let s=1;s<n.length;s++)this.fetchNextChar(),this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null;return this._ahead.length=0,{success:!0,pattern:i.pattern.raw,flags:i.flags.raw,length:n.length}}catch(i){let n=i.index;if(i.toString().includes("Invalid flag"))for(;n<o.length&&"dgimsuy".includes(o[n]);)n++;if(n===void 0)return{success:!1,pattern:o[0]};const s=o.substring(0,n);try{const l=fo.parseRegExpLiteral(s),c=l.raw;for(let u=1;u<c.length;u++)this.fetchNextChar(),this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null;return this._ahead.length=0,{success:!0,pattern:l.pattern.raw,flags:l.flags.raw,length:c.length}}catch{return{success:!1,pattern:s}}}}}const Q=new Map;Q.set("typeof",r.Typeof),Q.set("Infinity",r.Infinity),Q.set("NaN",r.NaN),Q.set("true",r.True),Q.set("false",r.False),Q.set("undefined",r.Undefined),Q.set("null",r.Null),Q.set("in",r.In),Q.set("let",r.Let),Q.set("const",r.Const),Q.set("var",r.Var),Q.set("if",r.If),Q.set("else",r.Else),Q.set("return",r.Return),Q.set("break",r.Break),Q.set("continue",r.Continue),Q.set("do",r.Do),Q.set("while",r.While),Q.set("for",r.For),Q.set("of",r.Of),Q.set("try",r.Try),Q.set("catch",r.Catch),Q.set("finally",r.Finally),Q.set("throw",r.Throw),Q.set("switch",r.Switch),Q.set("case",r.Case),Q.set("default",r.Default),Q.set("delete",r.Delete),Q.set("function",r.Function),Q.set("export",r.Export),Q.set("import",r.Import),Q.set("as",r.As),Q.set("from",r.From);function Yo(e){return e.type===r.Eof}function Qo(e){return e.type<=r.Ws}function Xo(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"||e==="$"}function Zo(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"||e==="$"}function Jo(e){return e==="0"||e==="1"}function We(e){return e>="0"&&e<="9"}function ye(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function gi(e){return e==="\r"||e===`
6
- `||e==="…"||e==="\u2028"||e==="\u2029"}let vi=class Br extends Error{constructor(t,o){super(t),this.code=o,Object.setPrototypeOf(this,Br.prototype)}};const Ct={W001:"An expression expected",W002:"Unexpected token: {0}",W003:"An identifier expected",W004:"'}' expected",W005:"']' expected",W006:"')' expected",W007:"Invalid object property name type",W008:"':' expected",W009:"'=' expected",W010:"Invalid argument list",W011:"For loop variable must be initialized",W012:"'{' expected",W013:"'catch' or 'finally' expected",W014:"'(' or expected",W015:"'case' or 'default' expected",W016:"'default' case can be used only once within a switch statement",W017:"Invalid sequence expression",W018:"Invalid object literal",W019:"Identifier '{0}' is already imported",W020:"Function '{0}' is already defined in the module",W021:"'{0}' is already exported from the module",W022:"Cannot find module '{0}'",W023:"Module '{0}' does not export '{1}'",W024:"'function' or 'const' expected",W025:"'from' expected",W026:"A string literal expected",W027:"Variables can be declared only in the top level module",W028:"Invalid statement used in a module",W029:"An imported module can contain only exported functions",W030:"Nested declarations cannot be exported",W031:"An identifier in a declaration cannot start with '$'"};class jo{constructor(t){this.source=t,this._parseErrors=[],this._statementLevel=0,this._lexer=new fi(new xi(t))}get errors(){return this._parseErrors}get current(){return this._lexer.peek()}get isEof(){return this._lexer.peek().type===r.Eof}getTail(){return this._lexer.getTail()}parseStatements(){this._statementLevel=0;const t=[];for(;!this.isEof;){const o=this.parseStatement();if(!o)return null;t.push(o),o.type!=="EmptyS"&&this.skipToken(r.Semicolon)}return t}parseStatement(t=!0){this._statementLevel++;try{const o=this._lexer.peek();switch(o.type){case r.Semicolon:return this.parseEmptyStatement();case r.Let:return this.parseLetStatement();case r.Const:return this.parseConstStatement();case r.Var:return this.parseVarStatement();case r.LBrace:return this.parseBlockStatement();case r.If:return this.parseIfStatement();case r.Do:return this.parseDoWhileStatement();case r.While:return this.parseWhileStatement();case r.Return:return this.parseReturnStatement();case r.Break:return this._lexer.get(),this.createStatementNode("BrkS",{},o,o);case r.Continue:return this._lexer.get(),this.createStatementNode("ContS",{},o,o);case r.For:return this.parseForStatement();case r.Throw:return this.parseThrowStatement();case r.Try:return this.parseTryStatement();case r.Switch:return this.parseSwitchStatement();case r.Function:return this.parseFunctionDeclaration();case r.Export:return this.parseExport();case r.Import:return this.parseImport();default:return o.type===r.Eof?(this.reportError("W002",o,"EOF"),null):this.isExpressionStart(o)?this.parseExpressionStatement(t):(this.reportError("W002",o,o.text),null)}}finally{this._statementLevel--}}parseEmptyStatement(){const t=this._lexer.get();return this.createStatementNode("EmptyS",{},t,t)}parseExpressionStatement(t=!0){const o=this._lexer.peek(),i=this.getExpression(t);return i?this.createStatementNode("ExprS",{expression:i},o,i.endToken):null}parseLetStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const n=this._lexer.peek();let s={};if(n.type===r.LBrace){o=this._lexer.ahead(1);const u=this.parseObjectDestructure();if(u===null)return null;s={objectDestruct:u},o=u.length>0?u[u.length-1].endToken:o}else if(n.type===r.LSquare){o=this._lexer.ahead(1);const u=this.parseArrayDestructure();if(u===null)return null;s={arrayDestruct:u},o=u.length>0?u[u.length-1].endToken:o}else if(n.type===r.Identifier){if(n.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:n.text}}else return this.reportError("W003"),null;const l=this._lexer.peek();let c=null;if(l.type===r.Assignment){if(this._lexer.get(),c=this.getExpression(!1),c===null)return null;s.expression=c,o=c.endToken}else if(s.arrayDestruct||s.objectDestruct)return this.reportError("W009",l),null;if(i.push(this.createExpressionNode("VarD",s,n,o)),this._lexer.peek().type!==r.Comma)break;this._lexer.get()}return this.createStatementNode("LetS",{declarations:i},t,o)}parseConstStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const n=this._lexer.peek();let s={};if(n.type===r.LBrace){o=this._lexer.ahead(1);const c=this.parseObjectDestructure();if(c===null)return null;s={objectDestruct:c},o=c.length>0?c[c.length-1].endToken:o}else if(n.type===r.LSquare){o=this._lexer.ahead(1);const c=this.parseArrayDestructure();if(c===null)return null;s={arrayDestruct:c},o=c.length>0?c[c.length-1].endToken:o}else if(n.type===r.Identifier){if(n.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:n.text}}else return this.reportError("W003"),null;this.expectToken(r.Assignment);const l=this.getExpression(!1);if(l===null)return null;if(s.expression=l,o=l.endToken,i.push(this.createExpressionNode("VarD",s,n,o)),this._lexer.peek().type!==r.Comma)break;this._lexer.get()}return this.createStatementNode("ConstS",{declarations:i},t,o)}parseVarStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const n=this._lexer.peek();let s={};if(n.type===r.Identifier){if(n.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:n.text}}else return this.reportError("W003"),null;this.expectToken(r.Assignment);const l=this.getExpression(!1);if(l===null)return null;if(s.expression=l,o=l.endToken,i.push(this.createExpressionNode("RVarD",s,n,o)),this._lexer.peek().type!==r.Comma)break;this._lexer.get()}return this.createStatementNode("VarS",{declarations:i},t,o)}parseObjectDestructure(){const t=[],o=this._lexer.get();let i=o,n=this._lexer.peek();for(;n.type===r.Identifier;){const s=n.text;if(s.startsWith("$"))return this.reportError("W031"),null;let l,c,u;if(this._lexer.get(),n=this._lexer.peek(),n.type===r.Colon){if(this._lexer.get(),n=this._lexer.peek(),n.type===r.Identifier)l=n.text,i=n,this._lexer.get();else if(n.type===r.LSquare){if(c=this.parseArrayDestructure(),c===null)return null;i=c[c.length-1].endToken}else if(n.type===r.LBrace){if(u=this.parseObjectDestructure(),u===null)return null;i=u[u.length-1].endToken}}n=this._lexer.peek(),(n.type===r.Comma||n.type===r.RBrace)&&(t.push(this.createExpressionNode("ODestr",{id:s,alias:l,arrayDestruct:c,objectDestruct:u},o,i)),n.type===r.Comma&&(this._lexer.get(),n=this._lexer.peek()))}return this.expectToken(r.RBrace,"W004"),t}parseArrayDestructure(){const t=[],o=this._lexer.get();let i=o;do{let n=this._lexer.peek(),s,l,c;if(n.type===r.Identifier){if(s=n.text,s.startsWith("$"))return this.reportError("W031"),null;i=n,n=this._lexer.get()}else if(n.type===r.LSquare){if(l=this.parseArrayDestructure(),l===null)return null;i=l[l.length-1].endToken}else if(n.type===r.LBrace){if(c=this.parseObjectDestructure(),c===null)return null;i=c[c.length-1].endToken}if(n=this._lexer.peek(),n.type===r.Comma)t.push(this.createExpressionNode("ADestr",{id:s,arrayDestruct:l,objectDestruct:c},o,i)),this._lexer.get();else if(n.type===r.RSquare){(s||l||c)&&t.push(this.createExpressionNode("ADestr",{id:s,arrayDestruct:l,objectDestruct:c},o,i));break}else return this.reportError("W002",n),null}while(!0);return this.expectToken(r.RSquare,"W005"),t}parseBlockStatement(){const t=this._lexer.get(),o=[];for(;this._lexer.peek().type!==r.RBrace;){const n=this.parseStatement();if(!n)return null;o.push(n),n.type!=="EmptyS"&&this.skipToken(r.Semicolon)}const i=this._lexer.get();return this.createStatementNode("BlockS",{statements:o},t,i)}parseIfStatement(){const t=this._lexer.get();let o=t;this.expectToken(r.LParent,"W014");const i=this.getExpression();if(!i)return null;this.expectToken(r.RParent,"W006");const n=this.parseStatement();if(!n)return null;o=n.endToken;let s=!0;n.type!=="BlockS"&&(this._lexer.peek().type===r.Semicolon?this._lexer.get():s=!1);let l=null;if(s&&this._lexer.peek().type===r.Else){if(this._lexer.get(),l=this.parseStatement(),!l)return null;o=l.endToken}return this.createStatementNode("IfS",{condition:i,thenBranch:n,elseBranch:l},t,o)}parseWhileStatement(){const t=this._lexer.get();this.expectToken(r.LParent,"W014");const o=this.getExpression();if(!o)return null;this.expectToken(r.RParent,"W006");const i=this.parseStatement();return i?this.createStatementNode("WhileS",{condition:o,body:i},t,i.endToken):null}parseDoWhileStatement(){const t=this._lexer.get(),o=this.parseStatement();if(!o)return null;o.type!=="BlockS"&&o.type!=="EmptyS"&&this.expectToken(r.Semicolon),this.expectToken(r.While),this.expectToken(r.LParent,"W014");const i=this.getExpression();if(!i)return null;const n=this._lexer.peek();return this.expectToken(r.RParent,"W006"),this.createStatementNode("DoWS",{condition:i,body:o},t,n)}parseReturnStatement(){const t=this._lexer.peek();let o=this._lexer.get(),i;if(ct[this._lexer.peek().type].expressionStart){if(i=this.getExpression(),i===null)return null;o=i.endToken}return this.createStatementNode("RetS",{expression:i},t,o)}parseForStatement(){const t=this._lexer.peek();this._lexer.get(),this.expectToken(r.LParent,"W014");let o=this._lexer.peek();if(o.type===r.Identifier){if(this._lexer.ahead(1).type===r.In)return this.parseForInOfStatement(t,"none",o.text,"ForInS");if(this._lexer.ahead(1).type===r.Of)return this.parseForInOfStatement(t,"none",o.text,"ForOfS")}else if(o.type===r.Let){const c=this._lexer.ahead(1);if(c.type===r.Identifier){const u=this._lexer.ahead(2);if(u.type===r.In)return this.parseForInOfStatement(t,"let",c.text,"ForInS");if(u.type===r.Of)return this.parseForInOfStatement(t,"let",c.text,"ForOfS")}}else if(o.type===r.Const){const c=this._lexer.ahead(1);if(c.type===r.Identifier){const u=this._lexer.ahead(2);if(u.type===r.In)return this.parseForInOfStatement(t,"const",c.text,"ForInS");if(u.type===r.Of)return this.parseForInOfStatement(t,"const",c.text,"ForOfS")}}let i;if(o=this._lexer.peek(),o.type===r.Semicolon)this._lexer.get();else if(o.type===r.Let){const c=this.parseLetStatement();if(c===null)return null;if(i=c,i.declarations.some(u=>!u.expression))return this.reportError("W011"),null;this.expectToken(r.Semicolon)}else if(ct[o.type].expressionStart){const c=this.parseExpressionStatement();if(c===null)return null;i=c,this.expectToken(r.Semicolon)}let n;if(o=this._lexer.peek(),o.type===r.Semicolon)this._lexer.get();else{if(n=this.getExpression(),n===null)return null;this.expectToken(r.Semicolon)}let s;if(o=this._lexer.peek(),o.type!==r.RParent&&(s=this.getExpression(),s===null))return null;this.expectToken(r.RParent,"W006");const l=this.parseStatement();return l?this.createStatementNode("ForS",{init:i,condition:n,update:s,body:l},t,l.endToken):null}parseForInOfStatement(t,o,i,n){if(o!=="none"){if(i.startsWith("$"))return this.reportError("W031"),null;this._lexer.get()}this._lexer.get(),this._lexer.get();const s=this.getExpression(!0);this.expectToken(r.RParent,"W006");const l=this.parseStatement();return l?n==="ForInS"?this.createStatementNode("ForInS",{varBinding:o,id:i,expression:s,body:l},t,l.endToken):this.createStatementNode("ForOfS",{varBinding:o,id:i,expression:s,body:l},t,l.endToken):null}parseThrowStatement(){const t=this._lexer.peek();this._lexer.get();let o;return o=this.getExpression(),o===null?null:this.createStatementNode("ThrowS",{expression:o},t,o.endToken)}parseTryStatement(){const t=this._lexer.peek();let o=this._lexer.get();const i=this,n=w();let s,l,c,u=this._lexer.peek();if(u.type===r.Catch){if(this._lexer.get(),u=this._lexer.peek(),u.type===r.LParent){if(this._lexer.get(),u=this._lexer.peek(),u.type!==r.Identifier)return this.reportError("W003",u),null;l=u.text,this._lexer.get(),this.expectToken(r.RParent,"W006")}s=w(),o=s.endToken,this._lexer.peek().type===r.Finally&&(this._lexer.get(),c=w(),o=c.endToken)}else if(u.type===r.Finally)this._lexer.get(),c=w(),o=c.endToken;else return this.reportError("W013",u),null;return this.createStatementNode("TryS",{tryBlock:n,catchBlock:s,catchVariable:l,finallyBlock:c},t,o);function w(){const f=i._lexer.peek();return f.type!==r.LBrace?(i.reportError("W012",f),null):i.parseBlockStatement()}}parseSwitchStatement(){const t=this._lexer.get();this.expectToken(r.LParent,"W014");const o=this.getExpression();if(!o)return null;this.expectToken(r.RParent,"W006"),this.expectToken(r.LBrace,"W012");const i=[];let n=!1;for(;;){let l=this._lexer.peek(),c;if(l.type===r.Case){if(this._lexer.get(),c=this.getExpression(),!c)return null}else if(l.type===r.Default){if(n)return this.reportError("W016"),null;n=!0,this._lexer.get()}else{if(l.type===r.RBrace)break;return this.reportError("W015"),null}this.expectToken(r.Colon,"W008");let u=[],w=!1;for(;!w;)switch(this._lexer.peek().type){case r.Case:case r.Default:case r.RBrace:w=!0;break;default:const p=this.parseStatement();if(p===null){w=!0;break}u.push(p),p.type!=="EmptyS"&&this.skipToken(r.Semicolon)}i.push(this.createNode("SwitchC",{caseExpression:c,statements:u},t))}const s=this._lexer.peek();return this.expectToken(r.RBrace,"W004"),this.createStatementNode("SwitchS",{expression:o,cases:i},t,s)}parseFunctionDeclaration(t=!1){const o=this._lexer.get();let i;const n=this._lexer.peek();if(t){if(n.type!==r.LParent){if(n.type!==r.Identifier)return this.reportError("W003",n),null;i=n.text,this._lexer.get()}}else{if(n.type!==r.Identifier)return this.reportError("W003",n),null;i=n.text,this._lexer.get()}const s=this._lexer.peek();if(s.type!==r.LParent)return this.reportError("W014",s),null;const l=this.getExpression(!0);let c;const u=[];switch(l.type){case"NoArgE":c=!0;break;case"IdE":c=(l.parenthesized??0)<=1,u.push(l);break;case"SeqE":c=l.parenthesized===1;let f=!1;if(c)for(const p of l.expressions){if(f){c=!1;break}switch(p.type){case"IdE":c=!p.parenthesized,u.push(p);break;case"OLitE":{if(c=!p.parenthesized,c){const C=this.convertToObjectDestructure(p);C&&u.push(C)}break}case"ALitE":{if(c=!p.parenthesized,c){const C=this.convertToArrayDestructure(p);C&&u.push(C)}break}case"SpreadE":{if(f=!0,p.operand.type!=="IdE"){c=!1;break}u.push(p);break}default:c=!1;break}}break;case"OLitE":if(c=l.parenthesized===1,c){const p=this.convertToObjectDestructure(l);p&&u.push(p)}break;case"ALitE":if(c=l.parenthesized===1,c){const p=this.convertToArrayDestructure(l);p&&u.push(p)}break;case"SpreadE":if(l.operand.type!=="IdE"){c=!1;break}c=!0,u.push(l);break;default:c=!1}if(!c)return this.reportError("W010",o),null;if(this._lexer.peek().type!==r.LBrace)return this.reportError("W012",this._lexer.peek()),null;const w=this.parseBlockStatement();return w?this.createStatementNode("FuncD",{name:i,args:u,statement:w},o,w.endToken):null}parseExport(){this._lexer.get();const t=this._lexer.peek();if(t.type===r.Const){if(this._statementLevel>1)return this.reportError("W030",t),null;const o=this.parseConstStatement();return o===null?null:{...o,isExported:!0}}else if(t.type===r.Function){if(this._statementLevel>1)return this.reportError("W030",t),null;const o=this.parseFunctionDeclaration();return o===null?null:{...o,isExported:!0}}return this.reportError("W024",t),null}parseImport(){const t=this._lexer.get();this.expectToken(r.LBrace,"W012");const o={};let i=this._lexer.peek();for(;i.type!==r.RBrace;){if(i.type!==r.Identifier)return this.reportError("W003",i),null;const l=i.text;if(this._lexer.get(),i=this._lexer.peek(),i.type===r.As){if(this._lexer.get(),i=this._lexer.peek(),i.type!==r.Identifier)return this.reportError("W003",i),null;if(o[i.text])return this.reportError("W019",i,i.text),null;o[i.text]=l,this._lexer.get()}else{if(o[l])return this.reportError("W019",i,l),null;o[l]=l}i=this._lexer.peek(),i.type===r.Comma&&(this._lexer.get(),i=this._lexer.peek())}this._lexer.get(),this.expectToken(r.From,"W025");const n=this._lexer.peek();if(n.type!==r.StringLiteral)return this.reportError("W026",n),null;this._lexer.get();const s=this.parseStringLiteral(n);return this.createStatementNode("ImportD",{imports:o,moduleFile:s.value},t,n)}parseExpr(t=!0){return t?this.parseSequenceExpression():this.parseCondOrSpreadOrAsgnOrArrowExpr()}parseSequenceExpression(){const t=this._lexer.peek();let o=t,i=this.parseCondOrSpreadOrAsgnOrArrowExpr();if(!i)return null;o=i.endToken;const n=[];let s=!1;if(this._lexer.peek().type===r.Comma)for(n.push(i);this.skipToken(r.Comma);)if(this._lexer.peek().type===r.Comma)s=!0,o=this._lexer.peek(),n.push(this.createExpressionNode("NoArgE",{},o,o));else{const l=this.parseCondOrSpreadOrAsgnOrArrowExpr();if(!l)break;o=l.endToken,n.push(l)}return n.length&&(i=this.createExpressionNode("SeqE",{expressions:n,loose:s},t,o),s&&(i=this.convertToArrayDestructure(i))),i}parseCondOrSpreadOrAsgnOrArrowExpr(){const t=this._lexer.peek();if(t.type===r.Spread){this._lexer.get();const n=this.parseNullCoalescingExpr();return n?this.createExpressionNode("SpreadE",{operand:n},t,n.endToken):null}if(t.type===r.Function){const n=this.parseFunctionDeclaration(!0);return n?this.createExpressionNode("ArrowE",{name:n.name,args:n.args,statement:n.statement},t,n.endToken):null}const o=this.parseNullCoalescingExpr();if(!o)return null;const i=this._lexer.peek();if(i.type===r.Arrow)return this.parseArrowExpression(t,o);if(i.type===r.QuestionMark){this._lexer.get();const n=this.getExpression(!1);this.expectToken(r.Colon);const s=this.getExpression(!1);return this.createExpressionNode("CondE",{condition:o,consequent:n,alternate:s},t,s.endToken)}if(ct[i.type].isAssignment){this._lexer.get();const n=this.getExpression();return n?this.createExpressionNode("AsgnE",{leftValue:o,operator:i.text,operand:n},t,n.endToken):null}return o}parseArrowExpression(t,o){let i;const n=[];switch(o.type){case"NoArgE":i=!0;break;case"IdE":i=(o.parenthesized??0)<=1,n.push(o);break;case"SeqE":i=o.parenthesized===1;let l=!1;if(i)for(const c of o.expressions){if(l){i=!1;break}switch(c.type){case"IdE":i=!c.parenthesized,n.push(c);break;case"OLitE":{if(i=!c.parenthesized,i){const u=this.convertToObjectDestructure(c);u&&n.push(u)}break}case"ALitE":{if(i=!c.parenthesized,i){const u=this.convertToArrayDestructure(c);u&&n.push(u)}break}case"SpreadE":{if(l=!0,c.operand.type!=="IdE"){i=!1;break}n.push(c);break}default:i=!1;break}}break;case"OLitE":if(i=o.parenthesized===1,i){const c=this.convertToObjectDestructure(o);c&&n.push(c)}break;case"ALitE":if(i=o.parenthesized===1,i){const c=this.convertToArrayDestructure(o);c&&n.push(c)}break;case"SpreadE":i=o.operand.type==="IdE",i&&n.push(o);break;default:i=!1}if(!i)return this.reportError("W010",t),null;this._lexer.get();const s=this.parseStatement(!1);return s?this.createExpressionNode("ArrowE",{args:n,statement:s},t,s.endToken):null}parseNullCoalescingExpr(){const t=this._lexer.peek();let o=this.parseLogicalOrExpr();if(!o)return null;for(;this.skipToken(r.NullCoalesce);){const i=this.parseLogicalOrExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"??",left:o,right:i},t,n)}return o}parseLogicalOrExpr(){const t=this._lexer.peek();let o=this.parseLogicalAndExpr();if(!o)return null;for(;this.skipToken(r.LogicalOr);){const i=this.parseLogicalAndExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"||",left:o,right:i},t,n)}return o}parseLogicalAndExpr(){const t=this._lexer.peek();let o=this.parseBitwiseOrExpr();if(!o)return null;for(;this.skipToken(r.LogicalAnd);){const i=this.parseBitwiseOrExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"&&",left:o,right:i},t,n)}return o}parseBitwiseOrExpr(){const t=this._lexer.peek();let o=this.parseBitwiseXorExpr();if(!o)return null;for(;this.skipToken(r.BitwiseOr);){const i=this.parseBitwiseXorExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"|",left:o,right:i},t,n)}return o}parseBitwiseXorExpr(){const t=this._lexer.peek();let o=this.parseBitwiseAndExpr();if(!o)return null;for(;this.skipToken(r.BitwiseXor);){const i=this.parseBitwiseAndExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"^",left:o,right:i},t,n)}return o}parseBitwiseAndExpr(){const t=this._lexer.peek();let o=this.parseEquExpr();if(!o)return null;for(;this.skipToken(r.BitwiseAnd);){const i=this.parseEquExpr();if(!i)return this.reportError("W001"),null;let n=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"&",left:o,right:i},t,n)}return o}parseEquExpr(){const t=this._lexer.peek();let o=this.parseRelOrInExpr();if(!o)return null;let i;for(;i=this.skipTokens(r.Equal,r.StrictEqual,r.NotEqual,r.StrictNotEqual);){const n=this.parseRelOrInExpr();if(!n)return this.reportError("W001"),null;let s=n.endToken;o=this.createExpressionNode("BinaryE",{type:"BinaryE",operator:i.text,left:o,right:n},t,s)}return o}parseRelOrInExpr(){const t=this._lexer.peek();let o=this.parseShiftExpr();if(!o)return null;let i;for(;i=this.skipTokens(r.LessThan,r.LessThanOrEqual,r.GreaterThan,r.GreaterThanOrEqual,r.In);){const n=this.parseShiftExpr();if(!n)return this.reportError("W001"),null;let s=n.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:n},t,s)}return o}parseShiftExpr(){const t=this._lexer.peek();let o=this.parseAddExpr();if(!o)return null;let i;for(;i=this.skipTokens(r.ShiftLeft,r.ShiftRight,r.SignedShiftRight);){const n=this.parseAddExpr();if(!n)return this.reportError("W001"),null;let s=n.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:n},t,s)}return o}parseAddExpr(){const t=this._lexer.peek();let o=this.parseMultExpr();if(!o)return null;let i;for(;i=this.skipTokens(r.Plus,r.Minus);){const n=this.parseMultExpr();if(!n)return this.reportError("W001"),null;let s=n.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:n},t,s)}return o}parseMultExpr(){const t=this._lexer.peek();let o=this.parseExponentialExpr();if(!o)return null;let i;for(;i=this.skipTokens(r.Multiply,r.Divide,r.Remainder);){const n=this.parseExponentialExpr();if(!n)return this.reportError("W001"),null;let s=n.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:n},t,s)}return o}parseExponentialExpr(){const t=this._lexer.peek();let o=this.parseUnaryOrPrefixExpr();if(!o)return null;let i,n=0;for(;i=this.skipToken(r.Exponent);){let s=this.parseUnaryOrPrefixExpr();if(!s)return this.reportError("W001"),null;let l=s.endToken;if(n===0)o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:s},t,l);else{const c=o;o=this.createExpressionNode("BinaryE",{operator:i.text,left:c.left,right:{type:"BinaryE",operator:i.text,left:c.right,right:s}},t,l)}n++}return o}parseUnaryOrPrefixExpr(){const t=this._lexer.peek();if(ct[t.type].canBeUnary){this._lexer.get();const o=this.parseUnaryOrPrefixExpr();return o?this.createExpressionNode("UnaryE",{operator:t.text,operand:o},t,o.endToken):null}if(t.type===r.IncOp||t.type===r.DecOp){this._lexer.get();const o=this.parseMemberOrInvocationExpr();return o?this.createExpressionNode("PrefE",{operator:t.text,operand:o},t,o.endToken):null}return this.parseMemberOrInvocationExpr()}parseMemberOrInvocationExpr(){const t=this._lexer.peek();let o=this.parsePrimaryExpr();if(!o)return null;let i=!1;do{const s=this._lexer.peek();switch(s.type){case r.LParent:{this._lexer.get();let f=[];if(this._lexer.peek().type!==r.RParent){const C=this.parseExpr();if(!C)return this.reportError("W001"),null;f=C.type==="SeqE"?C.expressions:[C]}const p=this._lexer.peek();this.expectToken(r.RParent,"W006"),o=this.createExpressionNode("InvokeE",{object:o,arguments:f},t,p);break}case r.Dot:case r.OptionalChaining:this._lexer.get();const l=this._lexer.get();if(!ct[l.type].keywordLike)return this.reportError("W003"),null;o=this.createExpressionNode("MembE",{object:o,member:l.text,isOptional:s.type===r.OptionalChaining},t,l);break;case r.LSquare:this._lexer.get();const u=this.getExpression();if(!u)return null;const w=this._lexer.peek();this.expectToken(r.RSquare,"W005"),o=this.createExpressionNode("CMembE",{object:o,member:u},t,w);break;default:i=!0;break}}while(!i);const n=this._lexer.peek();return n.type===r.IncOp||n.type===r.DecOp?(this._lexer.get(),this.createExpressionNode("PostfE",{operator:n.text,operand:o},t,n)):o}parsePrimaryExpr(){const t=this._lexer.peek();switch(t.type){case r.LParent:if(this._lexer.get(),this._lexer.peek().type===r.RParent){const n=this._lexer.get();return this.createExpressionNode("NoArgE",{},t,n)}const o=this.parseExpr();if(!o)return null;const i=this._lexer.peek();return this.expectToken(r.RParent,"W006"),o.parenthesized??(o.parenthesized=0),o.parenthesized++,o.startToken=t,o.startPosition=t.location.startPosition,o.startLine=t.location.startLine,o.startColumn=t.location.startColumn,o.endToken=i,o.endPosition=i.location.endPosition,o.endLine=i.location.endLine,o.endColumn=i.location.endColumn,o.source=this.getSource(t,i),o;case r.Identifier:{const n=this._lexer.get();return this.createExpressionNode("IdE",{name:n.text},n,n)}case r.Global:{this._lexer.get();const n=this._lexer.get();return n.type!==r.Identifier?(this.reportError("W003"),null):this.createExpressionNode("IdE",{name:n.text,isGlobal:!0},n,n)}case r.Backtick:return this.parseTemplateLiteral();case r.False:case r.True:return this._lexer.get(),this.createExpressionNode("LitE",{value:t.type===r.True},t,t);case r.BinaryLiteral:return this._lexer.get(),this.parseBinaryLiteral(t);case r.DecimalLiteral:return this._lexer.get(),this.parseDecimalLiteral(t);case r.HexadecimalLiteral:return this._lexer.get(),this.parseHexadecimalLiteral(t);case r.RealLiteral:return this._lexer.get(),this.parseRealLiteral(t);case r.StringLiteral:return this._lexer.get(),this.parseStringLiteral(t);case r.Infinity:return this._lexer.get(),this.createExpressionNode("LitE",{value:1/0},t,t);case r.NaN:return this._lexer.get(),this.createExpressionNode("LitE",{value:NaN},t,t);case r.Null:return this._lexer.get(),this.createExpressionNode("LitE",{value:null},t,t);case r.Undefined:return this._lexer.get(),this.createExpressionNode("LitE",{value:void 0},t,t);case r.LSquare:return this.parseArrayLiteral();case r.LBrace:return this.parseObjectLiteral();case r.Divide:return this.parseRegExpLiteral()}return null}parseTemplateLiteral(){const t=this._lexer.get();this._lexer.setStartingPhaseToTemplateLiteral();const o=[];e:for(;;){let n=this._lexer.peek();switch(n.type){case r.StringLiteral:this._lexer.get();const s=this.parseStringLiteral(n,!1);o.push(s);break;case r.DollarLBrace:this._lexer.get();const l=this.parseExpr();o.push(l),this.expectToken(r.RBrace,"W004"),this._lexer.setStartingPhaseToTemplateLiteral();break;case r.Backtick:break e;default:this.reportError("W004")}}const i=this._lexer.get();return this.createExpressionNode("TempLitE",{segments:o},t,i)}parseArrayLiteral(){const t=this._lexer.get();let o=[];if(this._lexer.peek().type!==r.RSquare){const n=this.getExpression();n&&(o=n.type==="SeqE"?n.expressions:[n])}const i=this._lexer.peek();return this.expectToken(r.RSquare),this.createExpressionNode("ALitE",{items:o},t,i)}parseObjectLiteral(){const t=this._lexer.get();let o=[];if(this._lexer.peek().type!==r.RBrace)for(;this._lexer.peek().type!==r.RBrace;){const n=this._lexer.peek(),s=ct[n.type];let l;if(s.expressionStart)if(n.type===r.LSquare){if(this._lexer.get(),l=this.getExpression(),!l)return null;this.expectToken(r.RSquare,"W005"),l=this.createExpressionNode("SeqE",{expressions:[l]},t)}else if(s.isPropLiteral){if(l=this.getExpression(!1),!l)return null;if(l.type!=="IdE"&&l.type!=="LitE"&&l.type!=="SpreadE")return this.reportError("W007"),null}else return this.reportError("W007"),null;else if(s.keywordLike)l={type:"IdE",name:n.text,value:void 0,startPosition:n.location.startPosition,startLine:n.location.startLine,startColumn:n.location.startColumn,endPosition:n.location.endPosition,endLine:n.location.endLine,endColumn:n.location.endColumn,source:n.text,startToken:n,endToken:n},this._lexer.get();else return this.reportError("W001"),null;const c=l.type;if(c==="SpreadE")o.push(l);else{if(c==="LitE"){const f=l.value;if(typeof f!="number"&&typeof f!="string")return this.expectToken(r.RBrace,"W007"),null}let w=null;if(c==="IdE"){const f=this._lexer.peek();(f.type===r.Comma||f.type===r.RBrace)&&(w={...l})}if(!w&&(this.expectToken(r.Colon,"W008"),w=this.getExpression(!1),!w))return null;o.push([l,w])}const u=this._lexer.peek().type;if(u===r.Comma)this._lexer.get();else if(u!==r.RBrace)break}const i=this._lexer.peek();return this.expectToken(r.RBrace,"W004"),this.createExpressionNode("OLitE",{props:o},t,i)}parseRegExpLiteral(){const t=this._lexer.peek(),o=this._lexer.getRegEx();return o.success?this.createExpressionNode("LitE",{value:new RegExp(o.pattern,o.flags)},t,this._lexer.peek()):(this.reportError("W002",t,o.pattern??""),null)}getExpression(t=!0){const o=this.parseExpr(t);return o||(this.reportError("W001"),null)}expectToken(t,o,i){const n=this._lexer.peek();return n.type===t||i&&n.type===r.Eof?this._lexer.get():(this.reportError(o??"W002",n,n.text),null)}skipToken(t){const o=this._lexer.peek();return o.type===t?(this._lexer.get(),o):null}skipTokens(...t){const o=this._lexer.peek();for(const i of t)if(o.type===i)return this._lexer.get(),o;return null}reportError(t,o,...i){let n=Ct[t]??"Unkonwn error";throw i&&i.forEach((l,c)=>n=s(n,`{${c}}`,i[c].toString())),o||(o=this._lexer.peek()),this._parseErrors.push({code:t,text:n,line:o.location.startLine,column:o.location.startColumn,position:o.location.startPosition}),new vi(n,t);function s(l,c,u){do l=l.replace(c,u);while(l.includes(c));return l}}createNode(t,o,i,n,s){n||(n=this._lexer.peek());const l=i.location.startPosition,c=n.location.startPosition;return Object.assign({},o,{type:t,startPosition:l,endPosition:c,startLine:i.location.startLine,startColumn:i.location.startColumn,endLine:n.location.endLine,endColumn:n.location.endColumn,source:s??this.getSource(i,n)})}createExpressionNode(t,o={},i,n,s){n||(n=this._lexer.peek()),i||(i=n);const l=i.location.startPosition,c=n.location.endPosition;return Object.assign({},o,{type:t,startPosition:l,endPosition:c,startLine:i.location.startLine,startColumn:i.location.startColumn,endLine:n.location.endLine,endColumn:n.location.endColumn,source:s??this.getSource(i,n),startToken:i,endToken:n})}createStatementNode(t,o,i,n){var u,w,f,p,C;const s=(u=i==null?void 0:i.location)==null?void 0:u.startPosition,l=this._lexer.peek(),c=n?n.location.endPosition:l.type===r.Eof?l.location.startPosition+1:l.location.startPosition;return Object.assign({},o,{type:t,startPosition:s,endPosition:c,startLine:(w=i==null?void 0:i.location)==null?void 0:w.startLine,startColumn:(f=i==null?void 0:i.location)==null?void 0:f.startColumn,endLine:n?n.location.endLine:(p=i==null?void 0:i.location)==null?void 0:p.endLine,endColumn:n?n.location.endColumn:(C=i==null?void 0:i.location)==null?void 0:C.endColumn,source:this.source&&s!==void 0&&c!==void 0?this.source.substring(s,c):void 0,startToken:i,endToken:n})}getSource(t,o){return this.source.substring(t.location.startPosition,o.type===r.Eof?o.location.startPosition:o.location.endPosition)}parseBinaryLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.substring(2).replace(/[_']/g,""),2),this.createExpressionNode("LitE",{value:o},t,t)}parseDecimalLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.replace(/[_']/g,""),10),this.createExpressionNode("LitE",{value:o},t,t)}parseHexadecimalLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.substring(2).replace(/[_']/g,""),16),this.createExpressionNode("LitE",{value:o},t,t)}parseRealLiteral(t){let o=parseFloat(t.text.replace(/[_']/g,""));return this.createExpressionNode("LitE",{value:o},t,t)}parseStringLiteral(t,o=!0){let i=t.text;o&&(i=t.text.length<2?"":i.substring(1,i.length-1));let n="",s=0,l=0;for(const u of i)switch(s){case 0:u==="\\"?s=1:n+=u;break;case 1:switch(s=0,u){case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+=`
7
- `;break;case"r":n+="\r";break;case"t":n+=" ";break;case"v":n+="\v";break;case"S":n+=" ";break;case"0":n+="\0";break;case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"x":s=2;break;case"u":s=4;break;default:n+=u;break}break;case 2:c(u)?(l=parseInt(u,16),s=3):(n+="x",s=0);break;case 3:c(u)?(l=l*16+parseInt(u,16),n+=String.fromCharCode(l),s=0):(n+=String.fromCharCode(l),n+=u,s=0);break;case 4:if(u==="{"){s=8;break}c(u)?(l=parseInt(u,16),s=5):(n+="x",s=0);break;case 5:c(u)?(l=l*16+parseInt(u,16),s=6):(n+=String.fromCharCode(l),n+=u,s=0);break;case 6:c(u)?(l=l*16+parseInt(u,16),s=7):(n+=String.fromCharCode(l),n+=u,s=0);break;case 7:c(u)?(l=l*16+parseInt(u,16),n+=String.fromCharCode(l),s=0):(n+=String.fromCharCode(l),n+=u,s=0);break;case 8:c(u)?(l=parseInt(u,16),s=9):(n+="x",s=0);break;case 9:c(u)?(l=l*16+parseInt(u,16),s=10):(n+=String.fromCharCode(l),n+=u,s=0);break;case 10:c(u)?(l=l*16+parseInt(u,16),s=11):(n+=String.fromCharCode(l),n+=u,s=0);break;case 11:c(u)?(l=l*16+parseInt(u,16),s=12):(n+=String.fromCharCode(l),n+=u,s=0);break;case 12:c(u)?(l=l*16+parseInt(u,16),s=13):(n+=String.fromCharCode(l),n+=u,s=0);break;case 13:c(u)?(l=l*16+parseInt(u,16),s=14):(n+=String.fromCharCode(l),n+=u,s=0);break;case 14:n+=String.fromCharCode(l),u!=="}"&&(n+=u),s=0;break}switch(s){case 1:n+="\\";break;case 2:n+="x";break;case 3:n+=String.fromCharCode(l);break}return this.createExpressionNode("LitE",{value:n},t,t);function c(u){return u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F"}}convertToArrayDestructure(t){var n;const o=t.type==="SeqE"?t.expressions:t.items,i=this.createExpressionNode("Destr",{arrayDestruct:[]},t.startToken,t.endToken);for(const s of o){let l;switch(s.type){case"NoArgE":l=this.createExpressionNode("ADestr",{},s.startToken,s.endToken);break;case"IdE":l=this.createExpressionNode("ADestr",{id:s.name},s.startToken,s.endToken);break;case"Destr":i.arrayDestruct.push(...s.arrayDestruct);break;case"ADestr":l=s;break;case"ALitE":{const c=this.convertToArrayDestructure(s);c&&(l=this.createExpressionNode("ADestr",{arrayDestruct:c.arrayDestruct},s.startToken,s.endToken));break}case"ODestr":l=this.createExpressionNode("ADestr",{objectDestruct:s},s.startToken,s.endToken);break;case"OLitE":{const c=this.convertToObjectDestructure(s);c&&(l=this.createExpressionNode("ADestr",{objectDestruct:c.objectDestruct},s.startToken,s.endToken));break}default:return this.reportError("W017"),null}l&&((n=i.arrayDestruct)==null||n.push(l))}return i}convertToObjectDestructure(t){var i;const o=this.createExpressionNode("Destr",{objectDestruct:[]},t.startToken,t.endToken);for(const n of t.props){if(!Array.isArray(n))return reportError("W018"),null;const[s,l]=n;if(s.type!=="IdE")return reportError("W018"),null;let c;switch(l.type){case"IdE":l.name===s.name?c=this.createExpressionNode("ODestr",{id:s.name},l.startToken,l.endToken):c=this.createExpressionNode("ODestr",{id:s.name,alias:l.name},l.startToken,l.endToken);break;case"ADestr":{c=this.createExpressionNode("ODestr",{id:s.name,arrayDestruct:l},s.startToken,l.endToken);break}case"ALitE":{const u=this.convertToArrayDestructure(l);u&&(c=this.createExpressionNode("ODestr",{id:s.name,arrayDestruct:u.arrayDestruct},s.startToken,l.endToken));break}case"ODestr":c=l;break;case"OLitE":{const u=this.convertToObjectDestructure(l);u&&(c=this.createExpressionNode("ODestr",{id:s.name,objectDestruct:u.objectDestruct},s.startToken,l.endToken));break}default:return this.reportError("W018"),null}c&&((i=o.objectDestruct)==null||i.push(c))}return o}isExpressionStart(t){var o;return((o=ct[t.type])==null?void 0:o.expressionStart)??!1}}function z(e,t,o,i,n,s){if(t.cancel)return t;if(t.skipChildren=!1,Array.isArray(e)){for(const l of e)t=z(l,t,o,i,n,s);return t}switch(e.type){case"BlockS":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){for(const l of e.statements)if(t=z(l,t,o,i,e,"statements"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"EmptyS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t;case"ExprS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.expression,t,o,i,e,"expression"),t.cancel)||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"ArrowS":return t;case"LetS":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){for(const l of e.declarations)if(t=z(l,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"ConstS":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){for(const l of e.declarations)if(t=z(l,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"VarS":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){for(const l of e.declarations)if(t=z(l,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"IfS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.condition,t,o,i,e,"condition"),t.cancel||(e.thenBranch&&(t=z(e.thenBranch,t,o,i,e,"thenBranch")),t.cancel)||(e.elseBranch&&(t=z(e.elseBranch,t,o,i,e,"elseBranch")),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"RetS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(e.expression&&(t=z(e.expression,t,o,i,e,"expression")),t.cancel)||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"BrkS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t;case"ContS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t;case"WhileS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.condition,t,o,i,e,"condition"),t.cancel||(t=z(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"DoWS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.body,t,o,i,e,"body"),t.cancel||(t=z(e.condition,t,o,i,e,"condition"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"ForS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(e.init&&(t=z(e.init,t,o,i,e,"init")),t.cancel||(e.condition&&(t=z(e.condition,t,o,i,e,"condition")),t.cancel)||(e.update&&(t=z(e.update,t,o,i,e,"update")),t.cancel)||(t=z(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"ForInS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.expression,t,o,i,e,"expression"),t.cancel||(t=z(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"ForOfS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.expression,t,o,i,e,"expression"),t.cancel||(t=z(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"ThrowS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(t=z(e.expression,t,o,i,e,"expression"),t.cancel)||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"TryS":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||!t.skipChildren&&(e.tryBlock&&(t=z(e.tryBlock,t,o,i,e,"tryBlock")),t.cancel||(e.catchBlock&&(t=z(e.catchBlock,t,o,i,e,"catchBlock")),t.cancel)||(e.finallyBlock&&(t=z(e.finallyBlock,t,o,i,e,"finallyBlock")),t.cancel))||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"SwitchS":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){if(t=z(e.expression,t,o,i,e,"expression"),t.cancel)return t;for(const l of e.cases){if(l.caseExpression&&(t=z(l.caseExpression,t,o,i,e,"caseExpression")),t.cancel)return t;if(l.statements!==void 0){for(const c of l.statements)if(t=z(c,t,o,i,e,"switchStatement"),t.cancel)return t}}}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"FuncD":{if(t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel)return t;if(!t.skipChildren){for(const l of e.args)if(t=z(l,t,o,i,e,"arg"),t.cancel)return t;if(t=z(e.statement,t,o,i,e,"statement"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,n,s))||t,t}case"ImportD":return t=(o==null?void 0:o(!0,e,t,n,s))||t,t.cancel||(t=(o==null?void 0:o(!1,e,t,n,s))||t),t;case"UnaryE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"BinaryE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.left,t,o,i,e,"left"),t.cancel||(t=z(e.right,t,o,i,e,"right"),t.cancel))||(t=t),t;case"SeqE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const l of e.expressions)if(t=z(l,t,o,i,e,"expression"),t.cancel)return t}return t=t,t}case"CondE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.condition,t,o,i,e,"condition"),t.cancel||(t=z(e.consequent,t,o,i,e,"consequent"),t.cancel)||(t=z(e.alternate,t,o,i,e,"alternate"),t.cancel))||(t=t),t;case"InvokeE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const l of e.arguments)if(t=z(l,t,o,i,e,"argument"),t.cancel)return t;if(t=z(e.object,t,o,i,e,"object"),t.cancel)return t}return t=t,t}case"MembE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.object,t,o,i,e,"object"),t.cancel)||(t=t),t;case"CMembE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.object,t,o,i,e,"object"),t.cancel||(t=z(e.member,t,o,i,e,"member"),t.cancel))||(t=t),t;case"IdE":return t=t,t;case"LitE":return t=t,t;case"ALitE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const l of e.items)if(t=z(l,t,o,i,e,"item"),t.cancel)return t}return t=t,t}case"OLitE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const l of e.props)if(Array.isArray(l)){const[c,u]=l;if(t=z(c,t,o,i,e,"propKey"),t.cancel||(t=z(u,t,o,i,e,"propValue"),t.cancel))return t}else if(t=z(l,t,o,i,e,"prop"),t.cancel)return t}return t=t,t}case"SpreadE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"AsgnE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.operand,t,o,i,e,"operand"),t.cancel||(t=z(e.leftValue,t,o,i,e,"leftValue"),t.cancel))||(t=t),t;case"NoArgE":return t=t,t;case"ArrowE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const l of e.args)if(t=z(l,t,o,i,e,"arg"),t.cancel)return t;if(t=z(e.statement,t,o,i,e,"statement"),t.cancel)return t}return t=t,t}case"PrefE":case"PostfE":return t=t,t.cancel||!t.skipChildren&&(t=z(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"VarD":{if(t=t,t.cancel)return t;if(!t.skipChildren){if(e.arrayDestruct!==void 0){for(const l of e.arrayDestruct)if(t=z(l,t,o,i,e),t.cancel)return t}if(e.objectDestruct!==void 0){for(const l of e.objectDestruct)if(t=z(l,t,o,i,e),t.cancel)return t}if(e.expression&&(t=z(e.expression,t,o,i,e,"expression")),t.cancel)return t}return t=t,t}case"Destr":case"ODestr":case"ADestr":{if(t=t,t.cancel)return t;if(!t.skipChildren){if(e.arrayDestruct!==void 0){for(const l of e.arrayDestruct)if(t=z(l,t,o,i,e),t.cancel)return t}if(e.objectDestruct!==void 0){for(const l of e.objectDestruct)if(t=z(l,t,o,i,e),t.cancel)return t}}return t=t,t}case"RVarD":return t=t,t.cancel||!t.skipChildren&&(e.expression&&(t=z(e.expression,t,o,i,e,"expression")),t.cancel)||(t=t),t;case"TempLitE":return t;default:return t}}function bi(e){return e.type!=="ScriptModule"}function yi(e,t,o,i=!1){const n=new Map,s={},l=c(e,t,o,!0);return!l||Object.keys(s).length>0?s:l;function c(u,w,f,p=!1){var C;if(n.has(u))return n.get(u);const v=new jo(w);let M=[];try{M=v.parseStatements()}catch{return s[u]=v.errors,null}const E=v.current;if(E.type!==r.Eof)return s[u]??(s[u]=[]),s[u].push({code:"W002",text:Ct.W002.replace(/\{(\d+)}/g,()=>E.text),position:E.location.startLine,line:E.location.startLine,column:E.location.startColumn}),null;const _=[];z(M,{data:null,cancel:!1,skipChildren:!1},(W,F,ue,he,m)=>{if(!W)return ue;if(p)switch(F.type){case"VarS":he&&re("W027",F);break;case"FuncD":case"ImportD":break;default:i&&!he&&re("W028",F,F.type);break}else switch(F.type){case"VarS":re("W027",F);break;case"FuncD":i&&!F.isExported&&re("W029",F);break;case"ImportD":break;default:i&&!he&&re("W028",F,F.type);break}return ue});const T={};M.filter(W=>W.type==="FuncD").forEach(W=>{const F=W;if(T[F.name]){re("W020",W,F.name);return}T[F.name]=F});const q=new Map;M.forEach(W=>{W.type==="ConstS"&&W.isExported?Ti(W,F=>{q.has(F)?re("W021",W,F):q.set(F,W)}):W.type==="FuncD"&&W.isExported&&(q.has(W.name)?re("W021",W,W.name):q.set(W.name,W))});const ce={type:"ScriptModule",name:u,exports:q,importedModules:[],imports:{},functions:T,statements:M,executed:!1};n.set(u,ce);const ge=[],pe={};for(let W=0;W<M.length;W++){const F=M[W];if(F.type!=="ImportD")continue;const ue=f(u,F.moduleFile);if(ue===null){re("W022",F,F.moduleFile);continue}const he=c(F.moduleFile,ue,f);if(!he)return;ge.push(he);const m=Object.keys(F.imports);m.length>0&&(pe[C=F.moduleFile]??(pe[C]={}));for(const d of m)he.exports.has(F.imports[d])?pe[F.moduleFile][d]=he.exports.get(F.imports[d]):re("W023",F,F.moduleFile,d)}if(_.length>0)return s[u]=_,null;return ge.forEach(W=>W.parent=ce),ce.importedModules=ge,ce.imports=pe,ce;function re(W,F,...ue){let he=Ct[W];ue&&ue.forEach((m,d)=>he=he.replaceAll(`{${d}}`,ue[d].toString())),_.push({code:W,text:Ct[W].replace(/\{(\d+)}/g,(m,d)=>ue[d]),position:F.startPosition,line:F.startLine,column:F.startColumn})}}}function Ko(e){var o;const t=((o=e.blocks)==null?void 0:o.slice(0))??[];return e.parent?[...Ko(e.parent),...t]:t}function Ti(e,t){for(let s=0;s<e.declarations.length;s++){const l=e.declarations[s];o(l,t)}function o(s,l){if(s.id)l(s.id);else if(s.arrayDestruct)i(s.arrayDestruct,l);else if(s.objectDestruct)n(s.objectDestruct,l);else throw new Error("Unknown declaration specifier")}function i(s,l){for(let c=0;c<s.length;c++){const u=s[c];u.id?l(u.id):u.arrayDestruct?i(u.arrayDestruct,l):u.objectDestruct&&n(u.objectDestruct,l)}}function n(s,l){for(let c=0;c<s.length;c++){const u=s[c];u.arrayDestruct?i(u.arrayDestruct,l):u.objectDestruct?n(u.objectDestruct,l):l(u.alias??u.id)}}}const ki={themeVars:`'{"Input:radius-AutoComplete-default": "var(--xmlui-radius-AutoComplete-default)", "Input:color-border-AutoComplete-default": "var(--xmlui-color-border-AutoComplete-default)", "Input:thickness-border-AutoComplete-default": "var(--xmlui-thickness-border-AutoComplete-default)", "Input:style-border-AutoComplete-default": "var(--xmlui-style-border-AutoComplete-default)", "Input:font-size-AutoComplete-default": "var(--xmlui-font-size-AutoComplete-default)", "Input:color-bg-AutoComplete-default": "var(--xmlui-color-bg-AutoComplete-default)", "Input:shadow-AutoComplete-default": "var(--xmlui-shadow-AutoComplete-default)", "Input:color-text-AutoComplete-default": "var(--xmlui-color-text-AutoComplete-default)", "Input:color-border-AutoComplete-default--hover": "var(--xmlui-color-border-AutoComplete-default--hover)", "Input:color-bg-AutoComplete-default--hover": "var(--xmlui-color-bg-AutoComplete-default--hover)", "Input:shadow-AutoComplete-default--hover": "var(--xmlui-shadow-AutoComplete-default--hover)", "Input:color-text-AutoComplete-default--hover": "var(--xmlui-color-text-AutoComplete-default--hover)", "Input:color-placeholder-AutoComplete-default": "var(--xmlui-color-placeholder-AutoComplete-default)", "Input:radius-AutoComplete-error": "var(--xmlui-radius-AutoComplete-error)", "Input:color-border-AutoComplete-error": "var(--xmlui-color-border-AutoComplete-error)", "Input:thickness-border-AutoComplete-error": "var(--xmlui-thickness-border-AutoComplete-error)", "Input:style-border-AutoComplete-error": "var(--xmlui-style-border-AutoComplete-error)", "Input:font-size-AutoComplete-error": "var(--xmlui-font-size-AutoComplete-error)", "Input:color-bg-AutoComplete-error": "var(--xmlui-color-bg-AutoComplete-error)", "Input:shadow-AutoComplete-error": "var(--xmlui-shadow-AutoComplete-error)", "Input:color-text-AutoComplete-error": "var(--xmlui-color-text-AutoComplete-error)", "Input:color-border-AutoComplete-error--hover": "var(--xmlui-color-border-AutoComplete-error--hover)", "Input:color-bg-AutoComplete-error--hover": "var(--xmlui-color-bg-AutoComplete-error--hover)", "Input:shadow-AutoComplete-error--hover": "var(--xmlui-shadow-AutoComplete-error--hover)", "Input:color-text-AutoComplete-error--hover": "var(--xmlui-color-text-AutoComplete-error--hover)", "Input:color-placeholder-AutoComplete-error": "var(--xmlui-color-placeholder-AutoComplete-error)", "Input:radius-AutoComplete-warning": "var(--xmlui-radius-AutoComplete-warning)", "Input:color-border-AutoComplete-warning": "var(--xmlui-color-border-AutoComplete-warning)", "Input:thickness-border-AutoComplete-warning": "var(--xmlui-thickness-border-AutoComplete-warning)", "Input:style-border-AutoComplete-warning": "var(--xmlui-style-border-AutoComplete-warning)", "Input:font-size-AutoComplete-warning": "var(--xmlui-font-size-AutoComplete-warning)", "Input:color-bg-AutoComplete-warning": "var(--xmlui-color-bg-AutoComplete-warning)", "Input:shadow-AutoComplete-warning": "var(--xmlui-shadow-AutoComplete-warning)", "Input:color-text-AutoComplete-warning": "var(--xmlui-color-text-AutoComplete-warning)", "Input:color-border-AutoComplete-warning--hover": "var(--xmlui-color-border-AutoComplete-warning--hover)", "Input:color-bg-AutoComplete-warning--hover": "var(--xmlui-color-bg-AutoComplete-warning--hover)", "Input:shadow-AutoComplete-warning--hover": "var(--xmlui-shadow-AutoComplete-warning--hover)", "Input:color-text-AutoComplete-warning--hover": "var(--xmlui-color-text-AutoComplete-warning--hover)", "Input:color-placeholder-AutoComplete-warning": "var(--xmlui-color-placeholder-AutoComplete-warning)", "Input:radius-AutoComplete-success": "var(--xmlui-radius-AutoComplete-success)", "Input:color-border-AutoComplete-success": "var(--xmlui-color-border-AutoComplete-success)", "Input:thickness-border-AutoComplete-success": "var(--xmlui-thickness-border-AutoComplete-success)", "Input:style-border-AutoComplete-success": "var(--xmlui-style-border-AutoComplete-success)", "Input:font-size-AutoComplete-success": "var(--xmlui-font-size-AutoComplete-success)", "Input:color-bg-AutoComplete-success": "var(--xmlui-color-bg-AutoComplete-success)", "Input:shadow-AutoComplete-success": "var(--xmlui-shadow-AutoComplete-success)", "Input:color-text-AutoComplete-success": "var(--xmlui-color-text-AutoComplete-success)", "Input:color-border-AutoComplete-success--hover": "var(--xmlui-color-border-AutoComplete-success--hover)", "Input:color-bg-AutoComplete-success--hover": "var(--xmlui-color-bg-AutoComplete-success--hover)", "Input:shadow-AutoComplete-success--hover": "var(--xmlui-shadow-AutoComplete-success--hover)", "Input:color-text-AutoComplete-success--hover": "var(--xmlui-color-text-AutoComplete-success--hover)", "Input:color-placeholder-AutoComplete-success": "var(--xmlui-color-placeholder-AutoComplete-success)", "Input:color-bg-AutoComplete--disabled": "var(--xmlui-color-bg-AutoComplete--disabled)", "Input:color-text-AutoComplete--disabled": "var(--xmlui-color-text-AutoComplete--disabled)", "Input:color-border-AutoComplete--disabled": "var(--xmlui-color-border-AutoComplete--disabled)", "Input:thickness-outline-AutoComplete--focus": "var(--xmlui-thickness-outline-AutoComplete--focus)", "Input:color-outline-AutoComplete--focus": "var(--xmlui-color-outline-AutoComplete--focus)", "Input:style-outline-AutoComplete--focus": "var(--xmlui-style-outline-AutoComplete--focus)", "Input:offset-outline-AutoComplete--focus": "var(--xmlui-offset-outline-AutoComplete--focus)", "padding-vertical-AutoComplete-badge": "var(--xmlui-padding-vertical-AutoComplete-badge)", "padding-horizontal-AutoComplete-badge": "var(--xmlui-padding-horizontal-AutoComplete-badge)", "Input:font-size-AutoComplete-badge": "var(--xmlui-font-size-AutoComplete-badge)", "Input:color-bg-AutoComplete-badge": "var(--xmlui-color-bg-AutoComplete-badge)", "Input:color-text-AutoComplete-badge": "var(--xmlui-color-text-AutoComplete-badge)", "Input:color-bg-AutoComplete-badge--hover": "var(--xmlui-color-bg-AutoComplete-badge--hover)", "Input:color-text-AutoComplete-badge--hover": "var(--xmlui-color-text-AutoComplete-badge--hover)", "Input:color-bg-AutoComplete-badge--active": "var(--xmlui-color-bg-AutoComplete-badge--active)", "Input:color-text-AutoComplete-badge--active": "var(--xmlui-color-text-AutoComplete-badge--active)", "Input:color-placeholder-AutoComplete": "var(--xmlui-color-placeholder-AutoComplete)", "Input:color-bg-menu-AutoComplete": "var(--xmlui-color-bg-menu-AutoComplete)", "Input:radius-menu-AutoComplete": "var(--xmlui-radius-menu-AutoComplete)", "Input:shadow-menu-AutoComplete": "var(--xmlui-shadow-menu-AutoComplete)", "color-bg-item-AutoComplete": "var(--xmlui-color-bg-item-AutoComplete)", "color-bg-item-AutoComplete--hover": "var(--xmlui-color-bg-item-AutoComplete--hover)", "color-text-item-AutoComplete--disabled": "var(--xmlui-color-text-item-AutoComplete--disabled)"}'`,command:"_command_4q1ko_13",badgeListWrapper:"_badgeListWrapper_4q1ko_20",error:"_error_4q1ko_43",warning:"_warning_4q1ko_62",valid:"_valid_4q1ko_81",disabled:"_disabled_4q1ko_100",focused:"_focused_4q1ko_107",badgeList:"_badgeList_4q1ko_20",badge:"_badge_4q1ko_20",commandInput:"_commandInput_4q1ko_149",actions:"_actions_4q1ko_162",autoCompleteEmpty:"_autoCompleteEmpty_4q1ko_168",commandList:"_commandList_4q1ko_178","fade-in":"_fade-in_4q1ko_1",autoCompleteOption:"_autoCompleteOption_4q1ko_191"},vt="FormItem",wi=k({status:"experimental",description:`A \`${vt}\` component represents a single input element within a \`Form\`. The value within the \`${vt}\` may be associated with a particular property within the encapsulating \`Form\` component's data.`,props:{bindTo:a("This property binds a particular input field to one of the attributes of the `Form` data. It names the property of the form's `data` data to get the input's initial value.When the field is saved, its value will be stored in the `data` property with this name."),autoFocus:ke(),label:xe(),labelPosition:Re(),labelWidth:a("This property sets the width of the item label."),labelBreak:a("This boolean value indicates if the label can be split into multiple lines if it would overflow the available label width."),enabled:be(),type:a("This property is used to determine the specific input control the FormItem will wrap around. Note that the control names start with a lowercase letter and map to input components found in XMLUI."),customValidationsDebounce:a("This optional number prop determines the time interval between two runs of a custom validation."),validationMode:a("This property sets what kind of validation mode or strategy to employ for a particular input field."),initialValue:ze(),required:He(),requiredInvalidMessage:a("This optional string property is used to customize the message that is displayed if the field is not filled in."),minLength:a("Checks whether the input has a minimum length of a specified value."),maxLength:a("Checks whether the input has a maximum length of a specified value."),maxTextLength:a("The maximum length of the text in the input field"),lengthInvalidMessage:a("This optional string property is used to customize the message that is displayed on a failed length check: [minLength](#minlength) or [maxLength](#maxlength)."),lengthInvalidSeverity:a("This property sets the severity level of length validations."),minValue:a("Checks whether the input has the minimum specified value."),maxValue:a("Checks whether the input has the maximum specified value."),rangeInvalidMessage:a("This optional string property is used to customize the message that is displayed when a value is out of range."),rangeInvalidSeverity:a("This property sets the severity level of the value range validation."),pattern:a("Checks whether the input fits a predefined regular expression."),patternInvalidMessage:a("This optional string property is used to customize the message that is displayed on a failed pattern test."),patternInvalidSeverity:a("This property sets the severity level of the pattern validation."),regex:a("Checks whether the input fits the provided regular expression."),regexInvalidMessage:a("This optional string property is used to customize the message that is displayed on a failed regular expression test."),regexInvalidSeverity:a("This property sets the severity level of regular expression validation.")},events:{validate:a("This event is used to define a custom validation function.")},contextVars:{$value:a(`The context variable represents the current value of the \`${vt}\`. It can be used in expressions and code snippets within the \`${vt}\` instance.`),$setValue:a(`This function can be invoked to set the \`${vt}\` instance's value. The function has a single argument, the new value to set.`),$validationResult:a(`This variable represents the result of the latest validation of the \`${vt}\` instance.`)},themeVars:N(vn.themeVars),defaultThemeVars:{"color-text-FormItemLabel":"$color-text-primary","font-size-FormItemLabel":"$font-size-small","font-weight-FormItemLabel":"$font-weight-medium","font-style-FormItemLabel":"normal","transform-text-FormItemLabel":"none","color-text-FormItemLabel-requiredMark":"$color-danger-400"}}),Ce="Heading",ut=a(`This property determines the text displayed in the heading. \`${Ce}\` also accepts nested text instead of specifying the \`value\`. If both \`value\` and a nested text are used, the \`value\` will be displayed.`),dt=a("This property determines the maximum number of lines the component can wrap to. If there is not enough space for all of the text, the component wraps the text up to as many lines as specified."),$i=a("This property indicates whether ellipses should be displayed (`true`) when the heading text is cropped or not (`false`)."),_i=a("This property indicates whether linebreaks should be preserved when displaying text."),bt=e=>`Represents a heading level ${e} text`,Ii=k({description:"Represents a heading text",props:{value:ut,level:a("This property sets the visual significance (level) of the heading."),maxLines:dt,ellipses:$i,preserveLinebreaks:_i},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-family-${Ce}`]:"$font-family",[`color-text-${Ce}`]:"$color-text-primary",[`font-weight-${Ce}`]:"$font-weight-bold",[`letter-spacing-${Ce} `]:"0",light:{},dark:{}}}),to="H1",Bi=k({description:bt(1),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${to}`]:"$font-size-large",[`margin-top-${to}`]:"0",[`margin-bottom-${to}`]:"0",light:{},dark:{}}}),oo="H2",Si=k({description:bt(2),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${oo}`]:"$font-size-medium",[`margin-top-${oo}`]:"0",[`margin-bottom-${oo}`]:"0",light:{},dark:{}}}),ro="H3",Ei=k({description:bt(3),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${ro}`]:"$font-size-normal",[`margin-top-${ro}`]:"0",[`margin-bottom-${ro}`]:"0",light:{},dark:{}}}),no="H4",Ai=k({description:bt(4),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${no}`]:"$font-size-small",[`margin-top-${no}`]:"0",[`margin-bottom-${no}`]:"0",light:{},dark:{}}}),io="H5",Ni=k({description:bt(5),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${io}`]:"$font-size-smaller",[`margin-top-${io}`]:"0",[`margin-bottom-${io}`]:"0",light:{},dark:{}}}),ao="H6",zi=k({description:bt(6),specializedFrom:Ce,props:{value:ut,maxLines:dt},themeVars:N(Ie.themeVars),defaultThemeVars:{[`font-size-${ao}`]:"$font-size-tiny",[`margin-top-${ao}`]:"0",[`margin-bottom-${ao}`]:"0",light:{},dark:{}}}),Li=k({status:"deprecated",description:"(**OBSOLETE**) This component displays some content when its parent component is hovered.",props:{triggerTemplate:te("The component that opens the hover card when hovered.")}}),er="Icon",Ci=k({status:"experimental",description:"This component is the representation of an icon.",props:{name:a("This string property specifies the name of the icon to display. All icons have unique names and identifying the name is case-sensitive."),size:a(`This property defines the size of the \`${er}\`. Note that setting the \`height\` and/or the \`width\` of the component will override this property.`),fallback:a("This optional property provides a way to handle situations when the provided [icon name](#name) is not found in the registry.")},themeVars:N(wo.themeVars),defaultThemeVars:{[`size-${er}`]:"1.25em"}}),tr="Image",Pi=k({description:`The \`${tr}\` component represents or depicts an object, scene, idea, or other concept with a picture.`,props:{src:a("This property is used to indicate the source (path) of the image to display."),alt:a("This property specifies an alternate text for the image."),fit:a("This property sets how the image content should be resized to fit its container."),lazyLoad:a("Lazy loading instructs the browser to load the image only when it is imminently needed (e.g. user scrolls to it). The default value is eager (`false`)."),aspectRatio:a("This property sets a preferred aspect ratio for the image, which will be used in the calculation of auto sizes and some other layout functions."),animation:a("The animation object to be applied to the component")},events:{click:Ye(tr)},themeVars:N(_n.themeVars)}),Oi=k({description:"The `Items` component maps sequential data items into component instances, representing each data item as a particular component.",props:{items:te("This property contains the list of data items this component renders."),data:a("This property contains the list of data items (obtained from a data source) this component renders."),reverse:a("This property reverses the order in which data is mapped to template components."),itemTemplate:te("The component template to display a single item")},contextVars:{$item:te("This value represents the current iteration item while the component renders its children."),$itemIndex:te("This integer value represents the current iteration index (zero-based) while rendering children."),$isFirst:te("This boolean value indicates if the component renders its first item."),$isLast:te("This boolean value indicates if the component renders its last item.")},opaque:!0}),ie="Link",Di=k({description:`A \`${ie}\` component represents a navigation target within the app or a reference to an external web URL.`,props:{to:a("This property defines the URL of the link."),enabled:be(),active:a("Indicates whether this link is active or not. If so, it will have a distinct visual appearance.",null,"boolean",!1),target:a(`This property specifies where to open the link represented by the \`${ie}\`. This property accepts the following values (in accordance with the HTML standard):`,Ar,"string","_self"),label:xe(),icon:a("This property allows you to add an icon (specify the icon's name) to the link.")},themeVars:N(ft.themeVars),defaultThemeVars:{[`color-text-${ie}--hover--active`]:`$color-text-${ie}--active`,[`color-text-decoration-${ie}--hover`]:"$color-surface-400A80",[`color-text-decoration-${ie}--active`]:"$color-surface200",[`font-weight-${ie}--active`]:"$font-weight-bold",[`color-decoration-${ie}`]:"$color-surface-400",[`offset-decoration-${ie}`]:"$space-1",[`line-decoration-${ie}`]:"underline",[`style-decoration-${ie}`]:"dashed",[`thickness-decoration-${ie}`]:"$space-0_5",[`color-outline-${ie}--focus`]:"$color-outline--focus",[`thickness-outline-${ie}--focus`]:"$thickness-outline--focus",[`style-outline-${ie}--focus`]:"$style-outline--focus",[`offset-outline-${ie}--focus`]:"$offset-outline--focus",[`font-size-${ie}`]:"inherit",[`gap-icon-${ie}`]:"$gap-tight",[`padding-icon-${ie}`]:"$space-0_5",light:{[`color-text-${ie}`]:"$color-primary-500",[`color-text-${ie}--active`]:"$color-primary-500"},dark:{[`color-text-${ie}`]:"$color-primary-500",[`color-text-${ie}--active`]:"$color-primary-500"}}}),Mi={themeVars:'"[]"',infoWrapper:"_infoWrapper_pfst8_13",loadingWrapper:"_loadingWrapper_pfst8_18",noRows:"_noRows_pfst8_26",borderCollapse:"_borderCollapse_pfst8_36",sectioned:"_sectioned_pfst8_36",row:"_row_pfst8_36",section:"_section_pfst8_36",sectionFooter:"_sectionFooter_pfst8_52"},yt="List",Hi=k({status:"experimental",description:`The \`${yt}\` component is a robust layout container that renders associated data items as a list of components. \`${yt}\` is virtualized; it renders only items that are visible in the viewport.`,props:{data:a("The component receives data via this property. The `data` property is a list of items that the `List` can display."),items:a("You can use `items` as an alias for the `data` property. When you bind the list to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API.When both `items` and `data` are used, `items` has priority."),loading:a("This property delays the rendering of children until it is set to `false`, or the component receives usable list items via the [`data`](#data) property."),limit:a(`This property limits the number of items displayed in the \`${yt}\`.`),scrollAnchor:a("This property pins the scroll position to a specified location of the list. Available values are shown below.",Fr,"string","top"),groupBy:a("This property sets which attribute of the data is used to group the list items. If the attribute does not appear in the data, it will be ignored."),orderBy:a("This property enables the ordering of list items by specifying an attribute in the data."),availableGroups:a(`This property is an array of group names that the \`${yt}\` will display.`),groupHeaderTemplate:te("Enables the customization of how the groups are displayed, similarly to the [`itemTemplate`](#itemtemplate). You can use the `$item` context variable to access an item group and map its individual attributes."),groupFooterTemplate:te("Enables the customization of how the the footer of each group is displayed. Combine with [`groupHeaderTemplate`](#groupHeaderTemplate) to customize sections. You can use the `$item` context variable to access an item group and map its individual attributes."),itemTemplate:te("This property allows the customization of mapping data items to components. You can use the `$item` context variable to access an item and map its individual attributes."),emptyListTemplate:te("This property defines the template to display when the list is empty."),pageInfo:a(`This property contains the current page information. Setting this property also enures the \`${yt}\` uses pagination.`),idKey:a('Denotes which attribute of an item acts as the ID or key of the item. Default is `"id"`.'),selectedIndex:a("This property scrolls to a specific item indicated by its index."),groupsInitiallyExpanded:a("This Boolean property defines whether the list groups are initially expanded."),defaultGroups:a(`This property adds a list of default groups for the \`${yt}\` and displays the group headers in the specified order. If the data contains group headers not in this list, those headers are also displayed (after the ones in this list); however, their order is not deterministic.`),hideEmptyGroups:a("This boolean property indicates if empty groups should be hidden (no header and footer are displayed).",null,"boolean",!0),borderCollapse:a("Collapse items borders",null,"boolean",!0)},contextVars:{$item:a("This property represents the value of an item in the data list.")},themeVars:N(Mi.themeVars)}),Fi=k({status:"experimental",description:"The `Logo` component represents a logo or a brand symbol. Usually, you use this component in the [`AppHeader`](./AppHeader.mdx#logotemplate)."}),Wi=k({description:"`Markdown` displays plain text styled using markdown syntax.",themeVars:N({themeVars:`'{"color-border-HorizontalRule": "var(--xmlui-color-border-HorizontalRule)", "thickness-border-HorizontalRule": "var(--xmlui-thickness-border-HorizontalRule)", "style-border-HorizontalRule": "var(--xmlui-style-border-HorizontalRule)", "color-bg-Blockquote": "var(--xmlui-color-bg-Blockquote)", "accent-Blockquote": "var(--xmlui-accent-Blockquote)", "radius-Blockquote": "var(--xmlui-radius-Blockquote)", "shadow-Blockquote": "var(--xmlui-shadow-Blockquote)", "padding-Blockquote": "var(--xmlui-padding-Blockquote)", "margin-Blockquote": "var(--xmlui-margin-Blockquote)", "padding-left-UnorderedList": "var(--xmlui-padding-left-UnorderedList)", "padding-left-OrderedList": "var(--xmlui-padding-left-OrderedList)", "padding-left-ListItem": "var(--xmlui-padding-left-ListItem)", "color-marker-ListItem": "var(--xmlui-color-marker-ListItem)"}'`,horizontalRule:"_horizontalRule_y1wfd_13",blockquote:"_blockquote_y1wfd_17",unorderedList:"_unorderedList_y1wfd_37",orderedList:"_orderedList_y1wfd_43",listItem:"_listItem_y1wfd_49"}.themeVars),props:{content:a("This property sets the markdown content to display."),removeIndents:a("This boolean property specifies whether leading indents should be removed from the markdown content. If set to `true`, the shortest indent found at the start of the content lines is removed from the beginning of every line.",null,"boolean",!1)},defaultThemeVars:{"color-border-HorizontalRule":"$color-border","thickness-border-HorizontalRule":"1px","style-border-HorizontalRule":"solid","accent-Blockquote":"$color-primary","padding-Blockquote":"$space-2 $space-6","margin-Blockquote":"$space-2","padding-left-UnorderedList":"$space-6","padding-left-OrderedList":"$space-6","padding-left-ListItem":"$space-1",light:{},dark:{}}}),we="ModalDialog",Ri=k({description:`The \`${we}\` component defines a modal dialog UI element that can be displayed over the existing UI - triggered by some action.`,props:{fullScreen:a("Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`)."),title:a("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:a("Shows (`true`) or hides (`false`) the visibility of the close button on the dialog."),isInitiallyOpen:a("This property sets whether the modal dialog appears open (`true`) or not (`false`) when the page is it is defined on is rendered.")},events:{open:a(`This event is fired when the \`${we}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:a(`This event is fired when the close button is pressed or the user clicks outside the \`${we}\`.`)},apis:{close:a(`This method is used to close the \`${we}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:a("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:a("This value represents the first parameters passed to the `open()` method to display the modal dialog."),$params:a("This value represents the array of parameters passed to the `open()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},themeVars:N(li.themeVars),defaultThemeVars:{...Lt(we,{all:"$space-7"}),[`color-bg-${we}`]:"$color-bg-primary",[`color-bg-overlay-${we}`]:"$color-bg-overlay",[`color-text-${we}`]:"$color-text-primary",[`radius-${we}`]:"$radius",[`font-family-${we}`]:"$font-family",[`max-width-${we}`]:"450px",[`margin-bottom-title-${we}`]:"0",dark:{[`color-bg-${we}`]:"$color-bg-primary"}}}),qi={themeVars:`'{"color-bg-dropdown-NavGroup": "var(--xmlui-color-bg-dropdown-NavGroup)", "shadow-dropdown-NavGroup": "var(--xmlui-shadow-dropdown-NavGroup)", "radius-dropdown-NavGroup": "var(--xmlui-radius-dropdown-NavGroup)"}'`,dropdownList:"_dropdownList_1i6dc_13",withNavGroupChevron:"_withNavGroupChevron_1i6dc_32",pointRight:"_pointRight_1i6dc_48"},Pt="NavGroup",Vi=k({description:"The `NavGroup` component is a container for grouping related navigation targets (`NavLink` components). It can be displayed as a submenu in the App's UI.",props:{label:xe(),icon:a(`This property defines an optional icon to display along with the \`${Pt}\` label.`),to:a("This property defines an optional navigation link.")},themeVars:N(qi.themeVars),defaultThemeVars:{[`color-bg-dropdown-${Pt}`]:"$color-bg-primary",[`radius-dropdown-${Pt}`]:"$radius",[`shadow-dropdown-${Pt}`]:"$shadow-spread"}}),lo="NavLink",Ui=k({description:`The \`${lo}\` component defines a navigation target (app navigation menu item) within the app; it is associated with a particular in-app navigation target (or an external link).`,props:{to:a("This property defines the URL of the link."),enabled:be(),active:a("This property indicates if the particular navigation is an active link. An active link has a particular visual appearance, provided its [`displayActive`](#displayactive) property is set to `true`."),target:a("This property specifies how to open the clicked link."),label:xe(),vertical:a(`This property sets how the active status is displayed on the \`${lo}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu.`),displayActive:a("This Boolean property indicates if the active state of a link should have a visual indication. Setting it to `false` removes the visual indication of an active link."),icon:a("This property allows you to add an icon (specify the icon's name) to the navigation link.")},events:{click:Ye(lo)},themeVars:N(In.themeVars),defaultThemeVars:{"radius-NavLink":"$radius","color-bg-NavLink":"transparent","padding-horizontal-NavLink":"$space-4","padding-vertical-NavLink":"$space-2","font-size-NavLink":"$font-size-small","font-weight-NavLink":"$font-weight-normal","font-family-NavLink":"$font-family","color-text-NavLink":"$color-text-primary","font-weight-NavLink--pressed":"$font-weight-normal","thickness-indicator-NavLink":"$space-0_5","color-outline-NavLink--focus":"$color-outline--focus","thickness-outline-NavLink--focus":"$thickness-outline--focus","style-outline-NavLink--focus":"$style-outline--focus","offset-outline-NavLink--focus":"-1px","radius-indicator-NavLink":"$radius",light:{"color-icon-NavLink":"$color-surface-500","color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-600"},dark:{"color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-400"}}}),qe="NavPanel",Gi=k({description:`\`${qe}\` is a placeholder within \`App\` to define the app's navigation (menu) structure.`,props:{logoTemplate:te("This property defines the logo template to display in the navigation panel with the `vertical` and `vertical-sticky` layout.")},themeVars:N(Bn.themeVars),defaultThemeVars:{[`color-bg-${qe}`]:"transparent",...Jt(qe,{}),[`padding-horizontal-${qe}`]:"$space-4",[`padding-vertical-logo-${qe}`]:"$space-4",[`padding-horizontal-logo-${qe}`]:"$space-4",[`margin-bottom-logo-${qe}`]:"$space-4",light:{[`shadow-${qe}-vertical`]:"4px 0 4px 0 rgb(0 0 0 / 10%)"},dark:{[`shadow-${qe}-vertical`]:"4px 0 6px 0 rgba(0, 0, 0, 0.2)"}}}),Yi={themeVars:`'{"padding-vertical-NoResult": "var(--xmlui-padding-vertical-NoResult)", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_9giub_13",icon:"_icon_9giub_22"},Ot="NoResult",Qi=k({description:`\`${Ot}\` is a component that displays a visual indication that some data query (search) resulted in no (zero) items.`,props:{label:xe(),icon:a("This property defines the icon to display with the component."),hideIcon:a("This boolean property indicates if the icon should be hidden.")},themeVars:N(Yi.themeVars),defaultThemeVars:{[`padding-vertical-${Ot}`]:"$space-2",[`gap-icon-${Ot}`]:"$space-2",[`size-icon-${Ot}`]:"$space-8",light:{},dark:{}}}),pt="NumberBox",Xi=k({status:"experimental",description:`A \`${pt}\` component allows users to input numeric values: either integer or floating point numbers. It also accepts empty values, where the stored value will be of type \`null\`.`,props:{placeholder:nt(),initialValue:ze(),label:xe(),labelPosition:Re("top"),labelWidth:Qe(pt),labelBreak:Xe(pt),maxLength:_t(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),startText:No(),startIcon:zo(),endText:Lo(),endIcon:Co(),hasSpinBox:a("This boolean prop shows (`true`) or hides (`false`) the spinner buttons for the input field.",null,"boolean",!0),step:a("This prop governs how big the step when clicking on the spinner of the field.",null,"number"),integersOnly:a("This boolean property signs whether the input field accepts integers only (`true`) or not (`false`).",null,"boolean",!1),zeroOrPositive:a("This boolean property determines whether the input value can only be 0 or positive numbers (`true`) or also negative (`false`).",null,"boolean",!1),minValue:a("The minimum value the input field allows. Can be a float or an integer if [`integersOnly`](#integersonly) is set to `false`, otherwise it can only be an integer."),maxValue:a("The maximum value the input field allows. Can be a float or an integer if [`integersOnly`](#integersonly) is set to `false`, otherwise it can only be an integer.")},events:{gotFocus:Ae(pt),lostFocus:Ne(pt),didChange:Te(pt)},apis:{focus:Je(pt),value:Po(),setValue:Ze()},themeVars:N(ci.themeVars)}),Zi={themeVars:`'{"padding-OffCanvas": "var(--xmlui-padding-OffCanvas)", "padding-horizontal-OffCanvas": "var(--xmlui-padding-horizontal-OffCanvas)", "padding-vertical-OffCanvas": "var(--xmlui-padding-vertical-OffCanvas)", "shadow-vertical-OffCanvas": "var(--xmlui-shadow-vertical-OffCanvas)", "shadow-horizontal-OffCanvas": "var(--xmlui-shadow-horizontal-OffCanvas)", "color-bg-OffCanvas": "var(--xmlui-color-bg-OffCanvas)", "width-OffCanvas": "var(--xmlui-width-OffCanvas)", "margin-bottom-title-OffCanvas": "var(--xmlui-margin-bottom-title-OffCanvas)"}'`,overlay:"_overlay_c932c_13",overlayVisible:"_overlayVisible_c932c_26",offCanvas:"_offCanvas_c932c_31",right:"_right_c932c_46",left:"_left_c932c_53",top:"_top_c932c_60",bottom:"_bottom_c932c_69",open:"_open_c932c_78",button:"_button_c932c_82",closeButton:"_closeButton_c932c_92",spacer:"_spacer_c932c_103",offCanvasHeader:"_offCanvasHeader_c932c_108",offCanvasButtonSpace:"_offCanvasButtonSpace_c932c_115",offCanvasTitle:"_offCanvasTitle_c932c_119"},Dt="OffCanvas",Ji=k({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `OffCanvas` component is a hidden panel that slides into view from the side of the screen. It helps display additional content or navigation without disrupting the main interface.",props:{title:a("This property sets the title of the component.",null,"string"),isInitiallyOpen:a("This property indicates if the component is initially open.",null,"boolean",!1),enableBackdrop:a("This property indicates if the backdrop is enabled when the component is displayed. When the backdrop is not enabled, clicking outside `OffCanvas` will not close it.",null,"boolean",!0),enableBodyScroll:a("This property indicates if the body scroll is enabled when the component is displayed.",null,"boolean",!1),noCloseOnBackdropClick:a(`When this property is set to \`true\`, the ${Dt} does not close when the user clicks on its backdrop.`,null,"boolean",!1),placement:a(`This property indicates the position where the ${Dt} should be docked to.`,Dr),autoCloseInMs:a("This property sets a timeout. When the timeout expires, the component gets hidden.")},events:{didOpen:on(Dt),didClose:rn(Dt)},apis:{open:a("This method opens the component. It triggers the `didOpen` event with the argument set to `false`."),close:a("This method closes the component. It triggers the `didClose` event with the argument set to `false`.")},themeVars:N(Zi.themeVars),defaultThemeVars:{"width-OffCanvas":"600px","padding-OffCanvas":"$padding-tight","padding-vertical-OffCanvas":"$padding-tight","padding-horizontal-OffCanvas":"$padding-normal","color-bg-OffCanvas":"$color-bg","shadow-horizontal-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)","shadow-vertical-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)",light:{},dark:{}}}),ji=k({description:"A PageMetaTitle component allows setting up (or changing) the app title to display with the current browser tab.",props:{value:a("This property sets the page's title to display in the browser tab.")}}),or="Page",Ki=k({status:"stable",docFolder:or,description:`The \`${or}\` component defines what content is displayed when the user navigates to a particular URL that is associated with the page.`,props:{url:a("The URL of the route associated with the content.")}}),ea=k({description:"The `Pages` component is used as a container for [`Page`](./Page.mdx) components within an [`App`](./App.mdx).",props:{defaultRoute:a("The default route when displaying the app")}}),ta=k({description:"The `Pdf` component provides a read-only preview of a pdf document's contents.",props:{src:a("This property defines the source URL of the pdf document stream to display.")},status:"in progress"}),rr={themeVars:`'{"color-PieChart": "var(--xmlui-color-PieChart)"}'`,wrapper:"_wrapper_1d7s9_13",chartContainer:"_chartContainer_1d7s9_19",chart:"_chart_1d7s9_19",legends:"_legends_1d7s9_33",legendItem:"_legendItem_1d7s9_41",legendTop:"_legendTop_1d7s9_47",legendRight:"_legendRight_1d7s9_61",legendBottom:"_legendBottom_1d7s9_78",legendLeft:"_legendLeft_1d7s9_92",legendRow:"_legendRow_1d7s9_109",legendColumn:"_legendColumn_1d7s9_117",legendBullet:"_legendBullet_1d7s9_125"},Ve="PieChart",oa=k({status:"deprecated",description:"(**OBSOLETE**) A pie chart component",props:{data:a("The data to be displayed in the pie chart"),isInteractive:a("Whether the chart is interactive"),showLabels:a("Whether to show labels"),showLegends:a("Whether to show legends"),legendPosition:a("The position of the legend"),legendDirection:a("The direction of the legend")},themeVars:N(rr.themeVars),defaultThemeVars:{[`scheme-${Ve}`]:"nivo",[`color-text-${Ve}`]:"$color-text-secondary",[`color-ticks-${Ve}`]:"$color-text-primary",[`color-bg-tooltip-${Ve}`]:"$color-bg-primary",[`color-text-tooltip-${Ve}`]:"$color-text-primary",[`color-axis-${Ve}`]:"$color-text-primary",[`color-text-legend-${Ve}`]:"$color-text-primary",light:{[`scheme-${Ve}`]:"set3"},dark:{[`scheme-${Ve}`]:"dark2"}}}),ra={themeVars:'"[]"',wrapper:"_wrapper_1hlil_13",visibleOnHover:"_visibleOnHover_1hlil_16"},na=k({status:"deprecated",description:"(**OBSOLETE**) This component was created for the ChatEngine app.",props:{visibleOnHover:a("No description")},themeVars:N(ra.themeVars)}),ia={themeVars:`'{"color-bg-ProgressBar": "var(--xmlui-color-bg-ProgressBar)", "color-indicator-ProgressBar": "var(--xmlui-color-indicator-ProgressBar)", "radius-ProgressBar": "var(--xmlui-radius-ProgressBar)", "radius-indicator-ProgressBar": "var(--xmlui-radius-indicator-ProgressBar)", "thickness-ProgressBar": "var(--xmlui-thickness-ProgressBar)"}'`,wrapper:"_wrapper_1s8j7_13",bar:"_bar_1s8j7_22"},Ke="ProgressBar",aa=k({description:`A \`${Ke}\` component visually represents the progress of a task or process.`,props:{value:a("This property defines the progress value with a number between 0 and 1.")},themeVars:N(ia.themeVars),defaultThemeVars:{[`radius-${Ke}`]:"$radius",[`radius-indicator-${Ke}`]:"0px",[`thickness-${Ke}`]:"$space-2",light:{[`color-bg-${Ke}`]:"$color-surface-200",[`color-indicator-${Ke}`]:"$color-primary-500"},dark:{[`color-bg-${Ke}`]:"$color-surface-700",[`color-indicator-${Ke}`]:"$color-primary-500"}}}),la=k({description:"The `Queue` component provides an API to enqueue elements and defines events to process queued elements in a FIFO order.",props:{progressFeedback:a("This property defines the component template of the UI that displays progress information whenever, the queue's `progressReport` function in invoked."),resultFeedback:a("This property defines the component template of the UI that displays result information when the queue becomes empty after processing all queued items."),clearAfterFinish:a("This property indicates the completed items (successful or error) should be removed from the queue after completion.")},nonVisual:!0,events:{willProcess:a("This event is triggered to process a particular item."),process:a("This event is fired to process the next item in the queue. If the processing cannot proceed because of some error, raise an exception, and the queue will handle that."),didProcess:a("This event is fired when the processing of a queued item has been successfully processed."),processError:a("This event is fired when processing an item raises an error. The event handler method receives two parameters. The first is the error raised during the processing of the item; the second is an object with these properties:"),complete:a("The queue fires this event when the queue gets empty after processing all items. The event handler has no arguments.")},apis:{enqueueItem:a("This method enqueues the item passed in the method parameter. The new item will be processed after the current queue items have been handled. The method retrieves the unique ID of the newly added item; this ID can be used later in other methods, such as `remove`."),enqueueItems:a("This method enqueues the array of items passed in the method parameter. The new items will be processed after the current queue items have been handled. The method retrieves an array of unique IDs, one for each new item. An item ID can be used later in other methods, such as `remove`."),getQueuedItems:a("You can use this method to return the items in the queue. These items contain all entries not removed from the queue yet, including pending, in-progress, and completed items."),getQueueLength:a("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet."),remove:a("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet.")},contextVars:{$completedItems:a("A list containing the queue items that have been completed (fully processed)."),$queuedItems:a("A list containing the items waiting in the queue, icluding the completed items.")}}),Tt="RadioGroup",ee="RadioGroupOption",sa=k({description:`The \`${Tt}\` input component is a group of radio buttons ([\`RadioGroupOption\`](./RadioGroupOption.mdx) components) that allow users to select only one option from the group at a time.`,props:{initialValue:ze(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),orientation:a("(*** NOT IMPLEMENTED YET ***) This property sets the orientation of the options within the radio group."),label:xe(),labelPosition:Re("top"),labelWidth:Qe(Tt),labelBreak:Xe(Tt)},events:{gotFocus:Ae(Tt),lostFocus:Ne(Tt),didChange:Te(Tt)},themeVars:N(hi.themeVars),defaultThemeVars:{[`gap-${ee}`]:"$space-1_5",[`thickness-border-${ee}`]:"2px",[`color-bg-checked-${ee}--disabled]`]:`$color-border-${ee}--disabled`,[`color-bg-checked-${ee}-error`]:`$color-border-${ee}-error`,[`color-bg-checked-${ee}-warning`]:`$color-border-${ee}-warning`,[`color-bg-checked-${ee}-success`]:`$color-border-${ee}-success`,[`font-size-${ee}`]:"$font-size-small",[`font-weight-${ee}`]:"$font-weight-bold",[`color-text-${ee}-error`]:`$color-border-${ee}-error`,[`color-text-${ee}-warning`]:`$color-border-${ee}-warning`,[`color-text-${ee}-success`]:`$color-border-${ee}-success`,light:{[`color-bg-checked-${ee}-default`]:"$color-primary-500",[`color-border-${ee}-default`]:"$color-surface-500",[`color-border-${ee}-default--hover`]:"$color-surface-700",[`color-border-${ee}-default--active`]:"$color-primary-500"},dark:{[`color-bg-checked-${ee}-default`]:"$color-primary-500",[`color-border-${ee}-default`]:"$color-surface-500",[`color-border-${ee}-default--hover`]:"$color-surface-300",[`color-border-${ee}-default--active`]:"$color-primary-400"}}}),ca=k({status:"experimental",description:"`RealTimeAdapter` is a non-visual component that listens to real-time events through long-polling.",props:{url:a("This property specifies the URL to use for long-polling.")},events:{eventArrived:a("This event is raised when data arrives from the backend using long-polling.")}}),ua=k({description:"`Redirect` is a component that immediately redirects the browser to the URL in its `to` property when it gets visible (its `when` property gets `true`). The redirection works only within the app.",props:{to:a("This property defines the URL to which this component is about to redirect requests.")}}),K="Select",da=k({description:"Provides a dropdown with a list of options to choose from.",status:"experimental",props:{placeholder:nt(),initialValue:ze(),maxLength:_t(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),label:xe(),labelPosition:Re("top"),labelWidth:Qe(K),labelBreak:Xe(K),optionLabelTemplate:te("This property allows replacing the default template to display an option in the dropdown list."),valueTemplate:te("This property allows replacing the default template to display a selected value when multiple selections (`multiSelect` is `true`) are enabled."),dropdownHeight:a("This property sets the height of the dropdown list."),emptyListTemplate:a("This optional property provides the ability to customize what is displayed when the list of options is empty."),multiSelect:Eo(),searchable:a("This property enables the search functionality in the dropdown list.")},events:{gotFocus:Ae(K),lostFocus:Ne(K),didChange:Te(K)},apis:{focus:Je(K),setValue:Ze(),value:Po()},contextVars:{$item:a("This property represents the value of an item in the dropdown list."),$itemContext:a("This property provides a `removeItem` method to delete the particular value from the selection.")},themeVars:N(ui.themeVars),defaultThemeVars:{[`color-bg-menu-${K}`]:"$color-bg-primary",[`shadow-menu-${K}`]:"$shadow-md",[`radius-menu-${K}`]:"$radius",[`thickness-border-menu-${K}`]:"1px",[`color-border-menu-${K}`]:"$color-border",[`color-bg-item-${K}`]:"$color-bg-dropdown-item",[`color-bg-item-${K}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${K}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${K}-badge`]:"$color-primary-500",[`font-size-${K}-badge`]:"$font-size-small",[`padding-horizontal-${K}-badge`]:"$space-1",[`padding-vertical-${K}-badge`]:"$space-1",[`opacity-text-item-${K}--disabled`]:"0.5",[`opacity-${K}--disabled`]:"0.5",light:{[`color-bg-${K}-badge--hover`]:"$color-primary-400",[`color-bg-${K}-badge--active`]:"$color-primary-500",[`color-text-item-${K}--disabled`]:"$color-surface-200",[`color-text-${K}-badge`]:"$color-surface-50"},dark:{[`color-bg-${K}-badge--hover`]:"$color-primary-600",[`color-bg-${K}-badge--active`]:"$color-primary-500",[`color-text-${K}-badge`]:"$color-surface-50",[`color-text-item-${K}--disabled`]:"$color-surface-800"}}}),pa=k({status:"deprecated",description:"The `SelectionStore` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.",props:{idKey:a('The selected items in the selection store needs to have a unique ID to use as an unambiguous key for that particular item. This property uniquely identifies the selected object item via a given property. By default, the key attribute is `"id"`.')}}),ha=k({description:"The `SpaceFiller` is a component that works well in layout containers to fill the remaining (unused) space. Its behavior depends on the layout container in which it is used.",themeVars:N(ai.themeVars)}),At="Spinner",ma=k({description:`The \`${At}\` component is an animated indicator that represents a particular action in progress without a deterministic progress value.`,props:{delay:a("The delay in milliseconds before the spinner is displayed."),fullScreen:a("If set to `true`, the component will be rendered in a full screen container."),themeColor:a("(**NOT IMPLEMENTED YET**) The theme color of the component.")},themeVars:N(bn.themeVars),defaultThemeVars:{[`size-${At}`]:"$space-10",[`thickness-${At}`]:"$space-0_5",light:{[`color-border-${At}`]:"$color-surface-400"},dark:{[`color-border-${At}`]:"$color-surface-600"}}}),xa={themeVars:`'{"padding-Splitter": "var(--xmlui-padding-Splitter)", "shadow-Splitter": "var(--xmlui-shadow-Splitter)", "color-bg-Splitter": "var(--xmlui-color-bg-Splitter)", "radius-Splitter": "var(--xmlui-radius-Splitter)", "color-border-Splitter": "var(--xmlui-color-border-Splitter)", "thickness-border-Splitter": "var(--xmlui-thickness-border-Splitter)", "style-border-Splitter": "var(--xmlui-style-border-Splitter)", "border-Splitter": "var(--xmlui-border-Splitter)", "color-bg-resizer-Splitter": "var(--xmlui-color-bg-resizer-Splitter)", "thickness-resizer-Splitter": "var(--xmlui-thickness-resizer-Splitter)", "cursor-resizer-horizontal-Splitter": "var(--xmlui-cursor-resizer-horizontal-Splitter)", "cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"}'`,splitter:"_splitter_1a9gt_13",vertical:"_vertical_1a9gt_27",horizontal:"_horizontal_1a9gt_30",panel:"_panel_1a9gt_34",primaryPanel:"_primaryPanel_1a9gt_41",secondaryPanel:"_secondaryPanel_1a9gt_48",resizer:"_resizer_1a9gt_54",floatingResizer:"_floatingResizer_1a9gt_70"},et="Splitter",Mt=k({description:`The \`${et}\` component divides a container (such as a window, panel, pane, etc.) into two resizable sections.`,props:{swapped:a(`This optional booelan property indicates whether the \`${et}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`),splitterTemplate:te("The divider can be customized using XMLUI components via this property."),initialPrimarySize:a("This optional number property sets the initial size of the primary section. The unit of the size value is in pixels or percentages."),minPrimarySize:a("This property sets the minimum size the primary section can have. The unit of the size value is in pixels or percentages."),maxPrimarySize:a("This property sets the maximum size the primary section can have. The unit of the size value is in pixels or percentages."),floating:a("Toggles whether the resizer is visible (`false`) or not (`true`) when not hovered or dragged. The default value is `false`, meaning the resizer is visible all the time.")},events:{resize:a("This event fires when the component is resized.")},themeVars:N(xa.themeVars),defaultThemeVars:{[`color-bg-resizer-${et}`]:"$color-bg-Card",[`thickness-resizer-${et}`]:"5px",[`cursor-resizer-horizontal-${et}`]:"ew-resize",[`cursor-resizer-vertical-${et}`]:"ns-resize"}}),fa={...Mt,props:{...Mt.props,orientation:a("Sets whether the `Splitter` divides the container horizontally and lays out the section on top of each other (`vertical`), or vertically by placing the sections next to each other (`horizontal`).")}},ga={...Mt,specializedFrom:et},va={...Mt,specializedFrom:et},ba={themeVars:`'{"color-bg-StickyBox": "var(--xmlui-color-bg-StickyBox)"}'`,wrapper:"_wrapper_1qgtv_13",top:"_top_1qgtv_18",bottom:"_bottom_1qgtv_21"},nr="StickyBox",ya=k({status:"experimental",description:`The \`${nr}\` is a component that "sticks" or remains fixed at the top or bottom position on the screen as the user scrolls.`,props:{to:a("This property determines whether the StickyBox should be anchored to the `top` or `bottom`.")},themeVars:N(ba.themeVars),defaultThemeVars:{[`color-bg-${nr}`]:"$color-bg"}}),Z="Switch",Ta=k({description:`The \`${Z}\` component is a user interface element that allows users to toggle between two states: on and off. It consists of a small rectangular or circular button that can be moved left or right to change its state.`,props:{indeterminate:So(),label:xe(),labelPosition:Re("end"),labelWidth:Qe(Z),labelBreak:Xe(Z),required:He(),initialValue:ze(!1),autoFocus:ke(),readOnly:De(),enabled:be(),validationStatus:Me(),description:a(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description of the ${Z} besides its label.`)},events:{click:Ye(Z),gotFocus:Ae(Z),lostFocus:Ne(Z),didChange:Te(Z)},apis:{value:Ao(),setValue:Ze()},themeVars:N(Go.themeVars),defaultThemeVars:{[`color-border-checked-${Z}-error`]:`$color-border-${Z}-error`,[`color-bg-checked-${Z}-error`]:`$color-border-${Z}-error`,[`color-border-checked-${Z}-warning`]:`$color-border-${Z}-warning`,[`color-bg-checked-${Z}-warning`]:`$color-border-${Z}-warning`,[`color-border-checked-${Z}-success`]:`$color-border-${Z}-success`,[`color-bg-checked-${Z}-success`]:`$color-border-${Z}-success`,light:{[`color-bg-${Z}`]:"$color-surface-400",[`color-border-${Z}`]:"$color-surface-400",[`color-bg-indicator-${Z}`]:"$color-bg-primary",[`color-border-checked-${Z}`]:"$color-primary-500",[`color-bg-checked-${Z}`]:"$color-primary-500",[`color-bg-${Z}--disabled`]:"$color-surface-200"},dark:{[`color-bg-${Z}`]:"$color-surface-500",[`color-border-${Z}`]:"$color-surface-500",[`color-bg-indicator-${Z}`]:"$color-bg-primary",[`color-border-checked-${Z}`]:"$color-primary-400",[`color-bg-checked-${Z}`]:"$color-primary-400",[`color-bg-${Z}--disabled`]:"$color-surface-800"}}}),ka={themeVars:`'{"color-text-pagination-Table": "var(--xmlui-color-text-pagination-Table)", "color-bg-Table": "var(--xmlui-color-bg-Table)", "color-text-Table": "var(--xmlui-color-text-Table)", "color-bg-row-Table": "var(--xmlui-color-bg-row-Table)", "color-bg-row-Table--hover": "var(--xmlui-color-bg-row-Table--hover)", "color-bg-selected-Table": "var(--xmlui-color-bg-selected-Table)", "color-bg-selected-Table--hover": "var(--xmlui-color-bg-selected-Table--hover)", "color-bg-heading-Table": "var(--xmlui-color-bg-heading-Table)", "color-bg-heading-Table--hover": "var(--xmlui-color-bg-heading-Table--hover)", "color-bg-heading-Table--active": "var(--xmlui-color-bg-heading-Table--active)", "padding-horizontal-heading-Table": "var(--xmlui-padding-horizontal-heading-Table)", "padding-vertical-heading-Table": "var(--xmlui-padding-vertical-heading-Table)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "padding-horizontal-cell-Table": "var(--xmlui-padding-horizontal-cell-Table)", "padding-horizontal-cell-first-Table": "var(--xmlui-padding-horizontal-cell-first-Table)", "padding-horizontal-cell-last-Table": "var(--xmlui-padding-horizontal-cell-last-Table)", "padding-vertical-cell-Table": "var(--xmlui-padding-vertical-cell-Table)", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "color-border-cell-Table": "var(--xmlui-color-border-cell-Table)", "thickness-border-cell-Table": "var(--xmlui-thickness-border-cell-Table)", "style-border-cell-Table": "var(--xmlui-style-border-cell-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "color-bg-pagination-Table": "var(--xmlui-color-bg-pagination-Table)", "color-text-heading-Table": "var(--xmlui-color-text-heading-Table)", "font-weight-row-Table": "var(--xmlui-font-weight-row-Table)", "font-size-row-Table": "var(--xmlui-font-size-row-Table)", "font-weight-heading-Table": "var(--xmlui-font-weight-heading-Table)", "font-size-heading-Table": "var(--xmlui-font-size-heading-Table)", "transform-text-heading-Table": "var(--xmlui-transform-text-heading-Table)", "thickness-outline-heading-Table--focus": "var(--xmlui-thickness-outline-heading-Table--focus)", "color-outline-heading-Table--focus": "var(--xmlui-color-outline-heading-Table--focus)", "style-outline-heading-Table--focus": "var(--xmlui-style-outline-heading-Table--focus)", "offset-outline-heading-Table--focus": "var(--xmlui-offset-outline-heading-Table--focus)"}'`,wrapper:"_wrapper_7jlv4_13",noScroll:"_noScroll_7jlv4_19",headerWrapper:"_headerWrapper_7jlv4_23",tableBody:"_tableBody_7jlv4_23",clickableHeader:"_clickableHeader_7jlv4_29",headerContent:"_headerContent_7jlv4_39",headerRow:"_headerRow_7jlv4_67",columnCell:"_columnCell_7jlv4_72",cell:"_cell_7jlv4_72",table:"_table_7jlv4_23",row:"_row_7jlv4_83",checkBoxWrapper:"_checkBoxWrapper_7jlv4_89",showInHeader:"_showInHeader_7jlv4_93",selected:"_selected_7jlv4_96",allSelected:"_allSelected_7jlv4_96",focused:"_focused_7jlv4_142",disabled:"_disabled_7jlv4_154",noRows:"_noRows_7jlv4_179",pagination:"_pagination_7jlv4_185",paginationLabel:"_paginationLabel_7jlv4_201",paginationSelect:"_paginationSelect_7jlv4_206",paginationButtons:"_paginationButtons_7jlv4_212",searchIconWrapper:"_searchIconWrapper_7jlv4_217",loadingWrapper:"_loadingWrapper_7jlv4_224",resizer:"_resizer_7jlv4_239",isResizing:"_isResizing_7jlv4_261"},P="Table",wa=k({description:`\`${P}\` is a component that displays cells organized into rows and columns. The \`${P}\` component is virtualized so it only renders visible cells.`,props:{items:a("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:a("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:a(`This property adds pagination controls to the \`${P}\`.`),loading:a("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:a("This optional property is used to specify the height of the table header."),rowsSelectable:a("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:a("Describes how big a page should be for pagination."),rowDisabledPredicate:a("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:te("A property to customize what to display if the table does not contain any data."),sortBy:a("This property is used to determine which data attributes to sort by."),sortDirection:a("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set."),autoFocus:ke(),hideHeader:a("Set the header visibility using this property. Set it to `true` to hide the header."),iconNoSort:a(`Allows the customization of the icon displayed in the ${P} column header when when sorting is enabled and sorting is not done according to the column.`),iconSortAsc:a(`Allows the customization of the icon displayed in the ${P} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in ascending order.`),iconSortDesc:a(`Allows the customization of the icon displayed in the ${P} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in descending order.`),enableMultiRowSelection:a("This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row."),alwaysShowSelectionHeader:a("This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",null,"boolean",!1)},events:{sortingDidChange:a("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:a("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:a("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:a("This method clears the list of currently selected table rows."),getSelectedItems:a("This method returns the list of currently selected table rows items."),getSelectedIds:a("This method returns the list of currently selected table rows IDs."),selectAll:a("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:a("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:N(ka.themeVars),defaultThemeVars:{[`padding-horizontal-heading-${P}`]:"$space-2",[`padding-vertical-heading-${P}`]:"$space-2",[`padding-heading-${P}`]:`$padding-vertical-heading-${P} $padding-horizontal-heading-${P}`,[`padding-horizontal-cell-${P}`]:"$space-2",[`padding-horizontal-cell-first-${P}`]:"$space-5",[`padding-horizontal-cell-last-${P}`]:"$space-5",[`padding-vertical-cell-${P}`]:"$space-2",[`padding-cell-${P}`]:`$padding-vertical-cell-${P} $padding-horizontal-cell-${P}`,[`thickness-border-cell-${P}`]:"1px",[`style-border-cell-${P}`]:"solid",[`border-cell-${P}`]:`$thickness-border-cell-${P} $style-border-cell-${P} $color-border-cell-${P}`,[`thickness-outline-heading-${P}--focus`]:"$thickness-outline--focus",[`style-outline-heading-${P}--focus`]:"$style-outline--focus",[`offset-outline-heading-${P}--focus`]:"$offset-outline--focus",[`font-size-heading-${P}`]:"$font-size-tiny",[`font-weight-heading-${P}`]:"$font-weight-bold",[`transform-text-heading-${P}`]:"uppercase",[`font-size-row-${P}`]:"$font-size-small",[`color-bg-${P}`]:"$color-bg",[`color-bg-row-${P}`]:"inherit",[`color-border-cell-${P}`]:"$color-border",[`color-bg-selected-${P}--hover`]:`$color-bg-row-${P}--hover`,[`color-bg-pagination-${P}`]:`$color-bg-${P}`,[`color-outline-heading-${P}--focus`]:"$color-outline--focus",[`color-text-pagination-${P}`]:"$color-secondary",light:{[`color-bg-row-${P}--hover`]:"$color-primary-50",[`color-bg-selected-${P}`]:"$color-primary-100",[`color-bg-heading-${P}--hover`]:"$color-surface-200",[`color-bg-heading-${P}--active`]:"$color-surface-300",[`color-bg-heading-${P}`]:"$color-surface-100",[`color-text-heading-${P}`]:"$color-surface-500"},dark:{[`color-bg-row-${P}--hover`]:"$color-primary-900",[`color-bg-selected-${P}`]:"$color-primary-800",[`color-bg-heading-${P}--hover`]:"$color-surface-800",[`color-bg-heading-${P}`]:"$color-surface-950",[`color-bg-heading-${P}--active`]:"$color-surface-700"}}}),$a=k({description:"The `Column` component can be used within a `Table` to define a particular table column's visual properties and data bindings.",props:{bindTo:a("Indicates what part of the data to lay out in the column."),header:a("Adds a label for a particular column."),width:a("This property defines the width of the column. You can use a numeric value, a pixel value (such as `100px`), or a star size value (such as `*`, `2*`, etc.). You will get an error if you use any other unit (or value)."),minWidth:a("Indicates the minimum width a particular column can have."),maxWidth:a("Indicates the maximum width a particular column can have."),canSort:a("This property sets whether the user can sort by a column by clicking on its header (`true`) or not (`false`)."),pinTo:a("This property allows the column to be pinned to the `left` (left-to-right writing style) or `right` (left-to-right writing style) edge of the table. If the writing style is right-to-left, the locations are switched.",["left","right"],"string"),canResize:a("This property indicates whether the user can resize the column. If set to `true`, the column can be resized by dragging the column border. If set to `false`, the column cannot be resized. Double-clicking the column border resets to the original size.")}});var x=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(x||{}),kt=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(kt||{}),tt=(e=>(e.onlyOneElem="U002",e.expTagOpen="U003",e.expTagIdent="U004",e.expCloseStart="U005",e.expEndOrClose="U006",e.tagNameMismatch="U007",e.expEnd="U008",e.expAttrIdent="U009",e.expEq="U010",e.expAttrValue="U011",e.duplAttr="U012",e.uppercaseAttr="U013",e.invalidChar="W001",e.untermStr="W002",e.untermComment="W007",e.untermCData="W008",e.untermScript="W009",e))(tt||{});const so={code:"W001",category:1,message:"Invalid character."},_a={code:"W002",category:1,message:"Unterminated string literal."},Ia={code:"W007",category:1,message:"Unterminated comment"},Ba={code:"W008",category:1,message:"Unterminated CDATA section"},Sa={code:"W009",category:1,message:"Unterminated script section"},Ea={category:1,code:"U008",message:"A '>' token expected."},Aa={category:1,code:"U005",message:"A '</' token expected."},ir={category:1,code:"U004",message:"A tag identifier expected."},Na={category:1,code:"U011",message:"An attribute value expected."},za={category:1,code:"U003",message:"A '<' token expected."},La={category:1,code:"U006",message:"A '>' or '/>' token expected."},ar={category:1,code:"U009",message:"An attribute identifier expected."};var h=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.CommentTrivia=2]="CommentTrivia",e[e.NewLineTrivia=3]="NewLineTrivia",e[e.WhitespaceTrivia=4]="WhitespaceTrivia",e[e.Identifier=5]="Identifier",e[e.OpenNodeStart=6]="OpenNodeStart",e[e.CloseNodeStart=7]="CloseNodeStart",e[e.NodeEnd=8]="NodeEnd",e[e.NodeClose=9]="NodeClose",e[e.Colon=10]="Colon",e[e.Equal=11]="Equal",e[e.StringLiteral=12]="StringLiteral",e[e.CData=13]="CData",e[e.Script=14]="Script",e[e.TextNode=15]="TextNode",e[e.AmpersandEntity=16]="AmpersandEntity",e[e.LessThanEntity=17]="LessThanEntity",e[e.GreaterThanEntity=18]="GreaterThanEntity",e[e.SingleQuoteEntity=19]="SingleQuoteEntity",e[e.DoubleQuoteEntity=20]="DoubleQuoteEntity",e[e.ElementNode=21]="ElementNode",e[e.AttributeNode=22]="AttributeNode",e[e.AttributeKeyNode=23]="AttributeKeyNode",e[e.ContentListNode=24]="ContentListNode",e[e.AttributeListNode=25]="AttributeListNode",e[e.TagNameNode=26]="TagNameNode",e[e.ErrorNode=27]="ErrorNode",e))(h||{});function Ca(e){return e>=2&&e<=4}function lr(e){switch(e){case 0:return"Unknown";case 1:return"EndOfFileToken";case 2:return"CommentTrivia";case 3:return"NewLineTrivia";case 4:return"WhitespaceTrivia";case 5:return"Identifier";case 6:return"OpenNodeStart";case 7:return"CloseNodeStart";case 8:return"NodeEnd";case 9:return"NodeClose";case 10:return"Colon";case 11:return"Equal";case 12:return"StringLiteral";case 13:return"CData";case 14:return"Script";case 16:return"AmpersandEntity";case 17:return"LessThanEntity";case 18:return"GreaterThanEntity";case 19:return"SingleQuoteEntity";case 20:return"DoubleQuoteEntity";case 21:return"ElementNode";case 22:return"AttributeNode";case 15:return"TextNode";case 24:return"ContentListNode";case 25:return"AttributeListNode";case 26:return"TagNameNode";case 27:return"ErrorNode";case 23:return"AttributeKeyNode"}return Pa()}function Pa(e){throw new Error("Didn't expect to get here")}function Oa(e,t,o,i,n){let s=t??"",l,c,u,w,f,p;return ge(s,i,n),{getStartPos:()=>u,getTokenEnd:()=>l,getToken:()=>f,getTokenStart:()=>w,getTokenText:()=>s.substring(w,l),getTokenValue:()=>p,isIdentifier:()=>f===h.Identifier,peekChar:C,scanChar:v,scan:M,scanTrivia:E,scanText:_,getText:se,setText:ge,setOnError:pe,resetTokenState:re,back:W};function C(d){if(l+(d??0)>=c)return null;const y=q(l+(d??0));return isNaN(y)?null:y}function v(){if(l>=c)return null;const d=q(l);return l+=Ue(d),d}function M(){for(u=l;;){if(w=l,l>=c)return f=h.EndOfFileToken;const d=q(l);switch(d){case x.lineFeed:case x.carriageReturn:return d===x.carriageReturn&&l+1<c&&T(l+1)===x.lineFeed?l+=2:l++,f=h.NewLineTrivia;case x.tab:case x.verticalTab:case x.formFeed:case x.space:case x.nonBreakingSpace:case x.ogham:case x.enQuad:case x.emQuad:case x.enSpace:case x.emSpace:case x.threePerEmSpace:case x.fourPerEmSpace:case x.sixPerEmSpace:case x.figureSpace:case x.punctuationSpace:case x.thinSpace:case x.hairSpace:case x.zeroWidthSpace:case x.narrowNoBreakSpace:case x.mathematicalSpace:case x.ideographicSpace:case x.byteOrderMark:{for(;l<c&&cr(T(l));)l++;return f=h.WhitespaceTrivia}case x.doubleQuote:case x.singleQuote:case x.backtick:return p=he(),f=h.StringLiteral;case x.ampersand:return T(l+1)===x.a&&T(l+2)===x.m&&T(l+3)===x.p&&T(l+4)===x.semicolon?(l+=5,f=h.AmpersandEntity):T(l+1)===x.l&&T(l+2)===x.t&&T(l+3)===x.semicolon?(l+=4,f=h.LessThanEntity):T(l+1)===x.g&&T(l+2)===x.t&&T(l+3)===x.semicolon?(l+=4,f=h.GreaterThanEntity):T(l+1)===x.q&&T(l+2)===x.u&&T(l+3)===x.o&&T(l+4)===x.t&&T(l+5)===x.semicolon?(l+=6,f=h.DoubleQuoteEntity):T(l+1)===x.a&&T(l+2)===x.p&&T(l+3)===x.o&&T(l+4)===x.s&&T(l+5)===x.semicolon?(l+=6,f=h.SingleQuoteEntity):(l++,m(so,1),f=h.Unknown);case x.equals:return l++,f=h.Equal;case x.colon:return l++,f=h.Colon;case x.lessThan:if(T(l+1)===x.slash)return l+=2,f=h.CloseNodeStart;if(T(l+1)===x.exclamation&&T(l+2)===x.minus&&T(l+3)===x.minus){for(l+=4;l<c;){if(T(l)===x.minus&&T(l+1)===x.minus&&T(l+2)===x.greaterThan)return l+=3,f=h.CommentTrivia;l+=Ue(T(l))}return m(Ia,4),f=h.Unknown}else if(T(l+1)===x.exclamation&&T(l+2)===x.openBracket&&T(l+3)===x.C&&T(l+4)===x.D&&T(l+5)===x.A&&T(l+6)===x.T&&T(l+7)===x.A&&T(l+8)===x.openBracket){for(l+=9;l<c;){if(T(l)===x.closeBracket&&T(l+1)===x.closeBracket&&T(l+2)===x.greaterThan)return l+=3,f=h.CData;l+=Ue(T(l))}return m(Ba,9),f=h.CData}else if(T(l+1)===x.s&&T(l+2)===x.c&&T(l+3)===x.r&&T(l+4)===x.i&&T(l+5)===x.p&&T(l+6)===x.t&&T(l+7)===x.greaterThan){for(l+=8;l<c;){if(T(l)===x.lessThan&&T(l+1)===x.slash&&T(l+2)===x.s&&T(l+3)===x.c&&T(l+4)===x.r&&T(l+5)===x.i&&T(l+6)===x.p&&T(l+7)===x.t&&T(l+8)===x.greaterThan)return l+=9,f=h.Script;l+=Ue(T(l))}return m(Sa,9),f=h.Script}return l++,f=h.OpenNodeStart;case x.slash:return T(l+1)===x.greaterThan?(l+=2,f=h.NodeClose):(l++,m(so,1),f=h.Unknown);case x.greaterThan:return l++,f=h.NodeEnd;default:const y=F(d);if(y)return f=y;if(cr(d)){l+=Ue(d);continue}else if(Wa(d)){l+=Ue(d);continue}const g=Ue(d);return l+=g,m(so,g),f=h.Unknown}}}function E(){const d=l,y=M();return Ca(y)?y:(re(d),null)}function _(){return h.Unknown}function se(){return s}function T(d){return s.charCodeAt(d)}function q(d){return ce(s,d)}function ce(d,y){return d.codePointAt(y)??0}function ge(d,y,g){s=d||"",c=g===void 0?s.length:y+g,re(y||0)}function pe(d){o=d}function re(d){l=d,u=d,w=d,f=h.Unknown,p=void 0}function W(){re(u)}function F(d){let y=d;if(Ha(y)){for(l+=Ue(y);l<c&&Fa(y=q(l));)l+=Ue(y);return p=s.substring(w,l),ue()}}function ue(){return f=h.Identifier}function he(){const d=T(l);l++;let y="",g=l;for(;;){if(l>=c){y+=s.substring(g,l),m(_a,1);break}if(T(l)===d){y+=s.substring(g,l),l++;break}l++}return y}function m(d,y=0){o&&o(d,y)}}function Ue(e){return e>=65536?2:e===x.EOF?0:1}function sr(e){return e>=x.A&&e<=x.Z||e>=x.a&&e<=x.z}function Da(e){return sr(e)||Ma(e)||e===x._}function Ma(e){return e>=x._0&&e<=x._9}function Ha(e){return sr(e)||e===x.$||e===x._}function Fa(e){return Da(e)||e===x.$||e===x.minus||e===x.dot}function cr(e){return e===x.space||e===x.tab||e===x.verticalTab||e===x.formFeed||e===x.nonBreakingSpace||e===x.nextLine||e===x.ogham||e>=x.enQuad&&e<=x.zeroWidthSpace||e===x.narrowNoBreakSpace||e===x.mathematicalSpace||e===x.ideographicSpace||e===x.byteOrderMark}function Wa(e){return e===x.lineFeed||e===x.carriageReturn||e===x.lineSeparator||e===x.paragraphSeparator}function Ra(e,t,o){var s,l;const i=((s=e.children)==null?void 0:s.filter(c=>c.kind!==h.ErrorNode))??[],n=((l=t.children)==null?void 0:l.filter(c=>c.kind!==h.ErrorNode))??[];if(i.length!==n.length)return!1;for(let c=0;c<i.length;++c)if(o(i[c])!==o(n[c]))return!1;return!0}const Ht={uppercaseAttr:function(e){return{category:kt.Error,code:tt.uppercaseAttr,message:`Attribute name '${e}' cannot start with an uppercase letter.`}},duplAttr:function(e){return{category:kt.Error,code:tt.duplAttr,message:`Duplicated attribute: '${e}'.`}},tagNameMismatch:function(e,t){return{category:kt.Error,code:tt.tagNameMismatch,message:`Opening and closing tag names should match. Opening tag has a name '${e}', but the closing tag name is '${t}'.`}},invalidChar:function(e){return{category:kt.Error,code:tt.invalidChar,message:`Invalid character '${e}'.`}}};function qa(e){return{parse:()=>Va(e),getText:(t,o=!0)=>e.substring(o?t.pos??t.start??0:t.start??t.pos??0,t.end)}}function Va(e){const t=[],o=[];let i,n={children:[]},s;const c=Oa(!1,e,function(b,I){s={message:b,prefixLength:I}});function u(b,I=!0){return e.substring(I?b.pos:b.start,b.end)}function w(){m();e:for(;;){const b=F();switch(b.kind){case h.TextNode:case h.StringLiteral:ue(b.kind);break;case h.CloseNodeStart:break e;case h.EndOfFileToken:break e;default:p();break}}n.children&&n.children.length>0?d(h.ContentListNode):S()}function f(){for(;;)switch(F().kind){case h.EndOfFileToken:he();return;default:p();break}}function p(){!q(h.CData)&&!q(h.Script)&&(T(h.OpenNodeStart)?C():g(za))}function C(){m(),ue(h.OpenNodeStart);let b;if(T(h.Identifier)?b=v():pe(ir),M(),q(h.NodeClose)){d(h.ElementNode);return}else if(q(h.NodeEnd)){if(w(),q(h.CloseNodeStart)){if(T(h.Identifier)){const I=v();b!==void 0&&!Ra(b,I,u)&&pe(Ht.tagNameMismatch(u(b),u(I)))}else ge(ir,[h.NodeEnd]);q(h.NodeEnd)||pe(Ea)}else pe(Aa);d(h.ElementNode);return}else pe(La)}function v(){return m(),ue(h.Identifier),q(h.Colon)&&q(h.Identifier),d(h.TagNameNode)}function M(){m();const b=[];for(;!ce([h.EndOfFileToken,h.NodeEnd,h.NodeClose]);)E(b);n.children.length===0?S():d(h.AttributeListNode)}function E(b){if(m(),T(h.Identifier))_(b);else{const I=[h.Equal];if(!ge(ar,I))return}if(q(h.Equal)&&!q(h.StringLiteral)&&!q(h.Identifier)){const I=[h.NodeEnd,h.NodeClose];ge(Na,I)}d(h.AttributeNode)}function _(b){const I=W();let H;m(),ue(h.Identifier),q(h.Colon)&&(T(h.Identifier)?H=ue(h.Identifier):ge(ar,[h.NodeClose,h.NodeEnd,h.Equal])),se(b,{nsIdent:H,nameIdent:I}),d(h.AttributeKeyNode)}function se(b,{nameIdent:I,nsIdent:H}){const A=u(I),U=H===void 0?void 0:u(H),O=({ns:ve,name:Ge})=>Ge===A&&ve===U,L=b.findIndex(O)!==-1,G="A"<=A[0]&&A[0]<="Z",de=L||G;L&&re(Ht.duplAttr(A),I.pos,I.end),G&&re(Ht.uppercaseAttr(A),I.pos,I.end),de||b.push({name:A})}function T(b){return W().kind===b}function q(b){const I=T(b);return I&&he(),I}function ce(b){return b.includes(W().kind)}function ge(b,I){return ce(I)||T(h.EndOfFileToken)?(pe(b),!0):(m(),pe(b),he(),d(h.ErrorNode),!1)}function pe({code:b,message:I,category:H}){const{pos:A,end:U}=W();t.push({category:H,code:b,message:I,pos:A,end:U})}function re({code:b,message:I,category:H},A,U){t.push({category:H,code:b,message:I,pos:A,end:U})}function W(b=!1){return i!==void 0||(i=y(b)),i}function F(){const b=W(!0);if(b.kind===h.EndOfFileToken||b.kind===h.OpenNodeStart||b.kind===h.Script||b.kind===h.CData||b.kind===h.CloseNodeStart)return b;const I=b.triviaBefore,H=(I==null?void 0:I.length)??0;let A=0,U=[],O=-1;for(;A<H;++A)if(I[A].kind===h.CommentTrivia)U.push(I[A]);else{O=A;break}let L=-1;for(;A<H;++A)if(I[A].kind===h.CommentTrivia){L=A;break}let G=!1;if(b.kind===h.StringLiteral){const mt=b.end,Ut=y(!0);G=Ut.kind===h.CData||Ut.kind===h.CloseNodeStart||Ut.kind===h.Script||Ut.kind===h.OpenNodeStart,c.resetTokenState(mt)}let de;G?de=b.pos:U.length>0?de=U[U.length-1].end:O!==-1?de=I[O].pos:de=b.start;let ve=de,Ge;U.length>0&&(Ge=U,ve=U[0].pos);let Vt=h.TextNode,X=-1;if(L!==-1)X=I[L].pos,c.resetTokenState(X);else if(G)Vt=h.StringLiteral,X=b.end;else{for(;;){const mt=c.peekChar();if(mt===null||mt===x.lessThan)break;c.scanChar()}X=c.getTokenEnd()}return i={kind:Vt,start:ve,pos:de,end:X,triviaBefore:Ge},i}function ue(b){const I=he();if(I.kind!==b)throw new Error(`expected ${lr(b)}, bumped a ${lr(I.kind)}`);return I}function he(){if(i){n.children.push(i);const I=i;return i=void 0,I}const b=y(!1);return n.children.push(b),b}function m(){o.push(n),n={children:[]}}function d(b){const I=ur(b,n.children),H=o[o.length-1];return H.children.push(I),n=H,o.pop(),I}function y(b){let I,H=[],A=null;for(;;){if(I=c.scan(),A===null&&(A=c.getTokenStart()),s!==void 0){let U;s.message.code===tt.invalidChar?U=Ht.invalidChar(c.getTokenText()):U=s.message;const O=c.getTokenStart(),L={kind:I,start:A,pos:O,end:c.getTokenEnd(),triviaBefore:H.length>0?H:void 0};if(H=[],b&&U.code===tt.invalidChar)return s=void 0,L;const G=O+s.prefixLength;return L.end=G,c.resetTokenState(G),m(),n.children.push(L),re(U,O,G),d(h.ErrorNode),s=void 0,y(b)}switch(I){case h.CommentTrivia:case h.NewLineTrivia:case h.WhitespaceTrivia:H.push({kind:I,start:A,pos:c.getTokenStart(),end:c.getTokenEnd()});break;default:return{kind:I,start:A,pos:c.getTokenStart(),end:c.getTokenEnd(),triviaBefore:H.length>0?H:void 0}}}}function g(b){ge(b,[])}function S(){const b=o[o.length-1];b.children.push(...n.children),n=b,o.pop()}return f(),{node:ur(h.ContentListNode,n.children),errors:t}}function ur(e,t){const o=t[0],i=t[t.length-1];return{kind:e,start:o.start,pos:o.pos,end:i.end,children:t}}class co extends Error{constructor(t,o){super(`${o?`${o}: `:""}${t}`),this.code=o,Object.setPrototypeOf(this,co.prototype)}}const Ua={U001:"Unexpected token: {0}.",U002:"A component definition can have exactly one UEML element.",U003:"A '<' token expected.",U004:"A node identifier expected.",U005:"A '</' token expected.",U006:"A '>' or '/>' token expected.",U007:"An '{0}' ID expected in the closing tag but '{1}' received.",U008:"A '>' token expected.",U009:"An attribute identifier expected.",U010:"An '=' token expected.",U011:"An attribute value expected.",U012:"Duplicated attribute: '{0}'.",U013:"Attribute name cannot start with an uppercase letter.",U014:"An '{0}' ID expected in the closing tag's namespace but '{1}' received.",U015:"Unexpected token in text element: {0}.",T001:"A component definition must have exactly one UEML element.",T002:"A component definition's name must start with an uppercase letter.",T003:"A reusable component must have a non-empty name.",T004:"A reusable component's name must start with an uppercase letter.",T005:"A reusable component must have at least one nested component definition.",T006:"A reusable component definition cannot nest another one.",T007:"Invalid attribute name: '{0}'",T008:"Event attribute names should not start with 'on' prefix: '{0}'",T009:"Invalid node name '{0}' in a component definition",T010:"The '{0}' element does not accept a text child",T011:"Only 'name', 'value', and type hint attributes are accepted in '{0}'.",T012:"The 'name' attribute in '{0}' is required.",T013:"A loader element must have an id.",T014:"A loader element must not have '{0}'.",T015:"The uses element must define only a non-empty 'value' attribute.",T016:"Only 'field' or 'item' are accepted as a child element.",T017:"Cannot mix 'field' and 'item' nodes within an element.",T018:"The '{0}' node cannot have a 'name' attribute.",T019:"The 'value' attribute in '{0}' is required.",T020:"Cannot mix nested components and non-component children.",T021:"Invalid reusable component attribute '{0}'.",T022:"The 'script' tag must not have any attribute.",T023:"A 'script' tag cannot nest other child nodes, only text.",T024:"Cannot put a reusable component definitions into a slot.",T025:"Duplicate xmlns found: '{0}'.",T026:"The top level component's name cannot have a namespace.",T027:"Cannot resolve namespace '{0}'. It was not defined in any of the ancestor components.",T028:"Incorrect namespace value '{0}'. {1}",T029:"Incorrect scheme specified before ':' (colon) in namespace {0}. Delete it to get the default '{1}'."},uo="__PARSED__";function Ga(e,t,o,i){const n={vars:{},moduleErrors:{},functions:{}},s={},l=yi(e,t,o,!0);if(bi(l))return{...n,moduleErrors:l};const c=i(l.name);return l.statements.forEach(f=>{switch(f.type){case"VarS":f.declarations.forEach(p=>{if(p.id in n.vars)throw new Error(`Duplicated var declaration: '${p.id}'`);n.vars[p.id]={[uo]:!0,source:p.expression.source,tree:p.expression}});break;case"FuncD":w(c,f);break;case"ImportD":break;default:throw new Error(`'${f.type}' is not allowed in a code-behind module.`)}}),u(l),n;function u(f){var C;const p=i(f.name);if(!((C=s==null?void 0:s[p])!=null&&C.collectedImportsFrom)){for(const v in f.imports){const M=i(v),E=f.imports[v];for(const _ of Object.values(E))_.type==="FuncD"&&w(M,_)}s[p]??(s[p]={collectedImportsFrom:!0}),s[p].collectedImportsFrom=!0;for(let v of f.importedModules)u(v)}}function w(f,p){var _,se,T,q;var C;if(((se=(_=s==null?void 0:s[f])==null?void 0:_.functions)==null?void 0:se[p.name])!==void 0)return;if(p.name in n.functions)throw new Error(`Duplicated function declaration: '${p.name}'`);const v=p.args.length===1?`${p.args[0].source} => ${p.statement.source}`:`(${p.args.map(ce=>ce.source).join(", ")}) => ${p.statement.source}`,M={type:"ArrowE",args:p.args.slice(),statement:p.statement,closureContext:Ko({childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1})},E=(q=(T=M.closureContext[0])==null?void 0:T.vars)==null?void 0:q[p.name];E!=null&&E.closureContext&&delete E.closureContext,s[f]??(s[f]={functions:{},collectedImportsFrom:!1}),(C=s[f]).functions??(C.functions={}),s[f].functions[p.name]={[uo]:!0,source:v,tree:M},n.functions[p.name]={[uo]:!0,source:v,tree:M}}}const dr="Component",$e=/^[A-Z]/,pr=/^on[A-Z]/,Ya=["name","value"],Qa=9,Xa=3,po="component-ns",Za="app-ns",Ja="#app-ns",ja="core-ns",Ka="#xmlui-core-ns";function el(e,t,o,i=()=>""){const n=m=>m.text??t(m);if(e.children.length!==2)return V("T001"),null;const s=e.children[0];if(s.kind!==h.ElementNode)return V("T001"),null;const l=pe(s),c=T(s);if(!$e.test(c))return V("T002"),null;const u=[],w=[];return f(u,l);function f(m,d){if(!$e.test(T(d)))return V("T002"),null;const y=q(d),g=wt(d).map(ce);let S;if(y===dr){const D=g.find(X=>X.name==="name");if(!D)return V("T003"),null;if(!$e.test(D.value))return V("T004"),null;let b;const I=g.filter(X=>X.startSegment==="method");I.length>0&&(b={},I.forEach(X=>{b[X.name]=X.value}));let H;const A=g.filter(X=>X.startSegment==="var");A.length>0&&(H={},A.forEach(X=>{H[X.name]=X.value}));const U=$t(d);if(U.find(X=>X.kind===h.ElementNode&&T(X)===dr))return V("T006"),null;const L=U.filter(X=>X.kind===h.ElementNode&&$e.test(T(X)));L.length===0&&L.push(hr(""));const G=[],de=[];for(let X of U)if(X.kind===h.ElementNode){const mt=T(X);mt==="var"?de.push(X):$e.test(mt)||G.push(X)}let ve;L.length>1||de.length>0?ve=mr([...de,...L]):ve=L[0],w.push(new Map),g.filter(X=>X.namespace==="xmlns").forEach(X=>{fr(w,ve,X.unsegmentedName,X.value)});let Ge=f(m,ve);w.pop(),S={name:D.value,component:Ge,debug:{source:{start:d.start,end:d.end,fileId:o}}},b&&(S.api=b),H&&(Ge.vars={...Ge.vars,...H}),Ge.debug={source:{start:ve.start,end:ve.end,fileId:o}};const Vt=xr(d,G);return p(m,S,Vt),S}return S={type:y,debug:{source:{start:d.start,end:d.end,fileId:o}}},p(m,S,d),S}function p(m,d,y){var H;const g=!Pe(d),S=wt(y);if(w.push(new Map),S.forEach(A=>{C(d,A)}),$t(y).forEach(A=>{if(A.kind===h.Script){wt(A).length>0&&V("T022");const O=n(A),L=O.slice(O.indexOf(">")+1,O.lastIndexOf("</"));d.script??(d.script=""),d.script.length>0&&(d.script+=`
8
- `),d.script+=L;return}if(A.kind===h.TextNode&&!g){d.children=Ft(d.children,n(A));return}const U=T(A);if(!(g&&A.kind===h.ElementNode&&$e.test(U))){if($e.test(U)&&!g){const O=f(m,A);O&&(d.children?typeof d.children=="string"?d.children=[d.children,O]:Array.isArray(d.children)&&d.children.push(O):d.children=[O]);return}switch(U){case"property":_(m,d,A,O=>{var L;return Pe(d)?(L=d.props)==null?void 0:L[O]:void 0},(O,L)=>{Pe(d)&&(d.props??(d.props={}),d.props[O]=L)});return;case"event":_(m,d,A,O=>{var L;return Pe(d)?(L=d.events)==null?void 0:L[O]:void 0},(O,L)=>{Pe(d)&&(d.events??(d.events={}),d.events[O]=L)},O=>{pr.test(O)&&V("T008",O)});return;case"var":_(m,d,A,O=>{var L;return Pe(d)?(L=d.vars)==null?void 0:L[O]:void 0},(O,L)=>{Pe(d)&&(d.vars??(d.vars={}),d.vars[O]=L)});return;case"loaders":E(m,d,A);return;case"uses":se(d,A);return;case"method":_(m,d,A,O=>{var L;return Pe(d)?(L=d.api)==null?void 0:L[O]:void 0},(O,L)=>{d.api??(d.api={}),d.api[O]=L});return;default:V("T009",U);return}}}),w.pop(),!d.script||d.script.trim().length===0)return;const b=new jo(d.script);try{b.parseStatements(),d.scriptCollected=Ga("Main",d.script,i,A=>A)}catch(A){b.errors&&b.errors.length>0?d.scriptError=b.errors:d.scriptError=A}const I=((H=d.scriptCollected)==null?void 0:H.moduleErrors)??{};Object.keys(I).length>0&&(d.scriptError=I)}function C(m,d){const{namespace:y,startSegment:g,name:S,value:D,unsegmentedName:b}=ce(d);if(y==="xmlns")return fr(w,m,b,D);if(!Pe(m)){if(g&&g!=="method"&&g!=="var"){V("T021");return}if(S==="name"&&!g)return;!g&&S&&V("T021",S);return}switch(S){case"id":m.uid=D;return;case"testId":m.testId=D;return;case"when":m.when=D;return;default:if(g==="var")m.vars??(m.vars={}),m.vars[S]=D;else if(g==="method")m.api??(m.api={}),m.api[S]=D;else if(g==="event")m.events??(m.events={}),m.events[S]=D;else if(pr.test(S)){m.events??(m.events={});const H=S[2].toLowerCase()+S.substring(3);m.events[H]=D}else m.props??(m.props={}),m.props[S]=D;return}}function v(m,d){let y=null;if(!d)return y;let g=null;return d.forEach(S=>{if(S.kind===h.TextNode){y=Ft(y,n(S));return}if(S.kind!==h.ElementNode)return;const D=T(S);if(D!=="field"&&D!=="item"){V("T016");return}if(D==="field"){if(!g)g=D,y={};else if(g!==D){V("T017");return}}else if(D==="item"){if(!g)g=D,y=[];else if(g!==D){V("T017");return}}let b=M(m,S,D==="field");if(!b)return null;g==="field"?y[b.name]=b.value:y.push(b.value)}),y}function M(m,d,y=!0){const g=T(d),S=$t(d),D=S.filter(G=>G.kind===h.ElementNode&&$e.test(T(G))),b=S.filter(G=>G.kind===h.ElementNode&&!$e.test(T(G))),I=wt(d).map(ce),H=I.filter(G=>Ya.indexOf(G.name)>=0);if(I.length>H.length)return V("T011",g),null;const A=H.find(G=>G.name==="name");if(y){if(!(A!=null&&A.value))return V("T012",g),null}else if(A)return V("T018",g),null;const U=A==null?void 0:A.value,O=H.find(G=>G.name==="value");if(O&&O.value===void 0)return V("T019",g),null;if(U&&D.length>=1){if(b.length>0)return V("T020"),null;const G=D.map(de=>f(m,de));return{name:U,value:G.length===1?G[0]:G}}let L=O==null?void 0:O.value;return L===null?null:typeof L=="string"?{name:U,value:L}:{name:U,value:v(m,S)}}function E(m,d,y){var D;if(!Pe(d)){V("T009","loaders");return}const g=$t(y);if(g.length===0&&(d.loaders??(d.loaders=[])),(D=y.children)==null?void 0:D.some(b=>b.kind===h.AttributeListNode)){V("T014","attributes");return}g.forEach(b=>{if(b.kind===h.TextNode){V("T010","loader");return}const I=f(m,b);if(!I.uid){V("T013");return}if(I.vars){V("T014","vars");return}if(I.loaders){V("T014","loaders");return}if(I.uses){V("T014","uses");return}d.loaders??(d.loaders=[]),d.loaders.push(I)})}function _(m,d,y,g,S,D){const b=M(m,y);if(!b)return;D==null||D((b==null?void 0:b.name)??"");const I=b.name,H=b.value;if((b==null?void 0:b.value)!==void 0)S(I,Ft(g(I),H));else{const A=$t(y),U=v(m,A);let O=g(I);O=Ft(O,U),S(I,O)}}function se(m,d){if(!Pe(m)){V("T009","uses");return}const y=wt(d).map(ce),g=y.find(S=>S.name==="value");if(!(g!=null&&g.value)||y.length!==1){V("T015","uses");return}m.uses??(m.uses=g.value.split(",").map(S=>S.trim()))}function T(m){const d=m.children.find(g=>g.kind===h.TagNameNode).children;return n(d.at(-1))}function q(m){const d=m.children.find(D=>D.kind===h.TagNameNode).children,y=n(d.at(-1));if(d.length===1)return y;const g=n(d[0]);w.length===0&&V("T026");let S;for(let D=w.length-1;D>=0&&(S=w[D].get(g),S===void 0);--D);return S===void 0&&V("T027",g),S+"."+y}function ce(m){let d=m.children[0];const y=d.children.length===3;let g;y&&(g=n(d.children[0]));let S=n(d.children[d.children.length-1]);const D=S.split(".");D.length>2&&V("T007",m,d);let b,I;D.length===2?(I=D[0],b=D[1],b.trim()===""&&V("T007",m,b)):b=S;const H=n(m.children[2]),A=H.substring(1,H.length-1);return{namespace:g,startSegment:I,name:b,value:A,unsegmentedName:S}}function ge(m){for(let d of m){const y=d.children[d.children.length-1],g=ue(n(y));g!==null&&(y.text=g)}}function pe(m){const d=$t(m),y=T(m),S=$e.test(y)||y==="property",D=y!=="event"&&y!=="method",b=wt(m);ol(b),rl(b,n),ge(b),F(d),he(d,D);let I=!1,H=!1;for(let L=0;L<d.length;++L){const G=d[L];let de;if(G.kind==h.Script){H=!0;continue}if(G.kind===h.ElementNode){de=pe(G),d[L]=de;continue}let ve=n(G);G.kind===h.StringLiteral?ve=ve.slice(1,-1):G.kind===h.CData&&(I=!0),S?I?de=tl(ve):de=hr(ve):de={kind:h.TextNode,text:ve},d[L]=de}const A=d.filter(L=>L.kind===h.ElementNode&&!$e.test(T(L))),U=d.filter(L=>L.kind!==h.ElementNode||L.kind===h.ElementNode&&$e.test(T(L))),O=U.some(L=>L.kind===h.ElementNode&&$e.test(T(L)));if(H&&O){const L=mr(U);return A.push(L),xr(m,A)}return m}function re(m){for(let d=0;d<m.length;++d)if(m[d].kind===h.StringLiteral||m[d].kind===h.TextNode){const y=/[\f\n\r\t\v\u0020\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/g;m[d].text=n(m[d]).replace(y," ")}}function W(m){for(let d=0;d<m.length;++d)m[d].kind===h.CData&&(m[d].text=n(m[d]).slice(Qa,-Xa))}function F(m){for(let d of m)if(d.kind===h.StringLiteral||d.kind===h.TextNode){const y=ue(n(d));y!==null&&(d.text=y)}}function ue(m){let d="",y=0;for(let g=0;g<m.length;++g)if(m.charCodeAt(g)===x.ampersand)switch(m.charCodeAt(g+1)){case x.a:switch(m.charCodeAt(g+2)){case x.m:m.charCodeAt(g+3)===x.p&&m.charCodeAt(g+4)===x.semicolon&&(d=d+m.substring(y,g)+"&",g+=4,y=g+1);break;case x.p:m.charCodeAt(g+3)===x.o&&m.charCodeAt(g+4)===x.s&&m.charCodeAt(g+5)===x.semicolon&&(d=d+m.substring(y,g)+"'",g+=5,y=g+1);break}break;case x.g:m.charCodeAt(g+2)===x.t&&m.charCodeAt(g+3)===x.semicolon&&(d=d+m.substring(y,g)+">",g+=3,y=g+1);break;case x.l:m.charCodeAt(g+2)===x.t&&m.charCodeAt(g+3)===x.semicolon&&(d=d+m.substring(y,g)+"<",g+=3,y=g+1);break;case x.q:m.charCodeAt(g+2)===x.u&&m.charCodeAt(g+3)===x.o&&m.charCodeAt(g+4)===x.t&&m.charCodeAt(g+5)===x.semicolon&&(d=d+m.substring(y,g)+'"',g+=5,y=g+1);break;case x.n:m.charCodeAt(g+2)===x.b&&m.charCodeAt(g+3)===x.s&&m.charCodeAt(g+4)===x.p&&m.charCodeAt(g+5)===x.semicolon&&(d=d+m.substring(y,g)+" ",g+=5,y=g+1);break}return y===0?null:(d+=m.substring(y),d)}function he(m,d){d&&re(m),W(m);for(let y=m.length-1;y>0;--y){const g=m[y-1],S=m[y];g.kind===h.StringLiteral&&S.kind===h.CData?(m[y-1]={kind:h.CData,text:n(g).slice(1,-1)+n(S)},m.pop()):g.kind===h.CData&&S.kind===h.StringLiteral?(m[y-1]={kind:h.CData,text:n(g)+n(S).slice(1,-1)},m.pop()):g.kind===h.CData&&S.kind===h.TextNode?(m[y-1]={kind:h.CData,text:n(g)+n(S)},m.pop()):g.kind===h.CData&&S.kind===h.CData?(m[y-1]={kind:h.CData,text:n(g)+n(S)},m.pop()):g.kind===h.TextNode&&S.kind===h.TextNode?(n(g).endsWith(" ")&&n(S).startsWith(" ")&&(g.text=n(g).trimEnd()),m[y-1]={kind:h.TextNode,text:n(g)+n(S)},m.pop()):g.kind===h.TextNode&&S.kind===h.CData&&(m[y-1]={kind:h.CData,text:n(g)+n(S)},m.pop())}}}function tl(e){return{kind:h.ElementNode,children:[{kind:h.OpenNodeStart},{kind:h.TagNameNode,children:[{kind:h.Identifier,text:"TextNodeCData"}]},{kind:h.AttributeListNode,children:[{kind:h.AttributeNode,children:[{kind:h.AttributeKeyNode,children:[{kind:h.Identifier,text:"value"}]},{kind:h.Equal},{kind:h.Identifier,text:`"${e}"`}]}]},{kind:h.NodeClose}]}}function hr(e){return{kind:h.ElementNode,children:[{kind:h.OpenNodeStart},{kind:h.TagNameNode,children:[{kind:h.Identifier,text:"TextNode"}]},{kind:h.AttributeListNode,children:[{kind:h.AttributeNode,children:[{kind:h.AttributeKeyNode,children:[{kind:h.Identifier,text:"value"}]},{kind:h.Equal},{kind:h.Identifier,text:`"${e}"`}]}]},{kind:h.NodeClose}]}}function V(e,...t){let o=Ua[e]??"Unknown error";throw t&&t.forEach((n,s)=>o=i(o,`{${s}}`,n.toString())),new co(o,e);function i(n,s,l){do n=n.replace(s,l);while(n.includes(s));return n}}function Pe(e){return e.type}function Ft(e,t){return e?Array.isArray(e)?typeof e=="string"?[e,t]:(e.push(t),e):[e,t]:t}function mr(e){const t={kind:h.TagNameNode,children:[{kind:h.Identifier,text:"Fragment"}]};return{kind:h.ElementNode,start:e[0].start,pos:e[0].pos,end:e[e.length-1].end,children:[{kind:h.OpenNodeStart},t,{kind:h.NodeEnd},{kind:h.ContentListNode,children:e},{kind:h.CloseNodeStart},t,{kind:h.NodeEnd}]}}function wt(e){var t,o;return((o=(t=e.children)==null?void 0:t.find(i=>i.kind===h.AttributeListNode))==null?void 0:o.children)??[]}function $t(e){var t,o;return((o=(t=e.children)==null?void 0:t.find(i=>i.kind===h.ContentListNode))==null?void 0:o.children)??[]}function xr(e,t){var i;const o=(i=e.children)==null?void 0:i.findIndex(n=>n.kind===h.ContentListNode);return o===void 0||o===-1?e:{...e,children:[...e.children.slice(0,o),{...e.children[o],children:t},...e.children.slice(o)]}}function ol(e){var t;for(let o of e)if(((t=o.children)==null?void 0:t.length)===1){const i={kind:h.Equal},n={kind:h.StringLiteral,text:'"true"'};o.children.push(i,n)}}function rl(e,t){var o,i,n;for(let s of e){const l=(o=s.children)==null?void 0:o[2];((n=(i=s.children)==null?void 0:i[2])==null?void 0:n.kind)===h.Identifier&&(l.text='"'+t(l)+'"')}}function fr(e,t,o,i){let n=i.split(":");if(n.length>2)return V("T028",i,"Namespace cannot contain multiple ':' (colon).");let s=i;if(n.length===2){if(n[0]!=po)return V("T029",i,po);s=n[1]}if(s.includes("#"))return V("T028",s,"Namespace cannot contain character '#'.");switch(s){case po:s=o;break;case Za:s=Ja;break;case ja:s=Ka;break}const l=e[e.length-1];if(l.has(o))return V("T025",o);l.set(o,s),t.namespaces??(t.namespaces={}),t.namespaces[o]=s}function nl(e,t=0,o){const{parse:i,getText:n}=qa(e),{node:s,errors:l}=i();if(l.length>0){const c=[];for(let f=0;f<e.length;++f)e[f]===`
9
- `&&c.push(f);const u=il(l,c),w=gr(s,n);return{component:null,errors:u,erroneousCompoundComponentName:w}}try{return{component:el(s,n,t,o),errors:[]}}catch(c){const u=gr(s,n),w={message:c.message,col:0,line:0,code:tt.expEq,category:kt.Error,pos:0,end:0};return{component:null,erroneousCompoundComponentName:u,errors:[w]}}}function il(e,t){if(t.length===0){for(let o of e)o.line=1,o.col=o.pos+1;return e}for(let o of e){let i=0;for(;i<t.length;++i){const s=t[i];if(o.pos<s){o.line=i+1,o.col=o.pos-(t[i-1]??0)+1;break}}const n=t[t.length-1];o.pos>=n&&(o.line=t.length+1,o.col=o.pos-n+0)}return e}function gr(e,t){var u,w,f,p,C,v;const o=(u=e==null?void 0:e.children)==null?void 0:u[0],i=(f=(w=o==null?void 0:o.children)==null?void 0:w.find(M=>M.kind===h.TagNameNode))==null?void 0:f.children,n=i==null?void 0:i[i.length-1];if(n===void 0||t(n)!=="Component")return;const s=(C=(p=o.children)==null?void 0:p.find(M=>M.kind===h.AttributeListNode))==null?void 0:C.children,l=(v=s==null?void 0:s.find(M=>M.kind===h.AttributeNode&&t(M==null?void 0:M.children[0])==="name"))==null?void 0:v.children,c=l==null?void 0:l[l.length-1];if(c!==void 0&&c.kind===h.StringLiteral){const M=t(c);return M.substring(1,M.length-1)}}function ht(e,t){const o=nl(t).component;if(!o)throw new Error(`Failed to parse ${e} component definition during build.`);return o}const Wt="TableHeader",vr=k({status:"experimental",description:`The \`${Wt}\` component can be used within a \`Table\` to define a particular table column's visual properties and data bindings.`,props:{title:a("The title of the table header.")},defaultThemeVars:{[`padding-vertical-${Wt}`]:"$space-4",[`padding-horizontal-${Wt}`]:"$space-5"}});ht(Wt,`
1
+ (function(Ie,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react"),require("react/jsx-runtime"),require("@remix-run/react"),require("lodash-es"),require("@eslint-community/regexpp")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","@remix-run/react","lodash-es","@eslint-community/regexpp"],Y):(Ie=typeof globalThis<"u"?globalThis:Ie||self,Y(Ie["xmlui-metadata"]={},Ie.React,Ie["react/jsx-runtime"],Ie.react,Ie.lodashEs,Ie.regexpp))})(this,function(Ie,Y,re,Er,xo,fo){"use strict";const Ar={themeVars:`'{"width-Button": "var(--xmlui-width-Button)", "height-Button": "var(--xmlui-height-Button)", "padding-vertical-Button-xs": "var(--xmlui-padding-vertical-Button-xs)", "padding-horizontal-Button-xs": "var(--xmlui-padding-horizontal-Button-xs)", "padding-vertical-Button-sm": "var(--xmlui-padding-vertical-Button-sm)", "padding-horizontal-Button-sm": "var(--xmlui-padding-horizontal-Button-sm)", "padding-vertical-Button-md": "var(--xmlui-padding-vertical-Button-md)", "padding-horizontal-Button-md": "var(--xmlui-padding-horizontal-Button-md)", "padding-vertical-Button-lg": "var(--xmlui-padding-vertical-Button-lg)", "padding-horizontal-Button-lg": "var(--xmlui-padding-horizontal-Button-lg)", "font-family-Button-primary-solid": "var(--xmlui-font-family-Button-primary-solid)", "font-size-Button-primary-solid": "var(--xmlui-font-size-Button-primary-solid)", "font-weight-Button-primary-solid": "var(--xmlui-font-weight-Button-primary-solid)", "radius-Button-primary-solid": "var(--xmlui-radius-Button-primary-solid)", "thickness-border-Button-primary-solid": "var(--xmlui-thickness-border-Button-primary-solid)", "color-border-Button-primary-solid": "var(--xmlui-color-border-Button-primary-solid)", "style-border-Button-primary-solid": "var(--xmlui-style-border-Button-primary-solid)", "color-bg-Button-primary-solid": "var(--xmlui-color-bg-Button-primary-solid)", "color-text-Button-primary-solid": "var(--xmlui-color-text-Button-primary-solid)", "shadow-Button-primary-solid": "var(--xmlui-shadow-Button-primary-solid)", "thickness-outline-Button-primary-solid--focus": "var(--xmlui-thickness-outline-Button-primary-solid--focus)", "color-outline-Button-primary-solid--focus": "var(--xmlui-color-outline-Button-primary-solid--focus)", "style-outline-Button-primary-solid--focus": "var(--xmlui-style-outline-Button-primary-solid--focus)", "offset-outline-Button-primary-solid--focus": "var(--xmlui-offset-outline-Button-primary-solid--focus)", "color-border-Button-primary-solid--hover": "var(--xmlui-color-border-Button-primary-solid--hover)", "color-text-Button-primary-solid--hover": "var(--xmlui-color-text-Button-primary-solid--hover)", "color-bg-Button-primary-solid--hover": "var(--xmlui-color-bg-Button-primary-solid--hover)", "color-border-Button-primary-solid--active": "var(--xmlui-color-border-Button-primary-solid--active)", "color-text-Button-primary-solid--active": "var(--xmlui-color-text-Button-primary-solid--active)", "shadow-Button-primary-solid--active": "var(--xmlui-shadow-Button-primary-solid--active)", "color-bg-Button-primary-solid--active": "var(--xmlui-color-bg-Button-primary-solid--active)", "color-bg-Button--disabled": "var(--xmlui-color-bg-Button--disabled)", "color-text-Button--disabled": "var(--xmlui-color-text-Button--disabled)", "color-border-Button--disabled": "var(--xmlui-color-border-Button--disabled)", "font-family-Button-secondary-solid": "var(--xmlui-font-family-Button-secondary-solid)", "font-size-Button-secondary-solid": "var(--xmlui-font-size-Button-secondary-solid)", "font-weight-Button-secondary-solid": "var(--xmlui-font-weight-Button-secondary-solid)", "radius-Button-secondary-solid": "var(--xmlui-radius-Button-secondary-solid)", "thickness-border-Button-secondary-solid": "var(--xmlui-thickness-border-Button-secondary-solid)", "color-border-Button-secondary-solid": "var(--xmlui-color-border-Button-secondary-solid)", "style-border-Button-secondary-solid": "var(--xmlui-style-border-Button-secondary-solid)", "color-bg-Button-secondary-solid": "var(--xmlui-color-bg-Button-secondary-solid)", "color-text-Button-secondary-solid": "var(--xmlui-color-text-Button-secondary-solid)", "shadow-Button-secondary-solid": "var(--xmlui-shadow-Button-secondary-solid)", "thickness-outline-Button-secondary-solid--focus": "var(--xmlui-thickness-outline-Button-secondary-solid--focus)", "color-outline-Button-secondary-solid--focus": "var(--xmlui-color-outline-Button-secondary-solid--focus)", "style-outline-Button-secondary-solid--focus": "var(--xmlui-style-outline-Button-secondary-solid--focus)", "offset-outline-Button-secondary-solid--focus": "var(--xmlui-offset-outline-Button-secondary-solid--focus)", "color-border-Button-secondary-solid--hover": "var(--xmlui-color-border-Button-secondary-solid--hover)", "color-text-Button-secondary-solid--hover": "var(--xmlui-color-text-Button-secondary-solid--hover)", "color-bg-Button-secondary-solid--hover": "var(--xmlui-color-bg-Button-secondary-solid--hover)", "color-border-Button-secondary-solid--active": "var(--xmlui-color-border-Button-secondary-solid--active)", "color-text-Button-secondary-solid--active": "var(--xmlui-color-text-Button-secondary-solid--active)", "shadow-Button-secondary-solid--active": "var(--xmlui-shadow-Button-secondary-solid--active)", "color-bg-Button-secondary-solid--active": "var(--xmlui-color-bg-Button-secondary-solid--active)", "font-family-Button-attention-solid": "var(--xmlui-font-family-Button-attention-solid)", "font-size-Button-attention-solid": "var(--xmlui-font-size-Button-attention-solid)", "font-weight-Button-attention-solid": "var(--xmlui-font-weight-Button-attention-solid)", "radius-Button-attention-solid": "var(--xmlui-radius-Button-attention-solid)", "thickness-border-Button-attention-solid": "var(--xmlui-thickness-border-Button-attention-solid)", "color-border-Button-attention-solid": "var(--xmlui-color-border-Button-attention-solid)", "style-border-Button-attention-solid": "var(--xmlui-style-border-Button-attention-solid)", "color-bg-Button-attention-solid": "var(--xmlui-color-bg-Button-attention-solid)", "color-text-Button-attention-solid": "var(--xmlui-color-text-Button-attention-solid)", "shadow-Button-attention-solid": "var(--xmlui-shadow-Button-attention-solid)", "thickness-outline-Button-attention-solid--focus": "var(--xmlui-thickness-outline-Button-attention-solid--focus)", "color-outline-Button-attention-solid--focus": "var(--xmlui-color-outline-Button-attention-solid--focus)", "style-outline-Button-attention-solid--focus": "var(--xmlui-style-outline-Button-attention-solid--focus)", "offset-outline-Button-attention-solid--focus": "var(--xmlui-offset-outline-Button-attention-solid--focus)", "color-border-Button-attention-solid--hover": "var(--xmlui-color-border-Button-attention-solid--hover)", "color-text-Button-attention-solid--hover": "var(--xmlui-color-text-Button-attention-solid--hover)", "color-bg-Button-attention-solid--hover": "var(--xmlui-color-bg-Button-attention-solid--hover)", "color-border-Button-attention-solid--active": "var(--xmlui-color-border-Button-attention-solid--active)", "color-text-Button-attention-solid--active": "var(--xmlui-color-text-Button-attention-solid--active)", "shadow-Button-attention-solid--active": "var(--xmlui-shadow-Button-attention-solid--active)", "color-bg-Button-attention-solid--active": "var(--xmlui-color-bg-Button-attention-solid--active)", "font-family-Button-primary-outlined": "var(--xmlui-font-family-Button-primary-outlined)", "font-size-Button-primary-outlined": "var(--xmlui-font-size-Button-primary-outlined)", "font-weight-Button-primary-outlined": "var(--xmlui-font-weight-Button-primary-outlined)", "radius-Button-primary-outlined": "var(--xmlui-radius-Button-primary-outlined)", "thickness-border-Button-primary-outlined": "var(--xmlui-thickness-border-Button-primary-outlined)", "color-border-Button-primary-outlined": "var(--xmlui-color-border-Button-primary-outlined)", "style-border-Button-primary-outlined": "var(--xmlui-style-border-Button-primary-outlined)", "color-text-Button-primary-outlined": "var(--xmlui-color-text-Button-primary-outlined)", "shadow-Button-primary-outlined": "var(--xmlui-shadow-Button-primary-outlined)", "thickness-outline-Button-primary-outlined--focus": "var(--xmlui-thickness-outline-Button-primary-outlined--focus)", "color-outline-Button-primary-outlined--focus": "var(--xmlui-color-outline-Button-primary-outlined--focus)", "style-outline-Button-primary-outlined--focus": "var(--xmlui-style-outline-Button-primary-outlined--focus)", "offset-outline-Button-primary-outlined--focus": "var(--xmlui-offset-outline-Button-primary-outlined--focus)", "color-border-Button-primary-outlined--hover": "var(--xmlui-color-border-Button-primary-outlined--hover)", "color-bg-Button-primary-outlined--hover": "var(--xmlui-color-bg-Button-primary-outlined--hover)", "color-text-Button-primary-outlined--hover": "var(--xmlui-color-text-Button-primary-outlined--hover)", "color-border-Button-primary-outlined--active": "var(--xmlui-color-border-Button-primary-outlined--active)", "color-bg-Button-primary-outlined--active": "var(--xmlui-color-bg-Button-primary-outlined--active)", "color-text-Button-primary-outlined--active": "var(--xmlui-color-text-Button-primary-outlined--active)", "font-family-Button-secondary-outlined": "var(--xmlui-font-family-Button-secondary-outlined)", "font-size-Button-secondary-outlined": "var(--xmlui-font-size-Button-secondary-outlined)", "font-weight-Button-secondary-outlined": "var(--xmlui-font-weight-Button-secondary-outlined)", "radius-Button-secondary-outlined": "var(--xmlui-radius-Button-secondary-outlined)", "thickness-border-Button-secondary-outlined": "var(--xmlui-thickness-border-Button-secondary-outlined)", "color-border-Button-secondary-outlined": "var(--xmlui-color-border-Button-secondary-outlined)", "style-border-Button-secondary-outlined": "var(--xmlui-style-border-Button-secondary-outlined)", "color-text-Button-secondary-outlined": "var(--xmlui-color-text-Button-secondary-outlined)", "shadow-Button-secondary-outlined": "var(--xmlui-shadow-Button-secondary-outlined)", "thickness-outline-Button-secondary-outlined--focus": "var(--xmlui-thickness-outline-Button-secondary-outlined--focus)", "color-outline-Button-secondary-outlined--focus": "var(--xmlui-color-outline-Button-secondary-outlined--focus)", "style-outline-Button-secondary-outlined--focus": "var(--xmlui-style-outline-Button-secondary-outlined--focus)", "offset-outline-Button-secondary-outlined--focus": "var(--xmlui-offset-outline-Button-secondary-outlined--focus)", "color-border-Button-secondary-outlined--hover": "var(--xmlui-color-border-Button-secondary-outlined--hover)", "color-bg-Button-secondary-outlined--hover": "var(--xmlui-color-bg-Button-secondary-outlined--hover)", "color-text-Button-secondary-outlined--hover": "var(--xmlui-color-text-Button-secondary-outlined--hover)", "color-border-Button-secondary-outlined--active": "var(--xmlui-color-border-Button-secondary-outlined--active)", "color-bg-Button-secondary-outlined--active": "var(--xmlui-color-bg-Button-secondary-outlined--active)", "color-text-Button-secondary-outlined--active": "var(--xmlui-color-text-Button-secondary-outlined--active)", "font-family-Button-attention-outlined": "var(--xmlui-font-family-Button-attention-outlined)", "font-size-Button-attention-outlined": "var(--xmlui-font-size-Button-attention-outlined)", "font-weight-Button-attention-outlined": "var(--xmlui-font-weight-Button-attention-outlined)", "radius-Button-attention-outlined": "var(--xmlui-radius-Button-attention-outlined)", "thickness-border-Button-attention-outlined": "var(--xmlui-thickness-border-Button-attention-outlined)", "color-border-Button-attention-outlined": "var(--xmlui-color-border-Button-attention-outlined)", "style-border-Button-attention-outlined": "var(--xmlui-style-border-Button-attention-outlined)", "color-text-Button-attention-outlined": "var(--xmlui-color-text-Button-attention-outlined)", "shadow-Button-attention-outlined": "var(--xmlui-shadow-Button-attention-outlined)", "thickness-outline-Button-attention-outlined--focus": "var(--xmlui-thickness-outline-Button-attention-outlined--focus)", "color-outline-Button-attention-outlined--focus": "var(--xmlui-color-outline-Button-attention-outlined--focus)", "style-outline-Button-attention-outlined--focus": "var(--xmlui-style-outline-Button-attention-outlined--focus)", "offset-outline-Button-attention-outlined--focus": "var(--xmlui-offset-outline-Button-attention-outlined--focus)", "color-border-Button-attention-outlined--hover": "var(--xmlui-color-border-Button-attention-outlined--hover)", "color-bg-Button-attention-outlined--hover": "var(--xmlui-color-bg-Button-attention-outlined--hover)", "color-text-Button-attention-outlined--hover": "var(--xmlui-color-text-Button-attention-outlined--hover)", "color-border-Button-attention-outlined--active": "var(--xmlui-color-border-Button-attention-outlined--active)", "color-bg-Button-attention-outlined--active": "var(--xmlui-color-bg-Button-attention-outlined--active)", "color-text-Button-attention-outlined--active": "var(--xmlui-color-text-Button-attention-outlined--active)", "font-family-Button-primary-ghost": "var(--xmlui-font-family-Button-primary-ghost)", "font-size-Button-primary-ghost": "var(--xmlui-font-size-Button-primary-ghost)", "font-weight-Button-primary-ghost": "var(--xmlui-font-weight-Button-primary-ghost)", "radius-Button-primary-ghost": "var(--xmlui-radius-Button-primary-ghost)", "thickness-border-Button-primary-ghost": "var(--xmlui-thickness-border-Button-primary-ghost)", "color-text-Button-primary-ghost": "var(--xmlui-color-text-Button-primary-ghost)", "thickness-outline-Button-primary-ghost--focus": "var(--xmlui-thickness-outline-Button-primary-ghost--focus)", "color-outline-Button-primary-ghost--focus": "var(--xmlui-color-outline-Button-primary-ghost--focus)", "style-outline-Button-primary-ghost--focus": "var(--xmlui-style-outline-Button-primary-ghost--focus)", "offset-outline-Button-primary-ghost--focus": "var(--xmlui-offset-outline-Button-primary-ghost--focus)", "color-bg-Button-primary-ghost--hover": "var(--xmlui-color-bg-Button-primary-ghost--hover)", "color-text-Button-primary-ghost--hover": "var(--xmlui-color-text-Button-primary-ghost--hover)", "color-bg-Button-primary-ghost--active": "var(--xmlui-color-bg-Button-primary-ghost--active)", "color-text-Button-primary-ghost--active": "var(--xmlui-color-text-Button-primary-ghost--active)", "font-family-Button-secondary-ghost": "var(--xmlui-font-family-Button-secondary-ghost)", "font-size-Button-secondary-ghost": "var(--xmlui-font-size-Button-secondary-ghost)", "font-weight-Button-secondary-ghost": "var(--xmlui-font-weight-Button-secondary-ghost)", "radius-Button-secondary-ghost": "var(--xmlui-radius-Button-secondary-ghost)", "thickness-border-Button-secondary-ghost": "var(--xmlui-thickness-border-Button-secondary-ghost)", "color-text-Button-secondary-ghost": "var(--xmlui-color-text-Button-secondary-ghost)", "thickness-outline-Button-secondary-ghost--focus": "var(--xmlui-thickness-outline-Button-secondary-ghost--focus)", "color-outline-Button-secondary-ghost--focus": "var(--xmlui-color-outline-Button-secondary-ghost--focus)", "style-outline-Button-secondary-ghost--focus": "var(--xmlui-style-outline-Button-secondary-ghost--focus)", "offset-outline-Button-secondary-ghost--focus": "var(--xmlui-offset-outline-Button-secondary-ghost--focus)", "color-bg-Button-secondary-ghost--hover": "var(--xmlui-color-bg-Button-secondary-ghost--hover)", "color-text-Button-secondary-ghost--hover": "var(--xmlui-color-text-Button-secondary-ghost--hover)", "color-bg-Button-secondary-ghost--active": "var(--xmlui-color-bg-Button-secondary-ghost--active)", "color-text-Button-secondary-ghost--active": "var(--xmlui-color-text-Button-secondary-ghost--active)", "font-family-Button-attention-ghost": "var(--xmlui-font-family-Button-attention-ghost)", "font-size-Button-attention-ghost": "var(--xmlui-font-size-Button-attention-ghost)", "font-weight-Button-attention-ghost": "var(--xmlui-font-weight-Button-attention-ghost)", "radius-Button-attention-ghost": "var(--xmlui-radius-Button-attention-ghost)", "thickness-border-Button-attention-ghost": "var(--xmlui-thickness-border-Button-attention-ghost)", "color-text-Button-attention-ghost": "var(--xmlui-color-text-Button-attention-ghost)", "thickness-outline-Button-attention-ghost--focus": "var(--xmlui-thickness-outline-Button-attention-ghost--focus)", "color-outline-Button-attention-ghost--focus": "var(--xmlui-color-outline-Button-attention-ghost--focus)", "style-outline-Button-attention-ghost--focus": "var(--xmlui-style-outline-Button-attention-ghost--focus)", "offset-outline-Button-attention-ghost--focus": "var(--xmlui-offset-outline-Button-attention-ghost--focus)", "color-bg-Button-attention-ghost--hover": "var(--xmlui-color-bg-Button-attention-ghost--hover)", "color-text-Button-attention-ghost--hover": "var(--xmlui-color-text-Button-attention-ghost--hover)", "color-bg-Button-attention-ghost--active": "var(--xmlui-color-bg-Button-attention-ghost--active)", "color-text-Button-attention-ghost--active": "var(--xmlui-color-text-Button-attention-ghost--active)"}'`,button:"_button_eqkk3_13",alignStart:"_alignStart_eqkk3_29",alignEnd:"_alignEnd_eqkk3_32",buttonHorizontal:"_buttonHorizontal_eqkk3_38",xs:"_xs_eqkk3_41",sm:"_sm_eqkk3_44",md:"_md_eqkk3_47",lg:"_lg_eqkk3_50",buttonVertical:"_buttonVertical_eqkk3_53",solidPrimary:"_solidPrimary_eqkk3_71",solidSecondary:"_solidSecondary_eqkk3_106",solidAttention:"_solidAttention_eqkk3_141",outlinedPrimary:"_outlinedPrimary_eqkk3_176",outlinedSecondary:"_outlinedSecondary_eqkk3_209",outlinedAttention:"_outlinedAttention_eqkk3_242",ghostPrimary:"_ghostPrimary_eqkk3_275",ghostSecondary:"_ghostSecondary_eqkk3_304",ghostAttention:"_ghostAttention_eqkk3_333"};function y({description:e,shortDescription:t,specializedFrom:o,status:i,props:r,events:s,contextVars:a,apis:c,nonVisual:u,opaque:w,themeVars:g,defaultThemeVars:d,toneSpecificThemeVars:C,allowArbitraryProps:b,docFolder:D}){return{description:e,shortDescription:t,specializedFrom:o,status:i,props:r,events:s,contextVars:a,apis:c,nonVisual:u,opaque:w,themeVars:g,defaultThemeVars:d,toneSpecificThemeVars:C,allowArbitraryProps:b,docFolder:D}}function l(e,t,o,i,r){return{description:e,availableValues:t,valueType:o,defaultValue:i,isValid:r}}const Nr=[{value:"_self",description:"The link will open in the same frame as it was clicked."},{value:"_blank",description:"The link will open in a new window or tab."},{value:"_parent",description:"The link will open in the parent frame. If no parent, behaves as _self."},{value:"_top",description:"The topmost browsing context. The link will open in the full body of the window. If no ancestors, behaves as _self."}],Vt=[{value:"xs",description:"Extra small button"},{value:"sm",description:"Small button"},{value:"md",description:"Medium button"},{value:"lg",description:"Large button"}],zr=[...["attention","primary","secondary"]],go=[{value:"attention",description:"Attention state theme color"},{value:"primary",description:"Primary theme color"},{value:"secondary",description:"Secondary theme color"}],Lr=[{value:"button",description:"Regular behavior that only executes logic if explicitly determined."},{value:"submit",description:"The button submits the form data to the server. This is the default for buttons in a Form or NativeForm component."},{value:"reset",description:"Resets all the controls to their initial values. Using it is ill advised for UX reasons."}],Cr="button",Pr=[...["solid","outlined","ghost"]],vo=[{value:"solid",description:"A button with a border and a filled background."},{value:"outlined",description:"The button is displayed with a border and a transparent background."},{value:"ghost",description:"A button with no border and fill. Only the label is visible; the background is colored when hovered or clicked."}],Or=[{value:"center",description:"Place the content in the middle"},{value:"start",description:"Justify the content to the left (to the right if in right-to-left)"},{value:"end",description:"Justify the content to the right (to the left if in right-to-left)"}],Gt=[{value:"horizontal",description:"The component will fill the available space horizontally"},{value:"vertical",description:"The component will fill the available space vertically"}],bo=[...["start","end"]],yo=[{value:"start",description:"The icon will appear at the start (left side when the left-to-right direction is set)"},{value:"end",description:"The icon will appear at the end (right side when the left-to-right direction is set)"}],Dr=[{value:"primary",description:"Primary theme color, no default icon"},{value:"secondary",description:"Secondary theme color, no default icon"},{value:"success",description:'Success theme color, "success" icon'},{value:"danger",description:'Warning theme color, "warning" icon'},{value:"warning",description:'Danger theme color, "danger" icon'},{value:"info",description:'Info theme color, "info" icon'},{value:"light",description:"Light theme color, no default icon"},{value:"dark",description:"Dark theme color, no default icon"}],Mr=[{value:"start",description:"The left side of the window (left-to-right) or the right side of the window (right-to-left)"},{value:"end",description:"The right side of the window (left-to-right) or the left side of the window (right-to-left)"},{value:"top",description:"The top of the window"},{value:"bottom",description:"The bottom of the window"}],To=[{value:"start",description:"The left side of the input (left-to-right) or the right side of the input (right-to-left)"},{value:"end",description:"The right side of the input (left-to-right) or the left side of the input (right-to-left)"},{value:"top",description:"The top of the input"},{value:"bottom",description:"The bottom of the input"}],Hr=[...["start","end"]],Fr=[{value:"valid",description:"Visual indicator for an input that is accepted"},{value:"warning",description:"Visual indicator for an input that produced a warning"},{value:"error",description:"Visual indicator for an input that produced an error"}],Wr=["top","bottom"],ko={abbr:"abbr",cite:"cite",code:"code",codefence:"pre",deleted:"del",inserted:"ins",keyboard:"kbd",marked:"mark",sample:"samp",sub:"sub",sup:"sup",var:"var",mono:"pre",strong:"strong",em:"em",title:"span",subtitle:"span",small:"span",caption:"span",placeholder:"span",paragraph:"p",subheading:"h6",tableheading:"h6",secondary:"span"},Rr=[{value:"abbr",description:"Represents an abbreviation or acronym"},{value:"caption",description:"Represents the caption (or title) of a table"},{value:"cite",description:"Is used to mark up the title of a cited work"},{value:"code",description:"Represents a line of code"},{value:"codefence",description:"Handles the display of code blocks if combined with a `code` variant"},{value:"deleted",description:"Represents text that has been deleted"},{value:"em",description:"Marks text to stress emphasis"},{value:"inserted",description:"Represents a range of text that has been added to a document"},{value:"keyboard",description:"Represents a span of text denoting textual user input from a keyboard or voice input"},{value:"marked",description:"Represents text which is marked or highlighted for reference or notation"},{value:"mono",description:"Text using a mono style font family"},{value:"paragraph",description:"Represents a paragraph"},{value:"placeholder",description:"Text that is mostly used as the placeholder style in input controls"},{value:"sample",description:"Represents sample (or quoted) output from a computer program"},{value:"secondary",description:"Represents a bit dimmed secondary text"},{value:"small",description:"Represents side-comments and small print"},{value:"sub",description:"Specifies inline text as subscript"},{value:"strong",description:"Contents have strong importance"},{value:"subheading",description:"Indicates that the text is the subtitle in a heading"},{value:"subtitle",description:"Indicates that the text is the subtitle of some other content"},{value:"sup",description:"Specifies inline text as superscript"},{value:"tableheading",description:"Indicates that the text is a table heading"},{value:"title",description:"Indicates that the text is the title of some other content"},{value:"var",description:"Represents the name of a variable in a mathematical expression"}],wo={themeVars:`'{"size-Icon": "var(--xmlui-size-Icon)", "thickness-stroke-Icon": "var(--xmlui-thickness-stroke-Icon)"}'`,base:"_base_13qtg_13"},qr=Y.createContext(null);function $o(){return Y.useContext(qr)}const Ur={accentheight:"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baseprofile:"baseProfile",baselineshift:"baselineShift",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight",clip:"clip",clippath:"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule",colorinterpolation:"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters",colorprofile:"colorProfile",colorrendering:"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity",fillrule:"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodcolor:"floodColor",floodopacity:"floodOpacity",focusable:"focusable",fontfamily:"fontFamily",fontsize:"fontSize",fontsizeadjust:"fontSizeAdjust",fontstretch:"fontStretch",fontstyle:"fontStyle",fontvariant:"fontVariant",fontweight:"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX",horizoriginx:"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering",in:"in",in2:"in2",intercept:"intercept",k:"k",k1:"k1",k2:"k2",k3:"k3",k4:"k4",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing",lightingcolor:"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd",markerheight:"markerHeight",markermid:"markerMid",markerstart:"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition",overlinethickness:"overlineThickness",paintorder:"paintOrder",panose1:"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",restart:"restart",result:"result",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",seed:"seed",shaperendering:"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor",stopopacity:"stopOpacity",strikethroughposition:"strikethroughPosition",strikethroughthickness:"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray",strokedashoffset:"strokeDashoffset",strokelinecap:"strokeLinecap",strokelinejoin:"strokeLinejoin",strokemiterlimit:"strokeMiterlimit",strokeopacity:"strokeOpacity",strokewidth:"strokeWidth",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor",textdecoration:"textDecoration",textlength:"textLength",textrendering:"textRendering",to:"to",transform:"transform",u1:"u1",u2:"u2",underlineposition:"underlinePosition",underlinethickness:"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi",unicoderange:"unicodeRange",unitsperem:"unitsPerEm",valphabetic:"vAlphabetic",vhanging:"vHanging",videographic:"vIdeographic",vmathematical:"vMathematical",values:"values",vectoreffect:"vectorEffect",version:"version",vertadvy:"vertAdvY",vertoriginx:"vertOriginX",vertoriginy:"vertOriginY",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",widths:"widths",wordspacing:"wordSpacing",writingmode:"writingMode",x:"x",x1:"x1",x2:"x2",xchannelselector:"xChannelSelector",xheight:"xHeight",xlinkactuate:"xlinkActuate",xlinkarcrole:"xlinkArcrole",xlinkhref:"xlinkHref",xlinkrole:"xlinkRole",xlinkshow:"xlinkShow",xlinktitle:"xlinkTitle",xlinktype:"xlinkType",xmlns:"xmlns",xmlnsxlink:"xmlnsXlink",xmlbase:"xmlBase",xmllang:"xmlLang",xmlspace:"xmlSpace",y:"y",y1:"y1",y2:"y2",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Vr=/[-:]/g;function Gr(e){const{ensureCustomSvgIcon:t,customSvgs:o}=$o();Y.useLayoutEffect(()=>{e&&t(e)},[t,e]);const i=e?o[e]:null,r=Y.useCallback(({style:s,className:a})=>{if(!i)return null;const{attributes:c,name:u}=i,w={};return Object.entries(c).forEach(([g,d])=>{let C=g;/^(data-|aria-)/.test(g)?C=g:C=g.replace(Vr,"").toLowerCase(),w[Ur[C]||g]=d}),re.jsx("svg",{...w,style:s,className:a,children:re.jsx("use",{href:`#${u}`})})},[i]);return e?r:null}function je(...e){const t=e.filter(Boolean);let o=0,i,r="",s="";for(;o<t.length;)i=t[o++],i&&(r=a(i),r&&(s&&(s+=" "),s+=r));return s;function a(c){let u,w,g="";if(typeof c=="string"||typeof c=="number")g+=c;else if(typeof c=="object")if(Array.isArray(c))for(u=0;u<c.length;u++)c[u]&&(w=a(c[u]),w&&(g&&(g+=" "),g+=w));else for(u in c)c[u]&&(g&&(g+=" "),g+=u);return g}}const Yr=Y.createContext(void 0);Y.createContext(void 0);function _o(){return Y.useContext(Yr)}function Xr(e){const{getResourceUrl:t}=_o();return t(e)}const Yt="xmlui";function Io(e){if(typeof e=="string")return`var(--${Yt}-${e.substring(1)})`;if(e.defaultValue&&e.defaultValue.length>0){let t="";for(const o of e.defaultValue)t+=typeof o=="string"?o:Io(o);return`var(--${Yt}-${e.id.substring(1)}, ${t})`}else return`var(--${Yt}-${e.id.substring(1)})`}const Qr=Y.forwardRef(function({name:t,fallback:o,style:i,className:r,...s},a){var b;const c=Kr(t,o),u=typeof(s==null?void 0:s.size)=="string"?jr(s.size):s==null?void 0:s.size,w=u||s.width,g=u||s.height,d={className:je(wo.base,r),...s,size:u,width:w,height:g,style:{...i,"--icon-width":w,"--icon-height":g}},C=Jr(t);return C?re.jsx(Zr,{...d,url:C,name:t}):((b=c==null?void 0:c.renderer)==null?void 0:b.call(c,d))||null});function Zr(e){var g;const{url:t,width:o,height:i,name:r,style:s,className:a}=e,c=Xr(t),u=(g=c==null?void 0:c.toLowerCase())==null?void 0:g.endsWith(".svg"),w=Gr(c);if(c&&u){const d=w==null?void 0:w({style:s,className:a});return d||re.jsx("span",{style:s,className:a})}return re.jsx("img",{src:c,style:{width:o,height:i,...s},alt:r})}function Jr(e){const{getResourceUrl:t}=_o();return e&&t(`resource:icon.${e}`)}function jr(e){return/^\$[a-zA-Z0-9_$-]+$/g.test(e)?Io(e):{xs:"0.75em",sm:"1em",md:"1.5rem",lg:"2em"}[e]||e}function Kr(e,t){const o=$o();if(e&&typeof e=="string"){const i=":",r=e.split(i);if(r.length>1){const s=o.lookupIconRenderer(`${r[0].toLowerCase()}${i}${r[1]}`);if(s)return s}if(r.length===1){const s=o.lookupIconRenderer(r[0]);if(s)return s}}if(t&&typeof t=="string"){const i=o.lookupIconRenderer(t.toLowerCase());if(i)return i}return null}const Bo={keyPrefix:"xmlui",themeVars:'"[]"'};function z(e){if(!e||typeof e!="string")return e;let t=e.replace(/(^['"])|(['"]$)/g,"");try{return JSON.parse(t)}catch{try{return JSON.parse(e.replace("(","{").replace(")","}").replace(/: ?([^,}]+)([,}])/g,': "$1"$2').replace(/([\s{,])(?!")([^:\s]+)+:/g,'$1"$2":'))}catch{return t}}}z(Bo.keyPrefix),z(Bo.themeVars);function Ke(e){return{description:e??"This property is for internal use only.",isInternal:!0}}function qe(e){return{description:`This event is triggered when the ${e} is clicked.`}}function Be(e){return{description:`This event is triggered when the ${e} has received the focus.`}}function Se(e){return{description:`This event is triggered when the ${e} has lost the focus.`}}function be(e){return{description:`This event is triggered when value of ${e} has changed.`}}function So(){return{description:"The `true` value of this property signals that the component is in an _intedeterminate state_."}}function xe(){return{description:"This property sets the label of the component."}}function He(e){return{description:"Places the label at the given position of the component.",availableValues:To,defaultValue:e}}function Ue(e){return{description:`This property sets the width of the \`${e}\`.`}}function Ve(e){return{description:`This boolean value indicates if the \`${e}\` labels can be split into multiple lines if it would overflow the available label width.`,valueType:"boolean",defaultValue:!1}}function ye(){return{description:"If this property is set to `true`, the component gets the focus automatically when displayed.",valueType:"boolean",defaultValue:!1}}function Ee(e){return{description:"This property sets the component's initial value.",defaultValue:e}}function Ce(){return{description:"Set this property to `true` to disallow changing the component value."}}function ge(){return{description:"This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).",valueType:"boolean",defaultValue:!0}}function Eo(){return{description:"The `true` value of the property indicates if the user can select multiple items.",valueType:"boolean",defaultValue:!1}}function Pe(){return{description:"This property allows you to set the validation status of the input component.",availableValues:Fr}}function Ao(){return{description:"You can query this read-only API property to query the component's current value (`true`: checked, `false`: unchecked)."}}function Ge(){return{description:"You can use this method to set the component's current value programmatically (`true`: checked, `false`: unchecked)."}}function te(e){return{description:e,valueType:"ComponentDef"}}function et(){return{description:"A placeholder text that is visible in the input field when its empty."}}function kt(){return{description:"This property sets the maximum length of the input it accepts."}}function Oe(){return{description:"Set this property to `true` to indicate it must have a value before submitting the containing form."}}function No(){return{description:"This property sets a text to appear at the start (left side when the left-to-right direction is set) of the input."}}function zo(){return{description:"This property sets an icon to appear at the start (left side when the left-to-right direction is set) of the input."}}function Lo(){return{description:"This property sets a text to appear on the end (right side when the left-to-right direction is set) of the input."}}function Co(){return{description:"This property sets an icon to appear on the end (right side when the left-to-right direction is set) of the input."}}function en(e){return{description:`This property indicates if the ${e} is expanded (\`true\`) or collapsed (\`false\`).`}}function tn(e){return{description:`This method expands the ${e}.`}}function on(e){return{description:`This method collapses the ${e}.`}}function Ye(e){return{description:`This method sets the focus on the ${e}.`}}function Po(){return{description:"You can query the component's value. If no value is set, it will retrieve `undefined`."}}function rn(e){return{description:`This event is triggered when the ${e} has been displayed. The event handler has a single boolean argument set to \`true\`, indicating that the user opened the component.`}}function nn(e){return{description:`This event is triggered when the ${e} has been closed. The event handler has a single boolean argument set to \`true\`, indicating that the user closed the component.`}}function Oo(e){return{description:`This property allows you to define a custom trigger instead of the default one provided by \`${e}\`.`,valueType:"ComponentDef"}}function an(e){return{description:"This property sets the main axis along which the nested components are rendered.",availableValues:Gt,valueType:"string",defaultValue:e}}const k="Button",ln=y({description:"Button is an interactive element that triggers an action when clicked.",status:"stable",props:{autoFocus:l("Indicates if the button should receive focus when the page loads.",null,"boolean",!1),variant:l("The button variant determines the level of emphasis the button should possess.",vo,"string","solid"),themeColor:l("Sets the button color scheme defined in the application theme.",go,"string","primary"),size:l("The size of the button.",Vt,"string","sm"),label:l(`This property is an optional string to set a label for the ${k}. If no label is specified and an icon is set, the ${k} will modify its styling to look like a small icon button. When the ${k} has nested children, it will display them and ignore the value of the \`label\` prop.`),type:l(`This optional string describes how the ${k} appears in an HTML context. You rarely need to set this property explicitly.`,Lr,"string",Cr),enabled:l("The value of this property indicates whether the button accepts actions (`true`) or does not react to them (`false`).",null,null,!0),icon:l(`This string value denotes an icon name. The framework will render an icon if XMLUI recognizes the icon by its name. If no label is specified and an icon is set, the ${k} displays only that icon.`),iconPosition:l(`This optional string determines the location of the icon in the ${k}.`,yo,"string","start"),contentPosition:l(`This optional value determines how the label and icon (or nested children) should be placedinside the ${k} component.`,Or,"string","center")},events:{click:qe(k),gotFocus:Be(k),lostFocus:Se(k)},themeVars:z(Ar.themeVars),defaultThemeVars:{[`width-${k}`]:"fit-content",[`height-${k}`]:"fit-content",[`radius-${k}`]:"$radius",[`font-size-${k}`]:"$font-size-small",[`font-weight-${k}`]:"$font-weight-medium",[`color-bg-${k}-primary`]:"$color-primary-500",[`color-bg-${k}-attention`]:"$color-bg-attention",[`color-border-${k}-attention`]:"$color-attention",[`color-bg-${k}--disabled`]:"$color-bg--disabled",[`color-border-${k}--disabled`]:"$color-border--disabled",[`style-border-${k}`]:"solid",[`color-text-${k}--disabled`]:"$color-text--disabled",[`color-outline-${k}--focus`]:"$color-outline--focus",[`thickness-border-${k}`]:"1px",[`thickness-outline-${k}--focus`]:"$thickness-outline--focus",[`style-outline-${k}--focus`]:"$style-outline--focus",[`offset-outline-${k}--focus`]:"$offset-outline--focus",[`padding-horizontal-${k}-xs`]:"$space-1",[`padding-vertical-${k}-xs`]:"$space-0_5",[`padding-horizontal-${k}-sm`]:"$space-4",[`padding-vertical-${k}-sm`]:"$space-2",[`padding-horizontal-${k}-md`]:"$space-4",[`padding-vertical-${k}-md`]:"$space-3",[`padding-horizontal-${k}-lg`]:"$space-5",[`padding-vertical-${k}-lg`]:"$space-4",light:{[`color-text-${k}`]:"$color-surface-950",[`color-text-${k}-solid`]:"$color-surface-50",[`color-border-${k}-primary`]:"$color-primary-500",[`color-bg-${k}-primary--hover`]:"$color-primary-400",[`color-bg-${k}-primary--active`]:"$color-primary-500",[`color-bg-${k}-primary-outlined--hover`]:"$color-primary-50",[`color-bg-${k}-primary-outlined--active`]:"$color-primary-100",[`color-border-${k}-primary-outlined`]:"$color-primary-600",[`color-border-${k}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${k}-primary-outlined`]:"$color-primary-900",[`color-text-${k}-primary-outlined--hover`]:"$color-primary-950",[`color-text-${k}-primary-outlined--active`]:"$color-primary-900",[`color-bg-${k}-primary-ghost--hover`]:"$color-primary-50",[`color-bg-${k}-primary-ghost--active`]:"$color-primary-100",[`color-border-${k}-secondary`]:"$color-secondary-100",[`color-bg-${k}-secondary`]:"$color-secondary-500",[`color-bg-${k}-secondary--hover`]:"$color-secondary-400",[`color-bg-${k}-secondary--active`]:"$color-secondary-500",[`color-bg-${k}-secondary-outlined--hover`]:"$color-secondary-50",[`color-bg-${k}-secondary-outlined--active`]:"$color-secondary-100",[`color-bg-${k}-secondary-ghost--hover`]:"$color-secondary-100",[`color-bg-${k}-secondary-ghost--active`]:"$color-secondary-100",[`color-bg-${k}-attention--hover`]:"$color-danger-400",[`color-bg-${k}-attention--active`]:"$color-danger-500",[`color-bg-${k}-attention-outlined--hover`]:"$color-danger-50",[`color-bg-${k}-attention-outlined--active`]:"$color-danger-100",[`color-bg-${k}-attention-ghost--hover`]:"$color-danger-50",[`color-bg-${k}-attention-ghost--active`]:"$color-danger-100"},dark:{[`color-text-${k}`]:"$color-surface-50",[`color-text-${k}-solid`]:"$color-surface-50",[`color-border-${k}-primary`]:"$color-primary-500",[`color-bg-${k}-primary--hover`]:"$color-primary-600",[`color-bg-${k}-primary--active`]:"$color-primary-500",[`color-bg-${k}-primary-outlined--hover`]:"$color-primary-900",[`color-bg-${k}-primary-outlined--active`]:"$color-primary-950",[`color-border-${k}-primary-outlined`]:"$color-primary-600",[`color-border-${k}-primary-outlined--hover`]:"$color-primary-500",[`color-text-${k}-primary-outlined`]:"$color-primary-100",[`color-text-${k}-primary-outlined--hover`]:"$color-primary-50",[`color-text-${k}-primary-outlined--active`]:"$color-primary-100",[`color-bg-${k}-primary-ghost--hover`]:"$color-primary-900",[`color-bg-${k}-primary-ghost--active`]:"$color-primary-950",[`color-border-${k}-secondary`]:"$color-secondary-500",[`color-bg-${k}-secondary`]:"$color-secondary-500",[`color-bg-${k}-secondary--hover`]:"$color-secondary-400",[`color-bg-${k}-secondary--active`]:"$color-secondary-500",[`color-bg-${k}-secondary-outlined--hover`]:"$color-secondary-600",[`color-bg-${k}-secondary-outlined--active`]:"$color-secondary-500",[`color-bg-${k}-secondary-ghost--hover`]:"$color-secondary-900",[`color-bg-${k}-secondary-ghost--active`]:"$color-secondary-950",[`color-bg-${k}-attention--hover`]:"$color-danger-400",[`color-bg-${k}-attention--active`]:"$color-danger-500",[`color-bg-${k}-attention-outlined--hover`]:"$color-danger-900",[`color-bg-${k}-attention-outlined--active`]:"$color-danger-950",[`color-bg-${k}-attention-ghost--hover`]:"$color-danger-900",[`color-bg-${k}-attention-ghost--active`]:"$color-danger-950"}}}),Ae={themeVars:'"[]"',base:"_base_gzmhm_13",hoverContainer:"_hoverContainer_gzmhm_22",handlesClick:"_handlesClick_gzmhm_32",vertical:"_vertical_gzmhm_36",reverse:"_reverse_gzmhm_40",horizontal:"_horizontal_gzmhm_44",justifyItemsStart:"_justifyItemsStart_gzmhm_52",justifyItemsCenter:"_justifyItemsCenter_gzmhm_56",justifyItemsStretch:"_justifyItemsStretch_gzmhm_60",justifyItemsEnd:"_justifyItemsEnd_gzmhm_64",alignItemsStart:"_alignItemsStart_gzmhm_69",alignItemsCenter:"_alignItemsCenter_gzmhm_73",alignItemsStretch:"_alignItemsStretch_gzmhm_77",alignItemsEnd:"_alignItemsEnd_gzmhm_81"};function Et(e){return e[0].toUpperCase()+e.substring(1)}function sn(e,t,o){return Y.useMemo(()=>e==="horizontal"?{horizontal:t&&Ae[`justifyItems${Et(t)}`],vertical:o&&Ae[`alignItems${Et(o)}`]}:{horizontal:t&&Ae[`alignItems${Et(t)}`],vertical:o&&Ae[`justifyItems${Et(o)}`]},[e,t,o])}const cn=Object.freeze({});function un(e){const t=Y.useRef({mountedFired:!1});Y.useEffect(()=>{t.current.mountedFired||(t.current.mountedFired=!0,e==null||e())},[e])}const dn="vertical",Do=Y.forwardRef(function({uid:t,children:o,orientation:i=dn,horizontalAlignment:r,verticalAlignment:s,style:a,reverse:c,hoverContainer:u,visibleOnHover:w,onClick:g,onMount:d,...C},b){un(d);const{horizontal:D,vertical:S}=sn(i,r,s);return re.jsx("div",{...C,onClick:g,ref:b,style:a,className:je(Ae.base,{[Ae.vertical]:i==="vertical",[Ae.horizontal]:i==="horizontal",[Ae.reverse]:c,[Ae.hoverContainer]:u,"display-on-hover":w,[Ae.handlesClick]:!!g},D??"",S??""),children:o})}),wt="Stack",Xt=l("Manages the horizontal content alignment for each child element in the Stack."),Qt=l("Manages the vertical content alignment for each child element in the Stack."),At=y({description:"`Stack` is a layout container displaying children in a horizontal or vertical stack.",props:{gap:l("Optional size value indicating the gap between child elements."),reverse:l("Optional boolean property to reverse the order of child elements."),wrapContent:l("Optional boolean which wraps the content if set to true and the available space is not big enough. Works in all orientations."),hoverContainer:l("Reserved for future use"),visibleOnHover:l("Reserved for future use")},events:{click:qe(wt),mounted:l("Reserved for future use")},themeVars:z(Ae.themeVars)}),$t={...At,props:{...At.props,orientation:l("An optional property that governs the Stack's orientation (whether the Stack lays out its children in a row or a column)."),horizontalAlignment:Xt,verticalAlignment:Qt}},pn={...$t,specializedFrom:wt,description:"This component represents a stack rendering its contents vertically.",props:{...At.props,horizontalAlignment:Xt,verticalAlignment:Qt}},hn={...$t,specializedFrom:wt,description:"This component represents a stack rendering its contents horizontally.",props:{...At.props,horizontalAlignment:Xt,verticalAlignment:Qt}},mn={...$t,specializedFrom:wt,description:"This component represents a stack that renders its contents vertically and aligns that in the center along both axes."},xn={...$t,specializedFrom:wt,description:"This component represents a stack that renders its contents horizontally and aligns that in the center along both axes."},fn={themeVars:`'{"Input:radius-TextBox-default": "var(--xmlui-radius-TextBox-default)", "Input:color-border-TextBox-default": "var(--xmlui-color-border-TextBox-default)", "Input:thickness-border-TextBox-default": "var(--xmlui-thickness-border-TextBox-default)", "Input:style-border-TextBox-default": "var(--xmlui-style-border-TextBox-default)", "Input:font-size-TextBox-default": "var(--xmlui-font-size-TextBox-default)", "Input:padding-TextBox-default": "var(--xmlui-padding-TextBox-default)", "Input:color-bg-TextBox-default": "var(--xmlui-color-bg-TextBox-default)", "Input:shadow-TextBox-default": "var(--xmlui-shadow-TextBox-default)", "Input:color-text-TextBox-default": "var(--xmlui-color-text-TextBox-default)", "Input:color-border-TextBox-default--hover": "var(--xmlui-color-border-TextBox-default--hover)", "Input:color-bg-TextBox-default--hover": "var(--xmlui-color-bg-TextBox-default--hover)", "Input:shadow-TextBox-default--hover": "var(--xmlui-shadow-TextBox-default--hover)", "Input:color-text-TextBox-default--hover": "var(--xmlui-color-text-TextBox-default--hover)", "Input:color-border-TextBox-default--focus": "var(--xmlui-color-border-TextBox-default--focus)", "Input:color-bg-TextBox-default--focus": "var(--xmlui-color-bg-TextBox-default--focus)", "Input:shadow-TextBox-default--focus": "var(--xmlui-shadow-TextBox-default--focus)", "Input:color-text-TextBox-default--focus": "var(--xmlui-color-text-TextBox-default--focus)", "Input:thickness-outline-TextBox-default--focus": "var(--xmlui-thickness-outline-TextBox-default--focus)", "Input:color-outline-TextBox-default--focus": "var(--xmlui-color-outline-TextBox-default--focus)", "Input:style-outline-TextBox-default--focus": "var(--xmlui-style-outline-TextBox-default--focus)", "Input:offset-outline-TextBox-default--focus": "var(--xmlui-offset-outline-TextBox-default--focus)", "Input:color-placeholder-TextBox-default": "var(--xmlui-color-placeholder-TextBox-default)", "Input:color-adornment-TextBox-default": "var(--xmlui-color-adornment-TextBox-default)", "Input:radius-TextBox-error": "var(--xmlui-radius-TextBox-error)", "Input:color-border-TextBox-error": "var(--xmlui-color-border-TextBox-error)", "Input:thickness-border-TextBox-error": "var(--xmlui-thickness-border-TextBox-error)", "Input:style-border-TextBox-error": "var(--xmlui-style-border-TextBox-error)", "Input:font-size-TextBox-error": "var(--xmlui-font-size-TextBox-error)", "Input:padding-TextBox-error": "var(--xmlui-padding-TextBox-error)", "Input:color-bg-TextBox-error": "var(--xmlui-color-bg-TextBox-error)", "Input:shadow-TextBox-error": "var(--xmlui-shadow-TextBox-error)", "Input:color-text-TextBox-error": "var(--xmlui-color-text-TextBox-error)", "Input:color-border-TextBox-error--hover": "var(--xmlui-color-border-TextBox-error--hover)", "Input:color-bg-TextBox-error--hover": "var(--xmlui-color-bg-TextBox-error--hover)", "Input:shadow-TextBox-error--hover": "var(--xmlui-shadow-TextBox-error--hover)", "Input:color-text-TextBox-error--hover": "var(--xmlui-color-text-TextBox-error--hover)", "Input:color-border-TextBox-error--focus": "var(--xmlui-color-border-TextBox-error--focus)", "Input:color-bg-TextBox-error--focus": "var(--xmlui-color-bg-TextBox-error--focus)", "Input:shadow-TextBox-error--focus": "var(--xmlui-shadow-TextBox-error--focus)", "Input:color-text-TextBox-error--focus": "var(--xmlui-color-text-TextBox-error--focus)", "Input:thickness-outline-TextBox-error--focus": "var(--xmlui-thickness-outline-TextBox-error--focus)", "Input:color-outline-TextBox-error--focus": "var(--xmlui-color-outline-TextBox-error--focus)", "Input:style-outline-TextBox-error--focus": "var(--xmlui-style-outline-TextBox-error--focus)", "Input:offset-outline-TextBox-error--focus": "var(--xmlui-offset-outline-TextBox-error--focus)", "Input:color-placeholder-TextBox-error": "var(--xmlui-color-placeholder-TextBox-error)", "Input:color-adornment-TextBox-error": "var(--xmlui-color-adornment-TextBox-error)", "Input:radius-TextBox-warning": "var(--xmlui-radius-TextBox-warning)", "Input:color-border-TextBox-warning": "var(--xmlui-color-border-TextBox-warning)", "Input:thickness-border-TextBox-warning": "var(--xmlui-thickness-border-TextBox-warning)", "Input:style-border-TextBox-warning": "var(--xmlui-style-border-TextBox-warning)", "Input:font-size-TextBox-warning": "var(--xmlui-font-size-TextBox-warning)", "Input:padding-TextBox-warning": "var(--xmlui-padding-TextBox-warning)", "Input:color-bg-TextBox-warning": "var(--xmlui-color-bg-TextBox-warning)", "Input:shadow-TextBox-warning": "var(--xmlui-shadow-TextBox-warning)", "Input:color-text-TextBox-warning": "var(--xmlui-color-text-TextBox-warning)", "Input:color-border-TextBox-warning--hover": "var(--xmlui-color-border-TextBox-warning--hover)", "Input:color-bg-TextBox-warning--hover": "var(--xmlui-color-bg-TextBox-warning--hover)", "Input:shadow-TextBox-warning--hover": "var(--xmlui-shadow-TextBox-warning--hover)", "Input:color-text-TextBox-warning--hover": "var(--xmlui-color-text-TextBox-warning--hover)", "Input:color-border-TextBox-warning--focus": "var(--xmlui-color-border-TextBox-warning--focus)", "Input:color-bg-TextBox-warning--focus": "var(--xmlui-color-bg-TextBox-warning--focus)", "Input:shadow-TextBox-warning--focus": "var(--xmlui-shadow-TextBox-warning--focus)", "Input:color-text-TextBox-warning--focus": "var(--xmlui-color-text-TextBox-warning--focus)", "Input:thickness-outline-TextBox-warning--focus": "var(--xmlui-thickness-outline-TextBox-warning--focus)", "Input:color-outline-TextBox-warning--focus": "var(--xmlui-color-outline-TextBox-warning--focus)", "Input:style-outline-TextBox-warning--focus": "var(--xmlui-style-outline-TextBox-warning--focus)", "Input:offset-outline-TextBox-warning--focus": "var(--xmlui-offset-outline-TextBox-warning--focus)", "Input:color-placeholder-TextBox-warning": "var(--xmlui-color-placeholder-TextBox-warning)", "Input:color-adornment-TextBox-warning": "var(--xmlui-color-adornment-TextBox-warning)", "Input:radius-TextBox-success": "var(--xmlui-radius-TextBox-success)", "Input:color-border-TextBox-success": "var(--xmlui-color-border-TextBox-success)", "Input:thickness-border-TextBox-success": "var(--xmlui-thickness-border-TextBox-success)", "Input:style-border-TextBox-success": "var(--xmlui-style-border-TextBox-success)", "Input:font-size-TextBox-success": "var(--xmlui-font-size-TextBox-success)", "Input:padding-TextBox-success": "var(--xmlui-padding-TextBox-success)", "Input:color-bg-TextBox-success": "var(--xmlui-color-bg-TextBox-success)", "Input:shadow-TextBox-success": "var(--xmlui-shadow-TextBox-success)", "Input:color-text-TextBox-success": "var(--xmlui-color-text-TextBox-success)", "Input:color-border-TextBox-success--hover": "var(--xmlui-color-border-TextBox-success--hover)", "Input:color-bg-TextBox-success--hover": "var(--xmlui-color-bg-TextBox-success--hover)", "Input:shadow-TextBox-success--hover": "var(--xmlui-shadow-TextBox-success--hover)", "Input:color-text-TextBox-success--hover": "var(--xmlui-color-text-TextBox-success--hover)", "Input:color-border-TextBox-success--focus": "var(--xmlui-color-border-TextBox-success--focus)", "Input:color-bg-TextBox-success--focus": "var(--xmlui-color-bg-TextBox-success--focus)", "Input:shadow-TextBox-success--focus": "var(--xmlui-shadow-TextBox-success--focus)", "Input:color-text-TextBox-success--focus": "var(--xmlui-color-text-TextBox-success--focus)", "Input:thickness-outline-TextBox-success--focus": "var(--xmlui-thickness-outline-TextBox-success--focus)", "Input:color-outline-TextBox-success--focus": "var(--xmlui-color-outline-TextBox-success--focus)", "Input:style-outline-TextBox-success--focus": "var(--xmlui-style-outline-TextBox-success--focus)", "Input:offset-outline-TextBox-success--focus": "var(--xmlui-offset-outline-TextBox-success--focus)", "Input:color-placeholder-TextBox-success": "var(--xmlui-color-placeholder-TextBox-success)", "Input:color-adornment-TextBox-success": "var(--xmlui-color-adornment-TextBox-success)", "Input:color-bg-TextBox--disabled": "var(--xmlui-color-bg-TextBox--disabled)", "Input:color-text-TextBox--disabled": "var(--xmlui-color-text-TextBox--disabled)", "Input:color-border-TextBox--disabled": "var(--xmlui-color-border-TextBox--disabled)"}'`,inputRoot:"_inputRoot_1s937_13",input:"_input_1s937_13",adornment:"_adornment_1s937_53",error:"_error_1s937_56",warning:"_warning_1s937_91",valid:"_valid_1s937_126",readOnly:"_readOnly_1s937_178"},pt={themeVars:`'{"font-family-Text-abbr": "var(--xmlui-font-family-Text-abbr)", "font-size-Text-abbr": "var(--xmlui-font-size-Text-abbr)", "font-weight-Text-abbr": "var(--xmlui-font-weight-Text-abbr)", "font-style-Text-abbr": "var(--xmlui-font-style-Text-abbr)", "font-stretch-Text-abbr": "var(--xmlui-font-stretch-Text-abbr)", "line-decoration-Text-abbr": "var(--xmlui-line-decoration-Text-abbr)", "color-decoration-Text-abbr": "var(--xmlui-color-decoration-Text-abbr)", "style-decoration-Text-abbr": "var(--xmlui-style-decoration-Text-abbr)", "thickness-decoration-Text-abbr": "var(--xmlui-thickness-decoration-Text-abbr)", "offset-decoration-Text-abbr": "var(--xmlui-offset-decoration-Text-abbr)", "line-height-Text-abbr": "var(--xmlui-line-height-Text-abbr)", "color-Text-abbr": "var(--xmlui-color-Text-abbr)", "color-bg-Text-abbr": "var(--xmlui-color-bg-Text-abbr)", "border-radius-Text-abbr": "var(--xmlui-border-radius-Text-abbr)", "color-border-Text-abbr": "var(--xmlui-color-border-Text-abbr)", "thickness-border-Text-abbr": "var(--xmlui-thickness-border-Text-abbr)", "style-border-Text-abbr": "var(--xmlui-style-border-Text-abbr)", "margin-top-Text-abbr": "var(--xmlui-margin-top-Text-abbr)", "margin-bottom-Text-abbr": "var(--xmlui-margin-bottom-Text-abbr)", "padding-horizontal-Text-abbr": "var(--xmlui-padding-horizontal-Text-abbr)", "padding-vertical-Text-abbr": "var(--xmlui-padding-vertical-Text-abbr)", "transform-Text-abbr": "var(--xmlui-transform-Text-abbr)", "align-vertical-Text-abbr": "var(--xmlui-align-vertical-Text-abbr)", "letter-spacing-Text-abbr": "var(--xmlui-letter-spacing-Text-abbr)", "font-family-Text-cite": "var(--xmlui-font-family-Text-cite)", "font-size-Text-cite": "var(--xmlui-font-size-Text-cite)", "font-weight-Text-cite": "var(--xmlui-font-weight-Text-cite)", "font-style-Text-cite": "var(--xmlui-font-style-Text-cite)", "font-stretch-Text-cite": "var(--xmlui-font-stretch-Text-cite)", "line-decoration-Text-cite": "var(--xmlui-line-decoration-Text-cite)", "color-decoration-Text-cite": "var(--xmlui-color-decoration-Text-cite)", "style-decoration-Text-cite": "var(--xmlui-style-decoration-Text-cite)", "thickness-decoration-Text-cite": "var(--xmlui-thickness-decoration-Text-cite)", "offset-decoration-Text-cite": "var(--xmlui-offset-decoration-Text-cite)", "line-height-Text-cite": "var(--xmlui-line-height-Text-cite)", "color-Text-cite": "var(--xmlui-color-Text-cite)", "color-bg-Text-cite": "var(--xmlui-color-bg-Text-cite)", "border-radius-Text-cite": "var(--xmlui-border-radius-Text-cite)", "color-border-Text-cite": "var(--xmlui-color-border-Text-cite)", "thickness-border-Text-cite": "var(--xmlui-thickness-border-Text-cite)", "style-border-Text-cite": "var(--xmlui-style-border-Text-cite)", "margin-top-Text-cite": "var(--xmlui-margin-top-Text-cite)", "margin-bottom-Text-cite": "var(--xmlui-margin-bottom-Text-cite)", "padding-horizontal-Text-cite": "var(--xmlui-padding-horizontal-Text-cite)", "padding-vertical-Text-cite": "var(--xmlui-padding-vertical-Text-cite)", "transform-Text-cite": "var(--xmlui-transform-Text-cite)", "align-vertical-Text-cite": "var(--xmlui-align-vertical-Text-cite)", "letter-spacing-Text-cite": "var(--xmlui-letter-spacing-Text-cite)", "font-family-Text-code": "var(--xmlui-font-family-Text-code)", "font-size-Text-code": "var(--xmlui-font-size-Text-code)", "font-weight-Text-code": "var(--xmlui-font-weight-Text-code)", "font-style-Text-code": "var(--xmlui-font-style-Text-code)", "font-stretch-Text-code": "var(--xmlui-font-stretch-Text-code)", "line-decoration-Text-code": "var(--xmlui-line-decoration-Text-code)", "color-decoration-Text-code": "var(--xmlui-color-decoration-Text-code)", "style-decoration-Text-code": "var(--xmlui-style-decoration-Text-code)", "thickness-decoration-Text-code": "var(--xmlui-thickness-decoration-Text-code)", "offset-decoration-Text-code": "var(--xmlui-offset-decoration-Text-code)", "line-height-Text-code": "var(--xmlui-line-height-Text-code)", "color-Text-code": "var(--xmlui-color-Text-code)", "color-bg-Text-code": "var(--xmlui-color-bg-Text-code)", "border-radius-Text-code": "var(--xmlui-border-radius-Text-code)", "color-border-Text-code": "var(--xmlui-color-border-Text-code)", "thickness-border-Text-code": "var(--xmlui-thickness-border-Text-code)", "style-border-Text-code": "var(--xmlui-style-border-Text-code)", "margin-top-Text-code": "var(--xmlui-margin-top-Text-code)", "margin-bottom-Text-code": "var(--xmlui-margin-bottom-Text-code)", "padding-horizontal-Text-code": "var(--xmlui-padding-horizontal-Text-code)", "padding-vertical-Text-code": "var(--xmlui-padding-vertical-Text-code)", "transform-Text-code": "var(--xmlui-transform-Text-code)", "align-vertical-Text-code": "var(--xmlui-align-vertical-Text-code)", "letter-spacing-Text-code": "var(--xmlui-letter-spacing-Text-code)", "font-family-Text-codefence": "var(--xmlui-font-family-Text-codefence)", "font-size-Text-codefence": "var(--xmlui-font-size-Text-codefence)", "font-weight-Text-codefence": "var(--xmlui-font-weight-Text-codefence)", "font-style-Text-codefence": "var(--xmlui-font-style-Text-codefence)", "font-stretch-Text-codefence": "var(--xmlui-font-stretch-Text-codefence)", "line-decoration-Text-codefence": "var(--xmlui-line-decoration-Text-codefence)", "color-decoration-Text-codefence": "var(--xmlui-color-decoration-Text-codefence)", "style-decoration-Text-codefence": "var(--xmlui-style-decoration-Text-codefence)", "thickness-decoration-Text-codefence": "var(--xmlui-thickness-decoration-Text-codefence)", "offset-decoration-Text-codefence": "var(--xmlui-offset-decoration-Text-codefence)", "line-height-Text-codefence": "var(--xmlui-line-height-Text-codefence)", "color-Text-codefence": "var(--xmlui-color-Text-codefence)", "color-bg-Text-codefence": "var(--xmlui-color-bg-Text-codefence)", "border-radius-Text-codefence": "var(--xmlui-border-radius-Text-codefence)", "color-border-Text-codefence": "var(--xmlui-color-border-Text-codefence)", "thickness-border-Text-codefence": "var(--xmlui-thickness-border-Text-codefence)", "style-border-Text-codefence": "var(--xmlui-style-border-Text-codefence)", "margin-top-Text-codefence": "var(--xmlui-margin-top-Text-codefence)", "margin-bottom-Text-codefence": "var(--xmlui-margin-bottom-Text-codefence)", "padding-horizontal-Text-codefence": "var(--xmlui-padding-horizontal-Text-codefence)", "padding-vertical-Text-codefence": "var(--xmlui-padding-vertical-Text-codefence)", "transform-Text-codefence": "var(--xmlui-transform-Text-codefence)", "align-vertical-Text-codefence": "var(--xmlui-align-vertical-Text-codefence)", "letter-spacing-Text-codefence": "var(--xmlui-letter-spacing-Text-codefence)", "font-family-Text-deleted": "var(--xmlui-font-family-Text-deleted)", "font-size-Text-deleted": "var(--xmlui-font-size-Text-deleted)", "font-weight-Text-deleted": "var(--xmlui-font-weight-Text-deleted)", "font-style-Text-deleted": "var(--xmlui-font-style-Text-deleted)", "font-stretch-Text-deleted": "var(--xmlui-font-stretch-Text-deleted)", "line-decoration-Text-deleted": "var(--xmlui-line-decoration-Text-deleted)", "color-decoration-Text-deleted": "var(--xmlui-color-decoration-Text-deleted)", "style-decoration-Text-deleted": "var(--xmlui-style-decoration-Text-deleted)", "thickness-decoration-Text-deleted": "var(--xmlui-thickness-decoration-Text-deleted)", "offset-decoration-Text-deleted": "var(--xmlui-offset-decoration-Text-deleted)", "line-height-Text-deleted": "var(--xmlui-line-height-Text-deleted)", "color-Text-deleted": "var(--xmlui-color-Text-deleted)", "color-bg-Text-deleted": "var(--xmlui-color-bg-Text-deleted)", "border-radius-Text-deleted": "var(--xmlui-border-radius-Text-deleted)", "color-border-Text-deleted": "var(--xmlui-color-border-Text-deleted)", "thickness-border-Text-deleted": "var(--xmlui-thickness-border-Text-deleted)", "style-border-Text-deleted": "var(--xmlui-style-border-Text-deleted)", "margin-top-Text-deleted": "var(--xmlui-margin-top-Text-deleted)", "margin-bottom-Text-deleted": "var(--xmlui-margin-bottom-Text-deleted)", "padding-horizontal-Text-deleted": "var(--xmlui-padding-horizontal-Text-deleted)", "padding-vertical-Text-deleted": "var(--xmlui-padding-vertical-Text-deleted)", "transform-Text-deleted": "var(--xmlui-transform-Text-deleted)", "align-vertical-Text-deleted": "var(--xmlui-align-vertical-Text-deleted)", "letter-spacing-Text-deleted": "var(--xmlui-letter-spacing-Text-deleted)", "font-family-Text-inserted": "var(--xmlui-font-family-Text-inserted)", "font-size-Text-inserted": "var(--xmlui-font-size-Text-inserted)", "font-weight-Text-inserted": "var(--xmlui-font-weight-Text-inserted)", "font-style-Text-inserted": "var(--xmlui-font-style-Text-inserted)", "font-stretch-Text-inserted": "var(--xmlui-font-stretch-Text-inserted)", "line-decoration-Text-inserted": "var(--xmlui-line-decoration-Text-inserted)", "color-decoration-Text-inserted": "var(--xmlui-color-decoration-Text-inserted)", "style-decoration-Text-inserted": "var(--xmlui-style-decoration-Text-inserted)", "thickness-decoration-Text-inserted": "var(--xmlui-thickness-decoration-Text-inserted)", "offset-decoration-Text-inserted": "var(--xmlui-offset-decoration-Text-inserted)", "line-height-Text-inserted": "var(--xmlui-line-height-Text-inserted)", "color-Text-inserted": "var(--xmlui-color-Text-inserted)", "color-bg-Text-inserted": "var(--xmlui-color-bg-Text-inserted)", "border-radius-Text-inserted": "var(--xmlui-border-radius-Text-inserted)", "color-border-Text-inserted": "var(--xmlui-color-border-Text-inserted)", "thickness-border-Text-inserted": "var(--xmlui-thickness-border-Text-inserted)", "style-border-Text-inserted": "var(--xmlui-style-border-Text-inserted)", "margin-top-Text-inserted": "var(--xmlui-margin-top-Text-inserted)", "margin-bottom-Text-inserted": "var(--xmlui-margin-bottom-Text-inserted)", "padding-horizontal-Text-inserted": "var(--xmlui-padding-horizontal-Text-inserted)", "padding-vertical-Text-inserted": "var(--xmlui-padding-vertical-Text-inserted)", "transform-Text-inserted": "var(--xmlui-transform-Text-inserted)", "align-vertical-Text-inserted": "var(--xmlui-align-vertical-Text-inserted)", "letter-spacing-Text-inserted": "var(--xmlui-letter-spacing-Text-inserted)", "font-family-Text-keyboard": "var(--xmlui-font-family-Text-keyboard)", "font-size-Text-keyboard": "var(--xmlui-font-size-Text-keyboard)", "font-weight-Text-keyboard": "var(--xmlui-font-weight-Text-keyboard)", "font-style-Text-keyboard": "var(--xmlui-font-style-Text-keyboard)", "font-stretch-Text-keyboard": "var(--xmlui-font-stretch-Text-keyboard)", "line-decoration-Text-keyboard": "var(--xmlui-line-decoration-Text-keyboard)", "color-decoration-Text-keyboard": "var(--xmlui-color-decoration-Text-keyboard)", "style-decoration-Text-keyboard": "var(--xmlui-style-decoration-Text-keyboard)", "thickness-decoration-Text-keyboard": "var(--xmlui-thickness-decoration-Text-keyboard)", "offset-decoration-Text-keyboard": "var(--xmlui-offset-decoration-Text-keyboard)", "line-height-Text-keyboard": "var(--xmlui-line-height-Text-keyboard)", "color-Text-keyboard": "var(--xmlui-color-Text-keyboard)", "color-bg-Text-keyboard": "var(--xmlui-color-bg-Text-keyboard)", "border-radius-Text-keyboard": "var(--xmlui-border-radius-Text-keyboard)", "color-border-Text-keyboard": "var(--xmlui-color-border-Text-keyboard)", "thickness-border-Text-keyboard": "var(--xmlui-thickness-border-Text-keyboard)", "style-border-Text-keyboard": "var(--xmlui-style-border-Text-keyboard)", "margin-top-Text-keyboard": "var(--xmlui-margin-top-Text-keyboard)", "margin-bottom-Text-keyboard": "var(--xmlui-margin-bottom-Text-keyboard)", "padding-horizontal-Text-keyboard": "var(--xmlui-padding-horizontal-Text-keyboard)", "padding-vertical-Text-keyboard": "var(--xmlui-padding-vertical-Text-keyboard)", "transform-Text-keyboard": "var(--xmlui-transform-Text-keyboard)", "align-vertical-Text-keyboard": "var(--xmlui-align-vertical-Text-keyboard)", "letter-spacing-Text-keyboard": "var(--xmlui-letter-spacing-Text-keyboard)", "font-family-Text-marked": "var(--xmlui-font-family-Text-marked)", "font-size-Text-marked": "var(--xmlui-font-size-Text-marked)", "font-weight-Text-marked": "var(--xmlui-font-weight-Text-marked)", "font-style-Text-marked": "var(--xmlui-font-style-Text-marked)", "font-stretch-Text-marked": "var(--xmlui-font-stretch-Text-marked)", "line-decoration-Text-marked": "var(--xmlui-line-decoration-Text-marked)", "color-decoration-Text-marked": "var(--xmlui-color-decoration-Text-marked)", "style-decoration-Text-marked": "var(--xmlui-style-decoration-Text-marked)", "thickness-decoration-Text-marked": "var(--xmlui-thickness-decoration-Text-marked)", "offset-decoration-Text-marked": "var(--xmlui-offset-decoration-Text-marked)", "line-height-Text-marked": "var(--xmlui-line-height-Text-marked)", "color-Text-marked": "var(--xmlui-color-Text-marked)", "color-bg-Text-marked": "var(--xmlui-color-bg-Text-marked)", "border-radius-Text-marked": "var(--xmlui-border-radius-Text-marked)", "color-border-Text-marked": "var(--xmlui-color-border-Text-marked)", "thickness-border-Text-marked": "var(--xmlui-thickness-border-Text-marked)", "style-border-Text-marked": "var(--xmlui-style-border-Text-marked)", "margin-top-Text-marked": "var(--xmlui-margin-top-Text-marked)", "margin-bottom-Text-marked": "var(--xmlui-margin-bottom-Text-marked)", "padding-horizontal-Text-marked": "var(--xmlui-padding-horizontal-Text-marked)", "padding-vertical-Text-marked": "var(--xmlui-padding-vertical-Text-marked)", "transform-Text-marked": "var(--xmlui-transform-Text-marked)", "align-vertical-Text-marked": "var(--xmlui-align-vertical-Text-marked)", "letter-spacing-Text-marked": "var(--xmlui-letter-spacing-Text-marked)", "font-family-Text-mono": "var(--xmlui-font-family-Text-mono)", "font-size-Text-mono": "var(--xmlui-font-size-Text-mono)", "font-weight-Text-mono": "var(--xmlui-font-weight-Text-mono)", "font-style-Text-mono": "var(--xmlui-font-style-Text-mono)", "font-stretch-Text-mono": "var(--xmlui-font-stretch-Text-mono)", "line-decoration-Text-mono": "var(--xmlui-line-decoration-Text-mono)", "color-decoration-Text-mono": "var(--xmlui-color-decoration-Text-mono)", "style-decoration-Text-mono": "var(--xmlui-style-decoration-Text-mono)", "thickness-decoration-Text-mono": "var(--xmlui-thickness-decoration-Text-mono)", "offset-decoration-Text-mono": "var(--xmlui-offset-decoration-Text-mono)", "line-height-Text-mono": "var(--xmlui-line-height-Text-mono)", "color-Text-mono": "var(--xmlui-color-Text-mono)", "color-bg-Text-mono": "var(--xmlui-color-bg-Text-mono)", "border-radius-Text-mono": "var(--xmlui-border-radius-Text-mono)", "color-border-Text-mono": "var(--xmlui-color-border-Text-mono)", "thickness-border-Text-mono": "var(--xmlui-thickness-border-Text-mono)", "style-border-Text-mono": "var(--xmlui-style-border-Text-mono)", "margin-top-Text-mono": "var(--xmlui-margin-top-Text-mono)", "margin-bottom-Text-mono": "var(--xmlui-margin-bottom-Text-mono)", "padding-horizontal-Text-mono": "var(--xmlui-padding-horizontal-Text-mono)", "padding-vertical-Text-mono": "var(--xmlui-padding-vertical-Text-mono)", "transform-Text-mono": "var(--xmlui-transform-Text-mono)", "align-vertical-Text-mono": "var(--xmlui-align-vertical-Text-mono)", "letter-spacing-Text-mono": "var(--xmlui-letter-spacing-Text-mono)", "font-family-Text-sample": "var(--xmlui-font-family-Text-sample)", "font-size-Text-sample": "var(--xmlui-font-size-Text-sample)", "font-weight-Text-sample": "var(--xmlui-font-weight-Text-sample)", "font-style-Text-sample": "var(--xmlui-font-style-Text-sample)", "font-stretch-Text-sample": "var(--xmlui-font-stretch-Text-sample)", "line-decoration-Text-sample": "var(--xmlui-line-decoration-Text-sample)", "color-decoration-Text-sample": "var(--xmlui-color-decoration-Text-sample)", "style-decoration-Text-sample": "var(--xmlui-style-decoration-Text-sample)", "thickness-decoration-Text-sample": "var(--xmlui-thickness-decoration-Text-sample)", "offset-decoration-Text-sample": "var(--xmlui-offset-decoration-Text-sample)", "line-height-Text-sample": "var(--xmlui-line-height-Text-sample)", "color-Text-sample": "var(--xmlui-color-Text-sample)", "color-bg-Text-sample": "var(--xmlui-color-bg-Text-sample)", "border-radius-Text-sample": "var(--xmlui-border-radius-Text-sample)", "color-border-Text-sample": "var(--xmlui-color-border-Text-sample)", "thickness-border-Text-sample": "var(--xmlui-thickness-border-Text-sample)", "style-border-Text-sample": "var(--xmlui-style-border-Text-sample)", "margin-top-Text-sample": "var(--xmlui-margin-top-Text-sample)", "margin-bottom-Text-sample": "var(--xmlui-margin-bottom-Text-sample)", "padding-horizontal-Text-sample": "var(--xmlui-padding-horizontal-Text-sample)", "padding-vertical-Text-sample": "var(--xmlui-padding-vertical-Text-sample)", "transform-Text-sample": "var(--xmlui-transform-Text-sample)", "align-vertical-Text-sample": "var(--xmlui-align-vertical-Text-sample)", "letter-spacing-Text-sample": "var(--xmlui-letter-spacing-Text-sample)", "font-family-Text-sup": "var(--xmlui-font-family-Text-sup)", "font-size-Text-sup": "var(--xmlui-font-size-Text-sup)", "font-weight-Text-sup": "var(--xmlui-font-weight-Text-sup)", "font-style-Text-sup": "var(--xmlui-font-style-Text-sup)", "font-stretch-Text-sup": "var(--xmlui-font-stretch-Text-sup)", "line-decoration-Text-sup": "var(--xmlui-line-decoration-Text-sup)", "color-decoration-Text-sup": "var(--xmlui-color-decoration-Text-sup)", "style-decoration-Text-sup": "var(--xmlui-style-decoration-Text-sup)", "thickness-decoration-Text-sup": "var(--xmlui-thickness-decoration-Text-sup)", "offset-decoration-Text-sup": "var(--xmlui-offset-decoration-Text-sup)", "line-height-Text-sup": "var(--xmlui-line-height-Text-sup)", "color-Text-sup": "var(--xmlui-color-Text-sup)", "color-bg-Text-sup": "var(--xmlui-color-bg-Text-sup)", "border-radius-Text-sup": "var(--xmlui-border-radius-Text-sup)", "color-border-Text-sup": "var(--xmlui-color-border-Text-sup)", "thickness-border-Text-sup": "var(--xmlui-thickness-border-Text-sup)", "style-border-Text-sup": "var(--xmlui-style-border-Text-sup)", "margin-top-Text-sup": "var(--xmlui-margin-top-Text-sup)", "margin-bottom-Text-sup": "var(--xmlui-margin-bottom-Text-sup)", "padding-horizontal-Text-sup": "var(--xmlui-padding-horizontal-Text-sup)", "padding-vertical-Text-sup": "var(--xmlui-padding-vertical-Text-sup)", "transform-Text-sup": "var(--xmlui-transform-Text-sup)", "align-vertical-Text-sup": "var(--xmlui-align-vertical-Text-sup)", "letter-spacing-Text-sup": "var(--xmlui-letter-spacing-Text-sup)", "font-family-Text-sub": "var(--xmlui-font-family-Text-sub)", "font-size-Text-sub": "var(--xmlui-font-size-Text-sub)", "font-weight-Text-sub": "var(--xmlui-font-weight-Text-sub)", "font-style-Text-sub": "var(--xmlui-font-style-Text-sub)", "font-stretch-Text-sub": "var(--xmlui-font-stretch-Text-sub)", "line-decoration-Text-sub": "var(--xmlui-line-decoration-Text-sub)", "color-decoration-Text-sub": "var(--xmlui-color-decoration-Text-sub)", "style-decoration-Text-sub": "var(--xmlui-style-decoration-Text-sub)", "thickness-decoration-Text-sub": "var(--xmlui-thickness-decoration-Text-sub)", "offset-decoration-Text-sub": "var(--xmlui-offset-decoration-Text-sub)", "line-height-Text-sub": "var(--xmlui-line-height-Text-sub)", "color-Text-sub": "var(--xmlui-color-Text-sub)", "color-bg-Text-sub": "var(--xmlui-color-bg-Text-sub)", "border-radius-Text-sub": "var(--xmlui-border-radius-Text-sub)", "color-border-Text-sub": "var(--xmlui-color-border-Text-sub)", "thickness-border-Text-sub": "var(--xmlui-thickness-border-Text-sub)", "style-border-Text-sub": "var(--xmlui-style-border-Text-sub)", "margin-top-Text-sub": "var(--xmlui-margin-top-Text-sub)", "margin-bottom-Text-sub": "var(--xmlui-margin-bottom-Text-sub)", "padding-horizontal-Text-sub": "var(--xmlui-padding-horizontal-Text-sub)", "padding-vertical-Text-sub": "var(--xmlui-padding-vertical-Text-sub)", "transform-Text-sub": "var(--xmlui-transform-Text-sub)", "align-vertical-Text-sub": "var(--xmlui-align-vertical-Text-sub)", "letter-spacing-Text-sub": "var(--xmlui-letter-spacing-Text-sub)", "font-family-Text-var": "var(--xmlui-font-family-Text-var)", "font-size-Text-var": "var(--xmlui-font-size-Text-var)", "font-weight-Text-var": "var(--xmlui-font-weight-Text-var)", "font-style-Text-var": "var(--xmlui-font-style-Text-var)", "font-stretch-Text-var": "var(--xmlui-font-stretch-Text-var)", "line-decoration-Text-var": "var(--xmlui-line-decoration-Text-var)", "color-decoration-Text-var": "var(--xmlui-color-decoration-Text-var)", "style-decoration-Text-var": "var(--xmlui-style-decoration-Text-var)", "thickness-decoration-Text-var": "var(--xmlui-thickness-decoration-Text-var)", "offset-decoration-Text-var": "var(--xmlui-offset-decoration-Text-var)", "line-height-Text-var": "var(--xmlui-line-height-Text-var)", "color-Text-var": "var(--xmlui-color-Text-var)", "color-bg-Text-var": "var(--xmlui-color-bg-Text-var)", "border-radius-Text-var": "var(--xmlui-border-radius-Text-var)", "color-border-Text-var": "var(--xmlui-color-border-Text-var)", "thickness-border-Text-var": "var(--xmlui-thickness-border-Text-var)", "style-border-Text-var": "var(--xmlui-style-border-Text-var)", "margin-top-Text-var": "var(--xmlui-margin-top-Text-var)", "margin-bottom-Text-var": "var(--xmlui-margin-bottom-Text-var)", "padding-horizontal-Text-var": "var(--xmlui-padding-horizontal-Text-var)", "padding-vertical-Text-var": "var(--xmlui-padding-vertical-Text-var)", "transform-Text-var": "var(--xmlui-transform-Text-var)", "align-vertical-Text-var": "var(--xmlui-align-vertical-Text-var)", "letter-spacing-Text-var": "var(--xmlui-letter-spacing-Text-var)", "font-family-Text-title": "var(--xmlui-font-family-Text-title)", "font-size-Text-title": "var(--xmlui-font-size-Text-title)", "font-weight-Text-title": "var(--xmlui-font-weight-Text-title)", "font-style-Text-title": "var(--xmlui-font-style-Text-title)", "font-stretch-Text-title": "var(--xmlui-font-stretch-Text-title)", "line-decoration-Text-title": "var(--xmlui-line-decoration-Text-title)", "color-decoration-Text-title": "var(--xmlui-color-decoration-Text-title)", "style-decoration-Text-title": "var(--xmlui-style-decoration-Text-title)", "thickness-decoration-Text-title": "var(--xmlui-thickness-decoration-Text-title)", "offset-decoration-Text-title": "var(--xmlui-offset-decoration-Text-title)", "line-height-Text-title": "var(--xmlui-line-height-Text-title)", "color-Text-title": "var(--xmlui-color-Text-title)", "color-bg-Text-title": "var(--xmlui-color-bg-Text-title)", "border-radius-Text-title": "var(--xmlui-border-radius-Text-title)", "color-border-Text-title": "var(--xmlui-color-border-Text-title)", "thickness-border-Text-title": "var(--xmlui-thickness-border-Text-title)", "style-border-Text-title": "var(--xmlui-style-border-Text-title)", "margin-top-Text-title": "var(--xmlui-margin-top-Text-title)", "margin-bottom-Text-title": "var(--xmlui-margin-bottom-Text-title)", "padding-horizontal-Text-title": "var(--xmlui-padding-horizontal-Text-title)", "padding-vertical-Text-title": "var(--xmlui-padding-vertical-Text-title)", "transform-Text-title": "var(--xmlui-transform-Text-title)", "align-vertical-Text-title": "var(--xmlui-align-vertical-Text-title)", "letter-spacing-Text-title": "var(--xmlui-letter-spacing-Text-title)", "font-family-Text-subtitle": "var(--xmlui-font-family-Text-subtitle)", "font-size-Text-subtitle": "var(--xmlui-font-size-Text-subtitle)", "font-weight-Text-subtitle": "var(--xmlui-font-weight-Text-subtitle)", "font-style-Text-subtitle": "var(--xmlui-font-style-Text-subtitle)", "font-stretch-Text-subtitle": "var(--xmlui-font-stretch-Text-subtitle)", "line-decoration-Text-subtitle": "var(--xmlui-line-decoration-Text-subtitle)", "color-decoration-Text-subtitle": "var(--xmlui-color-decoration-Text-subtitle)", "style-decoration-Text-subtitle": "var(--xmlui-style-decoration-Text-subtitle)", "thickness-decoration-Text-subtitle": "var(--xmlui-thickness-decoration-Text-subtitle)", "offset-decoration-Text-subtitle": "var(--xmlui-offset-decoration-Text-subtitle)", "line-height-Text-subtitle": "var(--xmlui-line-height-Text-subtitle)", "color-Text-subtitle": "var(--xmlui-color-Text-subtitle)", "color-bg-Text-subtitle": "var(--xmlui-color-bg-Text-subtitle)", "border-radius-Text-subtitle": "var(--xmlui-border-radius-Text-subtitle)", "color-border-Text-subtitle": "var(--xmlui-color-border-Text-subtitle)", "thickness-border-Text-subtitle": "var(--xmlui-thickness-border-Text-subtitle)", "style-border-Text-subtitle": "var(--xmlui-style-border-Text-subtitle)", "margin-top-Text-subtitle": "var(--xmlui-margin-top-Text-subtitle)", "margin-bottom-Text-subtitle": "var(--xmlui-margin-bottom-Text-subtitle)", "padding-horizontal-Text-subtitle": "var(--xmlui-padding-horizontal-Text-subtitle)", "padding-vertical-Text-subtitle": "var(--xmlui-padding-vertical-Text-subtitle)", "transform-Text-subtitle": "var(--xmlui-transform-Text-subtitle)", "align-vertical-Text-subtitle": "var(--xmlui-align-vertical-Text-subtitle)", "letter-spacing-Text-subtitle": "var(--xmlui-letter-spacing-Text-subtitle)", "font-family-Text-small": "var(--xmlui-font-family-Text-small)", "font-size-Text-small": "var(--xmlui-font-size-Text-small)", "font-weight-Text-small": "var(--xmlui-font-weight-Text-small)", "font-style-Text-small": "var(--xmlui-font-style-Text-small)", "font-stretch-Text-small": "var(--xmlui-font-stretch-Text-small)", "line-decoration-Text-small": "var(--xmlui-line-decoration-Text-small)", "color-decoration-Text-small": "var(--xmlui-color-decoration-Text-small)", "style-decoration-Text-small": "var(--xmlui-style-decoration-Text-small)", "thickness-decoration-Text-small": "var(--xmlui-thickness-decoration-Text-small)", "offset-decoration-Text-small": "var(--xmlui-offset-decoration-Text-small)", "line-height-Text-small": "var(--xmlui-line-height-Text-small)", "color-Text-small": "var(--xmlui-color-Text-small)", "color-bg-Text-small": "var(--xmlui-color-bg-Text-small)", "border-radius-Text-small": "var(--xmlui-border-radius-Text-small)", "color-border-Text-small": "var(--xmlui-color-border-Text-small)", "thickness-border-Text-small": "var(--xmlui-thickness-border-Text-small)", "style-border-Text-small": "var(--xmlui-style-border-Text-small)", "margin-top-Text-small": "var(--xmlui-margin-top-Text-small)", "margin-bottom-Text-small": "var(--xmlui-margin-bottom-Text-small)", "padding-horizontal-Text-small": "var(--xmlui-padding-horizontal-Text-small)", "padding-vertical-Text-small": "var(--xmlui-padding-vertical-Text-small)", "transform-Text-small": "var(--xmlui-transform-Text-small)", "align-vertical-Text-small": "var(--xmlui-align-vertical-Text-small)", "letter-spacing-Text-small": "var(--xmlui-letter-spacing-Text-small)", "font-family-Text-caption": "var(--xmlui-font-family-Text-caption)", "font-size-Text-caption": "var(--xmlui-font-size-Text-caption)", "font-weight-Text-caption": "var(--xmlui-font-weight-Text-caption)", "font-style-Text-caption": "var(--xmlui-font-style-Text-caption)", "font-stretch-Text-caption": "var(--xmlui-font-stretch-Text-caption)", "line-decoration-Text-caption": "var(--xmlui-line-decoration-Text-caption)", "color-decoration-Text-caption": "var(--xmlui-color-decoration-Text-caption)", "style-decoration-Text-caption": "var(--xmlui-style-decoration-Text-caption)", "thickness-decoration-Text-caption": "var(--xmlui-thickness-decoration-Text-caption)", "offset-decoration-Text-caption": "var(--xmlui-offset-decoration-Text-caption)", "line-height-Text-caption": "var(--xmlui-line-height-Text-caption)", "color-Text-caption": "var(--xmlui-color-Text-caption)", "color-bg-Text-caption": "var(--xmlui-color-bg-Text-caption)", "border-radius-Text-caption": "var(--xmlui-border-radius-Text-caption)", "color-border-Text-caption": "var(--xmlui-color-border-Text-caption)", "thickness-border-Text-caption": "var(--xmlui-thickness-border-Text-caption)", "style-border-Text-caption": "var(--xmlui-style-border-Text-caption)", "margin-top-Text-caption": "var(--xmlui-margin-top-Text-caption)", "margin-bottom-Text-caption": "var(--xmlui-margin-bottom-Text-caption)", "padding-horizontal-Text-caption": "var(--xmlui-padding-horizontal-Text-caption)", "padding-vertical-Text-caption": "var(--xmlui-padding-vertical-Text-caption)", "transform-Text-caption": "var(--xmlui-transform-Text-caption)", "align-vertical-Text-caption": "var(--xmlui-align-vertical-Text-caption)", "letter-spacing-Text-caption": "var(--xmlui-letter-spacing-Text-caption)", "font-family-Text-placeholder": "var(--xmlui-font-family-Text-placeholder)", "font-size-Text-placeholder": "var(--xmlui-font-size-Text-placeholder)", "font-weight-Text-placeholder": "var(--xmlui-font-weight-Text-placeholder)", "font-style-Text-placeholder": "var(--xmlui-font-style-Text-placeholder)", "font-stretch-Text-placeholder": "var(--xmlui-font-stretch-Text-placeholder)", "line-decoration-Text-placeholder": "var(--xmlui-line-decoration-Text-placeholder)", "color-decoration-Text-placeholder": "var(--xmlui-color-decoration-Text-placeholder)", "style-decoration-Text-placeholder": "var(--xmlui-style-decoration-Text-placeholder)", "thickness-decoration-Text-placeholder": "var(--xmlui-thickness-decoration-Text-placeholder)", "offset-decoration-Text-placeholder": "var(--xmlui-offset-decoration-Text-placeholder)", "line-height-Text-placeholder": "var(--xmlui-line-height-Text-placeholder)", "color-Text-placeholder": "var(--xmlui-color-Text-placeholder)", "color-bg-Text-placeholder": "var(--xmlui-color-bg-Text-placeholder)", "border-radius-Text-placeholder": "var(--xmlui-border-radius-Text-placeholder)", "color-border-Text-placeholder": "var(--xmlui-color-border-Text-placeholder)", "thickness-border-Text-placeholder": "var(--xmlui-thickness-border-Text-placeholder)", "style-border-Text-placeholder": "var(--xmlui-style-border-Text-placeholder)", "margin-top-Text-placeholder": "var(--xmlui-margin-top-Text-placeholder)", "margin-bottom-Text-placeholder": "var(--xmlui-margin-bottom-Text-placeholder)", "padding-horizontal-Text-placeholder": "var(--xmlui-padding-horizontal-Text-placeholder)", "padding-vertical-Text-placeholder": "var(--xmlui-padding-vertical-Text-placeholder)", "transform-Text-placeholder": "var(--xmlui-transform-Text-placeholder)", "align-vertical-Text-placeholder": "var(--xmlui-align-vertical-Text-placeholder)", "letter-spacing-Text-placeholder": "var(--xmlui-letter-spacing-Text-placeholder)", "font-family-Text-paragraph": "var(--xmlui-font-family-Text-paragraph)", "font-size-Text-paragraph": "var(--xmlui-font-size-Text-paragraph)", "font-weight-Text-paragraph": "var(--xmlui-font-weight-Text-paragraph)", "font-style-Text-paragraph": "var(--xmlui-font-style-Text-paragraph)", "font-stretch-Text-paragraph": "var(--xmlui-font-stretch-Text-paragraph)", "line-decoration-Text-paragraph": "var(--xmlui-line-decoration-Text-paragraph)", "color-decoration-Text-paragraph": "var(--xmlui-color-decoration-Text-paragraph)", "style-decoration-Text-paragraph": "var(--xmlui-style-decoration-Text-paragraph)", "thickness-decoration-Text-paragraph": "var(--xmlui-thickness-decoration-Text-paragraph)", "offset-decoration-Text-paragraph": "var(--xmlui-offset-decoration-Text-paragraph)", "line-height-Text-paragraph": "var(--xmlui-line-height-Text-paragraph)", "color-Text-paragraph": "var(--xmlui-color-Text-paragraph)", "color-bg-Text-paragraph": "var(--xmlui-color-bg-Text-paragraph)", "border-radius-Text-paragraph": "var(--xmlui-border-radius-Text-paragraph)", "color-border-Text-paragraph": "var(--xmlui-color-border-Text-paragraph)", "thickness-border-Text-paragraph": "var(--xmlui-thickness-border-Text-paragraph)", "style-border-Text-paragraph": "var(--xmlui-style-border-Text-paragraph)", "margin-top-Text-paragraph": "var(--xmlui-margin-top-Text-paragraph)", "margin-bottom-Text-paragraph": "var(--xmlui-margin-bottom-Text-paragraph)", "padding-horizontal-Text-paragraph": "var(--xmlui-padding-horizontal-Text-paragraph)", "padding-vertical-Text-paragraph": "var(--xmlui-padding-vertical-Text-paragraph)", "transform-Text-paragraph": "var(--xmlui-transform-Text-paragraph)", "align-vertical-Text-paragraph": "var(--xmlui-align-vertical-Text-paragraph)", "letter-spacing-Text-paragraph": "var(--xmlui-letter-spacing-Text-paragraph)", "font-family-Text-subheading": "var(--xmlui-font-family-Text-subheading)", "font-size-Text-subheading": "var(--xmlui-font-size-Text-subheading)", "font-weight-Text-subheading": "var(--xmlui-font-weight-Text-subheading)", "font-style-Text-subheading": "var(--xmlui-font-style-Text-subheading)", "font-stretch-Text-subheading": "var(--xmlui-font-stretch-Text-subheading)", "line-decoration-Text-subheading": "var(--xmlui-line-decoration-Text-subheading)", "color-decoration-Text-subheading": "var(--xmlui-color-decoration-Text-subheading)", "style-decoration-Text-subheading": "var(--xmlui-style-decoration-Text-subheading)", "thickness-decoration-Text-subheading": "var(--xmlui-thickness-decoration-Text-subheading)", "offset-decoration-Text-subheading": "var(--xmlui-offset-decoration-Text-subheading)", "line-height-Text-subheading": "var(--xmlui-line-height-Text-subheading)", "color-Text-subheading": "var(--xmlui-color-Text-subheading)", "color-bg-Text-subheading": "var(--xmlui-color-bg-Text-subheading)", "border-radius-Text-subheading": "var(--xmlui-border-radius-Text-subheading)", "color-border-Text-subheading": "var(--xmlui-color-border-Text-subheading)", "thickness-border-Text-subheading": "var(--xmlui-thickness-border-Text-subheading)", "style-border-Text-subheading": "var(--xmlui-style-border-Text-subheading)", "margin-top-Text-subheading": "var(--xmlui-margin-top-Text-subheading)", "margin-bottom-Text-subheading": "var(--xmlui-margin-bottom-Text-subheading)", "padding-horizontal-Text-subheading": "var(--xmlui-padding-horizontal-Text-subheading)", "padding-vertical-Text-subheading": "var(--xmlui-padding-vertical-Text-subheading)", "transform-Text-subheading": "var(--xmlui-transform-Text-subheading)", "align-vertical-Text-subheading": "var(--xmlui-align-vertical-Text-subheading)", "letter-spacing-Text-subheading": "var(--xmlui-letter-spacing-Text-subheading)", "font-family-Text-tableheading": "var(--xmlui-font-family-Text-tableheading)", "font-size-Text-tableheading": "var(--xmlui-font-size-Text-tableheading)", "font-weight-Text-tableheading": "var(--xmlui-font-weight-Text-tableheading)", "font-style-Text-tableheading": "var(--xmlui-font-style-Text-tableheading)", "font-stretch-Text-tableheading": "var(--xmlui-font-stretch-Text-tableheading)", "line-decoration-Text-tableheading": "var(--xmlui-line-decoration-Text-tableheading)", "color-decoration-Text-tableheading": "var(--xmlui-color-decoration-Text-tableheading)", "style-decoration-Text-tableheading": "var(--xmlui-style-decoration-Text-tableheading)", "thickness-decoration-Text-tableheading": "var(--xmlui-thickness-decoration-Text-tableheading)", "offset-decoration-Text-tableheading": "var(--xmlui-offset-decoration-Text-tableheading)", "line-height-Text-tableheading": "var(--xmlui-line-height-Text-tableheading)", "color-Text-tableheading": "var(--xmlui-color-Text-tableheading)", "color-bg-Text-tableheading": "var(--xmlui-color-bg-Text-tableheading)", "border-radius-Text-tableheading": "var(--xmlui-border-radius-Text-tableheading)", "color-border-Text-tableheading": "var(--xmlui-color-border-Text-tableheading)", "thickness-border-Text-tableheading": "var(--xmlui-thickness-border-Text-tableheading)", "style-border-Text-tableheading": "var(--xmlui-style-border-Text-tableheading)", "margin-top-Text-tableheading": "var(--xmlui-margin-top-Text-tableheading)", "margin-bottom-Text-tableheading": "var(--xmlui-margin-bottom-Text-tableheading)", "padding-horizontal-Text-tableheading": "var(--xmlui-padding-horizontal-Text-tableheading)", "padding-vertical-Text-tableheading": "var(--xmlui-padding-vertical-Text-tableheading)", "transform-Text-tableheading": "var(--xmlui-transform-Text-tableheading)", "align-vertical-Text-tableheading": "var(--xmlui-align-vertical-Text-tableheading)", "letter-spacing-Text-tableheading": "var(--xmlui-letter-spacing-Text-tableheading)", "font-family-Text-secondary": "var(--xmlui-font-family-Text-secondary)", "font-size-Text-secondary": "var(--xmlui-font-size-Text-secondary)", "font-weight-Text-secondary": "var(--xmlui-font-weight-Text-secondary)", "font-style-Text-secondary": "var(--xmlui-font-style-Text-secondary)", "font-stretch-Text-secondary": "var(--xmlui-font-stretch-Text-secondary)", "line-decoration-Text-secondary": "var(--xmlui-line-decoration-Text-secondary)", "color-decoration-Text-secondary": "var(--xmlui-color-decoration-Text-secondary)", "style-decoration-Text-secondary": "var(--xmlui-style-decoration-Text-secondary)", "thickness-decoration-Text-secondary": "var(--xmlui-thickness-decoration-Text-secondary)", "offset-decoration-Text-secondary": "var(--xmlui-offset-decoration-Text-secondary)", "line-height-Text-secondary": "var(--xmlui-line-height-Text-secondary)", "color-Text-secondary": "var(--xmlui-color-Text-secondary)", "color-bg-Text-secondary": "var(--xmlui-color-bg-Text-secondary)", "border-radius-Text-secondary": "var(--xmlui-border-radius-Text-secondary)", "color-border-Text-secondary": "var(--xmlui-color-border-Text-secondary)", "thickness-border-Text-secondary": "var(--xmlui-thickness-border-Text-secondary)", "style-border-Text-secondary": "var(--xmlui-style-border-Text-secondary)", "margin-top-Text-secondary": "var(--xmlui-margin-top-Text-secondary)", "margin-bottom-Text-secondary": "var(--xmlui-margin-bottom-Text-secondary)", "padding-horizontal-Text-secondary": "var(--xmlui-padding-horizontal-Text-secondary)", "padding-vertical-Text-secondary": "var(--xmlui-padding-vertical-Text-secondary)", "transform-Text-secondary": "var(--xmlui-transform-Text-secondary)", "align-vertical-Text-secondary": "var(--xmlui-align-vertical-Text-secondary)", "letter-spacing-Text-secondary": "var(--xmlui-letter-spacing-Text-secondary)"}'`,text:"_text_1v46g_13",abbr:"_abbr_1v46g_23",cite:"_cite_1v46g_51",codefence:"_codefence_1v46g_79",code:"_code_1v46g_79",deleted:"_deleted_1v46g_135",inserted:"_inserted_1v46g_178",keyboard:"_keyboard_1v46g_221",marked:"_marked_1v46g_249",mono:"_mono_1v46g_292",sample:"_sample_1v46g_320",sup:"_sup_1v46g_348",sub:"_sub_1v46g_376",var:"_var_1v46g_404",title:"_title_1v46g_432",subtitle:"_subtitle_1v46g_460",small:"_small_1v46g_488",caption:"_caption_1v46g_516",placeholder:"_placeholder_1v46g_544",paragraph:"_paragraph_1v46g_572",subheading:"_subheading_1v46g_600",tableheading:"_tableheading_1v46g_628",secondary:"_secondary_1v46g_656",strong:"_strong_1v46g_684",truncateOverflow:"_truncateOverflow_1v46g_692",preserveLinebreaks:"_preserveLinebreaks_1v46g_699",noEllipsis:"_noEllipsis_1v46g_703"};function Mo(e){const t=e&&e>0?e:0;return t>1?{WebkitLineClamp:t,lineClamp:t,display:"-webkit-box",WebkitBoxOrient:"vertical",boxOrient:"vertical",whiteSpace:"initial"}:cn}function gn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ho(...e){return t=>e.forEach(o=>gn(o,t))}const vn=Y.forwardRef(function({uid:t,variant:o,maxLines:i=0,style:r,children:s,preserveLinebreaks:a,ellipses:c=!0,...u},w){const g=Y.useRef(null),d=w?Ho(g,w):g,C=Y.useMemo(()=>!o||!ko[o]?"div":ko[o],[o]);return re.jsx(re.Fragment,{children:re.jsx(C,{...u,ref:d,className:je([pt.text,pt[o||"default"],{[pt.truncateOverflow]:i>0,[pt.preserveLinebreaks]:a,[pt.noEllipsis]:!c}]),style:{...r,...Mo(i)},children:s})})}),bn={themeVars:`'{"color-text-FormItemLabel": "var(--xmlui-color-text-FormItemLabel)", "font-family-FormItemLabel": "var(--xmlui-font-family-FormItemLabel)", "font-size-FormItemLabel": "var(--xmlui-font-size-FormItemLabel)", "font-weight-FormItemLabel": "var(--xmlui-font-weight-FormItemLabel)", "font-style-FormItemLabel": "var(--xmlui-font-style-FormItemLabel)", "transform-text-FormItemLabel": "var(--xmlui-transform-text-FormItemLabel)", "color-text-FormItemLabel-required": "var(--xmlui-color-text-FormItemLabel-required)", "font-size-FormItemLabel-required": "var(--xmlui-font-size-FormItemLabel-required)", "font-weight-FormItemLabel-required": "var(--xmlui-font-weight-FormItemLabel-required)", "font-style-FormItemLabel-required": "var(--xmlui-font-style-FormItemLabel-required)", "transform-text-FormItemLabel-required": "var(--xmlui-transform-text-FormItemLabel-required)", "color-text-FormItemLabel-requiredMark": "var(--xmlui-color-text-FormItemLabel-requiredMark)"}'`,container:"_container_knwya_13",top:"_top_knwya_20",end:"_end_knwya_25",bottom:"_bottom_knwya_31",start:"_start_knwya_36",shrinkToLabel:"_shrinkToLabel_knwya_42",inputLabel:"_inputLabel_knwya_45",disabled:"_disabled_knwya_58",labelBreak:"_labelBreak_knwya_62",required:"_required_knwya_66",requiredMark:"_requiredMark_knwya_73"},yn={themeVars:`'{"size-Spinner": "var(--xmlui-size-Spinner)", "thickness-Spinner": "var(--xmlui-thickness-Spinner)", "color-border-Spinner": "var(--xmlui-color-border-Spinner)"}'`,"lds-ring":"_lds-ring_xu4p3_13",fullScreenSpinnerWrapper:"_fullScreenSpinnerWrapper_xu4p3_54"},tt="TextBox",Fo=y({status:"experimental",description:`The \`${tt}\` is an input component that allows users to input and edit textual data.`,props:{placeholder:et(),initialValue:Ee(),label:xe(),labelPosition:He("top"),labelWidth:Ue(tt),labelBreak:Ve(tt),maxLength:kt(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),startText:No(),startIcon:zo(),endText:Lo(),endIcon:Co()},events:{gotFocus:Be(tt),lostFocus:Se(tt),didChange:be(tt)},apis:{focus:Ye(tt),value:l("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ge()},themeVars:z(fn.themeVars),defaultThemeVars:{"radius-Input":"$radius","color-text-Input":"$color-text-primary","color-bg-Input--disabled":"$color-bg--disabled","thickness-border-Input":"1px","min-height-Input":"39px","padding-Input":"$space-2","style-border-Input":"solid","color-border-Input--disabled":"$color-border--disabled","color-text-Input--disabled":"$color-text--disabled","color-border-Input-error":"$color-border-Input-default--error","color-border-Input-warning":"$color-border-Input-default--warning","color-border-Input-success":"$color-border-Input-default--success","color-placeholder-Input":"$color-text-subtitle","color-adornment-Input":"$color-text-subtitle","color-outline-Input--focus":"$color-outline--focus","thickness-outline-Input--focus":"$thickness-outline--focus","style-outline-Input--focus":"$style-outline--focus","offset-outline-Input--focus":"$offset-outline--focus",light:{},dark:{}}}),Tn=y({...Fo,description:"The `Password` component is a specialized version of the `TextBox` component that allows users to input and edit passwords."}),Wo="Theme",kn=y({description:`The \`${Wo}\` component provides a way to define a particular theming context for its nested components. The XMLUI framework uses \`${Wo}\` to define the default theming context for all of its child components. Theme variables and theme settings only work in this context.`,allowArbitraryProps:!0,props:{themeId:l("This property specifies which theme to use by setting the theme's id."),tone:l("This property allows the setting of the current theme's tone. Tone is either `light` or `dark`."),root:l("This property indicates whether the component is at the root of the application.")},opaque:!0}),wn=[{value:"vertical",description:"This layout puts the navigation bar on the left side and displays its items vertically. The main content is aligned to the right (including the header and the footer), and its content is a single scroll container; every part of it moves as you scroll the page. This layout does not display the logo in the app header."},{value:"vertical-sticky",description:"Similar to `vertical`, the header and the navigation bar dock to the top of the main content's viewport, while the footer sticks to the bottom. This layout does not display the logo in the app header."},{value:"vertical-full-header",description:"Similar to `vertical-sticky`. However, the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom."},{value:"condensed",description:"Similar to `horizontal`. However, the header and the navigation bar are in a single header block. (default)"},{value:"condensed-sticky",description:"However, the header and the navigation bar are in a single header block."},{value:"horizontal",description:"This layout stacks the layout sections in a single column in this order: header, navigation bar, main content, and footer. The application is a single scroll container; every part moves as you scroll the page."},{value:"horizontal-sticky",description:"Similar to `horizontal`, the header and the navigation bar dock to the top of the viewport, while the footer sticks to the bottom."}];Y.createContext(null);const $n={themeVars:`'{"width-navPanel-App": "var(--xmlui-width-navPanel-App)", "shadow-header-App": "var(--xmlui-shadow-header-App)", "shadow-pages-App": "var(--xmlui-shadow-pages-App)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "border-bottom-AppHeader": "var(--xmlui-border-bottom-AppHeader)"}'`,wrapper:"_wrapper_1e0pi_13",vertical:"_vertical_1e0pi_23",contentWrapper:"_contentWrapper_1e0pi_27",navPanelWrapper:"_navPanelWrapper_1e0pi_32",PagesWrapper:"_PagesWrapper_1e0pi_36",footerWrapper:"_footerWrapper_1e0pi_40",sticky:"_sticky_1e0pi_43",horizontal:"_horizontal_1e0pi_47",verticalFullHeader:"_verticalFullHeader_1e0pi_68",PagesWrapperInner:"_PagesWrapperInner_1e0pi_85",scrollWholePage:"_scrollWholePage_1e0pi_97",headerWrapper:"_headerWrapper_1e0pi_100",content:"_content_1e0pi_27",noScrollbarGutters:"_noScrollbarGutters_1e0pi_138"},_n={themeVars:`'{"padding-horizontal-AppHeader": "var(--xmlui-padding-horizontal-AppHeader)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "padding-top-AppHeader": "var(--xmlui-padding-top-AppHeader)", "padding-bottom-AppHeader": "var(--xmlui-padding-bottom-AppHeader)", "padding-left-AppHeader": "var(--xmlui-padding-left-AppHeader)", "padding-right-AppHeader": "var(--xmlui-padding-right-AppHeader)", "padding-AppHeader": "var(--xmlui-padding-AppHeader)", "padding-horizontal-logo-AppHeader": "var(--xmlui-padding-horizontal-logo-AppHeader)", "padding-vertical-logo-AppHeader": "var(--xmlui-padding-vertical-logo-AppHeader)", "padding-top-logo-AppHeader": "var(--xmlui-padding-top-logo-AppHeader)", "padding-bottom-logo-AppHeader": "var(--xmlui-padding-bottom-logo-AppHeader)", "padding-left-logo-AppHeader": "var(--xmlui-padding-left-logo-AppHeader)", "padding-right-logo-AppHeader": "var(--xmlui-padding-right-logo-AppHeader)", "padding-logo-AppHeader": "var(--xmlui-padding-logo-AppHeader)", "color-border-horizontal-AppHeader": "var(--xmlui-color-border-horizontal-AppHeader)", "thickness-border-horizontal-AppHeader": "var(--xmlui-thickness-border-horizontal-AppHeader)", "style-border-horizontal-AppHeader": "var(--xmlui-style-border-horizontal-AppHeader)", "color-border-vertical-AppHeader": "var(--xmlui-color-border-vertical-AppHeader)", "thickness-border-vertical-AppHeader": "var(--xmlui-thickness-border-vertical-AppHeader)", "style-border-vertical-AppHeader": "var(--xmlui-style-border-vertical-AppHeader)", "color-border-left-AppHeader": "var(--xmlui-color-border-left-AppHeader)", "thickness-border-left-AppHeader": "var(--xmlui-thickness-border-left-AppHeader)", "style-border-left-AppHeader": "var(--xmlui-style-border-left-AppHeader)", "color-border-right-AppHeader": "var(--xmlui-color-border-right-AppHeader)", "thickness-border-right-AppHeader": "var(--xmlui-thickness-border-right-AppHeader)", "style-border-right-AppHeader": "var(--xmlui-style-border-right-AppHeader)", "color-border-top-AppHeader": "var(--xmlui-color-border-top-AppHeader)", "thickness-border-top-AppHeader": "var(--xmlui-thickness-border-top-AppHeader)", "style-border-top-AppHeader": "var(--xmlui-style-border-top-AppHeader)", "color-border-bottom-AppHeader": "var(--xmlui-color-border-bottom-AppHeader)", "thickness-border-bottom-AppHeader": "var(--xmlui-thickness-border-bottom-AppHeader)", "style-border-bottom-AppHeader": "var(--xmlui-style-border-bottom-AppHeader)", "color-border-AppHeader": "var(--xmlui-color-border-AppHeader)", "thickness-border-AppHeader": "var(--xmlui-thickness-border-AppHeader)", "style-border-AppHeader": "var(--xmlui-style-border-AppHeader)", "radius-AppHeader": "var(--xmlui-radius-AppHeader)", "width-logo-AppHeader": "var(--xmlui-width-logo-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "color-bg-AppHeader": "var(--xmlui-color-bg-AppHeader)", "max-content-width-AppHeader": "var(--xmlui-max-content-width-AppHeader)"}'`,header:"_header_1h7yt_13",headerInner:"_headerInner_1h7yt_36",full:"_full_1h7yt_51",childrenWrapper:"_childrenWrapper_1h7yt_55",logoAndTitle:"_logoAndTitle_1h7yt_67",logoContainer:"_logoContainer_1h7yt_80",customLogoContainer:"_customLogoContainer_1h7yt_89",rightItems:"_rightItems_1h7yt_98",appHub:"_appHub_1h7yt_110"},In={themeVars:'"[]"',img:"_img_dk2s3_13",clickable:"_clickable_dk2s3_19"},Bn={themeVars:`'{"radius-NavLink": "var(--xmlui-radius-NavLink)", "color-bg-NavLink": "var(--xmlui-color-bg-NavLink)", "color-bg-NavLink--hover": "var(--xmlui-color-bg-NavLink--hover)", "color-bg-NavLink--hover--active": "var(--xmlui-color-bg-NavLink--hover--active)", "color-bg-NavLink--active": "var(--xmlui-color-bg-NavLink--active)", "color-bg-NavLink--pressed": "var(--xmlui-color-bg-NavLink--pressed)", "color-bg-NavLink--pressed--active": "var(--xmlui-color-bg-NavLink--pressed--active)", "padding-horizontal-NavLink": "var(--xmlui-padding-horizontal-NavLink)", "padding-vertical-NavLink": "var(--xmlui-padding-vertical-NavLink)", "font-size-NavLink": "var(--xmlui-font-size-NavLink)", "color-text-NavLink": "var(--xmlui-color-text-NavLink)", "color-text-NavLink--hover": "var(--xmlui-color-text-NavLink--hover)", "color-text-NavLink--active": "var(--xmlui-color-text-NavLink--active)", "color-text-NavLink--hover--active": "var(--xmlui-color-text-NavLink--hover--active)", "color-text-NavLink--pressed": "var(--xmlui-color-text-NavLink--pressed)", "color-text-NavLink--pressed--active": "var(--xmlui-color-text-NavLink--pressed--active)", "color-icon-NavLink": "var(--xmlui-color-icon-NavLink)", "font-family-NavLink": "var(--xmlui-font-family-NavLink)", "font-weight-NavLink": "var(--xmlui-font-weight-NavLink)", "font-weight-NavLink--pressed": "var(--xmlui-font-weight-NavLink--pressed)", "font-weight-NavLink--active": "var(--xmlui-font-weight-NavLink--active)", "radius-indicator-NavLink": "var(--xmlui-radius-indicator-NavLink)", "thickness-indicator-NavLink": "var(--xmlui-thickness-indicator-NavLink)", "color-indicator-NavLink": "var(--xmlui-color-indicator-NavLink)", "color-indicator-NavLink--hover": "var(--xmlui-color-indicator-NavLink--hover)", "color-indicator-NavLink--active": "var(--xmlui-color-indicator-NavLink--active)", "color-indicator-NavLink--pressed": "var(--xmlui-color-indicator-NavLink--pressed)", "thickness-outline-NavLink--focus": "var(--xmlui-thickness-outline-NavLink--focus)", "color-outline-NavLink--focus": "var(--xmlui-color-outline-NavLink--focus)", "style-outline-NavLink--focus": "var(--xmlui-style-outline-NavLink--focus)", "offset-outline-NavLink--focus": "var(--xmlui-offset-outline-NavLink--focus)"}'`,content:"_content_qpkxv_13",base:"_base_qpkxv_13",icon:"_icon_qpkxv_33",includeHoverIndicator:"_includeHoverIndicator_qpkxv_39",displayActive:"_displayActive_qpkxv_49",navItemActive:"_navItemActive_qpkxv_86",disabled:"_disabled_qpkxv_121",vertical:"_vertical_qpkxv_125",indented:"_indented_qpkxv_134"},Sn={themeVars:`'{"color-border-horizontal-NavPanel": "var(--xmlui-color-border-horizontal-NavPanel)", "thickness-border-horizontal-NavPanel": "var(--xmlui-thickness-border-horizontal-NavPanel)", "style-border-horizontal-NavPanel": "var(--xmlui-style-border-horizontal-NavPanel)", "color-border-vertical-NavPanel": "var(--xmlui-color-border-vertical-NavPanel)", "thickness-border-vertical-NavPanel": "var(--xmlui-thickness-border-vertical-NavPanel)", "style-border-vertical-NavPanel": "var(--xmlui-style-border-vertical-NavPanel)", "color-border-left-NavPanel": "var(--xmlui-color-border-left-NavPanel)", "thickness-border-left-NavPanel": "var(--xmlui-thickness-border-left-NavPanel)", "style-border-left-NavPanel": "var(--xmlui-style-border-left-NavPanel)", "color-border-right-NavPanel": "var(--xmlui-color-border-right-NavPanel)", "thickness-border-right-NavPanel": "var(--xmlui-thickness-border-right-NavPanel)", "style-border-right-NavPanel": "var(--xmlui-style-border-right-NavPanel)", "color-border-top-NavPanel": "var(--xmlui-color-border-top-NavPanel)", "thickness-border-top-NavPanel": "var(--xmlui-thickness-border-top-NavPanel)", "style-border-top-NavPanel": "var(--xmlui-style-border-top-NavPanel)", "color-border-bottom-NavPanel": "var(--xmlui-color-border-bottom-NavPanel)", "thickness-border-bottom-NavPanel": "var(--xmlui-thickness-border-bottom-NavPanel)", "style-border-bottom-NavPanel": "var(--xmlui-style-border-bottom-NavPanel)", "color-border-NavPanel": "var(--xmlui-color-border-NavPanel)", "thickness-border-NavPanel": "var(--xmlui-thickness-border-NavPanel)", "style-border-NavPanel": "var(--xmlui-style-border-NavPanel)", "radius-NavPanel": "var(--xmlui-radius-NavPanel)", "color-bg-NavPanel": "var(--xmlui-color-bg-NavPanel)", "shadow-NavPanel": "var(--xmlui-shadow-NavPanel)", "height-AppHeader": "var(--xmlui-height-AppHeader)", "max-content-width-App": "var(--xmlui-max-content-width-App)", "padding-horizontal-NavPanel": "var(--xmlui-padding-horizontal-NavPanel)", "padding-horizontal-logo-NavPanel": "var(--xmlui-padding-horizontal-logo-NavPanel)", "padding-vertical-logo-NavPanel": "var(--xmlui-padding-vertical-logo-NavPanel)", "margin-bottom-logo-NavPanel": "var(--xmlui-margin-bottom-logo-NavPanel)", "padding-vertical-AppHeader": "var(--xmlui-padding-vertical-AppHeader)", "align-content-AppHeader": "var(--xmlui-align-content-AppHeader)"}'`,wrapper:"_wrapper_dzy35_13",condensed:"_condensed_dzy35_40",horizontal:"_horizontal_dzy35_43",wrapperInner:"_wrapperInner_dzy35_48",logoWrapper:"_logoWrapper_dzy35_67",inDrawer:"_inDrawer_dzy35_77"};function En(e){return!e||typeof e=="string"||typeof e=="number"?e:e.queryParams!==void 0?{...e,search:new URLSearchParams(xo.omitBy(e.queryParams,xo.isUndefined)).toString()}:e}const ot="App",An=y({status:"stable",description:`The \`${ot}\` component provides a UI frame for XMLUI apps. According to predefined (and run-time configurable) structure templates, \`${ot}\` allows you to display your preferred layout.`,props:{layout:l("This property sets the layout template of the app. This setting determines the position and size of the app parts (such as header, navigation bar, footer, etc.) and the app's scroll behavior.",wn),loggedInUser:l("Stores information about the currently logged in user."),logoTemplate:te("Optional template of the app logo"),logo:l("Optional logo path"),"logo-dark":l("Optional logo path in dark tone"),"logo-light":l("Optional logo path in light tone"),name:l("Optional application name (visible in the browser tab)"),scrollWholePage:l("This boolean property specifies whether the whole page should scroll (`true`) or just the content area (`false`). The default value is `true`.",null,"boolean",!0),noScrollbarGutters:l("This boolean property specifies whether the scrollbar gutters should be hidden.",null,"boolean",!1),defaultTone:l(`This property sets the app's default tone ("light" or "dark").`,null,"string","light"),defaultTheme:l("This property sets the app's default theme.",null,"string","xmlui")},events:{ready:l(`This event fires when the \`${ot}\` component finishes rendering on the page.`)},themeVars:z($n.themeVars),defaultThemeVars:{[`width-navPanel-${ot}`]:"$space-64",[`max-content-width-${ot}`]:"$max-content-width",[`shadow-header-${ot}`]:"$shadow-spread",[`shadow-pages-${ot}`]:"$shadow-spread",light:{},dark:{}}});function Nt(e,t){return{[`padding-left-${e}`]:(t==null?void 0:t.left)??`$padding-horizontal-${e}`,[`padding-right-${e}`]:(t==null?void 0:t.right)??`$padding-horizontal-${e}`,[`padding-top-${e}`]:(t==null?void 0:t.top)??`$padding-vertical-${e}`,[`padding-bottom-${e}`]:(t==null?void 0:t.bottom)??`$padding-vertical-${e}`,[`padding-horizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`padding-vertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$padding-top-${e} $padding-right-${e} $padding-bottom-${e} $padding-left-${e}`}}function Zt(e,t){var i,r,s,a,c,u;return{[`radius-${e}`]:"$radius",...o("left",(t==null?void 0:t.left)??(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("right",(t==null?void 0:t.right)??(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("top",(t==null?void 0:t.top)??(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),...o("bottom",(t==null?void 0:t.bottom)??(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),...o("horizontal",(t==null?void 0:t.horizontal)??(t==null?void 0:t.all)),...o("vertical",(t==null?void 0:t.vertical)??(t==null?void 0:t.all)),[`color-border-${e}`]:((i=t==null?void 0:t.all)==null?void 0:i.color)??"",[`thickness-border-${e}`]:((r=t==null?void 0:t.all)==null?void 0:r.thickness)??"",[`style-border-${e}`]:((s=t==null?void 0:t.all)==null?void 0:s.style)??"",[`border-${e}`]:`${((a=t==null?void 0:t.all)==null?void 0:a.thickness)??`$thickness-border-${e}`} ${((c=t==null?void 0:t.all)==null?void 0:c.style)??`$style-border-${e}`} ${((u=t==null?void 0:t.all)==null?void 0:u.color)??`$color-border-${e}`} `};function o(w,g){return{[`color-border-${w}-${e}`]:(g==null?void 0:g.color)??"",[`thickness-border-${w}-${e}`]:(g==null?void 0:g.thickness)??"",[`style-border-${w}-${e}`]:(g==null?void 0:g.style)??"",[`border-${w}-${e}`]:(g==null?void 0:g.all)??`$thickness-border-${w}-${e} $style-border-${w}-${e} $color-border-${w}-${e}`}}}const Ro="AppHeader",Nn=y({status:"experimental",description:`\`${Ro}\` is a placeholder within \`App\` to define a custom application header.`,props:{profileMenuTemplate:te(`This property makes the profile menu slot of the \`${Ro}\` component customizable.`),logoTemplate:te("This property defines the template to use for the logo. With this property, you can construct your custom logo instead of using a single image."),titleTemplate:te("This property defines the template to use for the title. With this property, you can construct your custom title instead of using a single image."),title:l("Title for the application logo"),showLogo:l("Show the logo in the header",null,"boolean",!0)},themeVars:z(_n.themeVars),defaultThemeVars:{"height-AppHeader":"$space-14","max-content-width-AppHeader":"$max-content-width-App",...Zt("AppHeader",{bottom:{color:"$color-border",thickness:"1px",style:"solid"},all:{color:"$color-border",thickness:"0",style:"solid"}}),...Nt("logo-AppHeader",{horizontal:"$space-0",vertical:"$space-4"}),...Nt("AppHeader",{horizontal:"$space-4",vertical:"$space-0"}),"radius-AppHeader":"0px",light:{"color-bg-AppHeader":"white"},dark:{"color-bg-AppHeader":"$color-surface-900"}}}),_t="AppState",zn=y({description:`${_t} is a functional component (without a visible user interface) that helps store and manage the app's state.`,props:{bucket:l(`This property is the identifier of the bucket to which the \`${_t}\` instance is bound. Multiple \`${_t}\` instances with the same bucket will share the same state object: any of them updating the state will cause the other instances to view the new, updated state.`),initialValue:l(`This property contains the initial state value. Though you can use multiple \`${_t}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${_t}\` with an explicit initial value, that value is immediately set. Multiple initial values may result in undesired initialization.`)},apis:{update:l("This method updates the application state object bound to the `AppState` instance. The function's single argument is an object that specifies the new state value.")},nonVisual:!0}),rt={themeVars:`'{"color-bg-Avatar": "var(--xmlui-color-bg-Avatar)", "color-border-Avatar": "var(--xmlui-color-border-Avatar)", "thickness-border-Avatar": "var(--xmlui-thickness-border-Avatar)", "style-border-Avatar": "var(--xmlui-style-border-Avatar)", "border-Avatar": "var(--xmlui-border-Avatar)", "radius-Avatar": "var(--xmlui-radius-Avatar)", "shadow-Avatar": "var(--xmlui-shadow-Avatar)", "color-text-Avatar": "var(--xmlui-color-text-Avatar)", "font-weight-Avatar": "var(--xmlui-font-weight-Avatar)"}'`,container:"_container_1fbc9_13",xs:"_xs_1fbc9_34",sm:"_sm_1fbc9_41",md:"_md_1fbc9_48",lg:"_lg_1fbc9_55",clickable:"_clickable_1fbc9_62"},Ln=Y.forwardRef(function({size:t="sm",url:o,name:i,style:r,onClick:s,...a},c){let u=null;return!o&&i&&(u=i.trim().split(" ").filter(w=>!!w.trim().length).map(w=>w[0].toUpperCase()).slice(0,3)),re.jsx("div",{...a,ref:c,className:je(rt.container,{[rt.xs]:t==="xs",[rt.sm]:t==="sm",[rt.md]:t==="md",[rt.lg]:t==="lg",[rt.clickable]:!!s}),style:{backgroundImage:o?`url(${o})`:"none",...r},onClick:s,children:u})}),pe="Avatar",Cn=y({description:`The \`${pe}\` component represents a user, group (or other entity's) avatar with a small image or initials.`,props:{size:l(`This property defines the display size of the ${pe}.`,Vt,"string","sm"),name:l(`This property sets the name value the ${pe} uses to display initials.`),url:l(`This property specifies the URL of the image to display in the ${pe}.`)},events:{click:l("This event is triggered when the avatar is clicked.")},themeVars:z(rt.themeVars),defaultThemeVars:{[`radius-${pe}`]:"4px",[`thickness-border-${pe}`]:"0px",[`style-border-${pe}`]:"solid",[`border-${pe}`]:`$thickness-border-${pe} $style-border-${pe} $color-border-${pe}`,[`shadow-${pe}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`color-text-${pe}`]:"$color-text-secondary",[`font-weight-${pe}`]:"$font-weight-bold",light:{[`color-bg-${pe}`]:"$color-surface-100",[`color-border-${pe}`]:"$color-surface-400A80"},dark:{[`color-bg-${pe}`]:"$color-surface-800",[`color-border-${pe}`]:"$color-surface-700"}}}),Pn={themeVars:`'{"color-bg-Badge": "var(--xmlui-color-bg-Badge)", "radius-Badge": "var(--xmlui-radius-Badge)", "color-text-Badge": "var(--xmlui-color-text-Badge)", "font-size-Badge": "var(--xmlui-font-size-Badge)", "font-size-Badge-pill": "var(--xmlui-font-size-Badge-pill)", "font-weight-Badge": "var(--xmlui-font-weight-Badge)", "font-weight-Badge-pill": "var(--xmlui-font-weight-Badge-pill)", "padding-horizontal-Badge": "var(--xmlui-padding-horizontal-Badge)", "padding-vertical-Badge": "var(--xmlui-padding-vertical-Badge)", "padding-Badge": "var(--xmlui-padding-Badge)", "padding-horizontal-Badge-pill": "var(--xmlui-padding-horizontal-Badge-pill)", "padding-vertical-Badge-pill": "var(--xmlui-padding-vertical-Badge-pill)", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)"}'`,badge:"_badge_xcyhw_13",pill:"_pill_xcyhw_29"},fe="Badge",On=y({status:"stable",description:`The \`${fe}\` is a text label that accepts a color map to define its background color and, optionally, its label color.`,props:{value:l("The text that the component displays"),variant:l("Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners."),colorMap:l(`The \`${fe}\` component supports the mapping of a list of colors using the \`value\` prop as the key. Provide the component with a list or key-value pairs in two ways:`),themeColor:l("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:l("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:l("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:l("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:l("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:z(Pn.themeVars),defaultThemeVars:{[`padding-horizontal-${fe}`]:"$space-2",[`padding-vertical-${fe}`]:"$space-0_5",[`padding-${fe}`]:`$padding-vertical-${fe} $padding-horizontal-${fe}`,[`padding-${fe}-pill`]:`$padding-vertical-${fe}-pill $padding-horizontal-${fe}-pill`,[`radius-${fe}`]:"4px",[`font-size-${fe}`]:"0.8em",[`font-size-${fe}-pill`]:"0.8em",light:{[`color-bg-${fe}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${fe}`]:"white"},dark:{[`color-bg-${fe}`]:"rgba($color-secondary-500-rgb, .6)",[`color-text-${fe}`]:"$color-surface-50"}}}),Dn=Y.createContext(null),Mn=y({description:"As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",opaque:!0,props:{id:l("The unique identifier of the bookmark. You can use this identifier in links to navigate to this component's location."),level:l("The level of the bookmark. The level is used to determine the bookmark's position in the table of contents.")}}),It={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "padding-horizontal-Card": "var(--xmlui-padding-horizontal-Card)", "padding-vertical-Card": "var(--xmlui-padding-vertical-Card)", "shadow-Card": "var(--xmlui-shadow-Card)", "color-bg-Card": "var(--xmlui-color-bg-Card)", "radius-Card": "var(--xmlui-radius-Card)", "color-border-Card": "var(--xmlui-color-border-Card)", "thickness-border-Card": "var(--xmlui-thickness-border-Card)", "style-border-Card": "var(--xmlui-style-border-Card)", "border-Card": "var(--xmlui-border-Card)"}'`,wrapper:"_wrapper_qmtvs_13",horizontal:"_horizontal_qmtvs_23",vertical:"_vertical_qmtvs_28",isClickable:"_isClickable_qmtvs_31"},ht={themeVars:`'{"color-text-Link": "var(--xmlui-color-text-Link)", "color-text-Link--active": "var(--xmlui-color-text-Link--active)", "color-text-Link--hover": "var(--xmlui-color-text-Link--hover)", "color-text-Link--hover--active": "var(--xmlui-color-text-Link--hover--active)", "font-family-Link": "var(--xmlui-font-family-Link)", "font-size-Link": "var(--xmlui-font-size-Link)", "font-weight-Link": "var(--xmlui-font-weight-Link)", "font-weight-Link--active": "var(--xmlui-font-weight-Link--active)", "color-decoration-Link": "var(--xmlui-color-decoration-Link)", "offset-decoration-Link": "var(--xmlui-offset-decoration-Link)", "line-decoration-Link": "var(--xmlui-line-decoration-Link)", "style-decoration-Link": "var(--xmlui-style-decoration-Link)", "thickness-decoration-Link": "var(--xmlui-thickness-decoration-Link)", "padding-icon-Link": "var(--xmlui-padding-icon-Link)", "gap-icon-Link": "var(--xmlui-gap-icon-Link)", "thickness-outline-Link--focus": "var(--xmlui-thickness-outline-Link--focus)", "color-outline-Link--focus": "var(--xmlui-color-outline-Link--focus)", "style-outline-Link--focus": "var(--xmlui-style-outline-Link--focus)", "offset-outline-Link--focus": "var(--xmlui-offset-outline-Link--focus)"}'`,container:"_container_nq0ie_13",active:"_active_nq0ie_28",disabled:"_disabled_nq0ie_32",iconWrapper:"_iconWrapper_nq0ie_48"},Hn=Y.forwardRef(function({to:t,children:o,icon:i,active:r,onClick:s,target:a,disabled:c,style:u},w){const g=!!i&&!o,d=Y.useMemo(()=>En(t),[t]),C=t?Er.Link:"div";return re.jsxs(C,{ref:w,to:d,style:u,target:a,onClick:s,className:je(ht.container,{[ht.iconLink]:g,[ht.active]:r,[ht.disabled]:c}),children:[i&&re.jsx("div",{className:ht.iconWrapper,children:re.jsx(Qr,{name:i})}),o]})}),we={themeVars:`'{"Heading:color-text-H1": "var(--xmlui-color-text-H1)", "Heading:letter-spacing-H1": "var(--xmlui-letter-spacing-H1)", "Heading:font-family-H1": "var(--xmlui-font-family-H1)", "Heading:font-weight-H1": "var(--xmlui-font-weight-H1)", "font-size-H1": "var(--xmlui-font-size-H1)", "line-height-H1": "var(--xmlui-line-height-H1)", "margin-top-H1": "var(--xmlui-margin-top-H1)", "margin-bottom-H1": "var(--xmlui-margin-bottom-H1)", "Heading:line-decoration-H1": "var(--xmlui-line-decoration-H1)", "Heading:color-decoration-H1": "var(--xmlui-color-decoration-H1)", "Heading:style-decoration-H1": "var(--xmlui-style-decoration-H1)", "Heading:thickness-decoration-H1": "var(--xmlui-thickness-decoration-H1)", "Heading:offset-decoration-H1": "var(--xmlui-offset-decoration-H1)", "Heading:color-text-H2": "var(--xmlui-color-text-H2)", "Heading:letter-spacing-H2": "var(--xmlui-letter-spacing-H2)", "Heading:font-family-H2": "var(--xmlui-font-family-H2)", "Heading:font-weight-H2": "var(--xmlui-font-weight-H2)", "font-size-H2": "var(--xmlui-font-size-H2)", "line-height-H2": "var(--xmlui-line-height-H2)", "margin-top-H2": "var(--xmlui-margin-top-H2)", "margin-bottom-H2": "var(--xmlui-margin-bottom-H2)", "Heading:line-decoration-H2": "var(--xmlui-line-decoration-H2)", "Heading:color-decoration-H2": "var(--xmlui-color-decoration-H2)", "Heading:style-decoration-H2": "var(--xmlui-style-decoration-H2)", "Heading:thickness-decoration-H2": "var(--xmlui-thickness-decoration-H2)", "Heading:offset-decoration-H2": "var(--xmlui-offset-decoration-H2)", "Heading:color-text-H3": "var(--xmlui-color-text-H3)", "Heading:letter-spacing-H3": "var(--xmlui-letter-spacing-H3)", "Heading:font-family-H3": "var(--xmlui-font-family-H3)", "Heading:font-weight-H3": "var(--xmlui-font-weight-H3)", "font-size-H3": "var(--xmlui-font-size-H3)", "line-height-H3": "var(--xmlui-line-height-H3)", "margin-top-H3": "var(--xmlui-margin-top-H3)", "margin-bottom-H3": "var(--xmlui-margin-bottom-H3)", "Heading:line-decoration-H3": "var(--xmlui-line-decoration-H3)", "Heading:color-decoration-H3": "var(--xmlui-color-decoration-H3)", "Heading:style-decoration-H3": "var(--xmlui-style-decoration-H3)", "Heading:thickness-decoration-H3": "var(--xmlui-thickness-decoration-H3)", "Heading:offset-decoration-H3": "var(--xmlui-offset-decoration-H3)", "Heading:color-text-H4": "var(--xmlui-color-text-H4)", "Heading:letter-spacing-H4": "var(--xmlui-letter-spacing-H4)", "Heading:font-family-H4": "var(--xmlui-font-family-H4)", "Heading:font-weight-H4": "var(--xmlui-font-weight-H4)", "font-size-H4": "var(--xmlui-font-size-H4)", "line-height-H4": "var(--xmlui-line-height-H4)", "margin-top-H4": "var(--xmlui-margin-top-H4)", "margin-bottom-H4": "var(--xmlui-margin-bottom-H4)", "Heading:line-decoration-H4": "var(--xmlui-line-decoration-H4)", "Heading:color-decoration-H4": "var(--xmlui-color-decoration-H4)", "Heading:style-decoration-H4": "var(--xmlui-style-decoration-H4)", "Heading:thickness-decoration-H4": "var(--xmlui-thickness-decoration-H4)", "Heading:offset-decoration-H4": "var(--xmlui-offset-decoration-H4)", "Heading:color-text-H5": "var(--xmlui-color-text-H5)", "Heading:letter-spacing-H5": "var(--xmlui-letter-spacing-H5)", "Heading:font-family-H5": "var(--xmlui-font-family-H5)", "Heading:font-weight-H5": "var(--xmlui-font-weight-H5)", "font-size-H5": "var(--xmlui-font-size-H5)", "line-height-H5": "var(--xmlui-line-height-H5)", "margin-top-H5": "var(--xmlui-margin-top-H5)", "margin-bottom-H5": "var(--xmlui-margin-bottom-H5)", "Heading:line-decoration-H5": "var(--xmlui-line-decoration-H5)", "Heading:color-decoration-H5": "var(--xmlui-color-decoration-H5)", "Heading:style-decoration-H5": "var(--xmlui-style-decoration-H5)", "Heading:thickness-decoration-H5": "var(--xmlui-thickness-decoration-H5)", "Heading:offset-decoration-H5": "var(--xmlui-offset-decoration-H5)", "Heading:color-text-H6": "var(--xmlui-color-text-H6)", "Heading:letter-spacing-H6": "var(--xmlui-letter-spacing-H6)", "Heading:font-family-H6": "var(--xmlui-font-family-H6)", "Heading:font-weight-H6": "var(--xmlui-font-weight-H6)", "font-size-H6": "var(--xmlui-font-size-H6)", "line-height-H6": "var(--xmlui-line-height-H6)", "margin-top-H6": "var(--xmlui-margin-top-H6)", "margin-bottom-H6": "var(--xmlui-margin-bottom-H6)", "Heading:line-decoration-H6": "var(--xmlui-line-decoration-H6)", "Heading:color-decoration-H6": "var(--xmlui-color-decoration-H6)", "Heading:style-decoration-H6": "var(--xmlui-style-decoration-H6)", "Heading:thickness-decoration-H6": "var(--xmlui-thickness-decoration-H6)", "Heading:offset-decoration-H6": "var(--xmlui-offset-decoration-H6)"}'`,heading:"_heading_1tifa_13",h1:"_h1_1tifa_13",h2:"_h2_1tifa_28",h3:"_h3_1tifa_43",h4:"_h4_1tifa_58",h5:"_h5_1tifa_73",h6:"_h6_1tifa_88",truncateOverflow:"_truncateOverflow_1tifa_108",preserveLinebreaks:"_preserveLinebreaks_1tifa_114",noEllipsis:"_noEllipsis_1tifa_118"},qo=Y.forwardRef(function({uid:t,level:o="h1",children:i,sx:r,style:s,title:a,maxLines:c=0,preserveLinebreaks:u,ellipses:w=!0,className:g},d){const C=o==null?void 0:o.toLowerCase(),b=Y.useRef(null),[D,S]=Y.useState(null),_=Y.useRef(null),oe=Y.useContext(Dn),$=oe==null?void 0:oe.registerHeading,U=oe==null?void 0:oe.observeIntersection,he=d?Ho(b,d):b;return Y.useEffect(()=>{var me,de,ne,W;if(U&&b.current){const M=(W=(ne=(de=(me=b.current.textContent)==null?void 0:me.trim())==null?void 0:de.replace(/[^\w\s-]/g,""))==null?void 0:ne.replace(/\s+/g,"-"))==null?void 0:W.toLowerCase();S(M||null)}},[U]),Y.useEffect(()=>{if(U&&b.current&&D)return $==null?void 0:$({id:D,level:parseInt(o.replace("h","")),text:b.current.textContent.trim(),anchor:_.current})},[D,U,$,o]),re.jsxs(C,{ref:he,id:t,title:a,style:{...r,...s,...Mo(c)},className:je(we.heading,we[C],g||"",{[we.truncateOverflow]:c>0,[we.preserveLinebreaks]:u,[we.noEllipsis]:!w}),children:[D&&U&&re.jsx("span",{ref:_,id:D,style:{width:0,height:0}}),i]})}),Uo="vertical";Y.forwardRef(function({children:t,orientation:o=Uo,style:i,title:r,subtitle:s,linkTo:a,avatarUrl:c,showAvatar:u=!!c||!1,onClick:w},g){const d={level:"h2"};return re.jsxs("div",{ref:g,className:je(It.wrapper,{[It.isClickable]:!!w,[It.vertical]:o==="vertical",[It.horizontal]:o==="horizontal"}),style:i,onClick:w,children:[[r,s,c,u].some(Boolean)&&re.jsxs(Do,{orientation:"horizontal",verticalAlignment:"center",style:{gap:"1rem"},children:[u&&re.jsx(Ln,{url:c,name:r}),re.jsxs(Do,{orientation:"vertical",children:[a?r?re.jsx(Hn,{to:a+"",children:re.jsx(qo,{...d,children:r})}):null:r?re.jsx(qo,{...d,children:r}):null,s!==void 0&&re.jsx(vn,{variant:"small",children:s})]})]}),t]})});const ie="Card",Fn=y({description:`The \`${ie}\` component is a container for cohesive elements, often rendered visually as a card.`,props:{avatarUrl:l(`Show the avatar (\`true\`) or not (\`false\`). If not specified, the ${ie} will show the first letters of the [\`title\`](#title).`),showAvatar:l(`Indicates whether the ${ie} should be displayed`,null,"boolean"),title:l("This prop sets the prestyled title."),subtitle:l("This prop sets the prestyled subtitle."),linkTo:l("This property wraps the title in a `Link` component that is clickable to navigate."),orientation:l(`An optional property that governs the ${ie}'s orientation (whether the ${ie} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${ie} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,Gt,"string",Uo)},events:{click:qe(ie)},themeVars:z(It.themeVars),defaultThemeVars:{[`padding-horizontal-${ie}`]:"$space-4",[`padding-vertical-${ie}`]:"$space-4",[`padding-${ie}`]:`$padding-vertical-${ie} $padding-horizontal-${ie}`,[`color-border-${ie}`]:"$color-border",[`thickness-border-${ie}`]:"1px",[`style-border-${ie}`]:"solid",[`border-${ie}`]:`$thickness-border-${ie} $style-border-${ie} $color-border-${ie}`,[`radius-${ie}`]:"$radius",[`shadow-${ie}`]:"none",light:{[`color-bg-${ie}`]:"white"},dark:{[`color-bg-${ie}`]:"$color-surface-900"}}}),Vo="ChangeListener",Wn=y({description:`\`${Vo}\` is a functional component (it renders no UI) to trigger an action when a particular value (component property, state, etc.) changes.`,props:{listenTo:l("Value to the changes of which this component listens."),throttleWaitInMs:l("This variable sets a throttling time (in milliseconds) to apply when executing the `didChange` event handler. All changes within that throttling time will only fire the `didChange` event once.")},events:{didChange:be(Vo)}}),Go={themeVars:`'{"Input:radius-Checkbox-default": "var(--xmlui-radius-Checkbox-default)", "Input:color-border-Checkbox-default": "var(--xmlui-color-border-Checkbox-default)", "Input:color-bg-Checkbox-default": "var(--xmlui-color-bg-Checkbox-default)", "Input:thickness-outline-Checkbox-default--focus": "var(--xmlui-thickness-outline-Checkbox-default--focus)", "Input:color-outline-Checkbox-default--focus": "var(--xmlui-color-outline-Checkbox-default--focus)", "Input:style-outline-Checkbox-default--focus": "var(--xmlui-style-outline-Checkbox-default--focus)", "Input:offset-outline-Checkbox-default--focus": "var(--xmlui-offset-outline-Checkbox-default--focus)", "Input:color-border-Checkbox-default--hover": "var(--xmlui-color-border-Checkbox-default--hover)", "Input:color-bg-Checkbox--disabled": "var(--xmlui-color-bg-Checkbox--disabled)", "Input:color-border-Checkbox--disabled": "var(--xmlui-color-border-Checkbox--disabled)", "Input:radius-Checkbox-error": "var(--xmlui-radius-Checkbox-error)", "Input:color-border-Checkbox-error": "var(--xmlui-color-border-Checkbox-error)", "Input:color-bg-Checkbox-error": "var(--xmlui-color-bg-Checkbox-error)", "Input:thickness-outline-Checkbox-error--focus": "var(--xmlui-thickness-outline-Checkbox-error--focus)", "Input:color-outline-Checkbox-error--focus": "var(--xmlui-color-outline-Checkbox-error--focus)", "Input:style-outline-Checkbox-error--focus": "var(--xmlui-style-outline-Checkbox-error--focus)", "Input:offset-outline-Checkbox-error--focus": "var(--xmlui-offset-outline-Checkbox-error--focus)", "Input:radius-Checkbox-warning": "var(--xmlui-radius-Checkbox-warning)", "Input:color-border-Checkbox-warning": "var(--xmlui-color-border-Checkbox-warning)", "Input:color-bg-Checkbox-warning": "var(--xmlui-color-bg-Checkbox-warning)", "Input:thickness-outline-Checkbox-warning--focus": "var(--xmlui-thickness-outline-Checkbox-warning--focus)", "Input:color-outline-Checkbox-warning--focus": "var(--xmlui-color-outline-Checkbox-warning--focus)", "Input:style-outline-Checkbox-warning--focus": "var(--xmlui-style-outline-Checkbox-warning--focus)", "Input:offset-outline-Checkbox-warning--focus": "var(--xmlui-offset-outline-Checkbox-warning--focus)", "Input:radius-Checkbox-success": "var(--xmlui-radius-Checkbox-success)", "Input:color-border-Checkbox-success": "var(--xmlui-color-border-Checkbox-success)", "Input:color-bg-Checkbox-success": "var(--xmlui-color-bg-Checkbox-success)", "Input:thickness-outline-Checkbox-success--focus": "var(--xmlui-thickness-outline-Checkbox-success--focus)", "Input:color-outline-Checkbox-success--focus": "var(--xmlui-color-outline-Checkbox-success--focus)", "Input:style-outline-Checkbox-success--focus": "var(--xmlui-style-outline-Checkbox-success--focus)", "Input:offset-outline-Checkbox-success--focus": "var(--xmlui-offset-outline-Checkbox-success--focus)", "color-bg-indicator-Checkbox": "var(--xmlui-color-bg-indicator-Checkbox)", "Input:color-border-checked-Checkbox": "var(--xmlui-color-border-checked-Checkbox)", "Input:color-bg-checked-Checkbox": "var(--xmlui-color-bg-checked-Checkbox)", "Input:color-border-checked-Checkbox-error": "var(--xmlui-color-border-checked-Checkbox-error)", "Input:color-bg-checked-Checkbox-error": "var(--xmlui-color-bg-checked-Checkbox-error)", "Input:color-border-checked-Checkbox-warning": "var(--xmlui-color-border-checked-Checkbox-warning)", "Input:color-bg-checked-Checkbox-warning": "var(--xmlui-color-bg-checked-Checkbox-warning)", "Input:color-border-checked-Checkbox-success": "var(--xmlui-color-border-checked-Checkbox-success)", "Input:color-bg-checked-Checkbox-success": "var(--xmlui-color-bg-checked-Checkbox-success)", "Input:color-border-Switch": "var(--xmlui-color-border-Switch)", "Input:color-bg-Switch": "var(--xmlui-color-bg-Switch)", "Input:color-border-Switch-default--hover": "var(--xmlui-color-border-Switch-default--hover)", "Input:color-bg-Switch--disabled": "var(--xmlui-color-bg-Switch--disabled)", "Input:color-border-Switch--disabled": "var(--xmlui-color-border-Switch--disabled)", "Input:color-border-Switch-error": "var(--xmlui-color-border-Switch-error)", "Input:color-border-Switch-warning": "var(--xmlui-color-border-Switch-warning)", "Input:color-border-Switch-success": "var(--xmlui-color-border-Switch-success)", "color-bg-indicator-Switch": "var(--xmlui-color-bg-indicator-Switch)", "Input:color-border-checked-Switch": "var(--xmlui-color-border-checked-Switch)", "Input:color-bg-checked-Switch": "var(--xmlui-color-bg-checked-Switch)", "Input:color-border-checked-Switch-error": "var(--xmlui-color-border-checked-Switch-error)", "Input:color-bg-checked-Switch-error": "var(--xmlui-color-bg-checked-Switch-error)", "Input:color-border-checked-Switch-warning": "var(--xmlui-color-border-checked-Switch-warning)", "Input:color-bg-checked-Switch-warning": "var(--xmlui-color-bg-checked-Switch-warning)", "Input:color-border-checked-Switch-success": "var(--xmlui-color-border-checked-Switch-success)", "Input:color-bg-checked-Switch-success": "var(--xmlui-color-bg-checked-Switch-success)", "Input:thickness-outline-Switch--focus": "var(--xmlui-thickness-outline-Switch--focus)", "Input:color-outline-Switch--focus": "var(--xmlui-color-outline-Switch--focus)", "Input:style-outline-Switch--focus": "var(--xmlui-style-outline-Switch--focus)", "Input:offset-outline-Switch--focus": "var(--xmlui-offset-outline-Switch--focus)"}'`,resetAppearance:"_resetAppearance_fdujw_13",checkbox:"_checkbox_fdujw_21",error:"_error_fdujw_50",warning:"_warning_fdujw_61",valid:"_valid_fdujw_72",switch:"_switch_fdujw_132"},j="Checkbox",Rn=y({status:"stable",description:`The \`${j}\` component allows users to make binary choices, typically between checked or unchecked. It consists of a small box that can be toggled on or off by clicking on it.`,props:{indeterminate:So(),label:xe(),labelPosition:He("end"),labelWidth:Ue(j),labelBreak:Ve(j),required:Oe(),initialValue:Ee(!1),autoFocus:ye(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),description:l(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description of the ${j} besides its label.`)},events:{click:qe(j),gotFocus:Be(j),lostFocus:Se(j),didChange:be(j)},apis:{value:Ao(),setValue:Ge()},themeVars:z(Go.themeVars),defaultThemeVars:{[`color-border-checked-${j}-error`]:`$color-border-${j}-error`,[`color-bg-checked-${j}-error`]:`$color-border-${j}-error`,[`color-border-checked-${j}-warning`]:`$color-border-${j}-warning`,[`color-bg-checked-${j}-warning`]:`$color-border-${j}-warning`,[`color-border-checked-${j}-success`]:`$color-border-${j}-success`,[`color-bg-checked-${j}-success`]:`$color-border-${j}-success`,light:{[`color-bg-indicator-${j}`]:"$color-bg-primary",[`color-border-checked-${j}`]:"$color-primary-500",[`color-bg-checked-${j}`]:"$color-primary-500",[`color-bg-${j}--disabled`]:"$color-surface-200"},dark:{[`color-bg-indicator-${j}`]:"$color-bg-primary",[`color-border-checked-${j}`]:"$color-primary-400",[`color-bg-checked-${j}`]:"$color-primary-400",[`color-bg-${j}--disabled`]:"$color-surface-800"}}}),qn={themeVars:`'{"color-bg-ContentSeparator": "var(--xmlui-color-bg-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_qlxwk_13",horizontal:"_horizontal_qlxwk_16",vertical:"_vertical_qlxwk_20"},Jt="ContentSeparator",Un=y({description:`A \`${Jt}\` is a component that divides or separates content visually within a layout. It serves as a visual cue to distinguish between different sections or groups of content, helping to improve readability and organization.`,props:{size:l("This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical)."),orientation:l("Sets the main axis of the component",Gt)},themeVars:z(qn.themeVars),defaultThemeVars:{[`color-bg-${Jt}`]:"$color-border",[`size-${Jt}`]:"1px",light:{},dark:{}}}),Vn={themeVars:`'{"Input:min-height-DatePicker": "var(--xmlui-min-height-DatePicker)", "Input:font-size-DatePicker": "var(--xmlui-font-size-DatePicker)", "Input:radius-DatePicker-default": "var(--xmlui-radius-DatePicker-default)", "Input:color-border-DatePicker-default": "var(--xmlui-color-border-DatePicker-default)", "Input:thickness-border-DatePicker-default": "var(--xmlui-thickness-border-DatePicker-default)", "Input:style-border-DatePicker-default": "var(--xmlui-style-border-DatePicker-default)", "Input:color-bg-DatePicker-default": "var(--xmlui-color-bg-DatePicker-default)", "Input:shadow-DatePicker-default": "var(--xmlui-shadow-DatePicker-default)", "Input:color-text-DatePicker-default": "var(--xmlui-color-text-DatePicker-default)", "Input:color-border-DatePicker-default--hover": "var(--xmlui-color-border-DatePicker-default--hover)", "Input:color-bg-DatePicker-default--hover": "var(--xmlui-color-bg-DatePicker-default--hover)", "Input:shadow-DatePicker-default--hover": "var(--xmlui-shadow-DatePicker-default--hover)", "Input:color-text-DatePicker-default--hover": "var(--xmlui-color-text-DatePicker-default--hover)", "Input:thickness-outline-DatePicker-default--focus": "var(--xmlui-thickness-outline-DatePicker-default--focus)", "Input:color-outline-DatePicker-default--focus": "var(--xmlui-color-outline-DatePicker-default--focus)", "Input:style-outline-DatePicker-default--focus": "var(--xmlui-style-outline-DatePicker-default--focus)", "Input:offset-outline-DatePicker-default--focus": "var(--xmlui-offset-outline-DatePicker-default--focus)", "Input:color-placeholder-DatePicker-default": "var(--xmlui-color-placeholder-DatePicker-default)", "Input:radius-DatePicker-error": "var(--xmlui-radius-DatePicker-error)", "Input:color-border-DatePicker-error": "var(--xmlui-color-border-DatePicker-error)", "Input:thickness-border-DatePicker-error": "var(--xmlui-thickness-border-DatePicker-error)", "Input:style-border-DatePicker-error": "var(--xmlui-style-border-DatePicker-error)", "Input:color-bg-DatePicker-error": "var(--xmlui-color-bg-DatePicker-error)", "Input:shadow-DatePicker-error": "var(--xmlui-shadow-DatePicker-error)", "Input:color-text-DatePicker-error": "var(--xmlui-color-text-DatePicker-error)", "Input:color-border-DatePicker-error--hover": "var(--xmlui-color-border-DatePicker-error--hover)", "Input:color-bg-DatePicker-error--hover": "var(--xmlui-color-bg-DatePicker-error--hover)", "Input:shadow-DatePicker-error--hover": "var(--xmlui-shadow-DatePicker-error--hover)", "Input:color-text-DatePicker-error--hover": "var(--xmlui-color-text-DatePicker-error--hover)", "Input:thickness-outline-DatePicker-error--focus": "var(--xmlui-thickness-outline-DatePicker-error--focus)", "Input:color-outline-DatePicker-error--focus": "var(--xmlui-color-outline-DatePicker-error--focus)", "Input:style-outline-DatePicker-error--focus": "var(--xmlui-style-outline-DatePicker-error--focus)", "Input:offset-outline-DatePicker-error--focus": "var(--xmlui-offset-outline-DatePicker-error--focus)", "Input:color-placeholder-DatePicker-error": "var(--xmlui-color-placeholder-DatePicker-error)", "Input:radius-DatePicker-warning": "var(--xmlui-radius-DatePicker-warning)", "Input:color-border-DatePicker-warning": "var(--xmlui-color-border-DatePicker-warning)", "Input:thickness-border-DatePicker-warning": "var(--xmlui-thickness-border-DatePicker-warning)", "Input:style-border-DatePicker-warning": "var(--xmlui-style-border-DatePicker-warning)", "Input:color-bg-DatePicker-warning": "var(--xmlui-color-bg-DatePicker-warning)", "Input:shadow-DatePicker-warning": "var(--xmlui-shadow-DatePicker-warning)", "Input:color-text-DatePicker-warning": "var(--xmlui-color-text-DatePicker-warning)", "Input:color-border-DatePicker-warning--hover": "var(--xmlui-color-border-DatePicker-warning--hover)", "Input:color-bg-DatePicker-warning--hover": "var(--xmlui-color-bg-DatePicker-warning--hover)", "Input:shadow-DatePicker-warning--hover": "var(--xmlui-shadow-DatePicker-warning--hover)", "Input:color-text-DatePicker-warning--hover": "var(--xmlui-color-text-DatePicker-warning--hover)", "Input:thickness-outline-DatePicker-warning--focus": "var(--xmlui-thickness-outline-DatePicker-warning--focus)", "Input:color-outline-DatePicker-warning--focus": "var(--xmlui-color-outline-DatePicker-warning--focus)", "Input:style-outline-DatePicker-warning--focus": "var(--xmlui-style-outline-DatePicker-warning--focus)", "Input:offset-outline-DatePicker-warning--focus": "var(--xmlui-offset-outline-DatePicker-warning--focus)", "Input:color-placeholder-DatePicker-warning": "var(--xmlui-color-placeholder-DatePicker-warning)", "Input:radius-DatePicker-success": "var(--xmlui-radius-DatePicker-success)", "Input:color-border-DatePicker-success": "var(--xmlui-color-border-DatePicker-success)", "Input:thickness-border-DatePicker-success": "var(--xmlui-thickness-border-DatePicker-success)", "Input:style-border-DatePicker-success": "var(--xmlui-style-border-DatePicker-success)", "Input:color-bg-DatePicker-success": "var(--xmlui-color-bg-DatePicker-success)", "Input:shadow-DatePicker-success": "var(--xmlui-shadow-DatePicker-success)", "Input:color-text-DatePicker-success": "var(--xmlui-color-text-DatePicker-success)", "Input:color-border-DatePicker-success--hover": "var(--xmlui-color-border-DatePicker-success--hover)", "Input:color-bg-DatePicker-success--hover": "var(--xmlui-color-bg-DatePicker-success--hover)", "Input:shadow-DatePicker-success--hover": "var(--xmlui-shadow-DatePicker-success--hover)", "Input:color-text-DatePicker-success--hover": "var(--xmlui-color-text-DatePicker-success--hover)", "Input:thickness-outline-DatePicker-success--focus": "var(--xmlui-thickness-outline-DatePicker-success--focus)", "Input:color-outline-DatePicker-success--focus": "var(--xmlui-color-outline-DatePicker-success--focus)", "Input:style-outline-DatePicker-success--focus": "var(--xmlui-style-outline-DatePicker-success--focus)", "Input:offset-outline-DatePicker-success--focus": "var(--xmlui-offset-outline-DatePicker-success--focus)", "Input:color-placeholder-DatePicker-success": "var(--xmlui-color-placeholder-DatePicker-success)", "Input:color-bg-DatePicker--disabled": "var(--xmlui-color-bg-DatePicker--disabled)", "Input:color-text-DatePicker--disabled": "var(--xmlui-color-text-DatePicker--disabled)", "Input:color-border-DatePicker--disabled": "var(--xmlui-color-border-DatePicker--disabled)", "Input:shadow-menu-DatePicker": "var(--xmlui-shadow-menu-DatePicker)", "Input:color-bg-menu-DatePicker": "var(--xmlui-color-bg-menu-DatePicker)", "Input:radius-menu-DatePicker": "var(--xmlui-radius-menu-DatePicker)", "Input:color-bg-item-DatePicker--active": "var(--xmlui-color-bg-item-DatePicker--active)", "Input:color-bg-item-DatePicker--hover": "var(--xmlui-color-bg-item-DatePicker--hover)", "Input:color-text-value-DatePicker": "var(--xmlui-color-text-value-DatePicker)"}'`,datePicker:"_datePicker_t0hf0_13",placeholder:"_placeholder_t0hf0_46",error:"_error_t0hf0_49",warning:"_warning_t0hf0_73",valid:"_valid_t0hf0_97",disabled:"_disabled_t0hf0_121",indicator:"_indicator_t0hf0_127",datePickerInput:"_datePickerInput_t0hf0_127",datePickerMenu:"_datePickerMenu_t0hf0_131",root:"_root_t0hf0_140",vhidden:"_vhidden_t0hf0_145",button_reset:"_button_reset_t0hf0_165",button:"_button_t0hf0_165",day_selected:"_day_selected_t0hf0_187",months:"_months_t0hf0_205",month:"_month_t0hf0_205",table:"_table_t0hf0_221",with_weeknumber:"_with_weeknumber_t0hf0_227",caption:"_caption_t0hf0_232",multiple_months:"_multiple_months_t0hf0_240",caption_dropdowns:"_caption_dropdowns_t0hf0_246",caption_label:"_caption_label_t0hf0_251",nav:"_nav_t0hf0_267",caption_start:"_caption_start_t0hf0_271",caption_end:"_caption_end_t0hf0_278",nav_button:"_nav_button_t0hf0_285",dropdown_year:"_dropdown_year_t0hf0_298",dropdown_month:"_dropdown_month_t0hf0_299",dropdown:"_dropdown_t0hf0_298",dropdown_icon:"_dropdown_icon_t0hf0_335",head:"_head_t0hf0_339",head_row:"_head_row_t0hf0_343",row:"_row_t0hf0_344",head_cell:"_head_cell_t0hf0_348",tbody:"_tbody_t0hf0_359",tfoot:"_tfoot_t0hf0_363",cell:"_cell_t0hf0_367",weeknumber:"_weeknumber_t0hf0_375",day:"_day_t0hf0_187",day_today:"_day_today_t0hf0_394",day_outside:"_day_outside_t0hf0_394",day_range_start:"_day_range_start_t0hf0_417",day_range_end:"_day_range_end_t0hf0_417",day_range_middle:"_day_range_middle_t0hf0_441"},$e="DatePicker",Gn=y({status:"experimental",description:"A datepicker component enables the selection of a date or a range of dates in a specified format from an interactive display.",props:{placeholder:et(),initialValue:Ee(),autoFocus:ye(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),mode:l("The mode of the datepicker (single or range)"),dateFormat:l("The format of the date displayed in the input field"),showWeekNumber:l("Whether to show the week number in the calendar"),weekStartsOn:l("The first day of the week. 0 is Sunday, 1 is Monday, etc."),fromDate:l("The start date of the range of selectable dates"),toDate:l("The end date of the range of selectable dates"),disabledDates:l("An array of dates that are disabled")},events:{didChange:be($e),gotFocus:Be($e),lostFocus:Se($e)},apis:{focus:Ye($e),value:l("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ge()},themeVars:z(Vn.themeVars),defaultThemeVars:{[`shadow-menu-${$e}`]:"$shadow-md",[`radius-menu-${$e}`]:"$radius",[`color-text-value-${$e}`]:"$color-text-primary",[`color-bg-menu-${$e}`]:"$color-bg-primary",[`color-bg-item-${$e}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${$e}--active`]:"$color-bg-dropdown-item--active",light:{[`color-bg-menu-${$e}`]:"$color-bg-primary"},dark:{[`color-bg-menu-${$e}`]:"$color-bg-primary"}}}),jt={themeVars:`'{"color-bg-DropdownMenu": "var(--xmlui-color-bg-DropdownMenu)", "radius-DropdownMenu": "var(--xmlui-radius-DropdownMenu)", "shadow-DropdownMenu": "var(--xmlui-shadow-DropdownMenu)", "color-border-DropdownMenu-content": "var(--xmlui-color-border-DropdownMenu-content)", "thickness-border-DropdownMenu-content": "var(--xmlui-thickness-border-DropdownMenu-content)", "style-border-DropdownMenu-content": "var(--xmlui-style-border-DropdownMenu-content)", "min-width-DropdownMenu": "var(--xmlui-min-width-DropdownMenu)", "color-bg-MenuItem": "var(--xmlui-color-bg-MenuItem)", "color-MenuItem": "var(--xmlui-color-MenuItem)", "font-family-MenuItem": "var(--xmlui-font-family-MenuItem)", "gap-MenuItem": "var(--xmlui-gap-MenuItem)", "font-size-MenuItem": "var(--xmlui-font-size-MenuItem)", "padding-vertical-MenuItem": "var(--xmlui-padding-vertical-MenuItem)", "padding-horizontal-MenuItem": "var(--xmlui-padding-horizontal-MenuItem)", "color-bg-MenuItem--hover": "var(--xmlui-color-bg-MenuItem--hover)", "color-bg-MenuItem--active": "var(--xmlui-color-bg-MenuItem--active)", "color-bg-MenuItem--active--hover": "var(--xmlui-color-bg-MenuItem--active--hover)", "color-MenuItem--hover": "var(--xmlui-color-MenuItem--hover)", "color-MenuItem--active": "var(--xmlui-color-MenuItem--active)", "color-MenuItem--active--hover": "var(--xmlui-color-MenuItem--active--hover)", "margin-top-MenuSeparator": "var(--xmlui-margin-top-MenuSeparator)", "margin-bottom-MenuSeparator": "var(--xmlui-margin-bottom-MenuSeparator)", "width-MenuSeparator": "var(--xmlui-width-MenuSeparator)", "height-MenuSeparator": "var(--xmlui-height-MenuSeparator)", "color-MenuSeparator": "var(--xmlui-color-MenuSeparator)"}'`,DropdownMenuContent:"_DropdownMenuContent_uvcr0_13",DropdownMenuSubContent:"_DropdownMenuSubContent_uvcr0_14",DropdownMenuItem:"_DropdownMenuItem_uvcr0_26",DropdownMenuSubTrigger:"_DropdownMenuSubTrigger_uvcr0_27",active:"_active_uvcr0_50",wrapper:"_wrapper_uvcr0_60",DropdownMenuSeparator:"_DropdownMenuSeparator_uvcr0_65"},De="DropdownMenu",Yn=y({description:"This component represents a dropdown menu with a trigger. When the user clicks the trigger, the dropdown menu displays its items.",props:{label:xe(),triggerTemplate:Oo(De),alignment:l("This property allows you to determine the alignment of the displayed menu items."),enabled:ge(),triggerButtonVariant:l("This property defines the theme variant of the `Button` as the dropdown menu's trigger. It has no effect when a custom trigger is defined with `triggerTemplate`."),triggerButtonThemeColor:l("This property defines the theme color of the `Button` as the dropdown menu's trigger. It has no effect when a custom trigger is defined with `triggerTemplate`."),triggerButtonIcon:l("This property defines the icon to display on the trigger button."),triggerButtonIconPosition:l("This property defines the position of the icon on the trigger button.",bo)},events:{willOpen:l(`This event fires when the \`${De}\` component is opened.`)},apis:{close:l("This method command closes the dropdown.")},themeVars:z(jt.themeVars),defaultThemeVars:{[`color-bg-${De}`]:"$color-bg-primary",[`min-width-${De}`]:"160px",[`shadow-${De}`]:"$shadow-xl",[`style-border-${De}-content`]:"solid",[`radius-${De}`]:"$radius"}}),_e="MenuItem",Xn=y({description:"This property represents a leaf item in a menu hierarchy. Clicking the item triggers an action.",docFolder:De,props:{iconPosition:l("This property allows you to determine the position of the icon displayed in the menu item.",yo.filter(e=>e.value==="start"||e.value==="end")),icon:l("This property names an optional icon to display with the menu item."),label:xe(),to:l("This property defines the URL of the menu item. If this property is defined (and the `click` event does not have an event handler), clicking the menu item navigates to this link."),active:l("This property indicates if the specified menu item is active.")},events:{click:qe(_e)},themeVars:z(jt.themeVars),defaultThemeVars:{[`color-bg-${_e}`]:"$color-bg-dropdown-item",[`color-${_e}`]:"$color-text-primary",[`font-family-${_e}`]:"$font-family",[`font-size-${_e}`]:"$font-size-small",[`padding-vertical-${_e}`]:"$space-2",[`padding-horizontal-${_e}`]:"$space-3",[`color-bg-${_e}--hover`]:"$color-bg-dropdown-item--hover",[`color-${_e}--hover`]:"inherit",[`gap-${_e}`]:"$space-2",[`color-${_e}--active`]:"$color-primary",[`color-bg-${_e}--active`]:"$color-bg-dropdown-item--active",light:{},dark:{}}}),Qn=y({description:"This component represents a nested menu item within another menu or menu item.",docFolder:De,props:{label:xe(),triggerTemplate:Oo("SubMenuItem")}}),mt="MenuSeparator",Zn=y({description:"This component displays a separator line between menu items.",docFolder:De,themeVars:z(jt.themeVars),defaultThemeVars:{[`margin-top-${mt}`]:"$space-1",[`margin-bottom-${mt}`]:"$space-1",[`width-${mt}`]:"100%",[`height-${mt}`]:"1px",[`color-${mt}`]:"$color-border-dropdown-item",[`margin-horizontal-${mt}`]:"12px"}}),Jn=y({status:"experimental",description:"The `EmojiSelector` component provides users with a graphical interface to browse, search and select emojis to insert into text fields, messages, or other forms of communication.",props:{autoFocus:ye()},events:{select:l("This event is fired when the user selects an emoticon from this component.")}}),jn={themeVars:'"[]"',container:"_container_mle43_13",textBoxWrapper:"_textBoxWrapper_mle43_21",button:"_button_mle43_27"},nt="FileInput",Kn=y({description:`The \`${nt}\` is a user interface component that allows users to select files from their device's file system for upload (or processing its content otherwise).`,status:"experimental",props:{placeholder:et(),initialValue:Ee(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),label:xe(),labelPosition:He("top"),labelWidth:Ue(nt),labelBreak:Ve(nt),buttonVariant:l("The button variant to use",Pr),buttonLabel:l("This property is an optional string to set a label for the button part."),buttonIcon:l("The ID of the icon to display in the button"),buttonIconPosition:l("This optional string determines the location of the button icon.",bo),acceptsFileType:l("A list of file types the input controls accepts provided as a string array."),multiple:l("This boolean property enables to add not just one (`false`), but multiple files to the field (`true`). This is done either by dragging onto the field or by selecting multiple files in the browser menu after clicking the input field button.",null,"boolean",!1),directory:l("This boolean property indicates whether the component allows selecting directories (`true`) or files only (`false`).",null,"boolean",!1),buttonSize:l("The size of the button (small, medium, large)",Vt),buttonThemeColor:l("The button color scheme (primary, secondary, attention)",zr)},events:{didChange:be(nt),gotFocus:Be(nt),lostFocus:Se(nt)},apis:{value:l("By setting an ID for the component, you can refer to the value of the field if set. If no value is set, the value will be undefined."),setValue:l("(**NOT IMPLEMENTED YET**) You can use this method to set the component's current value programmatically."),focus:Ye(nt),open:l("This API command triggers the file browsing dialog to open.")},themeVars:z(jn.themeVars)}),ei={themeVars:`'{"color-bg-FileUploadDropZone": "var(--xmlui-color-bg-FileUploadDropZone)", "color-text-FileUploadDropZone": "var(--xmlui-color-text-FileUploadDropZone)", "color-bg-dropping-FileUploadDropZone": "var(--xmlui-color-bg-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_u50h5_13",dropPlaceholder:"_dropPlaceholder_u50h5_21"},ti=y({description:"The `FileUploadDropZone` component allows users to upload files to a web application by dragging and dropping files from their local file system onto a designated area within the UI.",props:{text:l('With this property, you can change the default text ("Drop files here") to display when files are dragged over the drop zone.'),allowPaste:l("This property indicates if the drop zone accepts files pasted from the clipboard (`true`) or only dragged files (`false`)."),enabled:l("If set to `false`, the drop zone will be disabled and users will not be able to upload files.",null,"boolean",!0)},events:{upload:l("This component accepts files for upload but does not perform the actual operation. It fires the `upload` event and passes the list files to upload in the method's argument. You can use the passed file information to implement the upload (according to the protocol your backend supports).")},themeVars:z(ei.themeVars),defaultThemeVars:{"color-bg-FileUploadDropZone":"$color-bg","color-bg-dropping-FileUploadDropZone":"$color-bg--selected","opacity-dropping-FileUploadDropZone":"0.5","color-text-FileUploadDropZone":"$color-text",light:{},dark:{}}}),oi={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",vertical:"_vertical_aarhe_32",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},Kt="FlowLayout",ri=y({description:"This layout component is used to position content in rows with an auto wrapping feature: if the length of the items exceed the available space the layout will wrap into a new line.",props:{gap:l(`This property defines the gap between items in the same row and between rows. The ${Kt} component creates a new row when an item is about to overflow the current row.`),columnGap:l("The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value."),rowGap:l(`The \`rowGap\` property specifies the space between the ${Kt} rows; it overrides the \`gap\` value.`),shadow:l(`${Kt} does not support shadow, we're waiting for a decent solution.`)},themeVars:z(oi.themeVars)}),ni={themeVars:`'{"padding-horizontal-Footer": "var(--xmlui-padding-horizontal-Footer)", "padding-vertical-Footer": "var(--xmlui-padding-vertical-Footer)", "padding-top-Footer": "var(--xmlui-padding-top-Footer)", "padding-bottom-Footer": "var(--xmlui-padding-bottom-Footer)", "padding-left-Footer": "var(--xmlui-padding-left-Footer)", "padding-right-Footer": "var(--xmlui-padding-right-Footer)", "padding-Footer": "var(--xmlui-padding-Footer)", "color-border-horizontal-Footer": "var(--xmlui-color-border-horizontal-Footer)", "thickness-border-horizontal-Footer": "var(--xmlui-thickness-border-horizontal-Footer)", "style-border-horizontal-Footer": "var(--xmlui-style-border-horizontal-Footer)", "color-border-vertical-Footer": "var(--xmlui-color-border-vertical-Footer)", "thickness-border-vertical-Footer": "var(--xmlui-thickness-border-vertical-Footer)", "style-border-vertical-Footer": "var(--xmlui-style-border-vertical-Footer)", "color-border-left-Footer": "var(--xmlui-color-border-left-Footer)", "thickness-border-left-Footer": "var(--xmlui-thickness-border-left-Footer)", "style-border-left-Footer": "var(--xmlui-style-border-left-Footer)", "color-border-right-Footer": "var(--xmlui-color-border-right-Footer)", "thickness-border-right-Footer": "var(--xmlui-thickness-border-right-Footer)", "style-border-right-Footer": "var(--xmlui-style-border-right-Footer)", "color-border-top-Footer": "var(--xmlui-color-border-top-Footer)", "thickness-border-top-Footer": "var(--xmlui-thickness-border-top-Footer)", "style-border-top-Footer": "var(--xmlui-style-border-top-Footer)", "color-border-bottom-Footer": "var(--xmlui-color-border-bottom-Footer)", "thickness-border-bottom-Footer": "var(--xmlui-thickness-border-bottom-Footer)", "style-border-bottom-Footer": "var(--xmlui-style-border-bottom-Footer)", "color-border-Footer": "var(--xmlui-color-border-Footer)", "thickness-border-Footer": "var(--xmlui-thickness-border-Footer)", "style-border-Footer": "var(--xmlui-style-border-Footer)", "radius-Footer": "var(--xmlui-radius-Footer)", "color-bg-Footer": "var(--xmlui-color-bg-Footer)", "color-text-Footer": "var(--xmlui-color-text-Footer)", "height-Footer": "var(--xmlui-height-Footer)", "font-size-Footer": "var(--xmlui-font-size-Footer)", "align-vertical-Footer": "var(--xmlui-align-vertical-Footer)", "max-content-width-Footer": "var(--xmlui-max-content-width-Footer)"}'`,outerWrapper:"_outerWrapper_188xu_13",wrapper:"_wrapper_188xu_34",full:"_full_188xu_50"},Xe="Footer",ii=y({description:`The \`${Xe}\` is a component that acts as a placeholder within \`App\`.`,themeVars:z(ni.themeVars),defaultThemeVars:{[`color-bg-${Xe}`]:"$color-bg-AppHeader",[`align-vertical-${Xe}`]:"center",[`font-size-${Xe}`]:"$font-size-small",[`color-text-${Xe}`]:"$color-text-secondary",[`max-content-width-${Xe}`]:"$max-content-width",...Nt(Xe,{horizontal:"$space-4",vertical:"$space-2"}),...Zt(Xe,{top:{color:"$color-border",thickness:"1px",style:"solid"}}),light:{},dark:{}}}),ai={themeVars:`'{"gap-Form": "var(--xmlui-gap-Form)", "gap-buttonRow-Form": "var(--xmlui-gap-buttonRow-Form)"}'`,wrapper:"_wrapper_wscb6_13",buttonRow:"_buttonRow_wscb6_19"},li={themeVars:'"[]"',spacer:"_spacer_1414d_13"},si={themeVars:`'{"padding-horizontal-ModalDialog": "var(--xmlui-padding-horizontal-ModalDialog)", "padding-vertical-ModalDialog": "var(--xmlui-padding-vertical-ModalDialog)", "padding-top-ModalDialog": "var(--xmlui-padding-top-ModalDialog)", "padding-bottom-ModalDialog": "var(--xmlui-padding-bottom-ModalDialog)", "padding-left-ModalDialog": "var(--xmlui-padding-left-ModalDialog)", "padding-right-ModalDialog": "var(--xmlui-padding-right-ModalDialog)", "padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "padding-horizontal-overlay-ModalDialog": "var(--xmlui-padding-horizontal-overlay-ModalDialog)", "padding-vertical-overlay-ModalDialog": "var(--xmlui-padding-vertical-overlay-ModalDialog)", "padding-top-overlay-ModalDialog": "var(--xmlui-padding-top-overlay-ModalDialog)", "padding-bottom-overlay-ModalDialog": "var(--xmlui-padding-bottom-overlay-ModalDialog)", "padding-left-overlay-ModalDialog": "var(--xmlui-padding-left-overlay-ModalDialog)", "padding-right-overlay-ModalDialog": "var(--xmlui-padding-right-overlay-ModalDialog)", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "Dialog:color-bg-ModalDialog": "var(--xmlui-color-bg-ModalDialog)", "Dialog:color-bg-overlay-ModalDialog": "var(--xmlui-color-bg-overlay-ModalDialog)", "Dialog:radius-ModalDialog": "var(--xmlui-radius-ModalDialog)", "Dialog:font-family-ModalDialog": "var(--xmlui-font-family-ModalDialog)", "Dialog:color-text-ModalDialog": "var(--xmlui-color-text-ModalDialog)", "Dialog:min-width-ModalDialog": "var(--xmlui-min-width-ModalDialog)", "Dialog:max-width-ModalDialog": "var(--xmlui-max-width-ModalDialog)", "Dialog:margin-bottom-title-ModalDialog": "var(--xmlui-margin-bottom-title-ModalDialog)"}'`,overlay:"_overlay_1lmtb_13",fullScreen:"_fullScreen_1lmtb_21",content:"_content_1lmtb_27",overlayBg:"_overlayBg_1lmtb_36",overlayShow:"_overlayShow_1lmtb_1",contentShow:"_contentShow_1lmtb_1",dialogTitle:"_dialogTitle_1lmtb_66",innerContent:"_innerContent_1lmtb_72",closeButton:"_closeButton_1lmtb_98",dialog:"_dialog_1lmtb_66"},ci=y({status:"experimental",description:"A `Form` is a fundamental component that displays user interfaces that allow users to input (or change) data and submit it to the app (a server) for further processing.",props:{buttonRowTemplate:te("This property allows defining a custom component to display the buttons at the bottom of the form."),itemLabelPosition:l("This property sets the position of the item labels within the form.Individual `FormItem` instances can override this property.",To,"string","top"),itemLabelWidth:l("This property sets the width of the item labels within the form. Individual `FormItem` instances can override this property."),itemLabelBreak:l("This boolean value indicates if form item labels can be split into multiple lines if it would overflow the available label width. Individual `FormItem` instances can override this property."),keepModalOpenOnSubmit:l("This property prevents the modal from closing when the form is submitted."),data:l("This property sets the initial value of the form's data structure. The form infrastructure uses this value to set the initial state of form items within the form."),cancelLabel:l('This property defines the label of the Cancel button, by default, "Cancel".'),saveLabel:l('This property defines the label of the Save button, by default, "Save".'),saveInProgressLabel:l("This property defines the label of the Save button to display during the form data submit (save) operation. By default, the value of `saveLabel`."),swapCancelAndSave:l("By default, the Cancel button is to the left of the Save button. Set this property to `true` to swap them or `false` to keep their original location."),submitUrl:l("URL to submit the form data."),submitMethod:l("HTTP method to use when submitting the form data."),enabled:l("Whether the form is enabled or not. The default value is `true`."),_data_url:Ke("when we have an api bound data prop, we inject the url here")},events:{submit:l("The form infrastructure fires this event when the form is submitted. The event argument is the current `data` value to save."),cancel:l("The form infrastructure fires this event when the form is canceled."),reset:l("The form infrastructure fires this event when the form is reset.")},contextVars:{$data:l("This property represents the value of the form data. You can access the fields of the form using the IDs in the `bindTo` property of nested `FormItem` instances.")},themeVars:z(ai.themeVars),defaultThemeVars:{"gap-Form":"$space-4","gap-buttonRow-Form":"$space-4",light:{"color-bg-ValidationDisplay-error":"$color-danger-100","color-bg-ValidationDisplay-warning":"$color-warn-100","color-bg-ValidationDisplay-info":"$color-primary-100","color-bg-ValidationDisplay-valid":"$color-success-100","color-accent-ValidationDisplay-error":"$color-error","color-accent-ValidationDisplay-warning":"$color-warning","color-accent-ValidationDisplay-info":"$color-info","color-accent-ValidationDisplay-valid":"$color-valid","color-text-ValidationDisplay-error":"$color-error","color-text-ValidationDisplay-warning":"$color-warning","color-text-ValidationDisplay-info":"$color-info","color-text-ValidationDisplay-valid":"$color-valid"},dark:{"color-bg-ValidationDisplay-error":"$color-danger-900","color-bg-ValidationDisplay-warning":"$color-warn-900","color-bg-ValidationDisplay-info":"$color-secondary-800","color-bg-ValidationDisplay-valid":"$color-success-900","color-accent-ValidationDisplay-error":"$color-danger-500","color-accent-ValidationDisplay-warning":"$color-warn-700","color-accent-ValidationDisplay-info":"$color-surface-200","color-accent-ValidationDisplay-valid":"$color-success-600","color-text-ValidationDisplay-error":"$color-danger-500","color-text-ValidationDisplay-warning":"$color-warn-700","color-text-ValidationDisplay-info":"$color-secondary-200","color-text-ValidationDisplay-valid":"$color-success-600"}}}),ui={themeVars:`'{"Input:radius-NumberBox-default": "var(--xmlui-radius-NumberBox-default)", "Input:color-border-NumberBox-default": "var(--xmlui-color-border-NumberBox-default)", "Input:thickness-border-NumberBox-default": "var(--xmlui-thickness-border-NumberBox-default)", "Input:style-border-NumberBox-default": "var(--xmlui-style-border-NumberBox-default)", "Input:font-size-NumberBox-default": "var(--xmlui-font-size-NumberBox-default)", "Input:color-bg-NumberBox-default": "var(--xmlui-color-bg-NumberBox-default)", "Input:shadow-NumberBox-default": "var(--xmlui-shadow-NumberBox-default)", "Input:color-text-NumberBox-default": "var(--xmlui-color-text-NumberBox-default)", "Input:color-border-NumberBox-default--hover": "var(--xmlui-color-border-NumberBox-default--hover)", "Input:color-bg-NumberBox-default--hover": "var(--xmlui-color-bg-NumberBox-default--hover)", "Input:shadow-NumberBox-default--hover": "var(--xmlui-shadow-NumberBox-default--hover)", "Input:color-text-NumberBox-default--hover": "var(--xmlui-color-text-NumberBox-default--hover)", "Input:color-border-NumberBox-default--focus": "var(--xmlui-color-border-NumberBox-default--focus)", "Input:color-bg-NumberBox-default--focus": "var(--xmlui-color-bg-NumberBox-default--focus)", "Input:shadow-NumberBox-default--focus": "var(--xmlui-shadow-NumberBox-default--focus)", "Input:color-text-NumberBox-default--focus": "var(--xmlui-color-text-NumberBox-default--focus)", "Input:thickness-outline-NumberBox-default--focus": "var(--xmlui-thickness-outline-NumberBox-default--focus)", "Input:color-outline-NumberBox-default--focus": "var(--xmlui-color-outline-NumberBox-default--focus)", "Input:style-outline-NumberBox-default--focus": "var(--xmlui-style-outline-NumberBox-default--focus)", "Input:offset-outline-NumberBox-default--focus": "var(--xmlui-offset-outline-NumberBox-default--focus)", "Input:color-placeholder-NumberBox-default": "var(--xmlui-color-placeholder-NumberBox-default)", "Input:color-adornment-NumberBox-default": "var(--xmlui-color-adornment-NumberBox-default)", "Input:radius-NumberBox-error": "var(--xmlui-radius-NumberBox-error)", "Input:color-border-NumberBox-error": "var(--xmlui-color-border-NumberBox-error)", "Input:thickness-border-NumberBox-error": "var(--xmlui-thickness-border-NumberBox-error)", "Input:style-border-NumberBox-error": "var(--xmlui-style-border-NumberBox-error)", "Input:font-size-NumberBox-error": "var(--xmlui-font-size-NumberBox-error)", "Input:color-bg-NumberBox-error": "var(--xmlui-color-bg-NumberBox-error)", "Input:shadow-NumberBox-error": "var(--xmlui-shadow-NumberBox-error)", "Input:color-text-NumberBox-error": "var(--xmlui-color-text-NumberBox-error)", "Input:color-border-NumberBox-error--hover": "var(--xmlui-color-border-NumberBox-error--hover)", "Input:color-bg-NumberBox-error--hover": "var(--xmlui-color-bg-NumberBox-error--hover)", "Input:shadow-NumberBox-error--hover": "var(--xmlui-shadow-NumberBox-error--hover)", "Input:color-text-NumberBox-error--hover": "var(--xmlui-color-text-NumberBox-error--hover)", "Input:color-border-NumberBox-error--focus": "var(--xmlui-color-border-NumberBox-error--focus)", "Input:color-bg-NumberBox-error--focus": "var(--xmlui-color-bg-NumberBox-error--focus)", "Input:shadow-NumberBox-error--focus": "var(--xmlui-shadow-NumberBox-error--focus)", "Input:color-text-NumberBox-error--focus": "var(--xmlui-color-text-NumberBox-error--focus)", "Input:thickness-outline-NumberBox-error--focus": "var(--xmlui-thickness-outline-NumberBox-error--focus)", "Input:color-outline-NumberBox-error--focus": "var(--xmlui-color-outline-NumberBox-error--focus)", "Input:style-outline-NumberBox-error--focus": "var(--xmlui-style-outline-NumberBox-error--focus)", "Input:offset-outline-NumberBox-error--focus": "var(--xmlui-offset-outline-NumberBox-error--focus)", "Input:color-placeholder-NumberBox-error": "var(--xmlui-color-placeholder-NumberBox-error)", "Input:color-adornment-NumberBox-error": "var(--xmlui-color-adornment-NumberBox-error)", "Input:radius-NumberBox-warning": "var(--xmlui-radius-NumberBox-warning)", "Input:color-border-NumberBox-warning": "var(--xmlui-color-border-NumberBox-warning)", "Input:thickness-border-NumberBox-warning": "var(--xmlui-thickness-border-NumberBox-warning)", "Input:style-border-NumberBox-warning": "var(--xmlui-style-border-NumberBox-warning)", "Input:font-size-NumberBox-warning": "var(--xmlui-font-size-NumberBox-warning)", "Input:color-bg-NumberBox-warning": "var(--xmlui-color-bg-NumberBox-warning)", "Input:shadow-NumberBox-warning": "var(--xmlui-shadow-NumberBox-warning)", "Input:color-text-NumberBox-warning": "var(--xmlui-color-text-NumberBox-warning)", "Input:color-border-NumberBox-warning--hover": "var(--xmlui-color-border-NumberBox-warning--hover)", "Input:color-bg-NumberBox-warning--hover": "var(--xmlui-color-bg-NumberBox-warning--hover)", "Input:shadow-NumberBox-warning--hover": "var(--xmlui-shadow-NumberBox-warning--hover)", "Input:color-text-NumberBox-warning--hover": "var(--xmlui-color-text-NumberBox-warning--hover)", "Input:color-border-NumberBox-warning--focus": "var(--xmlui-color-border-NumberBox-warning--focus)", "Input:color-bg-NumberBox-warning--focus": "var(--xmlui-color-bg-NumberBox-warning--focus)", "Input:shadow-NumberBox-warning--focus": "var(--xmlui-shadow-NumberBox-warning--focus)", "Input:color-text-NumberBox-warning--focus": "var(--xmlui-color-text-NumberBox-warning--focus)", "Input:thickness-outline-NumberBox-warning--focus": "var(--xmlui-thickness-outline-NumberBox-warning--focus)", "Input:color-outline-NumberBox-warning--focus": "var(--xmlui-color-outline-NumberBox-warning--focus)", "Input:style-outline-NumberBox-warning--focus": "var(--xmlui-style-outline-NumberBox-warning--focus)", "Input:offset-outline-NumberBox-warning--focus": "var(--xmlui-offset-outline-NumberBox-warning--focus)", "Input:color-placeholder-NumberBox-warning": "var(--xmlui-color-placeholder-NumberBox-warning)", "Input:color-adornment-NumberBox-warning": "var(--xmlui-color-adornment-NumberBox-warning)", "Input:radius-NumberBox-success": "var(--xmlui-radius-NumberBox-success)", "Input:color-border-NumberBox-success": "var(--xmlui-color-border-NumberBox-success)", "Input:thickness-border-NumberBox-success": "var(--xmlui-thickness-border-NumberBox-success)", "Input:style-border-NumberBox-success": "var(--xmlui-style-border-NumberBox-success)", "Input:font-size-NumberBox-success": "var(--xmlui-font-size-NumberBox-success)", "Input:color-bg-NumberBox-success": "var(--xmlui-color-bg-NumberBox-success)", "Input:shadow-NumberBox-success": "var(--xmlui-shadow-NumberBox-success)", "Input:color-text-NumberBox-success": "var(--xmlui-color-text-NumberBox-success)", "Input:color-border-NumberBox-success--hover": "var(--xmlui-color-border-NumberBox-success--hover)", "Input:color-bg-NumberBox-success--hover": "var(--xmlui-color-bg-NumberBox-success--hover)", "Input:shadow-NumberBox-success--hover": "var(--xmlui-shadow-NumberBox-success--hover)", "Input:color-text-NumberBox-success--hover": "var(--xmlui-color-text-NumberBox-success--hover)", "Input:color-border-NumberBox-success--focus": "var(--xmlui-color-border-NumberBox-success--focus)", "Input:color-bg-NumberBox-success--focus": "var(--xmlui-color-bg-NumberBox-success--focus)", "Input:shadow-NumberBox-success--focus": "var(--xmlui-shadow-NumberBox-success--focus)", "Input:color-text-NumberBox-success--focus": "var(--xmlui-color-text-NumberBox-success--focus)", "Input:thickness-outline-NumberBox-success--focus": "var(--xmlui-thickness-outline-NumberBox-success--focus)", "Input:color-outline-NumberBox-success--focus": "var(--xmlui-color-outline-NumberBox-success--focus)", "Input:style-outline-NumberBox-success--focus": "var(--xmlui-style-outline-NumberBox-success--focus)", "Input:offset-outline-NumberBox-success--focus": "var(--xmlui-offset-outline-NumberBox-success--focus)", "Input:color-placeholder-NumberBox-success": "var(--xmlui-color-placeholder-NumberBox-success)", "Input:color-adornment-NumberBox-success": "var(--xmlui-color-adornment-NumberBox-success)", "Input:color-bg-NumberBox--disabled": "var(--xmlui-color-bg-NumberBox--disabled)", "Input:color-text-NumberBox--disabled": "var(--xmlui-color-text-NumberBox--disabled)", "Input:color-border-NumberBox--disabled": "var(--xmlui-color-border-NumberBox--disabled)"}'`,inputRoot:"_inputRoot_zavgy_13",input:"_input_zavgy_13",adornment:"_adornment_zavgy_53",error:"_error_zavgy_56",warning:"_warning_zavgy_90",valid:"_valid_zavgy_124",spinnerBox:"_spinnerBox_zavgy_184",spinnerButton:"_spinnerButton_zavgy_191",readOnly:"_readOnly_zavgy_197"},di={themeVars:`'{"Input:font-size-Select-default": "var(--xmlui-font-size-Select-default)", "Input:color-placeholder-Select-default": "var(--xmlui-color-placeholder-Select-default)", "Input:color-text-Select-default": "var(--xmlui-color-text-Select-default)", "Input:font-size-Select-error": "var(--xmlui-font-size-Select-error)", "Input:color-placeholder-Select-error": "var(--xmlui-color-placeholder-Select-error)", "Input:color-text-Select-error": "var(--xmlui-color-text-Select-error)", "Input:font-size-Select-warning": "var(--xmlui-font-size-Select-warning)", "Input:color-placeholder-Select-warning": "var(--xmlui-color-placeholder-Select-warning)", "Input:color-text-Select-warning": "var(--xmlui-color-text-Select-warning)", "Input:font-size-Select-success": "var(--xmlui-font-size-Select-success)", "Input:color-placeholder-Select-success": "var(--xmlui-color-placeholder-Select-success)", "Input:color-text-Select-success": "var(--xmlui-color-text-Select-success)", "Input:radius-Select-default": "var(--xmlui-radius-Select-default)", "Input:color-border-Select-default": "var(--xmlui-color-border-Select-default)", "Input:thickness-border-Select-default": "var(--xmlui-thickness-border-Select-default)", "Input:style-border-Select-default": "var(--xmlui-style-border-Select-default)", "Input:color-bg-Select-default": "var(--xmlui-color-bg-Select-default)", "Input:shadow-Select-default": "var(--xmlui-shadow-Select-default)", "Input:color-border-Select-default--hover": "var(--xmlui-color-border-Select-default--hover)", "Input:color-bg-Select-default--hover": "var(--xmlui-color-bg-Select-default--hover)", "Input:shadow-Select-default--hover": "var(--xmlui-shadow-Select-default--hover)", "Input:color-text-Select-default--hover": "var(--xmlui-color-text-Select-default--hover)", "Input:thickness-outline-Select-default--focus": "var(--xmlui-thickness-outline-Select-default--focus)", "Input:color-outline-Select-default--focus": "var(--xmlui-color-outline-Select-default--focus)", "Input:style-outline-Select-default--focus": "var(--xmlui-style-outline-Select-default--focus)", "Input:offset-outline-Select-default--focus": "var(--xmlui-offset-outline-Select-default--focus)", "Input:radius-Select-error": "var(--xmlui-radius-Select-error)", "Input:color-border-Select-error": "var(--xmlui-color-border-Select-error)", "Input:thickness-border-Select-error": "var(--xmlui-thickness-border-Select-error)", "Input:style-border-Select-error": "var(--xmlui-style-border-Select-error)", "Input:color-bg-Select-error": "var(--xmlui-color-bg-Select-error)", "Input:shadow-Select-error": "var(--xmlui-shadow-Select-error)", "Input:color-border-Select-error--hover": "var(--xmlui-color-border-Select-error--hover)", "Input:color-bg-Select-error--hover": "var(--xmlui-color-bg-Select-error--hover)", "Input:shadow-Select-error--hover": "var(--xmlui-shadow-Select-error--hover)", "Input:color-text-Select-error--hover": "var(--xmlui-color-text-Select-error--hover)", "Input:thickness-outline-Select-error--focus": "var(--xmlui-thickness-outline-Select-error--focus)", "Input:color-outline-Select-error--focus": "var(--xmlui-color-outline-Select-error--focus)", "Input:style-outline-Select-error--focus": "var(--xmlui-style-outline-Select-error--focus)", "Input:offset-outline-Select-error--focus": "var(--xmlui-offset-outline-Select-error--focus)", "Input:radius-Select-warning": "var(--xmlui-radius-Select-warning)", "Input:color-border-Select-warning": "var(--xmlui-color-border-Select-warning)", "Input:thickness-border-Select-warning": "var(--xmlui-thickness-border-Select-warning)", "Input:style-border-Select-warning": "var(--xmlui-style-border-Select-warning)", "Input:color-bg-Select-warning": "var(--xmlui-color-bg-Select-warning)", "Input:shadow-Select-warning": "var(--xmlui-shadow-Select-warning)", "Input:color-border-Select-warning--hover": "var(--xmlui-color-border-Select-warning--hover)", "Input:color-bg-Select-warning--hover": "var(--xmlui-color-bg-Select-warning--hover)", "Input:shadow-Select-warning--hover": "var(--xmlui-shadow-Select-warning--hover)", "Input:color-text-Select-warning--hover": "var(--xmlui-color-text-Select-warning--hover)", "Input:thickness-outline-Select-warning--focus": "var(--xmlui-thickness-outline-Select-warning--focus)", "Input:color-outline-Select-warning--focus": "var(--xmlui-color-outline-Select-warning--focus)", "Input:style-outline-Select-warning--focus": "var(--xmlui-style-outline-Select-warning--focus)", "Input:offset-outline-Select-warning--focus": "var(--xmlui-offset-outline-Select-warning--focus)", "Input:radius-Select-success": "var(--xmlui-radius-Select-success)", "Input:color-border-Select-success": "var(--xmlui-color-border-Select-success)", "Input:thickness-border-Select-success": "var(--xmlui-thickness-border-Select-success)", "Input:style-border-Select-success": "var(--xmlui-style-border-Select-success)", "Input:color-bg-Select-success": "var(--xmlui-color-bg-Select-success)", "Input:shadow-Select-success": "var(--xmlui-shadow-Select-success)", "Input:color-border-Select-success--hover": "var(--xmlui-color-border-Select-success--hover)", "Input:color-bg-Select-success--hover": "var(--xmlui-color-bg-Select-success--hover)", "Input:shadow-Select-success--hover": "var(--xmlui-shadow-Select-success--hover)", "Input:color-text-Select-success--hover": "var(--xmlui-color-text-Select-success--hover)", "Input:thickness-outline-Select-success--focus": "var(--xmlui-thickness-outline-Select-success--focus)", "Input:color-outline-Select-success--focus": "var(--xmlui-color-outline-Select-success--focus)", "Input:style-outline-Select-success--focus": "var(--xmlui-style-outline-Select-success--focus)", "Input:offset-outline-Select-success--focus": "var(--xmlui-offset-outline-Select-success--focus)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:color-bg-Select--disabled": "var(--xmlui-color-bg-Select--disabled)", "Input:color-text-Select--disabled": "var(--xmlui-color-text-Select--disabled)", "Input:color-border-Select--disabled": "var(--xmlui-color-border-Select--disabled)", "padding-vertical-Select-badge": "var(--xmlui-padding-vertical-Select-badge)", "padding-horizontal-Select-badge": "var(--xmlui-padding-horizontal-Select-badge)", "Input:font-size-Select-badge": "var(--xmlui-font-size-Select-badge)", "Input:color-bg-Select-badge": "var(--xmlui-color-bg-Select-badge)", "Input:color-text-Select-badge": "var(--xmlui-color-text-Select-badge)", "Input:color-bg-Select-badge--hover": "var(--xmlui-color-bg-Select-badge--hover)", "Input:color-text-Select-badge--hover": "var(--xmlui-color-text-Select-badge--hover)", "Input:color-bg-Select-badge--active": "var(--xmlui-color-bg-Select-badge--active)", "Input:color-text-Select-badge--active": "var(--xmlui-color-text-Select-badge--active)", "Input:color-placeholder-Select": "var(--xmlui-color-placeholder-Select)", "Input:color-bg-menu-Select": "var(--xmlui-color-bg-menu-Select)", "Input:radius-menu-Select": "var(--xmlui-radius-menu-Select)", "Input:shadow-menu-Select": "var(--xmlui-shadow-menu-Select)", "Input:thickness-border-menu-Select": "var(--xmlui-thickness-border-menu-Select)", "Input:color-border-menu-Select": "var(--xmlui-color-border-menu-Select)", "color-bg-item-Select": "var(--xmlui-color-bg-item-Select)", "color-bg-item-Select--hover": "var(--xmlui-color-bg-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "font-size-Select": "var(--xmlui-font-size-Select)", "color-bg-item-Select--active": "var(--xmlui-color-bg-item-Select--active)", "color-text-indicator-Select": "var(--xmlui-color-text-indicator-Select)"}'`,selectValue:"_selectValue_z2kxg_13",error:"_error_z2kxg_21",warning:"_warning_z2kxg_29",valid:"_valid_z2kxg_37",selectTrigger:"_selectTrigger_z2kxg_46",badgeListContainer:"_badgeListContainer_z2kxg_170",badgeList:"_badgeList_z2kxg_170",badge:"_badge_z2kxg_170",actions:"_actions_z2kxg_210",placeholder:"_placeholder_z2kxg_216",emptyList:"_emptyList_z2kxg_221",selectScrollUpButton:"_selectScrollUpButton_z2kxg_231",selectScrollDownButton:"_selectScrollDownButton_z2kxg_240",command:"_command_z2kxg_249",commandInputContainer:"_commandInputContainer_z2kxg_259",commandInput:"_commandInput_z2kxg_259",commandList:"_commandList_z2kxg_284",selectContent:"_selectContent_z2kxg_289",fadeIn:"_fadeIn_z2kxg_1",zoomIn:"_zoomIn_z2kxg_1",fadeOut:"_fadeOut_z2kxg_1",zoomOut:"_zoomOut_z2kxg_1",slideInFromTop:"_slideInFromTop_z2kxg_1",slideInFromRight:"_slideInFromRight_z2kxg_1",slideInFromLeft:"_slideInFromLeft_z2kxg_1",slideInFromBottom:"_slideInFromBottom_z2kxg_1",multiComboboxOption:"_multiComboboxOption_z2kxg_329",selectItem:"_selectItem_z2kxg_349",selectItemIndicator:"_selectItemIndicator_z2kxg_377",selectViewport:"_selectViewport_z2kxg_388",selectEmpty:"_selectEmpty_z2kxg_394",srOnly:"_srOnly_z2kxg_405"},pi=Y.createContext(null);function hi(){return Y.useContext(pi)}const mi={themeVars:`'{"gap-RadioGroupOption": "var(--xmlui-gap-RadioGroupOption)", "Input:color-bg-RadioGroupOption-default": "var(--xmlui-color-bg-RadioGroupOption-default)", "thickness-border-RadioGroupOption": "var(--xmlui-thickness-border-RadioGroupOption)", "Input:color-border-RadioGroupOption-default": "var(--xmlui-color-border-RadioGroupOption-default)", "Input:color-border-RadioGroupOption-default--hover": "var(--xmlui-color-border-RadioGroupOption-default--hover)", "Input:color-border-RadioGroupOption-default--active": "var(--xmlui-color-border-RadioGroupOption-default--active)", "Input:color-border-RadioGroupOption--disabled": "var(--xmlui-color-border-RadioGroupOption--disabled)", "Input:color-text-RadioGroupOption--disabled": "var(--xmlui-color-text-RadioGroupOption--disabled)", "Input:color-border-RadioGroupOption-error": "var(--xmlui-color-border-RadioGroupOption-error)", "Input:color-border-RadioGroupOption-warning": "var(--xmlui-color-border-RadioGroupOption-warning)", "Input:color-border-RadioGroupOption-success": "var(--xmlui-color-border-RadioGroupOption-success)", "color-bg-checked-RadioGroupOption-default": "var(--xmlui-color-bg-checked-RadioGroupOption-default)", "color-bg-checked-RadioGroupOption--disabled": "var(--xmlui-color-bg-checked-RadioGroupOption--disabled)", "color-bg-checked-RadioGroupOption-error": "var(--xmlui-color-bg-checked-RadioGroupOption-error)", "color-bg-checked-RadioGroupOption-warning": "var(--xmlui-color-bg-checked-RadioGroupOption-warning)", "color-bg-checked-RadioGroupOption-success": "var(--xmlui-color-bg-checked-RadioGroupOption-success)", "Input:font-size-RadioGroupOption": "var(--xmlui-font-size-RadioGroupOption)", "Input:font-weight-RadioGroupOption": "var(--xmlui-font-weight-RadioGroupOption)", "Input:color-text-RadioGroupOption-default": "var(--xmlui-color-text-RadioGroupOption-default)", "Input:color-text-RadioGroupOption-error": "var(--xmlui-color-text-RadioGroupOption-error)", "Input:color-text-RadioGroupOption-warning": "var(--xmlui-color-text-RadioGroupOption-warning)", "Input:color-text-RadioGroupOption-success": "var(--xmlui-color-text-RadioGroupOption-success)", "Input:thickness-outline-RadioGroupOption--focus": "var(--xmlui-thickness-outline-RadioGroupOption--focus)", "Input:color-outline-RadioGroupOption--focus": "var(--xmlui-color-outline-RadioGroupOption--focus)", "Input:style-outline-RadioGroupOption--focus": "var(--xmlui-style-outline-RadioGroupOption--focus)", "Input:offset-outline-RadioGroupOption--focus": "var(--xmlui-offset-outline-RadioGroupOption--focus)"}'`,radioGroupContainer:"_radioGroupContainer_1wu5b_13",radioOptionContainer:"_radioOptionContainer_1wu5b_20",radioOption:"_radioOption_1wu5b_20",error:"_error_1wu5b_55",warning:"_warning_1wu5b_58",valid:"_valid_1wu5b_61",indicator:"_indicator_1wu5b_65",disabled:"_disabled_1wu5b_78",label:"_label_1wu5b_91"},xi={themeVars:`'{"Input:radius-Textarea-default": "var(--xmlui-radius-Textarea-default)", "Input:color-border-Textarea-default": "var(--xmlui-color-border-Textarea-default)", "Input:thickness-border-Textarea-default": "var(--xmlui-thickness-border-Textarea-default)", "Input:style-border-Textarea-default": "var(--xmlui-style-border-Textarea-default)", "Input:font-size-Textarea-default": "var(--xmlui-font-size-Textarea-default)", "Input:padding-Textarea-default": "var(--xmlui-padding-Textarea-default)", "Input:color-bg-Textarea-default": "var(--xmlui-color-bg-Textarea-default)", "Input:shadow-Textarea-default": "var(--xmlui-shadow-Textarea-default)", "Input:color-text-Textarea-default": "var(--xmlui-color-text-Textarea-default)", "Input:color-border-Textarea-default--hover": "var(--xmlui-color-border-Textarea-default--hover)", "Input:color-bg-Textarea-default--hover": "var(--xmlui-color-bg-Textarea-default--hover)", "Input:shadow-Textarea-default--hover": "var(--xmlui-shadow-Textarea-default--hover)", "Input:color-text-Textarea-default--hover": "var(--xmlui-color-text-Textarea-default--hover)", "Input:color-border-Textarea-default--focus": "var(--xmlui-color-border-Textarea-default--focus)", "Input:color-bg-Textarea-default--focus": "var(--xmlui-color-bg-Textarea-default--focus)", "Input:shadow-Textarea-default--focus": "var(--xmlui-shadow-Textarea-default--focus)", "Input:color-text-Textarea-default--focus": "var(--xmlui-color-text-Textarea-default--focus)", "Input:thickness-outline-Textarea-default--focus": "var(--xmlui-thickness-outline-Textarea-default--focus)", "Input:color-outline-Textarea-default--focus": "var(--xmlui-color-outline-Textarea-default--focus)", "Input:style-outline-Textarea-default--focus": "var(--xmlui-style-outline-Textarea-default--focus)", "Input:offset-outline-Textarea-default--focus": "var(--xmlui-offset-outline-Textarea-default--focus)", "Input:color-placeholder-Textarea-default": "var(--xmlui-color-placeholder-Textarea-default)", "Input:radius-Textarea-error": "var(--xmlui-radius-Textarea-error)", "Input:color-border-Textarea-error": "var(--xmlui-color-border-Textarea-error)", "Input:thickness-border-Textarea-error": "var(--xmlui-thickness-border-Textarea-error)", "Input:style-border-Textarea-error": "var(--xmlui-style-border-Textarea-error)", "Input:font-size-Textarea-error": "var(--xmlui-font-size-Textarea-error)", "Input:padding-Textarea-error": "var(--xmlui-padding-Textarea-error)", "Input:color-bg-Textarea-error": "var(--xmlui-color-bg-Textarea-error)", "Input:shadow-Textarea-error": "var(--xmlui-shadow-Textarea-error)", "Input:color-text-Textarea-error": "var(--xmlui-color-text-Textarea-error)", "Input:color-border-Textarea-error--hover": "var(--xmlui-color-border-Textarea-error--hover)", "Input:color-bg-Textarea-error--hover": "var(--xmlui-color-bg-Textarea-error--hover)", "Input:shadow-Textarea-error--hover": "var(--xmlui-shadow-Textarea-error--hover)", "Input:color-text-Textarea-error--hover": "var(--xmlui-color-text-Textarea-error--hover)", "Input:color-border-Textarea-error--focus": "var(--xmlui-color-border-Textarea-error--focus)", "Input:color-bg-Textarea-error--focus": "var(--xmlui-color-bg-Textarea-error--focus)", "Input:shadow-Textarea-error--focus": "var(--xmlui-shadow-Textarea-error--focus)", "Input:color-text-Textarea-error--focus": "var(--xmlui-color-text-Textarea-error--focus)", "Input:thickness-outline-Textarea-error--focus": "var(--xmlui-thickness-outline-Textarea-error--focus)", "Input:color-outline-Textarea-error--focus": "var(--xmlui-color-outline-Textarea-error--focus)", "Input:style-outline-Textarea-error--focus": "var(--xmlui-style-outline-Textarea-error--focus)", "Input:offset-outline-Textarea-error--focus": "var(--xmlui-offset-outline-Textarea-error--focus)", "Input:color-placeholder-Textarea-error": "var(--xmlui-color-placeholder-Textarea-error)", "Input:radius-Textarea-warning": "var(--xmlui-radius-Textarea-warning)", "Input:color-border-Textarea-warning": "var(--xmlui-color-border-Textarea-warning)", "Input:thickness-border-Textarea-warning": "var(--xmlui-thickness-border-Textarea-warning)", "Input:style-border-Textarea-warning": "var(--xmlui-style-border-Textarea-warning)", "Input:font-size-Textarea-warning": "var(--xmlui-font-size-Textarea-warning)", "Input:padding-Textarea-warning": "var(--xmlui-padding-Textarea-warning)", "Input:color-bg-Textarea-warning": "var(--xmlui-color-bg-Textarea-warning)", "Input:shadow-Textarea-warning": "var(--xmlui-shadow-Textarea-warning)", "Input:color-text-Textarea-warning": "var(--xmlui-color-text-Textarea-warning)", "Input:color-border-Textarea-warning--hover": "var(--xmlui-color-border-Textarea-warning--hover)", "Input:color-bg-Textarea-warning--hover": "var(--xmlui-color-bg-Textarea-warning--hover)", "Input:shadow-Textarea-warning--hover": "var(--xmlui-shadow-Textarea-warning--hover)", "Input:color-text-Textarea-warning--hover": "var(--xmlui-color-text-Textarea-warning--hover)", "Input:color-border-Textarea-warning--focus": "var(--xmlui-color-border-Textarea-warning--focus)", "Input:color-bg-Textarea-warning--focus": "var(--xmlui-color-bg-Textarea-warning--focus)", "Input:shadow-Textarea-warning--focus": "var(--xmlui-shadow-Textarea-warning--focus)", "Input:color-text-Textarea-warning--focus": "var(--xmlui-color-text-Textarea-warning--focus)", "Input:thickness-outline-Textarea-warning--focus": "var(--xmlui-thickness-outline-Textarea-warning--focus)", "Input:color-outline-Textarea-warning--focus": "var(--xmlui-color-outline-Textarea-warning--focus)", "Input:style-outline-Textarea-warning--focus": "var(--xmlui-style-outline-Textarea-warning--focus)", "Input:offset-outline-Textarea-warning--focus": "var(--xmlui-offset-outline-Textarea-warning--focus)", "Input:color-placeholder-Textarea-warning": "var(--xmlui-color-placeholder-Textarea-warning)", "Input:radius-Textarea-success": "var(--xmlui-radius-Textarea-success)", "Input:color-border-Textarea-success": "var(--xmlui-color-border-Textarea-success)", "Input:thickness-border-Textarea-success": "var(--xmlui-thickness-border-Textarea-success)", "Input:style-border-Textarea-success": "var(--xmlui-style-border-Textarea-success)", "Input:font-size-Textarea-success": "var(--xmlui-font-size-Textarea-success)", "Input:padding-Textarea-success": "var(--xmlui-padding-Textarea-success)", "Input:color-bg-Textarea-success": "var(--xmlui-color-bg-Textarea-success)", "Input:shadow-Textarea-success": "var(--xmlui-shadow-Textarea-success)", "Input:color-text-Textarea-success": "var(--xmlui-color-text-Textarea-success)", "Input:color-border-Textarea-success--hover": "var(--xmlui-color-border-Textarea-success--hover)", "Input:color-bg-Textarea-success--hover": "var(--xmlui-color-bg-Textarea-success--hover)", "Input:shadow-Textarea-success--hover": "var(--xmlui-shadow-Textarea-success--hover)", "Input:color-text-Textarea-success--hover": "var(--xmlui-color-text-Textarea-success--hover)", "Input:color-border-Textarea-success--focus": "var(--xmlui-color-border-Textarea-success--focus)", "Input:color-bg-Textarea-success--focus": "var(--xmlui-color-bg-Textarea-success--focus)", "Input:shadow-Textarea-success--focus": "var(--xmlui-shadow-Textarea-success--focus)", "Input:color-text-Textarea-success--focus": "var(--xmlui-color-text-Textarea-success--focus)", "Input:thickness-outline-Textarea-success--focus": "var(--xmlui-thickness-outline-Textarea-success--focus)", "Input:color-outline-Textarea-success--focus": "var(--xmlui-color-outline-Textarea-success--focus)", "Input:style-outline-Textarea-success--focus": "var(--xmlui-style-outline-Textarea-success--focus)", "Input:offset-outline-Textarea-success--focus": "var(--xmlui-offset-outline-Textarea-success--focus)", "Input:color-placeholder-Textarea-success": "var(--xmlui-color-placeholder-Textarea-success)", "Input:color-bg-Textarea--disabled": "var(--xmlui-color-bg-Textarea--disabled)", "Input:color-text-Textarea--disabled": "var(--xmlui-color-text-Textarea--disabled)", "Input:color-border-Textarea--disabled": "var(--xmlui-color-border-Textarea--disabled)"}'`,textarea:"_textarea_8qfuq_13",error:"_error_8qfuq_53",warning:"_warning_8qfuq_85",valid:"_valid_8qfuq_117",resizeHorizontal:"_resizeHorizontal_8qfuq_156",resizeVertical:"_resizeVertical_8qfuq_160",resizeBoth:"_resizeBoth_8qfuq_164"};var n=(e=>(e[e.Eof=-1]="Eof",e[e.Ws=-2]="Ws",e[e.BlockComment=-3]="BlockComment",e[e.EolComment=-4]="EolComment",e[e.Unknown=0]="Unknown",e[e.LParent=1]="LParent",e[e.RParent=2]="RParent",e[e.Identifier=3]="Identifier",e[e.Exponent=4]="Exponent",e[e.Divide=5]="Divide",e[e.Multiply=6]="Multiply",e[e.Remainder=7]="Remainder",e[e.Plus=8]="Plus",e[e.Minus=9]="Minus",e[e.BitwiseXor=10]="BitwiseXor",e[e.BitwiseOr=11]="BitwiseOr",e[e.LogicalOr=12]="LogicalOr",e[e.BitwiseAnd=13]="BitwiseAnd",e[e.LogicalAnd=14]="LogicalAnd",e[e.IncOp=15]="IncOp",e[e.DecOp=16]="DecOp",e[e.Assignment=17]="Assignment",e[e.AddAssignment=18]="AddAssignment",e[e.SubtractAssignment=19]="SubtractAssignment",e[e.ExponentAssignment=20]="ExponentAssignment",e[e.MultiplyAssignment=21]="MultiplyAssignment",e[e.DivideAssignment=22]="DivideAssignment",e[e.RemainderAssignment=23]="RemainderAssignment",e[e.ShiftLeftAssignment=24]="ShiftLeftAssignment",e[e.ShiftRightAssignment=25]="ShiftRightAssignment",e[e.SignedShiftRightAssignment=26]="SignedShiftRightAssignment",e[e.BitwiseAndAssignment=27]="BitwiseAndAssignment",e[e.BitwiseXorAssignment=28]="BitwiseXorAssignment",e[e.BitwiseOrAssignment=29]="BitwiseOrAssignment",e[e.LogicalAndAssignment=30]="LogicalAndAssignment",e[e.LogicalOrAssignment=31]="LogicalOrAssignment",e[e.NullCoalesceAssignment=32]="NullCoalesceAssignment",e[e.Semicolon=33]="Semicolon",e[e.Comma=34]="Comma",e[e.Colon=35]="Colon",e[e.LSquare=36]="LSquare",e[e.RSquare=37]="RSquare",e[e.QuestionMark=38]="QuestionMark",e[e.NullCoalesce=39]="NullCoalesce",e[e.OptionalChaining=40]="OptionalChaining",e[e.BinaryNot=41]="BinaryNot",e[e.LBrace=42]="LBrace",e[e.RBrace=43]="RBrace",e[e.Equal=44]="Equal",e[e.StrictEqual=45]="StrictEqual",e[e.LogicalNot=46]="LogicalNot",e[e.NotEqual=47]="NotEqual",e[e.StrictNotEqual=48]="StrictNotEqual",e[e.LessThan=49]="LessThan",e[e.LessThanOrEqual=50]="LessThanOrEqual",e[e.ShiftLeft=51]="ShiftLeft",e[e.GreaterThan=52]="GreaterThan",e[e.GreaterThanOrEqual=53]="GreaterThanOrEqual",e[e.ShiftRight=54]="ShiftRight",e[e.SignedShiftRight=55]="SignedShiftRight",e[e.Dot=56]="Dot",e[e.Spread=57]="Spread",e[e.Global=58]="Global",e[e.Backtick=59]="Backtick",e[e.DollarLBrace=60]="DollarLBrace",e[e.Arrow=61]="Arrow",e[e.DecimalLiteral=62]="DecimalLiteral",e[e.HexadecimalLiteral=63]="HexadecimalLiteral",e[e.BinaryLiteral=64]="BinaryLiteral",e[e.RealLiteral=65]="RealLiteral",e[e.StringLiteral=66]="StringLiteral",e[e.Infinity=67]="Infinity",e[e.NaN=68]="NaN",e[e.True=69]="True",e[e.False=70]="False",e[e.Typeof=71]="Typeof",e[e.Null=72]="Null",e[e.Undefined=73]="Undefined",e[e.In=74]="In",e[e.Let=75]="Let",e[e.Const=76]="Const",e[e.Var=77]="Var",e[e.If=78]="If",e[e.Else=79]="Else",e[e.Return=80]="Return",e[e.Break=81]="Break",e[e.Continue=82]="Continue",e[e.Do=83]="Do",e[e.While=84]="While",e[e.For=85]="For",e[e.Of=86]="Of",e[e.Try=87]="Try",e[e.Catch=88]="Catch",e[e.Finally=89]="Finally",e[e.Throw=90]="Throw",e[e.Switch=91]="Switch",e[e.Case=92]="Case",e[e.Default=93]="Default",e[e.Delete=94]="Delete",e[e.Function=95]="Function",e[e.Export=96]="Export",e[e.Import=97]="Import",e[e.As=98]="As",e[e.From=99]="From",e))(n||{});class fi{constructor(t){this.source=t,this._pos=0,this._line=1,this._column=0}get position(){return this._pos}get line(){return this._line}get column(){return this._column}peek(){return this.ahead(0)}ahead(t=1){return this._pos+t>this.source.length-1?null:this.source[this._pos+t]}get(){if(this._pos>=this.source.length)return null;const t=this.source[this._pos++];return t===`
2
+ `?(this._line++,this._column=0):this._column++,t}getTail(t){var o;return((o=this.source)==null?void 0:o.substring(t))??""}}const it={[n.Eof]:{},[n.Ws]:{},[n.DollarLBrace]:{},[n.Backtick]:{expressionStart:!0},[n.BlockComment]:{},[n.EolComment]:{},[n.Unknown]:{},[n.LParent]:{expressionStart:!0},[n.RParent]:{},[n.Identifier]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[n.Exponent]:{},[n.Divide]:{},[n.Multiply]:{},[n.Remainder]:{},[n.Plus]:{expressionStart:!0,canBeUnary:!0},[n.Minus]:{expressionStart:!0,canBeUnary:!0},[n.BitwiseXor]:{},[n.BitwiseOr]:{},[n.LogicalOr]:{},[n.BitwiseAnd]:{},[n.LogicalAnd]:{},[n.Assignment]:{isAssignment:!0},[n.AddAssignment]:{isAssignment:!0},[n.SubtractAssignment]:{isAssignment:!0},[n.ExponentAssignment]:{isAssignment:!0},[n.MultiplyAssignment]:{isAssignment:!0},[n.DivideAssignment]:{isAssignment:!0},[n.RemainderAssignment]:{isAssignment:!0},[n.ShiftLeftAssignment]:{isAssignment:!0},[n.ShiftRightAssignment]:{isAssignment:!0},[n.SignedShiftRightAssignment]:{isAssignment:!0},[n.BitwiseAndAssignment]:{isAssignment:!0},[n.BitwiseXorAssignment]:{isAssignment:!0},[n.BitwiseOrAssignment]:{isAssignment:!0},[n.LogicalAndAssignment]:{isAssignment:!0},[n.LogicalOrAssignment]:{isAssignment:!0},[n.NullCoalesceAssignment]:{isAssignment:!0},[n.Semicolon]:{},[n.Comma]:{},[n.Colon]:{},[n.LSquare]:{expressionStart:!0},[n.RSquare]:{},[n.QuestionMark]:{},[n.NullCoalesce]:{},[n.OptionalChaining]:{},[n.BinaryNot]:{expressionStart:!0,canBeUnary:!0},[n.LBrace]:{expressionStart:!0},[n.RBrace]:{},[n.Equal]:{},[n.StrictEqual]:{},[n.LogicalNot]:{expressionStart:!0,canBeUnary:!0},[n.NotEqual]:{},[n.StrictNotEqual]:{},[n.LessThan]:{},[n.LessThanOrEqual]:{},[n.ShiftLeft]:{},[n.GreaterThan]:{},[n.GreaterThanOrEqual]:{},[n.ShiftRight]:{},[n.SignedShiftRight]:{},[n.Dot]:{},[n.Spread]:{expressionStart:!0,isPropLiteral:!0},[n.Global]:{expressionStart:!0},[n.DecimalLiteral]:{expressionStart:!0,isPropLiteral:!0},[n.HexadecimalLiteral]:{expressionStart:!0,isPropLiteral:!0},[n.BinaryLiteral]:{expressionStart:!0,isPropLiteral:!0},[n.RealLiteral]:{expressionStart:!0,isPropLiteral:!0},[n.StringLiteral]:{expressionStart:!0,isPropLiteral:!0},[n.IncOp]:{expressionStart:!0},[n.DecOp]:{expressionStart:!0},[n.Infinity]:{expressionStart:!0,keywordLike:!0},[n.NaN]:{expressionStart:!0,keywordLike:!0},[n.True]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[n.False]:{expressionStart:!0,keywordLike:!0,isPropLiteral:!0},[n.Typeof]:{expressionStart:!0,canBeUnary:!0,keywordLike:!0},[n.Null]:{expressionStart:!0,keywordLike:!0},[n.Undefined]:{expressionStart:!0,keywordLike:!0},[n.In]:{keywordLike:!0},[n.Let]:{keywordLike:!0},[n.Const]:{keywordLike:!0},[n.Var]:{keywordLike:!0},[n.If]:{keywordLike:!0},[n.Else]:{keywordLike:!0},[n.Arrow]:{keywordLike:!0},[n.Return]:{keywordLike:!0},[n.Break]:{keywordLike:!0},[n.Continue]:{keywordLike:!0},[n.Do]:{keywordLike:!0},[n.While]:{keywordLike:!0},[n.For]:{keywordLike:!0},[n.Of]:{keywordLike:!0},[n.Throw]:{keywordLike:!0},[n.Try]:{keywordLike:!0},[n.Catch]:{keywordLike:!0},[n.Finally]:{keywordLike:!0},[n.Switch]:{keywordLike:!0},[n.Case]:{keywordLike:!0},[n.Default]:{keywordLike:!0},[n.Delete]:{expressionStart:!0,canBeUnary:!0,keywordLike:!0},[n.Function]:{keywordLike:!0,expressionStart:!0},[n.Export]:{keywordLike:!0},[n.Import]:{keywordLike:!0},[n.As]:{keywordLike:!0},[n.From]:{keywordLike:!0}};class gi{constructor(t){this.input=t,this._ahead=[],this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null,this._lastFetchPosition=0,this._phaseExternallySet=null}peek(t=!1){return this.ahead(0,t)}ahead(t=1,o=!1){if(t>16)throw new Error("Cannot look ahead more than 16 tokens");for(;this._ahead.length<=t;){const i=this.fetch();if(Yo(i))return i;(o||!o&&!Xo(i))&&this._ahead.push(i)}return this._ahead[t]}get(t=!1){if(this._ahead.length>0){const o=this._ahead.shift();if(!o)throw new Error("Token expected");return o}for(;;){const o=this.fetch();if(Yo(o)||t||!t&&!Xo(o))return o}}getRegEx(){return this.fetchRegEx()}getTail(){return this._ahead.length>0?this.input.getTail(this._ahead[0].location.startPosition):this.input.getTail(this._lastFetchPosition)}setStartingPhaseToTemplateLiteral(){this._phaseExternallySet=33}fetchNextChar(){return this._prefetched||(this._prefetchedPos=this.input.position,this._prefetchedColumn=this.input.column,this._prefetched=this.input.get()),this._prefetched}fetch(){const t=this,o=this.input,i=this._prefetchedPos||o.position,r=o.line,s=this._prefetchedColumn||o.column;this._lastFetchPosition=this.input.position;let a=null,c="",u=n.Eof,w=o.position,g=o.column,d=null,C=!1,b=this.getStartingPhaseThenReset();for(;;){if(d=this.fetchNextChar(),d===null)return S();u===n.Eof&&(u=n.Unknown);e:switch(b){case 0:switch(d){case" ":case" ":case`
3
+ `:case"\r":b=1,u=n.Ws;break;case"/":b=5,u=n.Divide;break;case"$":b=6,u=n.Identifier;break;case"*":b=8,u=n.Multiply;break;case"%":b=54,u=n.Remainder;break;case"+":b=51,u=n.Plus;break;case"-":b=52,u=n.Minus;break;case"^":b=58,u=n.BitwiseXor;break;case"|":b=7,u=n.BitwiseOr;break;case"&":b=9,u=n.BitwiseAnd;break;case"?":b=22,u=n.QuestionMark;break;case";":return _(n.Semicolon);case",":return _(n.Comma);case"(":return _(n.LParent);case")":return _(n.RParent);case":":b=20,u=n.Colon;break;case"`":return _(n.Backtick);case"[":return _(n.LSquare);case"]":return _(n.RSquare);case"~":return _(n.BinaryNot);case"{":return _(n.LBrace);case"}":return _(n.RBrace);case"=":b=10,u=n.Assignment;break;case"!":b=13,u=n.LogicalNot;break;case"<":b=14,u=n.LessThan;break;case">":b=15,u=n.GreaterThan;break;case"0":b=21,u=n.DecimalLiteral;break;case".":b=18,u=n.Dot;break;case'"':case"'":a=d,b=35;break;default:Qo(d)?(C=!0,b=17,u=n.Identifier):Me(d)?(b=27,u=n.DecimalLiteral):_(n.Unknown);break}break;case 6:if(d==="{")return _(n.DollarLBrace);b=17,C=!0,u=n.Identifier,Zo(d)||S();break;case 1:if(d!==" "&&d!==" "&&d!=="\r"&&d!==`
4
+ `)return S();break;case 3:d==="*"&&(b=4);break;case 4:if(d==="/")return _(n.BlockComment);break;case 2:if(d===`
5
+ `)return _();break;case 17:if(!Zo(d))return S();break;case 20:return d===":"?_(n.Global):S();case 5:if(d==="*")b=3;else if(d==="/")b=2,u=n.EolComment;else return d==="="?_(n.DivideAssignment):S();break;case 51:return d==="+"?_(n.IncOp):d==="="?_(n.AddAssignment):S();case 52:return d==="-"?_(n.DecOp):d==="="?_(n.SubtractAssignment):S();case 54:return d==="="?_(n.RemainderAssignment):S();case 58:return d==="="?_(n.BitwiseXorAssignment):S();case 7:if(d==="=")return _(n.BitwiseOrAssignment);if(d==="|"){b=59,u=n.LogicalOr;break}return S();case 59:return d==="="?_(n.LogicalOrAssignment):S();case 9:if(d==="=")return _(n.BitwiseAndAssignment);if(d==="&"){b=57,u=n.LogicalAnd;break}return S();case 57:return d==="="?_(n.LogicalAndAssignment):S();case 8:if(d==="*"){b=50,u=n.Exponent;break}else if(d==="=")return _(n.MultiplyAssignment);return S();case 50:return d==="="?_(n.ExponentAssignment):S();case 22:if(d==="?"){b=60,u=n.NullCoalesce;break}return d==="."?_(n.OptionalChaining):S();case 60:return d==="="?_(n.NullCoalesceAssignment):S();case 10:if(d===">")return _(n.Arrow);if(d==="="){b=11,u=n.Equal;break}return S();case 11:return d==="="?_(n.StrictEqual):S();case 13:if(d==="="){b=12,u=n.NotEqual;break}return S();case 12:return d==="="?_(n.StrictNotEqual):S();case 14:if(d==="=")return _(n.LessThanOrEqual);if(d==="<"){b=55,u=n.ShiftLeft;break}return S();case 55:return d==="="?_(n.ShiftLeftAssignment):S();case 15:if(d==="=")return _(n.GreaterThanOrEqual);if(d===">"){b=16,u=n.SignedShiftRight;break}return S();case 16:if(d===">"){b=56,u=n.ShiftRight;break}return d==="="?_(n.SignedShiftRightAssignment):S();case 56:return d==="="?_(n.ShiftRightAssignment):S();case 21:if(d==="x")b=23,u=n.Unknown;else if(d==="b")b=25,u=n.Unknown;else if(Me(d)||d==="_")b=27;else if(d===".")b=28,u=n.Unknown;else if(d==="e"||d==="E")b=30,u=n.Unknown;else return S();break;case 18:if(d==="."){b=19,u=n.Unknown;break}if(!Me(d))return S();b=29,u=n.RealLiteral;break;case 19:return d==="."?_(n.Spread):S();case 23:if(d==="_")break;if(!ve(d))return S();b=24,u=n.HexadecimalLiteral;break;case 24:if(!ve(d)&&d!=="_")return S();break;case 25:if(d==="_")break;if(!Jo(d))return S();b=26,u=n.BinaryLiteral;break;case 26:if(!Jo(d)&&d!=="_")return S();u=n.BinaryLiteral;break;case 27:if(Me(d)||d==="_")break;if(d==="."&&(this.input.peek()===null||Me(this.input.peek())))b=28,u=n.Unknown;else if(d==="e"||d==="E")b=30,u=n.Unknown;else return S();break;case 28:if(Me(d))b=29,u=n.RealLiteral;else if(d==="e"||d==="E")b=30;else return S();break;case 29:if(d==="e"||d==="E")b=30,u=n.Unknown;else if(!Me(d)&&d!=="_")return S();break;case 30:if(d==="+"||d==="-")b=31;else if(Me(d))b=32,u=n.RealLiteral;else return S();break;case 31:if(Me(d))b=32,u=n.RealLiteral;else return S();break;case 32:if(!Me(d))return S();break;case 34:{b=33;const U=this.input.ahead(0),he=this.input.ahead(1);if(U==="`"||U==="$"&&he==="{")return _(n.StringLiteral);break}case 33:switch(d){case"\\":b=34,u=n.Unknown;break e;case"`":return _(n.Backtick);case"$":if(this.input.ahead(0)==="{")return D(),this.fetchNextChar(),_(n.DollarLBrace)}const oe=this.input.ahead(0),$=this.input.ahead(1);if(oe==="`"||oe==="$"&&$==="{")return _(n.StringLiteral);break;case 35:if(d===a)return _(n.StringLiteral);if(vi(d))return _(n.Unknown);d==="\\"&&(b=36,u=n.Unknown);break;case 36:switch(d){case"b":case"f":case"n":case"r":case"t":case"v":case"S":case"0":case"'":case'"':case"`":case"\\":b=35;break;case"x":b=37;break;case"u":b=39;break;default:b=35;break}break;case 37:if(ve(d))b=38;else return _(n.Unknown);break;case 38:if(ve(d))b=35;else return _(n.Unknown);break;case 39:if(d==="{"){b=43;break}if(ve(d))b=40;else return _(n.Unknown);break;case 40:if(ve(d))b=41;else return _(n.Unknown);break;case 41:if(ve(d))b=42;else return _(n.Unknown);break;case 42:if(ve(d))b=35;else return _(n.Unknown);break;case 43:if(ve(d))b=44;else return _(n.Unknown);break;case 44:if(d==="}")b=35;else if(ve(d))b=45;else return _(n.Unknown);break;case 45:if(d==="}")b=35;else if(ve(d))b=46;else return _(n.Unknown);break;case 46:if(d==="}")b=35;else if(ve(d))b=47;else return _(n.Unknown);break;case 47:if(d==="}")b=35;else if(ve(d))b=48;else return _(n.Unknown);break;case 48:if(d==="}")b=35;else if(ve(d))b=49;else return _(n.Unknown);break;case 49:if(d==="}")b=35;else return _(n.Unknown);break;default:return S()}D()}function D(){c+=d,t._prefetched=null,t._prefetchedPos=null,t._prefetchedColumn=null,w=o.position,g=o.position}function S(){return C&&(u=Q.get(c)??(Qo(c[0])&&c[c.length-1]!=="'"?n.Identifier:n.Unknown)),{text:c,type:u,location:{startPosition:i,endPosition:w,startLine:r,endLine:r,startColumn:s,endColumn:g}}}function _(oe){return D(),oe!==void 0&&(u=oe),S()}}getStartingPhaseThenReset(){if(this._phaseExternallySet!==null){const t=this._phaseExternallySet;return this._phaseExternallySet=null,t}return 0}fetchRegEx(){const t=this._ahead.length>0?this._ahead[0].location.startPosition:this._lastFetchPosition,o=this.input.getTail(t);try{const i=fo.parseRegExpLiteral(o),r=i.raw;for(let s=1;s<r.length;s++)this.fetchNextChar(),this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null;return this._ahead.length=0,{success:!0,pattern:i.pattern.raw,flags:i.flags.raw,length:r.length}}catch(i){let r=i.index;if(i.toString().includes("Invalid flag"))for(;r<o.length&&"dgimsuy".includes(o[r]);)r++;if(r===void 0)return{success:!1,pattern:o[0]};const s=o.substring(0,r);try{const a=fo.parseRegExpLiteral(s),c=a.raw;for(let u=1;u<c.length;u++)this.fetchNextChar(),this._prefetched=null,this._prefetchedPos=null,this._prefetchedColumn=null;return this._ahead.length=0,{success:!0,pattern:a.pattern.raw,flags:a.flags.raw,length:c.length}}catch{return{success:!1,pattern:s}}}}}const Q=new Map;Q.set("typeof",n.Typeof),Q.set("Infinity",n.Infinity),Q.set("NaN",n.NaN),Q.set("true",n.True),Q.set("false",n.False),Q.set("undefined",n.Undefined),Q.set("null",n.Null),Q.set("in",n.In),Q.set("let",n.Let),Q.set("const",n.Const),Q.set("var",n.Var),Q.set("if",n.If),Q.set("else",n.Else),Q.set("return",n.Return),Q.set("break",n.Break),Q.set("continue",n.Continue),Q.set("do",n.Do),Q.set("while",n.While),Q.set("for",n.For),Q.set("of",n.Of),Q.set("try",n.Try),Q.set("catch",n.Catch),Q.set("finally",n.Finally),Q.set("throw",n.Throw),Q.set("switch",n.Switch),Q.set("case",n.Case),Q.set("default",n.Default),Q.set("delete",n.Delete),Q.set("function",n.Function),Q.set("export",n.Export),Q.set("import",n.Import),Q.set("as",n.As),Q.set("from",n.From);function Yo(e){return e.type===n.Eof}function Xo(e){return e.type<=n.Ws}function Qo(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"||e==="$"}function Zo(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"||e==="$"}function Jo(e){return e==="0"||e==="1"}function Me(e){return e>="0"&&e<="9"}function ve(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function vi(e){return e==="\r"||e===`
6
+ `||e==="…"||e==="\u2028"||e==="\u2029"}let bi=class Sr extends Error{constructor(t,o){super(t),this.code=o,Object.setPrototypeOf(this,Sr.prototype)}};const zt={W001:"An expression expected",W002:"Unexpected token: {0}",W003:"An identifier expected",W004:"'}' expected",W005:"']' expected",W006:"')' expected",W007:"Invalid object property name type",W008:"':' expected",W009:"'=' expected",W010:"Invalid argument list",W011:"For loop variable must be initialized",W012:"'{' expected",W013:"'catch' or 'finally' expected",W014:"'(' or expected",W015:"'case' or 'default' expected",W016:"'default' case can be used only once within a switch statement",W017:"Invalid sequence expression",W018:"Invalid object literal",W019:"Identifier '{0}' is already imported",W020:"Function '{0}' is already defined in the module",W021:"'{0}' is already exported from the module",W022:"Cannot find module '{0}'",W023:"Module '{0}' does not export '{1}'",W024:"'function' or 'const' expected",W025:"'from' expected",W026:"A string literal expected",W027:"Variables can be declared only in the top level module",W028:"Invalid statement used in a module",W029:"An imported module can contain only exported functions",W030:"Nested declarations cannot be exported",W031:"An identifier in a declaration cannot start with '$'"};class jo{constructor(t){this.source=t,this._parseErrors=[],this._statementLevel=0,this._lexer=new gi(new fi(t))}get errors(){return this._parseErrors}get current(){return this._lexer.peek()}get isEof(){return this._lexer.peek().type===n.Eof}getTail(){return this._lexer.getTail()}parseStatements(){this._statementLevel=0;const t=[];for(;!this.isEof;){const o=this.parseStatement();if(!o)return null;t.push(o),o.type!=="EmptyS"&&this.skipToken(n.Semicolon)}return t}parseStatement(t=!0){this._statementLevel++;try{const o=this._lexer.peek();switch(o.type){case n.Semicolon:return this.parseEmptyStatement();case n.Let:return this.parseLetStatement();case n.Const:return this.parseConstStatement();case n.Var:return this.parseVarStatement();case n.LBrace:return this.parseBlockStatement();case n.If:return this.parseIfStatement();case n.Do:return this.parseDoWhileStatement();case n.While:return this.parseWhileStatement();case n.Return:return this.parseReturnStatement();case n.Break:return this._lexer.get(),this.createStatementNode("BrkS",{},o,o);case n.Continue:return this._lexer.get(),this.createStatementNode("ContS",{},o,o);case n.For:return this.parseForStatement();case n.Throw:return this.parseThrowStatement();case n.Try:return this.parseTryStatement();case n.Switch:return this.parseSwitchStatement();case n.Function:return this.parseFunctionDeclaration();case n.Export:return this.parseExport();case n.Import:return this.parseImport();default:return o.type===n.Eof?(this.reportError("W002",o,"EOF"),null):this.isExpressionStart(o)?this.parseExpressionStatement(t):(this.reportError("W002",o,o.text),null)}}finally{this._statementLevel--}}parseEmptyStatement(){const t=this._lexer.get();return this.createStatementNode("EmptyS",{},t,t)}parseExpressionStatement(t=!0){const o=this._lexer.peek(),i=this.getExpression(t);return i?this.createStatementNode("ExprS",{expression:i},o,i.endToken):null}parseLetStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const r=this._lexer.peek();let s={};if(r.type===n.LBrace){o=this._lexer.ahead(1);const u=this.parseObjectDestructure();if(u===null)return null;s={objectDestruct:u},o=u.length>0?u[u.length-1].endToken:o}else if(r.type===n.LSquare){o=this._lexer.ahead(1);const u=this.parseArrayDestructure();if(u===null)return null;s={arrayDestruct:u},o=u.length>0?u[u.length-1].endToken:o}else if(r.type===n.Identifier){if(r.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:r.text}}else return this.reportError("W003"),null;const a=this._lexer.peek();let c=null;if(a.type===n.Assignment){if(this._lexer.get(),c=this.getExpression(!1),c===null)return null;s.expression=c,o=c.endToken}else if(s.arrayDestruct||s.objectDestruct)return this.reportError("W009",a),null;if(i.push(this.createExpressionNode("VarD",s,r,o)),this._lexer.peek().type!==n.Comma)break;this._lexer.get()}return this.createStatementNode("LetS",{declarations:i},t,o)}parseConstStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const r=this._lexer.peek();let s={};if(r.type===n.LBrace){o=this._lexer.ahead(1);const c=this.parseObjectDestructure();if(c===null)return null;s={objectDestruct:c},o=c.length>0?c[c.length-1].endToken:o}else if(r.type===n.LSquare){o=this._lexer.ahead(1);const c=this.parseArrayDestructure();if(c===null)return null;s={arrayDestruct:c},o=c.length>0?c[c.length-1].endToken:o}else if(r.type===n.Identifier){if(r.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:r.text}}else return this.reportError("W003"),null;this.expectToken(n.Assignment);const a=this.getExpression(!1);if(a===null)return null;if(s.expression=a,o=a.endToken,i.push(this.createExpressionNode("VarD",s,r,o)),this._lexer.peek().type!==n.Comma)break;this._lexer.get()}return this.createStatementNode("ConstS",{declarations:i},t,o)}parseVarStatement(){const t=this._lexer.get();let o=t;const i=[];for(;;){const r=this._lexer.peek();let s={};if(r.type===n.Identifier){if(r.text.startsWith("$"))return this.reportError("W031"),null;o=this._lexer.get(),s={id:r.text}}else return this.reportError("W003"),null;this.expectToken(n.Assignment);const a=this.getExpression(!1);if(a===null)return null;if(s.expression=a,o=a.endToken,i.push(this.createExpressionNode("RVarD",s,r,o)),this._lexer.peek().type!==n.Comma)break;this._lexer.get()}return this.createStatementNode("VarS",{declarations:i},t,o)}parseObjectDestructure(){const t=[],o=this._lexer.get();let i=o,r=this._lexer.peek();for(;r.type===n.Identifier;){const s=r.text;if(s.startsWith("$"))return this.reportError("W031"),null;let a,c,u;if(this._lexer.get(),r=this._lexer.peek(),r.type===n.Colon){if(this._lexer.get(),r=this._lexer.peek(),r.type===n.Identifier)a=r.text,i=r,this._lexer.get();else if(r.type===n.LSquare){if(c=this.parseArrayDestructure(),c===null)return null;i=c[c.length-1].endToken}else if(r.type===n.LBrace){if(u=this.parseObjectDestructure(),u===null)return null;i=u[u.length-1].endToken}}r=this._lexer.peek(),(r.type===n.Comma||r.type===n.RBrace)&&(t.push(this.createExpressionNode("ODestr",{id:s,alias:a,arrayDestruct:c,objectDestruct:u},o,i)),r.type===n.Comma&&(this._lexer.get(),r=this._lexer.peek()))}return this.expectToken(n.RBrace,"W004"),t}parseArrayDestructure(){const t=[],o=this._lexer.get();let i=o;do{let r=this._lexer.peek(),s,a,c;if(r.type===n.Identifier){if(s=r.text,s.startsWith("$"))return this.reportError("W031"),null;i=r,r=this._lexer.get()}else if(r.type===n.LSquare){if(a=this.parseArrayDestructure(),a===null)return null;i=a[a.length-1].endToken}else if(r.type===n.LBrace){if(c=this.parseObjectDestructure(),c===null)return null;i=c[c.length-1].endToken}if(r=this._lexer.peek(),r.type===n.Comma)t.push(this.createExpressionNode("ADestr",{id:s,arrayDestruct:a,objectDestruct:c},o,i)),this._lexer.get();else if(r.type===n.RSquare){(s||a||c)&&t.push(this.createExpressionNode("ADestr",{id:s,arrayDestruct:a,objectDestruct:c},o,i));break}else return this.reportError("W002",r),null}while(!0);return this.expectToken(n.RSquare,"W005"),t}parseBlockStatement(){const t=this._lexer.get(),o=[];for(;this._lexer.peek().type!==n.RBrace;){const r=this.parseStatement();if(!r)return null;o.push(r),r.type!=="EmptyS"&&this.skipToken(n.Semicolon)}const i=this._lexer.get();return this.createStatementNode("BlockS",{statements:o},t,i)}parseIfStatement(){const t=this._lexer.get();let o=t;this.expectToken(n.LParent,"W014");const i=this.getExpression();if(!i)return null;this.expectToken(n.RParent,"W006");const r=this.parseStatement();if(!r)return null;o=r.endToken;let s=!0;r.type!=="BlockS"&&(this._lexer.peek().type===n.Semicolon?this._lexer.get():s=!1);let a=null;if(s&&this._lexer.peek().type===n.Else){if(this._lexer.get(),a=this.parseStatement(),!a)return null;o=a.endToken}return this.createStatementNode("IfS",{condition:i,thenBranch:r,elseBranch:a},t,o)}parseWhileStatement(){const t=this._lexer.get();this.expectToken(n.LParent,"W014");const o=this.getExpression();if(!o)return null;this.expectToken(n.RParent,"W006");const i=this.parseStatement();return i?this.createStatementNode("WhileS",{condition:o,body:i},t,i.endToken):null}parseDoWhileStatement(){const t=this._lexer.get(),o=this.parseStatement();if(!o)return null;o.type!=="BlockS"&&o.type!=="EmptyS"&&this.expectToken(n.Semicolon),this.expectToken(n.While),this.expectToken(n.LParent,"W014");const i=this.getExpression();if(!i)return null;const r=this._lexer.peek();return this.expectToken(n.RParent,"W006"),this.createStatementNode("DoWS",{condition:i,body:o},t,r)}parseReturnStatement(){const t=this._lexer.peek();let o=this._lexer.get(),i;if(it[this._lexer.peek().type].expressionStart){if(i=this.getExpression(),i===null)return null;o=i.endToken}return this.createStatementNode("RetS",{expression:i},t,o)}parseForStatement(){const t=this._lexer.peek();this._lexer.get(),this.expectToken(n.LParent,"W014");let o=this._lexer.peek();if(o.type===n.Identifier){if(this._lexer.ahead(1).type===n.In)return this.parseForInOfStatement(t,"none",o.text,"ForInS");if(this._lexer.ahead(1).type===n.Of)return this.parseForInOfStatement(t,"none",o.text,"ForOfS")}else if(o.type===n.Let){const c=this._lexer.ahead(1);if(c.type===n.Identifier){const u=this._lexer.ahead(2);if(u.type===n.In)return this.parseForInOfStatement(t,"let",c.text,"ForInS");if(u.type===n.Of)return this.parseForInOfStatement(t,"let",c.text,"ForOfS")}}else if(o.type===n.Const){const c=this._lexer.ahead(1);if(c.type===n.Identifier){const u=this._lexer.ahead(2);if(u.type===n.In)return this.parseForInOfStatement(t,"const",c.text,"ForInS");if(u.type===n.Of)return this.parseForInOfStatement(t,"const",c.text,"ForOfS")}}let i;if(o=this._lexer.peek(),o.type===n.Semicolon)this._lexer.get();else if(o.type===n.Let){const c=this.parseLetStatement();if(c===null)return null;if(i=c,i.declarations.some(u=>!u.expression))return this.reportError("W011"),null;this.expectToken(n.Semicolon)}else if(it[o.type].expressionStart){const c=this.parseExpressionStatement();if(c===null)return null;i=c,this.expectToken(n.Semicolon)}let r;if(o=this._lexer.peek(),o.type===n.Semicolon)this._lexer.get();else{if(r=this.getExpression(),r===null)return null;this.expectToken(n.Semicolon)}let s;if(o=this._lexer.peek(),o.type!==n.RParent&&(s=this.getExpression(),s===null))return null;this.expectToken(n.RParent,"W006");const a=this.parseStatement();return a?this.createStatementNode("ForS",{init:i,condition:r,update:s,body:a},t,a.endToken):null}parseForInOfStatement(t,o,i,r){if(o!=="none"){if(i.startsWith("$"))return this.reportError("W031"),null;this._lexer.get()}this._lexer.get(),this._lexer.get();const s=this.getExpression(!0);this.expectToken(n.RParent,"W006");const a=this.parseStatement();return a?r==="ForInS"?this.createStatementNode("ForInS",{varBinding:o,id:i,expression:s,body:a},t,a.endToken):this.createStatementNode("ForOfS",{varBinding:o,id:i,expression:s,body:a},t,a.endToken):null}parseThrowStatement(){const t=this._lexer.peek();this._lexer.get();let o;return o=this.getExpression(),o===null?null:this.createStatementNode("ThrowS",{expression:o},t,o.endToken)}parseTryStatement(){const t=this._lexer.peek();let o=this._lexer.get();const i=this,r=w();let s,a,c,u=this._lexer.peek();if(u.type===n.Catch){if(this._lexer.get(),u=this._lexer.peek(),u.type===n.LParent){if(this._lexer.get(),u=this._lexer.peek(),u.type!==n.Identifier)return this.reportError("W003",u),null;a=u.text,this._lexer.get(),this.expectToken(n.RParent,"W006")}s=w(),o=s.endToken,this._lexer.peek().type===n.Finally&&(this._lexer.get(),c=w(),o=c.endToken)}else if(u.type===n.Finally)this._lexer.get(),c=w(),o=c.endToken;else return this.reportError("W013",u),null;return this.createStatementNode("TryS",{tryBlock:r,catchBlock:s,catchVariable:a,finallyBlock:c},t,o);function w(){const g=i._lexer.peek();return g.type!==n.LBrace?(i.reportError("W012",g),null):i.parseBlockStatement()}}parseSwitchStatement(){const t=this._lexer.get();this.expectToken(n.LParent,"W014");const o=this.getExpression();if(!o)return null;this.expectToken(n.RParent,"W006"),this.expectToken(n.LBrace,"W012");const i=[];let r=!1;for(;;){let a=this._lexer.peek(),c;if(a.type===n.Case){if(this._lexer.get(),c=this.getExpression(),!c)return null}else if(a.type===n.Default){if(r)return this.reportError("W016"),null;r=!0,this._lexer.get()}else{if(a.type===n.RBrace)break;return this.reportError("W015"),null}this.expectToken(n.Colon,"W008");let u=[],w=!1;for(;!w;)switch(this._lexer.peek().type){case n.Case:case n.Default:case n.RBrace:w=!0;break;default:const d=this.parseStatement();if(d===null){w=!0;break}u.push(d),d.type!=="EmptyS"&&this.skipToken(n.Semicolon)}i.push(this.createNode("SwitchC",{caseExpression:c,statements:u},t))}const s=this._lexer.peek();return this.expectToken(n.RBrace,"W004"),this.createStatementNode("SwitchS",{expression:o,cases:i},t,s)}parseFunctionDeclaration(t=!1){const o=this._lexer.get();let i;const r=this._lexer.peek();if(t){if(r.type!==n.LParent){if(r.type!==n.Identifier)return this.reportError("W003",r),null;i=r.text,this._lexer.get()}}else{if(r.type!==n.Identifier)return this.reportError("W003",r),null;i=r.text,this._lexer.get()}const s=this._lexer.peek();if(s.type!==n.LParent)return this.reportError("W014",s),null;const a=this.getExpression(!0);let c;const u=[];switch(a.type){case"NoArgE":c=!0;break;case"IdE":c=(a.parenthesized??0)<=1,u.push(a);break;case"SeqE":c=a.parenthesized===1;let g=!1;if(c)for(const d of a.expressions){if(g){c=!1;break}switch(d.type){case"IdE":c=!d.parenthesized,u.push(d);break;case"OLitE":{if(c=!d.parenthesized,c){const C=this.convertToObjectDestructure(d);C&&u.push(C)}break}case"ALitE":{if(c=!d.parenthesized,c){const C=this.convertToArrayDestructure(d);C&&u.push(C)}break}case"SpreadE":{if(g=!0,d.operand.type!=="IdE"){c=!1;break}u.push(d);break}default:c=!1;break}}break;case"OLitE":if(c=a.parenthesized===1,c){const d=this.convertToObjectDestructure(a);d&&u.push(d)}break;case"ALitE":if(c=a.parenthesized===1,c){const d=this.convertToArrayDestructure(a);d&&u.push(d)}break;case"SpreadE":if(a.operand.type!=="IdE"){c=!1;break}c=!0,u.push(a);break;default:c=!1}if(!c)return this.reportError("W010",o),null;if(this._lexer.peek().type!==n.LBrace)return this.reportError("W012",this._lexer.peek()),null;const w=this.parseBlockStatement();return w?this.createStatementNode("FuncD",{name:i,args:u,statement:w},o,w.endToken):null}parseExport(){this._lexer.get();const t=this._lexer.peek();if(t.type===n.Const){if(this._statementLevel>1)return this.reportError("W030",t),null;const o=this.parseConstStatement();return o===null?null:{...o,isExported:!0}}else if(t.type===n.Function){if(this._statementLevel>1)return this.reportError("W030",t),null;const o=this.parseFunctionDeclaration();return o===null?null:{...o,isExported:!0}}return this.reportError("W024",t),null}parseImport(){const t=this._lexer.get();this.expectToken(n.LBrace,"W012");const o={};let i=this._lexer.peek();for(;i.type!==n.RBrace;){if(i.type!==n.Identifier)return this.reportError("W003",i),null;const a=i.text;if(this._lexer.get(),i=this._lexer.peek(),i.type===n.As){if(this._lexer.get(),i=this._lexer.peek(),i.type!==n.Identifier)return this.reportError("W003",i),null;if(o[i.text])return this.reportError("W019",i,i.text),null;o[i.text]=a,this._lexer.get()}else{if(o[a])return this.reportError("W019",i,a),null;o[a]=a}i=this._lexer.peek(),i.type===n.Comma&&(this._lexer.get(),i=this._lexer.peek())}this._lexer.get(),this.expectToken(n.From,"W025");const r=this._lexer.peek();if(r.type!==n.StringLiteral)return this.reportError("W026",r),null;this._lexer.get();const s=this.parseStringLiteral(r);return this.createStatementNode("ImportD",{imports:o,moduleFile:s.value},t,r)}parseExpr(t=!0){return t?this.parseSequenceExpression():this.parseCondOrSpreadOrAsgnOrArrowExpr()}parseSequenceExpression(){const t=this._lexer.peek();let o=t,i=this.parseCondOrSpreadOrAsgnOrArrowExpr();if(!i)return null;o=i.endToken;const r=[];let s=!1;if(this._lexer.peek().type===n.Comma)for(r.push(i);this.skipToken(n.Comma);)if(this._lexer.peek().type===n.Comma)s=!0,o=this._lexer.peek(),r.push(this.createExpressionNode("NoArgE",{},o,o));else{const a=this.parseCondOrSpreadOrAsgnOrArrowExpr();if(!a)break;o=a.endToken,r.push(a)}return r.length&&(i=this.createExpressionNode("SeqE",{expressions:r,loose:s},t,o),s&&(i=this.convertToArrayDestructure(i))),i}parseCondOrSpreadOrAsgnOrArrowExpr(){const t=this._lexer.peek();if(t.type===n.Spread){this._lexer.get();const r=this.parseNullCoalescingExpr();return r?this.createExpressionNode("SpreadE",{operand:r},t,r.endToken):null}if(t.type===n.Function){const r=this.parseFunctionDeclaration(!0);return r?this.createExpressionNode("ArrowE",{name:r.name,args:r.args,statement:r.statement},t,r.endToken):null}const o=this.parseNullCoalescingExpr();if(!o)return null;const i=this._lexer.peek();if(i.type===n.Arrow)return this.parseArrowExpression(t,o);if(i.type===n.QuestionMark){this._lexer.get();const r=this.getExpression(!1);this.expectToken(n.Colon);const s=this.getExpression(!1);return this.createExpressionNode("CondE",{condition:o,consequent:r,alternate:s},t,s.endToken)}if(it[i.type].isAssignment){this._lexer.get();const r=this.getExpression();return r?this.createExpressionNode("AsgnE",{leftValue:o,operator:i.text,operand:r},t,r.endToken):null}return o}parseArrowExpression(t,o){let i;const r=[];switch(o.type){case"NoArgE":i=!0;break;case"IdE":i=(o.parenthesized??0)<=1,r.push(o);break;case"SeqE":i=o.parenthesized===1;let a=!1;if(i)for(const c of o.expressions){if(a){i=!1;break}switch(c.type){case"IdE":i=!c.parenthesized,r.push(c);break;case"OLitE":{if(i=!c.parenthesized,i){const u=this.convertToObjectDestructure(c);u&&r.push(u)}break}case"ALitE":{if(i=!c.parenthesized,i){const u=this.convertToArrayDestructure(c);u&&r.push(u)}break}case"SpreadE":{if(a=!0,c.operand.type!=="IdE"){i=!1;break}r.push(c);break}default:i=!1;break}}break;case"OLitE":if(i=o.parenthesized===1,i){const c=this.convertToObjectDestructure(o);c&&r.push(c)}break;case"ALitE":if(i=o.parenthesized===1,i){const c=this.convertToArrayDestructure(o);c&&r.push(c)}break;case"SpreadE":i=o.operand.type==="IdE",i&&r.push(o);break;default:i=!1}if(!i)return this.reportError("W010",t),null;this._lexer.get();const s=this.parseStatement(!1);return s?this.createExpressionNode("ArrowE",{args:r,statement:s},t,s.endToken):null}parseNullCoalescingExpr(){const t=this._lexer.peek();let o=this.parseLogicalOrExpr();if(!o)return null;for(;this.skipToken(n.NullCoalesce);){const i=this.parseLogicalOrExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"??",left:o,right:i},t,r)}return o}parseLogicalOrExpr(){const t=this._lexer.peek();let o=this.parseLogicalAndExpr();if(!o)return null;for(;this.skipToken(n.LogicalOr);){const i=this.parseLogicalAndExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"||",left:o,right:i},t,r)}return o}parseLogicalAndExpr(){const t=this._lexer.peek();let o=this.parseBitwiseOrExpr();if(!o)return null;for(;this.skipToken(n.LogicalAnd);){const i=this.parseBitwiseOrExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"&&",left:o,right:i},t,r)}return o}parseBitwiseOrExpr(){const t=this._lexer.peek();let o=this.parseBitwiseXorExpr();if(!o)return null;for(;this.skipToken(n.BitwiseOr);){const i=this.parseBitwiseXorExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"|",left:o,right:i},t,r)}return o}parseBitwiseXorExpr(){const t=this._lexer.peek();let o=this.parseBitwiseAndExpr();if(!o)return null;for(;this.skipToken(n.BitwiseXor);){const i=this.parseBitwiseAndExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"^",left:o,right:i},t,r)}return o}parseBitwiseAndExpr(){const t=this._lexer.peek();let o=this.parseEquExpr();if(!o)return null;for(;this.skipToken(n.BitwiseAnd);){const i=this.parseEquExpr();if(!i)return this.reportError("W001"),null;let r=i.endToken;o=this.createExpressionNode("BinaryE",{operator:"&",left:o,right:i},t,r)}return o}parseEquExpr(){const t=this._lexer.peek();let o=this.parseRelOrInExpr();if(!o)return null;let i;for(;i=this.skipTokens(n.Equal,n.StrictEqual,n.NotEqual,n.StrictNotEqual);){const r=this.parseRelOrInExpr();if(!r)return this.reportError("W001"),null;let s=r.endToken;o=this.createExpressionNode("BinaryE",{type:"BinaryE",operator:i.text,left:o,right:r},t,s)}return o}parseRelOrInExpr(){const t=this._lexer.peek();let o=this.parseShiftExpr();if(!o)return null;let i;for(;i=this.skipTokens(n.LessThan,n.LessThanOrEqual,n.GreaterThan,n.GreaterThanOrEqual,n.In);){const r=this.parseShiftExpr();if(!r)return this.reportError("W001"),null;let s=r.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:r},t,s)}return o}parseShiftExpr(){const t=this._lexer.peek();let o=this.parseAddExpr();if(!o)return null;let i;for(;i=this.skipTokens(n.ShiftLeft,n.ShiftRight,n.SignedShiftRight);){const r=this.parseAddExpr();if(!r)return this.reportError("W001"),null;let s=r.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:r},t,s)}return o}parseAddExpr(){const t=this._lexer.peek();let o=this.parseMultExpr();if(!o)return null;let i;for(;i=this.skipTokens(n.Plus,n.Minus);){const r=this.parseMultExpr();if(!r)return this.reportError("W001"),null;let s=r.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:r},t,s)}return o}parseMultExpr(){const t=this._lexer.peek();let o=this.parseExponentialExpr();if(!o)return null;let i;for(;i=this.skipTokens(n.Multiply,n.Divide,n.Remainder);){const r=this.parseExponentialExpr();if(!r)return this.reportError("W001"),null;let s=r.endToken;o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:r},t,s)}return o}parseExponentialExpr(){const t=this._lexer.peek();let o=this.parseUnaryOrPrefixExpr();if(!o)return null;let i,r=0;for(;i=this.skipToken(n.Exponent);){let s=this.parseUnaryOrPrefixExpr();if(!s)return this.reportError("W001"),null;let a=s.endToken;if(r===0)o=this.createExpressionNode("BinaryE",{operator:i.text,left:o,right:s},t,a);else{const c=o;o=this.createExpressionNode("BinaryE",{operator:i.text,left:c.left,right:{type:"BinaryE",operator:i.text,left:c.right,right:s}},t,a)}r++}return o}parseUnaryOrPrefixExpr(){const t=this._lexer.peek();if(it[t.type].canBeUnary){this._lexer.get();const o=this.parseUnaryOrPrefixExpr();return o?this.createExpressionNode("UnaryE",{operator:t.text,operand:o},t,o.endToken):null}if(t.type===n.IncOp||t.type===n.DecOp){this._lexer.get();const o=this.parseMemberOrInvocationExpr();return o?this.createExpressionNode("PrefE",{operator:t.text,operand:o},t,o.endToken):null}return this.parseMemberOrInvocationExpr()}parseMemberOrInvocationExpr(){const t=this._lexer.peek();let o=this.parsePrimaryExpr();if(!o)return null;let i=!1;do{const s=this._lexer.peek();switch(s.type){case n.LParent:{this._lexer.get();let g=[];if(this._lexer.peek().type!==n.RParent){const C=this.parseExpr();if(!C)return this.reportError("W001"),null;g=C.type==="SeqE"?C.expressions:[C]}const d=this._lexer.peek();this.expectToken(n.RParent,"W006"),o=this.createExpressionNode("InvokeE",{object:o,arguments:g},t,d);break}case n.Dot:case n.OptionalChaining:this._lexer.get();const a=this._lexer.get();if(!it[a.type].keywordLike)return this.reportError("W003"),null;o=this.createExpressionNode("MembE",{object:o,member:a.text,isOptional:s.type===n.OptionalChaining},t,a);break;case n.LSquare:this._lexer.get();const u=this.getExpression();if(!u)return null;const w=this._lexer.peek();this.expectToken(n.RSquare,"W005"),o=this.createExpressionNode("CMembE",{object:o,member:u},t,w);break;default:i=!0;break}}while(!i);const r=this._lexer.peek();return r.type===n.IncOp||r.type===n.DecOp?(this._lexer.get(),this.createExpressionNode("PostfE",{operator:r.text,operand:o},t,r)):o}parsePrimaryExpr(){const t=this._lexer.peek();switch(t.type){case n.LParent:if(this._lexer.get(),this._lexer.peek().type===n.RParent){const r=this._lexer.get();return this.createExpressionNode("NoArgE",{},t,r)}const o=this.parseExpr();if(!o)return null;const i=this._lexer.peek();return this.expectToken(n.RParent,"W006"),o.parenthesized??(o.parenthesized=0),o.parenthesized++,o.startToken=t,o.startPosition=t.location.startPosition,o.startLine=t.location.startLine,o.startColumn=t.location.startColumn,o.endToken=i,o.endPosition=i.location.endPosition,o.endLine=i.location.endLine,o.endColumn=i.location.endColumn,o.source=this.getSource(t,i),o;case n.Identifier:{const r=this._lexer.get();return this.createExpressionNode("IdE",{name:r.text},r,r)}case n.Global:{this._lexer.get();const r=this._lexer.get();return r.type!==n.Identifier?(this.reportError("W003"),null):this.createExpressionNode("IdE",{name:r.text,isGlobal:!0},r,r)}case n.Backtick:return this.parseTemplateLiteral();case n.False:case n.True:return this._lexer.get(),this.createExpressionNode("LitE",{value:t.type===n.True},t,t);case n.BinaryLiteral:return this._lexer.get(),this.parseBinaryLiteral(t);case n.DecimalLiteral:return this._lexer.get(),this.parseDecimalLiteral(t);case n.HexadecimalLiteral:return this._lexer.get(),this.parseHexadecimalLiteral(t);case n.RealLiteral:return this._lexer.get(),this.parseRealLiteral(t);case n.StringLiteral:return this._lexer.get(),this.parseStringLiteral(t);case n.Infinity:return this._lexer.get(),this.createExpressionNode("LitE",{value:1/0},t,t);case n.NaN:return this._lexer.get(),this.createExpressionNode("LitE",{value:NaN},t,t);case n.Null:return this._lexer.get(),this.createExpressionNode("LitE",{value:null},t,t);case n.Undefined:return this._lexer.get(),this.createExpressionNode("LitE",{value:void 0},t,t);case n.LSquare:return this.parseArrayLiteral();case n.LBrace:return this.parseObjectLiteral();case n.Divide:return this.parseRegExpLiteral()}return null}parseTemplateLiteral(){const t=this._lexer.get();this._lexer.setStartingPhaseToTemplateLiteral();const o=[];e:for(;;){let r=this._lexer.peek();switch(r.type){case n.StringLiteral:this._lexer.get();const s=this.parseStringLiteral(r,!1);o.push(s);break;case n.DollarLBrace:this._lexer.get();const a=this.parseExpr();o.push(a),this.expectToken(n.RBrace,"W004"),this._lexer.setStartingPhaseToTemplateLiteral();break;case n.Backtick:break e;default:this.reportError("W004")}}const i=this._lexer.get();return this.createExpressionNode("TempLitE",{segments:o},t,i)}parseArrayLiteral(){const t=this._lexer.get();let o=[];if(this._lexer.peek().type!==n.RSquare){const r=this.getExpression();r&&(o=r.type==="SeqE"?r.expressions:[r])}const i=this._lexer.peek();return this.expectToken(n.RSquare),this.createExpressionNode("ALitE",{items:o},t,i)}parseObjectLiteral(){const t=this._lexer.get();let o=[];if(this._lexer.peek().type!==n.RBrace)for(;this._lexer.peek().type!==n.RBrace;){const r=this._lexer.peek(),s=it[r.type];let a;if(s.expressionStart)if(r.type===n.LSquare){if(this._lexer.get(),a=this.getExpression(),!a)return null;this.expectToken(n.RSquare,"W005"),a=this.createExpressionNode("SeqE",{expressions:[a]},t)}else if(s.isPropLiteral){if(a=this.getExpression(!1),!a)return null;if(a.type!=="IdE"&&a.type!=="LitE"&&a.type!=="SpreadE")return this.reportError("W007"),null}else return this.reportError("W007"),null;else if(s.keywordLike)a={type:"IdE",name:r.text,value:void 0,startPosition:r.location.startPosition,startLine:r.location.startLine,startColumn:r.location.startColumn,endPosition:r.location.endPosition,endLine:r.location.endLine,endColumn:r.location.endColumn,source:r.text,startToken:r,endToken:r},this._lexer.get();else return this.reportError("W001"),null;const c=a.type;if(c==="SpreadE")o.push(a);else{if(c==="LitE"){const g=a.value;if(typeof g!="number"&&typeof g!="string")return this.expectToken(n.RBrace,"W007"),null}let w=null;if(c==="IdE"){const g=this._lexer.peek();(g.type===n.Comma||g.type===n.RBrace)&&(w={...a})}if(!w&&(this.expectToken(n.Colon,"W008"),w=this.getExpression(!1),!w))return null;o.push([a,w])}const u=this._lexer.peek().type;if(u===n.Comma)this._lexer.get();else if(u!==n.RBrace)break}const i=this._lexer.peek();return this.expectToken(n.RBrace,"W004"),this.createExpressionNode("OLitE",{props:o},t,i)}parseRegExpLiteral(){const t=this._lexer.peek(),o=this._lexer.getRegEx();return o.success?this.createExpressionNode("LitE",{value:new RegExp(o.pattern,o.flags)},t,this._lexer.peek()):(this.reportError("W002",t,o.pattern??""),null)}getExpression(t=!0){const o=this.parseExpr(t);return o||(this.reportError("W001"),null)}expectToken(t,o,i){const r=this._lexer.peek();return r.type===t||i&&r.type===n.Eof?this._lexer.get():(this.reportError(o??"W002",r,r.text),null)}skipToken(t){const o=this._lexer.peek();return o.type===t?(this._lexer.get(),o):null}skipTokens(...t){const o=this._lexer.peek();for(const i of t)if(o.type===i)return this._lexer.get(),o;return null}reportError(t,o,...i){let r=zt[t]??"Unkonwn error";throw i&&i.forEach((a,c)=>r=s(r,`{${c}}`,i[c].toString())),o||(o=this._lexer.peek()),this._parseErrors.push({code:t,text:r,line:o.location.startLine,column:o.location.startColumn,position:o.location.startPosition}),new bi(r,t);function s(a,c,u){do a=a.replace(c,u);while(a.includes(c));return a}}createNode(t,o,i,r,s){r||(r=this._lexer.peek());const a=i.location.startPosition,c=r.location.startPosition;return Object.assign({},o,{type:t,startPosition:a,endPosition:c,startLine:i.location.startLine,startColumn:i.location.startColumn,endLine:r.location.endLine,endColumn:r.location.endColumn,source:s??this.getSource(i,r)})}createExpressionNode(t,o={},i,r,s){r||(r=this._lexer.peek()),i||(i=r);const a=i.location.startPosition,c=r.location.endPosition;return Object.assign({},o,{type:t,startPosition:a,endPosition:c,startLine:i.location.startLine,startColumn:i.location.startColumn,endLine:r.location.endLine,endColumn:r.location.endColumn,source:s??this.getSource(i,r),startToken:i,endToken:r})}createStatementNode(t,o,i,r){var u,w,g,d,C;const s=(u=i==null?void 0:i.location)==null?void 0:u.startPosition,a=this._lexer.peek(),c=r?r.location.endPosition:a.type===n.Eof?a.location.startPosition+1:a.location.startPosition;return Object.assign({},o,{type:t,startPosition:s,endPosition:c,startLine:(w=i==null?void 0:i.location)==null?void 0:w.startLine,startColumn:(g=i==null?void 0:i.location)==null?void 0:g.startColumn,endLine:r?r.location.endLine:(d=i==null?void 0:i.location)==null?void 0:d.endLine,endColumn:r?r.location.endColumn:(C=i==null?void 0:i.location)==null?void 0:C.endColumn,source:this.source&&s!==void 0&&c!==void 0?this.source.substring(s,c):void 0,startToken:i,endToken:r})}getSource(t,o){return this.source.substring(t.location.startPosition,o.type===n.Eof?o.location.startPosition:o.location.endPosition)}parseBinaryLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.substring(2).replace(/[_']/g,""),2),this.createExpressionNode("LitE",{value:o},t,t)}parseDecimalLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.replace(/[_']/g,""),10),this.createExpressionNode("LitE",{value:o},t,t)}parseHexadecimalLiteral(t){let o;const i=BigInt(t.text.replace(/[_']/g,""));return i<Number.MIN_SAFE_INTEGER||i>Number.MAX_SAFE_INTEGER?o=i:o=parseInt(t.text.substring(2).replace(/[_']/g,""),16),this.createExpressionNode("LitE",{value:o},t,t)}parseRealLiteral(t){let o=parseFloat(t.text.replace(/[_']/g,""));return this.createExpressionNode("LitE",{value:o},t,t)}parseStringLiteral(t,o=!0){let i=t.text;o&&(i=t.text.length<2?"":i.substring(1,i.length-1));let r="",s=0,a=0;for(const u of i)switch(s){case 0:u==="\\"?s=1:r+=u;break;case 1:switch(s=0,u){case"b":r+="\b";break;case"f":r+="\f";break;case"n":r+=`
7
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;case"v":r+="\v";break;case"S":r+=" ";break;case"0":r+="\0";break;case"'":r+="'";break;case'"':r+='"';break;case"\\":r+="\\";break;case"x":s=2;break;case"u":s=4;break;default:r+=u;break}break;case 2:c(u)?(a=parseInt(u,16),s=3):(r+="x",s=0);break;case 3:c(u)?(a=a*16+parseInt(u,16),r+=String.fromCharCode(a),s=0):(r+=String.fromCharCode(a),r+=u,s=0);break;case 4:if(u==="{"){s=8;break}c(u)?(a=parseInt(u,16),s=5):(r+="x",s=0);break;case 5:c(u)?(a=a*16+parseInt(u,16),s=6):(r+=String.fromCharCode(a),r+=u,s=0);break;case 6:c(u)?(a=a*16+parseInt(u,16),s=7):(r+=String.fromCharCode(a),r+=u,s=0);break;case 7:c(u)?(a=a*16+parseInt(u,16),r+=String.fromCharCode(a),s=0):(r+=String.fromCharCode(a),r+=u,s=0);break;case 8:c(u)?(a=parseInt(u,16),s=9):(r+="x",s=0);break;case 9:c(u)?(a=a*16+parseInt(u,16),s=10):(r+=String.fromCharCode(a),r+=u,s=0);break;case 10:c(u)?(a=a*16+parseInt(u,16),s=11):(r+=String.fromCharCode(a),r+=u,s=0);break;case 11:c(u)?(a=a*16+parseInt(u,16),s=12):(r+=String.fromCharCode(a),r+=u,s=0);break;case 12:c(u)?(a=a*16+parseInt(u,16),s=13):(r+=String.fromCharCode(a),r+=u,s=0);break;case 13:c(u)?(a=a*16+parseInt(u,16),s=14):(r+=String.fromCharCode(a),r+=u,s=0);break;case 14:r+=String.fromCharCode(a),u!=="}"&&(r+=u),s=0;break}switch(s){case 1:r+="\\";break;case 2:r+="x";break;case 3:r+=String.fromCharCode(a);break}return this.createExpressionNode("LitE",{value:r},t,t);function c(u){return u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F"}}convertToArrayDestructure(t){var r;const o=t.type==="SeqE"?t.expressions:t.items,i=this.createExpressionNode("Destr",{arrayDestruct:[]},t.startToken,t.endToken);for(const s of o){let a;switch(s.type){case"NoArgE":a=this.createExpressionNode("ADestr",{},s.startToken,s.endToken);break;case"IdE":a=this.createExpressionNode("ADestr",{id:s.name},s.startToken,s.endToken);break;case"Destr":i.arrayDestruct.push(...s.arrayDestruct);break;case"ADestr":a=s;break;case"ALitE":{const c=this.convertToArrayDestructure(s);c&&(a=this.createExpressionNode("ADestr",{arrayDestruct:c.arrayDestruct},s.startToken,s.endToken));break}case"ODestr":a=this.createExpressionNode("ADestr",{objectDestruct:s},s.startToken,s.endToken);break;case"OLitE":{const c=this.convertToObjectDestructure(s);c&&(a=this.createExpressionNode("ADestr",{objectDestruct:c.objectDestruct},s.startToken,s.endToken));break}default:return this.reportError("W017"),null}a&&((r=i.arrayDestruct)==null||r.push(a))}return i}convertToObjectDestructure(t){var i;const o=this.createExpressionNode("Destr",{objectDestruct:[]},t.startToken,t.endToken);for(const r of t.props){if(!Array.isArray(r))return reportError("W018"),null;const[s,a]=r;if(s.type!=="IdE")return reportError("W018"),null;let c;switch(a.type){case"IdE":a.name===s.name?c=this.createExpressionNode("ODestr",{id:s.name},a.startToken,a.endToken):c=this.createExpressionNode("ODestr",{id:s.name,alias:a.name},a.startToken,a.endToken);break;case"ADestr":{c=this.createExpressionNode("ODestr",{id:s.name,arrayDestruct:a},s.startToken,a.endToken);break}case"ALitE":{const u=this.convertToArrayDestructure(a);u&&(c=this.createExpressionNode("ODestr",{id:s.name,arrayDestruct:u.arrayDestruct},s.startToken,a.endToken));break}case"ODestr":c=a;break;case"OLitE":{const u=this.convertToObjectDestructure(a);u&&(c=this.createExpressionNode("ODestr",{id:s.name,objectDestruct:u.objectDestruct},s.startToken,a.endToken));break}default:return this.reportError("W018"),null}c&&((i=o.objectDestruct)==null||i.push(c))}return o}isExpressionStart(t){var o;return((o=it[t.type])==null?void 0:o.expressionStart)??!1}}function L(e,t,o,i,r,s){if(t.cancel)return t;if(t.skipChildren=!1,Array.isArray(e)){for(const a of e)t=L(a,t,o,i,r,s);return t}switch(e.type){case"BlockS":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.statements)if(t=L(a,t,o,i,e,"statements"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"EmptyS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t;case"ExprS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.expression,t,o,i,e,"expression"),t.cancel)||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"ArrowS":return t;case"LetS":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.declarations)if(t=L(a,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"ConstS":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.declarations)if(t=L(a,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"VarS":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.declarations)if(t=L(a,t,o,i,e,"declarations"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"IfS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.condition,t,o,i,e,"condition"),t.cancel||(e.thenBranch&&(t=L(e.thenBranch,t,o,i,e,"thenBranch")),t.cancel)||(e.elseBranch&&(t=L(e.elseBranch,t,o,i,e,"elseBranch")),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"RetS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(e.expression&&(t=L(e.expression,t,o,i,e,"expression")),t.cancel)||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"BrkS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t;case"ContS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t;case"WhileS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.condition,t,o,i,e,"condition"),t.cancel||(t=L(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"DoWS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.body,t,o,i,e,"body"),t.cancel||(t=L(e.condition,t,o,i,e,"condition"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"ForS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(e.init&&(t=L(e.init,t,o,i,e,"init")),t.cancel||(e.condition&&(t=L(e.condition,t,o,i,e,"condition")),t.cancel)||(e.update&&(t=L(e.update,t,o,i,e,"update")),t.cancel)||(t=L(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"ForInS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.expression,t,o,i,e,"expression"),t.cancel||(t=L(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"ForOfS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.expression,t,o,i,e,"expression"),t.cancel||(t=L(e.body,t,o,i,e,"body"),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"ThrowS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(t=L(e.expression,t,o,i,e,"expression"),t.cancel)||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"TryS":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||!t.skipChildren&&(e.tryBlock&&(t=L(e.tryBlock,t,o,i,e,"tryBlock")),t.cancel||(e.catchBlock&&(t=L(e.catchBlock,t,o,i,e,"catchBlock")),t.cancel)||(e.finallyBlock&&(t=L(e.finallyBlock,t,o,i,e,"finallyBlock")),t.cancel))||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"SwitchS":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){if(t=L(e.expression,t,o,i,e,"expression"),t.cancel)return t;for(const a of e.cases){if(a.caseExpression&&(t=L(a.caseExpression,t,o,i,e,"caseExpression")),t.cancel)return t;if(a.statements!==void 0){for(const c of a.statements)if(t=L(c,t,o,i,e,"switchStatement"),t.cancel)return t}}}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"FuncD":{if(t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel)return t;if(!t.skipChildren){for(const a of e.args)if(t=L(a,t,o,i,e,"arg"),t.cancel)return t;if(t=L(e.statement,t,o,i,e,"statement"),t.cancel)return t}return t=(o==null?void 0:o(!1,e,t,r,s))||t,t}case"ImportD":return t=(o==null?void 0:o(!0,e,t,r,s))||t,t.cancel||(t=(o==null?void 0:o(!1,e,t,r,s))||t),t;case"UnaryE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"BinaryE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.left,t,o,i,e,"left"),t.cancel||(t=L(e.right,t,o,i,e,"right"),t.cancel))||(t=t),t;case"SeqE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const a of e.expressions)if(t=L(a,t,o,i,e,"expression"),t.cancel)return t}return t=t,t}case"CondE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.condition,t,o,i,e,"condition"),t.cancel||(t=L(e.consequent,t,o,i,e,"consequent"),t.cancel)||(t=L(e.alternate,t,o,i,e,"alternate"),t.cancel))||(t=t),t;case"InvokeE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const a of e.arguments)if(t=L(a,t,o,i,e,"argument"),t.cancel)return t;if(t=L(e.object,t,o,i,e,"object"),t.cancel)return t}return t=t,t}case"MembE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.object,t,o,i,e,"object"),t.cancel)||(t=t),t;case"CMembE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.object,t,o,i,e,"object"),t.cancel||(t=L(e.member,t,o,i,e,"member"),t.cancel))||(t=t),t;case"IdE":return t=t,t;case"LitE":return t=t,t;case"ALitE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const a of e.items)if(t=L(a,t,o,i,e,"item"),t.cancel)return t}return t=t,t}case"OLitE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const a of e.props)if(Array.isArray(a)){const[c,u]=a;if(t=L(c,t,o,i,e,"propKey"),t.cancel||(t=L(u,t,o,i,e,"propValue"),t.cancel))return t}else if(t=L(a,t,o,i,e,"prop"),t.cancel)return t}return t=t,t}case"SpreadE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"AsgnE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.operand,t,o,i,e,"operand"),t.cancel||(t=L(e.leftValue,t,o,i,e,"leftValue"),t.cancel))||(t=t),t;case"NoArgE":return t=t,t;case"ArrowE":{if(t=t,t.cancel)return t;if(!t.skipChildren){for(const a of e.args)if(t=L(a,t,o,i,e,"arg"),t.cancel)return t;if(t=L(e.statement,t,o,i,e,"statement"),t.cancel)return t}return t=t,t}case"PrefE":case"PostfE":return t=t,t.cancel||!t.skipChildren&&(t=L(e.operand,t,o,i,e,"operand"),t.cancel)||(t=t),t;case"VarD":{if(t=t,t.cancel)return t;if(!t.skipChildren){if(e.arrayDestruct!==void 0){for(const a of e.arrayDestruct)if(t=L(a,t,o,i,e),t.cancel)return t}if(e.objectDestruct!==void 0){for(const a of e.objectDestruct)if(t=L(a,t,o,i,e),t.cancel)return t}if(e.expression&&(t=L(e.expression,t,o,i,e,"expression")),t.cancel)return t}return t=t,t}case"Destr":case"ODestr":case"ADestr":{if(t=t,t.cancel)return t;if(!t.skipChildren){if(e.arrayDestruct!==void 0){for(const a of e.arrayDestruct)if(t=L(a,t,o,i,e),t.cancel)return t}if(e.objectDestruct!==void 0){for(const a of e.objectDestruct)if(t=L(a,t,o,i,e),t.cancel)return t}}return t=t,t}case"RVarD":return t=t,t.cancel||!t.skipChildren&&(e.expression&&(t=L(e.expression,t,o,i,e,"expression")),t.cancel)||(t=t),t;case"TempLitE":return t;default:return t}}function yi(e){return e.type!=="ScriptModule"}function Ti(e,t,o,i=!1){const r=new Map,s={},a=c(e,t,o,!0);return!a||Object.keys(s).length>0?s:a;function c(u,w,g,d=!1){var C;if(r.has(u))return r.get(u);const b=new jo(w);let D=[];try{D=b.parseStatements()}catch{return s[u]=b.errors,null}const S=b.current;if(S.type!==n.Eof)return s[u]??(s[u]=[]),s[u].push({code:"W002",text:zt.W002.replace(/\{(\d+)}/g,()=>S.text),position:S.location.startLine,line:S.location.startLine,column:S.location.startColumn}),null;const _=[];L(D,{data:null,cancel:!1,skipChildren:!1},(W,M,ue,x,h)=>{if(!W)return ue;if(d)switch(M.type){case"VarS":x&&ne("W027",M);break;case"FuncD":case"ImportD":break;default:i&&!x&&ne("W028",M,M.type);break}else switch(M.type){case"VarS":ne("W027",M);break;case"FuncD":i&&!M.isExported&&ne("W029",M);break;case"ImportD":break;default:i&&!x&&ne("W028",M,M.type);break}return ue});const $={};D.filter(W=>W.type==="FuncD").forEach(W=>{const M=W;if($[M.name]){ne("W020",W,M.name);return}$[M.name]=M});const U=new Map;D.forEach(W=>{W.type==="ConstS"&&W.isExported?ki(W,M=>{U.has(M)?ne("W021",W,M):U.set(M,W)}):W.type==="FuncD"&&W.isExported&&(U.has(W.name)?ne("W021",W,W.name):U.set(W.name,W))});const he={type:"ScriptModule",name:u,exports:U,importedModules:[],imports:{},functions:$,statements:D,executed:!1};r.set(u,he);const me=[],de={};for(let W=0;W<D.length;W++){const M=D[W];if(M.type!=="ImportD")continue;const ue=g(u,M.moduleFile);if(ue===null){ne("W022",M,M.moduleFile);continue}const x=c(M.moduleFile,ue,g);if(!x)return;me.push(x);const h=Object.keys(M.imports);h.length>0&&(de[C=M.moduleFile]??(de[C]={}));for(const v of h)x.exports.has(M.imports[v])?de[M.moduleFile][v]=x.exports.get(M.imports[v]):ne("W023",M,M.moduleFile,v)}if(_.length>0)return s[u]=_,null;return me.forEach(W=>W.parent=he),he.importedModules=me,he.imports=de,he;function ne(W,M,...ue){let x=zt[W];ue&&ue.forEach((h,v)=>x=x.replaceAll(`{${v}}`,ue[v].toString())),_.push({code:W,text:zt[W].replace(/\{(\d+)}/g,(h,v)=>ue[v]),position:M.startPosition,line:M.startLine,column:M.startColumn})}}}function Ko(e){var o;const t=((o=e.blocks)==null?void 0:o.slice(0))??[];return e.parent?[...Ko(e.parent),...t]:t}function ki(e,t){for(let s=0;s<e.declarations.length;s++){const a=e.declarations[s];o(a,t)}function o(s,a){if(s.id)a(s.id);else if(s.arrayDestruct)i(s.arrayDestruct,a);else if(s.objectDestruct)r(s.objectDestruct,a);else throw new Error("Unknown declaration specifier")}function i(s,a){for(let c=0;c<s.length;c++){const u=s[c];u.id?a(u.id):u.arrayDestruct?i(u.arrayDestruct,a):u.objectDestruct&&r(u.objectDestruct,a)}}function r(s,a){for(let c=0;c<s.length;c++){const u=s[c];u.arrayDestruct?i(u.arrayDestruct,a):u.objectDestruct?r(u.objectDestruct,a):a(u.alias??u.id)}}}const wi={themeVars:`'{"Input:radius-AutoComplete-default": "var(--xmlui-radius-AutoComplete-default)", "Input:color-border-AutoComplete-default": "var(--xmlui-color-border-AutoComplete-default)", "Input:thickness-border-AutoComplete-default": "var(--xmlui-thickness-border-AutoComplete-default)", "Input:style-border-AutoComplete-default": "var(--xmlui-style-border-AutoComplete-default)", "Input:font-size-AutoComplete-default": "var(--xmlui-font-size-AutoComplete-default)", "Input:color-bg-AutoComplete-default": "var(--xmlui-color-bg-AutoComplete-default)", "Input:shadow-AutoComplete-default": "var(--xmlui-shadow-AutoComplete-default)", "Input:color-text-AutoComplete-default": "var(--xmlui-color-text-AutoComplete-default)", "Input:color-border-AutoComplete-default--hover": "var(--xmlui-color-border-AutoComplete-default--hover)", "Input:color-bg-AutoComplete-default--hover": "var(--xmlui-color-bg-AutoComplete-default--hover)", "Input:shadow-AutoComplete-default--hover": "var(--xmlui-shadow-AutoComplete-default--hover)", "Input:color-text-AutoComplete-default--hover": "var(--xmlui-color-text-AutoComplete-default--hover)", "Input:color-placeholder-AutoComplete-default": "var(--xmlui-color-placeholder-AutoComplete-default)", "Input:radius-AutoComplete-error": "var(--xmlui-radius-AutoComplete-error)", "Input:color-border-AutoComplete-error": "var(--xmlui-color-border-AutoComplete-error)", "Input:thickness-border-AutoComplete-error": "var(--xmlui-thickness-border-AutoComplete-error)", "Input:style-border-AutoComplete-error": "var(--xmlui-style-border-AutoComplete-error)", "Input:font-size-AutoComplete-error": "var(--xmlui-font-size-AutoComplete-error)", "Input:color-bg-AutoComplete-error": "var(--xmlui-color-bg-AutoComplete-error)", "Input:shadow-AutoComplete-error": "var(--xmlui-shadow-AutoComplete-error)", "Input:color-text-AutoComplete-error": "var(--xmlui-color-text-AutoComplete-error)", "Input:color-border-AutoComplete-error--hover": "var(--xmlui-color-border-AutoComplete-error--hover)", "Input:color-bg-AutoComplete-error--hover": "var(--xmlui-color-bg-AutoComplete-error--hover)", "Input:shadow-AutoComplete-error--hover": "var(--xmlui-shadow-AutoComplete-error--hover)", "Input:color-text-AutoComplete-error--hover": "var(--xmlui-color-text-AutoComplete-error--hover)", "Input:color-placeholder-AutoComplete-error": "var(--xmlui-color-placeholder-AutoComplete-error)", "Input:radius-AutoComplete-warning": "var(--xmlui-radius-AutoComplete-warning)", "Input:color-border-AutoComplete-warning": "var(--xmlui-color-border-AutoComplete-warning)", "Input:thickness-border-AutoComplete-warning": "var(--xmlui-thickness-border-AutoComplete-warning)", "Input:style-border-AutoComplete-warning": "var(--xmlui-style-border-AutoComplete-warning)", "Input:font-size-AutoComplete-warning": "var(--xmlui-font-size-AutoComplete-warning)", "Input:color-bg-AutoComplete-warning": "var(--xmlui-color-bg-AutoComplete-warning)", "Input:shadow-AutoComplete-warning": "var(--xmlui-shadow-AutoComplete-warning)", "Input:color-text-AutoComplete-warning": "var(--xmlui-color-text-AutoComplete-warning)", "Input:color-border-AutoComplete-warning--hover": "var(--xmlui-color-border-AutoComplete-warning--hover)", "Input:color-bg-AutoComplete-warning--hover": "var(--xmlui-color-bg-AutoComplete-warning--hover)", "Input:shadow-AutoComplete-warning--hover": "var(--xmlui-shadow-AutoComplete-warning--hover)", "Input:color-text-AutoComplete-warning--hover": "var(--xmlui-color-text-AutoComplete-warning--hover)", "Input:color-placeholder-AutoComplete-warning": "var(--xmlui-color-placeholder-AutoComplete-warning)", "Input:radius-AutoComplete-success": "var(--xmlui-radius-AutoComplete-success)", "Input:color-border-AutoComplete-success": "var(--xmlui-color-border-AutoComplete-success)", "Input:thickness-border-AutoComplete-success": "var(--xmlui-thickness-border-AutoComplete-success)", "Input:style-border-AutoComplete-success": "var(--xmlui-style-border-AutoComplete-success)", "Input:font-size-AutoComplete-success": "var(--xmlui-font-size-AutoComplete-success)", "Input:color-bg-AutoComplete-success": "var(--xmlui-color-bg-AutoComplete-success)", "Input:shadow-AutoComplete-success": "var(--xmlui-shadow-AutoComplete-success)", "Input:color-text-AutoComplete-success": "var(--xmlui-color-text-AutoComplete-success)", "Input:color-border-AutoComplete-success--hover": "var(--xmlui-color-border-AutoComplete-success--hover)", "Input:color-bg-AutoComplete-success--hover": "var(--xmlui-color-bg-AutoComplete-success--hover)", "Input:shadow-AutoComplete-success--hover": "var(--xmlui-shadow-AutoComplete-success--hover)", "Input:color-text-AutoComplete-success--hover": "var(--xmlui-color-text-AutoComplete-success--hover)", "Input:color-placeholder-AutoComplete-success": "var(--xmlui-color-placeholder-AutoComplete-success)", "Input:color-bg-AutoComplete--disabled": "var(--xmlui-color-bg-AutoComplete--disabled)", "Input:color-text-AutoComplete--disabled": "var(--xmlui-color-text-AutoComplete--disabled)", "Input:color-border-AutoComplete--disabled": "var(--xmlui-color-border-AutoComplete--disabled)", "Input:thickness-outline-AutoComplete--focus": "var(--xmlui-thickness-outline-AutoComplete--focus)", "Input:color-outline-AutoComplete--focus": "var(--xmlui-color-outline-AutoComplete--focus)", "Input:style-outline-AutoComplete--focus": "var(--xmlui-style-outline-AutoComplete--focus)", "Input:offset-outline-AutoComplete--focus": "var(--xmlui-offset-outline-AutoComplete--focus)", "padding-vertical-AutoComplete-badge": "var(--xmlui-padding-vertical-AutoComplete-badge)", "padding-horizontal-AutoComplete-badge": "var(--xmlui-padding-horizontal-AutoComplete-badge)", "Input:font-size-AutoComplete-badge": "var(--xmlui-font-size-AutoComplete-badge)", "Input:color-bg-AutoComplete-badge": "var(--xmlui-color-bg-AutoComplete-badge)", "Input:color-text-AutoComplete-badge": "var(--xmlui-color-text-AutoComplete-badge)", "Input:color-bg-AutoComplete-badge--hover": "var(--xmlui-color-bg-AutoComplete-badge--hover)", "Input:color-text-AutoComplete-badge--hover": "var(--xmlui-color-text-AutoComplete-badge--hover)", "Input:color-bg-AutoComplete-badge--active": "var(--xmlui-color-bg-AutoComplete-badge--active)", "Input:color-text-AutoComplete-badge--active": "var(--xmlui-color-text-AutoComplete-badge--active)", "Input:color-placeholder-AutoComplete": "var(--xmlui-color-placeholder-AutoComplete)", "Input:color-bg-menu-AutoComplete": "var(--xmlui-color-bg-menu-AutoComplete)", "Input:radius-menu-AutoComplete": "var(--xmlui-radius-menu-AutoComplete)", "Input:shadow-menu-AutoComplete": "var(--xmlui-shadow-menu-AutoComplete)", "color-bg-item-AutoComplete": "var(--xmlui-color-bg-item-AutoComplete)", "color-bg-item-AutoComplete--hover": "var(--xmlui-color-bg-item-AutoComplete--hover)", "color-text-item-AutoComplete--disabled": "var(--xmlui-color-text-item-AutoComplete--disabled)"}'`,command:"_command_4q1ko_13",badgeListWrapper:"_badgeListWrapper_4q1ko_20",error:"_error_4q1ko_43",warning:"_warning_4q1ko_62",valid:"_valid_4q1ko_81",disabled:"_disabled_4q1ko_100",focused:"_focused_4q1ko_107",badgeList:"_badgeList_4q1ko_20",badge:"_badge_4q1ko_20",commandInput:"_commandInput_4q1ko_149",actions:"_actions_4q1ko_162",autoCompleteEmpty:"_autoCompleteEmpty_4q1ko_168",commandList:"_commandList_4q1ko_178","fade-in":"_fade-in_4q1ko_1",autoCompleteOption:"_autoCompleteOption_4q1ko_191"},xt="FormItem",$i=y({status:"experimental",description:`A \`${xt}\` component represents a single input element within a \`Form\`. The value within the \`${xt}\` may be associated with a particular property within the encapsulating \`Form\` component's data.`,props:{bindTo:l("This property binds a particular input field to one of the attributes of the `Form` data. It names the property of the form's `data` data to get the input's initial value.When the field is saved, its value will be stored in the `data` property with this name."),autoFocus:ye(),label:xe(),labelPosition:He(),labelWidth:l("This property sets the width of the item label."),labelBreak:l("This boolean value indicates if the label can be split into multiple lines if it would overflow the available label width."),enabled:ge(),type:l("This property is used to determine the specific input control the FormItem will wrap around. Note that the control names start with a lowercase letter and map to input components found in XMLUI."),customValidationsDebounce:l("This optional number prop determines the time interval between two runs of a custom validation."),validationMode:l("This property sets what kind of validation mode or strategy to employ for a particular input field."),initialValue:Ee(),required:Oe(),requiredInvalidMessage:l("This optional string property is used to customize the message that is displayed if the field is not filled in."),minLength:l("Checks whether the input has a minimum length of a specified value."),maxLength:l("Checks whether the input has a maximum length of a specified value."),maxTextLength:l("The maximum length of the text in the input field"),lengthInvalidMessage:l("This optional string property is used to customize the message that is displayed on a failed length check: [minLength](#minlength) or [maxLength](#maxlength)."),lengthInvalidSeverity:l("This property sets the severity level of length validations."),minValue:l("Checks whether the input has the minimum specified value."),maxValue:l("Checks whether the input has the maximum specified value."),rangeInvalidMessage:l("This optional string property is used to customize the message that is displayed when a value is out of range."),rangeInvalidSeverity:l("This property sets the severity level of the value range validation."),pattern:l("Checks whether the input fits a predefined regular expression."),patternInvalidMessage:l("This optional string property is used to customize the message that is displayed on a failed pattern test."),patternInvalidSeverity:l("This property sets the severity level of the pattern validation."),regex:l("Checks whether the input fits the provided regular expression."),regexInvalidMessage:l("This optional string property is used to customize the message that is displayed on a failed regular expression test."),regexInvalidSeverity:l("This property sets the severity level of regular expression validation.")},events:{validate:l("This event is used to define a custom validation function.")},contextVars:{$value:l(`The context variable represents the current value of the \`${xt}\`. It can be used in expressions and code snippets within the \`${xt}\` instance.`),$setValue:l(`This function can be invoked to set the \`${xt}\` instance's value. The function has a single argument, the new value to set.`),$validationResult:l(`This variable represents the result of the latest validation of the \`${xt}\` instance.`)},themeVars:z(bn.themeVars),defaultThemeVars:{"color-text-FormItemLabel":"$color-text-primary","font-size-FormItemLabel":"$font-size-small","font-weight-FormItemLabel":"$font-weight-medium","font-style-FormItemLabel":"normal","transform-text-FormItemLabel":"none","color-text-FormItemLabel-requiredMark":"$color-danger-400"}}),Ne="Heading",at=l(`This property determines the text displayed in the heading. \`${Ne}\` also accepts nested text instead of specifying the \`value\`. If both \`value\` and a nested text are used, the \`value\` will be displayed.`),lt=l("This property determines the maximum number of lines the component can wrap to. If there is not enough space for all of the text, the component wraps the text up to as many lines as specified."),_i=l("This property indicates whether ellipses should be displayed (`true`) when the heading text is cropped or not (`false`)."),Ii=l("This property indicates whether linebreaks should be preserved when displaying text."),ft=e=>`Represents a heading level ${e} text`,Bi=y({description:"Represents a heading text",props:{value:at,level:l("This property sets the visual significance (level) of the heading."),maxLines:lt,ellipses:_i,preserveLinebreaks:Ii},themeVars:z(we.themeVars),defaultThemeVars:{[`font-family-${Ne}`]:"$font-family",[`color-text-${Ne}`]:"$color-text-primary",[`font-weight-${Ne}`]:"$font-weight-bold",[`letter-spacing-${Ne} `]:"0",light:{},dark:{}}}),eo="H1",Si=y({description:ft(1),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${eo}`]:"$font-size-large",[`margin-top-${eo}`]:"0",[`margin-bottom-${eo}`]:"0",light:{},dark:{}}}),to="H2",Ei=y({description:ft(2),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${to}`]:"$font-size-medium",[`margin-top-${to}`]:"0",[`margin-bottom-${to}`]:"0",light:{},dark:{}}}),oo="H3",Ai=y({description:ft(3),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${oo}`]:"$font-size-normal",[`margin-top-${oo}`]:"0",[`margin-bottom-${oo}`]:"0",light:{},dark:{}}}),ro="H4",Ni=y({description:ft(4),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${ro}`]:"$font-size-small",[`margin-top-${ro}`]:"0",[`margin-bottom-${ro}`]:"0",light:{},dark:{}}}),no="H5",zi=y({description:ft(5),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${no}`]:"$font-size-smaller",[`margin-top-${no}`]:"0",[`margin-bottom-${no}`]:"0",light:{},dark:{}}}),io="H6",Li=y({description:ft(6),specializedFrom:Ne,props:{value:at,maxLines:lt},themeVars:z(we.themeVars),defaultThemeVars:{[`font-size-${io}`]:"$font-size-tiny",[`margin-top-${io}`]:"0",[`margin-bottom-${io}`]:"0",light:{},dark:{}}}),Ci=y({status:"deprecated",description:"(**OBSOLETE**) This component displays some content when its parent component is hovered.",props:{triggerTemplate:te("The component that opens the hover card when hovered.")}}),er="Icon",Pi=y({status:"experimental",description:"This component is the representation of an icon.",props:{name:l("This string property specifies the name of the icon to display. All icons have unique names and identifying the name is case-sensitive."),size:l(`This property defines the size of the \`${er}\`. Note that setting the \`height\` and/or the \`width\` of the component will override this property.`),fallback:l("This optional property provides a way to handle situations when the provided [icon name](#name) is not found in the registry.")},themeVars:z(wo.themeVars),defaultThemeVars:{[`size-${er}`]:"1.25em"}}),tr="Image",Oi=y({description:`The \`${tr}\` component represents or depicts an object, scene, idea, or other concept with a picture.`,props:{src:l("This property is used to indicate the source (path) of the image to display."),alt:l("This property specifies an alternate text for the image."),fit:l("This property sets how the image content should be resized to fit its container."),lazyLoad:l("Lazy loading instructs the browser to load the image only when it is imminently needed (e.g. user scrolls to it). The default value is eager (`false`)."),aspectRatio:l("This property sets a preferred aspect ratio for the image, which will be used in the calculation of auto sizes and some other layout functions."),animation:l("The animation object to be applied to the component")},events:{click:qe(tr)},themeVars:z(In.themeVars)}),Di=y({description:"The `Items` component maps sequential data items into component instances, representing each data item as a particular component.",props:{items:te("This property contains the list of data items this component renders."),data:l("This property contains the list of data items (obtained from a data source) this component renders."),reverse:l("This property reverses the order in which data is mapped to template components."),itemTemplate:te("The component template to display a single item")},contextVars:{$item:te("This value represents the current iteration item while the component renders its children."),$itemIndex:te("This integer value represents the current iteration index (zero-based) while rendering children."),$isFirst:te("This boolean value indicates if the component renders its first item."),$isLast:te("This boolean value indicates if the component renders its last item.")},opaque:!0}),ae="Link",Mi=y({description:`A \`${ae}\` component represents a navigation target within the app or a reference to an external web URL.`,props:{to:l("This property defines the URL of the link."),enabled:ge(),active:l("Indicates whether this link is active or not. If so, it will have a distinct visual appearance.",null,"boolean",!1),target:l(`This property specifies where to open the link represented by the \`${ae}\`. This property accepts the following values (in accordance with the HTML standard):`,Nr,"string","_self"),label:xe(),icon:l("This property allows you to add an icon (specify the icon's name) to the link.")},themeVars:z(ht.themeVars),defaultThemeVars:{[`color-text-${ae}--hover--active`]:`$color-text-${ae}--active`,[`color-text-decoration-${ae}--hover`]:"$color-surface-400A80",[`color-text-decoration-${ae}--active`]:"$color-surface200",[`font-weight-${ae}--active`]:"$font-weight-bold",[`color-decoration-${ae}`]:"$color-surface-400",[`offset-decoration-${ae}`]:"$space-1",[`line-decoration-${ae}`]:"underline",[`style-decoration-${ae}`]:"dashed",[`thickness-decoration-${ae}`]:"$space-0_5",[`color-outline-${ae}--focus`]:"$color-outline--focus",[`thickness-outline-${ae}--focus`]:"$thickness-outline--focus",[`style-outline-${ae}--focus`]:"$style-outline--focus",[`offset-outline-${ae}--focus`]:"$offset-outline--focus",[`font-size-${ae}`]:"inherit",[`gap-icon-${ae}`]:"$gap-tight",[`padding-icon-${ae}`]:"$space-0_5",light:{[`color-text-${ae}`]:"$color-primary-500",[`color-text-${ae}--active`]:"$color-primary-500"},dark:{[`color-text-${ae}`]:"$color-primary-500",[`color-text-${ae}--active`]:"$color-primary-500"}}}),Hi={themeVars:'"[]"',infoWrapper:"_infoWrapper_pfst8_13",loadingWrapper:"_loadingWrapper_pfst8_18",noRows:"_noRows_pfst8_26",borderCollapse:"_borderCollapse_pfst8_36",sectioned:"_sectioned_pfst8_36",row:"_row_pfst8_36",section:"_section_pfst8_36",sectionFooter:"_sectionFooter_pfst8_52"},gt="List",Fi=y({status:"experimental",description:`The \`${gt}\` component is a robust layout container that renders associated data items as a list of components. \`${gt}\` is virtualized; it renders only items that are visible in the viewport.`,props:{data:l("The component receives data via this property. The `data` property is a list of items that the `List` can display."),items:l("You can use `items` as an alias for the `data` property. When you bind the list to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API.When both `items` and `data` are used, `items` has priority."),loading:l("This property delays the rendering of children until it is set to `false`, or the component receives usable list items via the [`data`](#data) property."),limit:l(`This property limits the number of items displayed in the \`${gt}\`.`),scrollAnchor:l("This property pins the scroll position to a specified location of the list. Available values are shown below.",Wr,"string","top"),groupBy:l("This property sets which attribute of the data is used to group the list items. If the attribute does not appear in the data, it will be ignored."),orderBy:l("This property enables the ordering of list items by specifying an attribute in the data."),availableGroups:l(`This property is an array of group names that the \`${gt}\` will display.`),groupHeaderTemplate:te("Enables the customization of how the groups are displayed, similarly to the [`itemTemplate`](#itemtemplate). You can use the `$item` context variable to access an item group and map its individual attributes."),groupFooterTemplate:te("Enables the customization of how the the footer of each group is displayed. Combine with [`groupHeaderTemplate`](#groupHeaderTemplate) to customize sections. You can use the `$item` context variable to access an item group and map its individual attributes."),itemTemplate:te("This property allows the customization of mapping data items to components. You can use the `$item` context variable to access an item and map its individual attributes."),emptyListTemplate:te("This property defines the template to display when the list is empty."),pageInfo:l(`This property contains the current page information. Setting this property also enures the \`${gt}\` uses pagination.`),idKey:l('Denotes which attribute of an item acts as the ID or key of the item. Default is `"id"`.'),selectedIndex:l("This property scrolls to a specific item indicated by its index."),groupsInitiallyExpanded:l("This Boolean property defines whether the list groups are initially expanded."),defaultGroups:l(`This property adds a list of default groups for the \`${gt}\` and displays the group headers in the specified order. If the data contains group headers not in this list, those headers are also displayed (after the ones in this list); however, their order is not deterministic.`),hideEmptyGroups:l("This boolean property indicates if empty groups should be hidden (no header and footer are displayed).",null,"boolean",!0),borderCollapse:l("Collapse items borders",null,"boolean",!0)},contextVars:{$item:l("This property represents the value of an item in the data list.")},themeVars:z(Hi.themeVars)}),Wi=y({status:"experimental",description:"The `Logo` component represents a logo or a brand symbol. Usually, you use this component in the [`AppHeader`](./AppHeader.mdx#logotemplate)."}),Ri=y({description:"`Markdown` displays plain text styled using markdown syntax.",themeVars:z({themeVars:`'{"color-border-HorizontalRule": "var(--xmlui-color-border-HorizontalRule)", "thickness-border-HorizontalRule": "var(--xmlui-thickness-border-HorizontalRule)", "style-border-HorizontalRule": "var(--xmlui-style-border-HorizontalRule)", "color-bg-Blockquote": "var(--xmlui-color-bg-Blockquote)", "accent-Blockquote": "var(--xmlui-accent-Blockquote)", "radius-Blockquote": "var(--xmlui-radius-Blockquote)", "shadow-Blockquote": "var(--xmlui-shadow-Blockquote)", "padding-Blockquote": "var(--xmlui-padding-Blockquote)", "margin-Blockquote": "var(--xmlui-margin-Blockquote)", "padding-left-UnorderedList": "var(--xmlui-padding-left-UnorderedList)", "padding-left-OrderedList": "var(--xmlui-padding-left-OrderedList)", "padding-left-ListItem": "var(--xmlui-padding-left-ListItem)", "color-marker-ListItem": "var(--xmlui-color-marker-ListItem)"}'`,horizontalRule:"_horizontalRule_y1wfd_13",blockquote:"_blockquote_y1wfd_17",unorderedList:"_unorderedList_y1wfd_37",orderedList:"_orderedList_y1wfd_43",listItem:"_listItem_y1wfd_49"}.themeVars),props:{content:l("This property sets the markdown content to display."),removeIndents:l("This boolean property specifies whether leading indents should be removed from the markdown content. If set to `true`, the shortest indent found at the start of the content lines is removed from the beginning of every line.",null,"boolean",!1)},defaultThemeVars:{"color-border-HorizontalRule":"$color-border","thickness-border-HorizontalRule":"1px","style-border-HorizontalRule":"solid","accent-Blockquote":"$color-primary","padding-Blockquote":"$space-2 $space-6","margin-Blockquote":"$space-2","padding-left-UnorderedList":"$space-6","padding-left-OrderedList":"$space-6","padding-left-ListItem":"$space-1",light:{},dark:{}}}),Te="ModalDialog",qi=y({description:`The \`${Te}\` component defines a modal dialog UI element that can be displayed over the existing UI - triggered by some action.`,props:{fullScreen:l("Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`)."),title:l("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:l("Shows (`true`) or hides (`false`) the visibility of the close button on the dialog."),isInitiallyOpen:l("This property sets whether the modal dialog appears open (`true`) or not (`false`) when the page is it is defined on is rendered.")},events:{open:l(`This event is fired when the \`${Te}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:l(`This event is fired when the close button is pressed or the user clicks outside the \`${Te}\`.`)},apis:{close:l(`This method is used to close the \`${Te}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:l("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:l("This value represents the first parameters passed to the `open()` method to display the modal dialog."),$params:l("This value represents the array of parameters passed to the `open()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},themeVars:z(si.themeVars),defaultThemeVars:{...Nt(Te,{all:"$space-7"}),[`color-bg-${Te}`]:"$color-bg-primary",[`color-bg-overlay-${Te}`]:"$color-bg-overlay",[`color-text-${Te}`]:"$color-text-primary",[`radius-${Te}`]:"$radius",[`font-family-${Te}`]:"$font-family",[`max-width-${Te}`]:"450px",[`margin-bottom-title-${Te}`]:"0",dark:{[`color-bg-${Te}`]:"$color-bg-primary"}}}),Ui={themeVars:`'{"color-bg-dropdown-NavGroup": "var(--xmlui-color-bg-dropdown-NavGroup)", "shadow-dropdown-NavGroup": "var(--xmlui-shadow-dropdown-NavGroup)", "radius-dropdown-NavGroup": "var(--xmlui-radius-dropdown-NavGroup)"}'`,dropdownList:"_dropdownList_1i6dc_13",withNavGroupChevron:"_withNavGroupChevron_1i6dc_32",pointRight:"_pointRight_1i6dc_48"},Lt="NavGroup",Vi=y({description:"The `NavGroup` component is a container for grouping related navigation targets (`NavLink` components). It can be displayed as a submenu in the App's UI.",props:{label:xe(),icon:l(`This property defines an optional icon to display along with the \`${Lt}\` label.`),to:l("This property defines an optional navigation link.")},themeVars:z(Ui.themeVars),defaultThemeVars:{[`color-bg-dropdown-${Lt}`]:"$color-bg-primary",[`radius-dropdown-${Lt}`]:"$radius",[`shadow-dropdown-${Lt}`]:"$shadow-spread"}}),ao="NavLink",Gi=y({description:`The \`${ao}\` component defines a navigation target (app navigation menu item) within the app; it is associated with a particular in-app navigation target (or an external link).`,props:{to:l("This property defines the URL of the link."),enabled:ge(),active:l("This property indicates if the particular navigation is an active link. An active link has a particular visual appearance, provided its [`displayActive`](#displayactive) property is set to `true`."),target:l("This property specifies how to open the clicked link."),label:xe(),vertical:l(`This property sets how the active status is displayed on the \`${ao}\` component. If set to true, the indicator is displayed on the side which lends itself to a vertically aligned navigation menu.`),displayActive:l("This Boolean property indicates if the active state of a link should have a visual indication. Setting it to `false` removes the visual indication of an active link."),icon:l("This property allows you to add an icon (specify the icon's name) to the navigation link.")},events:{click:qe(ao)},themeVars:z(Bn.themeVars),defaultThemeVars:{"radius-NavLink":"$radius","color-bg-NavLink":"transparent","padding-horizontal-NavLink":"$space-4","padding-vertical-NavLink":"$space-2","font-size-NavLink":"$font-size-small","font-weight-NavLink":"$font-weight-normal","font-family-NavLink":"$font-family","color-text-NavLink":"$color-text-primary","font-weight-NavLink--pressed":"$font-weight-normal","thickness-indicator-NavLink":"$space-0_5","color-outline-NavLink--focus":"$color-outline--focus","thickness-outline-NavLink--focus":"$thickness-outline--focus","style-outline-NavLink--focus":"$style-outline--focus","offset-outline-NavLink--focus":"-1px","radius-indicator-NavLink":"$radius",light:{"color-icon-NavLink":"$color-surface-500","color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-600"},dark:{"color-indicator-NavLink--active":"$color-primary-500","color-indicator-NavLink--pressed":"$color-primary-500","color-indicator-NavLink--hover":"$color-primary-400"}}}),Fe="NavPanel",Yi=y({description:`\`${Fe}\` is a placeholder within \`App\` to define the app's navigation (menu) structure.`,props:{logoTemplate:te("This property defines the logo template to display in the navigation panel with the `vertical` and `vertical-sticky` layout.")},themeVars:z(Sn.themeVars),defaultThemeVars:{[`color-bg-${Fe}`]:"transparent",...Zt(Fe,{}),[`padding-horizontal-${Fe}`]:"$space-4",[`padding-vertical-logo-${Fe}`]:"$space-4",[`padding-horizontal-logo-${Fe}`]:"$space-4",[`margin-bottom-logo-${Fe}`]:"$space-4",light:{[`shadow-${Fe}-vertical`]:"4px 0 4px 0 rgb(0 0 0 / 10%)"},dark:{[`shadow-${Fe}-vertical`]:"4px 0 6px 0 rgba(0, 0, 0, 0.2)"}}}),Xi={themeVars:`'{"padding-vertical-NoResult": "var(--xmlui-padding-vertical-NoResult)", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_9giub_13",icon:"_icon_9giub_22"},Ct="NoResult",Qi=y({description:`\`${Ct}\` is a component that displays a visual indication that some data query (search) resulted in no (zero) items.`,props:{label:xe(),icon:l("This property defines the icon to display with the component."),hideIcon:l("This boolean property indicates if the icon should be hidden.")},themeVars:z(Xi.themeVars),defaultThemeVars:{[`padding-vertical-${Ct}`]:"$space-2",[`gap-icon-${Ct}`]:"$space-2",[`size-icon-${Ct}`]:"$space-8",light:{},dark:{}}}),st="NumberBox",Zi=y({status:"experimental",description:`A \`${st}\` component allows users to input numeric values: either integer or floating point numbers. It also accepts empty values, where the stored value will be of type \`null\`.`,props:{placeholder:et(),initialValue:Ee(),label:xe(),labelPosition:He("top"),labelWidth:Ue(st),labelBreak:Ve(st),maxLength:kt(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),startText:No(),startIcon:zo(),endText:Lo(),endIcon:Co(),hasSpinBox:l("This boolean prop shows (`true`) or hides (`false`) the spinner buttons for the input field.",null,"boolean",!0),step:l("This prop governs how big the step when clicking on the spinner of the field.",null,"number"),integersOnly:l("This boolean property signs whether the input field accepts integers only (`true`) or not (`false`).",null,"boolean",!1),zeroOrPositive:l("This boolean property determines whether the input value can only be 0 or positive numbers (`true`) or also negative (`false`).",null,"boolean",!1),minValue:l("The minimum value the input field allows. Can be a float or an integer if [`integersOnly`](#integersonly) is set to `false`, otherwise it can only be an integer."),maxValue:l("The maximum value the input field allows. Can be a float or an integer if [`integersOnly`](#integersonly) is set to `false`, otherwise it can only be an integer.")},events:{gotFocus:Be(st),lostFocus:Se(st),didChange:be(st)},apis:{focus:Ye(st),value:Po(),setValue:Ge()},themeVars:z(ui.themeVars)}),Ji={themeVars:`'{"padding-OffCanvas": "var(--xmlui-padding-OffCanvas)", "padding-horizontal-OffCanvas": "var(--xmlui-padding-horizontal-OffCanvas)", "padding-vertical-OffCanvas": "var(--xmlui-padding-vertical-OffCanvas)", "shadow-vertical-OffCanvas": "var(--xmlui-shadow-vertical-OffCanvas)", "shadow-horizontal-OffCanvas": "var(--xmlui-shadow-horizontal-OffCanvas)", "color-bg-OffCanvas": "var(--xmlui-color-bg-OffCanvas)", "width-OffCanvas": "var(--xmlui-width-OffCanvas)", "margin-bottom-title-OffCanvas": "var(--xmlui-margin-bottom-title-OffCanvas)"}'`,overlay:"_overlay_c932c_13",overlayVisible:"_overlayVisible_c932c_26",offCanvas:"_offCanvas_c932c_31",right:"_right_c932c_46",left:"_left_c932c_53",top:"_top_c932c_60",bottom:"_bottom_c932c_69",open:"_open_c932c_78",button:"_button_c932c_82",closeButton:"_closeButton_c932c_92",spacer:"_spacer_c932c_103",offCanvasHeader:"_offCanvasHeader_c932c_108",offCanvasButtonSpace:"_offCanvasButtonSpace_c932c_115",offCanvasTitle:"_offCanvasTitle_c932c_119"},Pt="OffCanvas",ji=y({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `OffCanvas` component is a hidden panel that slides into view from the side of the screen. It helps display additional content or navigation without disrupting the main interface.",props:{title:l("This property sets the title of the component.",null,"string"),isInitiallyOpen:l("This property indicates if the component is initially open.",null,"boolean",!1),enableBackdrop:l("This property indicates if the backdrop is enabled when the component is displayed. When the backdrop is not enabled, clicking outside `OffCanvas` will not close it.",null,"boolean",!0),enableBodyScroll:l("This property indicates if the body scroll is enabled when the component is displayed.",null,"boolean",!1),noCloseOnBackdropClick:l(`When this property is set to \`true\`, the ${Pt} does not close when the user clicks on its backdrop.`,null,"boolean",!1),placement:l(`This property indicates the position where the ${Pt} should be docked to.`,Mr),autoCloseInMs:l("This property sets a timeout. When the timeout expires, the component gets hidden.")},events:{didOpen:rn(Pt),didClose:nn(Pt)},apis:{open:l("This method opens the component. It triggers the `didOpen` event with the argument set to `false`."),close:l("This method closes the component. It triggers the `didClose` event with the argument set to `false`.")},themeVars:z(Ji.themeVars),defaultThemeVars:{"width-OffCanvas":"600px","padding-OffCanvas":"$padding-tight","padding-vertical-OffCanvas":"$padding-tight","padding-horizontal-OffCanvas":"$padding-normal","color-bg-OffCanvas":"$color-bg","shadow-horizontal-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)","shadow-vertical-OffCanvas":"0 2px 10px rgba(0, 0, 0, 0.2)",light:{},dark:{}}}),Ki=y({description:"A PageMetaTitle component allows setting up (or changing) the app title to display with the current browser tab.",props:{value:l("This property sets the page's title to display in the browser tab.")}}),or="Page",ea=y({status:"stable",docFolder:or,description:`The \`${or}\` component defines what content is displayed when the user navigates to a particular URL that is associated with the page.`,props:{url:l("The URL of the route associated with the content.")}}),ta=y({description:"The `Pages` component is used as a container for [`Page`](./Page.mdx) components within an [`App`](./App.mdx).",props:{defaultRoute:l("The default route when displaying the app")}}),oa=y({description:"The `Pdf` component provides a read-only preview of a pdf document's contents.",props:{src:l("This property defines the source URL of the pdf document stream to display.")},status:"in progress"}),ra={themeVars:'"[]"',wrapper:"_wrapper_1hlil_13",visibleOnHover:"_visibleOnHover_1hlil_16"},na=y({status:"deprecated",description:"(**OBSOLETE**) This component was created for the ChatEngine app.",props:{visibleOnHover:l("No description")},themeVars:z(ra.themeVars)}),ia={themeVars:`'{"color-bg-ProgressBar": "var(--xmlui-color-bg-ProgressBar)", "color-indicator-ProgressBar": "var(--xmlui-color-indicator-ProgressBar)", "radius-ProgressBar": "var(--xmlui-radius-ProgressBar)", "radius-indicator-ProgressBar": "var(--xmlui-radius-indicator-ProgressBar)", "thickness-ProgressBar": "var(--xmlui-thickness-ProgressBar)"}'`,wrapper:"_wrapper_1s8j7_13",bar:"_bar_1s8j7_22"},Qe="ProgressBar",aa=y({description:`A \`${Qe}\` component visually represents the progress of a task or process.`,props:{value:l("This property defines the progress value with a number between 0 and 1.")},themeVars:z(ia.themeVars),defaultThemeVars:{[`radius-${Qe}`]:"$radius",[`radius-indicator-${Qe}`]:"0px",[`thickness-${Qe}`]:"$space-2",light:{[`color-bg-${Qe}`]:"$color-surface-200",[`color-indicator-${Qe}`]:"$color-primary-500"},dark:{[`color-bg-${Qe}`]:"$color-surface-700",[`color-indicator-${Qe}`]:"$color-primary-500"}}}),la=y({description:"The `Queue` component provides an API to enqueue elements and defines events to process queued elements in a FIFO order.",props:{progressFeedback:l("This property defines the component template of the UI that displays progress information whenever, the queue's `progressReport` function in invoked."),resultFeedback:l("This property defines the component template of the UI that displays result information when the queue becomes empty after processing all queued items."),clearAfterFinish:l("This property indicates the completed items (successful or error) should be removed from the queue after completion.")},nonVisual:!0,events:{willProcess:l("This event is triggered to process a particular item."),process:l("This event is fired to process the next item in the queue. If the processing cannot proceed because of some error, raise an exception, and the queue will handle that."),didProcess:l("This event is fired when the processing of a queued item has been successfully processed."),processError:l("This event is fired when processing an item raises an error. The event handler method receives two parameters. The first is the error raised during the processing of the item; the second is an object with these properties:"),complete:l("The queue fires this event when the queue gets empty after processing all items. The event handler has no arguments.")},apis:{enqueueItem:l("This method enqueues the item passed in the method parameter. The new item will be processed after the current queue items have been handled. The method retrieves the unique ID of the newly added item; this ID can be used later in other methods, such as `remove`."),enqueueItems:l("This method enqueues the array of items passed in the method parameter. The new items will be processed after the current queue items have been handled. The method retrieves an array of unique IDs, one for each new item. An item ID can be used later in other methods, such as `remove`."),getQueuedItems:l("You can use this method to return the items in the queue. These items contain all entries not removed from the queue yet, including pending, in-progress, and completed items."),getQueueLength:l("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet."),remove:l("This method retrieves the current queue length. The queue contains only those items that are not fully processed yet.")},contextVars:{$completedItems:l("A list containing the queue items that have been completed (fully processed)."),$queuedItems:l("A list containing the items waiting in the queue, icluding the completed items.")}}),vt="RadioGroup",ee="RadioGroupOption",sa=y({description:`The \`${vt}\` input component is a group of radio buttons ([\`RadioGroupOption\`](./RadioGroupOption.mdx) components) that allow users to select only one option from the group at a time.`,props:{initialValue:Ee(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),orientation:l("(*** NOT IMPLEMENTED YET ***) This property sets the orientation of the options within the radio group."),label:xe(),labelPosition:He("top"),labelWidth:Ue(vt),labelBreak:Ve(vt)},events:{gotFocus:Be(vt),lostFocus:Se(vt),didChange:be(vt)},themeVars:z(mi.themeVars),defaultThemeVars:{[`gap-${ee}`]:"$space-1_5",[`thickness-border-${ee}`]:"2px",[`color-bg-checked-${ee}--disabled]`]:`$color-border-${ee}--disabled`,[`color-bg-checked-${ee}-error`]:`$color-border-${ee}-error`,[`color-bg-checked-${ee}-warning`]:`$color-border-${ee}-warning`,[`color-bg-checked-${ee}-success`]:`$color-border-${ee}-success`,[`font-size-${ee}`]:"$font-size-small",[`font-weight-${ee}`]:"$font-weight-bold",[`color-text-${ee}-error`]:`$color-border-${ee}-error`,[`color-text-${ee}-warning`]:`$color-border-${ee}-warning`,[`color-text-${ee}-success`]:`$color-border-${ee}-success`,light:{[`color-bg-checked-${ee}-default`]:"$color-primary-500",[`color-border-${ee}-default`]:"$color-surface-500",[`color-border-${ee}-default--hover`]:"$color-surface-700",[`color-border-${ee}-default--active`]:"$color-primary-500"},dark:{[`color-bg-checked-${ee}-default`]:"$color-primary-500",[`color-border-${ee}-default`]:"$color-surface-500",[`color-border-${ee}-default--hover`]:"$color-surface-300",[`color-border-${ee}-default--active`]:"$color-primary-400"}}}),ca=y({status:"experimental",description:"`RealTimeAdapter` is a non-visual component that listens to real-time events through long-polling.",props:{url:l("This property specifies the URL to use for long-polling.")},events:{eventArrived:l("This event is raised when data arrives from the backend using long-polling.")}}),ua=y({description:"`Redirect` is a component that immediately redirects the browser to the URL in its `to` property when it gets visible (its `when` property gets `true`). The redirection works only within the app.",props:{to:l("This property defines the URL to which this component is about to redirect requests.")}}),K="Select",da=y({description:"Provides a dropdown with a list of options to choose from.",status:"experimental",props:{placeholder:et(),initialValue:Ee(),maxLength:kt(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),label:xe(),labelPosition:He("top"),labelWidth:Ue(K),labelBreak:Ve(K),optionLabelTemplate:te("This property allows replacing the default template to display an option in the dropdown list."),valueTemplate:te("This property allows replacing the default template to display a selected value when multiple selections (`multiSelect` is `true`) are enabled."),dropdownHeight:l("This property sets the height of the dropdown list."),emptyListTemplate:l("This optional property provides the ability to customize what is displayed when the list of options is empty."),multiSelect:Eo(),searchable:l("This property enables the search functionality in the dropdown list.")},events:{gotFocus:Be(K),lostFocus:Se(K),didChange:be(K)},apis:{focus:Ye(K),setValue:Ge(),value:Po()},contextVars:{$item:l("This property represents the value of an item in the dropdown list."),$itemContext:l("This property provides a `removeItem` method to delete the particular value from the selection.")},themeVars:z(di.themeVars),defaultThemeVars:{[`color-bg-menu-${K}`]:"$color-bg-primary",[`shadow-menu-${K}`]:"$shadow-md",[`radius-menu-${K}`]:"$radius",[`thickness-border-menu-${K}`]:"1px",[`color-border-menu-${K}`]:"$color-border",[`color-bg-item-${K}`]:"$color-bg-dropdown-item",[`color-bg-item-${K}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${K}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${K}-badge`]:"$color-primary-500",[`font-size-${K}-badge`]:"$font-size-small",[`padding-horizontal-${K}-badge`]:"$space-1",[`padding-vertical-${K}-badge`]:"$space-1",[`opacity-text-item-${K}--disabled`]:"0.5",[`opacity-${K}--disabled`]:"0.5",light:{[`color-bg-${K}-badge--hover`]:"$color-primary-400",[`color-bg-${K}-badge--active`]:"$color-primary-500",[`color-text-item-${K}--disabled`]:"$color-surface-200",[`color-text-${K}-badge`]:"$color-surface-50"},dark:{[`color-bg-${K}-badge--hover`]:"$color-primary-600",[`color-bg-${K}-badge--active`]:"$color-primary-500",[`color-text-${K}-badge`]:"$color-surface-50",[`color-text-item-${K}--disabled`]:"$color-surface-800"}}}),pa=y({status:"deprecated",description:"The `SelectionStore` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.",props:{idKey:l('The selected items in the selection store needs to have a unique ID to use as an unambiguous key for that particular item. This property uniquely identifies the selected object item via a given property. By default, the key attribute is `"id"`.')}}),ha=y({description:"The `SpaceFiller` is a component that works well in layout containers to fill the remaining (unused) space. Its behavior depends on the layout container in which it is used.",themeVars:z(li.themeVars)}),Bt="Spinner",ma=y({description:`The \`${Bt}\` component is an animated indicator that represents a particular action in progress without a deterministic progress value.`,props:{delay:l("The delay in milliseconds before the spinner is displayed."),fullScreen:l("If set to `true`, the component will be rendered in a full screen container."),themeColor:l("(**NOT IMPLEMENTED YET**) The theme color of the component.")},themeVars:z(yn.themeVars),defaultThemeVars:{[`size-${Bt}`]:"$space-10",[`thickness-${Bt}`]:"$space-0_5",light:{[`color-border-${Bt}`]:"$color-surface-400"},dark:{[`color-border-${Bt}`]:"$color-surface-600"}}}),xa={themeVars:`'{"padding-Splitter": "var(--xmlui-padding-Splitter)", "shadow-Splitter": "var(--xmlui-shadow-Splitter)", "color-bg-Splitter": "var(--xmlui-color-bg-Splitter)", "radius-Splitter": "var(--xmlui-radius-Splitter)", "color-border-Splitter": "var(--xmlui-color-border-Splitter)", "thickness-border-Splitter": "var(--xmlui-thickness-border-Splitter)", "style-border-Splitter": "var(--xmlui-style-border-Splitter)", "border-Splitter": "var(--xmlui-border-Splitter)", "color-bg-resizer-Splitter": "var(--xmlui-color-bg-resizer-Splitter)", "thickness-resizer-Splitter": "var(--xmlui-thickness-resizer-Splitter)", "cursor-resizer-horizontal-Splitter": "var(--xmlui-cursor-resizer-horizontal-Splitter)", "cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"}'`,splitter:"_splitter_1a9gt_13",vertical:"_vertical_1a9gt_27",horizontal:"_horizontal_1a9gt_30",panel:"_panel_1a9gt_34",primaryPanel:"_primaryPanel_1a9gt_41",secondaryPanel:"_secondaryPanel_1a9gt_48",resizer:"_resizer_1a9gt_54",floatingResizer:"_floatingResizer_1a9gt_70"},Ze="Splitter",Ot=y({description:`The \`${Ze}\` component divides a container (such as a window, panel, pane, etc.) into two resizable sections.`,props:{swapped:l(`This optional booelan property indicates whether the \`${Ze}\` sections are layed out as primary and secondary (\`false\`) or secondary and primary (\`true\`) from left to right.`),splitterTemplate:te("The divider can be customized using XMLUI components via this property."),initialPrimarySize:l("This optional number property sets the initial size of the primary section. The unit of the size value is in pixels or percentages."),minPrimarySize:l("This property sets the minimum size the primary section can have. The unit of the size value is in pixels or percentages."),maxPrimarySize:l("This property sets the maximum size the primary section can have. The unit of the size value is in pixels or percentages."),floating:l("Toggles whether the resizer is visible (`false`) or not (`true`) when not hovered or dragged. The default value is `false`, meaning the resizer is visible all the time.")},events:{resize:l("This event fires when the component is resized.")},themeVars:z(xa.themeVars),defaultThemeVars:{[`color-bg-resizer-${Ze}`]:"$color-bg-Card",[`thickness-resizer-${Ze}`]:"5px",[`cursor-resizer-horizontal-${Ze}`]:"ew-resize",[`cursor-resizer-vertical-${Ze}`]:"ns-resize"}}),fa={...Ot,props:{...Ot.props,orientation:l("Sets whether the `Splitter` divides the container horizontally and lays out the section on top of each other (`vertical`), or vertically by placing the sections next to each other (`horizontal`).")}},ga={...Ot,specializedFrom:Ze},va={...Ot,specializedFrom:Ze},ba={themeVars:`'{"color-bg-StickyBox": "var(--xmlui-color-bg-StickyBox)"}'`,wrapper:"_wrapper_1qgtv_13",top:"_top_1qgtv_18",bottom:"_bottom_1qgtv_21"},rr="StickyBox",ya=y({status:"experimental",description:`The \`${rr}\` is a component that "sticks" or remains fixed at the top or bottom position on the screen as the user scrolls.`,props:{to:l("This property determines whether the StickyBox should be anchored to the `top` or `bottom`.")},themeVars:z(ba.themeVars),defaultThemeVars:{[`color-bg-${rr}`]:"$color-bg"}}),Z="Switch",Ta=y({description:`The \`${Z}\` component is a user interface element that allows users to toggle between two states: on and off. It consists of a small rectangular or circular button that can be moved left or right to change its state.`,props:{indeterminate:So(),label:xe(),labelPosition:He("end"),labelWidth:Ue(Z),labelBreak:Ve(Z),required:Oe(),initialValue:Ee(!1),autoFocus:ye(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),description:l(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description of the ${Z} besides its label.`)},events:{click:qe(Z),gotFocus:Be(Z),lostFocus:Se(Z),didChange:be(Z)},apis:{value:Ao(),setValue:Ge()},themeVars:z(Go.themeVars),defaultThemeVars:{[`color-border-checked-${Z}-error`]:`$color-border-${Z}-error`,[`color-bg-checked-${Z}-error`]:`$color-border-${Z}-error`,[`color-border-checked-${Z}-warning`]:`$color-border-${Z}-warning`,[`color-bg-checked-${Z}-warning`]:`$color-border-${Z}-warning`,[`color-border-checked-${Z}-success`]:`$color-border-${Z}-success`,[`color-bg-checked-${Z}-success`]:`$color-border-${Z}-success`,light:{[`color-bg-${Z}`]:"$color-surface-400",[`color-border-${Z}`]:"$color-surface-400",[`color-bg-indicator-${Z}`]:"$color-bg-primary",[`color-border-checked-${Z}`]:"$color-primary-500",[`color-bg-checked-${Z}`]:"$color-primary-500",[`color-bg-${Z}--disabled`]:"$color-surface-200"},dark:{[`color-bg-${Z}`]:"$color-surface-500",[`color-border-${Z}`]:"$color-surface-500",[`color-bg-indicator-${Z}`]:"$color-bg-primary",[`color-border-checked-${Z}`]:"$color-primary-400",[`color-bg-checked-${Z}`]:"$color-primary-400",[`color-bg-${Z}--disabled`]:"$color-surface-800"}}}),ka={themeVars:`'{"color-text-pagination-Table": "var(--xmlui-color-text-pagination-Table)", "color-bg-Table": "var(--xmlui-color-bg-Table)", "color-text-Table": "var(--xmlui-color-text-Table)", "color-bg-row-Table": "var(--xmlui-color-bg-row-Table)", "color-bg-row-Table--hover": "var(--xmlui-color-bg-row-Table--hover)", "color-bg-selected-Table": "var(--xmlui-color-bg-selected-Table)", "color-bg-selected-Table--hover": "var(--xmlui-color-bg-selected-Table--hover)", "color-bg-heading-Table": "var(--xmlui-color-bg-heading-Table)", "color-bg-heading-Table--hover": "var(--xmlui-color-bg-heading-Table--hover)", "color-bg-heading-Table--active": "var(--xmlui-color-bg-heading-Table--active)", "padding-horizontal-heading-Table": "var(--xmlui-padding-horizontal-heading-Table)", "padding-vertical-heading-Table": "var(--xmlui-padding-vertical-heading-Table)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "padding-horizontal-cell-Table": "var(--xmlui-padding-horizontal-cell-Table)", "padding-horizontal-cell-first-Table": "var(--xmlui-padding-horizontal-cell-first-Table)", "padding-horizontal-cell-last-Table": "var(--xmlui-padding-horizontal-cell-last-Table)", "padding-vertical-cell-Table": "var(--xmlui-padding-vertical-cell-Table)", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "color-border-cell-Table": "var(--xmlui-color-border-cell-Table)", "thickness-border-cell-Table": "var(--xmlui-thickness-border-cell-Table)", "style-border-cell-Table": "var(--xmlui-style-border-cell-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "color-bg-pagination-Table": "var(--xmlui-color-bg-pagination-Table)", "color-text-heading-Table": "var(--xmlui-color-text-heading-Table)", "font-weight-row-Table": "var(--xmlui-font-weight-row-Table)", "font-size-row-Table": "var(--xmlui-font-size-row-Table)", "font-weight-heading-Table": "var(--xmlui-font-weight-heading-Table)", "font-size-heading-Table": "var(--xmlui-font-size-heading-Table)", "transform-text-heading-Table": "var(--xmlui-transform-text-heading-Table)", "thickness-outline-heading-Table--focus": "var(--xmlui-thickness-outline-heading-Table--focus)", "color-outline-heading-Table--focus": "var(--xmlui-color-outline-heading-Table--focus)", "style-outline-heading-Table--focus": "var(--xmlui-style-outline-heading-Table--focus)", "offset-outline-heading-Table--focus": "var(--xmlui-offset-outline-heading-Table--focus)"}'`,wrapper:"_wrapper_7jlv4_13",noScroll:"_noScroll_7jlv4_19",headerWrapper:"_headerWrapper_7jlv4_23",tableBody:"_tableBody_7jlv4_23",clickableHeader:"_clickableHeader_7jlv4_29",headerContent:"_headerContent_7jlv4_39",headerRow:"_headerRow_7jlv4_67",columnCell:"_columnCell_7jlv4_72",cell:"_cell_7jlv4_72",table:"_table_7jlv4_23",row:"_row_7jlv4_83",checkBoxWrapper:"_checkBoxWrapper_7jlv4_89",showInHeader:"_showInHeader_7jlv4_93",selected:"_selected_7jlv4_96",allSelected:"_allSelected_7jlv4_96",focused:"_focused_7jlv4_142",disabled:"_disabled_7jlv4_154",noRows:"_noRows_7jlv4_179",pagination:"_pagination_7jlv4_185",paginationLabel:"_paginationLabel_7jlv4_201",paginationSelect:"_paginationSelect_7jlv4_206",paginationButtons:"_paginationButtons_7jlv4_212",searchIconWrapper:"_searchIconWrapper_7jlv4_217",loadingWrapper:"_loadingWrapper_7jlv4_224",resizer:"_resizer_7jlv4_239",isResizing:"_isResizing_7jlv4_261"},O="Table",wa=y({description:`\`${O}\` is a component that displays cells organized into rows and columns. The \`${O}\` component is virtualized so it only renders visible cells.`,props:{items:l("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:l("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:l(`This property adds pagination controls to the \`${O}\`.`),loading:l("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:l("This optional property is used to specify the height of the table header."),rowsSelectable:l("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:l("Describes how big a page should be for pagination."),rowDisabledPredicate:l("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:te("A property to customize what to display if the table does not contain any data."),sortBy:l("This property is used to determine which data attributes to sort by."),sortDirection:l("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set."),autoFocus:ye(),hideHeader:l("Set the header visibility using this property. Set it to `true` to hide the header."),iconNoSort:l(`Allows the customization of the icon displayed in the ${O} column header when when sorting is enabled and sorting is not done according to the column.`),iconSortAsc:l(`Allows the customization of the icon displayed in the ${O} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in ascending order.`),iconSortDesc:l(`Allows the customization of the icon displayed in the ${O} column header when sorting is enabled, sorting is done according to the column, and the column is sorted in descending order.`),enableMultiRowSelection:l("This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row."),alwaysShowSelectionHeader:l("This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",null,"boolean",!1)},events:{sortingDidChange:l("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:l("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:l("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:l("This method clears the list of currently selected table rows."),getSelectedItems:l("This method returns the list of currently selected table rows items."),getSelectedIds:l("This method returns the list of currently selected table rows IDs."),selectAll:l("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:l("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:z(ka.themeVars),defaultThemeVars:{[`padding-horizontal-heading-${O}`]:"$space-2",[`padding-vertical-heading-${O}`]:"$space-2",[`padding-heading-${O}`]:`$padding-vertical-heading-${O} $padding-horizontal-heading-${O}`,[`padding-horizontal-cell-${O}`]:"$space-2",[`padding-horizontal-cell-first-${O}`]:"$space-5",[`padding-horizontal-cell-last-${O}`]:"$space-5",[`padding-vertical-cell-${O}`]:"$space-2",[`padding-cell-${O}`]:`$padding-vertical-cell-${O} $padding-horizontal-cell-${O}`,[`thickness-border-cell-${O}`]:"1px",[`style-border-cell-${O}`]:"solid",[`border-cell-${O}`]:`$thickness-border-cell-${O} $style-border-cell-${O} $color-border-cell-${O}`,[`thickness-outline-heading-${O}--focus`]:"$thickness-outline--focus",[`style-outline-heading-${O}--focus`]:"$style-outline--focus",[`offset-outline-heading-${O}--focus`]:"$offset-outline--focus",[`font-size-heading-${O}`]:"$font-size-tiny",[`font-weight-heading-${O}`]:"$font-weight-bold",[`transform-text-heading-${O}`]:"uppercase",[`font-size-row-${O}`]:"$font-size-small",[`color-bg-${O}`]:"$color-bg",[`color-bg-row-${O}`]:"inherit",[`color-border-cell-${O}`]:"$color-border",[`color-bg-selected-${O}--hover`]:`$color-bg-row-${O}--hover`,[`color-bg-pagination-${O}`]:`$color-bg-${O}`,[`color-outline-heading-${O}--focus`]:"$color-outline--focus",[`color-text-pagination-${O}`]:"$color-secondary",light:{[`color-bg-row-${O}--hover`]:"$color-primary-50",[`color-bg-selected-${O}`]:"$color-primary-100",[`color-bg-heading-${O}--hover`]:"$color-surface-200",[`color-bg-heading-${O}--active`]:"$color-surface-300",[`color-bg-heading-${O}`]:"$color-surface-100",[`color-text-heading-${O}`]:"$color-surface-500"},dark:{[`color-bg-row-${O}--hover`]:"$color-primary-900",[`color-bg-selected-${O}`]:"$color-primary-800",[`color-bg-heading-${O}--hover`]:"$color-surface-800",[`color-bg-heading-${O}`]:"$color-surface-950",[`color-bg-heading-${O}--active`]:"$color-surface-700"}}}),$a=y({description:"The `Column` component can be used within a `Table` to define a particular table column's visual properties and data bindings.",props:{bindTo:l("Indicates what part of the data to lay out in the column."),header:l("Adds a label for a particular column."),width:l("This property defines the width of the column. You can use a numeric value, a pixel value (such as `100px`), or a star size value (such as `*`, `2*`, etc.). You will get an error if you use any other unit (or value)."),minWidth:l("Indicates the minimum width a particular column can have."),maxWidth:l("Indicates the maximum width a particular column can have."),canSort:l("This property sets whether the user can sort by a column by clicking on its header (`true`) or not (`false`)."),pinTo:l("This property allows the column to be pinned to the `left` (left-to-right writing style) or `right` (left-to-right writing style) edge of the table. If the writing style is right-to-left, the locations are switched.",["left","right"],"string"),canResize:l("This property indicates whether the user can resize the column. If set to `true`, the column can be resized by dragging the column border. If set to `false`, the column cannot be resized. Double-clicking the column border resets to the original size.")}});var m=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(m||{}),bt=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(bt||{}),Je=(e=>(e.onlyOneElem="U002",e.expTagOpen="U003",e.expTagIdent="U004",e.expCloseStart="U005",e.expEndOrClose="U006",e.tagNameMismatch="U007",e.expEnd="U008",e.expAttrIdent="U009",e.expEq="U010",e.expAttrValue="U011",e.duplAttr="U012",e.uppercaseAttr="U013",e.invalidChar="W001",e.untermStr="W002",e.untermComment="W007",e.untermCData="W008",e.untermScript="W009",e))(Je||{});const lo={code:"W001",category:1,message:"Invalid character."},_a={code:"W002",category:1,message:"Unterminated string literal."},Ia={code:"W007",category:1,message:"Unterminated comment"},Ba={code:"W008",category:1,message:"Unterminated CDATA section"},Sa={code:"W009",category:1,message:"Unterminated script section"},Ea={category:1,code:"U008",message:"A '>' token expected."},Aa={category:1,code:"U005",message:"A '</' token expected."},nr={category:1,code:"U004",message:"A tag identifier expected."},Na={category:1,code:"U011",message:"An attribute value expected."},za={category:1,code:"U003",message:"A '<' token expected."},La={category:1,code:"U006",message:"A '>' or '/>' token expected."},ir={category:1,code:"U009",message:"An attribute identifier expected."};var p=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.CommentTrivia=2]="CommentTrivia",e[e.NewLineTrivia=3]="NewLineTrivia",e[e.WhitespaceTrivia=4]="WhitespaceTrivia",e[e.Identifier=5]="Identifier",e[e.OpenNodeStart=6]="OpenNodeStart",e[e.CloseNodeStart=7]="CloseNodeStart",e[e.NodeEnd=8]="NodeEnd",e[e.NodeClose=9]="NodeClose",e[e.Colon=10]="Colon",e[e.Equal=11]="Equal",e[e.StringLiteral=12]="StringLiteral",e[e.CData=13]="CData",e[e.Script=14]="Script",e[e.TextNode=15]="TextNode",e[e.AmpersandEntity=16]="AmpersandEntity",e[e.LessThanEntity=17]="LessThanEntity",e[e.GreaterThanEntity=18]="GreaterThanEntity",e[e.SingleQuoteEntity=19]="SingleQuoteEntity",e[e.DoubleQuoteEntity=20]="DoubleQuoteEntity",e[e.ElementNode=21]="ElementNode",e[e.AttributeNode=22]="AttributeNode",e[e.AttributeKeyNode=23]="AttributeKeyNode",e[e.ContentListNode=24]="ContentListNode",e[e.AttributeListNode=25]="AttributeListNode",e[e.TagNameNode=26]="TagNameNode",e[e.ErrorNode=27]="ErrorNode",e))(p||{});function Ca(e){return e>=2&&e<=4}function ar(e){switch(e){case 0:return"Unknown";case 1:return"EndOfFileToken";case 2:return"CommentTrivia";case 3:return"NewLineTrivia";case 4:return"WhitespaceTrivia";case 5:return"Identifier";case 6:return"OpenNodeStart";case 7:return"CloseNodeStart";case 8:return"NodeEnd";case 9:return"NodeClose";case 10:return"Colon";case 11:return"Equal";case 12:return"StringLiteral";case 13:return"CData";case 14:return"Script";case 16:return"AmpersandEntity";case 17:return"LessThanEntity";case 18:return"GreaterThanEntity";case 19:return"SingleQuoteEntity";case 20:return"DoubleQuoteEntity";case 21:return"ElementNode";case 22:return"AttributeNode";case 15:return"TextNode";case 24:return"ContentListNode";case 25:return"AttributeListNode";case 26:return"TagNameNode";case 27:return"ErrorNode";case 23:return"AttributeKeyNode"}return Pa()}function Pa(e){throw new Error("Didn't expect to get here")}function Oa(e,t,o,i,r){let s=t??"",a,c,u,w,g,d;return me(s,i,r),{getStartPos:()=>u,getTokenEnd:()=>a,getToken:()=>g,getTokenStart:()=>w,getTokenText:()=>s.substring(w,a),getTokenValue:()=>d,isIdentifier:()=>g===p.Identifier,peekChar:C,scanChar:b,scan:D,scanTrivia:S,scanText:_,getText:oe,setText:me,setOnError:de,resetTokenState:ne,back:W};function C(v){if(a+(v??0)>=c)return null;const f=U(a+(v??0));return isNaN(f)?null:f}function b(){if(a>=c)return null;const v=U(a);return a+=We(v),v}function D(){for(u=a;;){if(w=a,a>=c)return g=p.EndOfFileToken;const v=U(a);switch(v){case m.lineFeed:case m.carriageReturn:return v===m.carriageReturn&&a+1<c&&$(a+1)===m.lineFeed?a+=2:a++,g=p.NewLineTrivia;case m.tab:case m.verticalTab:case m.formFeed:case m.space:case m.nonBreakingSpace:case m.ogham:case m.enQuad:case m.emQuad:case m.enSpace:case m.emSpace:case m.threePerEmSpace:case m.fourPerEmSpace:case m.sixPerEmSpace:case m.figureSpace:case m.punctuationSpace:case m.thinSpace:case m.hairSpace:case m.zeroWidthSpace:case m.narrowNoBreakSpace:case m.mathematicalSpace:case m.ideographicSpace:case m.byteOrderMark:{for(;a<c&&sr($(a));)a++;return g=p.WhitespaceTrivia}case m.doubleQuote:case m.singleQuote:case m.backtick:return d=x(),g=p.StringLiteral;case m.ampersand:return $(a+1)===m.a&&$(a+2)===m.m&&$(a+3)===m.p&&$(a+4)===m.semicolon?(a+=5,g=p.AmpersandEntity):$(a+1)===m.l&&$(a+2)===m.t&&$(a+3)===m.semicolon?(a+=4,g=p.LessThanEntity):$(a+1)===m.g&&$(a+2)===m.t&&$(a+3)===m.semicolon?(a+=4,g=p.GreaterThanEntity):$(a+1)===m.q&&$(a+2)===m.u&&$(a+3)===m.o&&$(a+4)===m.t&&$(a+5)===m.semicolon?(a+=6,g=p.DoubleQuoteEntity):$(a+1)===m.a&&$(a+2)===m.p&&$(a+3)===m.o&&$(a+4)===m.s&&$(a+5)===m.semicolon?(a+=6,g=p.SingleQuoteEntity):(a++,h(lo,1),g=p.Unknown);case m.equals:return a++,g=p.Equal;case m.colon:return a++,g=p.Colon;case m.lessThan:if($(a+1)===m.slash)return a+=2,g=p.CloseNodeStart;if($(a+1)===m.exclamation&&$(a+2)===m.minus&&$(a+3)===m.minus){for(a+=4;a<c;){if($(a)===m.minus&&$(a+1)===m.minus&&$(a+2)===m.greaterThan)return a+=3,g=p.CommentTrivia;a+=We($(a))}return h(Ia,4),g=p.Unknown}else if($(a+1)===m.exclamation&&$(a+2)===m.openBracket&&$(a+3)===m.C&&$(a+4)===m.D&&$(a+5)===m.A&&$(a+6)===m.T&&$(a+7)===m.A&&$(a+8)===m.openBracket){for(a+=9;a<c;){if($(a)===m.closeBracket&&$(a+1)===m.closeBracket&&$(a+2)===m.greaterThan)return a+=3,g=p.CData;a+=We($(a))}return h(Ba,9),g=p.CData}else if($(a+1)===m.s&&$(a+2)===m.c&&$(a+3)===m.r&&$(a+4)===m.i&&$(a+5)===m.p&&$(a+6)===m.t&&$(a+7)===m.greaterThan){for(a+=8;a<c;){if($(a)===m.lessThan&&$(a+1)===m.slash&&$(a+2)===m.s&&$(a+3)===m.c&&$(a+4)===m.r&&$(a+5)===m.i&&$(a+6)===m.p&&$(a+7)===m.t&&$(a+8)===m.greaterThan)return a+=9,g=p.Script;a+=We($(a))}return h(Sa,9),g=p.Script}return a++,g=p.OpenNodeStart;case m.slash:return $(a+1)===m.greaterThan?(a+=2,g=p.NodeClose):(a++,h(lo,1),g=p.Unknown);case m.greaterThan:return a++,g=p.NodeEnd;default:const f=M(v);if(f)return g=f;if(sr(v)){a+=We(v);continue}else if(Wa(v)){a+=We(v);continue}const A=We(v);return a+=A,h(lo,A),g=p.Unknown}}}function S(){const v=a,f=D();return Ca(f)?f:(ne(v),null)}function _(){return p.Unknown}function oe(){return s}function $(v){return s.charCodeAt(v)}function U(v){return he(s,v)}function he(v,f){return v.codePointAt(f)??0}function me(v,f,A){s=v||"",c=A===void 0?s.length:f+A,ne(f||0)}function de(v){o=v}function ne(v){a=v,u=v,w=v,g=p.Unknown,d=void 0}function W(){ne(u)}function M(v){let f=v;if(Ha(f)){for(a+=We(f);a<c&&Fa(f=U(a));)a+=We(f);return d=s.substring(w,a),ue()}}function ue(){return g=p.Identifier}function x(){const v=$(a);a++;let f="",A=a;for(;;){if(a>=c){f+=s.substring(A,a),h(_a,1);break}if($(a)===v){f+=s.substring(A,a),a++;break}a++}return f}function h(v,f=0){o&&o(v,f)}}function We(e){return e>=65536?2:e===m.EOF?0:1}function lr(e){return e>=m.A&&e<=m.Z||e>=m.a&&e<=m.z}function Da(e){return lr(e)||Ma(e)||e===m._}function Ma(e){return e>=m._0&&e<=m._9}function Ha(e){return lr(e)||e===m.$||e===m._}function Fa(e){return Da(e)||e===m.$||e===m.minus||e===m.dot}function sr(e){return e===m.space||e===m.tab||e===m.verticalTab||e===m.formFeed||e===m.nonBreakingSpace||e===m.nextLine||e===m.ogham||e>=m.enQuad&&e<=m.zeroWidthSpace||e===m.narrowNoBreakSpace||e===m.mathematicalSpace||e===m.ideographicSpace||e===m.byteOrderMark}function Wa(e){return e===m.lineFeed||e===m.carriageReturn||e===m.lineSeparator||e===m.paragraphSeparator}function Ra(e,t,o){var s,a;const i=((s=e.children)==null?void 0:s.filter(c=>c.kind!==p.ErrorNode))??[],r=((a=t.children)==null?void 0:a.filter(c=>c.kind!==p.ErrorNode))??[];if(i.length!==r.length)return!1;for(let c=0;c<i.length;++c)if(o(i[c])!==o(r[c]))return!1;return!0}const Dt={uppercaseAttr:function(e){return{category:bt.Error,code:Je.uppercaseAttr,message:`Attribute name '${e}' cannot start with an uppercase letter.`}},duplAttr:function(e){return{category:bt.Error,code:Je.duplAttr,message:`Duplicated attribute: '${e}'.`}},tagNameMismatch:function(e,t){return{category:bt.Error,code:Je.tagNameMismatch,message:`Opening and closing tag names should match. Opening tag has a name '${e}', but the closing tag name is '${t}'.`}},invalidChar:function(e){return{category:bt.Error,code:Je.invalidChar,message:`Invalid character '${e}'.`}}};function qa(e){return{parse:()=>Ua(e),getText:(t,o=!0)=>e.substring(o?t.pos??t.start??0:t.start??t.pos??0,t.end)}}function Ua(e){const t=[],o=[];let i,r={children:[]},s;const c=Oa(!1,e,function(T,I){s={message:T,prefixLength:I}});function u(T,I=!0){return e.substring(I?T.pos:T.start,T.end)}function w(){h();e:for(;;){const T=M();switch(T.kind){case p.TextNode:case p.StringLiteral:ue(T.kind);break;case p.CloseNodeStart:break e;case p.EndOfFileToken:break e;default:d();break}}r.children&&r.children.length>0?v(p.ContentListNode):H()}function g(){for(;;)switch(M().kind){case p.EndOfFileToken:x();return;default:d();break}}function d(){!U(p.CData)&&!U(p.Script)&&($(p.OpenNodeStart)?C():A(za))}function C(){h(),ue(p.OpenNodeStart);let T;if($(p.Identifier)?T=b():de(nr),D(),U(p.NodeClose)){v(p.ElementNode);return}else if(U(p.NodeEnd)){if(w(),U(p.CloseNodeStart)){if($(p.Identifier)){const I=b();T!==void 0&&!Ra(T,I,u)&&de(Dt.tagNameMismatch(u(T),u(I)))}else me(nr,[p.NodeEnd]);U(p.NodeEnd)||de(Ea)}else de(Aa);v(p.ElementNode);return}else de(La)}function b(){return h(),ue(p.Identifier),U(p.Colon)&&U(p.Identifier),v(p.TagNameNode)}function D(){h();const T=[];for(;!he([p.EndOfFileToken,p.NodeEnd,p.NodeClose]);)S(T);r.children.length===0?H():v(p.AttributeListNode)}function S(T){if(h(),$(p.Identifier))_(T);else{const I=[p.Equal];if(!me(ir,I))return}if(U(p.Equal)&&!U(p.StringLiteral)&&!U(p.Identifier)){const I=[p.NodeEnd,p.NodeClose];me(Na,I)}v(p.AttributeNode)}function _(T){const I=W();let N;h(),ue(p.Identifier),U(p.Colon)&&($(p.Identifier)?N=ue(p.Identifier):me(ir,[p.NodeClose,p.NodeEnd,p.Equal])),oe(T,{nsIdent:N,nameIdent:I}),v(p.AttributeKeyNode)}function oe(T,{nameIdent:I,nsIdent:N}){const F=u(I),E=N===void 0?void 0:u(N),P=({ns:dt,name:Rt})=>Rt===F&&dt===E,G=T.findIndex(P)!==-1,ce="A"<=F[0]&&F[0]<="Z",V=G||ce;G&&ne(Dt.duplAttr(F),I.pos,I.end),ce&&ne(Dt.uppercaseAttr(F),I.pos,I.end),V||T.push({name:F})}function $(T){return W().kind===T}function U(T){const I=$(T);return I&&x(),I}function he(T){return T.includes(W().kind)}function me(T,I){return he(I)||$(p.EndOfFileToken)?(de(T),!0):(h(),de(T),x(),v(p.ErrorNode),!1)}function de({code:T,message:I,category:N}){const{pos:F,end:E}=W();t.push({category:N,code:T,message:I,pos:F,end:E})}function ne({code:T,message:I,category:N},F,E){t.push({category:N,code:T,message:I,pos:F,end:E})}function W(T=!1){return i!==void 0||(i=f(T)),i}function M(){const T=W(!0);if(T.kind===p.EndOfFileToken||T.kind===p.OpenNodeStart||T.kind===p.Script||T.kind===p.CData||T.kind===p.CloseNodeStart)return T;const I=T.triviaBefore,N=(I==null?void 0:I.length)??0;let F=0,E=[],P=-1;for(;F<N;++F)if(I[F].kind===p.CommentTrivia)E.push(I[F]);else{P=F;break}let G=-1;for(;F<N;++F)if(I[F].kind===p.CommentTrivia){G=F;break}let ce=!1;if(T.kind===p.StringLiteral){const qt=T.end,Ut=f(!0);ce=Ut.kind===p.CData||Ut.kind===p.CloseNodeStart||Ut.kind===p.Script||Ut.kind===p.OpenNodeStart,c.resetTokenState(qt)}let V;ce?V=T.pos:E.length>0?V=E[E.length-1].end:P!==-1?V=I[P].pos:V=T.start;let dt=V,Rt;E.length>0&&(Rt=E,dt=E[0].pos);let Br=p.TextNode,St=-1;if(G!==-1)St=I[G].pos,c.resetTokenState(St);else if(ce)Br=p.StringLiteral,St=T.end;else{for(;;){const qt=c.peekChar();if(qt===null||qt===m.lessThan)break;c.scanChar()}St=c.getTokenEnd()}return i={kind:Br,start:dt,pos:V,end:St,triviaBefore:Rt},i}function ue(T){const I=x();if(I.kind!==T)throw new Error(`expected ${ar(T)}, bumped a ${ar(I.kind)}`);return I}function x(){if(i){r.children.push(i);const I=i;return i=void 0,I}const T=f(!1);return r.children.push(T),T}function h(){o.push(r),r={children:[]}}function v(T){const I=cr(T,r.children),N=o[o.length-1];return N.children.push(I),r=N,o.pop(),I}function f(T){let I,N=[],F=null;for(;;){if(I=c.scan(),F===null&&(F=c.getTokenStart()),s!==void 0){let E;s.message.code===Je.invalidChar?E=Dt.invalidChar(c.getTokenText()):E=s.message;const P=c.getTokenStart(),G={kind:I,start:F,pos:P,end:c.getTokenEnd(),triviaBefore:N.length>0?N:void 0};if(N=[],T&&E.code===Je.invalidChar)return s=void 0,G;const ce=P+s.prefixLength;return G.end=ce,c.resetTokenState(ce),h(),r.children.push(G),ne(E,P,ce),v(p.ErrorNode),s=void 0,f(T)}switch(I){case p.CommentTrivia:case p.NewLineTrivia:case p.WhitespaceTrivia:N.push({kind:I,start:F,pos:c.getTokenStart(),end:c.getTokenEnd()});break;default:return{kind:I,start:F,pos:c.getTokenStart(),end:c.getTokenEnd(),triviaBefore:N.length>0?N:void 0}}}}function A(T){me(T,[])}function H(){const T=o[o.length-1];T.children.push(...r.children),r=T,o.pop()}return g(),{node:cr(p.ContentListNode,r.children),errors:t}}function cr(e,t){const o=t[0],i=t[t.length-1];return{kind:e,start:o.start,pos:o.pos,end:i.end,children:t}}class so extends Error{constructor(t,o){super(`${o?`${o}: `:""}${t}`),this.code=o,Object.setPrototypeOf(this,so.prototype)}}const Va={U001:"Unexpected token: {0}.",U002:"A component definition can have exactly one UEML element.",U003:"A '<' token expected.",U004:"A node identifier expected.",U005:"A '</' token expected.",U006:"A '>' or '/>' token expected.",U007:"An '{0}' ID expected in the closing tag but '{1}' received.",U008:"A '>' token expected.",U009:"An attribute identifier expected.",U010:"An '=' token expected.",U011:"An attribute value expected.",U012:"Duplicated attribute: '{0}'.",U013:"Attribute name cannot start with an uppercase letter.",U014:"An '{0}' ID expected in the closing tag's namespace but '{1}' received.",U015:"Unexpected token in text element: {0}.",T001:"A component definition must have exactly one UEML element.",T002:"A component definition's name must start with an uppercase letter.",T003:"A reusable component must have a non-empty name.",T004:"A reusable component's name must start with an uppercase letter.",T005:"A reusable component must have at least one nested component definition.",T006:"A reusable component definition cannot nest another one.",T007:"Invalid attribute name: '{0}'",T008:"Event attribute names should not start with 'on' prefix: '{0}'",T009:"Invalid node name '{0}' in a component definition",T010:"The '{0}' element does not accept a text child",T011:"Only 'name', 'value', and type hint attributes are accepted in '{0}'.",T012:"The 'name' attribute in '{0}' is required.",T013:"A loader element must have an id.",T014:"A loader element must not have '{0}'.",T015:"The uses element must define only a non-empty 'value' attribute.",T016:"Only 'field' or 'item' are accepted as a child element.",T017:"Cannot mix 'field' and 'item' nodes within an element.",T018:"The '{0}' node cannot have a 'name' attribute.",T019:"The 'value' attribute in '{0}' is required.",T020:"Cannot mix nested components and non-component children.",T021:"Invalid reusable component attribute '{0}'.",T022:"The 'script' tag must not have any attribute.",T023:"A 'script' tag cannot nest other child nodes, only text.",T024:"Cannot put a reusable component definitions into a slot.",T025:"Duplicate xmlns found: '{0}'.",T026:"The top level component's name cannot have a namespace.",T027:"Cannot resolve namespace '{0}'. It was not defined in any of the ancestor components.",T028:"Incorrect namespace value '{0}'. {1}",T029:"Incorrect scheme specified before ':' (colon) in namespace {0}. Delete it to get the default '{1}'."},co="__PARSED__";function Ga(e,t,o,i){const r={vars:{},moduleErrors:{},functions:{}},s={},a=Ti(e,t,o,!0);if(yi(a))return{...r,moduleErrors:a};const c=i(a.name);return a.statements.forEach(g=>{switch(g.type){case"VarS":g.declarations.forEach(d=>{if(d.id in r.vars)throw new Error(`Duplicated var declaration: '${d.id}'`);r.vars[d.id]={[co]:!0,source:d.expression.source,tree:d.expression}});break;case"FuncD":w(c,g);break;case"ImportD":break;default:throw new Error(`'${g.type}' is not allowed in a code-behind module.`)}}),u(a),r;function u(g){var C;const d=i(g.name);if(!((C=s==null?void 0:s[d])!=null&&C.collectedImportsFrom)){for(const b in g.imports){const D=i(b),S=g.imports[b];for(const _ of Object.values(S))_.type==="FuncD"&&w(D,_)}s[d]??(s[d]={collectedImportsFrom:!0}),s[d].collectedImportsFrom=!0;for(let b of g.importedModules)u(b)}}function w(g,d){var _,oe,$,U;var C;if(((oe=(_=s==null?void 0:s[g])==null?void 0:_.functions)==null?void 0:oe[d.name])!==void 0)return;if(d.name in r.functions)throw new Error(`Duplicated function declaration: '${d.name}'`);const b=d.args.length===1?`${d.args[0].source} => ${d.statement.source}`:`(${d.args.map(he=>he.source).join(", ")}) => ${d.statement.source}`,D={type:"ArrowE",args:d.args.slice(),statement:d.statement,closureContext:Ko({childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1})},S=(U=($=D.closureContext[0])==null?void 0:$.vars)==null?void 0:U[d.name];S!=null&&S.closureContext&&delete S.closureContext,s[g]??(s[g]={functions:{},collectedImportsFrom:!1}),(C=s[g]).functions??(C.functions={}),s[g].functions[d.name]={[co]:!0,source:b,tree:D},r.functions[d.name]={[co]:!0,source:b,tree:D}}}const ur="Component",uo=/^[A-Z]/,dr=/^on[A-Z]/,Ya=["name","value"],Xa=9,Qa=3,po="component-ns",Za="app-ns",Ja="#app-ns",ja="core-ns",Ka="#xmlui-core-ns";var ct=(e=>(e[e.property=0]="property",e[e.event=1]="event",e[e.var=2]="var",e[e.loaders=3]="loaders",e[e.uses=4]="uses",e[e.method=5]="method",e[e.item=6]="item",e[e.field=7]="field",e))(ct||{});function el(e,t,o,i=()=>""){const r=x=>x.text??t(x),s=nl(e),a=me(s),c=[],u=[];return w(c,a);function w(x,h){const v=fr(h,r,u);if(v===ur)return d(h);let f={type:v,debug:{source:{start:h.start,end:h.end,fileId:o}}};return C(x,f,h),f}function g(x,h){const v=fr(h,r,u);v===ur&&X("T006");let f={type:v,debug:{source:{start:h.start,end:h.end,fileId:o}}};return C(x,f,h),f}function d(x){const h=yt(x).map(U),v=h.find(V=>V.name==="name");v||X("T003"),uo.test(v.value)||X("T004");let f;const A=h.filter(V=>V.startSegment==="method");A.length>0&&(f={},A.forEach(V=>{f[V.name]=V.value}));let H;const R=h.filter(V=>V.startSegment==="var");R.length>0&&(H={},R.forEach(V=>{H[V.name]=V.value}));const T=Tt(x),I=T.filter(V=>V.kind===p.ElementNode&&!(Re(V,r)in ct));I.length===0&&I.push(pr(""));const N=[],F=[];for(let V of T)if(V.kind===p.ElementNode){const dt=Re(V,r);dt==="var"?F.push(V):dt in ct&&N.push(V)}let E;I.length>1||F.length>0?E=hr([...F,...I]):E=I[0],u.push(new Map),h.filter(V=>V.namespace==="xmlns").forEach(V=>{xr(u,E,V.unsegmentedName,V.value)});let P=g(c,E);u.pop();const G={name:v.value,component:P,debug:{source:{start:x.start,end:x.end,fileId:o}}};f&&(G.api=f),H&&(P.vars={...P.vars,...H}),P.debug={source:{start:E.start,end:E.end,fileId:o}};const ce=mr(x,N);return C(c,G,ce),G}function C(x,h,v){var I;const f=!ze(h),A=yt(v);if(u.push(new Map),A.forEach(N=>{b(h,N)}),Tt(v).forEach(N=>{if(N.kind===p.Script){yt(N).length>0&&X("T022");const E=r(N),P=E.slice(E.indexOf(">")+1,E.lastIndexOf("</"));h.script??(h.script=""),h.script.length>0&&(h.script+=`
8
+ `),h.script+=P;return}if(N.kind===p.TextNode&&!f){h.children=Mt(h.children,r(N));return}const F=Re(N,r);if(!(f&&N.kind===p.ElementNode&&!(F in ct))){if(!(F in ct)&&!f){const E=g(x,N);E&&(h.children?typeof h.children=="string"?h.children=[h.children,E]:Array.isArray(h.children)&&h.children.push(E):h.children=[E]);return}switch(F){case"property":oe(x,h,N,E=>{var P;return ze(h)?(P=h.props)==null?void 0:P[E]:void 0},(E,P)=>{ze(h)&&(h.props??(h.props={}),h.props[E]=P)});return;case"event":oe(x,h,N,E=>{var P;return ze(h)?(P=h.events)==null?void 0:P[E]:void 0},(E,P)=>{ze(h)&&(h.events??(h.events={}),h.events[E]=P)},E=>{dr.test(E)&&X("T008",E)});return;case"var":oe(x,h,N,E=>{var P;return ze(h)?(P=h.vars)==null?void 0:P[E]:void 0},(E,P)=>{ze(h)&&(h.vars??(h.vars={}),h.vars[E]=P)});return;case"loaders":_(x,h,N);return;case"uses":$(h,N);return;case"method":oe(x,h,N,E=>{var P;return ze(h)?(P=h.api)==null?void 0:P[E]:void 0},(E,P)=>{h.api??(h.api={}),h.api[E]=P});return;default:X("T009",F);return}}}),u.pop(),!h.script||h.script.trim().length===0)return;const R=new jo(h.script);try{R.parseStatements(),h.scriptCollected=Ga("Main",h.script,i,N=>N)}catch(N){R.errors&&R.errors.length>0?h.scriptError=R.errors:h.scriptError=N}const T=((I=h.scriptCollected)==null?void 0:I.moduleErrors)??{};Object.keys(T).length>0&&(h.scriptError=T)}function b(x,h){const{namespace:v,startSegment:f,name:A,value:H,unsegmentedName:R}=U(h);if(v==="xmlns")return xr(u,x,R,H);if(!ze(x)){if(f&&f!=="method"&&f!=="var"){X("T021");return}if(A==="name"&&!f)return;!f&&A&&X("T021",A);return}switch(A){case"id":x.uid=H;return;case"testId":x.testId=H;return;case"when":x.when=H;return;default:if(f==="var")x.vars??(x.vars={}),x.vars[A]=H;else if(f==="method")x.api??(x.api={}),x.api[A]=H;else if(f==="event")x.events??(x.events={}),x.events[A]=H;else if(dr.test(A)){x.events??(x.events={});const I=A[2].toLowerCase()+A.substring(3);x.events[I]=H}else x.props??(x.props={}),x.props[A]=H;return}}function D(x,h){let v=null;if(!h)return v;let f=null;return h.forEach(A=>{if(A.kind===p.TextNode){v=Mt(v,r(A));return}if(A.kind!==p.ElementNode)return;const H=Re(A,r);if(H!=="field"&&H!=="item"){X("T016");return}if(H==="field"){if(!f)f=H,v={};else if(f!==H){X("T017");return}}else if(H==="item"){if(!f)f=H,v=[];else if(f!==H){X("T017");return}}let R=S(x,A,H==="field");if(!R)return null;f==="field"?v[R.name]=R.value:v.push(R.value)}),v}function S(x,h,v=!0){const f=Re(h,r),A=Tt(h),H=A.filter(G=>G.kind===p.ElementNode&&uo.test(Re(G,r))),R=A.filter(G=>G.kind===p.ElementNode&&!uo.test(Re(G,r))),T=yt(h).map(U),I=T.filter(G=>Ya.indexOf(G.name)>=0);if(T.length>I.length)return X("T011",f),null;const N=I.find(G=>G.name==="name");if(v){if(!(N!=null&&N.value))return X("T012",f),null}else if(N)return X("T018",f),null;const F=N==null?void 0:N.value,E=I.find(G=>G.name==="value");if(E&&E.value===void 0)return X("T019",f),null;if(F&&H.length>=1){if(R.length>0)return X("T020"),null;const G=H.map(ce=>g(x,ce));return{name:F,value:G.length===1?G[0]:G}}let P=E==null?void 0:E.value;return P===null?null:typeof P=="string"?{name:F,value:P}:{name:F,value:D(x,A)}}function _(x,h,v){var H;if(!ze(h)){X("T009","loaders");return}const f=Tt(v);if(f.length===0&&(h.loaders??(h.loaders=[])),(H=v.children)==null?void 0:H.some(R=>R.kind===p.AttributeListNode)){X("T014","attributes");return}f.forEach(R=>{if(R.kind===p.TextNode){X("T010","loader");return}const T=g(x,R);if(!T.uid){X("T013");return}if(T.vars){X("T014","vars");return}if(T.loaders){X("T014","loaders");return}if(T.uses){X("T014","uses");return}h.loaders??(h.loaders=[]),h.loaders.push(T)})}function oe(x,h,v,f,A,H){const R=S(x,v);if(!R)return;H==null||H((R==null?void 0:R.name)??"");const T=R.name,I=R.value;if((R==null?void 0:R.value)!==void 0)A(T,Mt(f(T),I));else{const N=Tt(v),F=D(x,N);let E=f(T);E=Mt(E,F),A(T,E)}}function $(x,h){if(!ze(x)){X("T009","uses");return}const v=yt(h).map(U),f=v.find(A=>A.name==="value");if(!(f!=null&&f.value)||v.length!==1){X("T015","uses");return}x.uses??(x.uses=f.value.split(",").map(A=>A.trim()))}function U(x){let h=x.children[0];const v=h.children.length===3;let f;v&&(f=r(h.children[0]));let A=r(h.children[h.children.length-1]);const H=A.split(".");H.length>2&&X("T007",x,h);let R,T;H.length===2?(T=H[0],R=H[1],R.trim()===""&&X("T007",x,R)):R=A;const I=r(x.children[2]),N=I.substring(1,I.length-1);return{namespace:f,startSegment:T,name:R,value:N,unsegmentedName:A}}function he(x){for(let h of x){const v=h.children[h.children.length-1],f=M(r(v));f!==null&&(v.text=f)}}function me(x){const h=Tt(x),v=Re(x,r),A=!(v in ct)||v==="property",H=v!=="event"&&v!=="method",R=yt(x);ol(R),rl(R,r),he(R),W(h),ue(h,H);let T=!1,I=!1;for(let P=0;P<h.length;++P){const G=h[P];let ce;if(G.kind==p.Script){I=!0;continue}if(G.kind===p.ElementNode){ce=me(G),h[P]=ce;continue}let V=r(G);G.kind===p.StringLiteral?V=V.slice(1,-1):G.kind===p.CData&&(T=!0),A?T?ce=tl(V):ce=pr(V):ce={kind:p.TextNode,text:V},h[P]=ce}const N=[],F=[];let E=!1;for(const P of h){if(P.kind===p.ElementNode){if((Re(P,r)??void 0)in ct){N.push(P);continue}E=!0}F.push(P)}if(I&&E){const P=hr(F);return N.push(P),mr(x,N)}return x}function de(x){for(let h=0;h<x.length;++h)if(x[h].kind===p.StringLiteral||x[h].kind===p.TextNode){const v=/[\f\n\r\t\v\u0020\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/g;x[h].text=r(x[h]).replace(v," ")}}function ne(x){for(let h=0;h<x.length;++h)x[h].kind===p.CData&&(x[h].text=r(x[h]).slice(Xa,-Qa))}function W(x){for(let h of x)if(h.kind===p.StringLiteral||h.kind===p.TextNode){const v=M(r(h));v!==null&&(h.text=v)}}function M(x){let h="",v=0;for(let f=0;f<x.length;++f)if(x.charCodeAt(f)===m.ampersand)switch(x.charCodeAt(f+1)){case m.a:switch(x.charCodeAt(f+2)){case m.m:x.charCodeAt(f+3)===m.p&&x.charCodeAt(f+4)===m.semicolon&&(h=h+x.substring(v,f)+"&",f+=4,v=f+1);break;case m.p:x.charCodeAt(f+3)===m.o&&x.charCodeAt(f+4)===m.s&&x.charCodeAt(f+5)===m.semicolon&&(h=h+x.substring(v,f)+"'",f+=5,v=f+1);break}break;case m.g:x.charCodeAt(f+2)===m.t&&x.charCodeAt(f+3)===m.semicolon&&(h=h+x.substring(v,f)+">",f+=3,v=f+1);break;case m.l:x.charCodeAt(f+2)===m.t&&x.charCodeAt(f+3)===m.semicolon&&(h=h+x.substring(v,f)+"<",f+=3,v=f+1);break;case m.q:x.charCodeAt(f+2)===m.u&&x.charCodeAt(f+3)===m.o&&x.charCodeAt(f+4)===m.t&&x.charCodeAt(f+5)===m.semicolon&&(h=h+x.substring(v,f)+'"',f+=5,v=f+1);break;case m.n:x.charCodeAt(f+2)===m.b&&x.charCodeAt(f+3)===m.s&&x.charCodeAt(f+4)===m.p&&x.charCodeAt(f+5)===m.semicolon&&(h=h+x.substring(v,f)+" ",f+=5,v=f+1);break}return v===0?null:(h+=x.substring(v),h)}function ue(x,h){h&&de(x),ne(x);for(let v=x.length-1;v>0;--v){const f=x[v-1],A=x[v];f.kind===p.StringLiteral&&A.kind===p.CData?(x[v-1]={kind:p.CData,text:r(f).slice(1,-1)+r(A)},x.pop()):f.kind===p.CData&&A.kind===p.StringLiteral?(x[v-1]={kind:p.CData,text:r(f)+r(A).slice(1,-1)},x.pop()):f.kind===p.CData&&A.kind===p.TextNode?(x[v-1]={kind:p.CData,text:r(f)+r(A)},x.pop()):f.kind===p.CData&&A.kind===p.CData?(x[v-1]={kind:p.CData,text:r(f)+r(A)},x.pop()):f.kind===p.TextNode&&A.kind===p.TextNode?(r(f).endsWith(" ")&&r(A).startsWith(" ")&&(f.text=r(f).trimEnd()),x[v-1]={kind:p.TextNode,text:r(f)+r(A)},x.pop()):f.kind===p.TextNode&&A.kind===p.CData&&(x[v-1]={kind:p.CData,text:r(f)+r(A)},x.pop())}}}function tl(e){return{kind:p.ElementNode,children:[{kind:p.OpenNodeStart},{kind:p.TagNameNode,children:[{kind:p.Identifier,text:"TextNodeCData"}]},{kind:p.AttributeListNode,children:[{kind:p.AttributeNode,children:[{kind:p.AttributeKeyNode,children:[{kind:p.Identifier,text:"value"}]},{kind:p.Equal},{kind:p.Identifier,text:`"${e}"`}]}]},{kind:p.NodeClose}]}}function pr(e){return{kind:p.ElementNode,children:[{kind:p.OpenNodeStart},{kind:p.TagNameNode,children:[{kind:p.Identifier,text:"TextNode"}]},{kind:p.AttributeListNode,children:[{kind:p.AttributeNode,children:[{kind:p.AttributeKeyNode,children:[{kind:p.Identifier,text:"value"}]},{kind:p.Equal},{kind:p.Identifier,text:`"${e}"`}]}]},{kind:p.NodeClose}]}}function X(e,...t){let o=Va[e]??"Unknown error";throw t&&t.forEach((r,s)=>o=i(o,`{${s}}`,r.toString())),new so(o,e);function i(r,s,a){do r=r.replace(s,a);while(r.includes(s));return r}}function ze(e){return e.type}function Mt(e,t){return e?Array.isArray(e)?typeof e=="string"?[e,t]:(e.push(t),e):[e,t]:t}function hr(e){const t={kind:p.TagNameNode,children:[{kind:p.Identifier,text:"Fragment"}]};return{kind:p.ElementNode,start:e[0].start,pos:e[0].pos,end:e[e.length-1].end,children:[{kind:p.OpenNodeStart},t,{kind:p.NodeEnd},{kind:p.ContentListNode,children:e},{kind:p.CloseNodeStart},t,{kind:p.NodeEnd}]}}function yt(e){var t,o;return((o=(t=e.children)==null?void 0:t.find(i=>i.kind===p.AttributeListNode))==null?void 0:o.children)??[]}function Tt(e){var t,o;return((o=(t=e.children)==null?void 0:t.find(i=>i.kind===p.ContentListNode))==null?void 0:o.children)??[]}function mr(e,t){var i;const o=(i=e.children)==null?void 0:i.findIndex(r=>r.kind===p.ContentListNode);return o===void 0||o===-1?e:{...e,children:[...e.children.slice(0,o),{...e.children[o],children:t},...e.children.slice(o)]}}function ol(e){var t;for(let o of e)if(((t=o.children)==null?void 0:t.length)===1){const i={kind:p.Equal},r={kind:p.StringLiteral,text:'"true"'};o.children.push(i,r)}}function rl(e,t){var o,i,r;for(let s of e){const a=(o=s.children)==null?void 0:o[2];((r=(i=s.children)==null?void 0:i[2])==null?void 0:r.kind)===p.Identifier&&(a.text='"'+t(a)+'"')}}function xr(e,t,o,i){let r=i.split(":");if(r.length>2)return X("T028",i,"Namespace cannot contain multiple ':' (colon).");let s=i;if(r.length===2){if(r[0]!=po)return X("T029",i,po);s=r[1]}if(s.includes("#"))return X("T028",s,"Namespace cannot contain character '#'.");switch(s){case po:s=o;break;case Za:s=Ja;break;case ja:s=Ka;break}const a=e[e.length-1];if(a.has(o))return X("T025",o);a.set(o,s),t.namespaces??(t.namespaces={}),t.namespaces[o]=s}function nl(e,t){e.children.length!==2&&X("T001");const o=e.children[0];return o.kind!==p.ElementNode&&X("T001"),o}function Re(e,t){const o=e.children.find(r=>r.kind===p.TagNameNode).children;return t(o.at(-1))}function fr(e,t,o){const i=e.children.find(c=>c.kind===p.TagNameNode).children,r=t(i.at(-1));if(i.length===1)return r;const s=t(i[0]);o.length===0&&X("T026");let a;for(let c=o.length-1;c>=0&&(a=o[c].get(s),a===void 0);--c);return a===void 0&&X("T027",s),a+"."+r}function il(e,t=0,o){const{parse:i,getText:r}=qa(e),{node:s,errors:a}=i();if(a.length>0){const c=[];for(let g=0;g<e.length;++g)e[g]===`
9
+ `&&c.push(g);const u=al(a,c),w=gr(s,r);return{component:null,errors:u,erroneousCompoundComponentName:w}}try{return{component:el(s,r,t,o),errors:[]}}catch(c){const u=gr(s,r),w={message:c.message,col:0,line:0,code:Je.expEq,category:bt.Error,pos:0,end:0};return{component:null,erroneousCompoundComponentName:u,errors:[w]}}}function al(e,t){if(t.length===0){for(let o of e)o.line=1,o.col=o.pos+1;return e}for(let o of e){let i=0;for(;i<t.length;++i){const s=t[i];if(o.pos<s){o.line=i+1,o.col=o.pos-(t[i-1]??0)+1;break}}const r=t[t.length-1];o.pos>=r&&(o.line=t.length+1,o.col=o.pos-r+0)}return e}function gr(e,t){var u,w,g,d,C,b;const o=(u=e==null?void 0:e.children)==null?void 0:u[0],i=(g=(w=o==null?void 0:o.children)==null?void 0:w.find(D=>D.kind===p.TagNameNode))==null?void 0:g.children,r=i==null?void 0:i[i.length-1];if(r===void 0||t(r)!=="Component")return;const s=(C=(d=o.children)==null?void 0:d.find(D=>D.kind===p.AttributeListNode))==null?void 0:C.children,a=(b=s==null?void 0:s.find(D=>D.kind===p.AttributeNode&&t(D==null?void 0:D.children[0])==="name"))==null?void 0:b.children,c=a==null?void 0:a[a.length-1];if(c!==void 0&&c.kind===p.StringLiteral){const D=t(c);return D.substring(1,D.length-1)}}function ut(e,t){const o=il(t).component;if(!o)throw new Error(`Failed to parse ${e} component definition during build.`);return o}const Ht="TableHeader",vr=y({status:"experimental",description:`The \`${Ht}\` component can be used within a \`Table\` to define a particular table column's visual properties and data bindings.`,props:{title:l("The title of the table header.")},defaultThemeVars:{[`padding-vertical-${Ht}`]:"$space-4",[`padding-horizontal-${Ht}`]:"$space-5"}});ut(Ht,`
10
10
  <Component name="TableHeader">
11
11
  <VStack
12
12
  verticalAlignment="center"
@@ -15,7 +15,7 @@
15
15
  <Text variant="strong" value="{$props.title}"/>
16
16
  </VStack>
17
17
  </Component>
18
- `);const al={themeVars:`'{"padding-vertical-TableOfContentsItem": "var(--xmlui-padding-vertical-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem": "var(--xmlui-padding-horizontal-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem-level-1": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-1)", "padding-horizontal-TableOfContentsItem-level-2": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-2)", "padding-horizontal-TableOfContentsItem-level-3": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-3)", "padding-horizontal-TableOfContentsItem-level-4": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-4)", "padding-horizontal-TableOfContentsItem-level-5": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-5)", "padding-horizontal-TableOfContentsItem-level-6": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-6)", "color-bg-TableOfContents": "var(--xmlui-color-bg-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-radius-TableOfContents": "var(--xmlui-border-radius-TableOfContents)", "color-border-TableOfContents": "var(--xmlui-color-border-TableOfContents)", "thickness-border-TableOfContents": "var(--xmlui-thickness-border-TableOfContents)", "style-border-TableOfContents": "var(--xmlui-style-border-TableOfContents)", "margin-top-TableOfContents": "var(--xmlui-margin-top-TableOfContents)", "margin-bottom-TableOfContents": "var(--xmlui-margin-bottom-TableOfContents)", "padding-vertical-TableOfContents": "var(--xmlui-padding-vertical-TableOfContents)", "padding-horizontal-TableOfContents": "var(--xmlui-padding-horizontal-TableOfContents)", "border-width-TableOfContentsItem": "var(--xmlui-border-width-TableOfContentsItem)", "border-style-TableOfContentsItem": "var(--xmlui-border-style-TableOfContentsItem)", "border-color-TableOfContentsItem": "var(--xmlui-border-color-TableOfContentsItem)", "color-TableOfContentsItem": "var(--xmlui-color-TableOfContentsItem)", "font-size-TableOfContentsItem": "var(--xmlui-font-size-TableOfContentsItem)", "font-weight-TableOfContentsItem": "var(--xmlui-font-weight-TableOfContentsItem)", "font-family-TableOfContentsItem": "var(--xmlui-font-family-TableOfContentsItem)", "transform-TableOfContentsItem": "var(--xmlui-transform-TableOfContentsItem)", "align-vertical-TableOfContentsItem": "var(--xmlui-align-vertical-TableOfContentsItem)", "letter-spacing-TableOfContentsItem": "var(--xmlui-letter-spacing-TableOfContentsItem)", "border-color-TableOfContentsItem--active": "var(--xmlui-border-color-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "font-weight-TableOfContentsItem--active": "var(--xmlui-font-weight-TableOfContentsItem--active)"}'`,nav:"_nav_1soaw_13",list:"_list_1soaw_35",listItem:"_listItem_1soaw_40",link:"_link_1soaw_44",head_1:"_head_1_1soaw_56",head_2:"_head_2_1soaw_59",head_3:"_head_3_1soaw_62",head_4:"_head_4_1soaw_65",head_5:"_head_5_1soaw_68",head_6:"_head_6_1soaw_71",active:"_active_1soaw_74"},R="TableOfContents",ll=k({status:"experimental",description:`The \`${R}\` component collects headings and bookmarks within the current page and displays them in a tree representing their hierarchy. When you select an item in this tree, the component navigates the page to the selected position.`,props:{smoothScrolling:a("This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.")},themeVars:N(al.themeVars),defaultThemeVars:{[`width-${R}`]:"auto",[`height-${R}`]:"auto",[`font-size-${R}Item`]:"$font-size-smaller",[`font-weight-${R}Item`]:"$font-weight-normal",[`font-family-${R}Item`]:"$font-family",[`border-radius-${R}Item`]:"0",[`border-width-${R}Item`]:"$space-0_5",[`border-style-${R}Item`]:"solid",[`border-radius-${R}Item--active`]:"0",[`border-width-${R}Item--active`]:"$space-0_5",[`border-style-${R}Item--active`]:"solid",[`font-weight-${R}Item--active`]:"$font-weight-bold",[`color-bg-${R}`]:"transparent",[`padding-horizontal-${R}`]:"$space-8",[`padding-vertical-${R}`]:"$space-4",[`padding-horizontal-${R}Item`]:"$space-2",[`padding-vertical-${R}Item`]:"$space-2",[`padding-horizontal-${R}Item-level-1`]:"unset",[`padding-horizontal-${R}Item-level-2`]:"unset",[`padding-horizontal-${R}Item-level-3`]:"unset",[`padding-horizontal-${R}Item-level-4`]:"unset",[`padding-horizontal-${R}Item-level-5`]:"unset",[`padding-horizontal-${R}Item-level-6`]:"unset",[`margin-top-${R}`]:"0",[`margin-bottom-${R}`]:"0",[`border-radius-${R}`]:"0",[`border-width-${R}`]:"0",[`border-color-${R}`]:"transparent",[`border-style-${R}`]:"solid",[`transform-${R}Item`]:"none",[`align-vertical-${R}Item`]:"baseline",[`letter-spacing-${R}Item`]:"0",light:{[`color-${R}Item`]:"$color-text-primary",[`border-color-${R}Item`]:"$color-border",[`border-color-${R}Item--active`]:"$color-primary-500",[`color-${R}Item--active`]:"$color-primary-500"},dark:{[`color-${R}Item`]:"$color-text-primary",[`border-color-${R}Item`]:"$color-border",[`border-color-${R}Item--active`]:"$color-primary-500",[`color-${R}Item--active`]:"$color-text-secondary"}}}),sl={themeVars:`'{"color-bg-Tabs": "var(--xmlui-color-bg-Tabs)", "color-border-Tabs": "var(--xmlui-color-border-Tabs)", "thickness-border-Tabs": "var(--xmlui-thickness-border-Tabs)", "color-border-active-Tabs": "var(--xmlui-color-border-active-Tabs)", "color-bg-trigger-Tabs": "var(--xmlui-color-bg-trigger-Tabs)", "color-text-trigger-Tabs": "var(--xmlui-color-text-trigger-Tabs)", "color-bg-trigger-Tabs--hover": "var(--xmlui-color-bg-trigger-Tabs--hover)", "color-bg-list-Tabs": "var(--xmlui-color-bg-list-Tabs)"}'`,tabs:"_tabs_1p09m_13",filler:"_filler_1p09m_27",tabTrigger:"_tabTrigger_1p09m_41",tabsList:"_tabsList_1p09m_81",tabsContent:"_tabsContent_1p09m_101"},_e="Tabs",cl=k({status:"experimental",description:`The \`${_e}\` component provides a tabbed layout where each tab has a clickable label and content.`,props:{activeTab:a("This property indicates the index of the active tab. The indexing starts from 0, representing the starting (leftmost) tab."),orientation:a("This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top."),tabTemplate:te("This property declares the template for the clickable tab area.")},apis:{next:a("This method selects the next tab.")},themeVars:N(sl.themeVars),defaultThemeVars:{[`color-bg-${_e}`]:"$color-bg-primary",[`style-border-${_e}`]:"solid",[`color-border-${_e}`]:"$color-border",[`color-border-active-${_e}`]:"$color-primary",[`thickness-border-${_e}`]:"2px",[`color-bg-trigger-${_e}`]:"$color-bg-primary",light:{[`color-bg-trigger-${_e}--hover`]:"$color-primary-50",[`color-bg-list-${_e}`]:"$color-primary-50",[`color-text-trigge-r${_e}`]:"$color-primary-100"},dark:{[`color-bg-trigger-${_e}--hover`]:"$color-primary-800",[`color-bg-list-${_e}`]:"$color-primary-800",[`color-text-trigge-r${_e}`]:"$color-primary-100"}}}),B="Text",ul=k({description:`The \`${B}\` component displays textual information in a number of optional styles and variants.`,props:{value:a(`The text to be displayed. This value can also be set via nesting the text into the \`${B}\` component.`),variant:a("Optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color and other parameters.",Wr),maxLines:a("This property determines the maximum number of lines the component can wrap to. If there is no space to display all the contents, the component displays up to as many lines as specified in this property."),preserveLinebreaks:a("This property indicates if linebreaks should be preserved when displaying text."),ellipses:a("This property indicates whether ellipses should be displayed when the text is cropped (`true`) or not (`false`).")},themeVars:N(xt.themeVars),defaultThemeVars:{[`border-radius-${B}`]:"$radius",[`style-border-${B}`]:"solid",[`font-size-${B}`]:"$font-size-small",[`thickness-border-${B}`]:"$space-0",[`font-weight-${B}-abbr`]:"$font-weight-bold",[`transform-${B}-abbr`]:"uppercase",[`font-size-${B}-secondary`]:"$font-size-small",[`font-style-${B}-cite`]:"italic",[`color-${B}`]:"$color-text-primary",[`font-family-${B}`]:"$font-family",[`font-weight-${B}`]:"$font-weight-normal",[`font-family-${B}-code`]:"$font-family-monospace",[`font-size-${B}-code`]:"$font-size-small",[`thickness-border-${B}-code`]:"1px",[`padding-horizontal-${B}-code`]:"$space-1",[`line-decoration-${B}-deleted`]:"line-through",[`line-decoration-${B}-inserted`]:"underline",[`font-family-${B}-keyboard`]:"$font-family-monospace",[`font-size-${B}-keyboard`]:"$font-size-small",[`font-weight-${B}-keyboard`]:"$font-weight-bold",[`thickness-border-${B}-keyboard`]:"1px",[`padding-horizontal-${B}-keyboard`]:"$space-1",[`font-family-${B}-sample`]:"$font-family-monospace",[`font-size-${B}-sample`]:"$font-size-small",[`font-size-${B}-sup`]:"$font-size-smaller",[`align-vertical-${B}-sup`]:"super",[`font-size-${B}-sub`]:"$font-size-smaller",[`align-vertical-${B}-sub`]:"sub",[`font-style-${B}-var`]:"italic",[`font-family-${B}-mono`]:"$font-family-monospace",[`font-size-${B}-title`]:"$font-size-large",[`font-size-${B}-subtitle`]:"$font-size-medium",[`font-size-${B}-small`]:"$font-size-small",[`line-height-${B}-small`]:"$line-height-tight",[`letter-spacing-${B}-caption`]:"0.05rem",[`font-size-${B}-placeholder`]:"$font-size-small",[`font-family-${B}-codefence`]:"$font-family-monospace",[`padding-horizontal-${B}-codefence`]:"$space-3",[`padding-vertical-${B}-codefence`]:"$space-2",[`padding-vertical-${B}-paragraph`]:"$space-1",[`font-size-${B}-subheading`]:"$font-size-H6",[`font-weight-${B}-subheading`]:"$font-weight-bold",[`letter-spacing-${B}-subheading`]:"0.04em",[`transform-${B}-subheading`]:"uppercase",[`margin-top-${B}-tableheading`]:"$space-1",[`margin-bottom-${B}-tableheading`]:"$space-4",[`padding-horizontal-${B}-tableheading`]:"$space-1",[`font-weight-${B}-tableheading`]:"$font-weight-bold",light:{[`color-bg-${B}-code`]:"$color-surface-100",[`color-border-${B}-code`]:"$color-surface-200",[`color-bg-${B}-keyboard`]:"$color-surface-200",[`color-border-${B}-keyboard`]:"$color-surface-300",[`color-bg-${B}-marked`]:"yellow",[`color-${B}-placeholder`]:"$color-surface-500",[`color-bg-${B}-codefence`]:"$color-primary-100",[`color-${B}-codefence`]:"$color-surface-900",[`color-${B}-subheading`]:"$color-text-secondary",[`color-${B}-secondary`]:"$color-text-secondary"},dark:{[`color-bg-${B}-code`]:"$color-surface-800",[`color-border-${B}-code`]:"$color-surface-700",[`color-bg-${B}-keyboard`]:"$color-surface-800",[`color-border-${B}-keyboard`]:"$color-surface-700",[`color-bg-${B}-marked`]:"orange",[`color-${B}-placeholder`]:"$color-surface-500",[`color-bg-${B}-codefence`]:"$color-primary-800",[`color-${B}-codefence`]:"$color-surface-200",[`color-${B}-subheading`]:"$color-text-secondary",[`color-${B}-secondary`]:"$color-text-secondary"}}}),Oe="TextArea",dl=[{value:"undefined",description:"No resizing"},{value:"horizontal",description:"Can only resize horizontally"},{value:"vertical",description:"Can only resize vertically"},{value:"both",description:"Can resize in both dimensions"}],pl=k({status:"experimental",description:`\`${Oe}\` is a component that provides a multiline text input area.`,props:{enterSubmits:a("This optional boolean property indicates whether pressing the `Enter` key on the keyboard prompts the parent `Form` component to submit. The default value is is `true`."),escResets:a(`This boolean property indicates whether the ${Oe} contents should be reset when pressing the ESC key.`),maxRows:a(`This optional number property maximizes the number of lines the \`${Oe}\` can grow to.`),minRows:a(`This optional number property indicates the minimum number of lines the \`${Oe}\` has and specifies its size accordingly.`),rows:a("Specifies the number of lines or rows (and thus, its size) the component has."),autoSize:a(`If set to \`true\`, this boolean property enables the \`${Oe}\` to resize automatically based on the number of lines inside it.`,null,"boolean",!1),placeholder:nt(),initialValue:ze(),label:xe(),labelPosition:Re("top"),labelWidth:Qe(Oe),labelBreak:Xe(Oe),maxLength:_t(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),resize:a("This optional property specifies in which dimensions can the `TextArea` be resized by the user.",dl)},events:{gotFocus:Ae(Oe),lostFocus:Ne(Oe),didChange:Te(Oe)},apis:{focus:Je(Oe),value:a("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ze()},themeVars:N(mi.themeVars)}),hl={themeVars:`'{"radius-Accordion": "var(--xmlui-radius-Accordion)", "color-border-Accordion": "var(--xmlui-color-border-Accordion)", "thickness-border-Accordion": "var(--xmlui-thickness-border-Accordion)", "style-border-Accordion": "var(--xmlui-style-border-Accordion)", "align-vertical-header-Accordion": "var(--xmlui-align-vertical-header-Accordion)", "font-size-header-Accordion": "var(--xmlui-font-size-header-Accordion)", "font-weight-header-Accordion": "var(--xmlui-font-weight-header-Accordion)", "font-style-header-Accordion": "var(--xmlui-font-style-header-Accordion)", "padding-vertical-header-Accordion": "var(--xmlui-padding-vertical-header-Accordion)", "padding-horizontal-header-Accordion": "var(--xmlui-padding-horizontal-header-Accordion)", "color-bg-header-Accordion": "var(--xmlui-color-bg-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "color-bg-header-Accordion-hover": "var(--xmlui-color-bg-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "color-bg-content-Accordion": "var(--xmlui-color-bg-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_lik78_13",item:"_item_lik78_24",header:"_header_lik78_43",trigger:"_trigger_lik78_48",triggerStart:"_triggerStart_lik78_66",contentWrapper:"_contentWrapper_lik78_70",slideDown:"_slideDown_lik78_1",slideUp:"_slideUp_lik78_1",content:"_content_lik78_70",chevron:"_chevron_lik78_86"},J="Accordion",ml=k({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${J}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:a("This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",Mr,null,"end"),collapsedIcon:a("This property is the name of the icon that is displayed when the accordion is collapsed."),expandedIcon:a("This property is the name of the icon that is displayed when the accordion is expanded."),hideIcon:a("This property indicates that the trigger icon is not displayed (`true`).",null,"boolean",!1),rotateExpanded:a("This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).")},events:{displayDidChange:Te(J)},apis:{expanded:Kr(J),expand:en(J),collapse:tn(J),toggle:a(`This method toggles the state of the ${J} between expanded and collapsed.`),focus:Je(J)},themeVars:N(hl.themeVars),defaultThemeVars:{[`padding-horizontal-header-${J}`]:"$space-3",[`padding-vertical-header-${J}`]:"$space-3",[`align-vertical-header-${J}`]:"center",[`font-size-header-${J}`]:"$font-size-normal",[`font-weight-header-${J}`]:"$font-weight-normal",[`font-family-header-${J}`]:"$font-family",[`radius-${J}`]:"$radius",[`thickness-border-${J}`]:"0",[`style-border-${J}`]:"solid",[`width-icon-${J}`]:"",[`height-icon-${J}`]:"",light:{[`color-bg-header-${J}`]:"$color-primary-500",[`color-bg-header-${J}-hover`]:"$color-primary-400",[`color-header-${J}`]:"$color-surface-50",[`color-content-${J}`]:"$color-text-primary",[`color-bg-content-${J}`]:"transparent",[`color-border-${J}`]:"transparent",[`color-icon-${J}`]:"$color-surface-50"},dark:{[`color-bg-header-${J}`]:"$color-primary-500",[`color-bg-header-${J}-hover`]:"$color-primary-600",[`color-header-${J}`]:"$color-surface-50",[`color-content-${J}`]:"$color-text-primary",[`color-bg-content-${J}`]:"transparent",[`color-border-${J}`]:"transparent",[`color-icon-${J}`]:"$color-surface-50"}}}),xl={themeVars:'"[]"'},Rt="Alert",fl=k({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${Rt}\` component is a panel used to display important notifications or feedback to users. It helps convey different statuses or levels of urgency, such as success, warning, error, and others.`,props:{statusColor:a(`The value of this optional property sets the string to provide a color scheme for the ${Rt}.`,Or,"string","primary"),dismissable:a(`This property's \`true\` value indicates if this alert is dismissable by the user. When the user closes the ${Rt}, it gets hidden.`),autoDismissInMs:a("Timeout for the alert to be dismissed"),showIcon:a("Indicates if the alert should display an icon"),icon:a("Icon to be displayed in the alert")},events:{},apis:{dismiss:a(`This method dismisses the ${Rt}. It triggers the \`didDismiss\` event with the argument set to \`false\`.`)},themeVars:N(xl.themeVars),defaultThemeVars:{light:{},dark:{}}}),br="TabItem",gl=k({description:`\`${br}\` is a non-visual component describing a tab. Tabs component may use nested ${br} instances from which the user can select.`,props:{label:xe()}}),vl=k({description:"The `Fragment` component encloses multiple child components into a single root component, so it can be used where only a single component definition is allowed.",opaque:!0}),bl=k({status:"in progress",description:"The `Tree` component is a virtualized tree component that displays hierarchical data.",props:{data:{description:"The data source of the tree.",required:!0},selectedUid:{description:"The ID (optional) of the selected tree row."},itemTemplate:te("The template for each item in the tree.")}}),qt="APICall",yl=k({description:`\`${qt}\` is used to mutate (create, update or delete) some data on the backend. It is similar in nature to the \`DataSource\` component which retrieves data from the backend.`,props:{method:a("The method of data manipulation can be done via setting this property. The following HTTP methods are available: `post`, `put`, and `delete`."),url:a("Use this property to set the URL to send data to."),rawBody:a("This property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:a("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:a("This property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."),headers:a("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),confirmTitle:a(`This optional string sets the title in the confirmation dialog that is displayed before the \`${qt}\` is executed.`),confirmMessage:a(`This optional string sets the message in the confirmation dialog that is displayed before the \`${qt}\` is executed.`),confirmButtonLabel:a(`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${qt}\` is executed.`),inProgressNotificationMessage:a("This property customizes the message that is displayed in a toast while the API operation is in progress."),errorNotificationMessage:a("This property defines the message to display automatically when the operation results in an error."),completedNotificationMessage:a("This property defines the message to display automatically when the operation has been completed."),payloadType:rt(),invalidates:rt(),updates:rt(),optimisticValue:rt(),getOptimisticValue:rt()},events:{beforeRequest:a("This event fires before the request is sent. Returning an explicit boolean'false' value will prevent the request from being sent."),success:a("This event fires when a request results in a success."),error:a("This event fires when a request results in an error."),progress:rt()},contextVars:{$param:a("This value represents the first parameters passed to the `execute()` method to display the modal dialog."),$params:a("This value represents the array of parameters passed to the `execute()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},apis:{execute:a("This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values.")}}),Tl=k({status:"deprecated",description:"The `BarChart` component represents a bar chart.",props:{data:a("This property is used to provide the component with data to display. The data itself needs to be an array of objects."),keys:a("This property specifies what the label texts are for each bar."),groupMode:a("This property determines how the bars are layed out. The `grouped` variant lays out the bars next to each other on the primary axis. The `stacked` variant stacks the bars on top of each other."),layout:a("This property determines the orientation of the bar chart. The `vertical` variant specifies the horizontal axis as the primary and lays out the bars from left to right. The `horizontal` variant specifies the vertical axis as the primary and has the bars spread from top to bottom."),indexBy:a("Determines which attribute groups the bars together.")},themeVars:N(rr.themeVars),defaultThemeVars:{"scheme-BarChart":"pastel1","color-text-BarChart":"$color-text-secondary","color-ticks-BarChart":"$color-text-primary","color-bg-tooltip-BarChart":"$color-bg-primary","color-text-tooltip-BarChart":"$color-text-primary","color-axis-BarChart":"$color-text-primary",light:{"scheme-BarChart":"set3"},dark:{"scheme-BarChart":"dark2"}}}),kl=k({status:"deprecated",description:"(**OBSOLETE**) A chart component",props:{type:a("(**OBSOLETE**)"),labels:a("(**OBSOLETE**)"),series:a("(**OBSOLETE**)"),stacked:a("(**OBSOLETE**)"),showAxisLabels:a("(**OBSOLETE**)"),tooltipEnabled:a("(**OBSOLETE**)"),showLegend:a("(**OBSOLETE**)")}}),ho="DataSource",wl=k({status:"stable",description:`The \`${ho}\` component manages fetching data from a web API endpoint. This component automatically manages the complexity of the fetch operation and caching. To manipulate data on the backend, use the [\`APICall\`](./APICall.mdx) component.`,props:{method:a("By default, data fetching uses the `get` operation method. You can change it by setting this property to other supported methods, such as `post`, `put`, `delete`, and others."),url:a("This property represents the URL to fetch the data."),rawBody:a("This property sets the request body to the value provided here without any conversion. Use the `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:a("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:a("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),headers:a("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),pollIntervalInSeconds:a("By setting this property, you can define periodic data fetching. The `DataSource` component will refresh its data according to the time specified as seconds. When the data changes during the refresh, it will trigger the update mechanism of XMLUI and re-render the UI accordingly."),inProgressNotificationMessage:a("This property defines the message to display while the fetch operation progresses."),completedNotificationMessage:a("This property defines the message to display automatically when the data fetch operation has been completed."),errorNotificationMessage:a("This property defines the message to display automatically when the data fetch operation results in an error."),resultSelector:a("The response of a data-fetching query may include additional information that the UI cannot (or does not intend) to process. With this property, you can define a selector that extracts the data from the response body."),transformResult:a("This property accepts a transformation function that receives the data coming from the backend after it has been through the evaluation of the optional `resultSelector` property. The function gets the entire result set and can transform it. The `DataSource` component `value` property will return the data from this function."),prevPageSelector:a(`When using \`${ho}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`),nextPageSelector:a(`When using \`${ho}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`)},events:{loaded:a("The component triggers this event when the fetch operation has been completed and the data is loaded. The argument of the event is the data loaded."),error:a("This event fires when a request results in an error.")}}),mo="FormSection",yr=k({status:"experimental",description:`The \`${mo}\` is a component that groups cohesive elements together within a \`Form\`. This grouping is indicated visually: the child components of the \`${mo}\` are placed in a [\`FlowLayout\`](./FlowLayout.mdx) component.`});ht(mo,`
18
+ `);const ll={themeVars:`'{"padding-vertical-TableOfContentsItem": "var(--xmlui-padding-vertical-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem": "var(--xmlui-padding-horizontal-TableOfContentsItem)", "padding-horizontal-TableOfContentsItem-level-1": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-1)", "padding-horizontal-TableOfContentsItem-level-2": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-2)", "padding-horizontal-TableOfContentsItem-level-3": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-3)", "padding-horizontal-TableOfContentsItem-level-4": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-4)", "padding-horizontal-TableOfContentsItem-level-5": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-5)", "padding-horizontal-TableOfContentsItem-level-6": "var(--xmlui-padding-horizontal-TableOfContentsItem-level-6)", "color-bg-TableOfContents": "var(--xmlui-color-bg-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-radius-TableOfContents": "var(--xmlui-border-radius-TableOfContents)", "color-border-TableOfContents": "var(--xmlui-color-border-TableOfContents)", "thickness-border-TableOfContents": "var(--xmlui-thickness-border-TableOfContents)", "style-border-TableOfContents": "var(--xmlui-style-border-TableOfContents)", "margin-top-TableOfContents": "var(--xmlui-margin-top-TableOfContents)", "margin-bottom-TableOfContents": "var(--xmlui-margin-bottom-TableOfContents)", "padding-vertical-TableOfContents": "var(--xmlui-padding-vertical-TableOfContents)", "padding-horizontal-TableOfContents": "var(--xmlui-padding-horizontal-TableOfContents)", "border-width-TableOfContentsItem": "var(--xmlui-border-width-TableOfContentsItem)", "border-style-TableOfContentsItem": "var(--xmlui-border-style-TableOfContentsItem)", "border-color-TableOfContentsItem": "var(--xmlui-border-color-TableOfContentsItem)", "color-TableOfContentsItem": "var(--xmlui-color-TableOfContentsItem)", "font-size-TableOfContentsItem": "var(--xmlui-font-size-TableOfContentsItem)", "font-weight-TableOfContentsItem": "var(--xmlui-font-weight-TableOfContentsItem)", "font-family-TableOfContentsItem": "var(--xmlui-font-family-TableOfContentsItem)", "transform-TableOfContentsItem": "var(--xmlui-transform-TableOfContentsItem)", "align-vertical-TableOfContentsItem": "var(--xmlui-align-vertical-TableOfContentsItem)", "letter-spacing-TableOfContentsItem": "var(--xmlui-letter-spacing-TableOfContentsItem)", "border-color-TableOfContentsItem--active": "var(--xmlui-border-color-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "font-weight-TableOfContentsItem--active": "var(--xmlui-font-weight-TableOfContentsItem--active)"}'`,nav:"_nav_1soaw_13",list:"_list_1soaw_35",listItem:"_listItem_1soaw_40",link:"_link_1soaw_44",head_1:"_head_1_1soaw_56",head_2:"_head_2_1soaw_59",head_3:"_head_3_1soaw_62",head_4:"_head_4_1soaw_65",head_5:"_head_5_1soaw_68",head_6:"_head_6_1soaw_71",active:"_active_1soaw_74"},q="TableOfContents",sl=y({status:"experimental",description:`The \`${q}\` component collects headings and bookmarks within the current page and displays them in a tree representing their hierarchy. When you select an item in this tree, the component navigates the page to the selected position.`,props:{smoothScrolling:l("This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.")},themeVars:z(ll.themeVars),defaultThemeVars:{[`width-${q}`]:"auto",[`height-${q}`]:"auto",[`font-size-${q}Item`]:"$font-size-smaller",[`font-weight-${q}Item`]:"$font-weight-normal",[`font-family-${q}Item`]:"$font-family",[`border-radius-${q}Item`]:"0",[`border-width-${q}Item`]:"$space-0_5",[`border-style-${q}Item`]:"solid",[`border-radius-${q}Item--active`]:"0",[`border-width-${q}Item--active`]:"$space-0_5",[`border-style-${q}Item--active`]:"solid",[`font-weight-${q}Item--active`]:"$font-weight-bold",[`color-bg-${q}`]:"transparent",[`padding-horizontal-${q}`]:"$space-8",[`padding-vertical-${q}`]:"$space-4",[`padding-horizontal-${q}Item`]:"$space-2",[`padding-vertical-${q}Item`]:"$space-2",[`padding-horizontal-${q}Item-level-1`]:"unset",[`padding-horizontal-${q}Item-level-2`]:"unset",[`padding-horizontal-${q}Item-level-3`]:"unset",[`padding-horizontal-${q}Item-level-4`]:"unset",[`padding-horizontal-${q}Item-level-5`]:"unset",[`padding-horizontal-${q}Item-level-6`]:"unset",[`margin-top-${q}`]:"0",[`margin-bottom-${q}`]:"0",[`border-radius-${q}`]:"0",[`border-width-${q}`]:"0",[`border-color-${q}`]:"transparent",[`border-style-${q}`]:"solid",[`transform-${q}Item`]:"none",[`align-vertical-${q}Item`]:"baseline",[`letter-spacing-${q}Item`]:"0",light:{[`color-${q}Item`]:"$color-text-primary",[`border-color-${q}Item`]:"$color-border",[`border-color-${q}Item--active`]:"$color-primary-500",[`color-${q}Item--active`]:"$color-primary-500"},dark:{[`color-${q}Item`]:"$color-text-primary",[`border-color-${q}Item`]:"$color-border",[`border-color-${q}Item--active`]:"$color-primary-500",[`color-${q}Item--active`]:"$color-text-secondary"}}}),cl={themeVars:`'{"color-bg-Tabs": "var(--xmlui-color-bg-Tabs)", "color-border-Tabs": "var(--xmlui-color-border-Tabs)", "thickness-border-Tabs": "var(--xmlui-thickness-border-Tabs)", "color-border-active-Tabs": "var(--xmlui-color-border-active-Tabs)", "color-bg-trigger-Tabs": "var(--xmlui-color-bg-trigger-Tabs)", "color-text-trigger-Tabs": "var(--xmlui-color-text-trigger-Tabs)", "color-bg-trigger-Tabs--hover": "var(--xmlui-color-bg-trigger-Tabs--hover)", "color-bg-list-Tabs": "var(--xmlui-color-bg-list-Tabs)"}'`,tabs:"_tabs_1p09m_13",filler:"_filler_1p09m_27",tabTrigger:"_tabTrigger_1p09m_41",tabsList:"_tabsList_1p09m_81",tabsContent:"_tabsContent_1p09m_101"},ke="Tabs",ul=y({status:"experimental",description:`The \`${ke}\` component provides a tabbed layout where each tab has a clickable label and content.`,props:{activeTab:l("This property indicates the index of the active tab. The indexing starts from 0, representing the starting (leftmost) tab."),orientation:l("This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top."),tabTemplate:te("This property declares the template for the clickable tab area.")},apis:{next:l("This method selects the next tab.")},themeVars:z(cl.themeVars),defaultThemeVars:{[`color-bg-${ke}`]:"$color-bg-primary",[`style-border-${ke}`]:"solid",[`color-border-${ke}`]:"$color-border",[`color-border-active-${ke}`]:"$color-primary",[`thickness-border-${ke}`]:"2px",[`color-bg-trigger-${ke}`]:"$color-bg-primary",light:{[`color-bg-trigger-${ke}--hover`]:"$color-primary-50",[`color-bg-list-${ke}`]:"$color-primary-50",[`color-text-trigge-r${ke}`]:"$color-primary-100"},dark:{[`color-bg-trigger-${ke}--hover`]:"$color-primary-800",[`color-bg-list-${ke}`]:"$color-primary-800",[`color-text-trigge-r${ke}`]:"$color-primary-100"}}}),B="Text",dl=y({description:`The \`${B}\` component displays textual information in a number of optional styles and variants.`,props:{value:l(`The text to be displayed. This value can also be set via nesting the text into the \`${B}\` component.`),variant:l("Optional string value that provides named presets for text variants with a unique combination of font style, weight, size, color and other parameters.",Rr),maxLines:l("This property determines the maximum number of lines the component can wrap to. If there is no space to display all the contents, the component displays up to as many lines as specified in this property."),preserveLinebreaks:l("This property indicates if linebreaks should be preserved when displaying text."),ellipses:l("This property indicates whether ellipses should be displayed when the text is cropped (`true`) or not (`false`).")},themeVars:z(pt.themeVars),defaultThemeVars:{[`border-radius-${B}`]:"$radius",[`style-border-${B}`]:"solid",[`font-size-${B}`]:"$font-size-small",[`thickness-border-${B}`]:"$space-0",[`font-weight-${B}-abbr`]:"$font-weight-bold",[`transform-${B}-abbr`]:"uppercase",[`font-size-${B}-secondary`]:"$font-size-small",[`font-style-${B}-cite`]:"italic",[`color-${B}`]:"$color-text-primary",[`font-family-${B}`]:"$font-family",[`font-weight-${B}`]:"$font-weight-normal",[`font-family-${B}-code`]:"$font-family-monospace",[`font-size-${B}-code`]:"$font-size-small",[`thickness-border-${B}-code`]:"1px",[`padding-horizontal-${B}-code`]:"$space-1",[`line-decoration-${B}-deleted`]:"line-through",[`line-decoration-${B}-inserted`]:"underline",[`font-family-${B}-keyboard`]:"$font-family-monospace",[`font-size-${B}-keyboard`]:"$font-size-small",[`font-weight-${B}-keyboard`]:"$font-weight-bold",[`thickness-border-${B}-keyboard`]:"1px",[`padding-horizontal-${B}-keyboard`]:"$space-1",[`font-family-${B}-sample`]:"$font-family-monospace",[`font-size-${B}-sample`]:"$font-size-small",[`font-size-${B}-sup`]:"$font-size-smaller",[`align-vertical-${B}-sup`]:"super",[`font-size-${B}-sub`]:"$font-size-smaller",[`align-vertical-${B}-sub`]:"sub",[`font-style-${B}-var`]:"italic",[`font-family-${B}-mono`]:"$font-family-monospace",[`font-size-${B}-title`]:"$font-size-large",[`font-size-${B}-subtitle`]:"$font-size-medium",[`font-size-${B}-small`]:"$font-size-small",[`line-height-${B}-small`]:"$line-height-tight",[`letter-spacing-${B}-caption`]:"0.05rem",[`font-size-${B}-placeholder`]:"$font-size-small",[`font-family-${B}-codefence`]:"$font-family-monospace",[`padding-horizontal-${B}-codefence`]:"$space-3",[`padding-vertical-${B}-codefence`]:"$space-2",[`padding-vertical-${B}-paragraph`]:"$space-1",[`font-size-${B}-subheading`]:"$font-size-H6",[`font-weight-${B}-subheading`]:"$font-weight-bold",[`letter-spacing-${B}-subheading`]:"0.04em",[`transform-${B}-subheading`]:"uppercase",[`margin-top-${B}-tableheading`]:"$space-1",[`margin-bottom-${B}-tableheading`]:"$space-4",[`padding-horizontal-${B}-tableheading`]:"$space-1",[`font-weight-${B}-tableheading`]:"$font-weight-bold",light:{[`color-bg-${B}-code`]:"$color-surface-100",[`color-border-${B}-code`]:"$color-surface-200",[`color-bg-${B}-keyboard`]:"$color-surface-200",[`color-border-${B}-keyboard`]:"$color-surface-300",[`color-bg-${B}-marked`]:"yellow",[`color-${B}-placeholder`]:"$color-surface-500",[`color-bg-${B}-codefence`]:"$color-primary-100",[`color-${B}-codefence`]:"$color-surface-900",[`color-${B}-subheading`]:"$color-text-secondary",[`color-${B}-secondary`]:"$color-text-secondary"},dark:{[`color-bg-${B}-code`]:"$color-surface-800",[`color-border-${B}-code`]:"$color-surface-700",[`color-bg-${B}-keyboard`]:"$color-surface-800",[`color-border-${B}-keyboard`]:"$color-surface-700",[`color-bg-${B}-marked`]:"orange",[`color-${B}-placeholder`]:"$color-surface-500",[`color-bg-${B}-codefence`]:"$color-primary-800",[`color-${B}-codefence`]:"$color-surface-200",[`color-${B}-subheading`]:"$color-text-secondary",[`color-${B}-secondary`]:"$color-text-secondary"}}}),Le="TextArea",pl=[{value:"undefined",description:"No resizing"},{value:"horizontal",description:"Can only resize horizontally"},{value:"vertical",description:"Can only resize vertically"},{value:"both",description:"Can resize in both dimensions"}],hl=y({status:"experimental",description:`\`${Le}\` is a component that provides a multiline text input area.`,props:{enterSubmits:l("This optional boolean property indicates whether pressing the `Enter` key on the keyboard prompts the parent `Form` component to submit. The default value is is `true`."),escResets:l(`This boolean property indicates whether the ${Le} contents should be reset when pressing the ESC key.`),maxRows:l(`This optional number property maximizes the number of lines the \`${Le}\` can grow to.`),minRows:l(`This optional number property indicates the minimum number of lines the \`${Le}\` has and specifies its size accordingly.`),rows:l("Specifies the number of lines or rows (and thus, its size) the component has."),autoSize:l(`If set to \`true\`, this boolean property enables the \`${Le}\` to resize automatically based on the number of lines inside it.`,null,"boolean",!1),placeholder:et(),initialValue:Ee(),label:xe(),labelPosition:He("top"),labelWidth:Ue(Le),labelBreak:Ve(Le),maxLength:kt(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),resize:l("This optional property specifies in which dimensions can the `TextArea` be resized by the user.",pl)},events:{gotFocus:Be(Le),lostFocus:Se(Le),didChange:be(Le)},apis:{focus:Ye(Le),value:l("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ge()},themeVars:z(xi.themeVars)}),ml={themeVars:`'{"radius-Accordion": "var(--xmlui-radius-Accordion)", "color-border-Accordion": "var(--xmlui-color-border-Accordion)", "thickness-border-Accordion": "var(--xmlui-thickness-border-Accordion)", "style-border-Accordion": "var(--xmlui-style-border-Accordion)", "align-vertical-header-Accordion": "var(--xmlui-align-vertical-header-Accordion)", "font-size-header-Accordion": "var(--xmlui-font-size-header-Accordion)", "font-weight-header-Accordion": "var(--xmlui-font-weight-header-Accordion)", "font-style-header-Accordion": "var(--xmlui-font-style-header-Accordion)", "padding-vertical-header-Accordion": "var(--xmlui-padding-vertical-header-Accordion)", "padding-horizontal-header-Accordion": "var(--xmlui-padding-horizontal-header-Accordion)", "color-bg-header-Accordion": "var(--xmlui-color-bg-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "color-bg-header-Accordion-hover": "var(--xmlui-color-bg-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "color-bg-content-Accordion": "var(--xmlui-color-bg-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_lik78_13",item:"_item_lik78_24",header:"_header_lik78_43",trigger:"_trigger_lik78_48",triggerStart:"_triggerStart_lik78_66",contentWrapper:"_contentWrapper_lik78_70",slideDown:"_slideDown_lik78_1",slideUp:"_slideUp_lik78_1",content:"_content_lik78_70",chevron:"_chevron_lik78_86"},J="Accordion",xl=y({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${J}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:l("This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",Hr,null,"end"),collapsedIcon:l("This property is the name of the icon that is displayed when the accordion is collapsed."),expandedIcon:l("This property is the name of the icon that is displayed when the accordion is expanded."),hideIcon:l("This property indicates that the trigger icon is not displayed (`true`).",null,"boolean",!1),rotateExpanded:l("This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).")},events:{displayDidChange:be(J)},apis:{expanded:en(J),expand:tn(J),collapse:on(J),toggle:l(`This method toggles the state of the ${J} between expanded and collapsed.`),focus:Ye(J)},themeVars:z(ml.themeVars),defaultThemeVars:{[`padding-horizontal-header-${J}`]:"$space-3",[`padding-vertical-header-${J}`]:"$space-3",[`align-vertical-header-${J}`]:"center",[`font-size-header-${J}`]:"$font-size-normal",[`font-weight-header-${J}`]:"$font-weight-normal",[`font-family-header-${J}`]:"$font-family",[`radius-${J}`]:"$radius",[`thickness-border-${J}`]:"0",[`style-border-${J}`]:"solid",[`width-icon-${J}`]:"",[`height-icon-${J}`]:"",light:{[`color-bg-header-${J}`]:"$color-primary-500",[`color-bg-header-${J}-hover`]:"$color-primary-400",[`color-header-${J}`]:"$color-surface-50",[`color-content-${J}`]:"$color-text-primary",[`color-bg-content-${J}`]:"transparent",[`color-border-${J}`]:"transparent",[`color-icon-${J}`]:"$color-surface-50"},dark:{[`color-bg-header-${J}`]:"$color-primary-500",[`color-bg-header-${J}-hover`]:"$color-primary-600",[`color-header-${J}`]:"$color-surface-50",[`color-content-${J}`]:"$color-text-primary",[`color-bg-content-${J}`]:"transparent",[`color-border-${J}`]:"transparent",[`color-icon-${J}`]:"$color-surface-50"}}}),fl={themeVars:'"[]"'},Ft="Alert",gl=y({status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${Ft}\` component is a panel used to display important notifications or feedback to users. It helps convey different statuses or levels of urgency, such as success, warning, error, and others.`,props:{statusColor:l(`The value of this optional property sets the string to provide a color scheme for the ${Ft}.`,Dr,"string","primary"),dismissable:l(`This property's \`true\` value indicates if this alert is dismissable by the user. When the user closes the ${Ft}, it gets hidden.`),autoDismissInMs:l("Timeout for the alert to be dismissed"),showIcon:l("Indicates if the alert should display an icon"),icon:l("Icon to be displayed in the alert")},events:{},apis:{dismiss:l(`This method dismisses the ${Ft}. It triggers the \`didDismiss\` event with the argument set to \`false\`.`)},themeVars:z(fl.themeVars),defaultThemeVars:{light:{},dark:{}}}),br="TabItem",vl=y({description:`\`${br}\` is a non-visual component describing a tab. Tabs component may use nested ${br} instances from which the user can select.`,props:{label:xe()}}),bl=y({description:"The `Fragment` component encloses multiple child components into a single root component, so it can be used where only a single component definition is allowed.",opaque:!0}),yl=y({status:"in progress",description:"The `Tree` component is a virtualized tree component that displays hierarchical data.",props:{data:{description:"The data source of the tree.",required:!0},selectedUid:{description:"The ID (optional) of the selected tree row."},itemTemplate:te("The template for each item in the tree.")}}),Wt="APICall",Tl=y({description:`\`${Wt}\` is used to mutate (create, update or delete) some data on the backend. It is similar in nature to the \`DataSource\` component which retrieves data from the backend.`,props:{method:l("The method of data manipulation can be done via setting this property. The following HTTP methods are available: `post`, `put`, and `delete`."),url:l("Use this property to set the URL to send data to."),rawBody:l("This property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:l("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:l("This property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."),headers:l("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),confirmTitle:l(`This optional string sets the title in the confirmation dialog that is displayed before the \`${Wt}\` is executed.`),confirmMessage:l(`This optional string sets the message in the confirmation dialog that is displayed before the \`${Wt}\` is executed.`),confirmButtonLabel:l(`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${Wt}\` is executed.`),inProgressNotificationMessage:l("This property customizes the message that is displayed in a toast while the API operation is in progress."),errorNotificationMessage:l("This property defines the message to display automatically when the operation results in an error."),completedNotificationMessage:l("This property defines the message to display automatically when the operation has been completed."),payloadType:Ke(),invalidates:Ke(),updates:Ke(),optimisticValue:Ke(),getOptimisticValue:Ke()},events:{beforeRequest:l("This event fires before the request is sent. Returning an explicit boolean'false' value will prevent the request from being sent."),success:l("This event fires when a request results in a success."),error:l("This event fires when a request results in an error."),progress:Ke()},contextVars:{$param:l("This value represents the first parameters passed to the `execute()` method to display the modal dialog."),$params:l("This value represents the array of parameters passed to the `execute()` method. You can use `$params[0]` to access the first and `$params[1]` to access the second (and so on) parameters. `$param` is the same as `$params[0]`.")},apis:{execute:l("This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values.")}}),kl=y({status:"deprecated",description:"(**OBSOLETE**) A chart component",props:{type:l("(**OBSOLETE**)"),labels:l("(**OBSOLETE**)"),series:l("(**OBSOLETE**)"),stacked:l("(**OBSOLETE**)"),showAxisLabels:l("(**OBSOLETE**)"),tooltipEnabled:l("(**OBSOLETE**)"),showLegend:l("(**OBSOLETE**)")}}),ho="DataSource",wl=y({status:"stable",description:`The \`${ho}\` component manages fetching data from a web API endpoint. This component automatically manages the complexity of the fetch operation and caching. To manipulate data on the backend, use the [\`APICall\`](./APICall.mdx) component.`,props:{method:l("By default, data fetching uses the `get` operation method. You can change it by setting this property to other supported methods, such as `post`, `put`, `delete`, and others."),url:l("This property represents the URL to fetch the data."),rawBody:l("This property sets the request body to the value provided here without any conversion. Use the `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails."),body:l("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),queryParams:l("This property sets the request body. The object you pass here will be serialized to JSON when sending the request. Use the `rawBody` property to send another request body using its native format. When you define `body` and `rawBody`, the latest one prevails."),headers:l("You can define request header values as key and value pairs, where the key is the ID of the particular header and the value is that header's value."),pollIntervalInSeconds:l("By setting this property, you can define periodic data fetching. The `DataSource` component will refresh its data according to the time specified as seconds. When the data changes during the refresh, it will trigger the update mechanism of XMLUI and re-render the UI accordingly."),inProgressNotificationMessage:l("This property defines the message to display while the fetch operation progresses."),completedNotificationMessage:l("This property defines the message to display automatically when the data fetch operation has been completed."),errorNotificationMessage:l("This property defines the message to display automatically when the data fetch operation results in an error."),resultSelector:l("The response of a data-fetching query may include additional information that the UI cannot (or does not intend) to process. With this property, you can define a selector that extracts the data from the response body."),transformResult:l("This property accepts a transformation function that receives the data coming from the backend after it has been through the evaluation of the optional `resultSelector` property. The function gets the entire result set and can transform it. The `DataSource` component `value` property will return the data from this function."),prevPageSelector:l(`When using \`${ho}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`),nextPageSelector:l(`When using \`${ho}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`)},events:{loaded:l("The component triggers this event when the fetch operation has been completed and the data is loaded. The argument of the event is the data loaded."),error:l("This event fires when a request results in an error.")}}),mo="FormSection",yr=y({status:"experimental",description:`The \`${mo}\` is a component that groups cohesive elements together within a \`Form\`. This grouping is indicated visually: the child components of the \`${mo}\` are placed in a [\`FlowLayout\`](./FlowLayout.mdx) component.`});ut(mo,`
19
19
  <Component name="FormSection">
20
20
  <VStack paddingBottom="{$props.paddingBottom ?? '1rem'}" gap="0">
21
21
  <Heading
@@ -37,7 +37,7 @@
37
37
  </FlowLayout>
38
38
  </VStack>
39
39
  </Component>
40
- `);const $l="IconInfoCard",Tr=k({status:"experimental",description:"This component displays an icon and some content in a card.",props:{height:a("The height of the card."),iconBackgroundColor:a("The background color of the icon."),iconName:a("The name of the icon to display.")}});ht($l,`
40
+ `);const $l="IconInfoCard",Tr=y({status:"experimental",description:"This component displays an icon and some content in a card.",props:{height:l("The height of the card."),iconBackgroundColor:l("The background color of the icon."),iconName:l("The name of the icon to display.")}});ut($l,`
41
41
  <Component name="IconInfoCard">
42
42
  <Card height="{$props.height}" width="{$props.width}">
43
43
  <HStack verticalAlignment="center">
@@ -54,7 +54,7 @@
54
54
  </HStack>
55
55
  </Card>
56
56
  </Component>
57
- `);const kr="PageHeader",wr=k({status:"experimental",description:`The \`${kr}\` component is a component that displays a title and an optional pre-title. The pre-title is displayed above the title.`,props:{preTitle:a("The pre-title to display above the title."),title:a("The title to display.")},defaultThemeVars:{"gap-PageHeader":"$space-2"}});ht(kr,`
57
+ `);const kr="PageHeader",wr=y({status:"experimental",description:`The \`${kr}\` component is a component that displays a title and an optional pre-title. The pre-title is displayed above the title.`,props:{preTitle:l("The pre-title to display above the title."),title:l("The title to display.")},defaultThemeVars:{"gap-PageHeader":"$space-2"}});ut(kr,`
58
58
  <Component name="PageHeader">
59
59
  <HStack gap="$gap-PageHeader" verticalAlignment="center">
60
60
  <VStack gap="$space-tight">
@@ -65,7 +65,7 @@
65
65
  <Slot />
66
66
  </HStack>
67
67
  </Component>
68
- `);const _l=k({status:"experimental",docFolder:"ThemeChanger",description:"The `ThemeChangerButton` component is a component that allows the user to change the theme of the app.",props:{showSettings:a("This property indicates if the Settings function of this component is displayed.",null,"boolean",!0)}}),Il="Toolbar",$r=k({status:"experimental",description:"This component is a container for a toolbar.",props:{alignment:a("The alignment of the toolbar.")},defaultThemeVars:{"gap-Toolbar":"$space-2"}});ht(Il,`
68
+ `);const _l=y({status:"experimental",docFolder:"ThemeChanger",description:"The `ThemeChangerButton` component is a component that allows the user to change the theme of the app.",props:{showSettings:l("This property indicates if the Settings function of this component is displayed.",null,"boolean",!0)}}),Il="Toolbar",$r=y({status:"experimental",description:"This component is a container for a toolbar.",props:{alignment:l("The alignment of the toolbar.")},defaultThemeVars:{"gap-Toolbar":"$space-2"}});ut(Il,`
69
69
  <Component name="Toolbar">
70
70
  <HStack
71
71
  gap="$gap-Toolbar"
@@ -74,7 +74,7 @@
74
74
  <Slot />
75
75
  </HStack>
76
76
  </Component>
77
- `);const Bl="ToolbarButton",_r=k({status:"experimental",description:"This component is a button that is used in a toolbar.",props:{label:a("The label to display on the button."),icon:a("The icon to display on the button.")},defaultThemeVars:{"padding-horizontal-ToolbarButton":"$space-1","padding-vertical-ToolbarButton":"$space-1"}});ht(Bl,`
77
+ `);const Bl="ToolbarButton",_r=y({status:"experimental",description:"This component is a button that is used in a toolbar.",props:{label:l("The label to display on the button."),icon:l("The icon to display on the button.")},defaultThemeVars:{"padding-horizontal-ToolbarButton":"$space-1","padding-vertical-ToolbarButton":"$space-1"}});ut(Bl,`
78
78
  <Component name="ToolbarButton">
79
79
  <Button
80
80
  variant="ghost"
@@ -87,7 +87,7 @@
87
87
  <Slot />
88
88
  </Button>
89
89
  </Component>
90
- `);const Sl="TrendLabel",Ir=k({status:"experimental",description:"This component displays a trend label.",props:{change:a("The change percentage.")}});ht(Sl,`
90
+ `);const Sl="TrendLabel",Ir=y({status:"experimental",description:"This component displays a trend label.",props:{change:l("The change percentage.")}});ut(Sl,`
91
91
  <Component name="TrendLabel">
92
92
  <Fragment>
93
93
  <Text when="{$props.change > 0}" marginLeft="$space-tight" color="$color-valid">
@@ -104,4 +104,4 @@
104
104
  </Text>
105
105
  </Fragment>
106
106
  </Component>
107
- `);const El={themeVars:'"[]"'},Al=k({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `ButtonGroup` component is a container that embeds buttons used together for a particular reason. It provides a view that emphasizes this coherency.",props:{themeColor:a("This optional property specifies the default theme color for the buttons in the group. Individual buttons may override this setting with their `themeColor` property.",go,"string","primary"),variant:a("This optional property specifies the default variant for the buttons in the group. Individual buttons may override this setting with their `variant` property.",vo,"string","solid"),orientation:nn("horizontal"),buttonWidth:a("When this optional property is set, all buttons within the group will have the specified width. If it is empty, each button's width accommodates its content."),gap:a("When this optional property is set, adjacent buttons will have the specified gap between them. If this property is not set, the buttons will be merged into one group.")},themeVars:N(El.themeVars),defaultThemeVars:{light:{},dark:{}}}),Nl=k({description:"The `Breakout` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width."}),zl={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "color-text-control-Carousel": "var(--xmlui-color-text-control-Carousel)", "color-bg-control-Carousel": "var(--xmlui-color-bg-control-Carousel)", "radius-control-Carousel": "var(--xmlui-radius-control-Carousel)", "color-bg-control-hover-Carousel": "var(--xmlui-color-bg-control-hover-Carousel)", "color-text-control-hover-Carousel": "var(--xmlui-color-text-control-hover-Carousel)", "color-bg-control-active-Carousel": "var(--xmlui-color-bg-control-active-Carousel)", "color-text-control-active-Carousel": "var(--xmlui-color-text-control-active-Carousel)", "color-text-control-disabled-Carousel": "var(--xmlui-color-text-control-disabled-Carousel)", "color-bg-control-disabled-Carousel": "var(--xmlui-color-bg-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "color-text-indicator-Carousel": "var(--xmlui-color-text-indicator-Carousel)", "color-bg-indicator-Carousel": "var(--xmlui-color-bg-indicator-Carousel)", "color-bg-indicator-hover-Carousel": "var(--xmlui-color-bg-indicator-hover-Carousel)", "color-text-indicator-hover-Carousel": "var(--xmlui-color-text-indicator-hover-Carousel)", "color-bg-indicator-active-Carousel": "var(--xmlui-color-bg-indicator-active-Carousel)", "color-text-indicator-active-Carousel": "var(--xmlui-color-text-indicator-active-Carousel)"}'`,carousel:"_carousel_11a03_13",innerWrapper:"_innerWrapper_11a03_22",carouselContentWrapper:"_carouselContentWrapper_11a03_30",carouselContent:"_carouselContent_11a03_30",vertical:"_vertical_11a03_40",carouselItem:"_carouselItem_11a03_44",controls:"_controls_11a03_51",controlButton:"_controlButton_11a03_60",indicators:"_indicators_11a03_87",indicator:"_indicator_11a03_87",active:"_active_11a03_107"},ae="Carousel",Ll=k({status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:a("This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",["horizontal","vertical"],null,"horizontal"),indicators:a("This property indicates whether the carousel displays the indicators.",null,null,"true"),controls:a("This property indicates whether the carousel displays the controls.",null,null,"true"),autoplay:a("This property indicates whether the carousel automatically scrolls.",null,null,"false"),loop:a("This property indicates whether the carousel loops.",null,null,"false"),startIndex:a("This property indicates the index of the first slide to display.",null,null,"0"),transitionDuration:a("This property specifies the duration of the transition between slides."),autoplayInterval:a("This property specifies the interval between autoplay transitions."),stopAutoplayOnInteraction:a("This property indicates whether autoplay stops on interaction."),prevIcon:a("This property specifies the icon to display for the previous control."),nextIcon:a("This property specifies the icon to display for the next control."),keyboard:a("This property indicates whether the carousel responds to keyboard events.")},events:{displayDidChange:Te(ae)},apis:{canScrollPrev:a("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:a("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:a("This method scrolls the carousel to the specified slide index."),scrollPrev:a("This method scrolls the carousel to the previous slide."),scrollNext:a("This method scrolls the carousel to the next slide.")},themeVars:N(zl.themeVars),defaultThemeVars:{[`color-bg-control-${ae}`]:"$color-primary",[`color-text-control-${ae}`]:"$color-text",[`color-bg-control-hover-${ae}`]:"$color-primary",[`color-text-control-hover-${ae}`]:"$color-text",[`color-bg-control-active-${ae}`]:"$color-primary",[`color-bg-control-disabled-${ae}`]:"$color-surface-200",[`color-text-control-disabled-${ae}`]:"$color-text-disabled",[`color-text-control-active-${ae}`]:"$color-primary",[`color-bg-indicator-${ae}`]:"$color-surface-200",[`color-bg-indicator-active-${ae}`]:"$color-primary",[`color-text-indicator-${ae}`]:"$color-primary",[`color-text-indicator-active-${ae}`]:"$color-primary",[`color-bg-indicator-hover-${ae}`]:"$color-surface-200",[`color-text-indicator-hover-${ae}`]:"$color-primary",[`width-indicator-${ae}`]:"25px",[`height-indicator-${ae}`]:"6px",[`height-control-${ae}`]:"36px",[`width-control-${ae}`]:"36px",[`radius-control-${ae}`]:"50%",[`height-${ae}`]:"100%",[`width-${ae}`]:"100%"}}),Cl=k({status:"experimental",docFolder:"ThemeChanger",description:"The `ToneChangerButton` component is a component that allows the user to change the tone of the app.",props:{}}),Pl=k({description:"`Option` is a non-visual component describing a selection option. Other components (such as `Select`, `Combobox`, and others) may use nested `Option` instances from which the user can select.",props:{label:a("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:a("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value."),enabled:be()}}),Ol=Y.memo(e=>{const t=pi();return t?oe.jsx(t,{...e}):null});Ol.displayName="OptionNative";const le="AutoComplete",Dl=k({description:"This component is a dropdown with a list of options. According to the `multi` property, the user can select one or more items.",status:"experimental",props:{placeholder:nt(),initialValue:ze(),maxLength:_t(),autoFocus:ke(),required:He(),readOnly:De(),enabled:be(),validationStatus:Me(),dropdownHeight:a("This property sets the height of the dropdown list."),multi:Eo(),optionTemplate:te("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:a("This property defines the template to display when the list of options is empty.")},events:{gotFocus:Ae(le),lostFocus:Ne(le),didChange:Te(le)},apis:{focus:Je(le),value:a("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ze()},contextVars:{$item:a("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:N(ki.themeVars),defaultThemeVars:{[`color-bg-menu-${le}`]:"$color-bg-primary",[`shadow-menu-${le}`]:"$shadow-md",[`radius-menu-${le}`]:"$radius",[`color-bg-item-${le}`]:"$color-bg-dropdown-item",[`color-bg-item-${le}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${le}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${le}-badge`]:"$color-primary-500",[`font-size-${le}-badge`]:"$font-size-small",[`padding-horizontal-${le}-badge`]:"$space-1",[`padding-vertical-${le}-badge`]:"$space-1",light:{[`color-bg-${le}-badge--hover`]:"$color-primary-400",[`color-bg-${le}-badge--active`]:"$color-primary-500",[`color-text-item-${le}--disabled`]:"$color-surface-200",[`color-text-${le}-badge`]:"$color-surface-50"},dark:{[`color-bg-${le}-badge--hover`]:"$color-primary-600",[`color-bg-${le}-badge--active`]:"$color-primary-500",[`color-text-${le}-badge`]:"$color-surface-50",[`color-text-item-${le}--disabled`]:"$color-surface-800"}}}),Ml={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},Hl=k({status:"stable",description:"The `Backdrop` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.",props:{overlayTemplate:te("This property defines the component template for an optional overlay to display over the component."),backgroundColor:a("The background color of the backdrop.",null,"string","black"),opacity:a("The opacity of the backdrop.",null,"number",.1)},themeVars:N(Ml.themeVars)}),Fl={Accordion:ml,Alert:fl,APICall:yl,App:En,AppHeader:An,AppState:Nn,AutoComplete:Dl,Avatar:Ln,Backdrop:Hl,Badge:Pn,BarChart:Tl,Bookmark:Dn,Breakout:Nl,Button:an,ButtonGroup:Al,Card:Hn,Carousel:Ll,ChangeListener:Fn,Chart:kl,Checkbox:Wn,Column:$a,ContentSeparator:qn,DataSource:wl,DatePicker:Un,DropdownMenu:Gn,Fragment:vl,MenuItem:Yn,SubMenuItem:Qn,EmojiSelector:Zn,FileInput:jn,FileUploadDropZone:ei,FlowLayout:oi,Footer:ni,Form:si,FormItem:wi,FormSection:yr,Heading:Ii,H1:Bi,H2:Si,H3:Ei,H4:Ai,H5:Ni,H6:zi,HoverCard:Li,Icon:Ci,IconInfoCard:Tr,Image:Pi,Items:Oi,Link:Di,List:Hi,Logo:Fi,Markdown:Wi,MenuSeparator:Xn,ModalDialog:Ri,NavGroup:Vi,NavLink:Ui,NavPanel:Gi,NoResult:Qi,NumberBox:Xi,OffCanvas:Ji,Option:Pl,PageMetaTitle:ji,Page:Ki,PageHeader:wr,Pages:ea,Pdf:ta,PieChart:oa,PositionedContainer:na,ProgressBar:aa,Queue:la,RadioGroup:sa,RealTimeAdapter:ca,Redirect:ua,Select:da,SelectionStore:pa,SpaceFiller:ha,Spinner:ma,Splitter:fa,HSplitter:ga,VSplitter:va,Stack:Bt,CHStack:mn,CVStack:hn,HStack:pn,VStack:dn,StickyBox:ya,Switch:Ta,Table:wa,TableHeader:vr,TableOfContents:ll,TabItem:gl,Tabs:cl,Text:ul,TextArea:pl,TextBox:Fo,PasswordInput:yn,Toolbar:$r,ToolbarButton:_r,TrendLabel:Ir,Theme:Tn,ThemeChangerButton:_l,ToneChangerButton:Cl,Tree:bl};Ee.collectedComponentMetadata=Fl,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})});
107
+ `);const El={themeVars:'"[]"'},Al=y({status:"in progress",description:"(**NOT IMPLEMENTED YET**) The `ButtonGroup` component is a container that embeds buttons used together for a particular reason. It provides a view that emphasizes this coherency.",props:{themeColor:l("This optional property specifies the default theme color for the buttons in the group. Individual buttons may override this setting with their `themeColor` property.",go,"string","primary"),variant:l("This optional property specifies the default variant for the buttons in the group. Individual buttons may override this setting with their `variant` property.",vo,"string","solid"),orientation:an("horizontal"),buttonWidth:l("When this optional property is set, all buttons within the group will have the specified width. If it is empty, each button's width accommodates its content."),gap:l("When this optional property is set, adjacent buttons will have the specified gap between them. If this property is not set, the buttons will be merged into one group.")},themeVars:z(El.themeVars),defaultThemeVars:{light:{},dark:{}}}),Nl=y({description:"The `Breakout` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width."}),zl={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "color-text-control-Carousel": "var(--xmlui-color-text-control-Carousel)", "color-bg-control-Carousel": "var(--xmlui-color-bg-control-Carousel)", "radius-control-Carousel": "var(--xmlui-radius-control-Carousel)", "color-bg-control-hover-Carousel": "var(--xmlui-color-bg-control-hover-Carousel)", "color-text-control-hover-Carousel": "var(--xmlui-color-text-control-hover-Carousel)", "color-bg-control-active-Carousel": "var(--xmlui-color-bg-control-active-Carousel)", "color-text-control-active-Carousel": "var(--xmlui-color-text-control-active-Carousel)", "color-text-control-disabled-Carousel": "var(--xmlui-color-text-control-disabled-Carousel)", "color-bg-control-disabled-Carousel": "var(--xmlui-color-bg-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "color-text-indicator-Carousel": "var(--xmlui-color-text-indicator-Carousel)", "color-bg-indicator-Carousel": "var(--xmlui-color-bg-indicator-Carousel)", "color-bg-indicator-hover-Carousel": "var(--xmlui-color-bg-indicator-hover-Carousel)", "color-text-indicator-hover-Carousel": "var(--xmlui-color-text-indicator-hover-Carousel)", "color-bg-indicator-active-Carousel": "var(--xmlui-color-bg-indicator-active-Carousel)", "color-text-indicator-active-Carousel": "var(--xmlui-color-text-indicator-active-Carousel)"}'`,carousel:"_carousel_11a03_13",innerWrapper:"_innerWrapper_11a03_22",carouselContentWrapper:"_carouselContentWrapper_11a03_30",carouselContent:"_carouselContent_11a03_30",vertical:"_vertical_11a03_40",carouselItem:"_carouselItem_11a03_44",controls:"_controls_11a03_51",controlButton:"_controlButton_11a03_60",indicators:"_indicators_11a03_87",indicator:"_indicator_11a03_87",active:"_active_11a03_107"},le="Carousel",Ll=y({status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:l("This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",["horizontal","vertical"],null,"horizontal"),indicators:l("This property indicates whether the carousel displays the indicators.",null,null,"true"),controls:l("This property indicates whether the carousel displays the controls.",null,null,"true"),autoplay:l("This property indicates whether the carousel automatically scrolls.",null,null,"false"),loop:l("This property indicates whether the carousel loops.",null,null,"false"),startIndex:l("This property indicates the index of the first slide to display.",null,null,"0"),transitionDuration:l("This property specifies the duration of the transition between slides."),autoplayInterval:l("This property specifies the interval between autoplay transitions."),stopAutoplayOnInteraction:l("This property indicates whether autoplay stops on interaction."),prevIcon:l("This property specifies the icon to display for the previous control."),nextIcon:l("This property specifies the icon to display for the next control."),keyboard:l("This property indicates whether the carousel responds to keyboard events.")},events:{displayDidChange:be(le)},apis:{canScrollPrev:l("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:l("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:l("This method scrolls the carousel to the specified slide index."),scrollPrev:l("This method scrolls the carousel to the previous slide."),scrollNext:l("This method scrolls the carousel to the next slide.")},themeVars:z(zl.themeVars),defaultThemeVars:{[`color-bg-control-${le}`]:"$color-primary",[`color-text-control-${le}`]:"$color-text",[`color-bg-control-hover-${le}`]:"$color-primary",[`color-text-control-hover-${le}`]:"$color-text",[`color-bg-control-active-${le}`]:"$color-primary",[`color-bg-control-disabled-${le}`]:"$color-surface-200",[`color-text-control-disabled-${le}`]:"$color-text-disabled",[`color-text-control-active-${le}`]:"$color-primary",[`color-bg-indicator-${le}`]:"$color-surface-200",[`color-bg-indicator-active-${le}`]:"$color-primary",[`color-text-indicator-${le}`]:"$color-primary",[`color-text-indicator-active-${le}`]:"$color-primary",[`color-bg-indicator-hover-${le}`]:"$color-surface-200",[`color-text-indicator-hover-${le}`]:"$color-primary",[`width-indicator-${le}`]:"25px",[`height-indicator-${le}`]:"6px",[`height-control-${le}`]:"36px",[`width-control-${le}`]:"36px",[`radius-control-${le}`]:"50%",[`height-${le}`]:"100%",[`width-${le}`]:"100%"}}),Cl=y({status:"experimental",docFolder:"ThemeChanger",description:"The `ToneChangerButton` component is a component that allows the user to change the tone of the app.",props:{}}),Pl=y({description:"`Option` is a non-visual component describing a selection option. Other components (such as `Select`, `Combobox`, and others) may use nested `Option` instances from which the user can select.",props:{label:l("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:l("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value."),enabled:ge()}}),Ol=Y.memo(e=>{const t=hi();return t?re.jsx(t,{...e}):null});Ol.displayName="OptionNative";const se="AutoComplete",Dl=y({description:"This component is a dropdown with a list of options. According to the `multi` property, the user can select one or more items.",status:"experimental",props:{placeholder:et(),initialValue:Ee(),maxLength:kt(),autoFocus:ye(),required:Oe(),readOnly:Ce(),enabled:ge(),validationStatus:Pe(),dropdownHeight:l("This property sets the height of the dropdown list."),multi:Eo(),optionTemplate:te("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:l("This property defines the template to display when the list of options is empty.")},events:{gotFocus:Be(se),lostFocus:Se(se),didChange:be(se)},apis:{focus:Ye(se),value:l("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:Ge()},contextVars:{$item:l("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:z(wi.themeVars),defaultThemeVars:{[`color-bg-menu-${se}`]:"$color-bg-primary",[`shadow-menu-${se}`]:"$shadow-md",[`radius-menu-${se}`]:"$radius",[`color-bg-item-${se}`]:"$color-bg-dropdown-item",[`color-bg-item-${se}--hover`]:"$color-bg-dropdown-item--active",[`color-bg-item-${se}--active`]:"$color-bg-dropdown-item--active","min-height-Input":"39px",[`color-bg-${se}-badge`]:"$color-primary-500",[`font-size-${se}-badge`]:"$font-size-small",[`padding-horizontal-${se}-badge`]:"$space-1",[`padding-vertical-${se}-badge`]:"$space-1",light:{[`color-bg-${se}-badge--hover`]:"$color-primary-400",[`color-bg-${se}-badge--active`]:"$color-primary-500",[`color-text-item-${se}--disabled`]:"$color-surface-200",[`color-text-${se}-badge`]:"$color-surface-50"},dark:{[`color-bg-${se}-badge--hover`]:"$color-primary-600",[`color-bg-${se}-badge--active`]:"$color-primary-500",[`color-text-${se}-badge`]:"$color-surface-50",[`color-text-item-${se}--disabled`]:"$color-surface-800"}}}),Ml={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},Hl=y({status:"stable",description:"The `Backdrop` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.",props:{overlayTemplate:te("This property defines the component template for an optional overlay to display over the component."),backgroundColor:l("The background color of the backdrop.",null,"string","black"),opacity:l("The opacity of the backdrop.",null,"number",.1)},themeVars:z(Ml.themeVars)}),Fl=[{value:"div",description:"Use a 'div' as the host element."},{value:"span",description:"Use a 'span' as the host element."}],Wl=y({status:"experimental",description:"This component injects a raw HTML string into the DOM.",props:{content:l("Specifies the raw HTML content to inject"),hostElement:l("Specifies the host element to inject the content into.",Fl,"string","span")},events:{},apis:{},themeVars:[],defaultThemeVars:{light:{},dark:{}}}),Rl=y({status:"experimental",description:"This component renders an HTML `b` tag.",props:{},events:{}}),ql=y({status:"experimental",description:"This component renders an HTML `em` tag.",props:{},events:{}}),Ul=y({status:"experimental",description:"This component renders an HTML `code` tag.",props:{},events:{}}),Vl={Accordion:xl,Alert:gl,APICall:Tl,App:An,AppHeader:Nn,AppState:zn,AutoComplete:Dl,Avatar:Cn,b:Rl,Backdrop:Hl,Badge:On,Bookmark:Mn,Breakout:Nl,Button:ln,ButtonGroup:Al,Card:Fn,Carousel:Ll,ChangeListener:Wn,Chart:kl,Checkbox:Rn,CODE:Ul,Column:$a,ContentSeparator:Un,DataSource:wl,DatePicker:Gn,DropdownMenu:Yn,EM:ql,Fragment:bl,MenuItem:Xn,SubMenuItem:Qn,EmojiSelector:Jn,FileInput:Kn,FileUploadDropZone:ti,FlowLayout:ri,Footer:ii,Form:ci,FormItem:$i,FormSection:yr,Heading:Bi,H1:Si,H2:Ei,H3:Ai,H4:Ni,H5:zi,H6:Li,HoverCard:Ci,Icon:Pi,IconInfoCard:Tr,Image:Oi,Items:Di,Link:Mi,List:Fi,Logo:Wi,Markdown:Ri,MenuSeparator:Zn,ModalDialog:qi,NavGroup:Vi,NavLink:Gi,NavPanel:Yi,NoResult:Qi,NumberBox:Zi,OffCanvas:ji,Option:Pl,PageMetaTitle:Ki,Page:ea,PageHeader:wr,Pages:ta,Pdf:oa,PositionedContainer:na,ProgressBar:aa,Queue:la,RadioGroup:sa,RawHtml:Wl,RealTimeAdapter:ca,Redirect:ua,Select:da,SelectionStore:pa,SpaceFiller:ha,Spinner:ma,Splitter:fa,HSplitter:ga,VSplitter:va,Stack:$t,CHStack:xn,CVStack:mn,HStack:hn,VStack:pn,StickyBox:ya,Switch:Ta,Table:wa,TableHeader:vr,TableOfContents:sl,TabItem:vl,Tabs:ul,Text:dl,TextArea:hl,TextBox:Fo,PasswordInput:Tn,Toolbar:$r,ToolbarButton:_r,TrendLabel:Ir,Theme:kn,ThemeChangerButton:_l,ToneChangerButton:Cl,Tree:yl};Ie.collectedComponentMetadata=Vl,Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"})});