{"version":3,"file":"dist-DfsVZtWH.cjs","names":["shallowEqual","normalizeVisible","index","index$1","shallowEqual","Phaser","Phaser","Phaser","Phaser","c","l","u","d","f","p","r","e","n","e","n","e","n","e","h","n","t","e","m","n","h","g","_","v","r","e","t","a","e","i","_","v","m","e","y","r","n","t","d","r","n","t","e","g","_","v","y","b","r","n","t","e","g","i","p","t","e","r","n","c","l","u","d","f","p","n","t","e","y","b","x","S","C","w","T","a","r","i","g","t","n","e","f","p","m","h","g","ee","te","_","n","t","e","p","m","n","t","h","g","_","r","e","o","s","c","l","u","d","f","t","e","p","m","d","f","n","t","e","p","d","f","p","t","e","m","n","l","n","e","t","l","n","e","t","m","t","h","r","n","e","g","_","h","g","_","v","a","n","t","e","r","i","n","e","f","p","n","t","e","g","_","v","te","y","b","x","ne","re","r","a","n","i","e","t","ne","e","_","v","a","D","ie","t","m","r","i","n","s","e","t","a","e","o","s","c","e","l","t","d","f","p","m","r","t","e","n","f","O","i","n","t","e","r","f","p","m","h","n","g","e","_","v","y","t","b","x","l","e","t","ee","h","g","_","v","t","y","b","x","S","C","w","i","r","n","e","f","h","g","_","v","y","b","x","S","C","r","n","t","e","l","u","d","f","n","e","t","f","a","t","e","r","i","n","d","f","p","n","t","e","f","p","m","h","g","_","v","y","b","n","t","l","e","d","f","i","ie","e","t","n","r","m","h","g","_","v","y","r","n","e","t","h","g","_","v","y","b","x","a","t","e","i","n","S","r","ee","h","g","_","r","ie","t","e","f","n","h","a","f","e","t","r","i","n","i","r","n","t","e","e","n","themeRegistry$1","defaultTheme$1","Phaser","defaultSpacingTokens","defaultSizeTokens","defaultRadiusTokens","Phaser","go","Phaser","container","scene","EFFECT_DEFINITIONS","Phaser","EFFECT_DEFINITIONS","Phaser","Phaser","Phaser","Phaser","Phaser","DevConfig","summarizeMap","View"],"sources":["../../phaser/dist/utils/phaser-guards.js","../../phaser/dist/host.js","../../phaser/dist/components/appliers/applyGraphics.js","../../phaser/dist/components/appliers/applyGraphicsLayout.js","../../phaser/dist/components/appliers/applyPhaser.js","../../phaser/dist/components/appliers/applyTransform.js","../../phaser/dist/components/creators/createGraphicsLayout.js","../../phaser/dist/components/creators/createPhaser.js","../../phaser/dist/components/creators/createTransform.js","../../phaser/dist/components/primitives/graphics.js","../../phaser/dist/utils/image-subtexture-registry.js","../../phaser/dist/components/appliers/applyImage.js","../../phaser/dist/components/appliers/applyImageLayout.js","../../phaser/dist/components/creators/createImageLayout.js","../../phaser/dist/components/primitives/image.js","../../phaser/dist/components/appliers/applyNineSlice.js","../../phaser/dist/components/appliers/applyNineSliceLayout.js","../../phaser/dist/components/creators/createNineSliceLayout.js","../../phaser/dist/components/primitives/nineslice.js","../../phaser/dist/particles/emit-zone.js","../../phaser/dist/particles/preset-registry.js","../../phaser/dist/particles/utils.js","../../phaser/dist/components/appliers/applyParticles.js","../../phaser/dist/components/appliers/applyParticlesLayout.js","../../phaser/dist/components/creators/createParticlesLayout.js","../../phaser/dist/components/primitives/particles.js","../../phaser/dist/components/appliers/applySprite.js","../../phaser/dist/components/appliers/applySpriteLayout.js","../../phaser/dist/components/creators/createSpriteLayout.js","../../phaser/dist/components/primitives/sprite.js","../../phaser/dist/_virtual/_commonjsHelpers.js","../../phaser/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js","../../phaser/dist/_virtual/index.js","../../phaser/dist/utils/fast-deep-equal.js","../../phaser/dist/components/appliers/applyText.js","../../phaser/dist/components/appliers/applyTextLayout.js","../../phaser/dist/components/creators/createTextLayout.js","../../phaser/dist/components/primitives/text.js","../../phaser/dist/components/primitives/tilesprite.js","../../phaser/dist/vector/PhaserVectorDrawContext.js","../../phaser/dist/components/primitives/vectorDraw.js","../../phaser/dist/components/backgroundImage.js","../../phaser/dist/components/appliers/applyBackground.js","../../phaser/dist/gestures/gesture-types.js","../../phaser/dist/gestures/gesture-manager.js","../../phaser/dist/components/appliers/applyGestures.js","../../phaser/dist/clip/canvas-clip.js","../../phaser/dist/layout/appliers/background-applier.js","../../phaser/dist/layout/phaser-layout-bridge.js","../../phaser/dist/components/appliers/applyLayout.js","../../components/dist/theme-defaults.js","../../components/dist/primitives/Text.js","../../components/dist/primitives/VectorDrawContent.js","../../components/dist/primitives/View.js","../../components/dist/primitives/Image.js","../../components/dist/Accordion.js","../../components/dist/Button.js","../../components/dist/Portal.js","../../components/dist/useOverlayPresence.js","../../components/dist/Modal.js","../../components/dist/Dialog.js","../../components/dist/WrapText.js","../../components/dist/AlertDialog.js","../../components/dist/DebugPanel.js","../../components/dist/Popover.js","../../components/dist/TextInput.js","../../components/dist/ActivityIndicator.js","../../components/dist/Badge.js","../../components/dist/BottomSheet.js","../../components/dist/Checkbox.js","../../components/dist/RadioButton.js","../../components/dist/RadioGroup.js","../../components/dist/Slider.js","../../components/dist/ColorPicker.js","../../components/dist/Divider.js","../../components/dist/ScrollSlider.js","../../components/dist/ScrollView.js","../../components/dist/Dropdown.js","../../components/dist/Image.js","../../components/dist/Icon.js","../../components/dist/Joystick.js","../../components/dist/ListBox.js","../../components/dist/MenuButton.js","../../components/dist/NineSlice.js","../../components/dist/NineSliceButton.js","../../components/dist/NumberInput.js","../../components/dist/PalettePicker.js","../../components/dist/ProgressBar.js","../../components/dist/ProgressView.js","../../components/dist/RatingBar.js","../../components/dist/SegmentedControl.js","../../components/dist/Sidebar.js","../../components/dist/Tabs.js","../../components/dist/Toast.js","../../components/dist/WheelPicker.js","../../components/dist/Toolbar.js","../../components/dist/Toggle.js","../../components/dist/TransformOriginView.js","../../components/dist/index.js","../../phaser/dist/theme-defaults.js","../../phaser/dist/theme.js","../../phaser/dist/components/appliers/applyTooltip.js","../../phaser/dist/components/creators/createBackground.js","../../phaser/dist/components/creators/createGestures.js","../../phaser/dist/components/creators/createLayout.js","../../phaser/dist/components/primitives/view.js","../../phaser/dist/components/index.js","../../phaser/dist/render-context.js","../../phaser/dist/components/internal/SceneWrapper.js","../../phaser/dist/design-tokens/resolve-theme-tokens.js","../../phaser/dist/phaser-surface-adapter.js","../../phaser/dist/phaser-bridges.js","../../phaser/dist/phaser-host-adapter.js","../../phaser/dist/phaser-vdom-runtime.js","../../phaser/dist/vdom.js","../../phaser/dist/hooks.js","../../phaser/dist/effects/use-effect.js","../../phaser/dist/effects/phaser-effects-bridge.js","../../phaser/dist/plugin.js","../../phaser/dist/camera/use-camera-fx.js","../../phaser/dist/clip/stencil-clip-depth.js","../../phaser/dist/clip/stencil-clip-fbo-bridge.js","../../phaser/dist/clip/stencil-clip-renderer.js","../../phaser/dist/clip/stencil-clip-state.js","../../phaser/dist/clip/stencil-clip.js","../../phaser/dist/clip/stencil-clip-extension.js","../../phaser/dist/clip/index.js","../../phaser/dist/fx/use-fx.js","../../phaser/dist/fx/fx-creators/blur.js","../../phaser/dist/fx/fx-creators/color-matrix.js","../../phaser/dist/fx/fx-creators/glow.js","../../phaser/dist/fx/fx-creators/pixelate.js","../../phaser/dist/fx/fx-creators/shadow.js","../../phaser/dist/fx/fx-creators/vignette.js","../../phaser/dist/fx/fx-registry.js","../../phaser/dist/fx/convenience-hooks/use-blur.js","../../phaser/dist/fx/convenience-hooks/use-glow.js","../../phaser/dist/fx/convenience-hooks/use-shadow.js","../../phaser/dist/particles/use-particles.js","../../phaser/dist/scene-backgrounds.js","../../phaser/dist/utils/svg-texture.js","../../phaser/dist/components/DebugPanel.js","../../phaser/dist/components/custom/Graphics.js","../../phaser/dist/components/custom/NineSlice.js","../../phaser/dist/components/custom/Particles.js","../../phaser/dist/components/custom/RefOriginView.js","../../phaser/dist/components/custom/Sprite.js","../../phaser/dist/components/custom/TileSprite.js","../../phaser/dist/colors/use-color-mode.js","../../phaser/dist/colors/use-colors.js","../../phaser/dist/design-tokens/use-theme-tokens.js","../../phaser/dist/utils/dom-input-manager.js","../../phaser/dist/utils/KeyboardInputManager.js","../../phaser/dist/index.js"],"sourcesContent":["function isPhaserScene(value) {\n  if (!value || typeof value !== \"object\") return false;\n  const maybe = value;\n  return maybe.sys !== null && maybe.sys !== void 0 && typeof maybe.sys === \"object\" && maybe.add !== null && maybe.add !== void 0 && typeof maybe.add === \"object\";\n}\nfunction isPhaserContainer(value) {\n  if (!value || typeof value !== \"object\") return false;\n  const maybe = value;\n  return Array.isArray(maybe.list) && typeof maybe.add === \"function\" && typeof maybe.remove === \"function\";\n}\nexport {\n  isPhaserContainer,\n  isPhaserScene\n};\n//# sourceMappingURL=phaser-guards.js.map\n","import { isPhaserContainer, isPhaserScene } from \"./utils/phaser-guards.js\";\nconst nodeRegistry = {};\nfunction register(type, descriptor) {\n  nodeRegistry[type] = descriptor;\n}\nconst host = {\n  /**\n   * Creates a node instance using the registered creator for the given type\n   * @param type - Node type name\n   * @param props - Node properties\n   * @param scene - Phaser scene\n   * @returns Created node instance\n   * @throws Error if no creator registered for the type\n   */\n  // @migration(audit:scene-portal-mount) Root-Container — host.create(scene) → HostAdapter.create(type, props, ctx)\n  create(type, props, scene) {\n    const descriptor = nodeRegistry[type];\n    if (!descriptor) {\n      throw new Error(`No host descriptor registered for node type \"${String(type)}\"`);\n    }\n    return descriptor.create(scene, props);\n  },\n  /**\n   * Patches node properties with updates using the registered patcher\n   * @param type - Node type name\n   * @param node - Node to patch\n   * @param prev - Previous props\n   * @param next - New props\n   */\n  patch(type, node, prev, next) {\n    const descriptor = nodeRegistry[type];\n    if (!descriptor) {\n      throw new Error(`No host descriptor registered for node type \"${String(type)}\"`);\n    }\n    descriptor.patch(node, prev, next);\n  },\n  /**\n   * Appends child node to parent container\n   * @param parent - Parent container or scene\n   * @param child - Child node to append\n   */\n  append(parent, child) {\n    if (isPhaserContainer(parent)) {\n      parent.add(child);\n      child.parent = parent;\n    } else if (isPhaserScene(parent)) {\n      const scene = parent;\n      scene.add.existing(child);\n      child.parent = void 0;\n    } else if (parent && typeof parent === \"object\" && \"scene\" in parent) {\n      const gameObject = parent;\n      if (gameObject.scene?.children) {\n        gameObject.scene.children.add(child);\n        child.parent = void 0;\n      }\n    }\n  },\n  /**\n   * Removes child node from parent and destroys it\n   * @param parent - Parent container\n   * @param child - Child node to remove\n   */\n  remove(parent, child) {\n    const childObj = child;\n    if (!childObj.scene) return;\n    if (isPhaserContainer(parent)) {\n      parent.remove(childObj, false);\n    }\n    childObj.parent = void 0;\n    if (childObj.destroy) {\n      childObj.destroy(false);\n    }\n  },\n  /**\n   * Performs layout update on container (no-op for native Phaser)\n   */\n  layout() {\n  }\n};\nexport {\n  host,\n  nodeRegistry,\n  register\n};\n//# sourceMappingURL=host.js.map\n","function shallowEqual(a, b) {\n  if (!a || !b) return a === b;\n  if (a.length !== b.length) return false;\n  return a.every((val, i) => val === b[i]);\n}\nfunction applyGraphicsProps(node, _prev, next) {\n  const prevDeps = node.__drawDependencies;\n  const nextDeps = next.dependencies;\n  const depsChanged = !shallowEqual(prevDeps, nextDeps);\n  if (depsChanged && next.onDraw) {\n    if (next.autoClear !== false) {\n      node.clear();\n    }\n    next.onDraw(node, next);\n    node.__drawDependencies = nextDeps;\n  }\n}\nexport {\n  applyGraphicsProps\n};\n//# sourceMappingURL=applyGraphics.js.map\n","function applyGraphicsLayout(node, prev, next) {\n  node.__layoutProps = next;\n  if (prev.width !== next.width || prev.height !== next.height || prev.headless !== next.headless) {\n    node.__getLayoutSize = () => {\n      if (next.headless ?? true) {\n        return { width: 0.01, height: 0.01 };\n      }\n      return {\n        width: typeof next.width === \"number\" ? next.width : 0,\n        height: typeof next.height === \"number\" ? next.height : 0\n      };\n    };\n  }\n}\nexport {\n  applyGraphicsLayout\n};\n//# sourceMappingURL=applyGraphicsLayout.js.map\n","import { isAnimatedSignal } from \"@number10/jsx-core\";\nimport { effect } from \"@preact/signals-core\";\nfunction applySignalAlpha(node, key, prevValue, nextValue, apply) {\n  node.__signalEffects?.get(key)?.();\n  if (isAnimatedSignal(nextValue)) {\n    apply(nextValue.value);\n    const cleanup = effect(() => {\n      apply(nextValue.value);\n    });\n    if (!node.__signalEffects) {\n      node.__signalEffects = /* @__PURE__ */ new Map();\n    }\n    node.__signalEffects.set(key, cleanup);\n  } else if (typeof nextValue === \"number\" && nextValue !== prevValue) {\n    apply(nextValue);\n  }\n}\nfunction normalizeVisible(visible) {\n  if (visible === void 0) return true;\n  if (typeof visible === \"boolean\") return visible;\n  if (visible === \"visible\") return true;\n  if (visible === \"invisible\" || visible === \"none\") return false;\n  return true;\n}\nfunction applyPhaserProps(node, prev, next) {\n  applySignalAlpha(node, \"alpha\", prev.alpha, next.alpha, (v) => {\n    node.setAlpha?.(v);\n  });\n  if (prev.depth !== next.depth && typeof next.depth === \"number\") {\n    node.setDepth?.(next.depth);\n  }\n  if (prev.visible !== next.visible) {\n    const visibleValue = normalizeVisible(next.visible);\n    node.visible = visibleValue;\n  }\n}\nexport {\n  applyPhaserProps\n};\n//# sourceMappingURL=applyPhaser.js.map\n","import { isAnimatedSignal } from \"@number10/jsx-core\";\nimport { effect } from \"@preact/signals-core\";\nfunction applySignalProp(node, key, prevValue, nextValue, apply) {\n  node.__signalEffects?.get(key)?.();\n  if (isAnimatedSignal(nextValue)) {\n    apply(nextValue.value);\n    const cleanup = effect(() => {\n      apply(nextValue.value);\n    });\n    if (!node.__signalEffects) {\n      node.__signalEffects = /* @__PURE__ */ new Map();\n    }\n    node.__signalEffects.set(key, cleanup);\n  } else if (typeof nextValue === \"number\" && nextValue !== prevValue) {\n    apply(nextValue);\n  }\n}\nfunction applyTransformProps(node, prev, next) {\n  applySignalProp(node, \"x\", prev.x, next.x, (v) => {\n    node.x = v;\n  });\n  applySignalProp(node, \"y\", prev.y, next.y, (v) => {\n    node.y = v;\n  });\n  applySignalProp(node, \"rotation\", prev.rotation, next.rotation, (v) => {\n    node.rotation = v;\n  });\n  const nextScale = next.scale;\n  const prevScale = prev.scale;\n  const nextScaleX = next.scaleX;\n  const nextScaleY = next.scaleY;\n  const prevScaleX = prev.scaleX;\n  const prevScaleY = prev.scaleY;\n  if (isAnimatedSignal(nextScale)) {\n    applySignalProp(node, \"scale\", prevScale, nextScale, (v) => {\n      node.setScale?.(v, v);\n    });\n  } else if (typeof nextScale === \"number\" && nextScale !== prevScale) {\n    node.setScale?.(nextScale, nextScale);\n  } else if (nextScaleX !== prevScaleX || nextScaleY !== prevScaleY) {\n    if (isAnimatedSignal(nextScaleX)) {\n      applySignalProp(node, \"scaleX\", prevScaleX, nextScaleX, (v) => {\n        node.setScale?.(v, node.scaleY ?? 1);\n      });\n    } else if (isAnimatedSignal(nextScaleY)) {\n      applySignalProp(node, \"scaleY\", prevScaleY, nextScaleY, (v) => {\n        node.setScale?.(node.scaleX ?? 1, v);\n      });\n    } else {\n      const currentScaleX = node.scaleX ?? 1;\n      const currentScaleY = node.scaleY ?? 1;\n      const sx = typeof nextScaleX === \"number\" ? nextScaleX : currentScaleX;\n      const sy = typeof nextScaleY === \"number\" ? nextScaleY : currentScaleY;\n      node.setScale?.(sx, sy);\n    }\n  }\n}\nexport {\n  applyTransformProps\n};\n//# sourceMappingURL=applyTransform.js.map\n","function createGraphicsLayout(graphics, props) {\n  if (props.headless === false) {\n    if (typeof props.width !== \"number\" || typeof props.height !== \"number\") {\n      throw new Error(\n        \"Graphics component requires explicit width and height props when headless=false\"\n      );\n    }\n  }\n  graphics.__layoutProps = props;\n  graphics.__getLayoutSize = () => {\n    if (graphics.__layoutProps?.headless ?? true) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: props.width ?? 0,\n      height: props.height ?? 0\n    };\n  };\n  graphics.__drawDependencies = props.dependencies;\n}\nexport {\n  createGraphicsLayout\n};\n//# sourceMappingURL=createGraphicsLayout.js.map\n","import { isAnimatedSignal } from \"@number10/jsx-core\";\nimport { effect } from \"@preact/signals-core\";\nfunction normalizeVisible(visible) {\n  if (visible === void 0) return true;\n  if (typeof visible === \"boolean\") return visible;\n  if (visible === \"visible\") return true;\n  if (visible === \"invisible\" || visible === \"none\") return false;\n  return true;\n}\nfunction createPhaser(node, props) {\n  if (props.visible !== void 0) {\n    node.visible = normalizeVisible(props.visible);\n  }\n  if (props.depth !== void 0) {\n    node.setDepth(props.depth);\n  }\n  if (props.alpha !== void 0) {\n    const alpha = props.alpha;\n    if (isAnimatedSignal(alpha)) {\n      node.setAlpha(alpha.value);\n      const cleanup = effect(() => {\n        node.setAlpha(alpha.value);\n      });\n      if (!node.__signalEffects) {\n        node.__signalEffects = /* @__PURE__ */ new Map();\n      }\n      node.__signalEffects.set(\"alpha\", cleanup);\n    } else {\n      node.setAlpha(alpha);\n    }\n  }\n}\nexport {\n  createPhaser\n};\n//# sourceMappingURL=createPhaser.js.map\n","import { isAnimatedSignal } from \"@number10/jsx-core\";\nimport { effect } from \"@preact/signals-core\";\nfunction resolveAnimatableNumber(v) {\n  if (v === void 0) return void 0;\n  return isAnimatedSignal(v) ? v.value : v;\n}\nfunction createTransform(node, props) {\n  if (props.x !== void 0) {\n    const x = props.x;\n    if (isAnimatedSignal(x)) {\n      node.x = x.value;\n      const cleanup = effect(() => {\n        node.x = x.value;\n      });\n      if (!node.__signalEffects) node.__signalEffects = /* @__PURE__ */ new Map();\n      node.__signalEffects.set(\"x\", cleanup);\n    }\n  }\n  if (props.y !== void 0) {\n    const y = props.y;\n    if (isAnimatedSignal(y)) {\n      node.y = y.value;\n      const cleanup = effect(() => {\n        node.y = y.value;\n      });\n      if (!node.__signalEffects) node.__signalEffects = /* @__PURE__ */ new Map();\n      node.__signalEffects.set(\"y\", cleanup);\n    }\n  }\n  if (props.scale !== void 0) {\n    const scale = props.scale;\n    if (isAnimatedSignal(scale)) {\n      node.setScale(scale.value, scale.value);\n      const cleanup = effect(() => {\n        node.setScale(scale.value, scale.value);\n      });\n      if (!node.__signalEffects) node.__signalEffects = /* @__PURE__ */ new Map();\n      node.__signalEffects.set(\"scale\", cleanup);\n    } else {\n      node.setScale(scale, scale);\n    }\n  } else if (props.scaleX !== void 0 || props.scaleY !== void 0) {\n    const sx = props.scaleX;\n    const sy = props.scaleY;\n    if (isAnimatedSignal(sx)) {\n      node.setScale(sx.value, sy ?? 1);\n      const cleanup = effect(() => {\n        node.setScale(sx.value, sy ?? 1);\n      });\n      if (!node.__signalEffects) node.__signalEffects = /* @__PURE__ */ new Map();\n      node.__signalEffects.set(\"scaleX\", cleanup);\n    } else if (isAnimatedSignal(sy)) {\n      node.setScale(sx ?? 1, sy.value);\n      const cleanup = effect(() => {\n        node.setScale(sx ?? 1, sy.value);\n      });\n      if (!node.__signalEffects) node.__signalEffects = /* @__PURE__ */ new Map();\n      node.__signalEffects.set(\"scaleY\", cleanup);\n    } else {\n      node.setScale(sx ?? 1, sy ?? 1);\n    }\n  }\n  if (props.rotation !== void 0) {\n    const rotation = props.rotation;\n    if (isAnimatedSignal(rotation)) {\n      node.setRotation(rotation.value);\n      const cleanup = effect(() => {\n        node.setRotation(rotation.value);\n      });\n      if (!node.__signalEffects) {\n        node.__signalEffects = /* @__PURE__ */ new Map();\n      }\n      node.__signalEffects.set(\"rotation\", cleanup);\n    } else {\n      node.setRotation(rotation);\n    }\n  }\n}\nexport {\n  createTransform,\n  resolveAnimatableNumber\n};\n//# sourceMappingURL=createTransform.js.map\n","import { applyGraphicsProps } from \"../appliers/applyGraphics.js\";\nimport { applyGraphicsLayout } from \"../appliers/applyGraphicsLayout.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createGraphicsLayout } from \"../creators/createGraphicsLayout.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst graphicsCreator = (scene, props) => {\n  const graphics = scene.add.graphics();\n  graphics.setPosition(resolveAnimatableNumber(props.x) ?? 0, resolveAnimatableNumber(props.y) ?? 0);\n  createTransform(graphics, props);\n  createPhaser(graphics, props);\n  createGraphicsLayout(graphics, props);\n  if (props.onDraw) {\n    props.onDraw(graphics, props);\n  }\n  return graphics;\n};\nconst graphicsPatcher = (node, prev, next) => {\n  applyTransformProps(node, prev, next);\n  applyPhaserProps(node, prev, next);\n  applyGraphicsProps(node, prev, next);\n  applyGraphicsLayout(node, prev, next);\n};\nexport {\n  graphicsCreator,\n  graphicsPatcher\n};\n//# sourceMappingURL=graphics.js.map\n","const sceneTextureEntries = /* @__PURE__ */ new WeakMap();\nlet nextDerivedTextureId = 0;\nfunction getSceneEntries(scene) {\n  let entries = sceneTextureEntries.get(scene);\n  if (!entries) {\n    entries = /* @__PURE__ */ new Map();\n    sceneTextureEntries.set(scene, entries);\n  }\n  return entries;\n}\nfunction clampRectToFrame(frame, sourceRect) {\n  const x = Math.max(0, sourceRect.x);\n  const y = Math.max(0, sourceRect.y);\n  const w = Math.max(0, Math.min(sourceRect.w, frame.cutWidth - x));\n  const h = Math.max(0, Math.min(sourceRect.h, frame.cutHeight - y));\n  return {\n    sx: frame.cutX + x,\n    sy: frame.cutY + y,\n    sw: w,\n    sh: h\n  };\n}\nfunction resolveFrame(scene, texture, frame) {\n  return scene.textures.getFrame(texture, frame);\n}\nfunction createDerivedTexture(scene, textureKey, frame, sourceRect) {\n  const { sx, sy, sw, sh } = clampRectToFrame(frame, sourceRect);\n  if (sw <= 0 || sh <= 0) {\n    return false;\n  }\n  const sourceImage = frame.texture.source?.[frame.sourceIndex ?? 0]?.image ?? frame.texture.source?.[0]?.image;\n  if (!sourceImage) {\n    return false;\n  }\n  const canvas = document.createElement(\"canvas\");\n  canvas.width = sw;\n  canvas.height = sh;\n  const ctx = canvas.getContext(\"2d\");\n  if (!ctx) {\n    return false;\n  }\n  ctx.clearRect(0, 0, sw, sh);\n  ctx.drawImage(sourceImage, sx, sy, sw, sh, 0, 0, sw, sh);\n  if (scene.textures.exists(textureKey)) {\n    scene.textures.remove(textureKey);\n  }\n  scene.textures.addCanvas(textureKey, canvas);\n  const texture = scene.textures.get(textureKey);\n  texture?.source?.[0]?.update();\n  return true;\n}\nfunction getImageSubTextureCacheKey(texture, frame, sourceRect) {\n  return `${texture}::${frame ?? \"__BASE\"}::${sourceRect.x},${sourceRect.y},${sourceRect.w},${sourceRect.h}`;\n}\nfunction retainImageSubTexture(scene, texture, frame, sourceRect) {\n  if (!sourceRect) {\n    return { texture, frame };\n  }\n  const resolvedFrame = resolveFrame(scene, texture, frame);\n  if (!resolvedFrame) {\n    return { texture, frame };\n  }\n  const cacheKey = getImageSubTextureCacheKey(texture, frame, sourceRect);\n  const entries = getSceneEntries(scene);\n  const existing = entries.get(cacheKey);\n  if (existing) {\n    existing.refCount += 1;\n    return { texture: existing.textureKey, cacheKey };\n  }\n  const textureKey = `__phaserjsx_img_subtex_${nextDerivedTextureId++}`;\n  const created = createDerivedTexture(scene, textureKey, resolvedFrame, sourceRect);\n  if (!created) {\n    return { texture, frame };\n  }\n  entries.set(cacheKey, { textureKey, refCount: 1 });\n  return { texture: textureKey, cacheKey };\n}\nfunction releaseImageSubTexture(scene, cacheKey) {\n  if (!cacheKey) return;\n  const entries = sceneTextureEntries.get(scene);\n  if (!entries) return;\n  const entry = entries.get(cacheKey);\n  if (!entry) return;\n  entry.refCount -= 1;\n  if (entry.refCount > 0) {\n    return;\n  }\n  if (scene.textures.exists(entry.textureKey)) {\n    scene.textures.remove(entry.textureKey);\n  }\n  entries.delete(cacheKey);\n}\nexport {\n  getImageSubTextureCacheKey,\n  releaseImageSubTexture,\n  retainImageSubTexture\n};\n//# sourceMappingURL=image-subtexture-registry.js.map\n","import { retainImageSubTexture, releaseImageSubTexture } from \"../../utils/image-subtexture-registry.js\";\nfunction getImageSourceDimensions(image, sourceRect) {\n  if (sourceRect) {\n    return {\n      width: Math.max(0, sourceRect.w),\n      height: Math.max(0, sourceRect.h)\n    };\n  }\n  return {\n    width: image.frame.width,\n    height: image.frame.height\n  };\n}\nfunction calculateImageFitScale(image, targetWidth, targetHeight, fit = \"fill\", sourceRect) {\n  const { width: textureWidth, height: textureHeight } = getImageSourceDimensions(image, sourceRect);\n  if (textureWidth === 0 || textureHeight === 0) {\n    return { scaleX: 1, scaleY: 1 };\n  }\n  if (fit === \"fill\") {\n    return {\n      scaleX: targetWidth / textureWidth,\n      scaleY: targetHeight / textureHeight\n    };\n  }\n  const targetAspect = targetWidth / targetHeight;\n  const textureAspect = textureWidth / textureHeight;\n  if (fit === \"contain\") {\n    const scale = targetAspect > textureAspect ? targetHeight / textureHeight : targetWidth / textureWidth;\n    return { scaleX: scale, scaleY: scale };\n  }\n  if (fit === \"cover\") {\n    const scale = targetAspect < textureAspect ? targetHeight / textureHeight : targetWidth / textureWidth;\n    return { scaleX: scale, scaleY: scale };\n  }\n  return { scaleX: 1, scaleY: 1 };\n}\nfunction applyImageProps(image, prev, next) {\n  const derivedImage = image;\n  const prevSR = prev.sourceRect;\n  const nextSR = next.sourceRect;\n  const sourceRectChanged = prevSR?.x !== nextSR?.x || prevSR?.y !== nextSR?.y || prevSR?.w !== nextSR?.w || prevSR?.h !== nextSR?.h;\n  const textureChanged = prev.texture !== next.texture || prev.frame !== next.frame;\n  if ((textureChanged || sourceRectChanged) && next.texture) {\n    const nextSource = retainImageSubTexture(image.scene, next.texture, next.frame, nextSR);\n    image.setTexture(nextSource.texture, nextSource.frame);\n    releaseImageSubTexture(image.scene, derivedImage.__subTextureCacheKey);\n    derivedImage.__subTextureCacheKey = nextSource.cacheKey;\n  }\n  if (prev.tint !== next.tint) {\n    if (typeof next.tint === \"number\") {\n      image.setTint(next.tint);\n    } else {\n      image.clearTint();\n    }\n  }\n  if (prev.originX !== next.originX || prev.originY !== next.originY) {\n    const originX = next.originX ?? image.originX;\n    const originY = next.originY ?? image.originY;\n    image.setOrigin(originX, originY);\n  }\n  const displayWidthChanged = prev.displayWidth !== next.displayWidth;\n  const displayHeightChanged = prev.displayHeight !== next.displayHeight;\n  const fitChanged = prev.fit !== next.fit;\n  if (displayWidthChanged || displayHeightChanged || fitChanged || textureChanged || sourceRectChanged) {\n    if (typeof next.displayWidth === \"number\" && typeof next.displayHeight === \"number\") {\n      const { scaleX, scaleY } = calculateImageFitScale(\n        image,\n        next.displayWidth,\n        next.displayHeight,\n        next.fit,\n        nextSR\n      );\n      image.setScale(scaleX, scaleY);\n    } else if (typeof next.displayWidth === \"number\") {\n      const { width } = getImageSourceDimensions(image, nextSR);\n      const scale = width > 0 ? next.displayWidth / width : 1;\n      image.setScale(scale);\n    } else if (typeof next.displayHeight === \"number\") {\n      const { height } = getImageSourceDimensions(image, nextSR);\n      const scale = height > 0 ? next.displayHeight / height : 1;\n      image.setScale(scale, scale);\n    } else {\n      image.setScale(1, 1);\n    }\n  }\n}\nexport {\n  applyImageProps,\n  calculateImageFitScale,\n  getImageSourceDimensions\n};\n//# sourceMappingURL=applyImage.js.map\n","function applyImageLayout(image, prev, next) {\n  image.__layoutProps = next;\n  if (prev.headless !== next.headless) {\n    image.__getLayoutSize = () => {\n      if (image.__layoutProps?.headless) {\n        return { width: 0.01, height: 0.01 };\n      }\n      return {\n        width: image.displayWidth,\n        height: image.displayHeight\n      };\n    };\n  }\n}\nexport {\n  applyImageLayout\n};\n//# sourceMappingURL=applyImageLayout.js.map\n","function createImageLayout(image, props) {\n  image.__layoutProps = props;\n  image.__getLayoutSize = () => {\n    if (image.__layoutProps?.headless) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: image.displayWidth,\n      height: image.displayHeight\n    };\n  };\n}\nexport {\n  createImageLayout\n};\n//# sourceMappingURL=createImageLayout.js.map\n","import { retainImageSubTexture, releaseImageSubTexture } from \"../../utils/image-subtexture-registry.js\";\nimport { applyImageProps, calculateImageFitScale, getImageSourceDimensions } from \"../appliers/applyImage.js\";\nimport { applyImageLayout } from \"../appliers/applyImageLayout.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createImageLayout } from \"../creators/createImageLayout.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst imageCreator = (scene, props) => {\n  const resolvedSource = retainImageSubTexture(scene, props.texture, props.frame, props.sourceRect);\n  const image = scene.add.image(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    resolvedSource.texture,\n    resolvedSource.frame\n  );\n  image.__subTextureCacheKey = resolvedSource.cacheKey;\n  if (resolvedSource.cacheKey) {\n    image.once?.(\"destroy\", () => {\n      releaseImageSubTexture(scene, image.__subTextureCacheKey);\n      image.__subTextureCacheKey = void 0;\n    });\n  }\n  if (props.headless) {\n    image.setOrigin(0.5, 0.5);\n  } else {\n    image.setOrigin(0, 0);\n  }\n  if (props.originX !== void 0 || props.originY !== void 0) {\n    image.setOrigin(props.originX ?? image.originX, props.originY ?? image.originY);\n  }\n  const normalizedProps = { ...props };\n  if (props.headless) {\n    delete normalizedProps.padding;\n    delete normalizedProps.margin;\n    delete normalizedProps.gap;\n  } else {\n    if (normalizedProps.rotation !== void 0) {\n      delete normalizedProps.rotation;\n    }\n  }\n  createTransform(image, normalizedProps);\n  createPhaser(image, normalizedProps);\n  if (props.tint !== void 0) {\n    image.setTint(props.tint);\n  }\n  if (props.displayWidth !== void 0 || props.displayHeight !== void 0) {\n    if (props.displayWidth !== void 0 && props.displayHeight !== void 0) {\n      const { scaleX, scaleY } = calculateImageFitScale(\n        image,\n        props.displayWidth,\n        props.displayHeight,\n        props.fit,\n        props.sourceRect\n      );\n      image.setScale(scaleX, scaleY);\n    } else if (props.displayWidth !== void 0) {\n      const { width } = getImageSourceDimensions(image, props.sourceRect);\n      const scale = width > 0 ? props.displayWidth / width : 1;\n      image.setScale(scale);\n    } else if (props.displayHeight !== void 0) {\n      const { height } = getImageSourceDimensions(image, props.sourceRect);\n      const scale = height > 0 ? props.displayHeight / height : 1;\n      image.setScale(scale);\n    }\n  }\n  createImageLayout(image, normalizedProps);\n  if (props.onReady) {\n    props.onReady(image);\n  }\n  return image;\n};\nconst imagePatcher = (node, prev, next) => {\n  if (prev.headless !== next.headless) {\n    if (next.headless) {\n      node.setOrigin(0.5, 0.5);\n    } else {\n      node.setOrigin(0, 0);\n    }\n  }\n  const normalizedPrev = { ...prev };\n  const normalizedNext = { ...next };\n  if (next.headless) {\n    delete normalizedNext.padding;\n    delete normalizedNext.margin;\n    delete normalizedNext.gap;\n  } else {\n    if (normalizedNext.rotation !== void 0) {\n      delete normalizedNext.rotation;\n    }\n  }\n  if (prev.headless) {\n    delete normalizedPrev.padding;\n    delete normalizedPrev.margin;\n    delete normalizedPrev.gap;\n  } else {\n    if (normalizedPrev.rotation !== void 0) {\n      delete normalizedPrev.rotation;\n    }\n  }\n  applyTransformProps(node, normalizedPrev, normalizedNext);\n  applyPhaserProps(node, normalizedPrev, normalizedNext);\n  applyImageProps(node, normalizedPrev, normalizedNext);\n  applyImageLayout(node, normalizedPrev, normalizedNext);\n};\nexport {\n  imageCreator,\n  imagePatcher\n};\n//# sourceMappingURL=image.js.map\n","function applyNineSliceProps(nineSlice, prev, next) {\n  const textureChanged = prev.texture !== next.texture || prev.frame !== next.frame;\n  if (textureChanged && next.texture) {\n    nineSlice.setTexture(next.texture, next.frame);\n  }\n  const sliceChanged = prev.leftWidth !== next.leftWidth || prev.rightWidth !== next.rightWidth || prev.topHeight !== next.topHeight || prev.bottomHeight !== next.bottomHeight;\n  if (sliceChanged) {\n    const width = typeof next.width === \"number\" ? next.width : nineSlice.width;\n    const height = typeof next.height === \"number\" ? next.height : nineSlice.height;\n    nineSlice.setSlices(\n      width,\n      height,\n      next.leftWidth ?? prev.leftWidth ?? 0,\n      next.rightWidth ?? prev.rightWidth ?? 0,\n      next.topHeight ?? prev.topHeight,\n      next.bottomHeight ?? prev.bottomHeight\n    );\n  }\n  const prevWidth = typeof prev.width === \"number\" ? prev.width : nineSlice.width;\n  const nextWidth = typeof next.width === \"number\" ? next.width : nineSlice.width;\n  const prevHeight = typeof prev.height === \"number\" ? prev.height : nineSlice.height;\n  const nextHeight = typeof next.height === \"number\" ? next.height : nineSlice.height;\n  if (prevWidth !== nextWidth || prevHeight !== nextHeight) {\n    nineSlice.setSize(nextWidth, nextHeight);\n  }\n  if (prev.tint !== next.tint) {\n    if (next.tint !== void 0) {\n      nineSlice.setTint(next.tint);\n    } else {\n      nineSlice.clearTint();\n    }\n  }\n}\nexport {\n  applyNineSliceProps\n};\n//# sourceMappingURL=applyNineSlice.js.map\n","function applyNineSliceLayout(nineSlice, prev, next) {\n  nineSlice.__layoutProps = next;\n  if (prev.width !== next.width || prev.height !== next.height || prev.headless !== next.headless) {\n    nineSlice.__getLayoutSize = () => {\n      if (nineSlice.__layoutProps?.headless) {\n        return { width: 0.01, height: 0.01 };\n      }\n      return {\n        width: nineSlice.width,\n        height: nineSlice.height\n      };\n    };\n  }\n}\nexport {\n  applyNineSliceLayout\n};\n//# sourceMappingURL=applyNineSliceLayout.js.map\n","function createNineSliceLayout(nineSlice, props) {\n  nineSlice.__layoutProps = props;\n  nineSlice.__getLayoutSize = () => {\n    if (nineSlice.__layoutProps?.headless) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: nineSlice.width,\n      height: nineSlice.height\n    };\n  };\n}\nexport {\n  createNineSliceLayout\n};\n//# sourceMappingURL=createNineSliceLayout.js.map\n","import { applyNineSliceProps } from \"../appliers/applyNineSlice.js\";\nimport { applyNineSliceLayout } from \"../appliers/applyNineSliceLayout.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createNineSliceLayout } from \"../creators/createNineSliceLayout.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst nineSliceCreator = (scene, props) => {\n  const initialWidth = typeof props.width === \"number\" ? props.width : 64;\n  const initialHeight = typeof props.height === \"number\" ? props.height : 64;\n  const nineSlice = scene.add.nineslice(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    props.texture,\n    props.frame,\n    initialWidth,\n    initialHeight,\n    props.leftWidth,\n    props.rightWidth,\n    props.topHeight,\n    props.bottomHeight\n  );\n  nineSlice.setOrigin(0, 0);\n  if (props.tint !== void 0) {\n    nineSlice.setTint(props.tint);\n  }\n  createTransform(nineSlice, props);\n  createPhaser(nineSlice, props);\n  createNineSliceLayout(nineSlice, props);\n  return nineSlice;\n};\nconst nineSlicePatcher = (node, prev, next) => {\n  applyTransformProps(node, prev, next);\n  applyPhaserProps(node, prev, next);\n  applyNineSliceProps(node, prev, next);\n  applyNineSliceLayout(node, prev, next);\n};\nexport {\n  nineSliceCreator,\n  nineSlicePatcher\n};\n//# sourceMappingURL=nineslice.js.map\n","function resolveNumericSize(value) {\n  return typeof value === \"number\" ? value : void 0;\n}\nfunction resolveZoneSize(zone, fallback) {\n  const size = {};\n  const width = zone.width ?? fallback.width;\n  const height = zone.height ?? fallback.height;\n  if (width !== void 0) size.width = width;\n  if (height !== void 0) size.height = height;\n  return size;\n}\nfunction withPoint(point, x, y) {\n  if (point) {\n    point.x = x;\n    point.y = y;\n    return point;\n  }\n  return { x, y };\n}\nfunction createRectSource(x, y, width, height) {\n  return {\n    x,\n    y,\n    width,\n    height,\n    contains: (px, py) => px >= x && px <= x + width && py >= y && py <= y + height,\n    getRandomPoint: (point) => withPoint(point, x + Math.random() * width, y + Math.random() * height),\n    getPoints: (quantity = 1) => {\n      const count = Math.max(1, quantity);\n      return Array.from({ length: count }, (_, index) => {\n        const progress = count === 1 ? 0 : index / (count - 1);\n        const perimeter = 2 * (width + height);\n        const distance = progress * perimeter;\n        if (distance <= width) return { x: x + distance, y };\n        if (distance <= width + height) return { x: x + width, y: y + distance - width };\n        if (distance <= width * 2 + height) {\n          return { x: x + width - (distance - width - height), y: y + height };\n        }\n        return { x, y: y + height - (distance - width * 2 - height) };\n      });\n    }\n  };\n}\nfunction createCircleSource(x, y, radius) {\n  return {\n    x,\n    y,\n    radius,\n    contains: (px, py) => {\n      const dx = px - x;\n      const dy = py - y;\n      return dx * dx + dy * dy <= radius * radius;\n    },\n    getRandomPoint: (point) => {\n      const angle = Math.random() * Math.PI * 2;\n      const distance = Math.sqrt(Math.random()) * radius;\n      return withPoint(point, x + Math.cos(angle) * distance, y + Math.sin(angle) * distance);\n    },\n    getPoints: (quantity = 1) => {\n      const count = Math.max(1, quantity);\n      return Array.from({ length: count }, (_, index) => {\n        const angle = index / count * Math.PI * 2;\n        return { x: x + Math.cos(angle) * radius, y: y + Math.sin(angle) * radius };\n      });\n    }\n  };\n}\nfunction createEllipseSource(x, y, width, height) {\n  const radiusX = width / 2;\n  const radiusY = height / 2;\n  return {\n    x,\n    y,\n    width,\n    height,\n    contains: (px, py) => {\n      const dx = (px - x) / radiusX;\n      const dy = (py - y) / radiusY;\n      return dx * dx + dy * dy <= 1;\n    },\n    getRandomPoint: (point) => {\n      const angle = Math.random() * Math.PI * 2;\n      const distance = Math.sqrt(Math.random());\n      return withPoint(\n        point,\n        x + Math.cos(angle) * radiusX * distance,\n        y + Math.sin(angle) * radiusY * distance\n      );\n    },\n    getPoints: (quantity = 1) => {\n      const count = Math.max(1, quantity);\n      return Array.from({ length: count }, (_, index) => {\n        const angle = index / count * Math.PI * 2;\n        return { x: x + Math.cos(angle) * radiusX, y: y + Math.sin(angle) * radiusY };\n      });\n    }\n  };\n}\nfunction createLineSource(x, y, endX, endY) {\n  return {\n    x,\n    y,\n    contains: (px, py) => {\n      const lengthSquared = (endX - x) ** 2 + (endY - y) ** 2;\n      if (lengthSquared === 0) return px === x && py === y;\n      const progress = Math.max(\n        0,\n        Math.min(1, ((px - x) * (endX - x) + (py - y) * (endY - y)) / lengthSquared)\n      );\n      const closestX = x + progress * (endX - x);\n      const closestY = y + progress * (endY - y);\n      return Math.hypot(px - closestX, py - closestY) <= 0.5;\n    },\n    getRandomPoint: (point) => {\n      const progress = Math.random();\n      return withPoint(point, x + (endX - x) * progress, y + (endY - y) * progress);\n    },\n    getPoints: (quantity = 1) => {\n      const count = Math.max(1, quantity);\n      return Array.from({ length: count }, (_, index) => {\n        const progress = count === 1 ? 0 : index / (count - 1);\n        return { x: x + (endX - x) * progress, y: y + (endY - y) * progress };\n      });\n    }\n  };\n}\nfunction buildZoneSource(zone, fallbackSize) {\n  const baseX = zone.x ?? 0;\n  const baseY = zone.y ?? 0;\n  const { width, height } = resolveZoneSize(zone, fallbackSize);\n  switch (zone.shape) {\n    case \"rect\":\n      return createRectSource(baseX, baseY, width ?? 1, height ?? 1);\n    case \"circle\":\n      return createCircleSource(baseX, baseY, zone.radius ?? 1);\n    case \"ellipse\":\n      return createEllipseSource(baseX, baseY, width ?? 1, height ?? 1);\n    case \"line\":\n      return createLineSource(\n        baseX,\n        baseY,\n        zone.endX ?? baseX + (width ?? 1),\n        zone.endY ?? baseY + (height ?? 1)\n      );\n    default:\n      return void 0;\n  }\n}\nfunction getTransformOwner(value) {\n  if (!value || typeof value !== \"object\") return void 0;\n  if (typeof value.getWorldTransformMatrix !== \"function\") {\n    return void 0;\n  }\n  return value;\n}\nfunction createLocalDeathZoneSource(source, owner) {\n  const transformOwner = getTransformOwner(owner);\n  if (!transformOwner) return source;\n  return {\n    ...source,\n    contains: (worldX, worldY) => {\n      const matrix = transformOwner.getWorldTransformMatrix?.();\n      if (!matrix) return source.contains(worldX, worldY);\n      const localPoint = matrix.applyInverse(worldX, worldY);\n      return source.contains(localPoint.x, localPoint.y);\n    }\n  };\n}\nfunction buildEmitZone(zone, fallbackSize = {}) {\n  const type = zone.type ?? \"random\";\n  const source = buildZoneSource(zone, fallbackSize);\n  if (!source) return void 0;\n  return { type, source };\n}\nfunction buildEmitZoneFromLayout(zone, width, height) {\n  const fallback = {};\n  const resolvedWidth = resolveNumericSize(width);\n  const resolvedHeight = resolveNumericSize(height);\n  if (resolvedWidth !== void 0) fallback.width = resolvedWidth;\n  if (resolvedHeight !== void 0) fallback.height = resolvedHeight;\n  return buildEmitZone(zone, fallback);\n}\nfunction buildDeathZone(zone, fallbackSize = {}, owner) {\n  const type = zone.mode ?? \"onEnter\";\n  const source = buildZoneSource(zone, fallbackSize);\n  if (!source) return void 0;\n  return { type, source: createLocalDeathZoneSource(source, owner) };\n}\nfunction buildDeathZonesFromLayout(zones, width, height, owner) {\n  if (!zones) return void 0;\n  const list = Array.isArray(zones) ? zones : [zones];\n  const fallback = {};\n  const resolvedWidth = resolveNumericSize(width);\n  const resolvedHeight = resolveNumericSize(height);\n  if (resolvedWidth !== void 0) fallback.width = resolvedWidth;\n  if (resolvedHeight !== void 0) fallback.height = resolvedHeight;\n  const deathZones = list.map((zone) => buildDeathZone(zone, fallback, owner)).filter((zone) => Boolean(zone));\n  return deathZones.length > 0 ? deathZones : void 0;\n}\nexport {\n  buildDeathZonesFromLayout,\n  buildEmitZone,\n  buildEmitZoneFromLayout\n};\n//# sourceMappingURL=emit-zone.js.map\n","const PARTICLE_PRESET_REGISTRY = {\n  explosion: {\n    speed: { min: 120, max: 320 },\n    scale: { start: 1, end: 0 },\n    alpha: { start: 1, end: 0 },\n    lifespan: 600,\n    quantity: 24,\n    blendMode: \"ADD\"\n  },\n  trail: {\n    speed: { min: 30, max: 80 },\n    scale: { start: 0.6, end: 0 },\n    alpha: { start: 0.8, end: 0 },\n    lifespan: 700,\n    frequency: 40\n  },\n  rain: {\n    speed: { min: 320, max: 520 },\n    angle: { min: 80, max: 100 },\n    scale: { start: 0.5, end: 0.2 },\n    alpha: { start: 0.6, end: 0.1 },\n    lifespan: 1e3,\n    frequency: 20\n  },\n  snow: {\n    speed: { min: 40, max: 120 },\n    angle: { min: 80, max: 100 },\n    gravityY: 8,\n    scale: { start: 0.6, end: 0.6 },\n    alpha: { start: 0.8, end: 0.3 },\n    lifespan: 2600,\n    frequency: 80\n  },\n  sparkle: {\n    speed: { min: 20, max: 60 },\n    scale: { start: 0.4, end: 0 },\n    alpha: { start: 1, end: 0 },\n    lifespan: 500,\n    frequency: 60,\n    blendMode: \"ADD\"\n  }\n};\nfunction resolveParticlePreset(preset, config = {}) {\n  const base = preset ? PARTICLE_PRESET_REGISTRY[preset] : void 0;\n  if (preset && !base) {\n    console.warn(`[Particles] Preset \"${String(preset)}\" not found in registry`);\n  }\n  return {\n    ...base ?? {},\n    ...config\n  };\n}\nexport {\n  PARTICLE_PRESET_REGISTRY,\n  resolveParticlePreset\n};\n//# sourceMappingURL=preset-registry.js.map\n","function isParticleEmitter(target) {\n  return !!target && typeof target.explode === \"function\";\n}\nfunction getFirstEmitter(manager) {\n  if (!manager) return null;\n  if (manager.__emitter) return manager.__emitter;\n  const emitters = manager.emitters;\n  if (Array.isArray(emitters)) {\n    return emitters[0] ?? null;\n  }\n  if (emitters && \"list\" in emitters && Array.isArray(emitters.list)) {\n    return emitters.list[0] ?? null;\n  }\n  return null;\n}\nfunction applyEmitterConfig(emitter, config) {\n  if (!emitter) return;\n  const withConfig = emitter;\n  if (withConfig.setConfig) {\n    withConfig.setConfig(config);\n    return;\n  }\n  if (withConfig.fromJSON) {\n    withConfig.fromJSON(config);\n    return;\n  }\n  Object.assign(emitter, config);\n}\nfunction applyEmitZone(emitter, emitZone) {\n  if (!emitter || !emitZone) return;\n  const withZone = emitter;\n  if (withZone.setEmitZone) {\n    withZone.setEmitZone(emitZone);\n    return;\n  }\n}\nfunction applyDeathZone(emitter, deathZone) {\n  if (!emitter) return;\n  const withZone = emitter;\n  const isDefined = (value) => value !== null && value !== void 0;\n  const normalized = Array.isArray(deathZone) ? deathZone.filter(isDefined) : deathZone ? [deathZone] : [];\n  const hasZone = normalized.length > 0;\n  if (hasZone && withZone.setDeathZone) {\n    withZone.setDeathZone(normalized);\n    return;\n  }\n  if (!hasZone) {\n    if (withZone.clearDeathZones) {\n      withZone.clearDeathZones();\n      return;\n    }\n    if (withZone.deathZones) {\n      withZone.deathZones = [];\n    }\n    return;\n  }\n  if (withZone.clearDeathZones) {\n    withZone.clearDeathZones();\n  }\n  if (withZone.addDeathZone) {\n    withZone.addDeathZone(normalized);\n    return;\n  }\n  if (withZone.deathZones) {\n    withZone.deathZones = normalized;\n  }\n}\nfunction mergeDeathZones(base, extra) {\n  const baseList = Array.isArray(base) ? base : base ? [base] : [];\n  const extraList = extra ?? [];\n  const merged = [...baseList, ...extraList];\n  return merged.length > 0 ? merged : void 0;\n}\nexport {\n  applyDeathZone,\n  applyEmitZone,\n  applyEmitterConfig,\n  getFirstEmitter,\n  isParticleEmitter,\n  mergeDeathZones\n};\n//# sourceMappingURL=utils.js.map\n","import { buildEmitZoneFromLayout, buildDeathZonesFromLayout } from \"../../particles/emit-zone.js\";\nimport { resolveParticlePreset } from \"../../particles/preset-registry.js\";\nimport { isParticleEmitter, getFirstEmitter, applyEmitterConfig, applyEmitZone, mergeDeathZones, applyDeathZone } from \"../../particles/utils.js\";\nfunction applyParticlesProps(manager, prev, next) {\n  if (!manager) return;\n  const textureChanged = prev.texture !== next.texture || prev.frame !== next.frame;\n  if (textureChanged && next.texture && \"setTexture\" in manager && manager.setTexture) {\n    manager.setTexture(next.texture, next.frame);\n  }\n  const configChanged = prev.preset !== next.preset || prev.config !== next.config || prev.emitZone !== next.emitZone || prev.zone !== next.zone || prev.deathZones !== next.deathZones || prev.excludeZones !== next.excludeZones || prev.width !== next.width || prev.height !== next.height;\n  if (configChanged) {\n    const resolvedConfig = resolveParticlePreset(next.preset, next.config);\n    let emitter;\n    if (isParticleEmitter(manager)) {\n      emitter = manager;\n    } else {\n      const managerLike = manager;\n      emitter = managerLike.__emitter ?? getFirstEmitter(managerLike) ?? null;\n      if (!emitter && managerLike.createEmitter) {\n        const created = managerLike.createEmitter(resolvedConfig);\n        emitter = created ?? null;\n      }\n      managerLike.__emitter = emitter;\n    }\n    if (!emitter) return;\n    applyEmitterConfig(emitter, resolvedConfig);\n    const emitZoneProps = next.emitZone ?? next.zone;\n    const deathZoneProps = next.deathZones ?? next.excludeZones;\n    if (emitZoneProps) {\n      const emitZone = buildEmitZoneFromLayout(emitZoneProps, next.width, next.height);\n      if (emitZone) {\n        applyEmitZone(emitter, emitZone);\n      }\n    }\n    const deathZones = buildDeathZonesFromLayout(deathZoneProps, next.width, next.height, manager);\n    const combined = mergeDeathZones(\n      resolvedConfig.deathZone,\n      deathZones\n    );\n    applyDeathZone(emitter, combined);\n  }\n}\nexport {\n  applyParticlesProps\n};\n//# sourceMappingURL=applyParticles.js.map\n","function applyParticlesLayout(particles, _prev, next) {\n  particles.__layoutProps = next;\n}\nexport {\n  applyParticlesLayout\n};\n//# sourceMappingURL=applyParticlesLayout.js.map\n","function createParticlesLayout(particles, props) {\n  particles.__layoutProps = props;\n  particles.__getLayoutSize = () => ({ width: 0.01, height: 0.01 });\n}\nexport {\n  createParticlesLayout\n};\n//# sourceMappingURL=createParticlesLayout.js.map\n","import { buildEmitZoneFromLayout, buildDeathZonesFromLayout } from \"../../particles/emit-zone.js\";\nimport { resolveParticlePreset } from \"../../particles/preset-registry.js\";\nimport { isParticleEmitter, getFirstEmitter, mergeDeathZones, applyDeathZone } from \"../../particles/utils.js\";\nimport { applyParticlesProps } from \"../appliers/applyParticles.js\";\nimport { applyParticlesLayout } from \"../appliers/applyParticlesLayout.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createParticlesLayout } from \"../creators/createParticlesLayout.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst particlesCreator = (scene, props) => {\n  const resolvedConfig = {\n    ...resolveParticlePreset(props.preset, props.config)\n  };\n  const emitZoneProps = props.emitZone ?? props.zone;\n  const deathZoneProps = props.deathZones ?? props.excludeZones;\n  if (emitZoneProps) {\n    const emitZone = buildEmitZoneFromLayout(emitZoneProps, props.width, props.height);\n    if (emitZone) {\n      const configWithZone = resolvedConfig;\n      configWithZone.emitZone = emitZone;\n    }\n  }\n  const particles = scene.add.particles(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    props.texture,\n    resolvedConfig\n  );\n  if (props.frame !== void 0) {\n    const configWithFrame = resolvedConfig;\n    configWithFrame.frame = props.frame;\n    if (\"setTexture\" in particles && particles.setTexture) {\n      particles.setTexture(props.texture, props.frame);\n    }\n  }\n  const emitter = isParticleEmitter(particles) ? particles : getFirstEmitter(particles);\n  if (!isParticleEmitter(particles)) {\n    particles.__emitter = emitter;\n  }\n  if (\"setOrigin\" in particles && typeof particles.setOrigin === \"function\") {\n    particles.setOrigin(0, 0);\n  }\n  createTransform(particles, props);\n  createPhaser(particles, props);\n  createParticlesLayout(particles, props);\n  if (deathZoneProps && emitter) {\n    const deathZones = buildDeathZonesFromLayout(\n      deathZoneProps,\n      props.width,\n      props.height,\n      particles\n    );\n    const combinedDeathZones = mergeDeathZones(\n      resolvedConfig.deathZone,\n      deathZones\n    );\n    if (combinedDeathZones) {\n      applyDeathZone(emitter, combinedDeathZones);\n    }\n  }\n  if (props.onReady) {\n    props.onReady(particles);\n  }\n  return particles;\n};\nconst particlesPatcher = (node, prev, next) => {\n  applyTransformProps(node, prev, next);\n  applyPhaserProps(node, prev, next);\n  applyParticlesProps(node, prev, next);\n  applyParticlesLayout(node, prev, next);\n};\nexport {\n  particlesCreator,\n  particlesPatcher\n};\n//# sourceMappingURL=particles.js.map\n","function getOriginalTextureDimensions(sprite) {\n  const frame = sprite.frame;\n  return {\n    width: frame.width,\n    height: frame.height\n  };\n}\nfunction calculateFitScale(sprite, targetWidth, targetHeight, fit = \"fill\") {\n  const { width: textureWidth, height: textureHeight } = getOriginalTextureDimensions(sprite);\n  if (textureWidth === 0 || textureHeight === 0) {\n    return { scaleX: 1, scaleY: 1 };\n  }\n  if (fit === \"fill\") {\n    return {\n      scaleX: targetWidth / textureWidth,\n      scaleY: targetHeight / textureHeight\n    };\n  }\n  const targetAspect = targetWidth / targetHeight;\n  const textureAspect = textureWidth / textureHeight;\n  if (fit === \"contain\") {\n    const scale = targetAspect > textureAspect ? targetHeight / textureHeight : targetWidth / textureWidth;\n    return { scaleX: scale, scaleY: scale };\n  }\n  if (fit === \"cover\") {\n    const scale = targetAspect < textureAspect ? targetHeight / textureHeight : targetWidth / textureWidth;\n    return { scaleX: scale, scaleY: scale };\n  }\n  return { scaleX: 1, scaleY: 1 };\n}\nfunction applySpriteProps(sprite, prev, next) {\n  const textureChanged = prev.texture !== next.texture || prev.frame !== next.frame;\n  if (textureChanged && next.texture) {\n    sprite.setTexture(next.texture, next.frame);\n  }\n  if (prev.tint !== next.tint) {\n    if (typeof next.tint === \"number\") {\n      sprite.setTint(next.tint);\n    } else {\n      sprite.clearTint();\n    }\n  }\n  if (prev.originX !== next.originX || prev.originY !== next.originY) {\n    const originX = next.originX ?? sprite.originX;\n    const originY = next.originY ?? sprite.originY;\n    sprite.setOrigin(originX, originY);\n  }\n  const displayWidthChanged = prev.displayWidth !== next.displayWidth;\n  const displayHeightChanged = prev.displayHeight !== next.displayHeight;\n  const fitChanged = prev.fit !== next.fit;\n  if (displayWidthChanged || displayHeightChanged || fitChanged || textureChanged) {\n    if (typeof next.displayWidth === \"number\" && typeof next.displayHeight === \"number\") {\n      const fit = next.fit ?? \"fill\";\n      if (fit === \"fill\") {\n        sprite.setDisplaySize(next.displayWidth, next.displayHeight);\n      } else {\n        const { scaleX, scaleY } = calculateFitScale(\n          sprite,\n          next.displayWidth,\n          next.displayHeight,\n          fit\n        );\n        sprite.setScale(scaleX, scaleY);\n      }\n    } else if (typeof next.displayWidth === \"number\") {\n      const { width: origWidth } = getOriginalTextureDimensions(sprite);\n      const scale = next.displayWidth / origWidth;\n      sprite.setScale(scale);\n    } else if (typeof next.displayHeight === \"number\") {\n      const { height: origHeight } = getOriginalTextureDimensions(sprite);\n      const scale = next.displayHeight / origHeight;\n      sprite.setScale(scale, scale);\n    } else {\n      sprite.setScale(1);\n    }\n  }\n  const animationChanged = prev.animationKey !== next.animationKey || prev.loop !== next.loop || prev.repeatDelay !== next.repeatDelay;\n  if (animationChanged) {\n    if (sprite.anims.isPlaying) {\n      sprite.anims.stop();\n    }\n    if (next.animationKey) {\n      sprite.anims.play({\n        key: next.animationKey,\n        repeat: next.loop ? -1 : 0,\n        repeatDelay: next.repeatDelay ?? 0\n      });\n    }\n  }\n  const callbacksChanged = prev.onAnimationStart !== next.onAnimationStart || prev.onAnimationComplete !== next.onAnimationComplete || prev.onAnimationRepeat !== next.onAnimationRepeat || prev.onAnimationUpdate !== next.onAnimationUpdate;\n  if (callbacksChanged) {\n    sprite.off(\"animationstart\");\n    sprite.off(\"animationcomplete\");\n    sprite.off(\"animationrepeat\");\n    sprite.off(\"animationupdate\");\n    if (next.onAnimationStart) {\n      sprite.on(\"animationstart\", (anim) => {\n        next.onAnimationStart?.(anim.key);\n      });\n    }\n    if (next.onAnimationComplete) {\n      sprite.on(\"animationcomplete\", (anim) => {\n        next.onAnimationComplete?.(anim.key);\n      });\n    }\n    if (next.onAnimationRepeat) {\n      sprite.on(\"animationrepeat\", (anim) => {\n        next.onAnimationRepeat?.(anim.key);\n      });\n    }\n    if (next.onAnimationUpdate) {\n      sprite.on(\n        \"animationupdate\",\n        (anim, frame) => {\n          next.onAnimationUpdate?.(anim.key, frame);\n        }\n      );\n    }\n  }\n}\nexport {\n  applySpriteProps\n};\n//# sourceMappingURL=applySprite.js.map\n","function applySpriteLayout(sprite, _prev, next) {\n  sprite.__layoutProps = next;\n}\nexport {\n  applySpriteLayout\n};\n//# sourceMappingURL=applySpriteLayout.js.map\n","function createSpriteLayout(sprite, props) {\n  sprite.__layoutProps = props;\n  sprite.__getLayoutSize = () => {\n    return { width: 0.01, height: 0.01 };\n  };\n}\nexport {\n  createSpriteLayout\n};\n//# sourceMappingURL=createSpriteLayout.js.map\n","import { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applySpriteProps } from \"../appliers/applySprite.js\";\nimport { applySpriteLayout } from \"../appliers/applySpriteLayout.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { createSpriteLayout } from \"../creators/createSpriteLayout.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst spriteCreator = (scene, props) => {\n  const sprite = scene.add.sprite(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    props.texture,\n    props.frame\n  );\n  sprite.setOrigin(0.5, 0.5);\n  if (props.originX !== void 0 || props.originY !== void 0) {\n    sprite.setOrigin(props.originX ?? sprite.originX, props.originY ?? sprite.originY);\n  }\n  createTransform(sprite, props);\n  createPhaser(sprite, props);\n  if (props.tint !== void 0) {\n    sprite.setTint(props.tint);\n  }\n  if (props.displayWidth !== void 0 || props.displayHeight !== void 0) {\n    if (props.displayWidth !== void 0 && props.displayHeight !== void 0) {\n      const fit = props.fit ?? \"fill\";\n      const textureWidth = sprite.width;\n      const textureHeight = sprite.height;\n      if (textureWidth > 0 && textureHeight > 0) {\n        if (fit === \"fill\") {\n          sprite.setDisplaySize(props.displayWidth, props.displayHeight);\n        } else if (fit === \"contain\") {\n          const targetAspect = props.displayWidth / props.displayHeight;\n          const textureAspect = textureWidth / textureHeight;\n          const scale = targetAspect > textureAspect ? props.displayHeight / textureHeight : props.displayWidth / textureWidth;\n          sprite.setScale(scale);\n        } else if (fit === \"cover\") {\n          const targetAspect = props.displayWidth / props.displayHeight;\n          const textureAspect = textureWidth / textureHeight;\n          const scale = targetAspect < textureAspect ? props.displayHeight / textureHeight : props.displayWidth / textureWidth;\n          sprite.setScale(scale);\n        }\n      }\n    } else if (props.displayWidth !== void 0) {\n      const scale = props.displayWidth / sprite.width;\n      sprite.setScale(scale);\n    } else if (props.displayHeight !== void 0) {\n      const scale = props.displayHeight / sprite.height;\n      sprite.setScale(scale);\n    }\n  }\n  if (props.animationKey) {\n    if (sprite.scene && sprite.scene.anims.exists(props.animationKey)) {\n      sprite.anims.play({\n        key: props.animationKey,\n        repeat: props.loop ? -1 : 0,\n        repeatDelay: props.repeatDelay ?? 0\n      });\n    }\n  }\n  if (props.onAnimationStart) {\n    sprite.on(\"animationstart\", (anim) => {\n      props.onAnimationStart?.(anim.key);\n    });\n  }\n  if (props.onAnimationComplete) {\n    sprite.on(\"animationcomplete\", (anim) => {\n      props.onAnimationComplete?.(anim.key);\n    });\n  }\n  if (props.onAnimationRepeat) {\n    sprite.on(\"animationrepeat\", (anim) => {\n      props.onAnimationRepeat?.(anim.key);\n    });\n  }\n  if (props.onAnimationUpdate) {\n    sprite.on(\n      \"animationupdate\",\n      (anim, frame) => {\n        props.onAnimationUpdate?.(anim.key, frame);\n      }\n    );\n  }\n  createSpriteLayout(sprite, props);\n  if (props.onReady) {\n    props.onReady(sprite);\n  }\n  return sprite;\n};\nconst spritePatcher = (node, prev, next) => {\n  applyTransformProps(node, prev, next);\n  applyPhaserProps(node, prev, next);\n  applySpriteProps(node, prev, next);\n  applySpriteLayout(node, prev, next);\n};\nexport {\n  spriteCreator,\n  spritePatcher\n};\n//# sourceMappingURL=sprite.js.map\n","function getDefaultExportFromCjs(x) {\n  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, \"default\") ? x[\"default\"] : x;\n}\nexport {\n  getDefaultExportFromCjs\n};\n//# sourceMappingURL=_commonjsHelpers.js.map\n","var fastDeepEqual;\nvar hasRequiredFastDeepEqual;\nfunction requireFastDeepEqual() {\n  if (hasRequiredFastDeepEqual) return fastDeepEqual;\n  hasRequiredFastDeepEqual = 1;\n  fastDeepEqual = function equal(a, b) {\n    if (a === b) return true;\n    if (a && b && typeof a == \"object\" && typeof b == \"object\") {\n      if (a.constructor !== b.constructor) return false;\n      var length, i, keys;\n      if (Array.isArray(a)) {\n        length = a.length;\n        if (length != b.length) return false;\n        for (i = length; i-- !== 0; )\n          if (!equal(a[i], b[i])) return false;\n        return true;\n      }\n      if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n      if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n      if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n      keys = Object.keys(a);\n      length = keys.length;\n      if (length !== Object.keys(b).length) return false;\n      for (i = length; i-- !== 0; )\n        if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n      for (i = length; i-- !== 0; ) {\n        var key = keys[i];\n        if (!equal(a[key], b[key])) return false;\n      }\n      return true;\n    }\n    return a !== a && b !== b;\n  };\n  return fastDeepEqual;\n}\nexport {\n  requireFastDeepEqual as __require\n};\n//# sourceMappingURL=index.js.map\n","import { getDefaultExportFromCjs } from \"./_commonjsHelpers.js\";\nimport { __require as requireFastDeepEqual } from \"../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js\";\nvar fastDeepEqualExports = requireFastDeepEqual();\nconst index = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);\nexport {\n  index as default\n};\n//# sourceMappingURL=index.js.map\n","import * as index from \"../_virtual/index.js\";\nimport index$1 from \"../_virtual/index.js\";\nconst equal = typeof index === \"function\" ? index : index$1;\nexport {\n  equal as default\n};\n//# sourceMappingURL=fast-deep-equal.js.map\n","import { parseSize, resolveSize, alpha, numberToRgb } from \"@number10/jsx-core\";\nimport equal from \"../../utils/fast-deep-equal.js\";\nconst RESETTABLE_TEXT_STYLE_DEFAULTS = {\n  fontStyle: \"normal\",\n  fontWeight: \"normal\"\n};\nfunction clampAlpha(value) {\n  if (!Number.isFinite(value)) return 1;\n  return Math.max(0, Math.min(1, value));\n}\nfunction parseTextBackgroundColor(value) {\n  if (typeof value === \"number\") {\n    const rgb = numberToRgb(value);\n    return { red: rgb.r, green: rgb.g, blue: rgb.b, alpha: 1 };\n  }\n  const normalized = value.trim();\n  if (normalized.length === 0) {\n    return null;\n  }\n  if (normalized.startsWith(\"#\")) {\n    const hex = normalized.slice(1);\n    if (hex.length === 3 || hex.length === 4) {\n      const r = hex[0] ?? \"0\";\n      const g = hex[1] ?? \"0\";\n      const b = hex[2] ?? \"0\";\n      const a = hex[3] ?? \"f\";\n      return {\n        red: parseInt(r + r, 16),\n        green: parseInt(g + g, 16),\n        blue: parseInt(b + b, 16),\n        alpha: parseInt(a + a, 16) / 255\n      };\n    }\n    if (hex.length === 6 || hex.length === 8) {\n      return {\n        red: parseInt(hex.slice(0, 2), 16),\n        green: parseInt(hex.slice(2, 4), 16),\n        blue: parseInt(hex.slice(4, 6), 16),\n        alpha: hex.length === 8 ? parseInt(hex.slice(6, 8), 16) / 255 : 1\n      };\n    }\n  }\n  const rgbaMatch = normalized.match(\n    /^rgba?\\(\\s*([0-9.]+)\\s*,\\s*([0-9.]+)\\s*,\\s*([0-9.]+)\\s*(?:,\\s*([0-9.]+)\\s*)?\\)$/i\n  );\n  if (rgbaMatch) {\n    return {\n      red: Math.max(0, Math.min(255, Number(rgbaMatch[1]))),\n      green: Math.max(0, Math.min(255, Number(rgbaMatch[2]))),\n      blue: Math.max(0, Math.min(255, Number(rgbaMatch[3]))),\n      alpha: clampAlpha(Number(rgbaMatch[4] ?? 1))\n    };\n  }\n  return null;\n}\nfunction normalizeTextStyleBackground(style, alphaValue) {\n  if (style === void 0 || alphaValue === void 0 || style.backgroundColor === void 0) {\n    return style;\n  }\n  const parsed = parseTextBackgroundColor(style.backgroundColor);\n  if (!parsed) {\n    return style;\n  }\n  const effectiveAlpha = clampAlpha(parsed.alpha * clampAlpha(alphaValue));\n  const colorNumber = parsed.red << 16 | parsed.green << 8 | parsed.blue;\n  return {\n    ...style,\n    backgroundColor: alpha(colorNumber, effectiveAlpha)\n  };\n}\nfunction getTextViewport(node) {\n  const surfaceViewport = node.__surfaceContext?.viewport;\n  if (typeof surfaceViewport?.width === \"number\" && typeof surfaceViewport?.height === \"number\") {\n    return surfaceViewport;\n  }\n  const width = node.scene?.scale?.width;\n  const height = node.scene?.scale?.height;\n  return {\n    width: typeof width === \"number\" ? width : 800,\n    height: typeof height === \"number\" ? height : 600\n  };\n}\nfunction normalizeResettableTextStyle(nextStyle, prevStyle) {\n  if (nextStyle === void 0) {\n    return void 0;\n  }\n  let resolvedStyle = nextStyle;\n  for (const key of Object.keys(RESETTABLE_TEXT_STYLE_DEFAULTS)) {\n    if (nextStyle[key] !== void 0 || prevStyle?.[key] === void 0) {\n      continue;\n    }\n    if (resolvedStyle === nextStyle) {\n      resolvedStyle = { ...nextStyle };\n    }\n    resolvedStyle[key] = RESETTABLE_TEXT_STYLE_DEFAULTS[key];\n  }\n  return resolvedStyle;\n}\nfunction applyTextProps(node, prev, next) {\n  if (node.active === false || node.scene && !node.scene.sys.game) {\n    return;\n  }\n  let needsUpdate = false;\n  if (prev.text !== next.text && typeof next.text === \"string\") {\n    node.setText(next.text);\n    needsUpdate = true;\n  }\n  const styleChanged = next.style !== void 0 && !equal(next.style, prev.style || {});\n  const alphaChanged = next.style?.backgroundColor !== void 0 && clampAlpha(next.alpha ?? 1) !== clampAlpha(prev.alpha ?? 1);\n  if (styleChanged || alphaChanged) {\n    try {\n      const resettableStyle = normalizeResettableTextStyle(next.style, prev.style);\n      const resolvedStyle = normalizeTextStyleBackground(resettableStyle, next.alpha);\n      if (resolvedStyle !== void 0) {\n        node.setStyle(resolvedStyle);\n        needsUpdate = true;\n      }\n    } catch (error) {\n      console.warn(\"Failed to apply text style (scene may be transitioning):\", error);\n    }\n  }\n  if (next.maxWidth !== prev.maxWidth && next.maxWidth !== void 0) {\n    const viewport = getTextViewport(node);\n    const parsedMaxWidth = parseSize(next.maxWidth);\n    const resolvedMaxWidth = resolveSize(\n      parsedMaxWidth,\n      viewport.width,\n      void 0,\n      void 0,\n      viewport\n    );\n    node.setWordWrapWidth(resolvedMaxWidth, true);\n    needsUpdate = true;\n  }\n  if (needsUpdate && node.updateText) {\n    node.updateText();\n  }\n}\nexport {\n  applyTextProps\n};\n//# sourceMappingURL=applyText.js.map\n","function applyTextLayout(text, _prev, next) {\n  text.__layoutProps = next;\n  text.__getLayoutSize = () => {\n    if (text.__layoutProps?.headless) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: text.width,\n      height: text.height\n    };\n  };\n}\nexport {\n  applyTextLayout\n};\n//# sourceMappingURL=applyTextLayout.js.map\n","function createTextLayout(text, props) {\n  text.__layoutProps = props;\n  text.__getLayoutSize = () => {\n    if (text.__layoutProps?.headless) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: text.width,\n      height: text.height\n    };\n  };\n}\nexport {\n  createTextLayout\n};\n//# sourceMappingURL=createTextLayout.js.map\n","import { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTextProps } from \"../appliers/applyText.js\";\nimport { applyTextLayout } from \"../appliers/applyTextLayout.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { createTextLayout } from \"../creators/createTextLayout.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nconst textCreator = (scene, props) => {\n  const text = scene.add.text(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    props.text ?? \"\",\n    props.style\n  );\n  if (props.headless) {\n    text.setOrigin(0.5, 0.5);\n  } else {\n    text.setOrigin(0, 0);\n  }\n  const normalizedProps = { ...props };\n  if (props.headless) {\n    delete normalizedProps.padding;\n    delete normalizedProps.margin;\n    delete normalizedProps.gap;\n  } else {\n    if (normalizedProps.rotation !== void 0) {\n      delete normalizedProps.rotation;\n    }\n  }\n  createTransform(text, normalizedProps);\n  createPhaser(text, normalizedProps);\n  applyTextProps(text, {}, normalizedProps);\n  createTextLayout(text, normalizedProps);\n  return text;\n};\nconst textPatcher = (node, prev, next) => {\n  if (prev.headless !== next.headless) {\n    if (next.headless) {\n      node.setOrigin(0.5, 0.5);\n    } else {\n      node.setOrigin(0, 0);\n    }\n  }\n  const normalizedPrev = { ...prev };\n  const normalizedNext = { ...next };\n  if (next.headless) {\n    delete normalizedNext.padding;\n    delete normalizedNext.margin;\n    delete normalizedNext.gap;\n  } else {\n    if (normalizedNext.rotation !== void 0) {\n      delete normalizedNext.rotation;\n    }\n  }\n  if (prev.headless) {\n    delete normalizedPrev.padding;\n    delete normalizedPrev.margin;\n    delete normalizedPrev.gap;\n  } else {\n    if (normalizedPrev.rotation !== void 0) {\n      delete normalizedPrev.rotation;\n    }\n  }\n  applyTransformProps(node, normalizedPrev, normalizedNext);\n  applyPhaserProps(node, normalizedPrev, normalizedNext);\n  applyTextProps(node, normalizedPrev, normalizedNext);\n  applyTextLayout(node, normalizedPrev, normalizedNext);\n};\nexport {\n  textCreator,\n  textPatcher\n};\n//# sourceMappingURL=text.js.map\n","import { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nfunction createTileSpriteLayout(tileSprite, props) {\n  tileSprite.__layoutProps = props;\n  tileSprite.__getLayoutSize = () => {\n    if (tileSprite.__layoutProps?.headless) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: tileSprite.width,\n      height: tileSprite.height\n    };\n  };\n}\nfunction applyTileSpriteProps(tileSprite, prev, next) {\n  if ((prev.texture !== next.texture || prev.frame !== next.frame) && next.texture) {\n    tileSprite.setTexture(next.texture, next.frame);\n  }\n  if ((prev.width !== next.width || prev.height !== next.height) && typeof next.width === \"number\" && typeof next.height === \"number\") {\n    tileSprite.setSize(next.width, next.height);\n  }\n  if (prev.tilePositionX !== next.tilePositionX && typeof next.tilePositionX === \"number\") {\n    tileSprite.tilePositionX = next.tilePositionX;\n  }\n  if (prev.tilePositionY !== next.tilePositionY && typeof next.tilePositionY === \"number\") {\n    tileSprite.tilePositionY = next.tilePositionY;\n  }\n  if (prev.tileScaleX !== next.tileScaleX && typeof next.tileScaleX === \"number\") {\n    tileSprite.tileScaleX = next.tileScaleX;\n  }\n  if (prev.tileScaleY !== next.tileScaleY && typeof next.tileScaleY === \"number\") {\n    tileSprite.tileScaleY = next.tileScaleY;\n  }\n  if (prev.tint !== next.tint) {\n    if (typeof next.tint === \"number\") {\n      tileSprite.setTint(next.tint);\n    } else {\n      tileSprite.clearTint();\n    }\n  }\n  if (prev.originX !== next.originX || prev.originY !== next.originY) {\n    tileSprite.setOrigin(next.originX ?? tileSprite.originX, next.originY ?? tileSprite.originY);\n  }\n}\nconst tileSpriteCreator = (scene, props) => {\n  const tileSprite = scene.add.tileSprite(\n    resolveAnimatableNumber(props.x) ?? 0,\n    resolveAnimatableNumber(props.y) ?? 0,\n    props.width,\n    props.height,\n    props.texture,\n    props.frame\n  );\n  tileSprite.setOrigin(props.originX ?? 0, props.originY ?? 0);\n  createTransform(tileSprite, props);\n  createPhaser(tileSprite, props);\n  applyTileSpriteProps(tileSprite, {}, props);\n  createTileSpriteLayout(tileSprite, props);\n  props.onReady?.(tileSprite);\n  return tileSprite;\n};\nconst tileSpritePatcher = (node, prev, next) => {\n  applyTransformProps(node, prev, next);\n  applyPhaserProps(node, prev, next);\n  applyTileSpriteProps(node, prev, next);\n  const tileSprite = node;\n  if (tileSprite.__layoutProps) {\n    tileSprite.__layoutProps = next;\n  }\n};\nexport {\n  tileSpriteCreator,\n  tileSpritePatcher\n};\n//# sourceMappingURL=tilesprite.js.map\n","class PhaserVectorDrawContext {\n  constructor(graphics) {\n    this.graphics = graphics;\n  }\n  graphics;\n  clear() {\n    this.graphics.clear();\n    return this;\n  }\n  fillStyle(color, alpha = 1) {\n    this.graphics.fillStyle(color, alpha);\n    return this;\n  }\n  lineStyle(width, color, alpha = 1) {\n    this.graphics.lineStyle(width, color, alpha);\n    return this;\n  }\n  arc(x, y, radius, startAngle, endAngle, anticlockwise) {\n    this.graphics.arc(x, y, radius, startAngle, endAngle, anticlockwise);\n    return this;\n  }\n  fillCircle(x, y, radius) {\n    this.graphics.fillCircle(x, y, radius);\n    return this;\n  }\n  strokeCircle(x, y, radius) {\n    this.graphics.strokeCircle(x, y, radius);\n    return this;\n  }\n  fillRect(x, y, width, height) {\n    this.graphics.fillRect(x, y, width, height);\n    return this;\n  }\n  strokeRect(x, y, width, height) {\n    this.graphics.strokeRect(x, y, width, height);\n    return this;\n  }\n  fillRoundedRect(x, y, width, height, radius) {\n    this.graphics.fillRoundedRect(x, y, width, height, radius);\n    return this;\n  }\n  strokeRoundedRect(x, y, width, height, radius) {\n    this.graphics.strokeRoundedRect(x, y, width, height, radius);\n    return this;\n  }\n  beginPath() {\n    this.graphics.beginPath();\n    return this;\n  }\n  moveTo(x, y) {\n    this.graphics.moveTo(x, y);\n    return this;\n  }\n  lineTo(x, y) {\n    this.graphics.lineTo(x, y);\n    return this;\n  }\n  closePath() {\n    this.graphics.closePath();\n    return this;\n  }\n  fillPath() {\n    this.graphics.fillPath();\n    return this;\n  }\n  strokePath() {\n    this.graphics.strokePath();\n    return this;\n  }\n  lineBetween(x1, y1, x2, y2) {\n    this.graphics.lineBetween(x1, y1, x2, y2);\n    return this;\n  }\n  fillCircleStyled(x, y, radius, color, alpha) {\n    this.graphics.fillStyle(color, alpha);\n    this.graphics.fillCircle(x, y, radius);\n    return this;\n  }\n  strokeLine(x1, y1, x2, y2, width, color, alpha) {\n    this.graphics.lineStyle(width, color, alpha);\n    this.graphics.lineBetween(x1, y1, x2, y2);\n    return this;\n  }\n  fillArc(cx, cy, r, startAngle, endAngle, color, alpha) {\n    this.graphics.fillStyle(color, alpha);\n    this.graphics.beginPath();\n    this.graphics.moveTo(cx, cy);\n    this.graphics.arc(cx, cy, r, startAngle, endAngle);\n    this.graphics.closePath();\n    this.graphics.fillPath();\n    return this;\n  }\n}\nexport {\n  PhaserVectorDrawContext\n};\n//# sourceMappingURL=PhaserVectorDrawContext.js.map\n","import { PhaserVectorDrawContext } from \"../../vector/PhaserVectorDrawContext.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nfunction shallowEqual(a, b) {\n  if (!a || !b) return a === b;\n  if (a.length !== b.length) return false;\n  return a.every((val, i) => val === b[i]);\n}\nfunction getVectorDrawContext(node) {\n  if (!node.__vectorDrawContext) {\n    node.__vectorDrawContext = new PhaserVectorDrawContext(node);\n  }\n  return node.__vectorDrawContext;\n}\nfunction applyVectorDrawLayout(node, props) {\n  node.__layoutProps = props;\n  node.__getLayoutSize = () => {\n    if (props.headless ?? true) {\n      return { width: 0.01, height: 0.01 };\n    }\n    return {\n      width: typeof props.width === \"number\" ? props.width : 0,\n      height: typeof props.height === \"number\" ? props.height : 0\n    };\n  };\n}\nfunction validateVectorDrawLayout(props) {\n  if (props.headless === false && (typeof props.width !== \"number\" || typeof props.height !== \"number\")) {\n    throw new Error(\n      \"VectorDrawContent requires explicit width and height props when headless=false\"\n    );\n  }\n}\nfunction drawVectorContent(node, props) {\n  if (!props.onDraw) return;\n  if (props.autoClear !== false) {\n    node.clear();\n  }\n  props.onDraw(getVectorDrawContext(node), props);\n  node.__drawDependencies = props.dependencies;\n}\nconst vectorDrawCreator = (scene, props) => {\n  validateVectorDrawLayout(props);\n  const graphics = scene.add.graphics();\n  graphics.setPosition(resolveAnimatableNumber(props.x) ?? 0, resolveAnimatableNumber(props.y) ?? 0);\n  createTransform(graphics, props);\n  createPhaser(graphics, props);\n  applyVectorDrawLayout(graphics, props);\n  graphics.__drawDependencies = props.dependencies;\n  graphics.__vectorDrawContext = new PhaserVectorDrawContext(graphics);\n  if (props.onDraw) {\n    props.onDraw(graphics.__vectorDrawContext, props);\n  }\n  return graphics;\n};\nconst vectorDrawPatcher = (node, prev, next) => {\n  const vectorNode = node;\n  validateVectorDrawLayout(next);\n  applyTransformProps(vectorNode, prev, next);\n  applyPhaserProps(vectorNode, prev, next);\n  applyVectorDrawLayout(vectorNode, next);\n  const depsChanged = !shallowEqual(vectorNode.__drawDependencies, next.dependencies);\n  if (depsChanged) {\n    drawVectorContent(vectorNode, next);\n  }\n};\nexport {\n  vectorDrawCreator,\n  vectorDrawPatcher\n};\n//# sourceMappingURL=vectorDraw.js.map\n","import { isAnimatedSignal, resolveBorderSides, resolveCornerRadii, isUniformBorder, drawBorderGeometry, hasAnyCornerRadius } from \"@number10/jsx-core\";\nimport \"phaser\";\nimport { PhaserVectorDrawContext } from \"../vector/PhaserVectorDrawContext.js\";\nconst sceneBackgroundTextureCaches = /* @__PURE__ */ new WeakMap();\nclass OffsetVectorDrawContext {\n  constructor(base, dx, dy) {\n    this.base = base;\n    this.dx = dx;\n    this.dy = dy;\n  }\n  base;\n  dx;\n  dy;\n  clear() {\n    this.base.clear();\n    return this;\n  }\n  fillStyle(color, alpha) {\n    this.base.fillStyle(color, alpha);\n    return this;\n  }\n  lineStyle(width, color, alpha) {\n    this.base.lineStyle(width, color, alpha);\n    return this;\n  }\n  arc(x, y, radius, startAngle, endAngle, anticlockwise) {\n    this.base.arc(x + this.dx, y + this.dy, radius, startAngle, endAngle, anticlockwise);\n    return this;\n  }\n  fillCircle(x, y, radius) {\n    this.base.fillCircle(x + this.dx, y + this.dy, radius);\n    return this;\n  }\n  strokeCircle(x, y, radius) {\n    this.base.strokeCircle(x + this.dx, y + this.dy, radius);\n    return this;\n  }\n  fillCircleStyled(x, y, radius, color, alpha) {\n    this.base.fillCircleStyled(x + this.dx, y + this.dy, radius, color, alpha);\n    return this;\n  }\n  fillRect(x, y, width, height) {\n    this.base.fillRect(x + this.dx, y + this.dy, width, height);\n    return this;\n  }\n  strokeRect(x, y, width, height) {\n    this.base.strokeRect(x + this.dx, y + this.dy, width, height);\n    return this;\n  }\n  fillRoundedRect(x, y, width, height, radius) {\n    this.base.fillRoundedRect(x + this.dx, y + this.dy, width, height, radius);\n    return this;\n  }\n  strokeRoundedRect(x, y, width, height, radius) {\n    this.base.strokeRoundedRect(x + this.dx, y + this.dy, width, height, radius);\n    return this;\n  }\n  beginPath() {\n    this.base.beginPath();\n    return this;\n  }\n  moveTo(x, y) {\n    this.base.moveTo(x + this.dx, y + this.dy);\n    return this;\n  }\n  lineTo(x, y) {\n    this.base.lineTo(x + this.dx, y + this.dy);\n    return this;\n  }\n  closePath() {\n    this.base.closePath();\n    return this;\n  }\n  fillPath() {\n    this.base.fillPath();\n    return this;\n  }\n  strokePath() {\n    this.base.strokePath();\n    return this;\n  }\n  lineBetween(x1, y1, x2, y2) {\n    this.base.lineBetween(x1 + this.dx, y1 + this.dy, x2 + this.dx, y2 + this.dy);\n    return this;\n  }\n  strokeLine(x1, y1, x2, y2, width, color, alpha) {\n    this.base.strokeLine(\n      x1 + this.dx,\n      y1 + this.dy,\n      x2 + this.dx,\n      y2 + this.dy,\n      width,\n      color,\n      alpha\n    );\n    return this;\n  }\n  fillArc(cx, cy, r, startAngle, endAngle, color, alpha) {\n    this.base.fillArc(cx + this.dx, cy + this.dy, r, startAngle, endAngle, color, alpha);\n    return this;\n  }\n}\nfunction hasAdvancedBorder(props) {\n  const border = props.border;\n  if (!border) return false;\n  const w = resolveBorderSides(border.width);\n  return w.top > 0 || w.right > 0 || w.bottom > 0 || w.left > 0;\n}\nfunction normalizeBorderForCache(border) {\n  const width = border.width;\n  const widthStr = typeof width === \"number\" ? String(width) : `${width?.top ?? 0},${width?.right ?? 0},${width?.bottom ?? 0},${width?.left ?? 0}`;\n  return [\n    border.color ?? \"none\",\n    widthStr,\n    border.style ?? \"solid\",\n    border.dash?.join(\",\") ?? \"\",\n    border.dashOffset ?? 0,\n    border.cap ?? \"\",\n    border.join ?? \"\",\n    border.align ?? \"center\"\n  ].join(\"|\");\n}\nfunction hasRenderableBackground(props) {\n  const hasBackground = props.backgroundColor !== void 0;\n  const hasBorder = (props.borderWidth ?? 0) > 0 && props.borderColor !== void 0;\n  const hasAdvanced = hasAdvancedBorder(props);\n  return hasBackground || hasBorder || hasAdvanced;\n}\nfunction hasRoundedCorners(radius) {\n  if (typeof radius === \"number\") {\n    return radius !== 0;\n  }\n  return (radius.tl ?? 0) !== 0 || (radius.tr ?? 0) !== 0 || (radius.bl ?? 0) !== 0 || (radius.br ?? 0) !== 0;\n}\nfunction insetCornerRadius(radius, inset) {\n  const insetSingleRadius = (value) => {\n    const resolved = value ?? 0;\n    const sign = resolved < 0 ? -1 : 1;\n    return sign * Math.max(0, Math.abs(resolved) - inset);\n  };\n  if (typeof radius === \"number\") {\n    return insetSingleRadius(radius);\n  }\n  return {\n    tl: insetSingleRadius(radius.tl),\n    tr: insetSingleRadius(radius.tr),\n    bl: insetSingleRadius(radius.bl),\n    br: insetSingleRadius(radius.br)\n  };\n}\nfunction offsetCornerRadius(radius, offset) {\n  const shiftSingleRadius = (value) => Math.max(0, (value ?? 0) - offset);\n  if (typeof radius === \"number\") {\n    return shiftSingleRadius(radius);\n  }\n  return {\n    tl: shiftSingleRadius(radius.tl),\n    tr: shiftSingleRadius(radius.tr),\n    bl: shiftSingleRadius(radius.bl),\n    br: shiftSingleRadius(radius.br)\n  };\n}\nfunction resolveBackgroundPadding(props) {\n  const border = props.border;\n  if (!border) return { left: 0, top: 0, right: 0, bottom: 0 };\n  const sides = resolveBorderSides(border.width);\n  const align = border.align ?? \"center\";\n  const dotDiameterOverride = border.style === \"dotted\" ? border.dash?.[1] : void 0;\n  const resolveSidePadding = (sideWidth) => {\n    const dotRadius = dotDiameterOverride !== void 0 ? dotDiameterOverride / 2 : sideWidth / 2;\n    if (align === \"inside\") {\n      return Math.max(0, dotRadius - sideWidth / 2);\n    }\n    if (align === \"outside\") {\n      return sideWidth / 2 + dotRadius;\n    }\n    return dotRadius;\n  };\n  return {\n    left: resolveSidePadding(sides.left),\n    top: resolveSidePadding(sides.top),\n    right: resolveSidePadding(sides.right),\n    bottom: resolveSidePadding(sides.bottom)\n  };\n}\nfunction drawAdvancedBorder(graphics, w, h, cornerRadius, border, offsetX = 0, offsetY = 0) {\n  const sides = resolveBorderSides(border.width);\n  const corners = resolveCornerRadii(cornerRadius);\n  const maxSw = Math.max(sides.top, sides.right, sides.bottom, sides.left);\n  if (maxSw <= 0) return;\n  const isSolidUniform = isUniformBorder(sides) && (border.style ?? \"solid\") === \"solid\";\n  if (!isSolidUniform) {\n    const ctx = new OffsetVectorDrawContext(new PhaserVectorDrawContext(graphics), offsetX, offsetY);\n    drawBorderGeometry(ctx, { box: { x: 0, y: 0, w, h }, sides, corners }, border);\n    return;\n  }\n  const color = border.color ?? 16777215;\n  const alpha = typeof border.alpha === \"number\" ? border.alpha : 1;\n  const lineWidth = sides.top;\n  const rounded = hasAnyCornerRadius(corners);\n  const alignOff = (lw) => {\n    if (border.align === \"inside\") return lw / 2;\n    if (border.align === \"outside\") return -lw / 2;\n    return 0;\n  };\n  const offset = alignOff(lineWidth);\n  graphics.lineStyle(lineWidth, color, alpha);\n  if (rounded) {\n    graphics.strokeRoundedRect(\n      offsetX + offset,\n      offsetY + offset,\n      Math.max(0, w - offset * 2),\n      Math.max(0, h - offset * 2),\n      offsetCornerRadius(cornerRadius, offset)\n    );\n  } else {\n    graphics.strokeRect(\n      offsetX + offset,\n      offsetY + offset,\n      Math.max(0, w - offset * 2),\n      Math.max(0, h - offset * 2)\n    );\n  }\n}\nfunction drawBackground(graphics, props, width, height, offsetX = 0, offsetY = 0) {\n  if (width <= 0 || height <= 0) return;\n  const unwrap = (v, fallback) => v !== void 0 && isAnimatedSignal(v) ? v.value : v ?? fallback;\n  const bgColor = props.backgroundColor;\n  const bgAlpha = unwrap(props.backgroundAlpha, 1);\n  const cornerRadius = props.cornerRadius ?? 0;\n  const advancedBorder = hasAdvancedBorder(props);\n  const borderWidth = advancedBorder ? resolveBorderSides(props.border?.width).top : props.borderWidth ?? 0;\n  const borderAlpha = advancedBorder ? unwrap(props.border?.alpha, 1) : unwrap(props.borderAlpha, 1);\n  const hasLegacyBorder = !advancedBorder && borderWidth > 0 && props.borderColor !== void 0;\n  const resolvedBorderColor = hasLegacyBorder ? props.borderColor : void 0;\n  const rounded = hasRoundedCorners(cornerRadius);\n  if (bgColor !== void 0) {\n    graphics.fillStyle(bgColor, bgAlpha);\n  }\n  if (hasLegacyBorder) {\n    graphics.lineStyle(borderWidth, resolvedBorderColor ?? 42, borderAlpha);\n  }\n  if (rounded) {\n    if (bgColor !== void 0) {\n      graphics.fillRoundedRect(offsetX, offsetY, width, height, cornerRadius);\n    }\n    if (hasLegacyBorder) {\n      const inset = borderWidth / 2;\n      graphics.strokeRoundedRect(\n        offsetX + inset,\n        offsetY + inset,\n        Math.max(0, width - borderWidth),\n        Math.max(0, height - borderWidth),\n        insetCornerRadius(cornerRadius, inset)\n      );\n    }\n  } else {\n    if (bgColor !== void 0) {\n      graphics.fillRect(offsetX, offsetY, width, height);\n    }\n    if (hasLegacyBorder) {\n      const inset = borderWidth / 2;\n      graphics.strokeRect(\n        offsetX + inset,\n        offsetY + inset,\n        Math.max(0, width - borderWidth),\n        Math.max(0, height - borderWidth)\n      );\n    }\n  }\n  if (advancedBorder && props.border) {\n    drawAdvancedBorder(graphics, width, height, cornerRadius, props.border, offsetX, offsetY);\n  }\n}\nfunction getSceneBackgroundTextureCache(scene) {\n  let cache = sceneBackgroundTextureCaches.get(scene);\n  if (!cache) {\n    cache = /* @__PURE__ */ new Map();\n    sceneBackgroundTextureCaches.set(scene, cache);\n  }\n  return cache;\n}\nfunction hashCacheKey(value) {\n  let hash = 2166136261;\n  for (let i = 0; i < value.length; i++) {\n    hash ^= value.charCodeAt(i);\n    hash = Math.imul(hash, 16777619);\n  }\n  return (hash >>> 0).toString(36);\n}\nfunction normalizeCornerRadius(radius) {\n  if (typeof radius === \"number\") {\n    return String(radius);\n  }\n  if (!radius) {\n    return \"0\";\n  }\n  return `${radius.tl ?? 0},${radius.tr ?? 0},${radius.bl ?? 0},${radius.br ?? 0}`;\n}\nfunction clearExistingCanvasTexture(scene, textureKey) {\n  if (!scene.textures.exists(textureKey)) {\n    return;\n  }\n  const texture = scene.textures.get(textureKey);\n  const source = texture?.getSourceImage?.();\n  if (!source || typeof source.getContext !== \"function\") {\n    return;\n  }\n  const canvas = source;\n  const ctx = canvas.getContext(\"2d\", { willReadFrequently: true });\n  if (!ctx) {\n    return;\n  }\n  ctx.clearRect(0, 0, canvas.width ?? 0, canvas.height ?? 0);\n}\nfunction getBackgroundImageCacheKey(props, width, height) {\n  const padding = resolveBackgroundPadding(props);\n  const textureWidth = Math.max(1, Math.ceil(width + padding.left + padding.right));\n  const textureHeight = Math.max(1, Math.ceil(height + padding.top + padding.bottom));\n  const advanced = hasAdvancedBorder(props) && props.border;\n  const borderSuffix = advanced ? normalizeBorderForCache(props.border ?? {}) : \"\";\n  return [\n    textureWidth,\n    textureHeight,\n    props.backgroundColor ?? \"none\",\n    1,\n    // backgroundAlpha — handled via Image.alpha\n    normalizeCornerRadius(props.cornerRadius),\n    props.borderWidth ?? 0,\n    props.borderColor ?? \"none\",\n    1,\n    // borderAlpha — handled via Image.alpha\n    advanced ? `adv:${borderSuffix}` : \"\"\n  ].join(\"|\");\n}\nfunction createBackgroundImage(scene, props, width, height) {\n  if (!hasRenderableBackground(props)) {\n    return void 0;\n  }\n  const padding = resolveBackgroundPadding(props);\n  const textureWidth = Math.max(1, Math.ceil(width + padding.left + padding.right));\n  const textureHeight = Math.max(1, Math.ceil(height + padding.top + padding.bottom));\n  const cacheKey = getBackgroundImageCacheKey(props, width, height);\n  const textureKey = `__phaserjsx_bg_${hashCacheKey(cacheKey)}`;\n  const cache = getSceneBackgroundTextureCache(scene);\n  let entry = cache.get(cacheKey);\n  if (!entry || !scene.textures.exists(entry.textureKey)) {\n    const graphics = scene.add.graphics();\n    clearExistingCanvasTexture(scene, textureKey);\n    drawBackground(\n      graphics,\n      { ...props, backgroundAlpha: 1, borderAlpha: 1 },\n      width,\n      height,\n      padding.left,\n      padding.top\n    );\n    graphics.generateTexture(textureKey, textureWidth, textureHeight);\n    graphics.destroy();\n    entry = { textureKey, refs: 0 };\n    cache.set(cacheKey, entry);\n  }\n  entry.refs++;\n  const bgAlpha = Math.max(\n    0,\n    Math.min(\n      1,\n      props.backgroundAlpha !== void 0 && isAnimatedSignal(props.backgroundAlpha) ? props.backgroundAlpha.value : props.backgroundAlpha ?? 1\n    )\n  );\n  const background = scene.add.image(0, 0, entry.textureKey);\n  background.setOrigin(0, 0);\n  background.setPosition(-padding.left, -padding.top);\n  background.alpha = bgAlpha;\n  background.__isBackground = true;\n  background.__backgroundCacheKey = cacheKey;\n  background.__backgroundTextureKey = entry.textureKey;\n  background.__backgroundOffsetX = -padding.left;\n  background.__backgroundOffsetY = -padding.top;\n  background.once(\"destroy\", () => releaseBackgroundImageTexture(background));\n  return background;\n}\nfunction releaseBackgroundImageTexture(background) {\n  if (background.__backgroundTextureReleased) {\n    return;\n  }\n  const scene = background.scene;\n  const cacheKey = background.__backgroundCacheKey;\n  background.__backgroundTextureReleased = true;\n  if (!scene || !cacheKey) {\n    return;\n  }\n  const cache = sceneBackgroundTextureCaches.get(scene);\n  const entry = cache?.get(cacheKey);\n  if (!cache || !entry) {\n    return;\n  }\n  entry.refs--;\n  if (entry.refs <= 0) {\n    cache.delete(cacheKey);\n  }\n}\nfunction destroyBackgroundImage(background) {\n  background.destroy();\n}\nexport {\n  createBackgroundImage,\n  destroyBackgroundImage,\n  getBackgroundImageCacheKey\n};\n//# sourceMappingURL=backgroundImage.js.map\n","import { isAnimatedSignal } from \"@number10/jsx-core\";\nimport { effect } from \"@preact/signals-core\";\nimport \"phaser\";\nimport { destroyBackgroundImage, createBackgroundImage } from \"../backgroundImage.js\";\nfunction unwrapAlpha(v) {\n  if (v === void 0) return 1;\n  return isAnimatedSignal(v) ? v.value : v;\n}\nfunction applyBackgroundProps(container, prev, next) {\n  const prevBgColor = prev.backgroundColor;\n  const nextBgColor = next.backgroundColor;\n  const prevBgAlpha = unwrapAlpha(prev.backgroundAlpha);\n  const nextBgAlpha = unwrapAlpha(next.backgroundAlpha);\n  let prevWidth = typeof prev.width === \"number\" ? prev.width : 100;\n  let prevHeight = typeof prev.height === \"number\" ? prev.height : 100;\n  let nextWidth = typeof next.width === \"number\" ? next.width : 100;\n  let nextHeight = typeof next.height === \"number\" ? next.height : 100;\n  if (container.__getLayoutSize) {\n    const layoutSize = container.__getLayoutSize();\n    prevWidth = layoutSize.width;\n    prevHeight = layoutSize.height;\n    nextWidth = layoutSize.width;\n    nextHeight = layoutSize.height;\n  }\n  const prevCornerRadius = prev.cornerRadius ?? 0;\n  const nextCornerRadius = next.cornerRadius ?? 0;\n  const prevBorderColor = prev.borderColor;\n  const nextBorderColor = next.borderColor;\n  const prevBorderWidth = prev.borderWidth ?? 0;\n  const nextBorderWidth = next.borderWidth ?? 0;\n  const prevBorderAlpha = unwrapAlpha(prev.borderAlpha);\n  const nextBorderAlpha = unwrapAlpha(next.borderAlpha);\n  const prevBorder = prev.border;\n  const nextBorder = next.border;\n  const borderChanged = JSON.stringify(prevBorder) !== JSON.stringify(nextBorder);\n  const hasAdvancedBorder = (b) => {\n    if (!b) return false;\n    if (typeof b.width === \"number\") return b.width > 0;\n    if (b.width)\n      return (b.width.top ?? 0) > 0 || (b.width.right ?? 0) > 0 || (b.width.bottom ?? 0) > 0 || (b.width.left ?? 0) > 0;\n    return false;\n  };\n  const prevHasBorder = prevBorderWidth > 0 && prevBorderColor !== void 0;\n  const nextHasBorder = nextBorderWidth > 0 && nextBorderColor !== void 0;\n  const prevHasGraphics = prevBgColor !== void 0 || prevHasBorder || hasAdvancedBorder(prevBorder);\n  const nextHasGraphics = nextBgColor !== void 0 || nextHasBorder || hasAdvancedBorder(nextBorder);\n  if (prevHasGraphics && !nextHasGraphics) {\n    if (container.__background) {\n      destroyBackgroundImage(container.__background);\n      delete container.__background;\n    }\n  } else if (!prevHasGraphics && nextHasGraphics) {\n    if (container.scene) {\n      const background = createBackgroundImage(container.scene, next, nextWidth, nextHeight);\n      if (!background) return;\n      container.addAt(background, 0);\n      container.__background = background;\n    }\n  } else if (container.__background && nextHasGraphics) {\n    const needsRedraw = prevBgColor !== nextBgColor || prevBgAlpha !== nextBgAlpha || prevWidth !== nextWidth || prevHeight !== nextHeight || prevCornerRadius !== nextCornerRadius || prevBorderWidth !== nextBorderWidth || prevBorderColor !== nextBorderColor || prevBorderAlpha !== nextBorderAlpha || borderChanged;\n    if (needsRedraw) {\n      const oldBackground = container.__background;\n      const background = createBackgroundImage(container.scene, next, nextWidth, nextHeight);\n      if (!background) return;\n      container.addAt(background, 0);\n      container.__background = background;\n      destroyBackgroundImage(oldBackground);\n    }\n  }\n  const signalEffects = container.__signalEffects ?? /* @__PURE__ */ new Map();\n  container.__signalEffects = signalEffects;\n  const bgSignal = next.backgroundAlpha;\n  const prevBgClean = signalEffects.get(\"__bgAlpha\");\n  if (prevBgClean) {\n    prevBgClean();\n    signalEffects.delete(\"__bgAlpha\");\n  }\n  if (bgSignal !== void 0 && isAnimatedSignal(bgSignal)) {\n    const cleanup = effect(() => {\n      if (!container.__background) return;\n      container.__background.alpha = Math.max(0, Math.min(1, bgSignal.value));\n    });\n    signalEffects.set(\"__bgAlpha\", cleanup);\n  }\n}\nexport {\n  applyBackgroundProps\n};\n//# sourceMappingURL=applyBackground.js.map\n","const DEFAULT_GESTURE_CONFIG = {\n  longPressDuration: 500,\n  doubleTapDelay: 300,\n  maxTouchDuration: 500\n};\nexport {\n  DEFAULT_GESTURE_CONFIG\n};\n//# sourceMappingURL=gesture-types.js.map\n","import \"phaser\";\nimport { DEFAULT_GESTURE_CONFIG } from \"./gesture-types.js\";\nclass GestureManager {\n  scene;\n  containers = /* @__PURE__ */ new Map();\n  // Track pointer positions for delta calculation\n  lastPointerPositions = /* @__PURE__ */ new Map();\n  // Track active pointer down for touch detection\n  activePointerDown = null;\n  // Track which containers were hit during pointer down (for move event filtering)\n  activeContainersForMove = /* @__PURE__ */ new Map();\n  // Track hover state for each container (desktop/mouse only)\n  hoveredContainers = /* @__PURE__ */ new Map();\n  // Track pending setTimeout timers for cleanup\n  pendingTimeouts = /* @__PURE__ */ new Set();\n  isInitialized = false;\n  isDestroyed = false;\n  constructor(scene) {\n    this.scene = scene;\n  }\n  /**\n   * Initialize global event listeners (called once per scene)\n   */\n  initialize() {\n    if (this.isInitialized) return;\n    this.isInitialized = true;\n    this.scene.input.on(\"pointerdown\", this.handlePointerDown, this);\n    this.scene.input.on(\"pointerup\", this.handlePointerUp, this);\n    this.scene.input.on(\"pointermove\", this.handlePointerMove, this);\n    this.handleGlobalPointerUp = this.handleGlobalPointerUp.bind(this);\n    window.addEventListener(\"mouseup\", this.handleGlobalPointerUp);\n    window.addEventListener(\"touchend\", this.handleGlobalPointerUp);\n    this.handleWheel = this.handleWheel.bind(this);\n    window.addEventListener(\"wheel\", this.handleWheel, { passive: false });\n    this.scene.events.once(\"shutdown\", this.destroy, this);\n  }\n  /**\n   * Register a container for gesture tracking\n   * @param container - Container to track\n   * @param callbacks - Gesture event callbacks\n   * @param hitArea - Interactive hit area\n   * @param config - Gesture configuration\n   */\n  registerContainer(container, callbacks, hitArea, config = {}) {\n    this.initialize();\n    const state = {\n      container,\n      callbacks,\n      config: { ...DEFAULT_GESTURE_CONFIG, ...config },\n      hitArea\n    };\n    this.containers.set(container, state);\n    container.once(\"destroy\", () => {\n      this.unregisterContainer(container);\n    });\n  }\n  /**\n   * Unregister a container\n   * @param container - Container to remove\n   */\n  unregisterContainer(container) {\n    const state = this.containers.get(container);\n    if (!state) return;\n    if (state.longPressTimer) {\n      clearTimeout(state.longPressTimer);\n    }\n    this.containers.delete(container);\n    if (this.activePointerDown?.container === container) {\n      this.activePointerDown = null;\n    }\n    this.hoveredContainers.delete(container);\n    for (const hitContainers of this.activeContainersForMove.values()) {\n      hitContainers.delete(container);\n    }\n  }\n  /**\n   * Check if a container is registered\n   * @param container - Container to check\n   * @returns True if container is registered\n   */\n  hasContainer(container) {\n    return this.containers.has(container);\n  }\n  /**\n   * Create a gesture event data object with propagation control\n   * @param pointer - Phaser pointer\n   * @param localX - Local X coordinate\n   * @param localY - Local Y coordinate\n   * @param width - Hit area width\n   * @param height - Hit area height\n   * @param options - Optional additional data (dx, dy, isInside, state)\n   * @returns Event data with stopPropagation support\n   */\n  createEventData(pointer, localX, localY, width, height, options = {}) {\n    let propagationStopped = false;\n    return {\n      pointer,\n      localX,\n      localY,\n      width,\n      height,\n      ...options,\n      stopPropagation() {\n        propagationStopped = true;\n      },\n      isPropagationStopped() {\n        return propagationStopped;\n      }\n    };\n  }\n  /**\n   * Get effective depth considering entire parent hierarchy\n   * @param container - Container to calculate depth for\n   * @returns Accumulated depth from container and all parents\n   */\n  getEffectiveDepth(container) {\n    let depth = container.depth;\n    let parent = container.parentContainer;\n    while (parent) {\n      depth += parent.depth;\n      parent = parent.parentContainer;\n    }\n    return depth;\n  }\n  /**\n   * Get surface zIndex from container hierarchy.\n   * Walks up to find the topmost container with __surfaceZIndex.\n   * The topmost marker wins so portal roots can lift all descendants above scene roots.\n   *\n   * @param container - Container to check\n   * @returns Surface zIndex or 0 if none found\n   */\n  getSurfaceZIndex(container) {\n    let current = container;\n    let zIndex = 0;\n    while (current) {\n      const surfaceZIndex = current.__surfaceZIndex;\n      if (surfaceZIndex !== void 0) {\n        zIndex = surfaceZIndex;\n      }\n      current = current.parentContainer;\n    }\n    return zIndex;\n  }\n  isAncestorOf(ancestor, descendant) {\n    let current = descendant.parentContainer;\n    while (current) {\n      if (current === ancestor) {\n        return true;\n      }\n      current = current.parentContainer;\n    }\n    return false;\n  }\n  compareContainers(a, b) {\n    const containerA = a.state.container;\n    const containerB = b.state.container;\n    const rootZIndexA = this.getSurfaceZIndex(containerA);\n    const rootZIndexB = this.getSurfaceZIndex(containerB);\n    if (rootZIndexA !== rootZIndexB) {\n      return rootZIndexB - rootZIndexA;\n    }\n    const depthA = this.getEffectiveDepth(containerA);\n    const depthB = this.getEffectiveDepth(containerB);\n    if (depthA !== depthB) {\n      return depthB - depthA;\n    }\n    if (this.isAncestorOf(containerA, containerB)) {\n      return 1;\n    }\n    if (this.isAncestorOf(containerB, containerA)) {\n      return -1;\n    }\n    if (containerA.parentContainer === containerB.parentContainer && containerA.parentContainer) {\n      const indexA = containerA.parentContainer.getIndex(containerA);\n      const indexB = containerA.parentContainer.getIndex(containerB);\n      const diff = indexB - indexA;\n      if (diff !== 0) return diff;\n    }\n    return b.originalIndex - a.originalIndex;\n  }\n  /**\n   * Bubble an event through overlapping containers\n   * Iterates all containers at pointer position and calls handler until stopPropagation\n   * Sorts containers by their actual display list order (z-index) to respect visual stacking\n   * @param pointer - The pointer that triggered the event\n   * @param eventType - Type of event for filtering callbacks\n   * @param handler - Function to call for each container, returns true if propagation stopped\n   * @param filterSet - Optional set of containers to limit bubbling to (for move events)\n   * @param skipContainerCheck - Skip the isPointerInContainer check (for final move events)\n   */\n  bubbleEvent(pointer, eventType, handler, filterSet, skipContainerCheck = false) {\n    const containersArray = Array.from(this.containers.values()).map((state, originalIndex) => ({\n      state,\n      originalIndex\n    }));\n    containersArray.sort((a, b) => this.compareContainers(a, b));\n    for (const { state } of containersArray) {\n      if (!state.callbacks[eventType]) continue;\n      if (filterSet && !filterSet.has(state.container)) continue;\n      if (!skipContainerCheck && !this.isPointerInContainer(pointer, state)) continue;\n      const localPos = this.getLocalPosition(pointer, state.container);\n      const stopped = handler(state, localPos);\n      if (stopped) break;\n    }\n  }\n  /**\n   * Update hit area for a container\n   * @param container - Container to update\n   * @param hitArea - New hit area\n   */\n  updateHitArea(container, hitArea) {\n    const state = this.containers.get(container);\n    if (state) {\n      state.hitArea = hitArea;\n    }\n  }\n  /**\n   * Update callbacks for a container\n   * @param container - Container to update\n   * @param callbacks - New callbacks\n   */\n  updateCallbacks(container, callbacks) {\n    const state = this.containers.get(container);\n    if (state) {\n      state.callbacks = callbacks;\n    }\n  }\n  /**\n   * Handle global pointer down event\n   * Registers all containers that were hit for move event tracking\n   * Only the topmost gets touch/long-press callbacks\n   */\n  handlePointerDown(pointer) {\n    const hitContainers = /* @__PURE__ */ new Set();\n    const containersArray = Array.from(this.containers.values()).map((state, originalIndex) => ({\n      state,\n      originalIndex\n    }));\n    containersArray.sort((a, b) => this.compareContainers(a, b));\n    let isFirstHit = true;\n    let topmostTouchContainer;\n    let topmostLongPressContainer;\n    let topmostDoubleTapContainer;\n    const pointerDownTime = Date.now();\n    for (const { state } of containersArray) {\n      const isHit = this.isPointerInContainer(pointer, state);\n      if (isHit) {\n        hitContainers.add(state.container);\n        if (!topmostTouchContainer && state.callbacks.onTouch) {\n          topmostTouchContainer = state.container;\n          state.pointerDownTime = pointerDownTime;\n          state.longPressTriggered = false;\n        }\n        if (!topmostLongPressContainer && state.callbacks.onLongPress) {\n          topmostLongPressContainer = state.container;\n          state.pointerDownTime = pointerDownTime;\n          state.longPressTriggered = false;\n        }\n        if (!topmostDoubleTapContainer && state.callbacks.onDoubleTap) {\n          topmostDoubleTapContainer = state.container;\n          state.pointerDownTime = pointerDownTime;\n          state.longPressTriggered = false;\n        }\n        if (isFirstHit) {\n          isFirstHit = false;\n          this.activePointerDown = {\n            pointerId: pointer.id,\n            container: state.container,\n            startX: pointer.worldX,\n            startY: pointer.worldY\n          };\n          if (topmostTouchContainer) {\n            this.activePointerDown.touchContainer = topmostTouchContainer;\n          }\n          if (topmostLongPressContainer) {\n            this.activePointerDown.longPressContainer = topmostLongPressContainer;\n          }\n          if (topmostDoubleTapContainer) {\n            this.activePointerDown.doubleTapContainer = topmostDoubleTapContainer;\n          }\n          state.pointerDownPosition = { x: pointer.worldX, y: pointer.worldY };\n        }\n      }\n    }\n    if (this.activePointerDown) {\n      if (topmostTouchContainer) {\n        this.activePointerDown.touchContainer = topmostTouchContainer;\n      }\n      if (topmostLongPressContainer) {\n        this.activePointerDown.longPressContainer = topmostLongPressContainer;\n      }\n      if (topmostDoubleTapContainer) {\n        this.activePointerDown.doubleTapContainer = topmostDoubleTapContainer;\n      }\n    }\n    if (topmostLongPressContainer) {\n      const longPressState = this.containers.get(topmostLongPressContainer);\n      if (longPressState?.callbacks.onLongPress) {\n        const localPos = this.getLocalPosition(pointer, longPressState.container);\n        longPressState.longPressTimer = setTimeout(() => {\n          if (this.activePointerDown?.longPressContainer === longPressState.container) {\n            const isInside = this.isPointerInContainer(pointer, longPressState);\n            const data = this.createEventData(\n              pointer,\n              localPos.x,\n              localPos.y,\n              longPressState.hitArea.width,\n              longPressState.hitArea.height,\n              { isInside }\n            );\n            longPressState.callbacks.onLongPress?.(data);\n            longPressState.longPressTriggered = true;\n          }\n        }, longPressState.config.longPressDuration);\n      }\n    }\n    if (hitContainers.size > 0) {\n      this.activeContainersForMove.set(pointer.id, hitContainers);\n      this.bubbleEvent(\n        pointer,\n        \"onTouchMove\",\n        (targetState, targetLocalPos) => {\n          const isInside = this.isPointerInContainer(pointer, targetState);\n          const data = this.createEventData(\n            pointer,\n            targetLocalPos.x,\n            targetLocalPos.y,\n            targetState.hitArea.width,\n            targetState.hitArea.height,\n            { dx: 0, dy: 0, isInside, state: \"start\" }\n          );\n          targetState.callbacks.onTouchMove?.(data);\n          targetState.isFirstMove = false;\n          return data.isPropagationStopped();\n        },\n        hitContainers\n      );\n    }\n  }\n  /**\n   * Handle global pointer up event\n   */\n  handlePointerUp(pointer) {\n    if (!this.activePointerDown || this.activePointerDown.pointerId !== pointer.id) {\n      return;\n    }\n    const activeState = this.containers.get(this.activePointerDown.container);\n    if (!activeState) {\n      this.activePointerDown = null;\n      return;\n    }\n    const touchState = this.activePointerDown.touchContainer && this.containers.get(this.activePointerDown.touchContainer) || activeState;\n    const longPressState = this.activePointerDown.longPressContainer && this.containers.get(this.activePointerDown.longPressContainer);\n    const doubleTapState = this.activePointerDown.doubleTapContainer && this.containers.get(this.activePointerDown.doubleTapContainer);\n    if (longPressState?.longPressTimer) {\n      clearTimeout(longPressState.longPressTimer);\n      longPressState.longPressTimer = void 0;\n    }\n    const now = Date.now();\n    const touchDuration = touchState.pointerDownTime ? now - touchState.pointerDownTime : 0;\n    const isTouchTooLong = touchDuration > touchState.config.maxTouchDuration;\n    const longPressWasTriggered = !!touchState.longPressTriggered || !!longPressState?.longPressTriggered;\n    const last = this.lastPointerPositions.get(pointer.id);\n    const dx = last ? pointer.worldX - last.x : 0;\n    const dy = last ? pointer.worldY - last.y : 0;\n    const hitContainers = this.activeContainersForMove.get(pointer.id);\n    this.bubbleEvent(\n      pointer,\n      \"onTouchMove\",\n      (targetState, targetLocalPos) => {\n        const isInside = this.isPointerInContainer(pointer, targetState);\n        const finalMoveData = this.createEventData(\n          pointer,\n          targetLocalPos.x,\n          targetLocalPos.y,\n          targetState.hitArea.width,\n          targetState.hitArea.height,\n          { dx, dy, isInside, state: \"end\" }\n        );\n        targetState.callbacks.onTouchMove?.(finalMoveData);\n        targetState.isFirstMove = void 0;\n        return finalMoveData.isPropagationStopped();\n      },\n      hitContainers,\n      true\n      // Skip container check for final move event\n    );\n    const isInsideTouchTarget = this.isPointerInContainer(pointer, touchState);\n    if (isInsideTouchTarget) {\n      const shouldFireTouch = !longPressWasTriggered && !isTouchTooLong;\n      if (touchState.callbacks.onTouch && shouldFireTouch) {\n        this.bubbleEvent(pointer, \"onTouch\", (targetState, targetLocalPos) => {\n          const isInside = this.isPointerInContainer(pointer, targetState);\n          const data = this.createEventData(\n            pointer,\n            targetLocalPos.x,\n            targetLocalPos.y,\n            targetState.hitArea.width,\n            targetState.hitArea.height,\n            { isInside }\n          );\n          targetState.callbacks.onTouch?.(data);\n          return data.isPropagationStopped();\n        });\n      }\n      if (doubleTapState && shouldFireTouch && this.isPointerInContainer(pointer, doubleTapState)) {\n        const timeSinceLastTap = doubleTapState.lastTapTime ? now - doubleTapState.lastTapTime : Infinity;\n        if (timeSinceLastTap <= doubleTapState.config.doubleTapDelay) {\n          this.bubbleEvent(pointer, \"onDoubleTap\", (targetState, targetLocalPos) => {\n            const isInside = this.isPointerInContainer(pointer, targetState);\n            const data = this.createEventData(\n              pointer,\n              targetLocalPos.x,\n              targetLocalPos.y,\n              targetState.hitArea.width,\n              targetState.hitArea.height,\n              { isInside }\n            );\n            targetState.callbacks.onDoubleTap?.(data);\n            return data.isPropagationStopped();\n          });\n          doubleTapState.lastTapTime = void 0;\n        } else {\n          doubleTapState.lastTapTime = now;\n        }\n      }\n    }\n    for (const [container, containerState] of this.containers) {\n      if (!containerState.callbacks.onTouchOutside) continue;\n      const isInsideContainer = this.isPointerInContainer(pointer, containerState);\n      if (isInsideContainer) continue;\n      const localPos = this.getLocalPosition(pointer, container);\n      const data = this.createEventData(\n        pointer,\n        localPos.x,\n        localPos.y,\n        containerState.hitArea.width,\n        containerState.hitArea.height,\n        { isInside: false }\n      );\n      containerState.callbacks.onTouchOutside(data);\n    }\n    touchState.longPressTriggered = false;\n    touchState.pointerDownTime = void 0;\n    if (longPressState && longPressState !== touchState) {\n      longPressState.longPressTriggered = false;\n      longPressState.pointerDownTime = void 0;\n    }\n    if (doubleTapState && doubleTapState !== touchState && doubleTapState !== longPressState) {\n      doubleTapState.longPressTriggered = false;\n      doubleTapState.pointerDownTime = void 0;\n    }\n    this.activePointerDown = null;\n    activeState.pointerDownPosition = void 0;\n    this.activeContainersForMove.delete(pointer.id);\n  }\n  /**\n   * Handle pointer up outside canvas (global window events)\n   * Ensures touch move 'end' state is sent even when pointer released outside\n   * Also handles onTouchOutside for ALL containers\n   */\n  handleGlobalPointerUp(_event) {\n    const timerId = window.setTimeout(() => {\n      this.pendingTimeouts.delete(timerId);\n      if (this.isDestroyed || !this.scene || !this.scene.input) {\n        return;\n      }\n      let pointer = null;\n      try {\n        pointer = this.scene.input.activePointer;\n      } catch (error) {\n        return;\n      }\n      if (!pointer) {\n        return;\n      }\n      for (const state2 of this.containers.values()) {\n        if (!state2.callbacks.onTouchOutside) continue;\n        const isInside = this.isPointerInContainer(pointer, state2);\n        if (isInside) continue;\n        const touchDuration = state2.pointerDownTime ? Date.now() - state2.pointerDownTime : 0;\n        const isTouchTooLong = touchDuration > state2.config.maxTouchDuration;\n        const shouldFire = !state2.longPressTriggered && !isTouchTooLong;\n        if (shouldFire) {\n          const localPos = this.getLocalPosition(pointer, state2.container);\n          const data = this.createEventData(\n            pointer,\n            localPos.x,\n            localPos.y,\n            state2.hitArea.width,\n            state2.hitArea.height,\n            { isInside: false }\n          );\n          state2.callbacks.onTouchOutside?.(data);\n        }\n      }\n      if (!this.activePointerDown) return;\n      const state = this.containers.get(this.activePointerDown.container);\n      if (!state) {\n        this.activePointerDown = null;\n        return;\n      }\n      if (state.longPressTimer) {\n        clearTimeout(state.longPressTimer);\n        state.longPressTimer = void 0;\n      }\n      const last = this.lastPointerPositions.get(pointer.id);\n      const dx = last ? pointer.worldX - last.x : 0;\n      const dy = last ? pointer.worldY - last.y : 0;\n      const hitContainers = this.activeContainersForMove.get(pointer.id);\n      this.bubbleEvent(\n        pointer,\n        \"onTouchMove\",\n        (targetState, targetLocalPos) => {\n          const finalMoveData = this.createEventData(\n            pointer,\n            targetLocalPos.x,\n            targetLocalPos.y,\n            targetState.hitArea.width,\n            targetState.hitArea.height,\n            { dx, dy, isInside: false, state: \"end\" }\n          );\n          targetState.callbacks.onTouchMove?.(finalMoveData);\n          targetState.isFirstMove = void 0;\n          return finalMoveData.isPropagationStopped();\n        },\n        hitContainers,\n        true\n        // Skip container check for final move event\n      );\n      state.longPressTriggered = false;\n      state.pointerDownTime = void 0;\n      this.activePointerDown = null;\n      state.pointerDownPosition = void 0;\n      this.activeContainersForMove.delete(pointer.id);\n    }, 0);\n    this.pendingTimeouts.add(timerId);\n  }\n  /**\n   * Handle global pointer move event\n   * Detects hover state changes and notifies containers with onHoverStart/onHoverEnd\n   * Only notifies containers that were hit during pointer down for onTouchMove\n   * Bubbles through them until stopPropagation() is called\n   */\n  handlePointerMove(pointer) {\n    const last = this.lastPointerPositions.get(pointer.id);\n    const dx = last ? pointer.worldX - last.x : 0;\n    const dy = last ? pointer.worldY - last.y : 0;\n    this.lastPointerPositions.set(pointer.id, { x: pointer.worldX, y: pointer.worldY });\n    this.detectHoverChanges(pointer);\n    if (!this.activePointerDown || pointer.id !== this.activePointerDown.pointerId) {\n      return;\n    }\n    const hitContainers = this.activeContainersForMove.get(pointer.id);\n    if (!hitContainers) return;\n    const containersArray = Array.from(this.containers.values()).map((state, originalIndex) => ({\n      state,\n      originalIndex\n    }));\n    containersArray.sort((a, b) => this.compareContainers(a, b));\n    for (const { state } of containersArray) {\n      if (!state.callbacks.onTouchMove) continue;\n      if (!hitContainers.has(state.container)) continue;\n      const localPos = this.getLocalPosition(pointer, state.container);\n      const isInside = this.isPointerInContainer(pointer, state);\n      const moveState = state.isFirstMove === void 0 ? \"start\" : \"move\";\n      if (state.isFirstMove === void 0) {\n        state.isFirstMove = false;\n      }\n      const data = this.createEventData(\n        pointer,\n        localPos.x,\n        localPos.y,\n        state.hitArea.width,\n        state.hitArea.height,\n        { dx, dy, isInside, state: moveState }\n      );\n      state.callbacks.onTouchMove(data);\n      if (data.isPropagationStopped()) break;\n    }\n  }\n  /**\n   * Check if pointer is within a container's hit area\n   * Also checks parent visibility chain to handle collapsed accordions,\n   * and ancestor overflow clip regions to prevent clipped-out children\n   * from consuming pointer events outside their visible area.\n   */\n  isPointerInContainer(pointer, state) {\n    const container = state.container;\n    if (!container.visible || container.alpha === 0) return false;\n    let parent = container.parentContainer;\n    while (parent) {\n      if (!parent.visible || parent.alpha === 0) return false;\n      parent = parent.parentContainer;\n    }\n    let clipAncestor = container.parentContainer;\n    while (clipAncestor) {\n      const ext = clipAncestor;\n      if (ext.__layoutProps?.overflow === \"hidden\" && ext.__getLayoutSize) {\n        const clipSize = ext.__getLayoutSize();\n        const clipLocal = this.getLocalPosition(pointer, clipAncestor);\n        if (clipLocal.x < 0 || clipLocal.y < 0 || clipLocal.x > clipSize.width || clipLocal.y > clipSize.height) {\n          return false;\n        }\n      }\n      clipAncestor = clipAncestor.parentContainer;\n    }\n    const localPos = this.getLocalPosition(pointer, container);\n    return state.hitArea.contains(localPos.x, localPos.y);\n  }\n  /**\n   * Convert global pointer position to container local coordinates\n   */\n  getLocalPosition(pointer, container) {\n    const matrix = container.getWorldTransformMatrix();\n    const inverseMatrix = matrix.invert();\n    const localPos = inverseMatrix.transformPoint(pointer.worldX, pointer.worldY);\n    return { x: localPos.x, y: localPos.y };\n  }\n  /**\n   * Detect hover state changes for all containers (desktop/mouse only)\n   * Called on every pointer move to update hover state\n   */\n  detectHoverChanges(pointer) {\n    for (const [container, state] of this.containers) {\n      if (!state.callbacks.onHoverStart && !state.callbacks.onHoverEnd) {\n        continue;\n      }\n      if (!container.active) continue;\n      const isInside = this.isPointerInContainer(pointer, state);\n      const wasInside = this.hoveredContainers.get(container) ?? false;\n      if (isInside && !wasInside) {\n        this.hoveredContainers.set(container, true);\n        if (state.callbacks.onHoverStart) {\n          const eventData = this.createHoverEventData(pointer, container, state.hitArea);\n          state.callbacks.onHoverStart(eventData);\n        }\n      }\n      if (!isInside && wasInside) {\n        this.hoveredContainers.set(container, false);\n        if (state.callbacks.onHoverEnd) {\n          const eventData = this.createHoverEventData(pointer, container, state.hitArea);\n          state.callbacks.onHoverEnd(eventData);\n        }\n      }\n    }\n  }\n  /**\n   * Create hover event data\n   */\n  createHoverEventData(pointer, container, hitArea) {\n    const localPos = this.getLocalPosition(pointer, container);\n    let propagationStopped = false;\n    return {\n      pointer,\n      localX: localPos.x,\n      localY: localPos.y,\n      width: hitArea.width,\n      height: hitArea.height,\n      stopPropagation: () => {\n        propagationStopped = true;\n      },\n      isPropagationStopped: () => propagationStopped\n    };\n  }\n  /**\n   * Handle mouse wheel event\n   * Bubbles to all containers under the pointer\n   */\n  handleWheel(event) {\n    if (this.isDestroyed || !this.scene || !this.scene.input) {\n      return;\n    }\n    let pointer = null;\n    try {\n      pointer = this.scene.input.activePointer;\n    } catch (error) {\n      return;\n    }\n    if (!pointer) return;\n    const canvas = this.scene.game.canvas;\n    const rect = canvas.getBoundingClientRect();\n    const scaleX = canvas.width / rect.width;\n    const scaleY = canvas.height / rect.height;\n    pointer.x = (event.clientX - rect.left) * scaleX;\n    pointer.y = (event.clientY - rect.top) * scaleY;\n    pointer.updateWorldPoint(pointer.camera ?? this.scene.cameras.main);\n    const containersUnderPointer = [];\n    Array.from(this.containers.values()).forEach((state, originalIndex) => {\n      if (!state.callbacks.onWheel) return;\n      const isInside = this.isPointerInContainer(pointer, state);\n      if (isInside) {\n        containersUnderPointer.push({ state, originalIndex });\n      }\n    });\n    containersUnderPointer.sort((a, b) => this.compareContainers(a, b));\n    for (const { state } of containersUnderPointer) {\n      const localPos = this.getLocalPosition(pointer, state.container);\n      let propagationStopped = false;\n      const wheelData = {\n        pointer,\n        localX: localPos.x,\n        localY: localPos.y,\n        deltaX: event.deltaX,\n        deltaY: event.deltaY,\n        deltaZ: event.deltaZ,\n        deltaMode: event.deltaMode,\n        width: state.hitArea.width,\n        height: state.hitArea.height,\n        originalEvent: event,\n        stopPropagation: () => {\n          propagationStopped = true;\n        },\n        isPropagationStopped: () => propagationStopped,\n        preventDefault: () => {\n          event.preventDefault();\n        }\n      };\n      state.callbacks.onWheel?.(wheelData);\n      if (propagationStopped) break;\n    }\n  }\n  /**\n   * Cleanup all resources\n   */\n  destroy() {\n    console.log(\"[GestureManager] destroy() called\", {\n      pendingTimeouts: this.pendingTimeouts.size,\n      containers: this.containers.size\n    });\n    this.isDestroyed = true;\n    for (const timerId of this.pendingTimeouts) {\n      clearTimeout(timerId);\n    }\n    this.pendingTimeouts.clear();\n    for (const state of this.containers.values()) {\n      if (state.longPressTimer) {\n        clearTimeout(state.longPressTimer);\n      }\n    }\n    this.containers.clear();\n    this.lastPointerPositions.clear();\n    this.activePointerDown = null;\n    this.hoveredContainers.clear();\n    if (this.isInitialized) {\n      this.scene.input.off(\"pointerdown\", this.handlePointerDown, this);\n      this.scene.input.off(\"pointerup\", this.handlePointerUp, this);\n      this.scene.input.off(\"pointermove\", this.handlePointerMove, this);\n      window.removeEventListener(\"mouseup\", this.handleGlobalPointerUp);\n      window.removeEventListener(\"touchend\", this.handleGlobalPointerUp);\n      window.removeEventListener(\"wheel\", this.handleWheel);\n    }\n    this.isInitialized = false;\n  }\n}\nfunction getGestureManager(scene) {\n  if (!scene || !scene.data) {\n    throw new Error(\"getGestureManager: Invalid scene or scene.data is undefined\");\n  }\n  const key = \"__gestureManager__\";\n  let manager = scene.data.get(key);\n  if (!manager) {\n    manager = new GestureManager(scene);\n    scene.data.set(key, manager);\n  }\n  return manager;\n}\nexport {\n  GestureManager,\n  getGestureManager\n};\n//# sourceMappingURL=gesture-manager.js.map\n","import * as Phaser from \"phaser\";\nimport { getGestureManager } from \"../../gestures/gesture-manager.js\";\nfunction applyGesturesProps(scene, container, prev, next) {\n  if (!scene || !scene.sys || !scene.data) {\n    console.warn(\"applyGesturesProps: Invalid scene or scene not initialized\");\n    return;\n  }\n  if (scene.sys.game === null) {\n    return;\n  }\n  const hasAnyGesture = !!(next.onTouch || next.onTouchOutside || next.onTouchMove || next.onDoubleTap || next.onLongPress || next.onHoverStart || next.onHoverEnd || next.onWheel);\n  const hadAnyGesture = !!(prev.onTouch || prev.onTouchOutside || prev.onTouchMove || prev.onDoubleTap || prev.onLongPress || prev.onHoverStart || prev.onHoverEnd || prev.onWheel);\n  const prevEnabled = hadAnyGesture && prev.enableGestures !== false;\n  const nextEnabled = hasAnyGesture && next.enableGestures !== false;\n  const manager = getGestureManager(scene);\n  if (!prevEnabled && nextEnabled && hasAnyGesture) {\n    const containerWithLayout = container;\n    const { width, height } = containerWithLayout.__getLayoutSize ? containerWithLayout.__getLayoutSize() : (() => {\n      const bounds = container.getBounds();\n      return { width: bounds.width || 100, height: bounds.height || 100 };\n    })();\n    const hitArea = new Phaser.Geom.Rectangle(0, 0, width, height);\n    const callbacks = {};\n    if (next.onTouch) callbacks.onTouch = next.onTouch;\n    if (next.onTouchOutside) callbacks.onTouchOutside = next.onTouchOutside;\n    if (next.onTouchMove) callbacks.onTouchMove = next.onTouchMove;\n    if (next.onDoubleTap) callbacks.onDoubleTap = next.onDoubleTap;\n    if (next.onLongPress) callbacks.onLongPress = next.onLongPress;\n    if (next.onHoverStart) callbacks.onHoverStart = next.onHoverStart;\n    if (next.onHoverEnd) callbacks.onHoverEnd = next.onHoverEnd;\n    if (next.onWheel) callbacks.onWheel = next.onWheel;\n    const config = {};\n    if (next.longPressDuration !== void 0) config.longPressDuration = next.longPressDuration;\n    if (next.doubleTapDelay !== void 0) config.doubleTapDelay = next.doubleTapDelay;\n    manager.registerContainer(container, callbacks, hitArea, config);\n    return;\n  }\n  if (prevEnabled && (!nextEnabled || !hasAnyGesture)) {\n    manager.unregisterContainer(container);\n    return;\n  }\n  if (nextEnabled && hasAnyGesture) {\n    const callbacksChanged = prev.onTouch !== next.onTouch || prev.onTouchOutside !== next.onTouchOutside || prev.onTouchMove !== next.onTouchMove || prev.onDoubleTap !== next.onDoubleTap || prev.onLongPress !== next.onLongPress || prev.onHoverStart !== next.onHoverStart || prev.onHoverEnd !== next.onHoverEnd || prev.onWheel !== next.onWheel;\n    if (callbacksChanged) {\n      const callbacks = {};\n      if (next.onTouch) callbacks.onTouch = next.onTouch;\n      if (next.onTouchOutside) callbacks.onTouchOutside = next.onTouchOutside;\n      if (next.onTouchMove) callbacks.onTouchMove = next.onTouchMove;\n      if (next.onDoubleTap) callbacks.onDoubleTap = next.onDoubleTap;\n      if (next.onLongPress) callbacks.onLongPress = next.onLongPress;\n      if (next.onHoverStart) callbacks.onHoverStart = next.onHoverStart;\n      if (next.onHoverEnd) callbacks.onHoverEnd = next.onHoverEnd;\n      if (next.onWheel) callbacks.onWheel = next.onWheel;\n      manager.updateCallbacks(container, callbacks);\n    }\n    const containerWithLayout = container;\n    const { width, height } = containerWithLayout.__getLayoutSize ? containerWithLayout.__getLayoutSize() : (() => {\n      const bounds = container.getBounds();\n      return { width: bounds.width || 100, height: bounds.height || 100 };\n    })();\n    const hitArea = new Phaser.Geom.Rectangle(0, 0, width, height);\n    manager.updateHitArea(container, hitArea);\n  }\n}\nexport {\n  applyGesturesProps\n};\n//# sourceMappingURL=applyGestures.js.map\n","import * as Phaser from \"phaser\";\nfunction applyCanvasClip(container, source) {\n  if (container.scene.renderer.type !== Phaser.CANVAS) {\n    return { update() {\n    }, destroy() {\n    } };\n  }\n  const canvasRenderer = container.scene.renderer;\n  const existing = getCanvasClipHandle(container);\n  if (existing) {\n    existing.update(source);\n    return existing;\n  }\n  let shape = { ...source };\n  let destroyed = false;\n  const mask = {\n    preRenderCanvas(_renderer, _mask, _camera) {\n      if (destroyed) return;\n      const ctx = canvasRenderer.currentContext;\n      const wt = container.getWorldTransformMatrix();\n      ctx.save();\n      const savedTransform = ctx.getTransform();\n      ctx.transform(wt.a, wt.b, wt.c, wt.d, wt.tx, wt.ty);\n      ctx.beginPath();\n      const cr = shape.cornerRadius;\n      if (cr !== void 0 && cr !== 0) {\n        const r = typeof cr === \"number\" ? cr : Math.max(cr.tl ?? 0, cr.tr ?? 0, cr.bl ?? 0, cr.br ?? 0);\n        drawRoundRect(ctx, 0, 0, shape.width, shape.height, r);\n      } else {\n        ctx.rect(0, 0, shape.width, shape.height);\n      }\n      ctx.clip();\n      ctx.setTransform(savedTransform);\n    },\n    postRenderCanvas() {\n      if (destroyed) return;\n      canvasRenderer.currentContext.restore();\n    },\n    destroy() {\n      destroyed = true;\n    }\n  };\n  container.mask = mask;\n  const handle = {\n    update(update) {\n      if (destroyed) return;\n      const upd = update;\n      if (upd.width !== void 0) shape.width = upd.width;\n      if (upd.height !== void 0) shape.height = upd.height;\n      if (upd.cornerRadius !== void 0) shape.cornerRadius = upd.cornerRadius;\n    },\n    destroy() {\n      destroyed = true;\n      const c = container;\n      if (c.mask === mask) {\n        c.mask = null;\n      }\n      const ext = container;\n      delete ext[CANVAS_CLIP];\n    }\n  };\n  container[CANVAS_CLIP] = handle;\n  return handle;\n}\nconst CANVAS_CLIP = /* @__PURE__ */ Symbol(\"canvasClipHandle\");\nfunction getCanvasClipHandle(container) {\n  return container[CANVAS_CLIP];\n}\nfunction drawRoundRect(ctx, x, y, w, h, r) {\n  r = Math.min(r, w / 2, h / 2);\n  ctx.moveTo(x + r, y);\n  ctx.lineTo(x + w - r, y);\n  ctx.arcTo(x + w, y, x + w, y + r, r);\n  ctx.lineTo(x + w, y + h - r);\n  ctx.arcTo(x + w, y + h, x + w - r, y + h, r);\n  ctx.lineTo(x + r, y + h);\n  ctx.arcTo(x, y + h, x, y + h - r, r);\n  ctx.lineTo(x, y + r);\n  ctx.arcTo(x, y, x + r, y, r);\n  ctx.closePath();\n}\nexport {\n  applyCanvasClip\n};\n//# sourceMappingURL=canvas-clip.js.map\n","import { DebugLogger } from \"@number10/jsx-core\";\nimport { getBackgroundImageCacheKey, createBackgroundImage, destroyBackgroundImage } from \"../../components/backgroundImage.js\";\nfunction updateBackground(container, width, height) {\n  const background = container.__background;\n  if (background) {\n    const layoutProps = container.__layoutProps;\n    if (layoutProps) {\n      const cacheKey = getBackgroundImageCacheKey(layoutProps, width, height);\n      if (background.__backgroundCacheKey === cacheKey) {\n        return;\n      }\n      const nextBackground = createBackgroundImage(container.scene, layoutProps, width, height);\n      if (!nextBackground) return;\n      container.addAt(nextBackground, 0);\n      container.__background = nextBackground;\n      destroyBackgroundImage(background);\n      DebugLogger.log(\"layout\", \"Background redrawn to:\", { width, height });\n    }\n  }\n}\nfunction updateHitArea(container, width, height) {\n  if (container.input?.hitArea && \"setSize\" in container.input.hitArea) {\n    const hitArea = container.input.hitArea;\n    const oldWidth = hitArea.width;\n    const oldHeight = hitArea.height;\n    if (oldWidth !== width || oldHeight !== height) {\n      hitArea.setPosition(0, 0);\n      hitArea.setSize(width, height);\n      DebugLogger.log(\"layout\", \"Hit area resized:\", {\n        from: { x: hitArea.x, y: hitArea.y, width: oldWidth, height: oldHeight },\n        to: { x: 0, y: 0, width, height }\n      });\n    }\n  }\n}\nexport {\n  updateBackground,\n  updateHitArea\n};\n//# sourceMappingURL=background-applier.js.map\n","import { registerApplyOverflowClip, setAfterLayout, DebugLogger } from \"@number10/jsx-core\";\nimport * as Phaser from \"phaser\";\nimport { applyCanvasClip } from \"../clip/canvas-clip.js\";\nimport { updateBackground, updateHitArea } from \"./appliers/background-applier.js\";\nconst phaserClip = (container, containerProps, width, height) => {\n  const phaserContainer = container;\n  if (phaserContainer.scene?.renderer?.type === Phaser.CANVAS) {\n    const ext2 = phaserContainer;\n    if (containerProps.overflow === \"hidden\" && width > 0 && height > 0) {\n      if (!ext2.__overflowCanvasClip) {\n        const shape = { width, height };\n        if (containerProps.cornerRadius !== void 0)\n          shape.cornerRadius = containerProps.cornerRadius;\n        ext2.__overflowCanvasClip = applyCanvasClip(phaserContainer, shape);\n        DebugLogger.log(\"overflowMask\", \"Created canvas clip\");\n      } else {\n        ext2.__overflowCanvasClip.update({\n          width,\n          height,\n          cornerRadius: containerProps.cornerRadius ?? 0\n        });\n      }\n    } else if (ext2.__overflowCanvasClip) {\n      ext2.__overflowCanvasClip.destroy();\n      delete ext2.__overflowCanvasClip;\n      DebugLogger.log(\"overflowMask\", \"Removed canvas clip\");\n    }\n    return;\n  }\n  if (typeof phaserContainer.setStencilClip !== \"function\")\n    return;\n  const ext = phaserContainer;\n  if (containerProps.overflow === \"hidden\") {\n    if (!ext.__overflowClip) {\n      const shapeBase = { width, height };\n      if (containerProps.cornerRadius !== void 0)\n        shapeBase.cornerRadius = containerProps.cornerRadius;\n      phaserContainer.setStencilClip(shapeBase);\n      const handle = phaserContainer.getStencilClipHandle();\n      if (!handle) return;\n      ext.__overflowClip = handle;\n      DebugLogger.log(\"overflowMask\", \"Created stencil clip\");\n    } else {\n      const update = {\n        width,\n        height,\n        cornerRadius: containerProps.cornerRadius ?? 0\n      };\n      phaserContainer.updateStencilClip(update);\n    }\n  } else if (ext.__overflowClip) {\n    phaserContainer.clearStencilClip();\n    delete ext.__overflowClip;\n    DebugLogger.log(\"overflowMask\", \"Removed stencil clip\");\n  }\n};\nregisterApplyOverflowClip(phaserClip);\nconst phaserAfterLayout = (container, width, height) => {\n  const phaserContainer = container;\n  updateBackground(phaserContainer, width, height);\n  updateHitArea(phaserContainer, width, height);\n};\nsetAfterLayout(phaserAfterLayout);\n//# sourceMappingURL=phaser-layout-bridge.js.map\n","import * as Phaser from \"phaser\";\nimport { getGestureManager } from \"../../gestures/gesture-manager.js\";\nimport \"../../layout/phaser-layout-bridge.js\";\nimport { calculateLayout } from \"@number10/jsx-core\";\nimport equal from \"../../utils/fast-deep-equal.js\";\nfunction updateGestureHitAreaIfNeeded(node) {\n  const containerWithLayout = node;\n  if (!containerWithLayout.__getLayoutSize) return;\n  try {\n    const manager = getGestureManager(containerWithLayout.scene);\n    const size = containerWithLayout.__getLayoutSize();\n    const hitArea = new Phaser.Geom.Rectangle(0, 0, size.width, size.height);\n    manager.updateHitArea(node, hitArea);\n  } catch {\n  }\n}\nconst LAYOUT_RELEVANT_PROPS = [\n  \"width\",\n  \"height\",\n  \"minWidth\",\n  \"maxWidth\",\n  \"minHeight\",\n  \"maxHeight\",\n  \"flex\",\n  \"margin\",\n  \"padding\",\n  \"gap\",\n  \"direction\",\n  \"justifyContent\",\n  \"alignItems\",\n  \"overflow\"\n  //'visible', // changes between 'none' / undefined affect child inclusion in layout\n];\nconst DEEP_COMPARE_PROPS = /* @__PURE__ */ new Set([\"margin\", \"padding\"]);\nfunction hasLayoutPropsChanged(prev, next) {\n  for (const prop of LAYOUT_RELEVANT_PROPS) {\n    const oldVal = prev[prop];\n    const newVal = next[prop];\n    if (DEEP_COMPARE_PROPS.has(prop)) {\n      if (!equal(oldVal, newVal)) {\n        return true;\n      }\n    } else {\n      if (oldVal !== newVal) {\n        return true;\n      }\n    }\n  }\n  return false;\n}\nfunction getParentLayoutContext(node) {\n  const parent = node.parentContainer;\n  if (parent && parent.__layoutProps && parent.__getLayoutSize) {\n    const parentSize = parent.__getLayoutSize();\n    const padding = parent.__layoutProps.padding ?? 0;\n    const normPadding = typeof padding === \"number\" ? { left: padding, right: padding, top: padding, bottom: padding } : {\n      left: padding.left ?? 0,\n      right: padding.right ?? 0,\n      top: padding.top ?? 0,\n      bottom: padding.bottom ?? 0\n    };\n    return {\n      parentSize: {\n        width: parentSize.width - normPadding.left - normPadding.right,\n        height: parentSize.height - normPadding.top - normPadding.bottom\n      }\n      // Parent already provides content-area, no padding offset needed\n    };\n  }\n  if (node.scene) {\n    return {\n      parentSize: {\n        width: node.scene.scale.width,\n        height: node.scene.scale.height\n      }\n    };\n  }\n  return {};\n}\nfunction applyLayoutProps(node, prev, next) {\n  node.__layoutProps = next;\n  if (hasLayoutPropsChanged(prev, next)) {\n    const { parentSize, parentPadding } = getParentLayoutContext(node);\n    calculateLayout(node, next, parentSize, parentPadding);\n    updateGestureHitAreaIfNeeded(node);\n  }\n}\nexport {\n  applyLayoutProps\n};\n//# sourceMappingURL=applyLayout.js.map\n","import { createTextStyleTokens as e, ensureContrast as t, getContrastRatio as n, getPresetWithMode as r, numberToHex as i, registerComponentThemeDefaults as a, resolveContrastTextColor as o, resolveContrastTintColor as s } from \"@number10/jsx-core\";\n//#region src/theme-defaults.ts\nfunction c(e, r, i = 4.5) {\n\tfor (let t of r) if (n(t, e) >= i) return t;\n\treturn [\n\t\t...r.map((n) => t(n, e, i)),\n\t\tt(0, e, i),\n\t\tt(16777215, e, i)\n\t].reduce((t, r) => n(r, e) > n(t, e) ? r : t);\n}\nfunction l(e, t, n = 4.5) {\n\treturn i(c(e, t, n));\n}\nfunction u(t) {\n\tlet n = t, r = e(n.text.DEFAULT.toString()), i = [\n\t\tn.text.lightest.toNumber(),\n\t\t16777215,\n\t\tn.text.light.toNumber(),\n\t\tn.text.dark.toNumber(),\n\t\tn.text.darkest.toNumber(),\n\t\t0\n\t], a = [\n\t\tn.text.dark.toNumber(),\n\t\tn.text.darkest.toNumber(),\n\t\t0,\n\t\tn.text.DEFAULT.toNumber(),\n\t\tn.text.light.toNumber(),\n\t\t16777215\n\t], u = {\n\t\talpha: 1,\n\t\tvisible: !0\n\t}, d = {\n\t\ttext: \"\",\n\t\talpha: 1,\n\t\tvisible: !0,\n\t\tstyle: r.DEFAULT\n\t}, f = {\n\t\tsize: 24,\n\t\ttint: n.border.dark.toNumber()\n\t}, p = {\n\t\talpha: 1,\n\t\tvisible: !0\n\t}, m = {\n\t\talpha: 1,\n\t\tvisible: !0\n\t}, h = {\n\t\tvariant: \"spinner\",\n\t\tsize: \"medium\",\n\t\tcolor: n.primary.DEFAULT.toNumber(),\n\t\ttrackColor: n.primary.DEFAULT.toNumber(),\n\t\tanimationSpeed: 2.4,\n\t\tgap: 8,\n\t\tdotCount: 3,\n\t\tdotSize: 7,\n\t\tpulseScale: 1,\n\t\tlabelStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: n.text.light.toString()\n\t\t},\n\t\tlabels: { loading: \"\" }\n\t}, g = {\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tpadding: 14,\n\t\tgap: 18,\n\t\tpreviewSize: 116,\n\t\tpreviewGap: 10,\n\t\tpreviewBorderWidth: 2,\n\t\tpreviewCornerRadius: 8,\n\t\ttrackLength: 280,\n\t\ttrackHeight: 14,\n\t\tgradientSteps: 32,\n\t\tcontrolGap: 12,\n\t\tcontrolBackgroundColor: n.surface.medium.toNumber(),\n\t\tcontrolBackgroundAlpha: .65,\n\t\tcloseButtonSize: 24,\n\t\tcloseButtonCornerRadius: 5,\n\t\tthumbSize: 18,\n\t\tthumbBorderColor: 16777215,\n\t\tswatchSize: 18,\n\t\tswatchGap: 6,\n\t\tswatchCornerRadius: 4,\n\t\tlabelStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"12px\"\n\t\t},\n\t\tvalueStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"12px\"\n\t\t},\n\t\ttitleStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"16px\",\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\thexStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tlabels: {\n\t\t\ttitle: \"Color Picker\",\n\t\t\ttone: \"Tone\",\n\t\t\tvivid: \"Vivid\",\n\t\t\tmuted: \"Muted\",\n\t\t\thue: \"Hue\",\n\t\t\tsaturation: \"Saturation\",\n\t\t\tlightness: \"Lightness\",\n\t\t\tclose: \"X\"\n\t\t}\n\t}, _ = {\n\t\tcheckedColor: n.primary.DEFAULT.toNumber(),\n\t\tindeterminateColor: n.primary.medium.toNumber(),\n\t\tcolor: n.border.medium.toNumber(),\n\t\tgap: 10,\n\t\tsize: 20,\n\t\tdisabledAlpha: .5,\n\t\tlabelPosition: \"right\",\n\t\tlabelStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"14px\"\n\t\t}\n\t}, v = {\n\t\tanimated: !1,\n\t\tmaxHeight: 200,\n\t\tanimationConfig: \"gentle\",\n\t\tdirection: \"column\",\n\t\teffect: \"none\",\n\t\teffectConfig: {\n\t\t\tmagnitude: .02,\n\t\t\ttime: 150\n\t\t},\n\t\theaderStyle: {\n\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\tpadding: 10,\n\t\t\tgap: 10,\n\t\t\tcornerRadius: 5,\n\t\t\twidth: \"fill\"\n\t\t},\n\t\tcontentStyle: {\n\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\tpadding: 10,\n\t\t\tcornerRadius: 5,\n\t\t\twidth: \"fill\"\n\t\t},\n\t\tIcon: { size: 24 },\n\t\ttextStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"18px\"\n\t\t}\n\t}, y = {\n\t\ttone: \"neutral\",\n\t\tvariant: \"solid\",\n\t\tsize: \"medium\",\n\t\tmaxCount: 99,\n\t\tdisabledAlpha: .5,\n\t\ttextStyle: { fontFamily: \"Arial\" }\n\t}, b = {\n\t\ttone: \"neutral\",\n\t\tvariant: \"soft\",\n\t\tsize: \"medium\",\n\t\tdisabledAlpha: .5,\n\t\ttextStyle: { fontFamily: \"Arial\" },\n\t\tcloseSize: 16\n\t}, x = n.primary.dark.toNumber(), S = o(n, \"text/on-brand\", x), C = s(n, \"icon/on-brand\", x, 3), w = n.surface.lightest.toNumber(), T = l(w, a), E = c(w, a, 3), D = n.error.dark.toNumber(), O = o(n, \"text/on-danger\", D), k = s(n, \"icon/on-danger\", D, 3), A = {\n\t\tvariant: \"primary\",\n\t\tsize: \"medium\",\n\t\tbackgroundColor: x,\n\t\tbackgroundAlpha: 1,\n\t\tborderColor: n.primary.darkest.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tgap: 8,\n\t\tpadding: {\n\t\t\ttop: 8,\n\t\t\tbottom: 8,\n\t\t\tleft: 16,\n\t\t\tright: 16\n\t\t},\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t\teffect: \"press\",\n\t\teffectConfig: {\n\t\t\tintensity: .94,\n\t\t\ttime: 140\n\t\t},\n\t\ticonSize: 18,\n\t\theight: 40,\n\t\tdisabledColor: n.surface.medium.toNumber(),\n\t\tdisabledTextColor: n.text.light.toString(),\n\t\tdisabledIconTint: n.text.light.toNumber(),\n\t\tdisabledAlpha: .48,\n\t\ttextStyle: {\n\t\t\tcolor: S,\n\t\t\tfontFamily: \"Arial\",\n\t\t\tfontSize: \"16px\",\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tText: { style: {\n\t\t\tcolor: S,\n\t\t\tfontFamily: \"Arial\",\n\t\t\tfontSize: \"16px\",\n\t\t\tfontStyle: \"bold\"\n\t\t} },\n\t\tIcon: {\n\t\t\tsize: 18,\n\t\t\ttint: C\n\t\t},\n\t\tprimary: {\n\t\t\tbackgroundColor: x,\n\t\t\tborderColor: n.primary.darkest.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\tcolor: S,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: C }\n\t\t},\n\t\tsecondary: {\n\t\t\tbackgroundColor: w,\n\t\t\tbackgroundAlpha: .92,\n\t\t\tborderColor: n.border.light.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: T,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: E }\n\t\t},\n\t\toutline: {\n\t\t\tbackgroundColor: n.primary.dark.toNumber(),\n\t\t\tbackgroundAlpha: .08,\n\t\t\tborderColor: n.primary.light.toNumber(),\n\t\t\tborderWidth: 2,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: n.primary.light.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: n.primary.light.toNumber() }\n\t\t},\n\t\tghost: {\n\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\tbackgroundAlpha: .18,\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderAlpha: .35,\n\t\t\tborderWidth: 1,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: n.text.light.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: n.text.light.toNumber() }\n\t\t},\n\t\tdanger: {\n\t\t\tbackgroundColor: D,\n\t\t\tborderColor: n.error.darkest.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\tcolor: O,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: k }\n\t\t},\n\t\tsmall: {\n\t\t\theight: 32,\n\t\t\tpadding: {\n\t\t\t\ttop: 6,\n\t\t\t\tbottom: 6,\n\t\t\t\tleft: 12,\n\t\t\t\tright: 12\n\t\t\t},\n\t\t\tcornerRadius: 6,\n\t\t\tgap: 6,\n\t\t\ticonSize: 15,\n\t\t\ttextStyle: { fontSize: \"12px\" },\n\t\t\tIcon: { size: 15 }\n\t\t},\n\t\tmedium: {\n\t\t\theight: 40,\n\t\t\tpadding: {\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8,\n\t\t\t\tleft: 16,\n\t\t\t\tright: 16\n\t\t\t},\n\t\t\tcornerRadius: 8,\n\t\t\tgap: 8,\n\t\t\ticonSize: 18,\n\t\t\tIcon: { size: 18 }\n\t\t},\n\t\tlarge: {\n\t\t\theight: 48,\n\t\t\tpadding: {\n\t\t\t\ttop: 10,\n\t\t\t\tbottom: 10,\n\t\t\t\tleft: 20,\n\t\t\t\tright: 20\n\t\t\t},\n\t\t\tcornerRadius: 10,\n\t\t\tgap: 10,\n\t\t\ticonSize: 22,\n\t\t\ttextStyle: { fontSize: \"18px\" },\n\t\t\tIcon: { size: 22 }\n\t\t}\n\t}, j = {\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tbackgroundAlpha: .95,\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tpadding: 2,\n\t\titemHeight: 36,\n\t\titemGap: 1,\n\t\titemPadding: {\n\t\t\tleft: 12,\n\t\t\tright: 12,\n\t\t\ttop: 6,\n\t\t\tbottom: 6\n\t\t},\n\t\titemCornerRadius: 5,\n\t\titemStyle: {\n\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\tbackgroundAlpha: 0,\n\t\t\tborderWidth: 0\n\t\t},\n\t\titemHoverStyle: {\n\t\t\tbackgroundColor: n.surface.medium.toNumber(),\n\t\t\tbackgroundAlpha: .55\n\t\t},\n\t\titemSelectedStyle: {\n\t\t\tbackgroundColor: n.primary.dark.toNumber(),\n\t\t\tbackgroundAlpha: 1,\n\t\t\tborderColor: n.primary.dark.toNumber(),\n\t\t\tborderWidth: 1\n\t\t},\n\t\titemDisabledStyle: { alpha: .45 },\n\t\tdisabledAlpha: .5,\n\t\ttextStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: l(n.surface.dark.toNumber(), a)\n\t\t},\n\t\tselectedTextStyle: {\n\t\t\tcolor: l(n.primary.dark.toNumber(), i),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tdisabledTextStyle: { color: n.text.light.toString() },\n\t\temptyStyle: {\n\t\t\tcolor: l(n.surface.dark.toNumber(), a),\n\t\t\tfontSize: \"14px\"\n\t\t},\n\t\tlabels: { empty: \"No items\" }\n\t}, M = {\n\t\tbuttonVariant: \"secondary\",\n\t\tbuttonSize: \"medium\",\n\t\tplacement: \"bottom-start\",\n\t\twidth: 220,\n\t\tgap: 6,\n\t\ticonGap: 8\n\t}, N = {\n\t\tbackdropColor: 0,\n\t\tbackdropOpacity: .5,\n\t\topenDuration: 320,\n\t\tcloseDuration: 260\n\t}, P = {\n\t\tgap: 10,\n\t\tpadding: 0,\n\t\tvalueWidth: 78,\n\t\tcontrolHeight: 34,\n\t\tcontrolGap: 0,\n\t\tbuttonControlSize: 34,\n\t\tbuttonGap: 0,\n\t\tbuttonPlacement: \"split\",\n\t\tbuttonDirection: \"row\",\n\t\tbuttonVariant: \"secondary\",\n\t\tbuttonSize: \"small\",\n\t\tbuttonTextStyle: {\n\t\t\t...r.DEFAULT,\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tbuttonIndicatorColor: n.text.DEFAULT.toNumber(),\n\t\tbuttonIndicatorActiveColor: n.surface.DEFAULT.toNumber(),\n\t\tlabelPosition: \"left\",\n\t\tvalueBackgroundColor: n.surface.light.toNumber(),\n\t\tvalueBackgroundAlpha: 1,\n\t\tvalueBorderColor: n.border.medium.toNumber(),\n\t\tvalueBorderWidth: 1,\n\t\tvalueCornerRadius: 0,\n\t\tvaluePadding: {\n\t\t\tleft: 6,\n\t\t\tright: 6,\n\t\t\ttop: 4,\n\t\t\tbottom: 4\n\t\t},\n\t\tdisabledAlpha: .5,\n\t\trepeatOnHold: !0,\n\t\tholdDelay: 350,\n\t\trepeatInterval: 90,\n\t\tlabelStyle: {\n\t\t\t...r.medium,\n\t\t\tcolor: n.text.DEFAULT.toString()\n\t\t},\n\t\tvalueStyle: {\n\t\t\t...r.medium,\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tlabels: {\n\t\t\tdecrement: \"-\",\n\t\t\tincrement: \"+\",\n\t\t\tvalue: \"Value\"\n\t\t},\n\t\tButton: {\n\t\t\tminWidth: 34,\n\t\t\twidth: 34,\n\t\t\theight: 34,\n\t\t\tpadding: 0,\n\t\t\tcornerRadius: 0,\n\t\t\tbackgroundColor: n.primary.dark.toNumber(),\n\t\t\tborderColor: n.primary.dark.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\ttextStyle: {\n\t\t\t\t...r.DEFAULT,\n\t\t\t\tfontStyle: \"bold\",\n\t\t\t\tcolor: o(n, \"text/on-brand\", n.primary.dark.toNumber())\n\t\t\t}\n\t\t}\n\t}, F = {\n\t\tcolumns: 6,\n\t\tswatchSize: 28,\n\t\tswatchGap: 8,\n\t\trowGap: 8,\n\t\titemWidth: 28,\n\t\tswatchCornerRadius: 5,\n\t\tswatchBorderColor: n.border.medium.toNumber(),\n\t\tswatchBorderWidth: 1,\n\t\tswatchSelectedBorderColor: n.surface.lightest.toNumber(),\n\t\tswatchSelectedBorderWidth: 3,\n\t\tswatchDisabledAlpha: .45,\n\t\tselectedCheckColor: n.surface.lightest.toNumber(),\n\t\tdisabledAlpha: .5,\n\t\tshowTitle: !0,\n\t\tshowHex: !1,\n\t\tpadding: 0,\n\t\tgap: 10,\n\t\ttitleStyle: {\n\t\t\t...r.medium,\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\temptyStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: n.text.light.toString()\n\t\t},\n\t\thexStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: n.text.light.toString()\n\t\t},\n\t\tlabels: {\n\t\t\ttitle: \"Palette\",\n\t\t\tempty: \"No colors\"\n\t\t}\n\t}, I = {\n\t\twidth: 240,\n\t\theight: 22,\n\t\torientation: \"horizontal\",\n\t\tlabelPosition: \"right\",\n\t\ttrackColor: n.surface.dark.toNumber(),\n\t\tfillColor: n.success.DEFAULT.toNumber(),\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 11,\n\t\tgap: 8,\n\t\tdisabledAlpha: .5,\n\t\tlabelStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"13px\"\n\t\t}\n\t}, L = {\n\t\twidth: \"fill\",\n\t\tbarHeight: 24,\n\t\tgap: 8,\n\t\tlabelStyle: {\n\t\t\tcolor: \"#e0e7ff\",\n\t\t\tfontSize: \"14px\"\n\t\t},\n\t\tpercentageStyle: {\n\t\t\tcolor: \"#9fb3c8\",\n\t\t\tfontSize: \"13px\"\n\t\t},\n\t\tcancelButtonSize: \"small\",\n\t\tlabels: {\n\t\t\tcancel: \"Cancel\",\n\t\t\tloading: \"Loading...\"\n\t\t}\n\t}, R = {\n\t\ttrackColor: n.surface.dark.toNumber(),\n\t\ttrackFilledColor: n.primary.dark.toNumber(),\n\t\ttrackHeight: 6,\n\t\ttrackBorderRadius: 3,\n\t\ttrackLength: 200,\n\t\ttrackHoverColor: n.surface.dark.toNumber(),\n\t\tthumbColor: n.primary.light.toNumber(),\n\t\tthumbSize: 20,\n\t\tthumbBorderColor: n.border.light.toNumber(),\n\t\tthumbBorderWidth: 2,\n\t\tthumbHoverColor: n.primary.light.toNumber(),\n\t\tthumbActiveColor: n.primary.dark.toNumber(),\n\t\tthumbDragScale: 1.1,\n\t\tmarkColor: n.border.medium.toNumber(),\n\t\tmarkHeight: 8,\n\t\tmarkWidth: 2,\n\t\tlabelStyle: r.small,\n\t\tlabelOffset: 10,\n\t\tvalueLabel: {\n\t\t\tbackgroundColor: n.background.dark.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\t...r.small,\n\t\t\t\tcolor: n.text.light.toString()\n\t\t\t},\n\t\t\tpadding: {\n\t\t\t\tleft: 6,\n\t\t\t\tright: 6,\n\t\t\t\ttop: 4,\n\t\t\t\tbottom: 4\n\t\t\t},\n\t\t\tcornerRadius: 4,\n\t\t\toffset: 8\n\t\t},\n\t\tminDistance: 0,\n\t\tdisabledAlpha: .4\n\t}, z = {\n\t\tselectedColor: n.primary.DEFAULT.toNumber(),\n\t\tcolor: n.border.dark.toNumber(),\n\t\tborderWidth: 2,\n\t\tgap: 8,\n\t\tsize: 18,\n\t\tinnerSize: 8,\n\t\tdisabledAlpha: .5,\n\t\tlabelPosition: \"right\",\n\t\tlabelStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"14px\"\n\t\t}\n\t}, ee = {\n\t\tdirection: \"column\",\n\t\tgap: 8\n\t}, B = {\n\t\tsize: \"medium\",\n\t\tgap: 4,\n\t\ticonSize: 24,\n\t\tfilledColor: \"#fbbf24\",\n\t\temptyColor: \"#475569\",\n\t\tdisabledAlpha: .5,\n\t\tlabelStyle: {\n\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\tfontSize: \"13px\"\n\t\t},\n\t\tlabels: { rating: \"\" }\n\t}, V = {\n\t\tvariant: \"solid\",\n\t\tsize: \"md\",\n\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\tbackgroundAlpha: 1,\n\t\tpadding: 16,\n\t\tgap: 8,\n\t\tdividerColor: n.border.light.toNumber(),\n\t\titemGap: 8,\n\t\tsectionGap: 10,\n\t\theaderStyle: {\n\t\t\tgap: 10,\n\t\t\tpadding: {\n\t\t\t\ttop: 0,\n\t\t\t\tright: 0,\n\t\t\t\tbottom: 6,\n\t\t\t\tleft: 0\n\t\t\t},\n\t\t\twidth: \"fill\"\n\t\t},\n\t\tfooterStyle: {\n\t\t\tgap: 8,\n\t\t\tpadding: {\n\t\t\t\ttop: 6,\n\t\t\t\tright: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\tleft: 0\n\t\t\t},\n\t\t\twidth: \"fill\"\n\t\t},\n\t\tsectionStyle: {\n\t\t\tgap: 8,\n\t\t\tpadding: {\n\t\t\t\ttop: 4,\n\t\t\t\tright: 0,\n\t\t\t\tbottom: 8,\n\t\t\t\tleft: 0\n\t\t\t},\n\t\t\twidth: \"fill\",\n\t\t\ttitleStyle: {\n\t\t\t\t...r.medium,\n\t\t\t\tcolor: n.text.dark.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t}\n\t\t},\n\t\titemStyle: {\n\t\t\tgap: 8,\n\t\t\tpadding: {\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8,\n\t\t\t\tleft: 10,\n\t\t\t\tright: 10\n\t\t\t},\n\t\t\twidth: \"fill\",\n\t\t\tcornerRadius: 8,\n\t\t\tbackgroundColor: n.surface.lightest.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\t...r.medium,\n\t\t\t\tcolor: n.text.dark.toString()\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tbackgroundColor: n.primary.lightest.toNumber(),\n\t\t\t\tborderColor: n.primary.light.toNumber(),\n\t\t\t\tborderWidth: 1,\n\t\t\t\tbackgroundAlpha: .9\n\t\t\t},\n\t\t\tdisabledAlpha: .5\n\t\t},\n\t\tbadgeStyle: {\n\t\t\tbackgroundColor: n.primary.light.toNumber(),\n\t\t\tbackgroundAlpha: .15,\n\t\t\tcornerRadius: 6,\n\t\t\tpadding: {\n\t\t\t\ttop: 4,\n\t\t\t\tbottom: 4,\n\t\t\t\tleft: 8,\n\t\t\t\tright: 8\n\t\t\t},\n\t\t\ttextStyle: {\n\t\t\t\t...r.small,\n\t\t\t\tcolor: o(n, \"text/strong\", n.primary.light.toNumber()),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t}\n\t\t},\n\t\tvariants: {\n\t\t\tsolid: {\n\t\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\t\tborderColor: n.border.light.toNumber(),\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\tmuted: {\n\t\t\t\tbackgroundColor: n.surface.medium.toNumber(),\n\t\t\t\tbackgroundAlpha: .85,\n\t\t\t\tborderColor: n.border.light.toNumber(),\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\tghost: {\n\t\t\t\tbackgroundColor: n.background.lightest.toNumber(),\n\t\t\t\tbackgroundAlpha: .6,\n\t\t\t\tborderWidth: 0\n\t\t\t},\n\t\t\tinset: {\n\t\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\t\tbackgroundAlpha: 1,\n\t\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\t\tborderWidth: 1\n\t\t\t}\n\t\t},\n\t\tsizes: {\n\t\t\tsm: {\n\t\t\t\tpadding: 10,\n\t\t\t\tgap: 6\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\tpadding: 16,\n\t\t\t\tgap: 8\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\tpadding: {\n\t\t\t\t\ttop: 20,\n\t\t\t\t\tbottom: 20,\n\t\t\t\t\tleft: 16,\n\t\t\t\t\tright: 16\n\t\t\t\t},\n\t\t\t\tgap: 12\n\t\t\t}\n\t\t}\n\t}, H = {\n\t\ttabListStyle: {\n\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\tpadding: {\n\t\t\t\tleft: 8,\n\t\t\t\tright: 8,\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 0\n\t\t\t},\n\t\t\tcornerRadius: {\n\t\t\t\ttl: 6,\n\t\t\t\ttr: 6,\n\t\t\t\tbl: 0,\n\t\t\t\tbr: 0\n\t\t\t},\n\t\t\twidth: \"fill\",\n\t\t\tgap: 10,\n\t\t\talignItems: \"end\",\n\t\t\tjustifyContent: \"start\"\n\t\t},\n\t\ttabStyle: {\n\t\t\tbackgroundColor: n.surface.medium.toNumber(),\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tpadding: {\n\t\t\t\tleft: 8,\n\t\t\t\tright: 8,\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 3\n\t\t\t},\n\t\t\tcornerRadius: {\n\t\t\t\ttl: 6,\n\t\t\t\ttr: 6,\n\t\t\t\tbl: 0,\n\t\t\t\tbr: 0\n\t\t\t}\n\t\t},\n\t\ttabActiveStyle: {\n\t\t\tpadding: {\n\t\t\t\tleft: 8,\n\t\t\t\tright: 8,\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8\n\t\t\t},\n\t\t\tbackgroundColor: n.primary.DEFAULT.toNumber(),\n\t\t\tborderColor: n.primary.dark.toNumber(),\n\t\t\tborderWidth: 2\n\t\t},\n\t\ttabDisabledStyle: { alpha: .4 },\n\t\tpanelStyle: {\n\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tpadding: 10,\n\t\t\tcornerRadius: {\n\t\t\t\ttl: 0,\n\t\t\t\ttr: 0,\n\t\t\t\tbl: 6,\n\t\t\t\tbr: 6\n\t\t\t},\n\t\t\twidth: \"fill\"\n\t\t}\n\t}, U = {\n\t\tvariant: \"info\",\n\t\twidth: 320,\n\t\tminHeight: 58,\n\t\tgap: 10,\n\t\tcontentGap: 2,\n\t\taccentWidth: 4,\n\t\tprefixWidth: 24,\n\t\tpadding: {\n\t\t\tleft: 10,\n\t\t\tright: 10,\n\t\t\ttop: 9,\n\t\t\tbottom: 9\n\t\t},\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tbackgroundAlpha: .98,\n\t\tborderColor: n.border.dark.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tcloseButtonSize: 24,\n\t\ttitleStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: o(n, \"text/strong\", n.surface.dark.toNumber()),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tmessageStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: o(n, \"text/muted\", n.surface.dark.toNumber())\n\t\t},\n\t\tcloseTextStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: o(n, \"text/muted\", n.surface.dark.toNumber()),\n\t\t\tfontStyle: \"normal\"\n\t\t},\n\t\tlabels: { close: \"x\" },\n\t\tvariants: {\n\t\t\tinfo: {\n\t\t\t\taccentColor: n.info.DEFAULT.toNumber(),\n\t\t\t\tborderColor: n.info.dark.toNumber()\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\taccentColor: n.success.DEFAULT.toNumber(),\n\t\t\t\tborderColor: n.success.dark.toNumber()\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\taccentColor: n.warning.DEFAULT.toNumber(),\n\t\t\t\tborderColor: n.warning.dark.toNumber()\n\t\t\t},\n\t\t\terror: {\n\t\t\t\taccentColor: n.error.DEFAULT.toNumber(),\n\t\t\t\tborderColor: n.error.dark.toNumber()\n\t\t\t}\n\t\t},\n\t\tButton: { ghost: {\n\t\t\tpadding: 0,\n\t\t\tbackgroundAlpha: 0,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: n.text.light.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t}\n\t\t} }\n\t}, W = {\n\t\tposition: \"top-right\",\n\t\twidth: 320,\n\t\tgap: 8,\n\t\toffset: 16,\n\t\tduration: 4e3,\n\t\tdepth: 1200\n\t}, G = {\n\t\twrap: !0,\n\t\tpaddingOffset: 0,\n\t\ttextStyle: r.DEFAULT\n\t}, K = {\n\t\tborderColor: n.border.medium.toNumber(),\n\t\ttrackColor: n.surface.dark.toNumber(),\n\t\ttrackCornerRadius: 0,\n\t\tthumbColor: n.primary.DEFAULT.toNumber(),\n\t\tthumbActiveColor: n.primary.dark.toNumber(),\n\t\tthumbBorderColor: n.primary.light.toNumber(),\n\t\tthumbBorderWidth: 1,\n\t\tthumbCornerRadius: 0,\n\t\tborderWidth: 1,\n\t\tcornerRadius: 0,\n\t\tminThumbSize: 30,\n\t\tsize: 24\n\t}, q = {\n\t\tshowVerticalSlider: \"auto\",\n\t\tshowHorizontalSlider: \"auto\"\n\t}, J = {\n\t\trowTextStyle: r.small,\n\t\tvalueTextStyle: r.small,\n\t\trowGap: 4,\n\t\tcolumnGap: 8\n\t}, Y = {\n\t\tbackgroundColor: n.surface.DEFAULT.toNumber(),\n\t\tcornerRadius: 8,\n\t\tmaxWidth: 600,\n\t\tshowClose: !0,\n\t\tHeader: {\n\t\t\tpadding: {\n\t\t\t\tleft: 24,\n\t\t\t\tright: 24,\n\t\t\t\ttop: 20,\n\t\t\t\tbottom: 16\n\t\t\t},\n\t\t\tgap: 12,\n\t\t\tborderColor: n.border.light.toNumber(),\n\t\t\tcloseButton: {\n\t\t\t\tsize: 32,\n\t\t\t\tcornerRadius: 4,\n\t\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\t\tborderColor: n.border.light.toNumber(),\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\ttextStyle: r.heading\n\t\t},\n\t\tContent: {\n\t\t\tpadding: {\n\t\t\t\tleft: 24,\n\t\t\t\tright: 24,\n\t\t\t\ttop: 16,\n\t\t\t\tbottom: 16\n\t\t\t},\n\t\t\tgap: 12\n\t\t},\n\t\tActions: {\n\t\t\tpadding: {\n\t\t\t\tleft: 24,\n\t\t\t\tright: 24,\n\t\t\t\ttop: 16,\n\t\t\t\tbottom: 20\n\t\t\t},\n\t\t\tgap: 12,\n\t\t\tjustifyContent: \"end\",\n\t\t\tborderColor: n.border.light.toNumber()\n\t\t}\n\t}, X = {\n\t\tmaxWidth: 500,\n\t\tvariants: {\n\t\t\tinfo: {},\n\t\t\twarning: {},\n\t\t\tdestructive: {},\n\t\t\tsuccess: {}\n\t\t}\n\t}, Z = {\n\t\tbackdropAlpha: .5,\n\t\tbackdropColor: 0,\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tbackgroundAlpha: 1,\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tpanelCornerRadius: 16,\n\t\thandleWidth: 36,\n\t\thandleHeight: 5,\n\t\thandleColor: n.border.dark.toNumber()\n\t}, Q = {\n\t\tplacement: \"bottom\",\n\t\toffset: 8,\n\t\tdepth: 1100,\n\t\tcloseOnOutside: !0,\n\t\tcloseOnEscape: !0,\n\t\tviewportPadding: 8,\n\t\topenDuration: 120,\n\t\tcloseDuration: 100,\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tpadding: 10,\n\t\tgap: 8\n\t}, $ = {\n\t\twidth: 220,\n\t\titemHeight: 34,\n\t\titemGap: 8,\n\t\titemPadding: {\n\t\t\tleft: 10,\n\t\t\tright: 10,\n\t\t\ttop: 6,\n\t\t\tbottom: 6\n\t\t},\n\t\titemCornerRadius: 5,\n\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tpadding: 6,\n\t\tgap: 2,\n\t\ttextStyle: {\n\t\t\t...r.small,\n\t\t\tcolor: n.text.medium.toString()\n\t\t},\n\t\tdisabledTextColor: n.text.lightest.toString(),\n\t\tdangerTextColor: n.error.darkest.toString(),\n\t\tdangerBackgroundColor: n.error.dark.toNumber()\n\t}, te = {\n\t\torientation: \"horizontal\",\n\t\tthickness: 1,\n\t\tcolor: n.border.medium.toNumber()\n\t}, ne = {\n\t\ttrigger: {\n\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tcornerRadius: 7,\n\t\t\tpadding: {\n\t\t\t\tleft: 12,\n\t\t\t\tright: 10,\n\t\t\t\ttop: 9,\n\t\t\t\tbottom: 9\n\t\t\t},\n\t\t\twidth: \"fill\",\n\t\t\tgap: 8\n\t\t},\n\t\ttriggerHover: { borderColor: n.primary.DEFAULT.toNumber() },\n\t\ttriggerOpen: {\n\t\t\tborderColor: n.primary.DEFAULT.toNumber(),\n\t\t\tborderWidth: 2,\n\t\t\tbackgroundColor: n.surface.lightest.toNumber()\n\t\t},\n\t\ttriggerDisabled: {\n\t\t\tbackgroundColor: n.surface.light.toNumber(),\n\t\t\talpha: .5\n\t\t},\n\t\tarrow: {\n\t\t\tcolor: n.text.dark.toString(),\n\t\t\tsize: 12\n\t\t},\n\t\tselectionIndicator: {\n\t\t\tcolor: n.primary.dark.toString(),\n\t\t\tsize: 16\n\t\t},\n\t\toverlay: {\n\t\t\tbackgroundColor: n.surface.lightest.toNumber(),\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tcornerRadius: 7,\n\t\t\tmaxHeight: 300,\n\t\t\tpadding: 6\n\t\t},\n\t\toption: {\n\t\t\tpadding: {\n\t\t\t\tleft: 10,\n\t\t\t\tright: 10,\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8\n\t\t\t},\n\t\t\tcornerRadius: 5,\n\t\t\tgap: 8\n\t\t},\n\t\toptionSelected: {\n\t\t\tbackgroundColor: n.primary.lightest.toNumber(),\n\t\t\tborderColor: n.primary.light.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tbackgroundAlpha: .9\n\t\t},\n\t\toptionDisabled: { alpha: .3 },\n\t\toptionGap: 2,\n\t\tfilterInput: {\n\t\t\tbackgroundColor: n.surface.lightest.toNumber(),\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tcornerRadius: 6,\n\t\t\tpadding: {\n\t\t\t\tleft: 10,\n\t\t\t\tright: 10,\n\t\t\t\ttop: 6,\n\t\t\t\tbottom: 6\n\t\t\t},\n\t\t\twidth: \"calc(100% - 20px)\"\n\t\t},\n\t\ttextStyle: {\n\t\t\t...r.DEFAULT,\n\t\t\tcolor: n.text.DEFAULT.toString()\n\t\t},\n\t\tplaceholderStyle: {\n\t\t\t...r.DEFAULT,\n\t\t\tcolor: n.text.light.toString()\n\t\t},\n\t\tanimationConfig: \"stiff\"\n\t}, re = {\n\t\tcharSpacing: 2,\n\t\tcursorColor: n.secondary.DEFAULT.toNumber(),\n\t\tcursorWidth: 3,\n\t\tcursorBlinkSpeed: 530,\n\t\tselectionColor: n.accent.DEFAULT.toNumber(),\n\t\tselectionAlpha: .75,\n\t\tlineHeight: 1.2,\n\t\twordWrap: !1,\n\t\tdisabledBackgroundColor: n.surface.medium.toNumber(),\n\t\tdisabledBorderColor: n.border.light.toNumber(),\n\t\tdisabledAlpha: .6,\n\t\tfocusedBorderColor: n.primary.DEFAULT.toNumber(),\n\t\tbackgroundColor: n.surface.lightest.toNumber(),\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 7,\n\t\tpadding: 10,\n\t\ttextStyle: {\n\t\t\t...r.DEFAULT,\n\t\t\tcolor: n.text.dark.toString()\n\t\t},\n\t\tplaceholderStyle: {\n\t\t\t...r.DEFAULT,\n\t\t\tcolor: n.text.light.toString()\n\t\t}\n\t}, ie = {\n\t\tposition: \"top\",\n\t\tshowDelay: 1e3,\n\t\thideDelay: 500,\n\t\toffset: 8,\n\t\ttextStyle: {\n\t\t\tfontSize: \"12px\",\n\t\t\tfontFamily: \"Arial\",\n\t\t\tcolor: n.text.dark.toString(),\n\t\t\tbackgroundColor: n.warning.medium.toString(),\n\t\t\tpadding: {\n\t\t\t\tx: 2,\n\t\t\t\ty: 2\n\t\t\t}\n\t\t},\n\t\tcornerRadius: 8,\n\t\tanimation: {\n\t\t\tfadeIn: 200,\n\t\t\tfadeOut: 200,\n\t\t\tmove: {\n\t\t\t\tdx: 0,\n\t\t\t\tdy: -20\n\t\t\t},\n\t\t\tpulse: !1,\n\t\t\tpulseScale: [.75, 1.25]\n\t\t}\n\t}, ae = {\n\t\tsize: \"medium\",\n\t\ttextColor: n.text.light.toString(),\n\t\toverlayAlpha: .85,\n\t\tbackgroundColor: n.surface.darkest.toNumber(),\n\t\tbackgroundAlpha: .95,\n\t\tborderColor: n.border.medium.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\titemHeight: 40,\n\t\tvisibleItems: 5,\n\t\titemPadding: {\n\t\t\tleft: 12,\n\t\t\tright: 12\n\t\t},\n\t\tdisabledAlpha: .5,\n\t\ttextStyle: {\n\t\t\t...r.medium,\n\t\t\tcolor: l(n.surface.darkest.toNumber(), a)\n\t\t},\n\t\tselectedTextStyle: {\n\t\t\t...r.medium,\n\t\t\tcolor: l(n.surface.darkest.toNumber(), a),\n\t\t\tfontStyle: \"bold\"\n\t\t},\n\t\tdisabledTextStyle: { color: n.text.lightest.toString() },\n\t\tlabels: { empty: \"No items\" }\n\t};\n\treturn {\n\t\tView: u,\n\t\tText: d,\n\t\tIcon: f,\n\t\tImage: p,\n\t\tSprite: m,\n\t\tActivityIndicator: h,\n\t\tAccordion: v,\n\t\tAlertDialog: X,\n\t\tBadge: y,\n\t\tTag: b,\n\t\tBottomSheet: Z,\n\t\tButton: A,\n\t\tCheckbox: _,\n\t\tColorPicker: g,\n\t\tContextMenu: $,\n\t\tDebugPanel: J,\n\t\tDialog: Y,\n\t\tDivider: te,\n\t\tDropdown: ne,\n\t\tListBox: j,\n\t\tMenuButton: M,\n\t\tModal: N,\n\t\tNumberInput: P,\n\t\tPalettePicker: F,\n\t\tPopover: Q,\n\t\tProgressBar: I,\n\t\tProgressView: L,\n\t\tRadioButton: z,\n\t\tRadioGroup: ee,\n\t\tRatingBar: B,\n\t\tSidebar: V,\n\t\tNotificationStack: W,\n\t\tTabs: H,\n\t\tTextInput: re,\n\t\tToast: U,\n\t\tToolbar: {\n\t\t\torientation: \"horizontal\",\n\t\t\tdensity: \"normal\",\n\t\t\titemWidth: 42,\n\t\t\titemHeight: 36,\n\t\t\tcompactItemWidth: 38,\n\t\t\tcompactItemHeight: 38,\n\t\t\titemGap: 6,\n\t\t\ticonSize: 18,\n\t\t\tcompactIconSize: 16,\n\t\t\tbuttonSize: \"small\",\n\t\t\tcompactButtonSize: \"small\",\n\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\tbackgroundAlpha: .92,\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tcornerRadius: 8,\n\t\t\tpadding: 4,\n\t\t\tgap: 6,\n\t\t\tseparatorColor: n.border.medium.toNumber(),\n\t\t\tseparatorThickness: 1,\n\t\t\tseparatorLength: 26,\n\t\t\tdisabledAlpha: .55,\n\t\t\ttextStyle: {\n\t\t\t\t...r.small,\n\t\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tactiveTextStyle: {\n\t\t\t\tcolor: n.text.DEFAULT.toString(),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tdisabledTextStyle: { color: n.text.lightest.toString() },\n\t\t\tmenuIndicatorStyle: {\n\t\t\t\t...r.small,\n\t\t\t\tcolor: n.text.light.toString()\n\t\t\t},\n\t\t\tlabels: {\n\t\t\t\toverflow: \"More\",\n\t\t\t\tmenuIndicator: \"v\"\n\t\t\t},\n\t\t\tIcon: { tint: n.text.DEFAULT.toNumber() },\n\t\t\tButton: {\n\t\t\t\tminWidth: 0,\n\t\t\t\tpadding: {\n\t\t\t\t\tleft: 8,\n\t\t\t\t\tright: 8,\n\t\t\t\t\ttop: 4,\n\t\t\t\t\tbottom: 4\n\t\t\t\t},\n\t\t\t\tcornerRadius: 5,\n\t\t\t\tgap: 6\n\t\t\t}\n\t\t},\n\t\tWrapText: G,\n\t\tWheelPicker: ae,\n\t\tScrollSlider: K,\n\t\tScrollView: q,\n\t\tSegmentedControl: {\n\t\t\torientation: \"horizontal\",\n\t\t\tsize: \"medium\",\n\t\t\tvariant: \"solid\",\n\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\tbackgroundAlpha: .95,\n\t\t\tborderColor: n.border.medium.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\tcornerRadius: 8,\n\t\t\tpadding: 3,\n\t\t\tgap: 8,\n\t\t\tsegmentGap: 0,\n\t\t\tsegmentWidth: 92,\n\t\t\tsegmentHeight: 34,\n\t\t\tsegmentPadding: {\n\t\t\t\tleft: 10,\n\t\t\t\tright: 10,\n\t\t\t\ttop: 6,\n\t\t\t\tbottom: 6\n\t\t\t},\n\t\t\tsegmentCornerRadius: 6,\n\t\t\tsegmentStyle: {\n\t\t\t\tbackgroundColor: n.surface.dark.toNumber(),\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tborderWidth: 0\n\t\t\t},\n\t\t\tsegmentHoverStyle: {\n\t\t\t\tbackgroundColor: n.surface.medium.toNumber(),\n\t\t\t\tbackgroundAlpha: .55\n\t\t\t},\n\t\t\tsegmentSelectedStyle: {\n\t\t\t\tbackgroundColor: n.primary.dark.toNumber(),\n\t\t\t\tbackgroundAlpha: 1,\n\t\t\t\tborderColor: n.primary.dark.toNumber(),\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\tsegmentDisabledStyle: { alpha: .45 },\n\t\t\ticonGap: 6,\n\t\t\ticonSize: 16,\n\t\t\tdisabledAlpha: .5,\n\t\t\tlabelPosition: \"none\",\n\t\t\tlabelStyle: {\n\t\t\t\t...r.medium,\n\t\t\t\tcolor: n.text.DEFAULT.toString()\n\t\t\t},\n\t\t\ttextStyle: {\n\t\t\t\t...r.small,\n\t\t\t\tcolor: o(n, \"text/default\", n.surface.dark.toNumber()),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tselectedTextStyle: {\n\t\t\t\tcolor: o(n, \"text/on-brand\", n.primary.dark.toNumber()),\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tdisabledTextStyle: { color: n.text.lightest.toString() },\n\t\t\tlabels: { group: \"Options\" }\n\t\t},\n\t\tSlider: R,\n\t\tTooltip: ie,\n\t\tToggle: {\n\t\t\twidth: 50,\n\t\t\theight: 28,\n\t\t\tthumbSize: 24,\n\t\t\ttrackColorOff: n.surface.dark.toNumber(),\n\t\t\ttrackColorOn: n.primary.DEFAULT.toNumber(),\n\t\t\ttrackBorderColorOff: n.border.medium.toNumber(),\n\t\t\ttrackBorderColorOn: n.primary.dark.toNumber(),\n\t\t\ttrackBorderWidth: 1,\n\t\t\tthumbColor: n.surface.lightest.toNumber(),\n\t\t\tthumbBorderColor: n.border.light.toNumber(),\n\t\t\tthumbBorderWidth: 1,\n\t\t\tdisabledColor: n.border.medium.toNumber(),\n\t\t\tdisabledAlpha: .5,\n\t\t\tpadding: 2,\n\t\t\tduration: 200,\n\t\t\tgap: 8,\n\t\t\tlabelStyle: r.DEFAULT,\n\t\t\tlabelPosition: \"right\"\n\t\t}\n\t};\n}\nfunction d(e = \"oceanBlue\", t = \"light\") {\n\treturn u(r(e, t).colors);\n}\nvar f = d();\nfunction p() {\n\tfor (let e of Object.keys(f)) a(e, (t) => u(t)[e]);\n}\n//#endregion\nexport { u as buildPortableThemeDefaults, d as createPortableThemeDefaults, p as registerPortableDefaults };\n","import { PRIMITIVE_NODES as e, jsx as t, normalizeTextColor as n } from \"@number10/jsx-core\";\n//#region src/primitives/Text.ts\nfunction r(r) {\n\tlet i = { ...r.style ?? {} };\n\tif (i.color !== void 0) {\n\t\tlet e = n(i.color);\n\t\te !== void 0 && (i.color = e);\n\t}\n\treturn t(e.Text, {\n\t\t...r,\n\t\tstyle: i\n\t});\n}\n//#endregion\nexport { r as Text };\n","import { PRIMITIVE_NODES as e, jsx as t } from \"@number10/jsx-core\";\n//#region src/primitives/VectorDrawContent.ts\nfunction n(n) {\n\treturn t(e.VectorDrawContent, n);\n}\n//#endregion\nexport { n as VectorDrawContent };\n","import { PRIMITIVE_NODES as e, jsx as t } from \"@number10/jsx-core\";\n//#region src/primitives/View.ts\nfunction n(n) {\n\treturn t(e.View, n);\n}\n//#endregion\nexport { n as View };\n","import { PRIMITIVE_NODES as e, jsx as t } from \"@number10/jsx-core\";\n//#region src/primitives/Image.ts\nfunction n(n) {\n\treturn t(e.Image, n);\n}\n//#endregion\nexport { n as Image };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, applyEffect as r, getGlobalThemeDefaults as i, resolveComponentTheme as a, resolveEffect as o, useForceRedraw as s, useLayoutEffect as c, useRef as l, useSpring as u, useState as d, useTheme as f } from \"@number10/jsx-core\";\nimport { jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Accordion.tsx\nfunction h(h) {\n\tlet g = f(), { props: _, nestedTheme: v } = a({\n\t\tcomponentName: \"Accordion\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: g,\n\t\tknownComponents: n\n\t}), [y, b] = d(h.defaultOpen ?? !1), x = h.isOpen === void 0 ? y : h.isOpen, S = l(null), C = l(null), w = h.animated ?? _.animated ?? !1, T = h.autoHeight ?? _.autoHeight ?? w, E = h.maxHeight ?? _.maxHeight ?? 200, D = h.animationConfig ?? _.animationConfig ?? \"gentle\", [O, k] = d(E);\n\tc(() => {\n\t\tif (T && x && C.current) {\n\t\t\tlet e = C.current.height ?? E;\n\t\t\tk(e), j(e);\n\t\t}\n\t}, [x, T]);\n\tlet [A, j] = u(x ? T ? O : E : 0, D, h.onAnimationEnd);\n\tw && s(20, A);\n\tlet M = Math.max(0, A.value), N = w ? M : x ? void 0 : 0, P = w ? M > .5 : x, F = () => {\n\t\tlet e = !x;\n\t\tb(e), w && j(e ? T ? O : E : 0), h.onToggle?.(e);\n\t\tlet t = o(h, _);\n\t\tr(S.current, t.effect, t.effectConfig);\n\t}, I = _.headerStyle ?? {}, L = _.contentStyle ?? {}, R = _.textStyle;\n\treturn /* @__PURE__ */ m(t, {\n\t\twidth: h.width,\n\t\theight: h.height,\n\t\tdirection: \"column\",\n\t\t..._,\n\t\ttheme: v,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\tref: S,\n\t\t\t\tdirection: \"row\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tenableGestures: !0,\n\t\t\t\tonTouch: F,\n\t\t\t\t...I,\n\t\t\t\tchildren: typeof h.title == \"string\" ? /* @__PURE__ */ p(e, {\n\t\t\t\t\ttext: h.title,\n\t\t\t\t\t...R && { style: R }\n\t\t\t\t}) : h.title\n\t\t\t}),\n\t\t\tT && /* @__PURE__ */ p(t, {\n\t\t\t\tvisible: !1,\n\t\t\t\tdirection: \"stack\",\n\t\t\t\theadless: !0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\tchildren: /* @__PURE__ */ p(t, {\n\t\t\t\t\tref: C,\n\t\t\t\t\t...L,\n\t\t\t\t\tchildren: h.children\n\t\t\t\t})\n\t\t\t}),\n\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\tdirection: \"column\",\n\t\t\t\theight: N,\n\t\t\t\toverflow: \"hidden\",\n\t\t\t\tvisible: P,\n\t\t\t\t...L,\n\t\t\t\tchildren: h.children\n\t\t\t})\n\t\t]\n\t}, h.key);\n}\n//#endregion\nexport { h as Accordion };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { HexColor as n, KNOWN_COMPONENTS as r, applyEffect as i, getGlobalThemeDefaults as a, getPresetWithMode as o, mergeThemes as s, registerComponentDefaultsIfMissing as c, resolveComponentTheme as l, resolveEffect as u, useRef as d, useTheme as f } from \"@number10/jsx-core\";\nimport { jsx as p } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Button.tsx\nfunction m() {\n\tlet e = o(\"oceanBlue\", \"light\").colors, t = e.primary.dark.toNumber(), r = e.text.lightest.toNumber(), i = e.surface.lightest.toNumber(), a = e.text.dark.toNumber(), s = e.surface.medium.toNumber(), c = e.text.light.toNumber(), l = e.primary.light.toNumber(), u = e.text.light.toNumber(), d = e.error.dark.toNumber(), f = e.text.lightest.toNumber(), p = { medium: {\n\t\tfontSize: \"16px\",\n\t\tfontFamily: \"Arial\",\n\t\tfontStyle: \"bold\"\n\t} };\n\treturn {\n\t\tvariant: \"primary\",\n\t\tsize: \"medium\",\n\t\tdisabledColor: s,\n\t\tdisabledTextColor: \"#\" + new n(c.toString(16).padStart(6, \"0\")).toString(),\n\t\tdisabledIconTint: c,\n\t\tdisabledAlpha: .48,\n\t\theight: 40,\n\t\tbackgroundColor: t,\n\t\tbackgroundAlpha: 1,\n\t\tborderColor: e.primary.darkest.toNumber(),\n\t\tborderWidth: 1,\n\t\tcornerRadius: 8,\n\t\tgap: 8,\n\t\tpadding: {\n\t\t\ttop: 8,\n\t\t\tbottom: 8,\n\t\t\tleft: 16,\n\t\t\tright: 16\n\t\t},\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t\teffect: \"press\",\n\t\teffectConfig: {\n\t\t\tintensity: .94,\n\t\t\ttime: 140\n\t\t},\n\t\ticonSize: 18,\n\t\ttextStyle: {\n\t\t\t...p.medium,\n\t\t\tcolor: `#${r.toString(16).padStart(6, \"0\")}`\n\t\t},\n\t\tText: { style: {\n\t\t\t...p.medium,\n\t\t\tcolor: `#${r.toString(16).padStart(6, \"0\")}`\n\t\t} },\n\t\tIcon: {\n\t\t\tsize: 18,\n\t\t\ttint: r\n\t\t},\n\t\tprimary: {\n\t\t\tbackgroundColor: t,\n\t\t\tborderColor: e.primary.darkest.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\tcolor: `#${r.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: r }\n\t\t},\n\t\tsecondary: {\n\t\t\tbackgroundColor: i,\n\t\t\tbackgroundAlpha: .92,\n\t\t\tborderColor: e.border.light.toNumber(),\n\t\t\tborderWidth: 1,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: `#${a.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: a }\n\t\t},\n\t\toutline: {\n\t\t\tbackgroundColor: e.primary.dark.toNumber(),\n\t\t\tbackgroundAlpha: .08,\n\t\t\tborderColor: l,\n\t\t\tborderWidth: 2,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: `#${l.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: l }\n\t\t},\n\t\tghost: {\n\t\t\tbackgroundColor: e.surface.light.toNumber(),\n\t\t\tbackgroundAlpha: .18,\n\t\t\tborderColor: e.border.medium.toNumber(),\n\t\t\tborderAlpha: .35,\n\t\t\tborderWidth: 1,\n\t\t\ttextStyle: {\n\t\t\t\tcolor: `#${u.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: u }\n\t\t},\n\t\tdanger: {\n\t\t\tbackgroundColor: d,\n\t\t\tborderColor: e.error.darkest.toNumber(),\n\t\t\ttextStyle: {\n\t\t\t\tcolor: `#${f.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\tIcon: { tint: f }\n\t\t},\n\t\tsmall: {\n\t\t\theight: 32,\n\t\t\tpadding: {\n\t\t\t\ttop: 6,\n\t\t\t\tbottom: 6,\n\t\t\t\tleft: 12,\n\t\t\t\tright: 12\n\t\t\t},\n\t\t\tcornerRadius: 6,\n\t\t\tgap: 6,\n\t\t\ticonSize: 15,\n\t\t\ttextStyle: { fontSize: \"12px\" },\n\t\t\tIcon: { size: 15 }\n\t\t},\n\t\tmedium: {\n\t\t\theight: 40,\n\t\t\tpadding: {\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8,\n\t\t\t\tleft: 16,\n\t\t\t\tright: 16\n\t\t\t},\n\t\t\tcornerRadius: 8,\n\t\t\tgap: 8,\n\t\t\ticonSize: 18,\n\t\t\tIcon: { size: 18 }\n\t\t},\n\t\tlarge: {\n\t\t\theight: 48,\n\t\t\tpadding: {\n\t\t\t\ttop: 10,\n\t\t\t\tbottom: 10,\n\t\t\t\tleft: 20,\n\t\t\t\tright: 20\n\t\t\t},\n\t\t\tcornerRadius: 10,\n\t\t\tgap: 10,\n\t\t\ticonSize: 22,\n\t\t\ttextStyle: { fontSize: \"18px\" },\n\t\t\tIcon: { size: 22 }\n\t\t}\n\t};\n}\nc(\"Button\", m());\nfunction h(e, t) {\n\treturn t ? {\n\t\t...e,\n\t\t...t,\n\t\ttextStyle: e.textStyle || t.textStyle ? {\n\t\t\t...e.textStyle ?? {},\n\t\t\t...t.textStyle ?? {}\n\t\t} : void 0,\n\t\tText: e.Text || t.Text ? {\n\t\t\t...e.Text ?? {},\n\t\t\t...t.Text ?? {},\n\t\t\tstyle: e.Text?.style || t.Text?.style ? {\n\t\t\t\t...e.Text?.style ?? {},\n\t\t\t\t...t.Text?.style ?? {}\n\t\t\t} : void 0\n\t\t} : void 0,\n\t\tIcon: e.Icon || t.Icon ? {\n\t\t\t...e.Icon ?? {},\n\t\t\t...t.Icon ?? {}\n\t\t} : void 0\n\t} : e;\n}\nfunction g(e, t, n) {\n\tif (!n) return;\n\tlet r = e[t], i = e[n];\n\treturn {\n\t\t...r?.[n] ?? {},\n\t\t...i ?? {}\n\t};\n}\nfunction _(e) {\n\tlet t = e.Text ?? {}, n = e.Icon ?? {}, r = e.textStyle || t.style ? {\n\t\t...t.style ?? {},\n\t\t...e.textStyle ?? {}\n\t} : void 0;\n\treturn {\n\t\tText: r ? {\n\t\t\t...t,\n\t\t\tstyle: r\n\t\t} : t,\n\t\tIcon: {\n\t\t\t...n,\n\t\t\t...e.iconSize === void 0 ? {} : { size: e.iconSize }\n\t\t}\n\t};\n}\nfunction v(n) {\n\tlet { children: o, label: c, text: m, onClick: v, disabled: y = !1, variant: b, size: x, width: S, height: C, textStyle: w, iconSize: T, disabledAlpha: E, alpha: D, theme: O, onTouch: k, effect: A, effectConfig: j, ...M } = n, N = f(), P = O ? s(N ?? {}, O) : N, { props: F, nestedTheme: I } = l({\n\t\tcomponentName: \"Button\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: P,\n\t\texplicitProps: M,\n\t\tknownComponents: r\n\t}), L = d(null), R = b ?? F.variant ?? \"primary\", z = x ?? F.size ?? \"medium\", B = h(h({ ...F }, g(F, \"variants\", R)), g(F, \"sizes\", z)), V = B.textStyle || w ? {\n\t\t...B.textStyle ?? {},\n\t\t...w ?? {}\n\t} : void 0, H = T ?? B.iconSize, U = E ?? B.disabledAlpha ?? .5, W = B.disabledTextColor ?? F.disabledTextColor ?? V?.color, G = B.disabledIconTint ?? F.disabledIconTint ?? B.iconTint, K = y && W ? {\n\t\t...V ?? {},\n\t\tcolor: W\n\t} : V, q = {\n\t\t...K ? { textStyle: K } : {},\n\t\t...H === void 0 ? {} : { iconSize: H },\n\t\t...y && G !== void 0 ? { Icon: {\n\t\t\t...B.Icon ?? {},\n\t\t\ttint: G\n\t\t} } : {}\n\t}, J = y ? {\n\t\t...B,\n\t\tbackgroundColor: B.disabledColor ?? F.disabledColor ?? B.backgroundColor,\n\t\tbackgroundAlpha: U,\n\t\t...D === void 0 ? {} : { alpha: D },\n\t\t...q\n\t} : {\n\t\t...B,\n\t\t...D === void 0 ? {} : { alpha: D },\n\t\t...q\n\t}, Y = y ? void 0 : (e) => {\n\t\tlet t = u({\n\t\t\teffect: A,\n\t\t\teffectConfig: j\n\t\t}, J);\n\t\ti(L.current, t.effect, t.effectConfig), k?.(e), v?.();\n\t}, X = c ?? m, Z = o ?? (X === void 0 ? null : /* @__PURE__ */ p(e, {\n\t\ttext: `${X}`,\n\t\t...K ? { style: K } : {}\n\t})), Q = s(I, _(J)), { disabledColor: ee, disabledTextColor: te, disabledIconTint: ne, disabledAlpha: re, effect: ie, effectConfig: ae, textStyle: oe, iconSize: se, variant: ce, size: le, variants: ue, sizes: de, Text: fe, Icon: pe, primary: me, secondary: he, outline: ge, ghost: _e, danger: ve, small: ye, medium: be, large: xe, iconTint: Se, ...$ } = J;\n\treturn /* @__PURE__ */ p(t, {\n\t\tref: L,\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tenableGestures: !0,\n\t\t...Y ? { onTouch: Y } : {},\n\t\ttheme: Q,\n\t\t...$,\n\t\twidth: S,\n\t\theight: C,\n\t\t...M,\n\t\tchildren: Z\n\t});\n}\n//#endregion\nexport { v as Button };\n","import { DeferredLayoutQueue as e, useEffect as t, useMemo as n, usePortalSurface as r, useRef as i } from \"@number10/jsx-core\";\n//#region src/Portal.tsx\nfunction a(a) {\n\tlet o = a.depth ?? 1e3, s = a.blockEvents ?? !0, { surface: c, error: l, update: u, vdom: d } = r({\n\t\tdepth: o,\n\t\tid: n(() => a.id ?? `portal-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, [a.id]),\n\t\tblockEvents: s\n\t}), f = i([]), p = i([]), m = i(!1), h = (e) => {\n\t\tc && c.context.adapter?.syncPortalEventBlocking?.(c, e);\n\t}, g = (t) => {\n\t\tc && e.defer(() => {\n\t\t\th(t);\n\t\t});\n\t}, _ = (e) => e ? (Array.isArray(e) ? e.flat(Infinity) : [e]).filter((e) => !!e && typeof e == \"object\" && \"type\" in e) : [];\n\treturn t(() => {\n\t\tif (!c || !d) return;\n\t\tlet { mount: e } = d, t = c.root, n = _(a.children), r = [];\n\t\tfor (let i of n) if (i) {\n\t\t\tlet n = e(t, i);\n\t\t\tn && r.push(n);\n\t\t}\n\t\tf.current = r, p.current = n, m.current = !0, g(s);\n\t}, [\n\t\tc,\n\t\td,\n\t\ts\n\t]), t(() => {\n\t\tif (!c || !d) return;\n\t\tlet e = _(a.children), t = p.current;\n\t\tif (m.current) {\n\t\t\tm.current = !1;\n\t\t\treturn;\n\t\t}\n\t\tlet { patchVNode: n, mount: r, unmount: i } = d, l = c.root, h = Math.max(t.length, e.length);\n\t\tfor (let a = 0; a < h; a++) {\n\t\t\tlet o = t[a], s = e[a];\n\t\t\tif (o && s) n(l, o, s);\n\t\t\telse if (!o && s) {\n\t\t\t\tlet e = r(l, s);\n\t\t\t\te && f.current.push(e);\n\t\t\t} else o && !s && i(o);\n\t\t}\n\t\tp.current = e, o !== c.zIndex && u({ depth: o }), g(s);\n\t}, [\n\t\ta.children,\n\t\to,\n\t\tc,\n\t\td,\n\t\tu,\n\t\ts\n\t]), t(() => {\n\t\tif (c) {\n\t\t\tif (!s) {\n\t\t\t\th(!1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn g(!0), () => {\n\t\t\t\th(!1);\n\t\t\t};\n\t\t}\n\t}, [c, s]), l && console.error(`[Portal] ${l}`), null;\n}\n//#endregion\nexport { a as Portal };\n","import { useCallback as e, useEffect as t, useRef as n, useState as r } from \"@number10/jsx-core\";\n//#region src/useOverlayPresence.ts\nfunction i(i) {\n\tlet [a, o] = r(i), [s, c] = r(i ? \"entering\" : \"exited\"), l = n(i), u = i || a;\n\treturn t(() => {\n\t\ti ? (o(!0), l.current || c(\"entering\")) : l.current && c(\"exiting\"), l.current = i;\n\t}, [i]), {\n\t\tisPresent: u,\n\t\tphase: s,\n\t\tfinishEnter: e(() => {\n\t\t\tc((e) => e === \"entering\" ? \"entered\" : e);\n\t\t}, []),\n\t\tfinishExit: e(() => {\n\t\t\to(!1), c(\"exited\");\n\t\t}, [])\n\t};\n}\n//#endregion\nexport { i as useOverlayPresence };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Portal as t } from \"./Portal.js\";\nimport { useOverlayPresence as n } from \"./useOverlayPresence.js\";\nimport { KNOWN_COMPONENTS as r, applyEffect as i, getGlobalThemeDefaults as a, registerComponentDefaultsIfMissing as o, resolveComponentTheme as s, stopAnimationEffect as c, useCallback as l, useEffect as u, useRef as d, useTheme as f, useViewportSize as p } from \"@number10/jsx-core\";\nimport { Fragment as m, jsx as h, jsxs as g } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Modal.tsx\nfunction _(e, t) {\n\tif (!e || typeof e != \"object\") return;\n\tlet n = e;\n\tif (typeof n.setVisible == \"function\") {\n\t\tn.setVisible(t);\n\t\treturn;\n\t}\n\t\"visible\" in n && (n.visible = t);\n}\no(\"Modal\", {\n\tbackdropColor: 0,\n\tbackdropOpacity: .5,\n\topenDuration: 320,\n\tcloseDuration: 260\n});\nfunction v(t) {\n\tlet n = p(), r = d(null), a = d(null), o = d(!1), s = d(!1), f = d(0), v = d(null), y = d(null), b = d(t.onOpen), x = d(t.onClosed), S = d(t.onRequestClose), C = l((e) => {\n\t\tr.current = e;\n\t}, []), w = l((e) => {\n\t\ta.current = e;\n\t}, []), T = l(() => {\n\t\tv.current !== null && (window.clearTimeout(v.current), v.current = null);\n\t}, []), E = l(() => {\n\t\ty.current !== null && (window.clearTimeout(y.current), y.current = null);\n\t}, []), D = l((e) => {\n\t\te && typeof e == \"object\" && c(e);\n\t}, []);\n\treturn u(() => {\n\t\tb.current = t.onOpen, x.current = t.onClosed, S.current = t.onRequestClose;\n\t}, [\n\t\tt.onClosed,\n\t\tt.onOpen,\n\t\tt.onRequestClose\n\t]), u(() => {\n\t\tt.show || (o.current = !1, s.current = !1);\n\t}, [t.show]), u(() => {\n\t\tlet e = r.current, n = a.current;\n\t\tif (!e || !n) return;\n\t\tT(), E(), D(n), D(e);\n\t\tlet c = () => {\n\t\t\tlet r = ++f.current;\n\t\t\to.current = !0, s.current = !1, t.closeRequestedRef.current = !1, _(e, !0), _(n, !0), b.current?.();\n\t\t\tlet a = () => {\n\t\t\t\tr === f.current && (T(), t.finishEnter());\n\t\t\t};\n\t\t\treturn v.current = window.setTimeout(() => {\n\t\t\t\ta();\n\t\t\t}, t.openDurationMs), i(n, t.viewOpenEffect, {\n\t\t\t\ttime: t.openDurationMs,\n\t\t\t\tonComplete: a\n\t\t\t}), i(e, \"fadeIn\", { time: t.openDurationMs }), () => {\n\t\t\t\tr === f.current && T();\n\t\t\t};\n\t\t};\n\t\tif (t.show && t.phase === \"entering\" && !o.current) return c();\n\t\tif (t.show && t.phase === \"entered\" && !o.current) return console.warn(\"[Modal] starting enter animation on entered phase (likely async portal timing)\"), c();\n\t\tif (!t.show && t.phase === \"exiting\" && !s.current) {\n\t\t\tlet r = ++f.current;\n\t\t\ts.current = !0, _(e, !0), _(n, !0);\n\t\t\tlet a = () => {\n\t\t\t\tr === f.current && (E(), _(e, !1), _(n, !1), t.finishExit(), (S.current !== void 0 || !t.closeRequestedRef.current) && x.current?.(), t.closeRequestedRef.current = !1);\n\t\t\t};\n\t\t\treturn y.current = window.setTimeout(() => {\n\t\t\t\ta();\n\t\t\t}, t.closeDurationMs), i(n, t.viewCloseEffect, {\n\t\t\t\ttime: t.closeDurationMs,\n\t\t\t\tonComplete: a\n\t\t\t}), i(e, \"fadeOut\", { time: t.closeDurationMs }), () => {\n\t\t\t\tr === f.current && E();\n\t\t\t};\n\t\t}\n\t}, [\n\t\tE,\n\t\tT,\n\t\tt.closeDurationMs,\n\t\tt.closeRequestedRef,\n\t\tt.finishEnter,\n\t\tt.finishExit,\n\t\tt.openDurationMs,\n\t\tt.phase,\n\t\tt.show,\n\t\tt.viewCloseEffect,\n\t\tt.viewOpenEffect,\n\t\tD\n\t]), u(() => () => {\n\t\tT(), E(), D(a.current), D(r.current);\n\t}, [\n\t\tE,\n\t\tT,\n\t\tD\n\t]), /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(e, {\n\t\tref: C,\n\t\twidth: n.width,\n\t\theight: n.height,\n\t\tbackgroundColor: t.themedModal.backdropColor ?? 0,\n\t\talpha: t.themedModal.backdropOpacity ?? .5,\n\t\tonTouch: (e) => {\n\t\t\te.stopPropagation(), t.closeOnBackdrop && t.requestClose();\n\t\t},\n\t\tonTouchMove: (e) => {\n\t\t\te.stopPropagation();\n\t\t}\n\t}), /* @__PURE__ */ h(e, {\n\t\twidth: n.width,\n\t\theight: n.height,\n\t\tdirection: \"row\",\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t\tchildren: /* @__PURE__ */ h(e, {\n\t\t\tref: w,\n\t\t\tonTouch: (e) => e.stopPropagation(),\n\t\t\tonTouchMove: (e) => e.stopPropagation(),\n\t\t\ttheme: t.nestedTheme,\n\t\t\tchildren: t.children\n\t\t})\n\t})] });\n}\nfunction y(e) {\n\tlet i = f(), { props: o, nestedTheme: c } = s({\n\t\tcomponentName: \"Modal\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: i,\n\t\tknownComponents: r\n\t}), p = o, m = e.closeOnBackdrop ?? !0, g = e.closeOnEscape ?? !0, _ = p.openDuration ?? 320, y = p.closeDuration ?? 260, b = n(e.show), x = d(!1), S = e.viewOpenEffect ?? \"fadeIn\", C = e.viewCloseEffect ?? \"fadeOut\", w = l(() => {\n\t\tif (x.current = !0, e.onRequestClose) {\n\t\t\te.onRequestClose();\n\t\t\treturn;\n\t\t}\n\t\te.onClosed?.();\n\t}, [e.onClosed, e.onRequestClose]);\n\treturn u(() => {\n\t\tif (!g || !e.show) return;\n\t\tlet t = (e) => {\n\t\t\te.key === \"Escape\" && w();\n\t\t};\n\t\treturn window.addEventListener(\"keydown\", t), () => window.removeEventListener(\"keydown\", t);\n\t}, [\n\t\tg,\n\t\te.show,\n\t\tw\n\t]), b.isPresent ? /* @__PURE__ */ h(t, {\n\t\t...e.key && { key: e.key },\n\t\tdepth: e.depth ?? 1e3,\n\t\tblockEvents: !1,\n\t\tchildren: /* @__PURE__ */ h(v, {\n\t\t\tshow: e.show,\n\t\t\tphase: b.phase,\n\t\t\tfinishEnter: b.finishEnter,\n\t\t\tfinishExit: b.finishExit,\n\t\t\tcloseOnBackdrop: m,\n\t\t\tthemedModal: p,\n\t\t\tnestedTheme: c,\n\t\t\topenDurationMs: _,\n\t\t\tcloseDurationMs: y,\n\t\t\tviewOpenEffect: S,\n\t\t\tviewCloseEffect: C,\n\t\t\tonOpen: e.onOpen,\n\t\t\tonClosed: e.onClosed,\n\t\t\tonRequestClose: e.onRequestClose,\n\t\t\trequestClose: w,\n\t\t\tcloseRequestedRef: x,\n\t\t\tchildren: e.children\n\t\t})\n\t}) : null;\n}\n//#endregion\nexport { y as Modal };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Modal as n } from \"./Modal.js\";\nimport { KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, registerComponentDefaultsIfMissing as a, resolveComponentTheme as o, useRef as s, useTheme as c } from \"@number10/jsx-core\";\nimport { jsx as l, jsxs as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Dialog.tsx\na(\"Dialog\", {\n\tbackgroundColor: 16777215,\n\tcornerRadius: 8,\n\tmaxWidth: 600,\n\tshowClose: !0,\n\tHeader: {\n\t\tpadding: {\n\t\t\tleft: 24,\n\t\t\tright: 24,\n\t\t\ttop: 20,\n\t\t\tbottom: 16\n\t\t},\n\t\tgap: 12,\n\t\tborderColor: 14737632,\n\t\tcloseButton: {\n\t\t\tsize: 32,\n\t\t\tcornerRadius: 4\n\t\t}\n\t},\n\tContent: {\n\t\tpadding: {\n\t\t\tleft: 24,\n\t\t\tright: 24,\n\t\t\ttop: 16,\n\t\t\tbottom: 16\n\t\t},\n\t\tgap: 12\n\t},\n\tActions: {\n\t\tpadding: {\n\t\t\tleft: 24,\n\t\t\tright: 24,\n\t\t\ttop: 16,\n\t\t\tbottom: 20\n\t\t},\n\t\tgap: 12,\n\t\tjustifyContent: \"end\",\n\t\tborderColor: 14737632\n\t}\n});\nfunction d(a) {\n\tlet d = c(), { props: f, nestedTheme: p } = o({\n\t\tcomponentName: \"Dialog\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: d,\n\t\tknownComponents: r\n\t}), m = s(null), h = a.showClose ?? f.showClose ?? !0, g = a.maxWidth ?? f.maxWidth ?? 600, _ = a.prefix ?? f.prefix, v = f.backgroundColor ?? 16777215, y = f.cornerRadius ?? 8, b = f.Header, x = b?.gap ?? 12, S = b?.padding ?? 16, C = b?.borderColor ?? 14737632, w = b?.textStyle, T = b?.closeButton, E = T?.size ?? 32, D = T?.cornerRadius ?? 4, O = T?.backgroundColor, k = T?.borderColor, A = T?.borderWidth, j = f.closeIcon, M = f.Content, N = M?.padding ?? 16, P = M?.gap ?? 12, F = f.Actions, I = F?.borderColor ?? 14737632, L = F?.justifyContent ?? \"end\", R = F?.gap ?? 8, z = F?.padding ?? 16, B = (e) => {\n\t\tm.current = e, a.forwardRef?.(e);\n\t};\n\treturn /* @__PURE__ */ l(n, {\n\t\t...a.key && { key: a.key },\n\t\tshow: a.isOpen,\n\t\tonClosed: a.onClose,\n\t\tcloseOnBackdrop: a.closeOnBackdrop,\n\t\tcloseOnEscape: a.closeOnEscape,\n\t\tdepth: a.depth,\n\t\tchildren: /* @__PURE__ */ u(t, {\n\t\t\tref: B,\n\t\t\twidth: g,\n\t\t\tmaxWidth: g,\n\t\t\tbackgroundColor: v,\n\t\t\tcornerRadius: y,\n\t\t\tpadding: 0,\n\t\t\tdirection: \"column\",\n\t\t\ttheme: p,\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ u(t, {\n\t\t\t\t\tdirection: \"column\",\n\t\t\t\t\tgap: 0,\n\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ u(t, {\n\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\tgap: x,\n\t\t\t\t\t\tpadding: S,\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t_ && _,\n\t\t\t\t\t\t\t/* @__PURE__ */ l(t, {\n\t\t\t\t\t\t\t\tflex: 1,\n\t\t\t\t\t\t\t\tchildren: /* @__PURE__ */ l(e, {\n\t\t\t\t\t\t\t\t\ttext: a.title,\n\t\t\t\t\t\t\t\t\tstyle: w\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\th && a.onClose && /* @__PURE__ */ l(t, {\n\t\t\t\t\t\t\t\twidth: E,\n\t\t\t\t\t\t\t\theight: E,\n\t\t\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\t\t\tcornerRadius: D,\n\t\t\t\t\t\t\t\tbackgroundColor: O,\n\t\t\t\t\t\t\t\tborderColor: k,\n\t\t\t\t\t\t\t\tborderWidth: A,\n\t\t\t\t\t\t\t\tonTouch: (e) => {\n\t\t\t\t\t\t\t\t\te.stopPropagation(), a.onClose?.();\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tchildren: j ?? /* @__PURE__ */ l(e, { text: \"X\" })\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t]\n\t\t\t\t\t}), /* @__PURE__ */ l(t, {\n\t\t\t\t\t\theight: 1,\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\tbackgroundColor: C\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ l(t, {\n\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\tpadding: N,\n\t\t\t\t\tdirection: \"column\",\n\t\t\t\t\tgap: P,\n\t\t\t\t\tchildren: a.children\n\t\t\t\t}),\n\t\t\t\ta.actions && /* @__PURE__ */ u(t, {\n\t\t\t\t\tdirection: \"column\",\n\t\t\t\t\tgap: 0,\n\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ l(t, {\n\t\t\t\t\t\theight: 1,\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\tbackgroundColor: I\n\t\t\t\t\t}), /* @__PURE__ */ l(t, {\n\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\tjustifyContent: L,\n\t\t\t\t\t\tgap: R,\n\t\t\t\t\t\tpadding: z,\n\t\t\t\t\t\tchildren: a.actions\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t]\n\t\t})\n\t});\n}\n//#endregion\nexport { d as Dialog };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { DeferredLayoutQueue as n, KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, normalizeEdgeInsets as a, normalizePadding as o, resolveComponentTheme as s, useCallback as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f, useTheme as p, useViewportSize as m } from \"@number10/jsx-core\";\nimport { jsx as h } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/WrapText.tsx\nvar g = /* @__PURE__ */ new Map();\nfunction _(e) {\n\tif (e.__layoutParent && typeof e.__layoutParent == \"object\") return e.__layoutParent;\n\tif (e.parent) return e.parent;\n\tlet t = e.parentContainer;\n\treturn t && typeof t == \"object\" ? t : null;\n}\nfunction v(e) {\n\treturn e ? (e.__getLayoutSize?.() ?? e.__cachedLayoutSize)?.width ?? 0 : 0;\n}\nfunction y(e) {\n\tlet t = v(e), n = _(e);\n\tfor (; n;) {\n\t\tlet e = v(n);\n\t\tif (t <= 0 && e > 0 && (t = e), n.__layoutProps?.width !== void 0 && e > 0) {\n\t\t\tlet t = o(n.__layoutProps.padding);\n\t\t\treturn Math.max(0, e - t.left - t.right);\n\t\t}\n\t\tn = _(n);\n\t}\n\treturn t;\n}\nfunction b(o) {\n\tlet _ = p(), { props: v, nestedTheme: b } = s({\n\t\tcomponentName: \"WrapText\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: _,\n\t\tknownComponents: r\n\t}), x = m(), S = o.wrap ?? v.wrap ?? !0, C = v.paddingOffset ?? 0, w = typeof o.text == \"string\" ? o.text : null, T = null;\n\ttypeof o.cacheKey == \"string\" ? T = o.cacheKey : typeof o.key == \"string\" ? T = w ? `${o.key}::${w}` : o.key : w && (T = w);\n\tlet E = T ? g.get(T) ?? 0 : 0, [D, O] = f(E), k = d(E), A = d(null), j = d(null), M = c((e) => {\n\t\tif (!S) return;\n\t\tlet t = () => {\n\t\t\tlet t = y(e);\n\t\t\tt > 0 && t !== k.current && t !== D && (k.current = t, T && g.set(T, t), O(t));\n\t\t};\n\t\tj.current === null && (j.current = 1, n.defer(() => {\n\t\t\tj.current = null, t();\n\t\t}));\n\t}, [\n\t\tT,\n\t\tD,\n\t\tS\n\t]), N = c((e) => {\n\t\tlet t = e;\n\t\tA.current !== t && (A.current = t, !(!t || !S || D > 0) && M(t));\n\t}, [\n\t\tD,\n\t\tM,\n\t\tS\n\t]);\n\tl(() => {\n\t\tif (!S || D > 0) return;\n\t\tlet e = A.current;\n\t\te && M(e);\n\t}, [\n\t\tD,\n\t\tM,\n\t\tS\n\t]), u(() => {\n\t\tS && A.current && (k.current = 0, O(0), n.defer(() => {\n\t\t\tA.current && M(A.current);\n\t\t}));\n\t}, [x.width, x.height]), l(() => () => {\n\t\tj.current = null;\n\t}, []);\n\tlet P = D > 0 ? D : k.current, F = a(o.padding), I = (F.left ?? 0) + (F.right ?? 0), L = Math.max(0, (P > C ? P - C : 0) - I), R = {\n\t\t...v.textStyle ?? {},\n\t\t...o.style ?? {}\n\t}, z = S && L > 0, B = {};\n\treturn o.backgroundColor !== void 0 && (B.backgroundColor = o.backgroundColor), o.cornerRadius !== void 0 && (B.cornerRadius = o.cornerRadius), o.borderWidth !== void 0 && (B.borderWidth = o.borderWidth), o.borderColor !== void 0 && (B.borderColor = o.borderColor), o.borderAlpha !== void 0 && (B.borderAlpha = o.borderAlpha), o.enableGestures !== void 0 && (B.enableGestures = o.enableGestures), o.onTouch !== void 0 && (B.onTouch = o.onTouch), o.onTouchOutside !== void 0 && (B.onTouchOutside = o.onTouchOutside), o.onTouchMove !== void 0 && (B.onTouchMove = o.onTouchMove), o.onDoubleTap !== void 0 && (B.onDoubleTap = o.onDoubleTap), o.onLongPress !== void 0 && (B.onLongPress = o.onLongPress), o.onWheel !== void 0 && (B.onWheel = o.onWheel), o.longPressDuration !== void 0 && (B.longPressDuration = o.longPressDuration), o.doubleTapDelay !== void 0 && (B.doubleTapDelay = o.doubleTapDelay), o.maxTouchDuration !== void 0 && (B.maxTouchDuration = o.maxTouchDuration), o.margin !== void 0 && (B.margin = o.margin), o.padding !== void 0 && (B.padding = o.padding), o.visible !== void 0 && (B.visible = o.visible), /* @__PURE__ */ h(t, {\n\t\tref: N,\n\t\twidth: \"fill\",\n\t\ttheme: b,\n\t\t...B,\n\t\tchildren: /* @__PURE__ */ h(e, {\n\t\t\ttext: o.text,\n\t\t\tstyle: R,\n\t\t\t...z && { maxWidth: L },\n\t\t\t...o.alpha !== void 0 && { alpha: o.alpha },\n\t\t\t...o.x !== void 0 && { x: o.x },\n\t\t\t...o.y !== void 0 && { y: o.y }\n\t\t})\n\t});\n}\n//#endregion\nexport { b as WrapText };\n","import { Text as e } from \"./primitives/Text.js\";\nimport \"./primitives.js\";\nimport { Button as t } from \"./Button.js\";\nimport { Dialog as n } from \"./Dialog.js\";\nimport { WrapText as r } from \"./WrapText.js\";\nimport { KNOWN_COMPONENTS as i, getGlobalThemeDefaults as a, registerComponentDefaultsIfMissing as o, resolveComponentTheme as s, useCallback as c, useEffect as l, useMemo as u, useState as d, useTheme as f } from \"@number10/jsx-core\";\nimport { Fragment as p, jsx as m, jsxs as h } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/AlertDialog.tsx\no(\"AlertDialog\", {\n\tmaxWidth: 500,\n\tvariants: {\n\t\tinfo: {},\n\t\twarning: {},\n\t\tdestructive: {},\n\t\tsuccess: {}\n\t}\n});\nfunction g(o) {\n\tlet g = f(), { props: _ } = s({\n\t\tcomponentName: \"AlertDialog\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: g,\n\t\tknownComponents: i\n\t}), [v, y] = d(!1), b = o.showCancel ?? !0, x = o.closeOnConfirm ?? !0, S = o.loading ?? v, C = _.maxWidth ?? 400, w = _.variants, T = o.variant ? w?.[o.variant] : void 0, E = o.prefix ?? T?.prefix, D = T?.buttonVariant, O = c(async () => {\n\t\tif (o.onConfirm) try {\n\t\t\ty(!0);\n\t\t\tlet e = o.onConfirm();\n\t\t\te instanceof Promise && await e, x && o.onClose?.();\n\t\t} catch (e) {\n\t\t\tconsole.error(\"AlertDialog confirm error:\", e);\n\t\t} finally {\n\t\t\ty(!1);\n\t\t}\n\t}, [\n\t\to.onConfirm,\n\t\tx,\n\t\to.onClose\n\t]);\n\tl(() => {\n\t\to.isOpen || y(!1);\n\t}, [o.isOpen]);\n\tlet k = u(() => /* @__PURE__ */ h(p, { children: [b && /* @__PURE__ */ m(t, {\n\t\tonClick: () => setTimeout(() => o.onClose?.(), 200),\n\t\tdisabled: S,\n\t\tchildren: /* @__PURE__ */ m(e, { text: o.cancelText ?? \"Cancel\" })\n\t}), o.onConfirm && /* @__PURE__ */ m(t, {\n\t\tvariant: D,\n\t\tonClick: () => setTimeout(() => O(), 200),\n\t\tdisabled: S,\n\t\tchildren: /* @__PURE__ */ m(e, { text: o.confirmText ?? \"OK\" })\n\t})] }), [\n\t\tb,\n\t\to.onClose,\n\t\to.cancelText,\n\t\tS,\n\t\to.onConfirm,\n\t\tD,\n\t\tO,\n\t\to.confirmText\n\t]), A = u(() => o.description ? /* @__PURE__ */ m(r, { text: o.description }) : null, [o.description]);\n\treturn /* @__PURE__ */ m(n, {\n\t\t...o.key && { key: o.key },\n\t\tisOpen: o.isOpen,\n\t\tonClose: o.onClose,\n\t\ttitle: o.title,\n\t\tprefix: E,\n\t\tmaxWidth: C,\n\t\tshowClose: !0,\n\t\tactions: k,\n\t\tcloseOnBackdrop: !1,\n\t\tcloseOnEscape: !1,\n\t\tchildren: A\n\t});\n}\n//#endregion\nexport { g as AlertDialog };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, resolveComponentTheme as r, useTheme as i, useThemeTokens as a } from \"@number10/jsx-core\";\nimport { jsx as o, jsxs as s } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/DebugPanel.tsx\nvar c = {\n\tfps: [\"fps\", \"frameMs\"],\n\tperf: [\n\t\t\"fps\",\n\t\t\"frameMs\",\n\t\t\"renderer\",\n\t\t\"viewport\"\n\t],\n\tvdom: [\n\t\t\"mountsTotal\",\n\t\t\"mountsByType\",\n\t\t\"mountsByParent\",\n\t\t\"mountsByKey\"\n\t],\n\ttextures: [\"textureCount\"],\n\tfull: [\n\t\t\"fps\",\n\t\t\"frameMs\",\n\t\t\"phaserVersion\",\n\t\t\"renderer\",\n\t\t\"viewport\",\n\t\t\"textureCount\",\n\t\t\"mountsTotal\",\n\t\t\"mountsByType\",\n\t\t\"mountsByParent\",\n\t\t\"mountsByKey\",\n\t\t\"debugFlags\"\n\t]\n}, l = {\n\tfps: \"FPS\",\n\tframeMs: \"Frame ms\",\n\tphaserVersion: \"Phaser\",\n\trenderer: \"Renderer\",\n\tviewport: \"Viewport\",\n\ttextureCount: \"Textures\",\n\tmountsTotal: \"Mounts\",\n\tmountsByType: \"Mounts/type\",\n\tmountsByParent: \"Mounts/parent\",\n\tmountsByKey: \"Mounts/key\",\n\tdebugFlags: \"Debug flags\"\n};\nfunction u(e) {\n\tif (typeof e == \"string\") return e;\n\tif (typeof e == \"number\" || typeof e == \"boolean\") return String(e);\n\tif (e === null) return \"null\";\n\tif (e === void 0) return \"undefined\";\n\tif (typeof e == \"object\") {\n\t\tlet t = e;\n\t\tif (typeof t.name == \"string\" && t.name.length > 0) return t.name;\n\t\tif (typeof t.type == \"string\") return t.type;\n\t\tif (typeof t.label == \"string\") return t.label;\n\t\tlet n = t.constructor;\n\t\tif (n?.name && n.name !== \"Object\") return n.name;\n\t}\n\treturn String(e);\n}\nfunction d(e, t = 3) {\n\treturn Array.from(e.entries()).sort((e, t) => t[1] - e[1]).slice(0, t).map(([e, t]) => `${u(e)}:${t}`).join(\" | \") || \"-\";\n}\nfunction f(e) {\n\treturn typeof e == \"number\" ? String(e) : e;\n}\nfunction p(u) {\n\tlet d = i(), { props: p } = r({\n\t\tcomponentName: \"DebugPanel\",\n\t\tlocalTheme: u.theme ?? d,\n\t\tknownComponents: n\n\t}), m = a(), { snapshot: h, preset: g = \"fps\", metrics: _, compact: v = !1, maxRows: y, labels: b, formatters: x, innerProps: S, theme: C, ...w } = u, T = (() => {\n\t\tlet e = _ && _.length > 0 ? _ : c[g];\n\t\treturn Array.from(new Set(e));\n\t})(), E = p.rowTextStyle ?? m?.textStyles.small, D = p.valueTextStyle ?? m?.textStyles.small, O = T.map((e) => {\n\t\tlet t = h[e], n = b?.[e] ?? l[e], r = x?.[e];\n\t\treturn {\n\t\t\tmetric: e,\n\t\t\tlabel: n,\n\t\t\tvalue: r ? r(t) : f(t)\n\t\t};\n\t}), k = typeof y == \"number\" ? O.slice(0, Math.max(1, y)) : O;\n\tif (v) {\n\t\tlet n = k.map((e) => `${e.label} ${e.value}`).join(\" | \");\n\t\treturn /* @__PURE__ */ o(t, {\n\t\t\t...w,\n\t\t\t...p,\n\t\t\tchildren: /* @__PURE__ */ o(e, {\n\t\t\t\ttext: n,\n\t\t\t\tstyle: D\n\t\t\t})\n\t\t});\n\t}\n\treturn /* @__PURE__ */ o(t, {\n\t\tdirection: \"column\",\n\t\tgap: p.rowGap ?? 4,\n\t\t...w,\n\t\t...p,\n\t\tchildren: k.map((n) => /* @__PURE__ */ s(t, {\n\t\t\tdirection: \"row\",\n\t\t\tgap: 8,\n\t\t\t...S,\n\t\t\tchildren: [/* @__PURE__ */ o(e, {\n\t\t\t\ttext: `${n.label}:`,\n\t\t\t\tstyle: E\n\t\t\t}), /* @__PURE__ */ o(e, {\n\t\t\t\ttext: n.value,\n\t\t\t\tstyle: D\n\t\t\t})]\n\t\t}, `debug-${n.metric}`))\n\t});\n}\n//#endregion\nexport { l as DEFAULT_LABELS, p as DebugPanel, c as PRESET_METRICS, f as formatDefault, d as summarizeMap };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Portal as n } from \"./Portal.js\";\nimport { useOverlayPresence as r } from \"./useOverlayPresence.js\";\nimport { DeferredLayoutQueue as i, KNOWN_COMPONENTS as a, applyEffect as o, getGlobalThemeDefaults as s, mergeThemes as c, resolveComponentTheme as l, stopEffect as u, useEffect as d, useRef as f, useState as p, useTheme as m, useViewportSize as h } from \"@number10/jsx-core\";\nimport { Fragment as g, jsx as _, jsxs as v } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Popover.tsx\nfunction y(e) {\n\treturn e.split(\"-\")[0];\n}\nfunction b(e) {\n\treturn e.split(\"-\")[1] ?? \"center\";\n}\nfunction x(e) {\n\tlet { anchor: t, content: n, placement: r, offset: i } = e, a = y(r), o = b(r), s, c;\n\ta === \"top\" || a === \"bottom\" ? (c = a === \"top\" ? t.y - n.height - i : t.y + t.height + i, s = o === \"start\" ? t.x : o === \"end\" ? t.x + t.width - n.width : t.x + (t.width - n.width) / 2) : (s = a === \"left\" ? t.x - n.width - i : t.x + t.width + i, c = o === \"start\" ? t.y : o === \"end\" ? t.y + t.height - n.height : t.y + (t.height - n.height) / 2);\n\tlet l = e.viewport;\n\tif (l) {\n\t\tlet t = e.viewportPadding ?? 8;\n\t\ts = Math.min(Math.max(t, s), Math.max(t, l.width - n.width - t)), c = Math.min(Math.max(t, c), Math.max(t, l.height - n.height - t));\n\t}\n\treturn {\n\t\tx: s,\n\t\ty: c,\n\t\tplacement: r\n\t};\n}\nfunction S(e) {\n\treturn e?.__getLayoutSize?.() ?? e?.__cachedLayoutSize ?? {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n}\nfunction C(e) {\n\tlet t = e;\n\tif (typeof t.getAbsolutePosition == \"function\") {\n\t\tlet e = t.getAbsolutePosition();\n\t\treturn {\n\t\t\tx: e.x,\n\t\t\ty: e.y\n\t\t};\n\t}\n\tlet n = e;\n\tif (typeof n.getGlobalPosition == \"function\") {\n\t\tlet e = n.getGlobalPosition();\n\t\treturn {\n\t\t\tx: e.x,\n\t\t\ty: e.y\n\t\t};\n\t}\n\tlet r = e.x ?? 0, i = e.y ?? 0, a = e.parent;\n\tfor (; a;) r += a.x ?? 0, i += a.y ?? 0, a = a.parent;\n\treturn {\n\t\tx: r,\n\t\ty: i\n\t};\n}\nfunction w(e) {\n\tif (!e) return {\n\t\tx: 0,\n\t\ty: 0,\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tlet t = S(e), n = C(e);\n\treturn {\n\t\tx: n.x,\n\t\ty: n.y,\n\t\twidth: t.width,\n\t\theight: t.height\n\t};\n}\nvar T = {\n\twidth: 220,\n\theight: 120\n};\nfunction E(e, t) {\n\tif (e) {\n\t\tif (typeof e == \"function\") {\n\t\t\te(t);\n\t\t\treturn;\n\t\t}\n\t\te.current = t;\n\t}\n}\nfunction D(e) {\n\tlet y = m(), b = e.theme ? c(y ?? {}, e.theme) : y, { props: C, nestedTheme: D } = l({\n\t\tcomponentName: \"Popover\",\n\t\tglobalTheme: s(),\n\t\tlocalTheme: b,\n\t\tknownComponents: a\n\t}), O = f(null), k = f(null), [A, j] = p(null), [ee, te] = p(e.defaultOpen ?? !1), M = e.isOpen !== void 0, N = M ? e.isOpen === !0 : ee, P = r(N), ne = e.placement ?? C.placement ?? \"bottom\", re = e.offset ?? C.offset ?? 8, ie = e.depth ?? C.depth ?? 1100, ae = e.closeOnOutside ?? C.closeOnOutside ?? !0, F = e.closeOnEscape ?? C.closeOnEscape ?? !0, I = e.viewportPadding ?? C.viewportPadding ?? 8, oe = e.openEffect ?? C.openEffect ?? \"fadeIn\", se = e.closeEffect ?? C.closeEffect ?? \"fadeOut\", L = e.openDuration ?? C.openDuration ?? 120, R = e.closeDuration ?? C.closeDuration ?? 100, z = e.contentWidth ?? C.contentWidth, B = e.contentHeight ?? C.contentHeight, V = h(), [H, U] = p(w(O.current)), W = A?.width ?? T.width, G = A?.height ?? T.height, K = z === void 0 || B === void 0, q = !K || A !== null, J = e.matchTriggerWidth ? Math.max(H.width, z ?? W) : z ?? W, Y = x({\n\t\tanchor: H,\n\t\tcontent: {\n\t\t\twidth: J,\n\t\t\theight: B ?? G\n\t\t},\n\t\tplacement: ne,\n\t\toffset: re,\n\t\tviewport: V,\n\t\tviewportPadding: I\n\t}), X = (t) => {\n\t\te.disabled && t || (M || te(t), e.onOpenChange?.(t));\n\t}, ce = (e) => {\n\t\te.stopPropagation(), X(!N);\n\t}, le = (e) => {\n\t\te?.stopPropagation(), X(!1);\n\t}, Z = e.contentProps ?? {}, ue = Z.ref, Q = Z.alpha, de = (e) => {\n\t\tlet t = e;\n\t\tk.current = t, E(ue, t);\n\t}, $ = P.phase === \"entered\" || P.phase === \"exiting\" ? Q : 0;\n\treturn d(() => {\n\t\tif (!F || !N) return;\n\t\tlet e = (e) => {\n\t\t\te.key === \"Escape\" && X(!1);\n\t\t};\n\t\treturn window.addEventListener(\"keydown\", e), () => window.removeEventListener(\"keydown\", e);\n\t}, [F, N]), d(() => {\n\t\tif (!P.isPresent) return;\n\t\tlet e = !1, t = () => {\n\t\t\tif (e) return;\n\t\t\tlet n = w(O.current);\n\t\t\tU((e) => Math.abs(e.x - n.x) < .5 && Math.abs(e.y - n.y) < .5 && Math.abs(e.width - n.width) < .5 && Math.abs(e.height - n.height) < .5 ? e : n), i.defer(t);\n\t\t};\n\t\treturn i.defer(t), () => {\n\t\t\te = !0;\n\t\t};\n\t}, [P.isPresent]), d(() => {\n\t\tif (!P.isPresent || !K) return;\n\t\tlet e = !1, t = () => {\n\t\t\tif (e) return;\n\t\t\tlet n = S(k.current);\n\t\t\tn.width > 0 && n.height > 0 && j((e) => e && Math.abs(e.width - n.width) < .5 && Math.abs(e.height - n.height) < .5 ? e : {\n\t\t\t\twidth: n.width,\n\t\t\t\theight: n.height\n\t\t\t}), i.defer(t);\n\t\t};\n\t\treturn i.defer(t), () => {\n\t\t\te = !0;\n\t\t};\n\t}, [\n\t\tP.isPresent,\n\t\tK,\n\t\te.children,\n\t\tz,\n\t\tB\n\t]), d(() => {\n\t\tlet e = k.current;\n\t\tif (!(!e || !P.isPresent)) if (P.phase === \"entering\") {\n\t\t\tif (!q) return;\n\t\t\tu(e), e.setVisible?.(!0), o(e, oe, {\n\t\t\t\ttime: L,\n\t\t\t\tonComplete: P.finishEnter\n\t\t\t});\n\t\t} else P.phase === \"exiting\" && (u(e), o(e, se, {\n\t\t\ttime: R,\n\t\t\tonComplete: () => {\n\t\t\t\tk.current?.setVisible?.(!1), j(null), P.finishExit();\n\t\t\t}\n\t\t}));\n\t}, [\n\t\tP.phase,\n\t\tP.isPresent,\n\t\tq,\n\t\tL,\n\t\tR\n\t]), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(t, {\n\t\t...e.triggerProps ?? {},\n\t\tref: O,\n\t\tenableGestures: !e.disabled,\n\t\tonTouch: ce,\n\t\tchildren: e.trigger\n\t}), P.isPresent && /* @__PURE__ */ v(n, {\n\t\tdepth: ie,\n\t\tblockEvents: !1,\n\t\tchildren: [ae && /* @__PURE__ */ _(t, {\n\t\t\twidth: V.width,\n\t\t\theight: V.height,\n\t\t\tbackgroundColor: 0,\n\t\t\tbackgroundAlpha: 0,\n\t\t\tonTouch: le,\n\t\t\tonTouchMove: (e) => e.stopPropagation()\n\t\t}), /* @__PURE__ */ _(t, {\n\t\t\tdirection: \"column\",\n\t\t\tbackgroundColor: C.backgroundColor ?? 1120295,\n\t\t\tborderColor: C.borderColor ?? 3359061,\n\t\t\tborderWidth: C.borderWidth ?? 1,\n\t\t\tcornerRadius: C.cornerRadius ?? 8,\n\t\t\tpadding: C.padding ?? 10,\n\t\t\tgap: C.gap ?? 8,\n\t\t\t...Z,\n\t\t\tref: de,\n\t\t\tx: Y.x,\n\t\t\ty: Y.y,\n\t\t\t...e.matchTriggerWidth || z !== void 0 ? { width: J } : {},\n\t\t\t...$ === void 0 ? {} : { alpha: $ },\n\t\t\tonTouch: (e) => e.stopPropagation(),\n\t\t\ttheme: D,\n\t\t\tchildren: e.children\n\t\t})]\n\t})] });\n}\nfunction O(n) {\n\tlet { items: r, width: i, onSelect: o, isOpen: u, defaultOpen: d, onOpenChange: f, ...h } = n, g = m(), y = n.theme ? c(g ?? {}, n.theme) : g, { props: b, nestedTheme: x } = l({\n\t\tcomponentName: \"ContextMenu\",\n\t\tglobalTheme: s(),\n\t\tlocalTheme: y,\n\t\tknownComponents: a\n\t}), [S, C] = p(d ?? !1), w = u !== void 0, T = w ? u === !0 : S, E = i ?? b.width ?? 220, O = b.itemHeight ?? 34, k = (e) => {\n\t\tw || C(e), f?.(e);\n\t}, A = (e) => {\n\t\te.disabled || (e.onSelect?.(), o?.(e), k(!1));\n\t};\n\treturn /* @__PURE__ */ _(D, {\n\t\t...h,\n\t\tisOpen: T,\n\t\tonOpenChange: k,\n\t\tcontentWidth: E,\n\t\tcontentHeight: Math.max(1, r.length) * O + 20,\n\t\tcontentProps: {\n\t\t\tpadding: b.padding ?? 6,\n\t\t\tgap: b.gap ?? 2,\n\t\t\tbackgroundColor: b.backgroundColor,\n\t\t\tborderColor: b.borderColor,\n\t\t\tborderWidth: b.borderWidth,\n\t\t\tcornerRadius: b.cornerRadius,\n\t\t\ttheme: x\n\t\t},\n\t\tchildren: r.map((n) => {\n\t\t\tlet r = b.textStyle, i = n.disabled ? b.disabledTextColor ?? \"#64748b\" : n.danger ? b.dangerTextColor ?? \"#fecaca\" : r?.color ?? \"#f8fafc\";\n\t\t\treturn /* @__PURE__ */ v(t, {\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: O,\n\t\t\t\tdirection: \"row\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\tbackgroundColor: n.disabled ? void 0 : b.itemBackgroundColor,\n\t\t\t\tborderColor: n.disabled ? void 0 : b.itemBorderColor,\n\t\t\t\tcornerRadius: b.itemCornerRadius ?? 4,\n\t\t\t\tpadding: b.itemPadding ?? {\n\t\t\t\t\tleft: 10,\n\t\t\t\t\tright: 10\n\t\t\t\t},\n\t\t\t\tenableGestures: !n.disabled,\n\t\t\t\tonTouch: (e) => {\n\t\t\t\t\te.stopPropagation(), A(n);\n\t\t\t\t},\n\t\t\t\ttheme: x,\n\t\t\t\tchildren: [/* @__PURE__ */ v(t, {\n\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tgap: b.itemGap ?? 8,\n\t\t\t\t\tchildren: [n.prefix, /* @__PURE__ */ _(e, {\n\t\t\t\t\t\ttext: n.label,\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\tcolor: i,\n\t\t\t\t\t\t\tfontSize: \"14px\"\n\t\t\t\t\t\t}\n\t\t\t\t\t})]\n\t\t\t\t}), n.suffix]\n\t\t\t}, n.id);\n\t\t})\n\t});\n}\n//#endregion\nexport { O as ContextMenu, D as Popover, x as calculateOverlayPosition };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useEffect as o, useRef as s, useState as c, useTheme as l } from \"@number10/jsx-core\";\nimport { jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/TextInput.tsx\nvar f = null;\nfunction p() {\n\tif (f ||= document.createElement(\"canvas\").getContext(\"2d\") ?? null, !f) throw Error(\"Canvas 2D context unavailable\");\n\treturn f;\n}\nfunction m(e, t) {\n\tlet n = t?.fontFamily ?? \"Arial, sans-serif\", r = t?.fontSize ?? \"16px\";\n\te.font = [\n\t\tt?.fontStyle ?? \"\",\n\t\tt?.fontWeight ?? \"\",\n\t\tr,\n\t\tn\n\t].filter(Boolean).join(\" \");\n}\nfunction h(e, t) {\n\tlet n = p();\n\tm(n, t);\n\tlet r = [];\n\tfor (let t = 0; t < e.length; t++) {\n\t\tlet i = e.charAt(t);\n\t\ti === \"\\n\" ? r.push({\n\t\t\tchar: i,\n\t\t\twidth: 0\n\t\t}) : r.push({\n\t\t\tchar: i,\n\t\t\twidth: n.measureText(i).width\n\t\t});\n\t}\n\treturn r;\n}\nfunction g(e, t = 1.2) {\n\tlet n = e?.fontSize ?? \"16px\", r = typeof n == \"number\" ? `${n}px` : n;\n\treturn Math.round((parseFloat(r) || 16) * t);\n}\nfunction ee(e, t, n, r, i, a, o) {\n\tlet s = h(e, n), c = g(n, o), l = [], u = 0, d = 0, f = 0, p = [], m = () => {\n\t\tfor (let e of p) {\n\t\t\tlet t = l[e.layoutIdx];\n\t\t\tt && (t.y = d);\n\t\t}\n\t\tp = [], u = 0, d += c, f++;\n\t};\n\tfor (let e = 0; e < s.length; e++) {\n\t\tlet n = s[e];\n\t\tif (!n) continue;\n\t\tif (n.char === \"\\n\") {\n\t\t\tl.push({\n\t\t\t\tchar: n.char,\n\t\t\t\tx: u,\n\t\t\t\ty: d,\n\t\t\t\twidth: 0,\n\t\t\t\theight: c,\n\t\t\t\tlineIndex: f\n\t\t\t}), m();\n\t\t\tcontinue;\n\t\t}\n\t\tif (i && p.length > 0 && u + n.width > t) if (a) {\n\t\t\tlet e = -1;\n\t\t\tfor (let t = p.length - 1; t >= 0; t--) if (p[t]?.m.char === \" \") {\n\t\t\t\te = t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (e >= 0) {\n\t\t\t\tlet t = p.slice(0, e + 1), n = p.slice(e + 1);\n\t\t\t\tp = t, m(), u = 0;\n\t\t\t\tfor (let e of n) {\n\t\t\t\t\tlet t = l[e.layoutIdx];\n\t\t\t\t\tt && (t.x = u, t.lineIndex = f), u += e.m.width + r, p.push(e);\n\t\t\t\t}\n\t\t\t} else m();\n\t\t} else m();\n\t\tlet o = l.length;\n\t\tl.push({\n\t\t\tchar: n.char,\n\t\t\tx: u,\n\t\t\ty: d,\n\t\t\twidth: n.width,\n\t\t\theight: c,\n\t\t\tlineIndex: f\n\t\t}), p.push({\n\t\t\tm: n,\n\t\t\tlayoutIdx: o\n\t\t}), u += n.width + r;\n\t}\n\tfor (let e of p) {\n\t\tlet t = l[e.layoutIdx];\n\t\tt && (t.y = d);\n\t}\n\treturn l;\n}\nfunction te() {\n\tlet e = document.createElement(\"input\");\n\treturn e.type = \"text\", e.setAttribute(\"autocomplete\", \"off\"), e.setAttribute(\"autocorrect\", \"off\"), e.setAttribute(\"autocapitalize\", \"off\"), e.setAttribute(\"spellcheck\", \"false\"), Object.assign(e.style, {\n\t\tposition: \"fixed\",\n\t\ttop: \"-9999px\",\n\t\tleft: \"-9999px\",\n\t\twidth: \"1px\",\n\t\theight: \"1px\",\n\t\topacity: \"0\",\n\t\tpointerEvents: \"none\"\n\t}), document.body.appendChild(e), e;\n}\nfunction _(f) {\n\tlet p = l(), m = f.theme ? i(p ?? {}, f.theme) : p, { props: h, nestedTheme: _ } = a({\n\t\tcomponentName: \"TextInput\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: m,\n\t\tknownComponents: n\n\t}), v = f.placeholder ?? h.placeholder, y = f.disabled ?? !1, b = f.maxLength ?? h.maxLength, x = f.multiline ?? h.multiline ?? !1, S = f.textStyle ?? h.textStyle ?? {\n\t\tfontFamily: \"Arial, sans-serif\",\n\t\tfontSize: \"16px\",\n\t\tcolor: \"#ffffff\"\n\t}, ne = f.placeholderStyle ?? h.placeholderStyle ?? {\n\t\t...S,\n\t\tcolor: \"#666666\"\n\t}, C = f.charSpacing ?? h.charSpacing ?? 0, w = f.lineHeight ?? h.lineHeight ?? 1.2, T = f.maxLines ?? h.maxLines, re = f.textOverflow ?? h.textOverflow ?? \"clip\", ie = f.wordWrap ?? h.wordWrap ?? !0, ae = f.cursorColor ?? h.cursorColor ?? 16777215, oe = f.cursorWidth ?? h.cursorWidth ?? 2, se = f.cursorBlinkSpeed ?? h.cursorBlinkSpeed ?? 530, ce = f.selectionColor ?? h.selectionColor ?? 4886754, le = f.selectionAlpha ?? h.selectionAlpha ?? .3, ue = f.focusedBorderColor ?? h.focusedBorderColor, de = f.disabledBackgroundColor ?? h.disabledBackgroundColor, fe = f.disabledBorderColor ?? h.disabledBorderColor, pe = f.disabledAlpha ?? h.disabledAlpha ?? .6, me = f.password ?? !1, he = f.passwordChar ?? \"•\", E = f.value !== void 0, [ge, _e] = c(f.value ?? \"\"), D = E ? f.value ?? \"\" : ge, [O, k] = c(D.length), [A, j] = c(-1), [M, N] = c(!1), [ve, P] = c(!0), F = s(D), I = s(O), L = s(A), ye = s(M);\n\tF.current = D, I.current = O, L.current = A, ye.current = M;\n\tlet R = s(null), be = s(null);\n\to(() => {\n\t\tif (!M) {\n\t\t\tP(!1);\n\t\t\treturn;\n\t\t}\n\t\tP(!0);\n\t\tlet e = setInterval(() => {\n\t\t\tP((e) => !e);\n\t\t}, se);\n\t\treturn () => clearInterval(e);\n\t}, [M, se]), o(() => {\n\t\tlet e = te();\n\t\treturn R.current = e, () => {\n\t\t\te.remove(), R.current = null;\n\t\t};\n\t}, []), o(() => {\n\t\tlet e = R.current;\n\t\tif (!e) return;\n\t\tlet t = (e) => {\n\t\t\tif (e.key === \"Enter\") {\n\t\t\t\tif (e.preventDefault(), !x || e.ctrlKey || e.metaKey) {\n\t\t\t\t\tf.onSubmit?.(F.current);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (x) {\n\t\t\t\t\tV(\"\\n\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.key === \"Backspace\") {\n\t\t\t\te.preventDefault(), xe();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"Delete\") {\n\t\t\t\te.preventDefault(), Se();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ((e.ctrlKey || e.metaKey) && e.key === \"c\") {\n\t\t\t\te.preventDefault(), Te();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ((e.ctrlKey || e.metaKey) && e.key === \"x\") {\n\t\t\t\te.preventDefault(), Ee();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ((e.ctrlKey || e.metaKey) && e.key === \"v\") {\n\t\t\t\te.preventDefault(), De();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"ArrowLeft\") {\n\t\t\t\te.preventDefault(), H(-1, e.shiftKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"ArrowRight\") {\n\t\t\t\te.preventDefault(), H(1, e.shiftKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"ArrowUp\") {\n\t\t\t\te.preventDefault(), Ce(-1, e.shiftKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"ArrowDown\") {\n\t\t\t\te.preventDefault(), Ce(1, e.shiftKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"Home\") {\n\t\t\t\te.preventDefault(), P(!0), I.current = 0, k(0), e.shiftKey || (L.current = -1, j(-1));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"End\") {\n\t\t\t\te.preventDefault(), P(!0);\n\t\t\t\tlet t = F.current.length;\n\t\t\t\tI.current = t, k(t), e.shiftKey || (L.current = -1, j(-1));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (e.key === \"a\" && (e.ctrlKey || e.metaKey)) {\n\t\t\t\te.preventDefault(), P(!0), L.current = 0, j(0);\n\t\t\t\tlet t = F.current.length;\n\t\t\t\tI.current = t, k(t);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\te.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && (e.preventDefault(), V(e.key));\n\t\t}, n = () => {\n\t\t\tN(!0), f.onFocus?.();\n\t\t}, r = () => {\n\t\t\tN(!1), j(-1), f.onBlur?.();\n\t\t};\n\t\treturn e.addEventListener(\"keydown\", t), e.addEventListener(\"focus\", n), e.addEventListener(\"blur\", r), () => {\n\t\t\te.removeEventListener(\"keydown\", t), e.removeEventListener(\"focus\", n), e.removeEventListener(\"blur\", r);\n\t\t};\n\t}, [x]);\n\tlet z = (e) => {\n\t\tE || _e(e), f.onChange?.(e);\n\t}, B = (e, t, n = -1) => {\n\t\tI.current = t, L.current = n, k(t), j(n), z(e);\n\t}, V = (e) => {\n\t\tlet t = F.current, n = I.current, r = L.current;\n\t\tif (P(!0), r >= 0) {\n\t\t\tlet i = Math.min(r, n), a = Math.max(r, n), o = t.slice(0, i) + e + t.slice(a);\n\t\t\tif (b !== void 0 && o.length > b || e === \"\\n\" && T !== void 0 && o.split(\"\\n\").length > T) return;\n\t\t\tB(o, i + 1);\n\t\t} else {\n\t\t\tlet r = t.slice(0, n) + e + t.slice(n);\n\t\t\tif (b !== void 0 && r.length > b || e === \"\\n\" && T !== void 0 && r.split(\"\\n\").length > T) return;\n\t\t\tB(r, n + 1);\n\t\t}\n\t}, xe = () => {\n\t\tlet e = F.current, t = I.current, n = L.current;\n\t\tif (n >= 0) {\n\t\t\tlet r = Math.min(n, t), i = Math.max(n, t);\n\t\t\tB(e.slice(0, r) + e.slice(i), r);\n\t\t} else t > 0 && B(e.slice(0, t - 1) + e.slice(t), t - 1);\n\t}, Se = () => {\n\t\tlet e = F.current, t = I.current, n = L.current;\n\t\tif (n >= 0) {\n\t\t\tlet r = Math.min(n, t), i = Math.max(n, t);\n\t\t\tB(e.slice(0, r) + e.slice(i), r);\n\t\t} else t < e.length && z(e.slice(0, t) + e.slice(t + 1));\n\t}, H = (e, t) => {\n\t\tlet n = I.current, r = L.current, i = F.current.length;\n\t\tif (P(!0), t) {\n\t\t\tr < 0 && (j(n), L.current = n);\n\t\t\tlet t = Math.max(0, Math.min(i, n + e));\n\t\t\tI.current = t, k(t);\n\t\t} else {\n\t\t\tL.current = -1, j(-1);\n\t\t\tlet t = Math.max(0, Math.min(i, n + e));\n\t\t\tI.current = t, k(t);\n\t\t}\n\t}, Ce = (e, t) => {\n\t\tlet n = I.current, r = L.current, i = F.current.length, { visibleChars: a, charLayout: o, totalLines: s, charSpacing: c } = Fe.current, l = n <= 0 ? 0 : n >= a.length ? s - 1 : a[n]?.lineIndex ?? 0, u = Math.max(0, Math.min(s - 1, l + e));\n\t\tif (u === l) return;\n\t\tP(!0);\n\t\tlet d = n > 0 && n <= a.length ? a[n - 1] : void 0, f = d && d.char !== \"\\n\" ? d.x + d.width + c : 0, p = a.filter((e) => e.char !== \"\\n\" && e.lineIndex === u), m;\n\t\tif (p.length === 0) {\n\t\t\tm = 0;\n\t\t\tfor (let e = 0; e < a.length; e++) {\n\t\t\t\tlet t = a[e];\n\t\t\t\tif (t && t.lineIndex >= u) {\n\t\t\t\t\tm = e;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tm = e + 1;\n\t\t\t}\n\t\t} else {\n\t\t\tlet e = 0, t = Infinity;\n\t\t\tfor (let n = 0; n <= p.length; n++) {\n\t\t\t\tlet r = n < p.length ? p[n] : void 0, i = p[p.length - 1], a = r ? r.x + r.width / 2 : i ? i.x + i.width + c : 0, o = Math.abs(f - a);\n\t\t\t\to < t && (t = o, e = n);\n\t\t\t}\n\t\t\tlet n = e < p.length ? p[e] : void 0, r = p[p.length - 1], a = n ? o.indexOf(n) : r ? o.indexOf(r) + 1 : 0;\n\t\t\tm = Math.min(a, i);\n\t\t}\n\t\tt ? r < 0 && (j(n), L.current = n) : (L.current = -1, j(-1)), I.current = m, k(m);\n\t}, we = () => {\n\t\tlet e = L.current, t = I.current;\n\t\tif (e < 0) return \"\";\n\t\tlet n = Math.min(e, t), r = Math.max(e, t);\n\t\treturn F.current.slice(n, r);\n\t}, Te = () => {\n\t\tlet e = we();\n\t\te && navigator.clipboard.writeText(e).catch(() => {});\n\t}, Ee = () => {\n\t\tlet e = we();\n\t\tif (e) {\n\t\t\tnavigator.clipboard.writeText(e).catch(() => {});\n\t\t\tlet t = L.current, n = I.current, r = Math.min(t, n), i = Math.max(t, n), a = F.current;\n\t\t\tB(a.slice(0, r) + a.slice(i), r);\n\t\t}\n\t}, De = () => {\n\t\tnavigator.clipboard.readText().then((e) => {\n\t\t\tif (!e) return;\n\t\t\tlet t = x ? e.replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\") : e.replace(/[\\r\\n]/g, \" \"), n = F.current, r = I.current, i = L.current, a, o;\n\t\t\tif (i >= 0) {\n\t\t\t\tlet e = Math.min(i, r), t = Math.max(i, r);\n\t\t\t\ta = e, o = n.slice(0, e) + n.slice(t);\n\t\t\t} else a = r, o = n;\n\t\t\tlet s = t;\n\t\t\tif (b !== void 0) {\n\t\t\t\tlet e = b - o.length;\n\t\t\t\tif (e <= 0) return;\n\t\t\t\ts = s.slice(0, e);\n\t\t\t}\n\t\t\tB(o.slice(0, a) + s + o.slice(a), a + s.length);\n\t\t}).catch(() => {});\n\t}, Oe = h.paddingLeft ?? h.padding ?? 12, ke = f.width ?? h.width ?? 300, U = D.length === 0 && !!v && !M, W = U ? v ?? \"\" : D, Ae = me && !U ? he.repeat(W.length) : W, G = U ? ne : S, je = h.paddingRight ?? h.padding ?? 12, Me = Math.max(1, typeof ke == \"number\" ? ke - Oe - je : 280), K = ee(Ae, Math.max(1, Me), G, C, x, ie, w), q = K;\n\tif (T !== void 0 && !U && ((K.length > 0 ? K[K.length - 1] : void 0)?.lineIndex ?? 0) >= T && (q = K.filter((e) => e.lineIndex < T), re === \"ellipsis\" && q.length > 0 && W.length > q.length)) {\n\t\tlet e = Math.max(0, q.length - 3);\n\t\tq = [\n\t\t\t...q.slice(0, e),\n\t\t\t{\n\t\t\t\tchar: \".\",\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\tlineIndex: T - 1\n\t\t\t},\n\t\t\t{\n\t\t\t\tchar: \".\",\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\tlineIndex: T - 1\n\t\t\t},\n\t\t\t{\n\t\t\t\tchar: \".\",\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t\tlineIndex: T - 1\n\t\t\t}\n\t\t];\n\t}\n\tlet J = g(G, w), Y = q.length > 0 ? q[q.length - 1] : void 0, Ne = Y?.char === \"\\n\", X = Y ? Y.lineIndex + 1 + +!!Ne : 1, Pe = X * J, Fe = s({\n\t\tvisibleChars: q,\n\t\tcharLayout: K,\n\t\ttotalLines: X,\n\t\tcharSpacing: C,\n\t\tlineH: J\n\t});\n\tFe.current = {\n\t\tvisibleChars: q,\n\t\tcharLayout: K,\n\t\ttotalLines: X,\n\t\tcharSpacing: C,\n\t\tlineH: J\n\t};\n\tlet Ie = (O < q.length ? q[O] : void 0)?.lineIndex ?? X - 1, Z = O > 0 && O <= q.length ? q[O - 1] : void 0, Le = Z?.char === \"\\n\" ? 0 : Z ? Z.x + Z.width + C : 0, Q = A >= 0 ? Math.min(A, O) : -1, $ = A >= 0 ? Math.max(A, O) : -1, Re = () => {\n\t\ty || (P(!0), R.current?.focus());\n\t};\n\treturn /* @__PURE__ */ u(t, {\n\t\tref: be,\n\t\tdirection: \"row\",\n\t\talignItems: \"start\",\n\t\twidth: f.width ?? h.width ?? 300,\n\t\theight: f.height ?? h.height,\n\t\tbackgroundColor: f.backgroundColor ?? (y ? de ?? h.backgroundColor : h.backgroundColor),\n\t\tborderColor: f.borderColor ?? (M ? ue ?? h.focusedBorderColor ?? h.borderColor : y ? fe ?? h.borderColor : h.borderColor),\n\t\tborderWidth: f.borderWidth ?? (M ? Math.max(2, h.borderWidth ?? 1) : h.borderWidth),\n\t\tcornerRadius: f.cornerRadius ?? h.cornerRadius ?? 4,\n\t\tpadding: f.padding ?? h.padding ?? 8,\n\t\talpha: f.alpha ?? (y ? pe : 1),\n\t\tenableGestures: !y,\n\t\tonTouch: (e) => {\n\t\t\tif (y) return;\n\t\t\tif (Re(), P(!0), U) {\n\t\t\t\tI.current = 0, L.current = -1, k(0), j(-1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet t = e.localX - Oe, n = e.localY - (h.padding ?? 8), r = Math.max(0, Math.min(X - 1, Math.floor(n / J))), i = q.filter((e) => e.char !== \"\\n\" && e.lineIndex === r);\n\t\t\tif (i.length === 0) {\n\t\t\t\tlet e = 0;\n\t\t\t\tfor (let t = 0; t < q.length; t++) {\n\t\t\t\t\tlet n = q[t];\n\t\t\t\t\tif (n && n.lineIndex >= r) {\n\t\t\t\t\t\te = t;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\te = t + 1;\n\t\t\t\t}\n\t\t\t\tI.current = e, L.current = -1, k(e), j(-1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet a = 0, o = Infinity;\n\t\t\tfor (let e = 0; e <= i.length; e++) {\n\t\t\t\tlet n = e < i.length ? i[e] : void 0, r = i[i.length - 1], s = n ? n.x + n.width / 2 : r ? r.x + r.width + C : 0, c = Math.abs(t - s);\n\t\t\t\tc < o && (o = c, a = e);\n\t\t\t}\n\t\t\tlet s = a < i.length ? i[a] : void 0, c = i[i.length - 1], l = s ? K.indexOf(s) : c ? K.indexOf(c) + 1 : 0, u = Math.min(l, D.length);\n\t\t\tI.current = u, L.current = -1, k(u), j(-1);\n\t\t},\n\t\toverflow: \"hidden\",\n\t\ttheme: _,\n\t\tchildren: /* @__PURE__ */ d(t, {\n\t\t\twidth: Me,\n\t\t\theight: Pe,\n\t\t\toverflow: \"hidden\",\n\t\t\tdirection: \"stack\",\n\t\t\tchildren: [\n\t\t\t\tq.filter((e) => e.char !== \"\\n\").map((t, n) => /* @__PURE__ */ u(e, {\n\t\t\t\t\tx: t.x,\n\t\t\t\t\ty: t.y,\n\t\t\t\t\ttext: t.char,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tcolor: G.color ?? \"#ffffff\",\n\t\t\t\t\t\t...G.fontSize === void 0 ? {} : { fontSize: G.fontSize },\n\t\t\t\t\t\t...G.fontFamily === void 0 ? {} : { fontFamily: G.fontFamily },\n\t\t\t\t\t\t...G.fontStyle === void 0 ? {} : { fontStyle: G.fontStyle }\n\t\t\t\t\t}\n\t\t\t\t}, `c-${n}`)),\n\t\t\t\tQ >= 0 && $ > Q && q.filter((e) => e.char !== \"\\n\").map((e, n) => {\n\t\t\t\t\tlet r = K.indexOf(e);\n\t\t\t\t\treturn r < Q || r >= $ ? null : /* @__PURE__ */ u(t, {\n\t\t\t\t\t\tx: e.x,\n\t\t\t\t\t\ty: e.y,\n\t\t\t\t\t\twidth: e.width + 2,\n\t\t\t\t\t\theight: J,\n\t\t\t\t\t\tbackgroundColor: ce,\n\t\t\t\t\t\tbackgroundAlpha: le\n\t\t\t\t\t}, `sel-${n}`);\n\t\t\t\t}),\n\t\t\t\tM && ve && /* @__PURE__ */ u(t, {\n\t\t\t\t\tx: Le,\n\t\t\t\t\ty: Ie * J,\n\t\t\t\t\twidth: oe,\n\t\t\t\t\theight: J,\n\t\t\t\t\tbackgroundColor: ae\n\t\t\t\t})\n\t\t\t]\n\t\t})\n\t});\n}\n//#endregion\nexport { _ as TextInput };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, mergeThemes as a, resolveComponentTheme as o, useEffect as s, useState as c, useSurface as l, useTheme as u } from \"@number10/jsx-core\";\nimport { jsx as d, jsxs as f } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ActivityIndicator.tsx\nfunction p(e) {\n\tswitch (e) {\n\t\tcase \"small\": return {\n\t\t\tcontainerSize: 20,\n\t\t\tlineWidth: 2,\n\t\t\tdotSize: 4,\n\t\t\tdotCount: 3\n\t\t};\n\t\tcase \"large\": return {\n\t\t\tcontainerSize: 48,\n\t\t\tlineWidth: 4,\n\t\t\tdotSize: 8,\n\t\t\tdotCount: 3\n\t\t};\n\t\tdefault: return {\n\t\t\tcontainerSize: 32,\n\t\t\tlineWidth: 3,\n\t\t\tdotSize: 6,\n\t\t\tdotCount: 3\n\t\t};\n\t}\n}\nfunction m(e) {\n\tlet r = e.size / 2, i = e.size / 2, a = (e.size - e.lineWidth) / 2, o = e.tick * e.speed * .025, s = Math.PI * .75;\n\treturn /* @__PURE__ */ d(n, {\n\t\twidth: e.size,\n\t\theight: e.size,\n\t\tchildren: /* @__PURE__ */ d(t, {\n\t\t\tonDraw: (t) => {\n\t\t\t\tt.lineStyle(e.lineWidth, e.trackColor, .25), t.beginPath(), t.arc(r, i, a, 0, Math.PI * 2), t.strokePath(), t.lineStyle(e.lineWidth, e.color, 1), t.beginPath(), t.arc(r, i, a, o, o + s), t.strokePath();\n\t\t\t},\n\t\t\tdependencies: [\n\t\t\t\te.tick,\n\t\t\t\te.color,\n\t\t\t\te.trackColor\n\t\t\t]\n\t\t})\n\t});\n}\nfunction h(e) {\n\tlet r = e.dotSize / 2, i = e.dotSize * 2.2, a = e.dotCount * i, o = Math.floor(e.tick * e.speed / 10 % e.dotCount);\n\treturn /* @__PURE__ */ d(n, {\n\t\twidth: a,\n\t\theight: e.dotSize,\n\t\tchildren: /* @__PURE__ */ d(t, {\n\t\t\tonDraw: (t) => {\n\t\t\t\tfor (let n = 0; n < e.dotCount; n++) {\n\t\t\t\t\tlet a = n === o ? 1 : .3;\n\t\t\t\t\tt.fillStyle(e.color, a), t.fillCircle(n * i + e.dotSize / 2, r, e.dotSize / 2);\n\t\t\t\t}\n\t\t\t},\n\t\t\tdependencies: [e.tick, e.color]\n\t\t})\n\t});\n}\nfunction g(e) {\n\tlet r = e.size / 2, i = e.size / 2, a = e.size / 2, o = e.tick * e.speed * .01 % 1;\n\treturn /* @__PURE__ */ d(n, {\n\t\twidth: e.size,\n\t\theight: e.size,\n\t\tchildren: /* @__PURE__ */ d(t, {\n\t\t\tonDraw: (t) => {\n\t\t\t\tt.lineStyle(2, e.color, .2), t.beginPath(), t.arc(r, i, a - 1, 0, Math.PI * 2), t.strokePath();\n\t\t\t\tlet n = a * .5 * (.5 + .5 * Math.sin(o * Math.PI * 2)), s = .3 + .7 * Math.abs(Math.cos(o * Math.PI));\n\t\t\t\tt.fillStyle(e.color, s), t.fillCircle(r, i, n);\n\t\t\t},\n\t\t\tdependencies: [e.tick, e.color]\n\t\t})\n\t});\n}\nfunction _(t) {\n\tlet { variant: _, size: v, color: y, trackColor: b, label: x, labels: S, theme: C } = t, w = u(), T = C ? a(w ?? {}, C) : w, { props: E } = o({\n\t\tcomponentName: \"ActivityIndicator\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: T,\n\t\tknownComponents: r\n\t}), D = l()?.scheduler, [O, k] = c(0), A = _ ?? E.variant ?? \"spinner\", { containerSize: j, lineWidth: M, dotSize: N, dotCount: P } = p(v ?? E.size ?? \"medium\"), F = y ?? E.color ?? 6333946, I = b ?? E.trackColor ?? F, L = (E.animationSpeed ?? 2.4) * (A === \"dots\" ? .25 : 1), R = {\n\t\t...E.labels ?? {},\n\t\t...S ?? {}\n\t}, z = x ?? R.loading, B = E.labelStyle ?? {\n\t\tcolor: \"#9fb3c8\",\n\t\tfontSize: \"13px\"\n\t};\n\treturn s(() => {\n\t\tif (!D) return;\n\t\tlet e = D.setInterval(() => k((e) => e + 1), 1e3 / 60);\n\t\treturn () => e.cancel();\n\t}, [D]), /* @__PURE__ */ f(n, {\n\t\tdirection: \"column\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: E.gap ?? 8,\n\t\twidth: t.width ?? E.width,\n\t\theight: t.height ?? E.height,\n\t\tchildren: [(() => {\n\t\t\tswitch (A) {\n\t\t\t\tcase \"dots\": return /* @__PURE__ */ d(h, {\n\t\t\t\t\tdotSize: N,\n\t\t\t\t\tdotCount: P,\n\t\t\t\t\tcolor: F,\n\t\t\t\t\ttick: O,\n\t\t\t\t\tspeed: L\n\t\t\t\t});\n\t\t\t\tcase \"pulse\": return /* @__PURE__ */ d(g, {\n\t\t\t\t\tsize: j,\n\t\t\t\t\tcolor: F,\n\t\t\t\t\ttick: O,\n\t\t\t\t\tspeed: L\n\t\t\t\t});\n\t\t\t\tdefault: return /* @__PURE__ */ d(m, {\n\t\t\t\t\tsize: j,\n\t\t\t\t\tlineWidth: M,\n\t\t\t\t\tcolor: F,\n\t\t\t\t\ttrackColor: I,\n\t\t\t\t\ttick: O,\n\t\t\t\t\tspeed: L\n\t\t\t\t});\n\t\t\t}\n\t\t})(), z ? /* @__PURE__ */ d(e, {\n\t\t\ttext: z,\n\t\t\tstyle: B\n\t\t}) : null]\n\t});\n}\n//#endregion\nexport { _ as ActivityIndicator };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { resolveComponentTheme as n, useTheme as r } from \"@number10/jsx-core\";\nimport { jsx as i, jsxs as a } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Badge.tsx\nvar o = {\n\tneutral: {\n\t\tbackgroundColor: 4674921,\n\t\tsoftBackgroundColor: 1976635,\n\t\tborderColor: 6583435,\n\t\ttextColor: \"#ffffff\",\n\t\toutlineTextColor: \"#cbd5e1\"\n\t},\n\tprimary: {\n\t\tbackgroundColor: 2450411,\n\t\tsoftBackgroundColor: 1981066,\n\t\tborderColor: 6333946,\n\t\ttextColor: \"#ffffff\",\n\t\toutlineTextColor: \"#93c5fd\"\n\t},\n\tsuccess: {\n\t\tbackgroundColor: 1483594,\n\t\tsoftBackgroundColor: 1332013,\n\t\tborderColor: 4906624,\n\t\ttextColor: \"#ffffff\",\n\t\toutlineTextColor: \"#86efac\"\n\t},\n\twarning: {\n\t\tbackgroundColor: 16096779,\n\t\tsoftBackgroundColor: 7877903,\n\t\tborderColor: 16498468,\n\t\ttextColor: \"#111827\",\n\t\toutlineTextColor: \"#fde68a\"\n\t},\n\tdanger: {\n\t\tbackgroundColor: 14427686,\n\t\tsoftBackgroundColor: 8330525,\n\t\tborderColor: 16281969,\n\t\ttextColor: \"#ffffff\",\n\t\toutlineTextColor: \"#fecaca\"\n\t},\n\tinfo: {\n\t\tbackgroundColor: 561586,\n\t\tsoftBackgroundColor: 1461859,\n\t\tborderColor: 2282478,\n\t\ttextColor: \"#ffffff\",\n\t\toutlineTextColor: \"#a5f3fc\"\n\t}\n}, s = {\n\tsmall: {\n\t\theight: 22,\n\t\tpadding: {\n\t\t\tleft: 8,\n\t\t\tright: 8,\n\t\t\ttop: 3,\n\t\t\tbottom: 3\n\t\t},\n\t\tfontSize: 12,\n\t\tcornerRadius: 11,\n\t\tgap: 5,\n\t\tdotSize: 8\n\t},\n\tmedium: {\n\t\theight: 26,\n\t\tpadding: {\n\t\t\tleft: 10,\n\t\t\tright: 10,\n\t\t\ttop: 4,\n\t\t\tbottom: 4\n\t\t},\n\t\tfontSize: 14,\n\t\tcornerRadius: 13,\n\t\tgap: 6,\n\t\tdotSize: 10\n\t},\n\tlarge: {\n\t\theight: 32,\n\t\tpadding: {\n\t\t\tleft: 13,\n\t\t\tright: 13,\n\t\t\ttop: 5,\n\t\t\tbottom: 5\n\t\t},\n\t\tfontSize: 18,\n\t\tcornerRadius: 16,\n\t\tgap: 8,\n\t\tdotSize: 12\n\t}\n}, c = new Set([\n\t\"View\",\n\t\"Text\",\n\t\"Image\",\n\t\"Sprite\",\n\t\"Badge\",\n\t\"Tag\",\n\t\"Icon\"\n]);\nfunction l({ count: e, maxCount: t = 99 }) {\n\tif (!Number.isFinite(e)) return \"0\";\n\tlet n = Math.max(0, Math.floor(e ?? 0)), r = Math.max(0, Math.floor(t));\n\treturn n > r ? `${r}+` : `${n}`;\n}\nfunction u(e, t) {\n\tlet n = o[e];\n\treturn t === \"outline\" ? {\n\t\tbg: 0,\n\t\tbgAlpha: 0,\n\t\tborder: n.borderColor,\n\t\tborderW: 1,\n\t\ttextColor: n.outlineTextColor\n\t} : t === \"soft\" ? {\n\t\tbg: n.softBackgroundColor,\n\t\tbgAlpha: 1,\n\t\tborder: n.borderColor,\n\t\tborderW: 1,\n\t\ttextColor: n.outlineTextColor\n\t} : {\n\t\tbg: n.backgroundColor,\n\t\tbgAlpha: 1,\n\t\tborder: n.borderColor,\n\t\tborderW: 0,\n\t\ttextColor: n.textColor\n\t};\n}\nfunction d(e) {\n\treturn s[e];\n}\nfunction f(a) {\n\tlet { children: o, label: s, count: f, maxCount: p, dot: m = !1, tone: h, variant: g, size: _, style: v, disabled: y = !1, disabledAlpha: b, theme: x, width: S, height: C, ...w } = a, T = r(), { props: E } = n({\n\t\tcomponentName: \"Badge\",\n\t\tlocalTheme: x ?? T,\n\t\texplicitProps: {\n\t\t\ttone: h,\n\t\t\tvariant: g,\n\t\t\tsize: _\n\t\t},\n\t\tknownComponents: c\n\t}), D = h ?? E.tone ?? \"neutral\", O = g ?? E.variant ?? \"solid\", k = d(_ ?? E.size ?? \"medium\"), A = u(D, O), j = b ?? E.disabledAlpha ?? .5, M = p ?? E.maxCount ?? 99, N = f === void 0 ? s === void 0 ? \"\" : `${s}` : l({\n\t\tcount: f,\n\t\tmaxCount: M\n\t}), P = {\n\t\tcolor: A.textColor,\n\t\tfontSize: k.fontSize\n\t};\n\tif (m) {\n\t\tlet e = k.dotSize;\n\t\treturn /* @__PURE__ */ i(t, {\n\t\t\twidth: S ?? e,\n\t\t\theight: C ?? e,\n\t\t\tbackgroundColor: A.bg,\n\t\t\tbackgroundAlpha: A.bgAlpha,\n\t\t\tborderColor: A.border,\n\t\t\tborderWidth: A.borderW,\n\t\t\tcornerRadius: e / 2,\n\t\t\t...y ? { alpha: j } : {},\n\t\t\t...w\n\t\t});\n\t}\n\treturn /* @__PURE__ */ i(t, {\n\t\twidth: S ?? \"auto\",\n\t\theight: C ?? k.height,\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: k.gap,\n\t\tpadding: k.padding,\n\t\tbackgroundColor: A.bg,\n\t\tbackgroundAlpha: A.bgAlpha,\n\t\tborderColor: A.border,\n\t\tborderWidth: A.borderW,\n\t\tcornerRadius: k.cornerRadius,\n\t\t...y ? { alpha: j } : {},\n\t\t...w,\n\t\tchildren: o ?? (N ? /* @__PURE__ */ i(e, {\n\t\t\ttext: N,\n\t\t\tstyle: {\n\t\t\t\t...P,\n\t\t\t\t...v\n\t\t\t}\n\t\t}) : null)\n\t});\n}\nfunction p(e) {\n\treturn e.count === void 0 ? e.label === void 0 ? \"\" : `${e.label}` : l(e);\n}\nfunction m(o) {\n\tlet { selected: s = !1, onRemove: l, closeLabel: f = \"×\", tone: p, variant: m, size: h, style: g, theme: _, children: v, label: y, disabled: b = !1, disabledAlpha: x, ...S } = o, C = r(), { props: w } = n({\n\t\tcomponentName: \"Tag\",\n\t\tlocalTheme: _ ?? C,\n\t\tknownComponents: c\n\t}), T = p ?? w.tone ?? (s ? \"primary\" : \"neutral\"), E = m ?? w.variant ?? (s ? \"solid\" : \"soft\"), D = d(h ?? w.size ?? \"medium\"), O = u(T, E), k = x ?? w.disabledAlpha ?? .5, A = y === void 0 ? \"\" : `${y}`, j = {\n\t\tcolor: O.textColor,\n\t\tfontSize: D.fontSize,\n\t\t...g\n\t};\n\treturn /* @__PURE__ */ a(t, {\n\t\twidth: \"auto\",\n\t\theight: D.height,\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: D.gap,\n\t\tpadding: D.padding,\n\t\tbackgroundColor: O.bg,\n\t\tbackgroundAlpha: O.bgAlpha,\n\t\tborderColor: O.border,\n\t\tborderWidth: O.borderW,\n\t\tcornerRadius: D.cornerRadius,\n\t\t...b ? { alpha: k } : {},\n\t\t...S,\n\t\tchildren: [\n\t\t\ty ? /* @__PURE__ */ i(e, {\n\t\t\t\ttext: A,\n\t\t\t\tstyle: j\n\t\t\t}) : null,\n\t\t\tv,\n\t\t\tl ? /* @__PURE__ */ i(t, {\n\t\t\t\twidth: 16,\n\t\t\t\theight: 16,\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tcornerRadius: 16 / 2,\n\t\t\t\tenableGestures: !0,\n\t\t\t\tonTouch: () => l(),\n\t\t\t\tchildren: /* @__PURE__ */ i(e, {\n\t\t\t\t\ttext: f,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...j,\n\t\t\t\t\t\tfontSize: 16 * .7\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}) : null\n\t\t]\n\t});\n}\n//#endregion\nexport { f as Badge, m as Tag, l as formatBadgeCount, p as getBadgeText };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Portal as t } from \"./Portal.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useRef as o, useState as s, useTheme as c, useViewportSize as ee } from \"@number10/jsx-core\";\nimport { jsx as l, jsxs as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/BottomSheet.tsx\nvar d = 1100;\nfunction f(f) {\n\tlet { open: p, defaultOpen: m = !1, onOpenChange: h, children: g, height: _ = .5, dismissThreshold: te, showHandle: v = !0, depth: y = d, closeOnBackdrop: b = !1, backdropAlpha: x, handleAreaHeight: S = 32, renderHandle: C, theme: w } = f, T = c(), E = w ? i(T ?? {}, w) : T, { props: D, nestedTheme: O } = a({\n\t\tcomponentName: \"BottomSheet\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: E,\n\t\tknownComponents: n\n\t}), k = p !== void 0, [A, j] = s(m), M = k ? !!p : A, N = ee(), P = N.height, F = N.width, I = Math.round(P * Math.min(1, Math.max(.1, _))), L = Math.max(0, I - S), R = te ?? D.dismissThreshold, [z, B] = s(0), V = o(0), H = o(0), U = o(L), [W, G] = s(!1), K = (e) => {\n\t\tk || j(e), h?.(e);\n\t};\n\tM && !W && G(!0);\n\tlet q = (e) => {\n\t\te.stopPropagation();\n\t\tlet t = e.state;\n\t\tif (t) {\n\t\t\tif (t === \"start\") V.current = 0, H.current = 0, U.current = Math.max(0, I - e.localY), B(0);\n\t\t\telse if (t === \"move\") {\n\t\t\t\tlet t = e.dy ?? 0;\n\t\t\t\tV.current = Math.max(0, V.current + t);\n\t\t\t\tlet n = Math.min(V.current, L);\n\t\t\t\tH.current = V.current, B(n);\n\t\t\t} else if (t === \"end\") {\n\t\t\t\tlet t = e.dy ?? 0;\n\t\t\t\tV.current = Math.max(0, V.current + t), V.current > (R ?? U.current / 2) && K(!1), V.current = 0, H.current = 0, B(0);\n\t\t\t}\n\t\t}\n\t};\n\tif (!W && !M) return null;\n\tlet J = M || z > 0, Y = D.panelCornerRadius ?? 16, X = D.handleWidth ?? 36, Z = D.handleHeight ?? 5, Q = D.handleColor ?? 6583435, $ = D.handleCornerRadius ?? 2, ne = D.handleAreaColor, re = D.backdropColor ?? 0, ie = D.backdropAlpha, ae = D.backgroundColor, oe = D.backgroundAlpha, se = D.borderColor, ce = D.borderWidth, le = M ? P - I + z : P - I;\n\treturn /* @__PURE__ */ u(t, {\n\t\tdepth: y,\n\t\tblockEvents: !1,\n\t\tchildren: [/* @__PURE__ */ l(e, {\n\t\t\twidth: F,\n\t\t\theight: P,\n\t\t\tbackgroundColor: re,\n\t\t\tbackgroundAlpha: x ?? ie ?? .5,\n\t\t\tenableGestures: !0,\n\t\t\tvisible: M && b,\n\t\t\tonTouch: (e) => {\n\t\t\t\te.stopPropagation(), K(!1);\n\t\t\t}\n\t\t}), /* @__PURE__ */ u(e, {\n\t\t\twidth: F,\n\t\t\theight: I,\n\t\t\ty: le,\n\t\t\tbackgroundColor: ae,\n\t\t\tbackgroundAlpha: oe ?? 1,\n\t\t\tborderColor: se,\n\t\t\tborderWidth: ce,\n\t\t\tcornerRadius: Y,\n\t\t\tdirection: \"column\",\n\t\t\tenableGestures: !0,\n\t\t\tvisible: J,\n\t\t\tonTouch: (e) => e.stopPropagation(),\n\t\t\tonTouchMove: (e) => e.stopPropagation(),\n\t\t\ttheme: O,\n\t\t\tchildren: [v ? /* @__PURE__ */ l(e, {\n\t\t\t\twidth: F,\n\t\t\t\theight: S,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tbackgroundColor: ne,\n\t\t\t\tenableGestures: !0,\n\t\t\t\tonTouch: (e) => e.stopPropagation(),\n\t\t\t\tonTouchMove: q,\n\t\t\t\tchildren: C ? typeof C == \"function\" ? C({\n\t\t\t\t\twidth: X,\n\t\t\t\t\theight: Z,\n\t\t\t\t\tcolor: Q,\n\t\t\t\t\tcornerRadius: $\n\t\t\t\t}) : C : /* @__PURE__ */ l(e, {\n\t\t\t\t\twidth: X,\n\t\t\t\t\theight: Z,\n\t\t\t\t\tbackgroundColor: Q,\n\t\t\t\t\tcornerRadius: $\n\t\t\t\t})\n\t\t\t}) : null, /* @__PURE__ */ l(e, {\n\t\t\t\tflex: 1,\n\t\t\t\twidth: \"fill\",\n\t\t\t\toverflow: \"hidden\",\n\t\t\t\ttheme: O,\n\t\t\t\tchildren: g\n\t\t\t})]\n\t\t})]\n\t});\n}\nvar p = {\n\tBar: (t) => /* @__PURE__ */ l(e, {\n\t\twidth: t.width,\n\t\theight: t.height,\n\t\tbackgroundColor: t.color,\n\t\tcornerRadius: t.cornerRadius\n\t}),\n\tPill: (t) => /* @__PURE__ */ l(e, {\n\t\twidth: t.width * 2,\n\t\theight: t.height * 3,\n\t\tbackgroundColor: t.color,\n\t\tcornerRadius: t.height * 1.5\n\t}),\n\tGrip: (t) => /* @__PURE__ */ u(e, {\n\t\tgap: t.height,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ l(e, {\n\t\t\t\twidth: t.width * 2,\n\t\t\t\theight: t.height,\n\t\t\t\tbackgroundColor: t.color,\n\t\t\t\tcornerRadius: t.cornerRadius\n\t\t\t}),\n\t\t\t/* @__PURE__ */ l(e, {\n\t\t\t\twidth: t.width * 2,\n\t\t\t\theight: t.height,\n\t\t\t\tbackgroundColor: t.color,\n\t\t\t\tcornerRadius: t.cornerRadius\n\t\t\t}),\n\t\t\t/* @__PURE__ */ l(e, {\n\t\t\t\twidth: t.width * 2,\n\t\t\t\theight: t.height,\n\t\t\t\tbackgroundColor: t.color,\n\t\t\t\tcornerRadius: t.cornerRadius\n\t\t\t})\n\t\t]\n\t})\n};\n//#endregion\nexport { f as BottomSheet, d as BottomSheetDepth, p as BottomSheetHandle };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useEffect as o, useState as s, useTheme as c } from \"@number10/jsx-core\";\nimport { jsx as l, jsxs as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Checkbox.tsx\nfunction d(e, t) {\n\treturn t ? e === !1 ? !0 : e === !0 ? \"indeterminate\" : !1 : e !== !0;\n}\nfunction f(e, t) {\n\treturn e === \"indeterminate\" && !t ? !1 : e;\n}\nfunction p(n) {\n\tlet { checked: r, disabled: i, size: a, color: o, checkedColor: s, indeterminateColor: c } = n, u = Math.max(2, Math.round(a * .1)), d = Math.max(4, Math.round(a * .22)), f = Math.max(2, Math.round(a * .15)), p = i ? .45 : 1;\n\treturn /* @__PURE__ */ l(t, {\n\t\twidth: a,\n\t\theight: a,\n\t\tborderColor: r === !1 ? o : r === !0 ? s : c,\n\t\tborderWidth: u,\n\t\tbackgroundAlpha: 0,\n\t\tcornerRadius: f,\n\t\talpha: p,\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t\tchildren: r === !0 ? /* @__PURE__ */ l(e, {\n\t\t\ttext: \"✓\",\n\t\t\tstyle: {\n\t\t\t\tcolor: `#${s.toString(16).padStart(6, \"0\")}`,\n\t\t\t\tfontSize: `${Math.round(a * .7)}px`,\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t},\n\t\t\talpha: p\n\t\t}) : r === \"indeterminate\" ? /* @__PURE__ */ l(t, {\n\t\t\twidth: a - d * 2,\n\t\t\theight: u + 1,\n\t\t\tbackgroundColor: c,\n\t\t\tbackgroundAlpha: p,\n\t\t\tcornerRadius: 1\n\t\t}) : null\n\t});\n}\nfunction m(m) {\n\tlet h = c(), g = m.theme ? i(h ?? {}, m.theme) : h, { props: _, nestedTheme: v } = a({\n\t\tcomponentName: \"Checkbox\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: g,\n\t\tknownComponents: n\n\t}), y = _.size ?? 20, b = _.gap ?? 8, x = m.labelPosition ?? _.labelPosition ?? \"right\", S = m.disabled ?? !1, C = _.disabledAlpha ?? .5, w = m.tristate ?? !1, [T, E] = s(f(m.checked ?? m.defaultChecked ?? !1, w));\n\to(() => {\n\t\tm.checked !== void 0 && E(f(m.checked, w));\n\t}, [m.checked, w]);\n\tlet D = {\n\t\tchecked: T,\n\t\tdisabled: S,\n\t\tsize: y,\n\t\tcolor: _.color ?? 7829367,\n\t\tcheckedColor: _.checkedColor ?? 5025616,\n\t\tindeterminateColor: _.indeterminateColor ?? _.checkedColor ?? 5025616\n\t}, O = () => {\n\t\tif (S) return;\n\t\tlet e = d(T, w);\n\t\tm.checked === void 0 && E(e), m.onChange?.(e);\n\t}, k = m.indicator ?? m.renderIndicator?.(D) ?? /* @__PURE__ */ l(p, { ...D }), A = m.label && x !== \"none\" ? /* @__PURE__ */ l(e, {\n\t\ttext: m.label,\n\t\tstyle: _.labelStyle,\n\t\talpha: S ? C : 1\n\t}) : null;\n\treturn /* @__PURE__ */ u(t, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tenableGestures: !S,\n\t\tonTouch: O,\n\t\ttheme: v,\n\t\tgap: b,\n\t\talpha: S ? C : 1,\n\t\tchildren: [\n\t\t\tx === \"left\" && A,\n\t\t\tk,\n\t\t\tx !== \"left\" && A\n\t\t]\n\t}, m.key);\n}\n//#endregion\nexport { m as Checkbox, d as getNextCheckedState, f as normalizeCheckedState };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useTheme as o } from \"@number10/jsx-core\";\nimport { jsx as s, jsxs as c } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/RadioButton.tsx\nfunction l(l) {\n\tlet u = o(), d = l.theme ? i(u ?? {}, l.theme) : u, { props: f, nestedTheme: p } = a({\n\t\tcomponentName: \"RadioButton\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: d,\n\t\tknownComponents: n\n\t}), m = f.size ?? 18, h = f.innerSize ?? Math.max(6, Math.round(m * .45)), g = h * .5, _ = f.borderWidth ?? Math.max(2, Math.round(m * .11)), v = l.selected ?? !1, y = l.disabled ?? !1, b = f.disabledAlpha ?? .5, x = l.labelPosition ?? f.labelPosition ?? \"right\", S = f.selectedColor ?? 2201331, C = f.color ?? 7697781, w = v ? S : C, T = f.backgroundColor, E = f.gap ?? 8, D = x === \"none\" ? null : /* @__PURE__ */ s(e, {\n\t\ttext: l.label,\n\t\tstyle: f.labelStyle,\n\t\talpha: y ? b : 1\n\t});\n\treturn /* @__PURE__ */ c(t, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tenableGestures: !y,\n\t\tonTouch: () => {\n\t\t\ty || l.onClick?.();\n\t\t},\n\t\ttheme: p,\n\t\tgap: E,\n\t\talpha: y ? b : 1,\n\t\tchildren: [\n\t\t\tx === \"left\" && D,\n\t\t\t/* @__PURE__ */ s(t, {\n\t\t\t\twidth: m,\n\t\t\t\theight: m,\n\t\t\t\t...T === void 0 ? {} : { backgroundColor: T },\n\t\t\t\tborderColor: w,\n\t\t\t\tborderWidth: _,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tpadding: 0,\n\t\t\t\tcornerRadius: m * .5,\n\t\t\t\tchildren: /* @__PURE__ */ s(t, {\n\t\t\t\t\twidth: h,\n\t\t\t\t\theight: h,\n\t\t\t\t\tbackgroundColor: S,\n\t\t\t\t\tvisible: v,\n\t\t\t\t\tcornerRadius: g\n\t\t\t\t})\n\t\t\t}),\n\t\t\tx === \"right\" ? D : null\n\t\t]\n\t}, l.key);\n}\n//#endregion\nexport { l as RadioButton };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { RadioButton as t } from \"./RadioButton.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useState as o, useTheme as s } from \"@number10/jsx-core\";\nimport { jsx as c } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/RadioGroup.tsx\nfunction l(l) {\n\tlet u = s(), d = l.theme ? i(u ?? {}, l.theme) : u, { props: f, nestedTheme: p } = a({\n\t\tcomponentName: \"RadioGroup\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: d,\n\t\tknownComponents: n\n\t}), [m, h] = o(l.value ?? l.defaultValue ?? \"\"), g = l.value ?? m, _ = (e) => {\n\t\tl.disabled || (l.value === void 0 && h(e), l.onChange?.(e));\n\t};\n\treturn /* @__PURE__ */ c(e, {\n\t\tdirection: l.direction ?? f.direction ?? \"column\",\n\t\ttheme: p,\n\t\tgap: f.gap ?? 8,\n\t\tchildren: l.options.map((e) => {\n\t\t\tlet n = g === e.value;\n\t\t\treturn /* @__PURE__ */ c(t, {\n\t\t\t\tlabel: e.label,\n\t\t\t\tselected: n,\n\t\t\t\tdisabled: l.disabled ?? !1,\n\t\t\t\tonClick: () => _(e.value)\n\t\t\t}, e.value);\n\t\t})\n\t});\n}\n//#endregion\nexport { l as RadioGroup };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, mergeThemes as a, resolveComponentTheme as o, useEffect as s, useMemo as c, useRef as l, useState as u, useTheme as d } from \"@number10/jsx-core\";\nimport { jsx as f, jsxs as p } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Slider.tsx\nfunction m(e) {\n\tlet { size: n, color: r, borderColor: i, borderWidth: a = 0, isDragging: o, dragScale: s = 1.1 } = e, c = o ? s : 1, l = n / 2;\n\treturn /* @__PURE__ */ f(t, {\n\t\tscale: c,\n\t\tonDraw: (e) => {\n\t\t\ta > 0 && i !== void 0 && e.fillStyle(i, 1).fillCircle(0, 0, l), e.fillStyle(r, 1).fillCircle(0, 0, l - a);\n\t\t}\n\t});\n}\nfunction h(t) {\n\tlet h = d(), g = t.theme ? a(h ?? {}, t.theme) : h, { props: _, nestedTheme: v } = o({\n\t\tcomponentName: \"Slider\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: g,\n\t\tknownComponents: r\n\t}), y = t.mode === \"range\", ee = t.defaultValue ?? t.min ?? 0, te = t.defaultValue ?? [t.min ?? 0, t.max ?? 100], [ne, b] = u(y ? te : ee), x = t.value !== void 0, S = x ? t.value : ne, C = t.min ?? 0, w = t.max ?? 100, T = y ? 0 : S, E = y ? S : [C, w], D = t.step ?? 1, O = t.orientation ?? \"horizontal\", k = t.reverse ?? !1, A = t.disabled ?? !1, j = t.snap ?? !0, M = t.minDistance ?? D, N = t.trackLength ?? _.trackLength ?? 200, P = _.trackHeight ?? 6, F = _.thumbSize ?? 20, [I, re] = u(!1), [L, ie] = u(!1), ae = l(0), oe = l(0), R = (e) => Math.max(C, Math.min(w, e)), se = (e) => C + Math.round((e - C) / D) * D, z = (e) => w === C ? 0 : (e - C) / (w - C), ce = (e, t) => {\n\t\tlet n = k ? t - e : e;\n\t\treturn C + Math.max(0, Math.min(1, n / t)) * (w - C);\n\t}, B = (e) => {\n\t\tlet t = z(e) * N;\n\t\treturn k ? N - t : t;\n\t}, V = (y ? E[0] : T) ?? 0, H = (y ? E[1] : 0) ?? 0, U = B(V), W = y ? B(H) : 0, [G, K] = u(U), [q, le] = u(W);\n\ts(() => {\n\t\tI || K(U);\n\t}, [U, I]), s(() => {\n\t\t!L && y && le(W);\n\t}, [\n\t\tW,\n\t\ty,\n\t\tL\n\t]);\n\tlet ue = c(() => {\n\t\tif (!t.marks) return [];\n\t\tif (Array.isArray(t.marks)) return t.marks;\n\t\tlet e = [];\n\t\tfor (let t = C; t <= w; t += D) e.push({ value: t });\n\t\treturn e;\n\t}, [\n\t\tt.marks,\n\t\tC,\n\t\tw,\n\t\tD\n\t]), de = (e) => {\n\t\tif (A) return;\n\t\te.stopPropagation();\n\t\tlet n = ce(O === \"horizontal\" ? e.localX ?? 0 : e.localY ?? 0, N), r = R(j ? se(n) : n);\n\t\tif (y) {\n\t\t\tlet e = Math.abs(r - E[0]) <= Math.abs(r - E[1]) ? [r, E[1]] : [E[0], r];\n\t\t\tif (e[1] - e[0] < M) return;\n\t\t\tx || b(e), t.onChange?.(e);\n\t\t} else x || b(r), t.onChange?.(r);\n\t}, fe = (e) => (n) => {\n\t\tif (A) return;\n\t\tn.stopPropagation();\n\t\tlet r = e === 0, i = r ? I : L, a = r ? re : ie, o = r ? ae : oe, s = r ? K : le, c = r ? G : q;\n\t\tif (n.state === \"start\") {\n\t\t\ta(!0), o.current = c, y ? t.onChangeStart?.(E) : t.onChangeStart?.(T);\n\t\t\treturn;\n\t\t}\n\t\tif (n.state === \"end\") {\n\t\t\ta(!1), y ? t.onChangeEnd?.(E) : t.onChangeEnd?.(T);\n\t\t\treturn;\n\t\t}\n\t\tif (!i) return;\n\t\tlet l = O === \"horizontal\" ? n.dx ?? 0 : n.dy ?? 0;\n\t\to.current += l;\n\t\tlet u = Math.max(0, Math.min(N, o.current)), d = ce(u, N);\n\t\tif (d = j ? se(d) : d, y) {\n\t\t\tlet e = r ? [d, E[1]] : [E[0], d];\n\t\t\tr ? (e[0] = R(e[0]), e[1] - e[0] < M && (e[0] = e[1] - M), e[0] = R(e[0])) : (e[1] = R(e[1]), e[1] - e[0] < M && (e[1] = e[0] + M), e[1] = R(e[1]));\n\t\t\tlet n = B(r ? e[0] : e[1]);\n\t\t\ts(j ? n : u), x || b(e), t.onChange?.(e);\n\t\t} else {\n\t\t\tlet e = R(d), n = B(e);\n\t\t\ts(j ? n : u), x || b(e), t.onChange?.(e);\n\t\t}\n\t}, pe = t.formatValue ?? ((e) => e.toString()), J = O === \"horizontal\", me = A ? _.disabledAlpha ?? .4 : t.alpha ?? 1, Y = F + 8, he = {\n\t\tx: t.valueLabelOffset1?.x ?? t.valueLabelOffset?.x ?? (y ? J ? k ? Y : -Y : Y : J && k ? -Y : Y),\n\t\ty: t.valueLabelOffset1?.y ?? t.valueLabelOffset?.y ?? (y ? J ? -8 : k ? Y : -Y : J ? -8 : k ? Y : -8)\n\t}, ge = {\n\t\tx: t.valueLabelOffset2?.x ?? (y && J && k ? -Y : Y),\n\t\ty: t.valueLabelOffset2?.y ?? (y ? J ? -8 : k ? -Y : Y : -8)\n\t}, X = y ? z(E[0]) : 0, Z = z(y ? E[1] : T), Q = k ? N - Z * N : X * N, $ = (k ? N - X * N : Z * N) - Q, _e = (t, r) => /* @__PURE__ */ f(n, {\n\t\tx: r.x - 50,\n\t\ty: r.y - 25,\n\t\twidth: 100,\n\t\theight: 50,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tchildren: /* @__PURE__ */ f(n, {\n\t\t\tbackgroundColor: _.valueLabel?.backgroundColor ?? 0,\n\t\t\tpadding: _.valueLabel?.padding ?? {\n\t\t\t\tleft: 6,\n\t\t\t\tright: 6,\n\t\t\t\ttop: 4,\n\t\t\t\tbottom: 4\n\t\t\t},\n\t\t\tcornerRadius: _.valueLabel?.cornerRadius ?? 4,\n\t\t\tchildren: /* @__PURE__ */ f(e, {\n\t\t\t\ttext: pe(t),\n\t\t\t\tstyle: _.valueLabel?.textStyle ?? {\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t\tfontSize: \"12px\"\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t});\n\treturn /* @__PURE__ */ f(n, {\n\t\tdirection: J ? \"column\" : \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tgap: 8,\n\t\talpha: me,\n\t\twidth: t.width,\n\t\theight: t.height,\n\t\ttheme: v,\n\t\tchildren: /* @__PURE__ */ p(n, {\n\t\t\twidth: J ? N : P,\n\t\t\theight: J ? P : N,\n\t\t\tbackgroundColor: _.trackColor ?? 4473924,\n\t\t\tcornerRadius: _.trackBorderRadius ?? P / 2,\n\t\t\tdirection: \"stack\",\n\t\t\tenableGestures: !A,\n\t\t\tonTouch: de,\n\t\t\t...t.onTooltip === void 0 ? {} : { onTooltip: t.onTooltip },\n\t\t\ttheme: v,\n\t\t\tchildren: [\n\t\t\t\tt.renderTrack ? /* @__PURE__ */ f(n, { children: t.renderTrack(X, y ? Z : void 0) }) : /* @__PURE__ */ f(n, {\n\t\t\t\t\tx: J ? Q : 0,\n\t\t\t\t\ty: J ? 0 : Q,\n\t\t\t\t\twidth: J ? $ : P,\n\t\t\t\t\theight: J ? P : $,\n\t\t\t\t\tbackgroundColor: _.trackFilledColor ?? 5090295,\n\t\t\t\t\tcornerRadius: _.trackBorderRadius ?? P / 2\n\t\t\t\t}),\n\t\t\t\tue.map((e) => {\n\t\t\t\t\tlet t = z(e.value), r = k ? N - t * N : t * N, i = e.style?.height ?? _.markHeight ?? 8, a = e.style?.width ?? _.markWidth ?? 2, o = e.style?.color ?? _.markColor ?? 8947848;\n\t\t\t\t\treturn /* @__PURE__ */ f(n, {\n\t\t\t\t\t\tx: J ? r - a / 2 : P / 2 - a / 2,\n\t\t\t\t\t\ty: J ? P / 2 - i / 2 : r - a / 2,\n\t\t\t\t\t\twidth: J ? a : i,\n\t\t\t\t\t\theight: J ? i : a,\n\t\t\t\t\t\tbackgroundColor: o,\n\t\t\t\t\t\tchildren: e.label\n\t\t\t\t\t}, e.value);\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ p(n, {\n\t\t\t\t\tx: J ? G : 0,\n\t\t\t\t\ty: J ? 0 : G,\n\t\t\t\t\tdirection: \"stack\",\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ f(n, {\n\t\t\t\t\t\t\tx: -F,\n\t\t\t\t\t\t\ty: -F,\n\t\t\t\t\t\t\twidth: F * 2,\n\t\t\t\t\t\t\theight: F * 2,\n\t\t\t\t\t\t\tenableGestures: !A,\n\t\t\t\t\t\t\tonTouchMove: fe(0)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ f(n, {\n\t\t\t\t\t\t\tx: J ? 0 : P / 2,\n\t\t\t\t\t\t\ty: J ? P / 2 : 0,\n\t\t\t\t\t\t\twidth: F,\n\t\t\t\t\t\t\theight: F,\n\t\t\t\t\t\t\tdirection: \"stack\",\n\t\t\t\t\t\t\tchildren: t.renderThumb ? t.renderThumb(V, I, 0) : /* @__PURE__ */ f(m, {\n\t\t\t\t\t\t\t\tsize: F,\n\t\t\t\t\t\t\t\tcolor: _.thumbColor ?? 5090295,\n\t\t\t\t\t\t\t\tborderColor: _.thumbBorderColor ?? 16777215,\n\t\t\t\t\t\t\t\tborderWidth: _.thumbBorderWidth ?? 2,\n\t\t\t\t\t\t\t\tisDragging: I,\n\t\t\t\t\t\t\t\tdragScale: _.thumbDragScale ?? 1.1\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tt.showValue ? _e(V, he) : null\n\t\t\t\t\t]\n\t\t\t\t}),\n\t\t\t\ty ? /* @__PURE__ */ p(n, {\n\t\t\t\t\tx: J ? q : 0,\n\t\t\t\t\ty: J ? 0 : q,\n\t\t\t\t\tdirection: \"stack\",\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t/* @__PURE__ */ f(n, {\n\t\t\t\t\t\t\tx: -F,\n\t\t\t\t\t\t\ty: -F,\n\t\t\t\t\t\t\twidth: F * 2,\n\t\t\t\t\t\t\theight: F * 2,\n\t\t\t\t\t\t\tenableGestures: !A,\n\t\t\t\t\t\t\tonTouchMove: fe(1)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t/* @__PURE__ */ f(n, {\n\t\t\t\t\t\t\tx: J ? 0 : P / 2,\n\t\t\t\t\t\t\ty: J ? P / 2 : 0,\n\t\t\t\t\t\t\twidth: F,\n\t\t\t\t\t\t\theight: F,\n\t\t\t\t\t\t\tdirection: \"stack\",\n\t\t\t\t\t\t\tchildren: t.renderThumb ? t.renderThumb(H, L, 1) : /* @__PURE__ */ f(m, {\n\t\t\t\t\t\t\t\tsize: F,\n\t\t\t\t\t\t\t\tcolor: _.thumbColor ?? 5090295,\n\t\t\t\t\t\t\t\tborderColor: _.thumbBorderColor ?? 16777215,\n\t\t\t\t\t\t\t\tborderWidth: _.thumbBorderWidth ?? 2,\n\t\t\t\t\t\t\t\tisDragging: L,\n\t\t\t\t\t\t\t\tdragScale: _.thumbDragScale ?? 1.1\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tt.showValue ? _e(H, ge) : null\n\t\t\t\t\t]\n\t\t\t\t}) : null\n\t\t\t]\n\t\t})\n\t});\n}\nfunction g(e) {\n\treturn /* @__PURE__ */ f(h, {\n\t\t...e,\n\t\tmode: \"single\"\n\t});\n}\nfunction _(e) {\n\treturn /* @__PURE__ */ f(h, {\n\t\t...e,\n\t\tmode: \"range\"\n\t});\n}\n//#endregion\nexport { _ as RangeSlider, g as Slider };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { RadioGroup as r } from \"./RadioGroup.js\";\nimport { Slider as i } from \"./Slider.js\";\nimport { KNOWN_COMPONENTS as a, darken as o, getGlobalThemeDefaults as ee, hslToNumber as s, lighten as c, mergeThemes as l, numberToHex as te, numberToHsl as u, numberToRgb as ne, resolveComponentTheme as re, useEffect as d, useRef as ie, useState as f, useTheme as ae } from \"@number10/jsx-core\";\nimport { jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ColorPicker.tsx\nvar oe = {\n\ttitle: \"Color Picker\",\n\ttone: \"Tone\",\n\tvivid: \"Vivid\",\n\tmuted: \"Muted\",\n\thue: \"Hue\",\n\tsaturation: \"Saturation\",\n\tlightness: \"Lightness\",\n\tclose: \"X\"\n};\nfunction h(e, t, n) {\n\treturn Math.max(t, Math.min(n, e));\n}\nfunction g(e, t, n) {\n\treturn s(h(e, 0, 360) / 360, h(t, 0, 100) / 100, h(n, 0, 100) / 100);\n}\nfunction _(e) {\n\tlet t = u(e);\n\treturn {\n\t\thue: Math.round(t.h * 360),\n\t\tsaturation: Math.round(t.s * 100),\n\t\tlightness: Math.round(t.l * 100)\n\t};\n}\nfunction v(s) {\n\tlet { value: u, defaultValue: v = 3113197, onChange: se, tone: y, defaultTone: ce = \"vivid\", onToneChange: le, onClose: b, showCloseButton: ue, showTone: de = !0, showSwatches: fe = !0, showRgbLabel: pe = !0, labels: me, trackLength: he, previewSize: ge, gradientSteps: _e, theme: x } = s, S = ae(), ve = x ? l(S ?? {}, x) : S, { props: C, nestedTheme: w } = re({\n\t\tcomponentName: \"ColorPicker\",\n\t\tglobalTheme: ee(),\n\t\tlocalTheme: ve,\n\t\tknownComponents: a\n\t}), T = _(u ?? v), [E, D] = f(T.hue), [O, k] = f(T.saturation), [A, j] = f(T.lightness), [M, N] = f(y ?? ce), P = ie(void 0), F = y ?? M, I = g(E, O, A), L = ne(I), R = te(I).toUpperCase(), z = {\n\t\t...oe,\n\t\t...C.labels ?? {},\n\t\t...me ?? {}\n\t}, B = C.labelStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"12px\"\n\t}, ye = C.valueStyle ?? B, be = C.titleStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"16px\",\n\t\tfontStyle: \"bold\"\n\t}, V = he ?? C.trackLength ?? 280, H = C.trackHeight ?? 14, U = ge ?? C.previewSize ?? 116, W = _e ?? C.gradientSteps ?? 32, G = C.borderColor ?? 3489874, xe = C.backgroundColor ?? 1515566, Se = C.controlBackgroundColor ?? 2240583, K = C.thumbBorderColor ?? 16777215, q = C.swatchSize ?? 18, Ce = ue ?? b !== void 0;\n\td(() => {\n\t\tif (u === void 0 || u === P.current) return;\n\t\tlet e = _(u);\n\t\tD(e.hue), k(e.saturation), j(e.lightness);\n\t}, [u]), d(() => {\n\t\ty !== void 0 && y !== M && N(y);\n\t}, [y, M]);\n\tlet we = (e, t, n, r = F) => {\n\t\tlet i = g(e, t, n);\n\t\tP.current = i, se?.(i, {\n\t\t\thue: e,\n\t\t\tsaturation: t,\n\t\t\tlightness: n,\n\t\t\ttone: r\n\t\t});\n\t}, J = (e, t, n, r = F) => {\n\t\tlet i = Math.round(h(e, 0, 360)), a = Math.round(h(t, 0, 100)), o = Math.round(h(n, 0, 100));\n\t\tD(i), k(a), j(o), we(i, a, o, r);\n\t}, Te = (e) => {\n\t\tlet t = _(e);\n\t\tJ(t.hue, t.saturation, t.lightness);\n\t}, Ee = (e) => {\n\t\tlet t = Math.round(e === \"muted\" ? O * .6 : h(O / .6, Math.max(O, 70), 100));\n\t\ty === void 0 && N(e), le?.(e), J(E, t, A, e);\n\t}, De = [\n\t\to(I, .35),\n\t\to(I, .15),\n\t\tI,\n\t\tc(I, .2),\n\t\tc(I, .4)\n\t], Y = C.thumbSize ?? 18, X = Y / 2, Oe = Math.max(1, Math.round(X * .22)), ke = l(w, { Slider: {\n\t\ttrackHeight: H,\n\t\ttrackBorderRadius: H / 2,\n\t\tthumbSize: Y,\n\t\tthumbBorderWidth: 2,\n\t\tthumbBorderColor: K\n\t} }), Z = (e) => () => /* @__PURE__ */ p(n, {\n\t\twidth: V,\n\t\theight: H,\n\t\tchildren: /* @__PURE__ */ p(t, { onDraw: (t) => {\n\t\t\tlet n = V / W;\n\t\t\tfor (let r = 0; r < W; r += 1) {\n\t\t\t\tlet i = W === 1 ? 1 : r / (W - 1);\n\t\t\t\tt.fillStyle(e(i), 1), t.fillRect(r * n, 0, n + 1, H);\n\t\t\t}\n\t\t} })\n\t}), Q = (e) => (n, r) => /* @__PURE__ */ p(t, {\n\t\tscale: r ? 1.2 : 1,\n\t\tonDraw: (t) => {\n\t\t\tt.fillStyle(0, .32).fillCircle(0, Oe, X), t.fillStyle(e, 1).fillCircle(0, 0, X), t.lineStyle(2, K, 1).strokeCircle(0, 0, X), r && t.lineStyle(2, e, .7).strokeCircle(0, 0, X + 4);\n\t\t}\n\t}), $ = (t, r) => /* @__PURE__ */ m(n, {\n\t\tdirection: \"row\",\n\t\twidth: V,\n\t\tjustifyContent: \"space-between\",\n\t\tchildren: [/* @__PURE__ */ p(e, {\n\t\t\ttext: t,\n\t\t\tstyle: B\n\t\t}), /* @__PURE__ */ p(e, {\n\t\t\ttext: r,\n\t\t\tstyle: ye\n\t\t})]\n\t});\n\treturn /* @__PURE__ */ m(n, {\n\t\tdirection: \"row\",\n\t\tgap: C.gap ?? 18,\n\t\tpadding: C.padding ?? 14,\n\t\tbackgroundColor: xe,\n\t\tborderColor: G,\n\t\tborderWidth: C.borderWidth ?? 1,\n\t\tcornerRadius: C.cornerRadius ?? 8,\n\t\talignItems: \"center\",\n\t\ttheme: w,\n\t\tchildren: [/* @__PURE__ */ m(n, {\n\t\t\tgap: C.previewGap ?? 10,\n\t\t\twidth: Math.max(U, 132),\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ p(n, {\n\t\t\t\t\twidth: U,\n\t\t\t\t\theight: U,\n\t\t\t\t\tbackgroundColor: I,\n\t\t\t\t\tborderColor: G,\n\t\t\t\t\tborderWidth: C.previewBorderWidth ?? 2,\n\t\t\t\t\tcornerRadius: C.previewCornerRadius ?? 8,\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\tchildren: /* @__PURE__ */ p(e, {\n\t\t\t\t\t\ttext: R,\n\t\t\t\t\t\tstyle: C.hexStyle\n\t\t\t\t\t})\n\t\t\t\t}),\n\t\t\t\tpe ? /* @__PURE__ */ p(e, {\n\t\t\t\t\ttext: z.formatRgb ? z.formatRgb(L) : `rgb ${L.r}, ${L.g}, ${L.b}`,\n\t\t\t\t\tstyle: B\n\t\t\t\t}) : null,\n\t\t\t\tfe ? /* @__PURE__ */ p(n, {\n\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\tgap: C.swatchGap ?? 6,\n\t\t\t\t\tchildren: De.map((e, t) => /* @__PURE__ */ p(n, {\n\t\t\t\t\t\twidth: q,\n\t\t\t\t\t\theight: q,\n\t\t\t\t\t\tbackgroundColor: e,\n\t\t\t\t\t\tborderColor: G,\n\t\t\t\t\t\tborderWidth: 1,\n\t\t\t\t\t\tcornerRadius: C.swatchCornerRadius ?? 4,\n\t\t\t\t\t\tenableGestures: !0,\n\t\t\t\t\t\tonTouch: () => Te(e)\n\t\t\t\t\t}, `swatch-${t}`))\n\t\t\t\t}) : null\n\t\t\t]\n\t\t}), /* @__PURE__ */ m(n, {\n\t\t\tgap: C.controlGap ?? 12,\n\t\t\ttheme: ke,\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ m(n, {\n\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\twidth: V,\n\t\t\t\t\tchildren: [/* @__PURE__ */ p(e, {\n\t\t\t\t\t\ttext: z.title,\n\t\t\t\t\t\tstyle: be\n\t\t\t\t\t}), Ce ? /* @__PURE__ */ p(n, {\n\t\t\t\t\t\twidth: C.closeButtonSize ?? 24,\n\t\t\t\t\t\theight: C.closeButtonSize ?? 24,\n\t\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\t\tbackgroundColor: Se,\n\t\t\t\t\t\tbackgroundAlpha: C.controlBackgroundAlpha ?? .65,\n\t\t\t\t\t\tborderColor: G,\n\t\t\t\t\t\tborderWidth: 1,\n\t\t\t\t\t\tcornerRadius: C.closeButtonCornerRadius ?? 5,\n\t\t\t\t\t\tenableGestures: !0,\n\t\t\t\t\t\tonTouch: () => b?.(),\n\t\t\t\t\t\tchildren: /* @__PURE__ */ p(e, {\n\t\t\t\t\t\t\ttext: z.close,\n\t\t\t\t\t\t\tstyle: B\n\t\t\t\t\t\t})\n\t\t\t\t\t}) : null]\n\t\t\t\t}),\n\t\t\t\tde ? /* @__PURE__ */ m(n, {\n\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\tgap: 12,\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ p(e, {\n\t\t\t\t\t\ttext: z.tone,\n\t\t\t\t\t\tstyle: B\n\t\t\t\t\t}), /* @__PURE__ */ p(r, {\n\t\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\t\toptions: [{\n\t\t\t\t\t\t\tvalue: \"vivid\",\n\t\t\t\t\t\t\tlabel: z.vivid\n\t\t\t\t\t\t}, {\n\t\t\t\t\t\t\tvalue: \"muted\",\n\t\t\t\t\t\t\tlabel: z.muted\n\t\t\t\t\t\t}],\n\t\t\t\t\t\tvalue: F,\n\t\t\t\t\t\tonChange: (e) => Ee(e)\n\t\t\t\t\t})]\n\t\t\t\t}) : null,\n\t\t\t\t/* @__PURE__ */ m(n, {\n\t\t\t\t\tgap: 6,\n\t\t\t\t\tchildren: [$(z.hue, z.formatHue?.(E) ?? `${Math.round(E)}deg`), /* @__PURE__ */ p(i, {\n\t\t\t\t\t\tvalue: E,\n\t\t\t\t\t\tonChange: (e) => J(e, O, A),\n\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\tmax: 360,\n\t\t\t\t\t\tstep: 1,\n\t\t\t\t\t\ttrackLength: V,\n\t\t\t\t\t\trenderTrack: Z((e) => g(e * 360, 100, 50)),\n\t\t\t\t\t\trenderThumb: Q(g(E, 100, 50))\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ m(n, {\n\t\t\t\t\tgap: 6,\n\t\t\t\t\tchildren: [$(z.saturation, z.formatSaturation?.(O) ?? `${Math.round(O)}%`), /* @__PURE__ */ p(i, {\n\t\t\t\t\t\tvalue: O,\n\t\t\t\t\t\tonChange: (e) => J(E, e, A),\n\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\tmax: 100,\n\t\t\t\t\t\tstep: 1,\n\t\t\t\t\t\ttrackLength: V,\n\t\t\t\t\t\trenderTrack: Z((e) => g(E, e * 100, A)),\n\t\t\t\t\t\trenderThumb: Q(I)\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ m(n, {\n\t\t\t\t\tgap: 6,\n\t\t\t\t\tchildren: [$(z.lightness, z.formatLightness?.(A) ?? `${Math.round(A)}%`), /* @__PURE__ */ p(i, {\n\t\t\t\t\t\tvalue: A,\n\t\t\t\t\t\tonChange: (e) => J(E, O, e),\n\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\tmax: 100,\n\t\t\t\t\t\tstep: 1,\n\t\t\t\t\t\ttrackLength: V,\n\t\t\t\t\t\trenderTrack: Z((e) => g(E, O, e * 100)),\n\t\t\t\t\t\trenderThumb: Q(I)\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t]\n\t\t})]\n\t});\n}\n//#endregion\nexport { v as ColorPicker };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport \"@number10/jsx-core\";\nimport { jsx as t } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Divider.tsx\nfunction n(n) {\n\tlet { orientation: r = \"horizontal\", thickness: i = 1, color: a = 13421772, length: o } = n, s = r === \"horizontal\";\n\treturn /* @__PURE__ */ t(e, {\n\t\twidth: s ? o ?? \"100%\" : i,\n\t\theight: s ? i : o ?? \"100%\",\n\t\tbackgroundColor: a\n\t});\n}\n//#endregion\nexport { n as Divider };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Easing as t, KNOWN_COMPONENTS as n, createTween as r, getGlobalThemeDefaults as i, resolveComponentTheme as a, useRef as o, useState as s, useSurface as c, useTheme as l } from \"@number10/jsx-core\";\nimport { jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ScrollSlider.tsx\nfunction f(e, t) {\n\tlet n = t ?? i().ScrollSlider ?? {}, r = e === \"large\" ? 1.25 : e === \"small\" ? .75 : e === \"tiny\" ? .5 : e === \"micro\" ? .25 : e === \"nano\" ? .125 : 1, a = (n.borderWidth ?? 1) * r, o = (n.size ?? 24) * r;\n\treturn {\n\t\tborder: a,\n\t\touter: o,\n\t\tdimension: o - a * 2\n\t};\n}\nfunction p(p) {\n\tlet { direction: m, scrollPosition: h, viewportSize: g, contentSize: _, onScroll: v, momentum: y = !0, onMomentumEnd: b } = p, x = l(), { props: S } = a({\n\t\tcomponentName: \"ScrollSlider\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: x,\n\t\tknownComponents: n\n\t}), C = o(null), w = o(!1), [T, E] = s(!1), D = o(null), O = o(0), k = o(0), A = o(null), j = c()?.scheduler ?? null, M = o(j);\n\tj && M.current !== j && (M.current = j);\n\tlet N = m === \"vertical\", { border: P, outer: F, dimension: I } = f(p.size, S), L = F / (S.size ?? 24), R = Math.min((S.thumbBorderWidth ?? 1) * L, Math.max(0, I / 3)), z = S.cornerRadius ?? F / 2, B = S.trackCornerRadius ?? I / 2, V = S.thumbCornerRadius ?? I / 2, H = D.current?.__getLayoutSize?.(), U = (H && (N ? H.height > 0 : H.width > 0) ? N ? H.height : H.width : Math.max(0, g)) - P * 2, W = S.minThumbSize ?? 20, G = Math.max(0, _ - g), K = _ > 0 ? g / _ : 1, q = Math.max(W, U * K), J = U - q, Y = G > 0 ? h / G * J : 0, X = (e) => {\n\t\tif (e.stopPropagation(), e.state === \"start\") {\n\t\t\tw.current = !0, E(!0), O.current = 0, k.current = Date.now(), A.current &&= (A.current.stop(), null);\n\t\t\treturn;\n\t\t}\n\t\tif (e.state === \"end\") {\n\t\t\tw.current = !1, E(!1), y && Math.abs(O.current) > .1 ? Z(h) : b && b();\n\t\t\treturn;\n\t\t}\n\t\tif (!w.current) return;\n\t\tlet t = N ? e.dy ?? 0 : e.dx ?? 0, n = Date.now(), r = n - k.current;\n\t\tr > 0 && (O.current = t / r * 1e3, k.current = n);\n\t\tlet i = Math.max(0, Math.min(J, Y + t));\n\t\tv(J > 0 ? i / J * G : 0);\n\t}, Z = (e) => {\n\t\tif (!M.current) return;\n\t\tlet n = Math.min(1e3, Math.max(200, Math.abs(O.current))), i = Math.max(0, Math.min(G, e + O.current * (n / 1e3)));\n\t\tA.current = r({ pos: e }, {\n\t\t\tto: { pos: i },\n\t\t\tduration: n,\n\t\t\tease: t.quadOut,\n\t\t\tonUpdate: (e) => v(e.pos),\n\t\t\tonComplete: () => {\n\t\t\t\tA.current = null, b && b();\n\t\t\t}\n\t\t}, M.current);\n\t};\n\treturn /* @__PURE__ */ u(e, {\n\t\tref: D,\n\t\twidth: N ? F : \"100%\",\n\t\theight: N ? \"100%\" : F,\n\t\tbackgroundColor: S.borderColor ?? 0,\n\t\tcornerRadius: z,\n\t\tpadding: P,\n\t\tchildren: /* @__PURE__ */ d(e, {\n\t\t\tref: C,\n\t\t\twidth: N ? I : \"100%\",\n\t\t\theight: N ? \"100%\" : I,\n\t\t\tbackgroundColor: S.trackColor ?? 14540253,\n\t\t\tcornerRadius: B,\n\t\t\tdirection: \"stack\",\n\t\t\tpadding: 0,\n\t\t\tchildren: [/* @__PURE__ */ u(e, {\n\t\t\t\twidth: N ? I : \"100%\",\n\t\t\t\theight: N ? \"100%\" : I,\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\tbackgroundColor: S.trackColor ?? 11184810,\n\t\t\t\tcornerRadius: B,\n\t\t\t\tenableGestures: !0,\n\t\t\t\tonTouch: (e) => {\n\t\t\t\t\te.stopPropagation();\n\t\t\t\t\tlet t = N ? e.localY ?? 0 : e.localX ?? 0, n = Math.max(q / 2, Math.min(U - q / 2, t)) - q / 2, r = J > 0 ? n / J * G : 0;\n\t\t\t\t\tv(Math.max(0, Math.min(G, r)));\n\t\t\t\t}\n\t\t\t}), /* @__PURE__ */ u(e, {\n\t\t\t\twidth: N ? I : q,\n\t\t\t\theight: N ? q : I,\n\t\t\t\tx: N ? 0 : Y,\n\t\t\t\ty: N ? Y : 0,\n\t\t\t\tbackgroundColor: T ? S.thumbActiveColor ?? S.thumbColor ?? 15658683 : S.thumbColor ?? 15658683,\n\t\t\t\tborderColor: S.thumbBorderColor,\n\t\t\t\tborderWidth: R,\n\t\t\t\tcornerRadius: V,\n\t\t\t\tenableGestures: !0,\n\t\t\t\tonTouchMove: X\n\t\t\t})]\n\t\t})\n\t});\n}\n//#endregion\nexport { p as ScrollSlider, f as calculateSliderSize };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { ScrollSlider as t, calculateSliderSize as n } from \"./ScrollSlider.js\";\nimport { DeferredLayoutQueue as r, Easing as i, KNOWN_COMPONENTS as a, createTween as o, getGlobalThemeDefaults as s, resolveComponentTheme as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f, useSurface as p, useTheme as m } from \"@number10/jsx-core\";\nimport { jsx as h, jsxs as ee } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ScrollView.tsx\nfunction g(e, t, n) {\n\treturn Math.max(t, Math.min(n, e));\n}\nfunction _(e, t) {\n\tif (e) {\n\t\tif (typeof e == \"function\") {\n\t\t\te(t);\n\t\t\treturn;\n\t\t}\n\t\te.current = t;\n\t}\n}\nfunction v(e, t) {\n\treturn Math.abs(e.width - t.width) < .5 && Math.abs(e.height - t.height) < .5;\n}\nfunction te(e, t) {\n\treturn e ? Math.abs(e.dx - t.dx) < .5 && Math.abs(e.dy - t.dy) < .5 && Math.abs(e.viewportWidth - t.viewportWidth) < .5 && Math.abs(e.viewportHeight - t.viewportHeight) < .5 && Math.abs(e.contentWidth - t.contentWidth) < .5 && Math.abs(e.contentHeight - t.contentHeight) < .5 && Math.abs(e.maxScrollX - t.maxScrollX) < .5 && Math.abs(e.maxScrollY - t.maxScrollY) < .5 : !1;\n}\nfunction y(e) {\n\tlet t = e?.__getLayoutSize?.();\n\treturn {\n\t\twidth: Math.max(0, t?.width ?? 0),\n\t\theight: Math.max(0, t?.height ?? 0)\n\t};\n}\nfunction b(e) {\n\tlet t = e.x ?? 0, n = e.y ?? 0, r = e.parent;\n\tfor (; r;) t += r.x ?? 0, n += r.y ?? 0, r = r.parent;\n\treturn {\n\t\tx: t,\n\t\ty: n\n\t};\n}\nfunction x(e, t) {\n\treturn e === !0 ? !0 : e === !1 ? !1 : t;\n}\nfunction ne(e) {\n\tlet t = e.epsilon ?? .5, n = Math.max(0, e.outerWidth), r = Math.max(0, e.outerHeight), i = Math.max(0, e.contentWidth), a = Math.max(0, e.contentHeight), o = Math.max(0, e.sliderSize), s = e.showVerticalSlider === !0, c = e.showHorizontalSlider === !0;\n\tfor (let l = 0; l < 4; l++) {\n\t\tlet l = Math.max(0, n - (s ? o : 0)), u = Math.max(0, r - (c ? o : 0)), d = Math.max(i, l), f = Math.max(a, u), p = x(e.showVerticalSlider, f > u + t), m = x(e.showHorizontalSlider, d > l + t);\n\t\tif (p === s && m === c) break;\n\t\ts = p, c = m;\n\t}\n\tlet l = Math.max(0, n - (s ? o : 0)), u = Math.max(0, r - (c ? o : 0)), d = Math.max(i, l), f = Math.max(a, u);\n\treturn {\n\t\touterWidth: n,\n\t\touterHeight: r,\n\t\tviewportWidth: l,\n\t\tviewportHeight: u,\n\t\tcontentWidth: i,\n\t\tcontentHeight: a,\n\t\teffectiveContentWidth: d,\n\t\teffectiveContentHeight: f,\n\t\tshowVerticalSlider: s,\n\t\tshowHorizontalSlider: c,\n\t\tmaxScrollX: Math.max(0, d - l),\n\t\tmaxScrollY: Math.max(0, f - u)\n\t};\n}\nfunction re(e, t) {\n\tlet [n, i] = f({\n\t\twidth: 0,\n\t\theight: 0\n\t}), [a, o] = f({\n\t\twidth: 0,\n\t\theight: 0\n\t}), s = d(n), c = d(a);\n\treturn l(() => {\n\t\tlet n = !1, a = () => {\n\t\t\tn || r.defer(l);\n\t\t}, l = () => {\n\t\t\tif (n) return;\n\t\t\tlet r = y(e.current), l = y(t.current);\n\t\t\tv(s.current, r) || (s.current = r, i(r)), v(c.current, l) || (c.current = l, o(l)), a();\n\t\t};\n\t\treturn a(), () => {\n\t\t\tn = !0;\n\t\t};\n\t}, []), {\n\t\touterSize: n,\n\t\tcontentSize: a\n\t};\n}\nfunction ie(r) {\n\tlet { ref: x, children: ie, showVerticalSlider: ae = \"auto\", showHorizontalSlider: oe = \"auto\", scroll: S, onScrollInfoChange: C, snap: w = !1, snapAlignment: T = \"start\", snapThreshold: se = 20, momentum: E = !0, onSnap: D, onSliderSize: O, sliderSize: k, visible: ce, ...le } = r, ue = m(), { props: de } = c({\n\t\tcomponentName: \"ScrollSlider\",\n\t\tglobalTheme: s(),\n\t\tlocalTheme: ue,\n\t\tknownComponents: a\n\t}), [A, fe] = f({\n\t\tdx: S?.dx ?? 0,\n\t\tdy: S?.dy ?? 0\n\t}), j = d(A), M = d(!1), pe = d(S?.snapIndex), me = d(null), he = d(null), ge = d(null), { outerSize: N, contentSize: P } = re(me, ge), F = d({\n\t\tvx: 0,\n\t\tvy: 0\n\t}), I = d(0), L = d({\n\t\tdx: 0,\n\t\tdy: 0\n\t}), R = d(null), z = d(null), B = d(null), V = p()?.scheduler ?? null, H = d(V);\n\tV && H.current !== V && (H.current = V);\n\tlet { outer: U } = n(k, de), W = ne({\n\t\touterWidth: N.width,\n\t\touterHeight: N.height,\n\t\tcontentWidth: P.width,\n\t\tcontentHeight: P.height,\n\t\tsliderSize: U,\n\t\tshowVerticalSlider: ae,\n\t\tshowHorizontalSlider: oe\n\t}), G = d(W);\n\tG.current = W;\n\tlet _e = d(null), ve = d(null);\n\tl(() => {\n\t\tif (!O) return;\n\t\tlet e = {\n\t\t\twidth: W.showVerticalSlider ? U : 0,\n\t\t\theight: W.showHorizontalSlider ? U : 0\n\t\t};\n\t\tv(_e.current ?? {\n\t\t\twidth: -1,\n\t\t\theight: -1\n\t\t}, e) || (_e.current = e, O(e));\n\t}, [\n\t\tW.showHorizontalSlider,\n\t\tW.showVerticalSlider,\n\t\tO,\n\t\tU\n\t]);\n\tlet K = (e) => {\n\t\tfe((t) => {\n\t\t\tlet n = typeof e == \"function\" ? e(t) : e;\n\t\t\treturn Math.abs(n.dx - t.dx) < .001 && Math.abs(n.dy - t.dy) < .001 ? (j.current = t, t) : (j.current = n, n);\n\t\t});\n\t}, q = () => {\n\t\tz.current &&= (z.current.stop(), null);\n\t}, ye = (e, t) => {\n\t\tlet n = G.current, r = g(e.dx ?? j.current.dx, 0, n.maxScrollX), a = g(e.dy ?? j.current.dy, 0, n.maxScrollY), s = t?.animate === !0 && H.current !== null;\n\t\tif (!(Math.abs(r - j.current.dx) < .5 && Math.abs(a - j.current.dy) < .5)) {\n\t\t\tif (q(), s && H.current) {\n\t\t\t\tz.current = o({\n\t\t\t\t\tdx: j.current.dx,\n\t\t\t\t\tdy: j.current.dy\n\t\t\t\t}, {\n\t\t\t\t\tto: {\n\t\t\t\t\t\tdx: r,\n\t\t\t\t\t\tdy: a\n\t\t\t\t\t},\n\t\t\t\t\tduration: t?.duration ?? 220,\n\t\t\t\t\tease: i.quadOut,\n\t\t\t\t\tonUpdate: (e) => K({\n\t\t\t\t\t\tdx: e.dx,\n\t\t\t\t\t\tdy: e.dy\n\t\t\t\t\t}),\n\t\t\t\t\tonComplete: () => {\n\t\t\t\t\t\tz.current = null;\n\t\t\t\t\t}\n\t\t\t\t}, H.current);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tK({\n\t\t\t\tdx: r,\n\t\t\t\tdy: a\n\t\t\t});\n\t\t}\n\t}, be = (e, t, n = 2) => {\n\t\tlet r = he.current;\n\t\tif (!e || !r) return;\n\t\tlet i = b(r), a = b(e), o = y(e), s = G.current;\n\t\tif (n > 0 && (s.viewportWidth <= 0 || s.viewportHeight <= 0 || o.width <= 0 || o.height <= 0)) {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tbe(e, t, n - 1);\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tlet c = j.current.dx, l = j.current.dy, u = a.x - i.x, d = u + o.width, f = a.y - i.y, p = f + o.height, m = t?.block ?? \"nearest\", h = t?.inline ?? \"nearest\";\n\t\tm === \"start\" ? l += f : m === \"center\" ? l += f - (s.viewportHeight - o.height) / 2 : m === \"end\" ? l += p - s.viewportHeight : f < 0 ? l += f : p > s.viewportHeight && (l += p - s.viewportHeight), h === \"start\" ? c += u : h === \"center\" ? c += u - (s.viewportWidth - o.width) / 2 : h === \"end\" ? c += d - s.viewportWidth : u < 0 ? c += u : d > s.viewportWidth && (c += d - s.viewportWidth), ye({\n\t\t\tdx: c,\n\t\t\tdy: l\n\t\t}, {\n\t\t\tanimate: t?.animate,\n\t\t\tduration: t?.duration\n\t\t});\n\t}, xe = (e) => {\n\t\tlet t = e;\n\t\tif (me.current = t, !t) {\n\t\t\t_(x, null);\n\t\t\treturn;\n\t\t}\n\t\tlet n = t;\n\t\tn.scrollTo = (e) => {\n\t\t\tye(e, e);\n\t\t}, n.scrollChildIntoView = (e, t) => {\n\t\t\tbe(e, t);\n\t\t}, _(x, n);\n\t}, J = typeof w == \"object\" && \"positions\" in w ? w.threshold ?? se : se, Se = J === void 0 || J < 0 ? Infinity : J, Ce = () => {\n\t\tlet { viewportWidth: e, viewportHeight: t } = G.current;\n\t\tif (typeof w == \"object\" && \"positions\" in w) {\n\t\t\tlet n = [...w.positions].sort((e, t) => e - t), r = n.length > 1 ? Math.max(0, (n[1] ?? 0) - (n[0] ?? 0)) : t || 0, i = n.length > 1 ? Math.max(0, (n[1] ?? 0) - (n[0] ?? 0)) : e || 0;\n\t\t\treturn {\n\t\t\t\tx: n.map((t, r) => {\n\t\t\t\t\tlet a = n[r + 1];\n\t\t\t\t\treturn {\n\t\t\t\t\t\tposition: t,\n\t\t\t\t\t\tsize: a === void 0 ? i > 0 ? i : e || 0 : Math.max(0, a - t)\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t\ty: n.map((e, i) => {\n\t\t\t\t\tlet a = n[i + 1];\n\t\t\t\t\treturn {\n\t\t\t\t\t\tposition: e,\n\t\t\t\t\t\tsize: a === void 0 ? r > 0 ? r : t || 0 : Math.max(0, a - e)\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tx: [],\n\t\t\ty: []\n\t\t};\n\t}, Y = (e, t, n) => {\n\t\tlet r = e.position;\n\t\treturn T === \"center\" ? r = e.position + e.size / 2 - t / 2 : T === \"end\" && (r = e.position + e.size - t), g(r, 0, n);\n\t}, we = (e, t, n, r) => {\n\t\tif (t.length === 0) return {\n\t\t\tposition: e,\n\t\t\tindex: -1\n\t\t};\n\t\tlet i = e, a = Infinity, o = -1;\n\t\tfor (let s = 0; s < t.length; s++) {\n\t\t\tlet { position: c, size: l } = t[s] ?? {\n\t\t\t\tposition: 0,\n\t\t\t\tsize: 0\n\t\t\t}, u = Y({\n\t\t\t\tposition: c,\n\t\t\t\tsize: l\n\t\t\t}, n, r), d = Math.abs(e - u);\n\t\t\t(d < a && d <= Se || d < a && Se === Infinity) && (a = d, i = u, o = s);\n\t\t}\n\t\treturn {\n\t\t\tposition: i,\n\t\t\tindex: o\n\t\t};\n\t}, Te = (e, t) => {\n\t\tlet { x: n, y: r } = Ce(), { viewportWidth: i, viewportHeight: a, maxScrollX: o, maxScrollY: s } = G.current, c = .5, l = o > c ? n : [], u = s > c ? r : [], d = we(e, l, i, o), f = we(t, u, a, s), p = f.index >= 0 ? f.index : d.index;\n\t\treturn {\n\t\t\tdx: d.position,\n\t\t\tdy: f.position,\n\t\t\tindex: p\n\t\t};\n\t}, X = () => {\n\t\tif (!H.current || !w) return;\n\t\tlet e = j.current, { dx: t, dy: n, index: r } = Te(e.dx, e.dy);\n\t\tif (t === e.dx && n === e.dy) {\n\t\t\tr >= 0 && D && D(r);\n\t\t\treturn;\n\t\t}\n\t\tq(), z.current = o({\n\t\t\tdx: e.dx,\n\t\t\tdy: e.dy\n\t\t}, {\n\t\t\tto: {\n\t\t\t\tdx: t,\n\t\t\t\tdy: n\n\t\t\t},\n\t\t\tduration: 250,\n\t\t\tease: i.quadOut,\n\t\t\tonUpdate: (e) => K({\n\t\t\t\tdx: e.dx,\n\t\t\t\tdy: e.dy\n\t\t\t}),\n\t\t\tonComplete: () => {\n\t\t\t\tz.current = null, r >= 0 && D && D(r);\n\t\t\t}\n\t\t}, H.current);\n\t};\n\tu(() => {\n\t\tif (!S) return;\n\t\tlet e = M.current;\n\t\tif (w && typeof w == \"object\" && \"positions\" in w) {\n\t\t\tlet { x: t, y: n } = Ce(), r = t.length > 0 || n.length > 0;\n\t\t\tif (S.snapIndex !== void 0 && r) {\n\t\t\t\tlet r = Math.max(t.length, n.length) - 1, a = Math.max(0, Math.min(S.snapIndex, r)), s = t[a], c = n[a], l = s === void 0 ? S.dx ?? j.current.dx : Y(s, W.viewportWidth, W.maxScrollX), u = c === void 0 ? S.dy ?? j.current.dy : Y(c, W.viewportHeight, W.maxScrollY), d = e && (a !== pe.current || Math.abs(j.current.dx - l) > .5 || Math.abs(j.current.dy - u) > .5);\n\t\t\t\tpe.current = a, d && H.current ? (q(), z.current = o({\n\t\t\t\t\tdx: j.current.dx,\n\t\t\t\t\tdy: j.current.dy\n\t\t\t\t}, {\n\t\t\t\t\tto: {\n\t\t\t\t\t\tdx: l,\n\t\t\t\t\t\tdy: u\n\t\t\t\t\t},\n\t\t\t\t\tduration: 220,\n\t\t\t\t\tease: i.quadOut,\n\t\t\t\t\tonUpdate: (e) => K({\n\t\t\t\t\t\tdx: e.dx,\n\t\t\t\t\t\tdy: e.dy\n\t\t\t\t\t}),\n\t\t\t\t\tonComplete: () => {\n\t\t\t\t\t\tz.current = null, D && D(a);\n\t\t\t\t\t}\n\t\t\t\t}, H.current)) : (K({\n\t\t\t\t\tdx: l,\n\t\t\t\t\tdy: u\n\t\t\t\t}), D && D(a)), M.current = !0;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (S.dx !== void 0 && S.dy !== void 0) {\n\t\t\tlet t = S.dx, n = S.dy;\n\t\t\te && (Math.abs(j.current.dx - t) > .5 || Math.abs(j.current.dy - n) > .5) && H.current ? (q(), z.current = o({\n\t\t\t\tdx: j.current.dx,\n\t\t\t\tdy: j.current.dy\n\t\t\t}, {\n\t\t\t\tto: {\n\t\t\t\t\tdx: t,\n\t\t\t\t\tdy: n\n\t\t\t\t},\n\t\t\t\tduration: 220,\n\t\t\t\tease: i.quadOut,\n\t\t\t\tonUpdate: (e) => K({\n\t\t\t\t\tdx: e.dx,\n\t\t\t\t\tdy: e.dy\n\t\t\t\t}),\n\t\t\t\tonComplete: () => {\n\t\t\t\t\tz.current = null;\n\t\t\t\t}\n\t\t\t}, H.current)) : K({\n\t\t\t\tdx: t,\n\t\t\t\tdy: n\n\t\t\t});\n\t\t}\n\t\tM.current = !0;\n\t}, [\n\t\tS,\n\t\tW.maxScrollX,\n\t\tW.maxScrollY,\n\t\tW.viewportHeight,\n\t\tW.viewportWidth,\n\t\tw\n\t]);\n\tlet Z = g(A.dx, 0, W.maxScrollX), Q = g(A.dy, 0, W.maxScrollY);\n\tl(() => {\n\t\t(Z !== A.dx || Q !== A.dy) && K({\n\t\t\tdx: Z,\n\t\t\tdy: Q\n\t\t});\n\t}, [\n\t\tZ,\n\t\tQ,\n\t\tA.dx,\n\t\tA.dy\n\t]), l(() => {\n\t\tif (C && W.viewportWidth > 0 && W.viewportHeight > 0) {\n\t\t\tlet e = {\n\t\t\t\tdx: Z,\n\t\t\t\tdy: Q,\n\t\t\t\tviewportWidth: W.viewportWidth,\n\t\t\t\tviewportHeight: W.viewportHeight,\n\t\t\t\tcontentWidth: W.effectiveContentWidth,\n\t\t\t\tcontentHeight: W.effectiveContentHeight,\n\t\t\t\tmaxScrollX: W.maxScrollX,\n\t\t\t\tmaxScrollY: W.maxScrollY\n\t\t\t};\n\t\t\tif (te(ve.current, e)) return;\n\t\t\tve.current = e, C(e);\n\t\t}\n\t}, [\n\t\tZ,\n\t\tQ,\n\t\tW.effectiveContentHeight,\n\t\tW.effectiveContentWidth,\n\t\tW.maxScrollX,\n\t\tW.maxScrollY,\n\t\tW.viewportHeight,\n\t\tW.viewportWidth,\n\t\tC\n\t]);\n\tlet Ee = (e, t) => {\n\t\tlet n = G.current, r = j.current, i = g(r.dy - t, 0, n.maxScrollY), a = g(r.dx - e, 0, n.maxScrollX);\n\t\tMath.abs(a - r.dx) < .001 && Math.abs(i - r.dy) < .001 || K({\n\t\t\tdx: a,\n\t\t\tdy: i\n\t\t});\n\t}, De = () => {\n\t\tR.current = null;\n\t\tlet e = L.current;\n\t\tif (e.dx === 0 && e.dy === 0) return;\n\t\tlet t = e.dx, n = e.dy;\n\t\tL.current = {\n\t\t\tdx: 0,\n\t\t\tdy: 0\n\t\t}, Ee(t, n);\n\t}, $ = (e, t) => {\n\t\te === 0 && t === 0 || (L.current = {\n\t\t\tdx: L.current.dx + e,\n\t\t\tdy: L.current.dy + t\n\t\t}, R.current === null && (R.current = requestAnimationFrame(De)));\n\t}, Oe = () => {\n\t\tif (!H.current) return;\n\t\tlet e = G.current, t = F.current, n = Math.min(1e3, Math.max(200, Math.abs(t.vx) + Math.abs(t.vy))), r = j.current, a = g(r.dx - t.vx * (n / 1e3), 0, e.maxScrollX), s = g(r.dy - t.vy * (n / 1e3), 0, e.maxScrollY), c = w ? Te(a, s) : null;\n\t\tq(), z.current = o({\n\t\t\tdx: r.dx,\n\t\t\tdy: r.dy\n\t\t}, {\n\t\t\tto: {\n\t\t\t\tdx: c?.dx ?? a,\n\t\t\t\tdy: c?.dy ?? s\n\t\t\t},\n\t\t\tduration: n,\n\t\t\tease: i.quadOut,\n\t\t\tonUpdate: (e) => K({\n\t\t\t\tdx: e.dx,\n\t\t\t\tdy: e.dy\n\t\t\t}),\n\t\t\tonComplete: () => {\n\t\t\t\tz.current = null, c && c.index >= 0 && D && D(c.index);\n\t\t\t}\n\t\t}, H.current);\n\t}, ke = (e) => {\n\t\tK((t) => ({\n\t\t\t...t,\n\t\t\tdy: g(e, 0, G.current.maxScrollY)\n\t\t}));\n\t}, Ae = (e) => {\n\t\tK((t) => ({\n\t\t\t...t,\n\t\t\tdx: g(e, 0, G.current.maxScrollX)\n\t\t}));\n\t}, je = () => {\n\t\tw && X();\n\t}, Me = (e) => {\n\t\tif (e.state === \"end\") {\n\t\t\tlet e = F.current;\n\t\t\tE && (Math.abs(e.vx) > .1 || Math.abs(e.vy) > .1) ? Oe() : w && X();\n\t\t\treturn;\n\t\t}\n\t\tif (e.state === \"start\") {\n\t\t\tq(), R.current !== null && (cancelAnimationFrame(R.current), R.current = null), L.current = {\n\t\t\t\tdx: 0,\n\t\t\t\tdy: 0\n\t\t\t}, F.current = {\n\t\t\t\tvx: 0,\n\t\t\t\tvy: 0\n\t\t\t}, I.current = Date.now(), e.stopPropagation();\n\t\t\treturn;\n\t\t}\n\t\te.stopPropagation();\n\t\tlet t = e.dx ?? 0, n = e.dy ?? 0, r = Date.now(), i = r - I.current;\n\t\ti > 0 && (F.current = {\n\t\t\tvx: t / i * 1e3,\n\t\t\tvy: n / i * 1e3\n\t\t}, I.current = r), $(t, n);\n\t}, Ne = (e) => {\n\t\te.stopPropagation(), e.preventDefault(), q(), $(-e.deltaX, -e.deltaY), w && (B.current && clearTimeout(B.current), B.current = setTimeout(() => X(), 200));\n\t};\n\tl(() => () => {\n\t\tR.current !== null && (cancelAnimationFrame(R.current), R.current = null), L.current = {\n\t\t\tdx: 0,\n\t\t\tdy: 0\n\t\t}, B.current && clearTimeout(B.current), q();\n\t}, []);\n\tlet Pe = ce === \"none\" ? \"none\" : ce ?? !0;\n\treturn /* @__PURE__ */ h(e, { children: /* @__PURE__ */ h(e, {\n\t\t...le,\n\t\tvisible: Pe,\n\t\tchildren: /* @__PURE__ */ ee(e, {\n\t\t\tref: xe,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\tdirection: \"stack\",\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ ee(e, {\n\t\t\t\t\tref: he,\n\t\t\t\t\twidth: W.viewportWidth,\n\t\t\t\t\theight: W.viewportHeight,\n\t\t\t\t\tonTouchMove: Me,\n\t\t\t\t\tonWheel: Ne,\n\t\t\t\t\toverflow: \"hidden\",\n\t\t\t\t\tdirection: \"stack\",\n\t\t\t\t\tchildren: [/* @__PURE__ */ h(e, {\n\t\t\t\t\t\tref: ge,\n\t\t\t\t\t\tx: -Z,\n\t\t\t\t\t\ty: -Q,\n\t\t\t\t\t\tchildren: ie\n\t\t\t\t\t}), /* @__PURE__ */ h(e, {\n\t\t\t\t\t\twidth: W.viewportWidth,\n\t\t\t\t\t\theight: W.viewportHeight,\n\t\t\t\t\t\tenableGestures: !0,\n\t\t\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\t\t\tonTouch: (e) => {\n\t\t\t\t\t\t\tlet t = e.localX, n = e.localY, r = .1;\n\t\t\t\t\t\t\tt >= -r && t <= W.viewportWidth + r && n >= -r && n <= W.viewportHeight + r || e.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t})]\n\t\t\t\t}),\n\t\t\t\tW.showHorizontalSlider && W.viewportWidth > 0 ? /* @__PURE__ */ h(e, {\n\t\t\t\t\ty: W.viewportHeight,\n\t\t\t\t\twidth: W.viewportWidth,\n\t\t\t\t\theight: U,\n\t\t\t\t\tchildren: /* @__PURE__ */ h(t, {\n\t\t\t\t\t\tdirection: \"horizontal\",\n\t\t\t\t\t\tsize: k,\n\t\t\t\t\t\tscrollPosition: Z,\n\t\t\t\t\t\tviewportSize: W.viewportWidth,\n\t\t\t\t\t\tcontentSize: W.effectiveContentWidth,\n\t\t\t\t\t\tonScroll: Ae,\n\t\t\t\t\t\tmomentum: E,\n\t\t\t\t\t\tonMomentumEnd: je\n\t\t\t\t\t})\n\t\t\t\t}) : null,\n\t\t\t\tW.showVerticalSlider && W.viewportHeight > 0 ? /* @__PURE__ */ h(e, {\n\t\t\t\t\tx: W.viewportWidth,\n\t\t\t\t\twidth: U,\n\t\t\t\t\theight: W.viewportHeight,\n\t\t\t\t\tchildren: /* @__PURE__ */ h(t, {\n\t\t\t\t\t\tdirection: \"vertical\",\n\t\t\t\t\t\tsize: k,\n\t\t\t\t\t\tscrollPosition: Q,\n\t\t\t\t\t\tviewportSize: W.viewportHeight,\n\t\t\t\t\t\tcontentSize: W.effectiveContentHeight,\n\t\t\t\t\t\tonScroll: ke,\n\t\t\t\t\t\tmomentum: E,\n\t\t\t\t\t\tonMomentumEnd: je\n\t\t\t\t\t})\n\t\t\t\t}) : null,\n\t\t\t\tW.showHorizontalSlider && W.showVerticalSlider ? /* @__PURE__ */ h(e, {\n\t\t\t\t\tx: W.viewportWidth,\n\t\t\t\t\ty: W.viewportHeight,\n\t\t\t\t\twidth: U,\n\t\t\t\t\theight: U\n\t\t\t\t}) : null\n\t\t\t]\n\t\t})\n\t}) });\n}\n//#endregion\nexport { ie as ScrollView, ne as resolveScrollViewLayout };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Popover as n } from \"./Popover.js\";\nimport { TextInput as r } from \"./TextInput.js\";\nimport { ScrollView as i } from \"./ScrollView.js\";\nimport \"./index.js\";\nimport { KNOWN_COMPONENTS as a, applyEffect as o, getGlobalThemeDefaults as s, mergeThemes as c, resolveComponentTheme as ee, useForceRedraw as l, useLayoutEffect as u, useRef as d, useSpring as f, useState as p, useTheme as te } from \"@number10/jsx-core\";\nimport { Fragment as m, jsx as h, jsxs as g } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Dropdown.tsx\nfunction ne(t) {\n\tlet n = t.size ?? 12;\n\treturn /* @__PURE__ */ h(e, {\n\t\ttext: \"▼\",\n\t\tstyle: {\n\t\t\tcolor: t.color ?? \"#ffffff\",\n\t\t\tfontSize: `${n}px`,\n\t\t\tfontFamily: \"Arial, sans-serif\"\n\t\t}\n\t});\n}\nfunction _(t) {\n\tlet n = t.size ?? 16, r = t.color ?? \"#ffffff\";\n\treturn t.multiple ? /* @__PURE__ */ h(e, {\n\t\ttext: t.selected ? \"☑\" : \"☐\",\n\t\tstyle: {\n\t\t\tcolor: r,\n\t\t\tfontSize: `${n}px`,\n\t\t\tfontFamily: \"Arial, sans-serif\"\n\t\t}\n\t}) : t.selected ? /* @__PURE__ */ h(e, {\n\t\ttext: \"✓\",\n\t\tstyle: {\n\t\t\tcolor: r,\n\t\t\tfontSize: `${n}px`,\n\t\t\tfontFamily: \"Arial, sans-serif\"\n\t\t}\n\t}) : null;\n}\nfunction v(v) {\n\tlet y = te(), b = v.theme ? c(y ?? {}, v.theme) : y, { props: x, nestedTheme: S } = ee({\n\t\tcomponentName: \"Dropdown\",\n\t\tglobalTheme: s(),\n\t\tlocalTheme: b,\n\t\tknownComponents: a\n\t}), [C, w] = p(!1), [re, T] = p(v.defaultValue ?? (v.multiple ? [] : \"\")), [E, D] = p(\"\"), O = d(null), k = d(null), A = d([]), j = v.value !== void 0, M = j ? v.value : re, N = x.trigger ?? {}, P = x.overlay ?? {}, ie = x.option ?? {}, F = x.textStyle, ae = x.placeholderStyle, I = v.maxHeight ?? P.maxHeight ?? 300, L = x.arrow ?? {}, R = L.size ?? 12, z = L.color ?? \"#ffffff\", B = x.selectionIndicator ?? {}, V = B.size ?? 16, H = B.color ?? L.color, U = v.placement ?? \"bottom\", W = U === \"top\" ? \"top-start\" : \"bottom-start\", G = (() => {\n\t\tif (v.multiple) {\n\t\t\tlet e = M;\n\t\t\treturn v.options.filter((t) => e.includes(t.value));\n\t\t}\n\t\tlet e = v.options.find((e) => e.value === M);\n\t\treturn e ? [e] : [];\n\t})(), [K] = f(C ? Math.PI : 0, x.animationConfig || \"gentle\");\n\tl(20, K);\n\tlet q = () => {\n\t\tv.disabled || C || (w(!0), D(\"\"), v.onOpen?.(), O.current && o(O.current, x.effect ?? \"press\"));\n\t}, J = () => {\n\t\tC && (w(!1), D(\"\"), v.onClose?.());\n\t}, oe = (e) => {\n\t\te ? q() : J();\n\t}, se = (e, t) => {\n\t\tif (t?.stopPropagation(), v.multiple) {\n\t\t\tlet t = M, n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];\n\t\t\tj || T(n), v.onChange?.(n), (v.closeOnSelect ?? !1) && J();\n\t\t} else j || T(e), v.onChange?.(e), (v.closeOnSelect ?? !0) && J();\n\t}, ce = () => v.renderValue ? v.renderValue(G.length > 0 ? G : null) : G.length === 0 ? /* @__PURE__ */ h(e, {\n\t\ttext: v.placeholder ?? \"Select...\",\n\t\tstyle: ae\n\t}) : v.multiple ? /* @__PURE__ */ h(e, {\n\t\ttext: `${G.length} selected`,\n\t\tstyle: F\n\t}) : /* @__PURE__ */ h(e, {\n\t\ttext: G[0]?.label ?? \"\",\n\t\tstyle: F\n\t}), le = v.disabled ? {\n\t\t...N,\n\t\t...x.triggerDisabled ?? {}\n\t} : C ? {\n\t\t...N,\n\t\t...x.triggerOpen ?? {}\n\t} : N, Y = v.options.map((n, r) => {\n\t\tlet i = v.multiple ? M.includes(n.value) : M === n.value, a = n.disabled ?? !1, o = v.isFilterable ? n.label.toLowerCase().includes(E.toLowerCase()) : !0, s = {\n\t\t\t...ie,\n\t\t\t...i ? x.optionSelected ?? {} : {},\n\t\t\t...a ? x.optionDisabled ?? {} : {}\n\t\t};\n\t\treturn /* @__PURE__ */ h(t, {\n\t\t\tref: (e) => {\n\t\t\t\tA.current[r] = e ?? null;\n\t\t\t},\n\t\t\twidth: \"fill\",\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tenableGestures: !a,\n\t\t\tvisible: o ? !0 : \"none\",\n\t\t\tonTouch: (e) => {\n\t\t\t\te.stopPropagation(), a || se(n.value, e);\n\t\t\t},\n\t\t\t...s,\n\t\t\tchildren: v.renderOption ? v.renderOption(n, i) : /* @__PURE__ */ g(m, { children: [\n\t\t\t\t/* @__PURE__ */ h(_, {\n\t\t\t\t\tselected: i,\n\t\t\t\t\tmultiple: v.multiple === !0,\n\t\t\t\t\tdisabled: a,\n\t\t\t\t\tcolor: H ?? \"#ffffff\",\n\t\t\t\t\tsize: V\n\t\t\t\t}),\n\t\t\t\tn.prefix,\n\t\t\t\t/* @__PURE__ */ h(e, { text: n.label }),\n\t\t\t\tn.suffix\n\t\t\t] })\n\t\t}, String(n.value));\n\t}), ue = /* @__PURE__ */ g(t, {\n\t\tref: O,\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t\t...le,\n\t\tchildren: [/* @__PURE__ */ h(t, {\n\t\t\tflex: 1,\n\t\t\tchildren: ce()\n\t\t}), /* @__PURE__ */ h(t, {\n\t\t\twidth: R,\n\t\t\theight: R,\n\t\t\trotation: K.value,\n\t\t\tchildren: v.arrow ?? /* @__PURE__ */ h(ne, {\n\t\t\t\tcolor: z,\n\t\t\t\tsize: R\n\t\t\t})\n\t\t})]\n\t}), X = x.filterInput ?? {}, Z = v.isFilterable && /* @__PURE__ */ h(t, {\n\t\tmargin: U === \"top\" ? { top: 8 } : { bottom: 8 },\n\t\tchildren: /* @__PURE__ */ h(r, {\n\t\t\tvalue: E,\n\t\t\tonChange: (e) => D(e),\n\t\t\tplaceholder: v.filterInputPlaceholder ?? \"Filter...\",\n\t\t\theight: X.height,\n\t\t\twidth: X.width\n\t\t})\n\t}), Q = /* @__PURE__ */ h(t, {\n\t\tflex: 1,\n\t\twidth: \"fill\",\n\t\tchildren: /* @__PURE__ */ h(i, {\n\t\t\tref: k,\n\t\t\tshowVerticalSlider: \"auto\",\n\t\t\theight: \"fill\",\n\t\t\twidth: \"100%\",\n\t\t\tonTouch: () => {\n\t\t\t\tdocument.activeElement instanceof HTMLElement && document.activeElement.blur();\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ h(t, {\n\t\t\t\tdirection: \"column\",\n\t\t\t\tgap: x.optionGap ?? 2,\n\t\t\t\twidth: \"100%\",\n\t\t\t\ttheme: F ? { Text: { style: F } } : void 0,\n\t\t\t\tchildren: Y\n\t\t\t})\n\t\t})\n\t}), $ = d(!1);\n\tu(() => {\n\t\tif (!C) {\n\t\t\t$.current = !1;\n\t\t\treturn;\n\t\t}\n\t\tif (E.length > 0 || v.multiple && $.current) return;\n\t\tlet e = v.multiple ? v.options.findIndex((e) => M.includes(e.value)) : v.options.findIndex((e) => e.value === M);\n\t\tif (e < 0) return;\n\t\tlet t = A.current[e];\n\t\tt && (k.current?.scrollChildIntoView(t, { block: \"nearest\" }), v.multiple && ($.current = !0));\n\t}, [\n\t\tM,\n\t\tE,\n\t\tC,\n\t\tv.multiple,\n\t\tv.options\n\t]);\n\tlet de = /* @__PURE__ */ h(t, {\n\t\tdirection: \"column\",\n\t\twidth: \"fill\",\n\t\theight: I,\n\t\toverflow: \"hidden\",\n\t\ttheme: S,\n\t\t...P,\n\t\tchildren: U === \"top\" ? /* @__PURE__ */ g(m, { children: [Q, Z] }) : /* @__PURE__ */ g(m, { children: [Z, Q] })\n\t});\n\treturn /* @__PURE__ */ h(t, {\n\t\tdirection: \"column\",\n\t\twidth: v.width ?? \"fill\",\n\t\tchildren: /* @__PURE__ */ h(n, {\n\t\t\ttrigger: ue,\n\t\t\tisOpen: C,\n\t\t\tonOpenChange: oe,\n\t\t\tplacement: W,\n\t\t\toffset: 4,\n\t\t\tmatchTriggerWidth: !0,\n\t\t\tcontentHeight: I,\n\t\t\tcontentProps: {\n\t\t\t\theight: I,\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tborderWidth: 0,\n\t\t\t\tpadding: 0,\n\t\t\t\tgap: 0,\n\t\t\t\tcornerRadius: 0\n\t\t\t},\n\t\t\ttriggerProps: { width: v.width ?? \"fill\" },\n\t\t\tcloseOnOutside: !0,\n\t\t\tcloseOnEscape: !0,\n\t\t\tdisabled: v.disabled === !0,\n\t\t\ttheme: { Popover: {\n\t\t\t\tbackgroundColor: 0,\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tborderWidth: 0,\n\t\t\t\tcornerRadius: 0,\n\t\t\t\tpadding: 0,\n\t\t\t\tgap: 0\n\t\t\t} },\n\t\t\tchildren: de\n\t\t})\n\t});\n}\n//#endregion\nexport { v as Dropdown };\n","import { KNOWN_COMPONENTS as e, PRIMITIVE_NODES as t, getGlobalThemeDefaults as n, jsx as r, mergeThemes as i, resolveComponentTheme as a, useTheme as o } from \"@number10/jsx-core\";\n//#region src/Image.tsx\nfunction s(s) {\n\tlet { theme: c, key: l, ...u } = s, d = o(), f = c ? i(d ?? {}, c) : d, { props: p, nestedTheme: m } = a({\n\t\tcomponentName: \"Image\",\n\t\tglobalTheme: n(),\n\t\tlocalTheme: f,\n\t\tknownComponents: e\n\t}), h = {\n\t\tkey: l,\n\t\ttheme: m\n\t};\n\th.texture = u.texture;\n\tfor (let [e, t] of Object.entries(u)) t !== void 0 && (h[e] = t);\n\treturn h.displayWidth === void 0 && typeof h.width == \"number\" && (h.displayWidth = h.width), h.displayHeight === void 0 && typeof h.height == \"number\" && (h.displayHeight = h.height), h.alpha === void 0 && p.alpha !== void 0 && (h.alpha = p.alpha), r(t.Image, h);\n}\n//#endregion\nexport { s as Image };\n","import { Image as e } from \"./Image.js\";\nimport { useEffect as t, useSVGTexture as n, useState as r } from \"@number10/jsx-core\";\nimport { jsx as i } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Icon.tsx\nfunction a(a) {\n\tlet { type: o, loader: s, size: c = 32, ...l } = a, [u, d] = r(null);\n\tt(() => {\n\t\tlet e = !1;\n\t\tif (o == null) {\n\t\t\td(null);\n\t\t\treturn;\n\t\t}\n\t\treturn d((e) => e?.type === o ? e : null), s(o).then((t) => {\n\t\t\te || d({\n\t\t\t\ttype: o,\n\t\t\t\tsvg: t\n\t\t\t});\n\t\t}).catch((t) => {\n\t\t\te || console.error(`Failed to load icon ${o}:`, t);\n\t\t}), () => {\n\t\t\te = !0;\n\t\t};\n\t}, [o, s]);\n\tlet f = (u?.type === o ? u : null)?.svg ?? null, p = o == null ? \"\" : `icon-${o}-${c}`;\n\treturn /* @__PURE__ */ i(e, {\n\t\ttexture: f && n(p, f, c, c) ? p : \"\",\n\t\twidth: c,\n\t\theight: c,\n\t\t...l\n\t});\n}\nfunction o(e) {\n\treturn function(t) {\n\t\treturn /* @__PURE__ */ i(a, {\n\t\t\t...t,\n\t\t\tloader: e\n\t\t});\n\t};\n}\nfunction s(e, n) {\n\tlet [i, a] = r(null);\n\treturn t(() => {\n\t\tlet t = !1;\n\t\treturn a((t) => t?.type === e ? t : null), n(e).then((n) => {\n\t\t\tt || a({\n\t\t\t\ttype: e,\n\t\t\t\tsvg: n\n\t\t\t});\n\t\t}).catch((n) => {\n\t\t\tt || console.error(`Failed to load icon ${e}:`, n);\n\t\t}), () => {\n\t\t\tt = !0;\n\t\t};\n\t}, [e, n]), i?.type === e;\n}\n//#endregion\nexport { a as Icon, o as createIconComponent, s as useIconPreload };\n","import { VectorDrawContent as e } from \"./primitives/VectorDrawContent.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { createTween as n, useRef as r, useState as i, useSurface as a } from \"@number10/jsx-core\";\nimport { jsx as o, jsxs as s } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Joystick.tsx\nfunction c(t, n) {\n\tfunction r(t, n = 65280) {\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(n, .1).fillCircle(0, 0, t + 10), e.fillStyle(0, .4).fillCircle(0, 0, t), e.lineStyle(3, n, 1).strokeCircle(0, 0, t), e.lineStyle(1, n, .5).strokeCircle(0, 0, t - 5);\n\t\t\tfor (let r = 0; r < 4; r++) {\n\t\t\t\tlet i = r * 90 * Math.PI / 180;\n\t\t\t\te.lineStyle(2, n, .7).lineBetween(Math.cos(i) * (t - 15), Math.sin(i) * (t - 15), Math.cos(i) * (t - 5), Math.sin(i) * (t - 5));\n\t\t\t}\n\t\t} });\n\t}\n\tfunction i(t, n = 65280) {\n\t\tlet r = t * .4;\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(n, .2).fillCircle(0, 0, r + 5), e.fillStyle(n, .8).fillCircle(0, 0, r), e.lineStyle(2, n, 1).strokeCircle(0, 0, r), e.lineStyle(2, 0, .8), e.moveTo(0, -r * .6).lineTo(0, r * .6), e.moveTo(-r * .6, 0).lineTo(r * .6, 0), e.strokePath();\n\t\t} });\n\t}\n\tfunction a(t, n = 16711680) {\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(0, .3).fillCircle(0, 0, t);\n\t\t\tfor (let r = 0; r < 3; r++) e.lineStyle(2, n, .6 - r * .15).strokeCircle(0, 0, t - r * 20);\n\t\t\te.lineStyle(1, n, .5), e.moveTo(-t, 0).lineTo(t, 0), e.moveTo(0, -t).lineTo(0, t), e.strokePath(), e.fillStyle(n, .8).fillCircle(0, 0, 5);\n\t\t} });\n\t}\n\tfunction s(t, n = 16711680) {\n\t\tlet r = t * .35;\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(n, .7).fillCircle(0, 0, r), e.fillStyle(16777215, .9).fillCircle(0, 0, r * .5), e.fillStyle(n, 1).fillCircle(0, 0, r * .2), e.lineStyle(3, n, 1), e.beginPath(), e.moveTo(0, -r).lineTo(r * .3, -r * .6).lineTo(-r * .3, -r * .6), e.closePath().fillPath();\n\t\t} });\n\t}\n\tfunction c(t, n = 16777215) {\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(n, .15).fillCircle(0, 0, t), e.fillStyle(n, .3).fillCircle(-t * .3, -t * .3, t * .4), e.lineStyle(2, n, .5).strokeCircle(0, 0, t), e.lineStyle(1, n, .3).strokeCircle(0, 0, t - 3);\n\t\t} });\n\t}\n\tfunction l(t, n = 16777215) {\n\t\tlet r = t * .4;\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(0, .2).fillCircle(r * .1, r * .1, r), e.fillStyle(n, .4).fillCircle(0, 0, r), e.fillStyle(n, .6).fillCircle(-r * .3, -r * .3, r * .4), e.lineStyle(2, n, .7).strokeCircle(0, 0, r);\n\t\t} });\n\t}\n\tfunction u(t, n = 65280) {\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(1710618, .8).fillCircle(0, 0, t), e.lineStyle(1, n, .3);\n\t\t\tfor (let n = -t; n <= t; n += 20) e.moveTo(-t, n).lineTo(t, n), e.moveTo(n, -t).lineTo(n, t);\n\t\t\te.strokePath(), e.lineStyle(2, n, .6), e.strokeCircle(0, 0, t), e.strokeCircle(0, 0, t * .66), e.strokeCircle(0, 0, t * .33);\n\t\t\tlet r = [-t * .7, t * .7];\n\t\t\te.lineStyle(3, n, .8), r.forEach((t) => r.forEach((n) => {\n\t\t\t\te.moveTo(t - 10, n).lineTo(t + 10, n), e.moveTo(t, n - 10).lineTo(t, n + 10);\n\t\t\t})), e.strokePath();\n\t\t} });\n\t}\n\tfunction d(t, n = 65280) {\n\t\tlet r = t * .3;\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(n, .9).fillCircle(0, 0, r), e.fillStyle(0, 1), e.beginPath(), e.moveTo(0, -r).lineTo(r * .5, r * .3).lineTo(-r * .5, r * .3), e.closePath().fillPath(), e.lineStyle(2, 0, .8).strokeCircle(0, 0, r);\n\t\t} });\n\t}\n\tfunction f(t, n = 65280) {\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.fillStyle(0, .25).lineStyle(1, n), e.fillCircle(0, 0, t).strokeCircle(0, 0, t);\n\t\t} });\n\t}\n\tfunction p(t, n = 65280) {\n\t\tlet r = t * .2;\n\t\treturn /* @__PURE__ */ o(e, { onDraw: (e) => {\n\t\t\te.lineStyle(2, 0, 1), e.moveTo(0, -r).lineTo(0, r), e.moveTo(-r, 0).lineTo(r, 0), e.strokePath(), e.lineStyle(2, n, .75).strokeCircle(0, 0, r * 1.1);\n\t\t} });\n\t}\n\tlet m = t == null ? \"default\" : t.theme, h = (t == null ? 65280 : t.tint) ?? 65280;\n\tswitch (m) {\n\t\tcase \"neon\": return {\n\t\t\tbase: r(n, h),\n\t\t\tthumb: i(n, h),\n\t\t\trotateThumb: !1\n\t\t};\n\t\tcase \"target\": return {\n\t\t\tbase: a(n, h),\n\t\t\tthumb: s(n, h),\n\t\t\trotateThumb: !0\n\t\t};\n\t\tcase \"glass\": return {\n\t\t\tbase: c(n, h),\n\t\t\tthumb: l(n, h),\n\t\t\trotateThumb: !1\n\t\t};\n\t\tcase \"military\": return {\n\t\t\tbase: u(n, h),\n\t\t\tthumb: d(n, h),\n\t\t\trotateThumb: !0\n\t\t};\n\t\tdefault: return {\n\t\t\tbase: f(n, h),\n\t\t\tthumb: p(n, h),\n\t\t\trotateThumb: !1\n\t\t};\n\t}\n}\nfunction l(e) {\n\tlet [l, u] = i({\n\t\tx: 0,\n\t\ty: 0\n\t}), [d, f] = i(0), [p, m] = i({\n\t\twidth: 0,\n\t\theight: 0\n\t}), h = r(!1), g = r(null), _ = r(!1), v = r(null), y = a()?.scheduler, b = typeof e.width == \"number\" ? e.width : 200, x = typeof e.height == \"number\" ? e.height : 200, S = {\n\t\tx: b / 2,\n\t\ty: x / 2\n\t}, C = Math.min(b, x) / 2;\n\tp.width === 0 && Promise.resolve().then(() => {\n\t\tm({\n\t\t\twidth: b,\n\t\t\theight: x\n\t\t}), u(S);\n\t});\n\tlet w = e.base != null && e.thumb ? {\n\t\tbase: e.base,\n\t\tthumb: e.thumb,\n\t\trotateThumb: e.rotateThumb ?? !1\n\t} : c(e.joystickTheme, C), T = (e) => {\n\t\tlet t = e;\n\t\treturn t ? t.pointerId ?? t.id ?? null : null;\n\t}, E = (t) => {\n\t\tt.stopPropagation();\n\t\tlet r = T(t.pointer);\n\t\tif (_.current && r !== v.current) return;\n\t\tif (t.state === \"start\" && (h.current = !1, _.current = !0, v.current = r), t.state === \"end\") {\n\t\t\t_.current = !1, v.current = null, g.current &&= (g.current.stop(), null), y ? g.current = n({\n\t\t\t\tx: l.x,\n\t\t\t\ty: l.y,\n\t\t\t\tangle: d\n\t\t\t}, {\n\t\t\t\tto: {\n\t\t\t\t\tx: S.x,\n\t\t\t\t\ty: S.y,\n\t\t\t\t\tangle: 0\n\t\t\t\t},\n\t\t\t\tduration: 150,\n\t\t\t\tonUpdate: (e) => {\n\t\t\t\t\tu({\n\t\t\t\t\t\tx: e.x,\n\t\t\t\t\t\ty: e.y\n\t\t\t\t\t}), f(e.angle ?? 0);\n\t\t\t\t},\n\t\t\t\tonComplete: () => {\n\t\t\t\t\tg.current = null, e.onMove?.(!1, 0, 0);\n\t\t\t\t}\n\t\t\t}, y) : (u(S), f(0), e.onMove?.(!1, 0, 0));\n\t\t\treturn;\n\t\t}\n\t\tif (!_.current) return;\n\t\tlet i = t.localX - S.x, a = t.localY - S.y, o = Math.sqrt(i * i + a * a), s = C * .6, c = Math.min(o, s), p = Math.atan2(a, i), m = (p * 180 / Math.PI + 360) % 360, b = o > 0 ? Math.min(o / s, 1) : 0;\n\t\tu({\n\t\t\tx: S.x + (o > 0 ? c / o * i : 0),\n\t\t\ty: S.y + (o > 0 ? c / o * a : 0)\n\t\t}), (e.rotateThumb ?? w.rotateThumb) && f(p);\n\t\tlet x = e.minForce ?? .1;\n\t\tb > x && (h.current = !0), e.onMove?.(b > x || h.current, m, b);\n\t};\n\treturn /* @__PURE__ */ s(t, {\n\t\twidth: e.width,\n\t\theight: e.height,\n\t\tdirection: \"stack\",\n\t\tenableGestures: !0,\n\t\tonTouchMove: E,\n\t\tonTouchOutside: E,\n\t\tchildren: [/* @__PURE__ */ o(t, {\n\t\t\tx: S.x,\n\t\t\ty: S.y,\n\t\t\tchildren: w.base\n\t\t}), /* @__PURE__ */ o(t, {\n\t\t\tx: l.x,\n\t\t\ty: l.y,\n\t\t\t...w.rotateThumb ? { rotation: d } : {},\n\t\t\tchildren: w.thumb\n\t\t})]\n\t});\n}\n//#endregion\nexport { l as Joystick };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { ScrollView as n } from \"./ScrollView.js\";\nimport { KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, mergeThemes as a, resolveComponentTheme as o, useEffect as s, useState as c, useTheme as l } from \"@number10/jsx-core\";\nimport { jsx as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ListBox.tsx\nfunction d(e, t) {\n\tif (t !== void 0) return e.find((e) => e.value === t);\n}\nfunction f(e, t, n) {\n\tif (t !== void 0) return d(e, t)?.value ?? \"\";\n\tlet r = d(e, n);\n\treturn r ? r.value : e.find((e) => !e.disabled)?.value ?? e[0]?.value ?? \"\";\n}\nfunction p(...e) {\n\treturn Object.assign({}, ...e.filter(Boolean));\n}\nfunction m(m) {\n\tlet { items: h, value: g, defaultValue: _, onChange: v, renderItem: y, hoverable: b = !1, scrollViewProps: x, labels: S, disabled: C = !1, maxVisibleItems: w, theme: T, alpha: E, ...D } = m, O = l(), k = T ? a(O ?? {}, T) : O, { props: A, nestedTheme: j } = o({\n\t\tcomponentName: \"ListBox\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: k,\n\t\tknownComponents: r\n\t}), [M, N] = c(void 0), P = g !== void 0, [F, I] = c(f(h, g, _)), L = P ? f(h, g) : f(h, F);\n\ts(() => {\n\t\t!P && F !== L && I(L);\n\t}, [\n\t\tP,\n\t\tF,\n\t\tL\n\t]);\n\tlet R = {\n\t\t...A.labels ?? {},\n\t\t...S ?? {}\n\t}, z = p({\n\t\tcolor: \"#e0e7ff\",\n\t\tfontSize: \"14px\"\n\t}, A.textStyle), B = p(z, A.selectedTextStyle), V = p(z, A.disabledTextStyle), H = A.emptyStyle ?? {\n\t\tcolor: \"#6b7280\",\n\t\tfontSize: \"14px\"\n\t}, U = C ? A.disabledAlpha ?? .5 : E, W = (e) => {\n\t\tlet t = d(h, e);\n\t\t!t || t.disabled || C || (P || I(e), v?.(e));\n\t}, G = A.itemHeight ?? 36, K = A.itemGap ?? 1, q = h.length * (G + K) - (h.length > 0 ? K : 0), J = w && w > 0 ? Math.min(q, w * (G + K)) : q, Y = (n, r) => {\n\t\tlet i = n.value === L, o = C || !!n.disabled, s = b ? M === n.value : !1, c = !o, l = p({ height: G }, A.itemStyle ?? {}, b && s && !i && !o ? A.itemHoverStyle ?? {} : {}, i ? A.itemSelectedStyle ?? {} : {}, o ? A.itemDisabledStyle ?? {} : {}), d = o ? V : i ? B : z, f = a(j, { Text: d ? { style: d } : {} }), m = y?.({\n\t\t\titem: n,\n\t\t\tselected: i,\n\t\t\tdisabled: o,\n\t\t\thovered: s,\n\t\t\tindex: r,\n\t\t\t...d ? { textStyle: d } : {}\n\t\t}), h = b && c && (A.itemHoverStyle || A.itemSelectedStyle) ? {\n\t\t\tonHoverStart: () => N(n.value),\n\t\t\tonHoverEnd: () => N((e) => e === n.value ? void 0 : e)\n\t\t} : {};\n\t\treturn /* @__PURE__ */ u(t, {\n\t\t\twidth: \"fill\",\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tpadding: A.itemPadding,\n\t\t\tcornerRadius: A.itemCornerRadius,\n\t\t\t...l,\n\t\t\tenableGestures: c,\n\t\t\tonTouch: () => W(n.value),\n\t\t\t...h,\n\t\t\ttheme: f,\n\t\t\tchildren: m ?? /* @__PURE__ */ u(e, {\n\t\t\t\ttext: n.label ?? n.value,\n\t\t\t\t...d ? { style: d } : {}\n\t\t\t})\n\t\t}, n.value);\n\t}, X = R.empty ?? \"No items\";\n\treturn /* @__PURE__ */ u(t, {\n\t\t...D,\n\t\t...A,\n\t\t...U === void 0 ? {} : { alpha: U },\n\t\ttheme: j,\n\t\toverflow: \"hidden\",\n\t\tchildren: h.length === 0 ? /* @__PURE__ */ u(t, {\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\theight: G * 3,\n\t\t\tchildren: /* @__PURE__ */ u(e, {\n\t\t\t\ttext: X,\n\t\t\t\tstyle: H\n\t\t\t})\n\t\t}) : /* @__PURE__ */ u(n, {\n\t\t\theight: J > 0 ? J : void 0,\n\t\t\twidth: \"fill\",\n\t\t\ttheme: j,\n\t\t\t...x,\n\t\t\tchildren: /* @__PURE__ */ u(t, {\n\t\t\t\tdirection: \"column\",\n\t\t\t\tgap: K,\n\t\t\t\twidth: \"fill\",\n\t\t\t\ttheme: j,\n\t\t\t\tchildren: h.map(Y)\n\t\t\t})\n\t\t})\n\t});\n}\n//#endregion\nexport { m as ListBox, d as findListBoxItem, f as resolveListBoxValue };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Button as n } from \"./Button.js\";\nimport { ContextMenu as r } from \"./Popover.js\";\nimport { KNOWN_COMPONENTS as i, getGlobalThemeDefaults as a, mergeThemes as o, resolveComponentTheme as s, useState as c, useTheme as l } from \"@number10/jsx-core\";\nimport { jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/MenuButton.tsx\nfunction f(f) {\n\tlet { items: p, onSelect: m, children: h, label: g, icon: _, trigger: v, open: y, defaultOpen: b, onOpenChange: x, placement: S, width: C, buttonVariant: w, buttonSize: T, buttonProps: E, disabled: D = !1, theme: O, ...k } = f, A = l(), j = O ? o(A ?? {}, O) : A, { props: M, nestedTheme: N } = s({\n\t\tcomponentName: \"MenuButton\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: j,\n\t\tknownComponents: i\n\t}), [P, F] = c(b ?? !1), I = y !== void 0, L = I ? y : P, R = (e) => {\n\t\tI || F(e), x?.(e);\n\t}, z = (e) => {\n\t\tm?.(e);\n\t}, B = () => {\n\t\tif (v) return v({\n\t\t\tisOpen: L,\n\t\t\tdisabled: D\n\t\t});\n\t\tif (h !== void 0) return /* @__PURE__ */ u(n, {\n\t\t\t...E,\n\t\t\tvariant: w ?? M.buttonVariant ?? \"secondary\",\n\t\t\tsize: T ?? M.buttonSize ?? \"medium\",\n\t\t\tdisabled: D,\n\t\t\ttheme: N,\n\t\t\tchildren: h\n\t\t});\n\t\tlet r = _ !== void 0, i = g !== void 0;\n\t\treturn /* @__PURE__ */ u(n, {\n\t\t\t...E,\n\t\t\tvariant: w ?? M.buttonVariant ?? \"secondary\",\n\t\t\tsize: T ?? M.buttonSize ?? \"medium\",\n\t\t\tdisabled: D,\n\t\t\tlabel: r ? void 0 : g,\n\t\t\ttheme: N,\n\t\t\tchildren: r && /* @__PURE__ */ d(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tgap: M.iconGap ?? 8,\n\t\t\t\tchildren: [_, i && /* @__PURE__ */ u(e, { text: String(g) })]\n\t\t\t})\n\t\t});\n\t}, V = C ?? M.width;\n\treturn /* @__PURE__ */ u(r, {\n\t\t...k,\n\t\titems: p,\n\t\tonSelect: z,\n\t\tisOpen: L,\n\t\tonOpenChange: R,\n\t\tplacement: S ?? M.placement ?? \"bottom-start\",\n\t\t...V === void 0 ? {} : { width: V },\n\t\tdisabled: D,\n\t\ttheme: N,\n\t\ttrigger: B()\n\t});\n}\n//#endregion\nexport { f as MenuButton };\n","import { Image as e } from \"./primitives/Image.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { PRIMITIVE_NODES as n, computeSourceSlices as r, createElement as i, getCurrentOrThrow as a, jsx as o, useEffect as s, useMemo as c, useState as l } from \"@number10/jsx-core\";\nimport { jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/NineSlice.tsx\nfunction f(e, t, n, i, a, o) {\n\treturn r(e, t, n, i, a, o).map((e) => ({ ...e }));\n}\nfunction p() {\n\treturn a().surface?.capabilities?.has(\"nineslice\") === !0;\n}\nfunction m(e, t = !0) {\n\treturn !(e === \"fallback\" || !p() || !t);\n}\nfunction h(e, t, r) {\n\tlet i = {\n\t\t...e,\n\t\t...t === void 0 ? {} : { key: t },\n\t\t...r === void 0 ? {} : { theme: r }\n\t};\n\treturn o(n.NineSlice, i);\n}\nfunction g(t, n, r, i, a, o, s, c, l, d, f) {\n\tif (m(i)) return h({\n\t\ttexture: t,\n\t\tframe: n,\n\t\ttint: r,\n\t\twidth: o,\n\t\theight: s,\n\t\tleftWidth: c,\n\t\trightWidth: l,\n\t\ttopHeight: d,\n\t\tbottomHeight: f,\n\t\tdepth: 0\n\t});\n\tlet p = Math.max(0, o - c - l), g = Math.max(0, s - d - f), _ = d === 0 && f === 0, v = (i, a, o, s, c, l) => /* @__PURE__ */ u(e, {\n\t\theadless: !0,\n\t\tdepth: 0,\n\t\tx: o,\n\t\ty: s,\n\t\toriginX: 0,\n\t\toriginY: 0,\n\t\ttexture: t,\n\t\tframe: n,\n\t\ttint: r,\n\t\tsourceRect: a,\n\t\twidth: c,\n\t\theight: l,\n\t\tdisplayWidth: c,\n\t\tdisplayHeight: l\n\t}, i);\n\tif (_) {\n\t\tlet e = a[3], t = a[4], n = a[5];\n\t\treturn [\n\t\t\tv(\"l\", e, 0, 0, c, s),\n\t\t\tv(\"c\", t, c, 0, p, s),\n\t\t\tv(\"r\", n, o - l, 0, l, s)\n\t\t];\n\t}\n\tlet y = a[0], b = a[1], x = a[2], S = a[3], C = a[4], w = a[5], T = a[6], E = a[7], D = a[8];\n\treturn [\n\t\tv(\"tl\", y, 0, 0, c, d),\n\t\tv(\"t\", b, c, 0, p, d),\n\t\tv(\"tr\", x, o - l, 0, l, d),\n\t\tv(\"l\", S, 0, d, c, g),\n\t\tv(\"c\", C, c, d, p, g),\n\t\tv(\"r\", w, o - l, d, l, g),\n\t\tv(\"bl\", T, 0, s - f, c, f),\n\t\tv(\"b\", E, c, s - f, p, f),\n\t\tv(\"br\", D, o - l, s - f, l, f)\n\t];\n}\nfunction _(e, t) {\n\tlet n = a().surface?.textureLoader, [r, i] = l(null);\n\treturn s(() => {\n\t\tif (!n) return;\n\t\tlet r;\n\t\tif (t) {\n\t\t\tlet i = n.getFrameRect(e, t);\n\t\t\ti && (r = {\n\t\t\t\tw: i.width,\n\t\t\t\th: i.height\n\t\t\t});\n\t\t}\n\t\tif (!r) {\n\t\t\tlet t = n.getTextureSize(e);\n\t\t\tt && (r = {\n\t\t\t\tw: t.width,\n\t\t\t\th: t.height\n\t\t\t});\n\t\t}\n\t\ti(r ?? null);\n\t}, [\n\t\te,\n\t\tt,\n\t\tn\n\t]), r;\n}\nfunction v(e) {\n\tlet { texture: t, frame: n, leftWidth: r, rightWidth: i, topHeight: a, bottomHeight: o, width: s, height: c, tint: l, theme: u, key: d } = e;\n\treturn h({\n\t\ttexture: t,\n\t\tframe: n,\n\t\ttint: l,\n\t\tleftWidth: r,\n\t\trightWidth: i,\n\t\ttopHeight: a,\n\t\tbottomHeight: o,\n\t\twidth: s,\n\t\theight: c\n\t}, d, u);\n}\nfunction y(n) {\n\tif (m(n.renderMode, n.width !== void 0 && n.height !== void 0)) return /* @__PURE__ */ u(v, { ...n });\n\tlet { texture: r, frame: a, leftWidth: o, rightWidth: s, topHeight: l, bottomHeight: p, width: h, height: g, tint: y, theme: b, key: x } = n, S = l === 0 && p === 0, C = _(r, a), w = c(() => C ? f(C.w, C.h, o, s, l, p) : null, [\n\t\tC,\n\t\to,\n\t\ts,\n\t\tl,\n\t\tp\n\t]);\n\tif (!w) return /* @__PURE__ */ u(t, {\n\t\twidth: h,\n\t\theight: g,\n\t\ttheme: b\n\t}, x);\n\tlet T = typeof h == \"number\" ? h : void 0, E = typeof g == \"number\" ? g : void 0, D = T == null ? void 0 : T - o - s, O = E == null ? void 0 : E - l - p, k = (e, t, n) => ({\n\t\ttexture: r,\n\t\tframe: a,\n\t\ttint: y,\n\t\tsourceRect: e,\n\t\t...t == null ? {} : { displayWidth: t },\n\t\t...n == null ? {} : { displayHeight: n }\n\t});\n\tif (S) {\n\t\tlet n = w[3], r = w[4], a = w[5];\n\t\treturn /* @__PURE__ */ d(t, {\n\t\t\tdirection: \"row\",\n\t\t\twidth: h,\n\t\t\theight: g,\n\t\t\ttheme: b,\n\t\t\tchildren: [\n\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t...k(n, o, E),\n\t\t\t\t\twidth: o,\n\t\t\t\t\theight: \"100%\",\n\t\t\t\t\tkey: \"l\"\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t...k(r, D, E),\n\t\t\t\t\tflex: 1,\n\t\t\t\t\theight: \"100%\",\n\t\t\t\t\tkey: \"c\"\n\t\t\t\t}),\n\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t...k(a, s, E),\n\t\t\t\t\twidth: s,\n\t\t\t\t\theight: \"100%\",\n\t\t\t\t\tkey: \"r\"\n\t\t\t\t})\n\t\t\t]\n\t\t}, x);\n\t}\n\tlet A = w[0], j = w[1], M = w[2], N = w[3], P = w[4], F = w[5], I = w[6], L = w[7], R = w[8];\n\treturn /* @__PURE__ */ d(t, {\n\t\tdirection: \"column\",\n\t\twidth: h,\n\t\theight: g,\n\t\ttheme: b,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ d(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: l,\n\t\t\t\tchildren: [\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(A, o, l),\n\t\t\t\t\t\twidth: o,\n\t\t\t\t\t\theight: l,\n\t\t\t\t\t\tkey: \"tl\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(j, D, l),\n\t\t\t\t\t\tflex: 1,\n\t\t\t\t\t\theight: l,\n\t\t\t\t\t\tkey: \"t\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(M, s, l),\n\t\t\t\t\t\twidth: s,\n\t\t\t\t\t\theight: l,\n\t\t\t\t\t\tkey: \"tr\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}, \"row-t\"),\n\t\t\t/* @__PURE__ */ d(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\twidth: \"fill\",\n\t\t\t\tflex: 1,\n\t\t\t\tchildren: [\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(N, o, O),\n\t\t\t\t\t\twidth: o,\n\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\tkey: \"l\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(P, D, O),\n\t\t\t\t\t\tflex: 1,\n\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\tkey: \"c\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(F, s, O),\n\t\t\t\t\t\twidth: s,\n\t\t\t\t\t\theight: \"100%\",\n\t\t\t\t\t\tkey: \"r\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}, \"row-m\"),\n\t\t\t/* @__PURE__ */ d(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: p,\n\t\t\t\tchildren: [\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(I, o, p),\n\t\t\t\t\t\twidth: o,\n\t\t\t\t\t\theight: p,\n\t\t\t\t\t\tkey: \"bl\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(L, D, p),\n\t\t\t\t\t\tflex: 1,\n\t\t\t\t\t\theight: p,\n\t\t\t\t\t\tkey: \"b\"\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ i(e, {\n\t\t\t\t\t\t...k(R, s, p),\n\t\t\t\t\t\twidth: s,\n\t\t\t\t\t\theight: p,\n\t\t\t\t\t\tkey: \"br\"\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}, \"row-b\")\n\t\t]\n\t}, x);\n}\nfunction b(e) {\n\tlet { texture: n, frame: r, leftWidth: i, rightWidth: a, topHeight: o, bottomHeight: s, width: l, height: p, tint: m, children: h, renderMode: v, alignItems: y = \"start\", justifyContent: b = \"start\", gap: x, padding: S, theme: C, key: w } = e, T = _(n, r), E = c(() => T ? f(T.w, T.h, i, a, o, s) : null, [\n\t\tT,\n\t\ti,\n\t\ta,\n\t\to,\n\t\ts\n\t]), D = {\n\t\tleft: i + (S?.left ?? 0),\n\t\tright: a + (S?.right ?? 0),\n\t\ttop: o + (S?.top ?? 0),\n\t\tbottom: s + (S?.bottom ?? 0)\n\t};\n\treturn /* @__PURE__ */ d(t, {\n\t\tdirection: \"stack\",\n\t\twidth: l,\n\t\theight: p,\n\t\ttheme: C,\n\t\tchildren: [E ? g(n, r, m, v, E, l, p, i, a, o, s) : null, /* @__PURE__ */ u(t, {\n\t\t\tdirection: \"column\",\n\t\t\tdepth: 1,\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\",\n\t\t\talignItems: y,\n\t\t\tjustifyContent: b,\n\t\t\tgap: x,\n\t\t\tpadding: D,\n\t\t\tchildren: h\n\t\t})]\n\t}, w);\n}\nfunction x(e) {\n\treturn e.children === void 0 ? /* @__PURE__ */ u(y, {\n\t\ttexture: e.texture,\n\t\tframe: e.frame,\n\t\tleftWidth: e.leftWidth,\n\t\trightWidth: e.rightWidth,\n\t\ttopHeight: e.topHeight ?? 0,\n\t\tbottomHeight: e.bottomHeight ?? 0,\n\t\twidth: e.width,\n\t\theight: e.height,\n\t\ttint: e.tint,\n\t\trenderMode: e.renderMode,\n\t\ttheme: e.theme\n\t}, e.key) : /* @__PURE__ */ u(b, {\n\t\ttexture: e.texture,\n\t\tframe: e.frame,\n\t\tleftWidth: e.leftWidth,\n\t\trightWidth: e.rightWidth,\n\t\ttopHeight: e.topHeight ?? 0,\n\t\tbottomHeight: e.bottomHeight ?? 0,\n\t\twidth: e.width,\n\t\theight: e.height,\n\t\ttint: e.tint,\n\t\trenderMode: e.renderMode,\n\t\tchildren: e.children,\n\t\talignItems: e.alignItems,\n\t\tjustifyContent: e.justifyContent,\n\t\tgap: e.gap,\n\t\tpadding: e.padding,\n\t\ttheme: e.theme\n\t}, e.key);\n}\n//#endregion\nexport { x as NineSlice };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { NineSlice as t } from \"./NineSlice.js\";\nimport { applyEffect as n, createElement as r, resolveEffect as i, useEffect as a, useRef as o, useState as s } from \"@number10/jsx-core\";\nimport { jsx as c } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/NineSliceButton.tsx\nfunction l(l) {\n\tlet { texture: u, frame: d, leftWidth: f, rightWidth: p, topHeight: m = 0, bottomHeight: h = 0, width: g, height: _, tint: v, onClick: y, disabled: b, children: x, alignItems: S = \"center\", justifyContent: C = \"center\", gap: w, padding: T, renderMode: E, theme: D, key: O, effect: k, effectConfig: A } = l, j = o(null), [M, N] = s(!1);\n\ta(() => {\n\t\tN(!0);\n\t}, []);\n\tlet P = b ? void 0 : (e) => {\n\t\tlet t = i({\n\t\t\teffect: k,\n\t\t\teffectConfig: A\n\t\t}, {});\n\t\tn(j.current, t.effect, t.effectConfig), y?.();\n\t}, F = P ? { onTouch: P } : {}, I = x != null && x !== !1;\n\treturn /* @__PURE__ */ r(e, {\n\t\tref: j,\n\t\tdirection: \"stack\",\n\t\twidth: g,\n\t\theight: _,\n\t\tvisible: M,\n\t\tenableGestures: !b,\n\t\t...F,\n\t\tkey: O,\n\t\ttheme: D\n\t}, I ? /* @__PURE__ */ c(t, {\n\t\ttexture: u,\n\t\tframe: d,\n\t\tleftWidth: f,\n\t\trightWidth: p,\n\t\ttopHeight: m,\n\t\tbottomHeight: h,\n\t\twidth: g,\n\t\theight: _,\n\t\ttint: v,\n\t\trenderMode: E,\n\t\talignItems: S,\n\t\tjustifyContent: C,\n\t\tgap: w,\n\t\tpadding: T,\n\t\ttheme: D,\n\t\tchildren: x\n\t}) : /* @__PURE__ */ c(t, {\n\t\ttexture: u,\n\t\tframe: d,\n\t\tleftWidth: f,\n\t\trightWidth: p,\n\t\ttopHeight: m,\n\t\tbottomHeight: h,\n\t\twidth: g,\n\t\theight: _,\n\t\ttint: v,\n\t\trenderMode: E,\n\t\ttheme: D\n\t}));\n}\n//#endregion\nexport { l as NineSliceButton };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Button as r } from \"./Button.js\";\nimport { KNOWN_COMPONENTS as i, getGlobalThemeDefaults as a, mergeThemes as o, resolveComponentTheme as s, useEffect as c, useRef as l, useState as u, useTheme as d } from \"@number10/jsx-core\";\nimport { Fragment as f, jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/NumberInput.tsx\nvar ee = {\n\tdecrement: \"-\",\n\tincrement: \"+\",\n\tvalue: \"Value\"\n};\nfunction h(e) {\n\treturn e === \"decrement\" ? \"left\" : \"right\";\n}\nfunction g(e, t, n) {\n\tlet r = n / 2, i = n * .32, a = n * .68, o = n * .3, s = n * .7;\n\te.beginPath(), t === \"left\" ? e.moveTo(a, o).lineTo(i, r).lineTo(a, s) : t === \"right\" ? e.moveTo(i, o).lineTo(a, r).lineTo(i, s) : t === \"up\" ? e.moveTo(i, s).lineTo(r, o).lineTo(a, s) : e.moveTo(i, o).lineTo(r, s).lineTo(a, o), e.strokePath();\n}\nfunction _(e, t, n) {\n\tlet r = n / 2, i = n * .3, a = n * .7;\n\te.beginPath().moveTo(i, r).lineTo(a, r).strokePath(), t === \"increment\" && e.beginPath().moveTo(r, i).lineTo(r, a).strokePath();\n}\nfunction v(e) {\n\tlet { variant: n = \"sign\", action: r = \"increment\", direction: i, size: a = 24, color: o = 16777215, activeColor: s = o, disabled: c = !1, framed: l = !1, backgroundAlpha: u = .12, borderAlpha: d = 1, ...f } = e, m = i ?? h(r);\n\treturn /* @__PURE__ */ p(t, {\n\t\t...f,\n\t\twidth: a,\n\t\theight: a,\n\t\tdependencies: [\n\t\t\tn,\n\t\t\tr,\n\t\t\tm,\n\t\t\ta,\n\t\t\to,\n\t\t\ts,\n\t\t\tc,\n\t\t\tl,\n\t\t\tu,\n\t\t\td\n\t\t],\n\t\tonDraw: (e) => {\n\t\t\tlet t = c ? .45 : 1, i = Math.max(3, Math.round(a * .16)), f = Math.max(2, Math.round(a * .12)), p = c ? o : s;\n\t\t\te.clear(), l && e.fillStyle(p, u * t).lineStyle(2, p, d * t).fillRoundedRect(i, i, a - i * 2, a - i * 2, a * .18).strokeRoundedRect(i, i, a - i * 2, a - i * 2, a * .18), e.lineStyle(f, p, t), n === \"chevron\" ? g(e, m, a) : _(e, r, a);\n\t\t}\n\t});\n}\nfunction y(e) {\n\treturn typeof e == \"number\" && Number.isFinite(e);\n}\nfunction b(e, t) {\n\tlet n = y(e) ? e : -Infinity, r = y(t) ? t : Infinity;\n\treturn {\n\t\tmin: Math.min(n, r),\n\t\tmax: Math.max(n, r)\n\t};\n}\nfunction x(e) {\n\tif (!Number.isFinite(e) || Number.isInteger(e)) return 0;\n\tlet [, t = \"\"] = e.toString().split(\".\");\n\treturn t.length;\n}\nfunction S(e = 1, t) {\n\treturn y(t) && t >= 0 ? Math.floor(t) : x(Math.abs(e));\n}\nfunction C(e, t = {}) {\n\tlet { min: n, max: r } = b(t.min, t.max), i = Number.isFinite(n) ? n : Number.isFinite(r) ? r : 0, a = y(e) ? e : i, o = Math.max(n, Math.min(r, a)), s = 10 ** S(t.step, t.precision);\n\treturn Math.round(o * s) / s;\n}\nfunction w(e, t, n = {}) {\n\treturn C(e + (y(n.step) && n.step > 0 ? n.step : 1) * t, n);\n}\nfunction T(t) {\n\tlet { value: h, defaultValue: g, onChange: _, min: v, max: y, step: b = 1, precision: x, label: S, labelPosition: T, formatValue: te, renderValue: ne, labels: re, decrementContent: ie, incrementContent: ae, renderButtonContent: oe, disabled: E = !1, buttonPlacement: se, buttonDirection: ce, buttonVariant: le, buttonSize: ue, buttonTextStyle: de, buttonIndicatorColor: fe, buttonIndicatorActiveColor: pe, repeatOnHold: me, holdDelay: he, repeatInterval: ge, valueWidth: _e, controlHeight: ve, theme: D, ...O } = t, k = d(), ye = D ? o(k ?? {}, D) : k, { props: A, nestedTheme: j } = s({\n\t\tcomponentName: \"NumberInput\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: ye,\n\t\tknownComponents: i\n\t}), M = {\n\t\t...v === void 0 ? {} : { min: v },\n\t\t...y === void 0 ? {} : { max: y },\n\t\tstep: b,\n\t\t...x === void 0 ? {} : { precision: x }\n\t}, N = C(g ?? h ?? v ?? 0, M), [P, F] = u(N), I = l(N), L = l(null), R = h !== void 0, z = C(R ? h : P, M);\n\tI.current = z;\n\tlet B = () => {\n\t\tL.current &&= (clearInterval(L.current), null);\n\t};\n\tc(() => {\n\t\t!R && P !== z && F(z);\n\t}, [\n\t\tR,\n\t\tP,\n\t\tz\n\t]), c(() => () => B(), []);\n\tlet V = {\n\t\t...ee,\n\t\t...A.labels ?? {},\n\t\t...re ?? {}\n\t}, H = T ?? A.labelPosition ?? \"left\", U = se ?? A.buttonPlacement ?? \"split\", be = ce ?? A.buttonDirection ?? \"row\", xe = le ?? A.buttonVariant ?? \"secondary\", Se = ue ?? A.buttonSize ?? \"small\", Ce = de ?? A.buttonTextStyle ?? {\n\t\tcolor: \"#111827\",\n\t\tfontSize: \"16px\"\n\t}, W = fe ?? A.buttonIndicatorColor ?? 16777215, we = pe ?? A.buttonIndicatorActiveColor ?? W, Te = me ?? A.repeatOnHold ?? !0, Ee = he ?? A.holdDelay ?? 350, De = ge ?? A.repeatInterval ?? 90, G = _e ?? A.valueWidth ?? 78, K = ve ?? A.controlHeight ?? 34, Oe = A.labelStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"14px\"\n\t}, ke = A.valueStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"14px\"\n\t}, q = A.buttonControlSize ?? K, J = te?.(z) ?? `${z}`, Ae = S ?? V.value, je = H !== \"none\" && Ae.length > 0, Me = w(z, -1, M), Ne = w(z, 1, M), Pe = Me !== z, Y = Ne !== z, Fe = ne?.({\n\t\tvalue: z,\n\t\tdisplayText: J,\n\t\t...v === void 0 ? {} : { min: v },\n\t\t...y === void 0 ? {} : { max: y },\n\t\tstep: b,\n\t\tdisabled: E,\n\t\tcanDecrement: Pe,\n\t\tcanIncrement: Y,\n\t\tvalueWidth: G,\n\t\tcontrolHeight: K\n\t}), Ie = (e) => {\n\t\tlet t = C(e, M);\n\t\tt !== I.current && (I.current = t, R || F(t), _?.(t));\n\t}, X = (e) => {\n\t\tIe(w(I.current, e, M));\n\t}, Le = (e) => {\n\t\t!Te || E || (B(), X(e), L.current = setInterval(() => {\n\t\t\tX(e);\n\t\t}, De));\n\t}, Re = (e) => {\n\t\te.state === \"end\" && B();\n\t}, Z = (e) => {\n\t\tlet t = e === -1, n = t ? \"decrement\" : \"increment\", i = t ? Pe : Y, a = t ? ie : ae, o = t ? V.decrement : V.increment, s = t ? Me : Ne, c = E || !i, l = a ?? oe?.({\n\t\t\taction: n,\n\t\t\tdisabled: c,\n\t\t\tvalue: z,\n\t\t\tnextValue: s,\n\t\t\tsize: q,\n\t\t\tcolor: W,\n\t\t\tactiveColor: we\n\t\t});\n\t\treturn /* @__PURE__ */ p(r, {\n\t\t\tlabel: l ? void 0 : o,\n\t\t\twidth: q,\n\t\t\theight: q,\n\t\t\tpadding: 0,\n\t\t\tvariant: xe,\n\t\t\tsize: Se,\n\t\t\ttextStyle: Ce,\n\t\t\tdisabled: c,\n\t\t\tonClick: () => X(e),\n\t\t\tonLongPress: () => Le(e),\n\t\t\tonTouchMove: Re,\n\t\t\tlongPressDuration: Ee,\n\t\t\tchildren: l\n\t\t}, t ? \"decrement\" : \"increment\");\n\t}, ze = /* @__PURE__ */ m(n, {\n\t\tdirection: be,\n\t\talignItems: \"center\",\n\t\tgap: A.buttonGap ?? A.controlGap ?? 0,\n\t\ttheme: j,\n\t\tchildren: [Z(-1), Z(1)]\n\t}), Q = /* @__PURE__ */ p(n, {\n\t\twidth: G,\n\t\theight: K,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tbackgroundColor: A.valueBackgroundColor ?? 0,\n\t\tbackgroundAlpha: A.valueBackgroundAlpha ?? .12,\n\t\tborderColor: A.valueBorderColor ?? A.borderColor,\n\t\tborderWidth: A.valueBorderWidth ?? 1,\n\t\tcornerRadius: A.valueCornerRadius ?? A.cornerRadius ?? 6,\n\t\tpadding: A.valuePadding ?? {\n\t\t\tleft: 8,\n\t\t\tright: 8,\n\t\t\ttop: 4,\n\t\t\tbottom: 4\n\t\t},\n\t\ttheme: j,\n\t\tchildren: Fe ?? /* @__PURE__ */ p(e, {\n\t\t\ttext: J,\n\t\t\tstyle: ke\n\t\t})\n\t}), Be = U === \"left\" ? /* @__PURE__ */ m(n, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: A.controlGap ?? 0,\n\t\ttheme: j,\n\t\tchildren: [ze, Q]\n\t}) : U === \"right\" ? /* @__PURE__ */ m(n, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: A.controlGap ?? 0,\n\t\ttheme: j,\n\t\tchildren: [Q, ze]\n\t}) : /* @__PURE__ */ m(n, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: A.controlGap ?? 0,\n\t\ttheme: j,\n\t\tchildren: [\n\t\t\tZ(-1),\n\t\t\tQ,\n\t\t\tZ(1)\n\t\t]\n\t}), Ve = je ? /* @__PURE__ */ p(e, {\n\t\ttext: Ae,\n\t\tstyle: Oe\n\t}) : null, He = H === \"top\" || H === \"bottom\", $ = E ? A.disabledAlpha ?? .5 : O.alpha, Ue = H === \"right\" || H === \"bottom\" ? /* @__PURE__ */ m(f, { children: [Be, Ve] }) : /* @__PURE__ */ m(f, { children: [Ve, Be] });\n\treturn /* @__PURE__ */ p(n, {\n\t\t...O,\n\t\tdirection: He ? \"column\" : \"row\",\n\t\talignItems: \"center\",\n\t\tgap: A.gap ?? 10,\n\t\tpadding: A.padding ?? 0,\n\t\t...$ === void 0 ? {} : { alpha: $ },\n\t\ttheme: j,\n\t\tchildren: Ue\n\t});\n}\n//#endregion\nexport { T as NumberInput, v as NumberInputIndicator, w as getNextNumberInputValue, S as getNumberInputPrecision, C as normalizeNumberInputValue };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as r, ensureContrast as i, getGlobalThemeDefaults as a, mergeThemes as o, normalizeColorNumber as s, numberToHex as c, resolveComponentTheme as l, useEffect as u, useState as d, useTheme as f } from \"@number10/jsx-core\";\nimport { jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/PalettePicker.tsx\nvar h = {\n\ttitle: \"Palette\",\n\tempty: \"No colors\"\n};\nfunction g(e) {\n\tlet t = typeof e == \"number\" ? { value: e } : e, n = s(t.value);\n\treturn {\n\t\t...t,\n\t\tvalue: n,\n\t\thex: c(n).toUpperCase()\n\t};\n}\nfunction _(e) {\n\treturn e.map(g);\n}\nfunction v(e, t, n) {\n\tif (t !== void 0) {\n\t\tlet n = s(t);\n\t\treturn e.some((e) => e.value === n) ? n : void 0;\n\t}\n\tif (n !== void 0) {\n\t\tlet t = s(n), r = e.find((e) => e.value === t);\n\t\tif (r) return r.value;\n\t}\n\treturn e.find((e) => !e.disabled)?.value ?? e[0]?.value;\n}\nfunction y(e, t) {\n\tlet n = Math.max(1, Math.floor(t)), r = [];\n\tfor (let t = 0; t < e.length; t += n) r.push(e.slice(t, t + n));\n\treturn r;\n}\nfunction b(e, t = 16777215) {\n\treturn i(t, e, 4.5);\n}\nfunction x(e, t) {\n\treturn !t && !e.disabled;\n}\nfunction S(e, t, n) {\n\te.clear().lineStyle(Math.max(2, Math.round(t * .09)), n, 1).beginPath().moveTo(t * .25, t * .52).lineTo(t * .43, t * .7).lineTo(t * .77, t * .3).strokePath();\n}\nfunction C(s) {\n\tlet { colors: c, value: g, defaultValue: C, onChange: w, columns: T, swatchSize: ee, showTitle: E, showHex: D, labels: O, disabled: k = !1, renderSwatch: A, theme: j, alpha: M, ...N } = s, P = f(), F = j ? o(P ?? {}, j) : P, { props: I, nestedTheme: L } = l({\n\t\tcomponentName: \"PalettePicker\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: F,\n\t\tknownComponents: r\n\t}), R = _(c), z = g !== void 0, [B, V] = d(v(R, g, C)), H = z ? v(R, g) : v(R, B);\n\tu(() => {\n\t\t!z && B !== H && V(H);\n\t}, [\n\t\tz,\n\t\tB,\n\t\tH\n\t]);\n\tlet U = {\n\t\t...h,\n\t\t...I.labels ?? {},\n\t\t...O ?? {}\n\t}, W = Math.max(1, Math.floor(T ?? I.columns ?? 6)), G = ee ?? I.swatchSize ?? 28, K = E ?? I.showTitle ?? !0, q = D ?? I.showHex ?? !1, J = I.swatchGap ?? 8, Y = I.rowGap ?? J, X = I.itemWidth ?? (q ? Math.max(56, G) : G), Z = I.titleStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"14px\",\n\t\tfontStyle: \"bold\"\n\t}, Q = I.emptyStyle ?? {\n\t\tcolor: \"#9fb3c8\",\n\t\tfontSize: \"13px\"\n\t}, te = I.hexStyle ?? {\n\t\tcolor: \"#9fb3c8\",\n\t\tfontSize: \"11px\"\n\t}, $ = k ? I.disabledAlpha ?? .5 : M, ne = y(R, W), re = (e) => {\n\t\tx(e, k) && (z || V(e.value), w?.(e.value, e));\n\t}, ie = (e) => /* @__PURE__ */ p(n, {\n\t\twidth: e.size,\n\t\theight: e.size,\n\t\tbackgroundColor: e.color,\n\t\tborderColor: e.selected ? e.selectedBorderColor : I.swatchBorderColor,\n\t\tborderWidth: e.selected ? I.swatchSelectedBorderWidth ?? 3 : I.swatchBorderWidth ?? 1,\n\t\tcornerRadius: I.swatchCornerRadius ?? 5,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\talpha: e.disabled ? I.swatchDisabledAlpha ?? .45 : 1,\n\t\ttheme: L,\n\t\tchildren: e.selected ? /* @__PURE__ */ p(t, {\n\t\t\twidth: e.size,\n\t\t\theight: e.size,\n\t\t\tdependencies: [e.size, e.checkColor],\n\t\t\tonDraw: (t) => S(t, e.size, e.checkColor)\n\t\t}) : null\n\t}), ae = (t, r) => {\n\t\tlet a = H === t.value, o = k || !!t.disabled, s = x(t, k), c = i(I.swatchSelectedBorderColor ?? 16777215, t.value, 3), l = b(t.value, I.selectedCheckColor ?? 16777215), u = {\n\t\t\toption: t,\n\t\t\tcolor: t.value,\n\t\t\thex: t.hex,\n\t\t\tselected: a,\n\t\t\tdisabled: o,\n\t\t\tindex: r,\n\t\t\tsize: G,\n\t\t\tselectedBorderColor: c,\n\t\t\tcheckColor: l\n\t\t}, d = A?.(u) ?? ie(u), f = U.formatHex?.(t.value) ?? t.hex;\n\t\treturn /* @__PURE__ */ m(n, {\n\t\t\twidth: X,\n\t\t\talignItems: \"center\",\n\t\t\tgap: 4,\n\t\t\tenableGestures: s,\n\t\t\t...s ? { onTouch: () => re(t) } : {},\n\t\t\ttheme: L,\n\t\t\tchildren: [d, q ? /* @__PURE__ */ p(e, {\n\t\t\t\ttext: f,\n\t\t\t\tstyle: te\n\t\t\t}) : null]\n\t\t}, `${t.value}-${r}`);\n\t};\n\treturn /* @__PURE__ */ m(n, {\n\t\t...N,\n\t\tdirection: \"column\",\n\t\tgap: I.gap ?? 10,\n\t\tpadding: I.padding ?? 0,\n\t\t...I.backgroundColor === void 0 ? {} : { backgroundColor: I.backgroundColor },\n\t\t...I.backgroundAlpha === void 0 ? {} : { backgroundAlpha: I.backgroundAlpha },\n\t\t...I.borderColor === void 0 ? {} : { borderColor: I.borderColor },\n\t\t...I.borderWidth === void 0 ? {} : { borderWidth: I.borderWidth },\n\t\t...I.cornerRadius === void 0 ? {} : { cornerRadius: I.cornerRadius },\n\t\t...$ === void 0 ? {} : { alpha: $ },\n\t\ttheme: L,\n\t\tchildren: [K ? /* @__PURE__ */ p(e, {\n\t\t\ttext: U.title,\n\t\t\tstyle: Z\n\t\t}) : null, R.length === 0 ? /* @__PURE__ */ p(e, {\n\t\t\ttext: U.empty,\n\t\t\tstyle: Q\n\t\t}) : /* @__PURE__ */ p(n, {\n\t\t\tdirection: \"column\",\n\t\t\tgap: Y,\n\t\t\ttheme: L,\n\t\t\tchildren: ne.map((e, t) => /* @__PURE__ */ p(n, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\tgap: J,\n\t\t\t\ttheme: L,\n\t\t\t\tchildren: e.map((e, n) => ae(e, t * W + n))\n\t\t\t}, `row-${t}`))\n\t\t})]\n\t});\n}\n//#endregion\nexport { C as PalettePicker, y as chunkPalettePickerColors, b as getPalettePickerContrastColor, g as normalizePalettePickerColor, _ as normalizePalettePickerColors, v as resolvePalettePickerValue };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useTheme as o } from \"@number10/jsx-core\";\nimport { jsx as s, jsxs as c } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ProgressBar.tsx\nfunction l(e, t, n) {\n\treturn Number.isFinite(e) ? Math.min(Math.max(e, t), n) : t;\n}\nfunction u(e, t, n) {\n\tif (!Number.isFinite(t) || !Number.isFinite(n) || t === n) return 0;\n\tlet r = Math.min(t, n), i = Math.max(t, n);\n\treturn (l(e, r, i) - r) / (i - r);\n}\nfunction d(e) {\n\treturn `${Math.round(e.percent)}%`;\n}\nfunction f(l) {\n\tlet { value: f, min: p = 0, max: m = 100, orientation: h, label: g, showValue: _, labelPosition: v, formatValue: y, trackColor: b, fillColor: x, borderColor: S, borderWidth: C, cornerRadius: w, labelStyle: T, disabled: E = !1, disabledAlpha: ee, theme: D, width: O, height: k, alpha: A, ...j } = l, M = o(), N = D ? i(M ?? {}, D) : M, { props: P, nestedTheme: F } = a({\n\t\tcomponentName: \"ProgressBar\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: N,\n\t\tknownComponents: n\n\t}), I = h ?? P.orientation ?? \"horizontal\", L = u(f, p, m), R = L * 100, z = v ?? P.labelPosition ?? (_ || g ? \"right\" : \"none\"), B = z !== \"none\" && !!(_ || g), V = B ? [g, _ ? (y ?? d)({\n\t\tvalue: f,\n\t\tmin: p,\n\t\tmax: m,\n\t\tratio: L,\n\t\tpercent: R\n\t}) : void 0].filter(Boolean).join(\" \") : \"\", H = O ?? P.width ?? (I === \"horizontal\" ? 240 : 24), U = k ?? P.height ?? (I === \"horizontal\" ? 22 : 160), W = b ?? P.trackColor ?? 2042167, G = x ?? P.fillColor ?? 2278750, K = S ?? P.borderColor ?? 3359061, q = C ?? P.borderWidth ?? 1, J = w ?? P.cornerRadius ?? (I === \"horizontal\" ? 11 : 8), Y = T ?? P.labelStyle ?? {\n\t\tcolor: \"#ffffff\",\n\t\tfontSize: \"12px\"\n\t}, X = ee ?? P.disabledAlpha ?? .5, Z = E ? X : A, Q = z === \"left\" || z === \"right\" ? \"row\" : \"column\", $ = B ? /* @__PURE__ */ s(e, {\n\t\ttext: V,\n\t\tstyle: Y\n\t}) : null, te = I === \"horizontal\" ? {\n\t\twidth: `${R}%`,\n\t\theight: \"fill\"\n\t} : {\n\t\twidth: \"fill\",\n\t\theight: `${R}%`\n\t}, ne = /* @__PURE__ */ c(t, {\n\t\twidth: H,\n\t\theight: U,\n\t\tdirection: I === \"horizontal\" ? \"stack\" : \"column\",\n\t\tjustifyContent: I === \"vertical\" ? \"end\" : \"start\",\n\t\tbackgroundColor: W,\n\t\tborderColor: K,\n\t\tborderWidth: q,\n\t\tcornerRadius: J,\n\t\toverflow: \"hidden\",\n\t\ttheme: F,\n\t\tchildren: [/* @__PURE__ */ s(t, {\n\t\t\t...te,\n\t\t\tbackgroundColor: G,\n\t\t\tcornerRadius: J\n\t\t}), z === \"inside\" && B && /* @__PURE__ */ s(t, {\n\t\t\twidth: \"fill\",\n\t\t\theight: \"fill\",\n\t\t\tjustifyContent: \"center\",\n\t\t\talignItems: \"center\",\n\t\t\tchildren: $\n\t\t})]\n\t});\n\treturn /* @__PURE__ */ c(t, {\n\t\t...j,\n\t\tdirection: Q,\n\t\talignItems: \"center\",\n\t\tgap: P.gap ?? 8,\n\t\t...Z === void 0 ? {} : { alpha: Z },\n\t\ttheme: F,\n\t\tchildren: [\n\t\t\tz === \"top\" || z === \"left\" ? $ : null,\n\t\t\tne,\n\t\t\tz !== \"inside\" && (z === \"bottom\" || z === \"right\") ? $ : null\n\t\t]\n\t});\n}\n//#endregion\nexport { f as ProgressBar, l as clampProgressValue, u as getProgressRatio };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Button as n } from \"./Button.js\";\nimport { ActivityIndicator as r } from \"./ActivityIndicator.js\";\nimport { ProgressBar as i } from \"./ProgressBar.js\";\nimport { KNOWN_COMPONENTS as a, getGlobalThemeDefaults as o, mergeThemes as s, resolveComponentTheme as c, useTheme as l } from \"@number10/jsx-core\";\nimport { jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/ProgressView.tsx\nfunction f(f) {\n\tlet { value: p, min: m = 0, max: h = 100, indeterminate: g = !1, label: _, showPercentage: v = !1, showCancel: y = !1, onCancel: b, labels: x, progressBarProps: S, theme: C, ...w } = f, T = l(), E = C ? s(T ?? {}, C) : T, { props: D, nestedTheme: O } = c({\n\t\tcomponentName: \"ProgressView\",\n\t\tglobalTheme: o(),\n\t\tlocalTheme: E,\n\t\tknownComponents: a\n\t}), k = {\n\t\t...D.labels ?? {},\n\t\t...x ?? {}\n\t}, A = D.gap ?? 8, j = D.barHeight ?? 24, M = D.labelStyle ?? {\n\t\tcolor: \"#e0e7ff\",\n\t\tfontSize: \"14px\"\n\t}, N = D.percentageStyle ?? {\n\t\tcolor: \"#9fb3c8\",\n\t\tfontSize: \"13px\"\n\t}, P = p === void 0 ? void 0 : Math.round((p - m) / (h - m) * 100);\n\treturn /* @__PURE__ */ d(t, {\n\t\tdirection: \"column\",\n\t\tgap: A,\n\t\twidth: D.width ?? \"fill\",\n\t\t...w,\n\t\ttheme: O,\n\t\tchildren: [\n\t\t\t(_ || v) && !g ? /* @__PURE__ */ d(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\tjustifyContent: \"space-between\",\n\t\t\t\twidth: \"fill\",\n\t\t\t\tchildren: [_ ? /* @__PURE__ */ u(e, {\n\t\t\t\t\ttext: _,\n\t\t\t\t\tstyle: M\n\t\t\t\t}) : /* @__PURE__ */ u(t, {}), v && P !== void 0 ? /* @__PURE__ */ u(e, {\n\t\t\t\t\ttext: `${P}%`,\n\t\t\t\t\tstyle: N\n\t\t\t\t}) : null]\n\t\t\t}) : null,\n\t\t\tg ? /* @__PURE__ */ u(r, {\n\t\t\t\t..._ || k.loading ? { label: _ ?? k.loading } : {},\n\t\t\t\ttheme: O\n\t\t\t}) : /* @__PURE__ */ u(i, {\n\t\t\t\tvalue: p ?? 0,\n\t\t\t\tmin: m,\n\t\t\t\tmax: h,\n\t\t\t\theight: j,\n\t\t\t\twidth: \"fill\",\n\t\t\t\t...S,\n\t\t\t\ttheme: O\n\t\t\t}),\n\t\t\ty && b ? /* @__PURE__ */ u(t, {\n\t\t\t\talignItems: \"center\",\n\t\t\t\twidth: \"fill\",\n\t\t\t\tchildren: /* @__PURE__ */ u(n, {\n\t\t\t\t\tvariant: \"ghost\",\n\t\t\t\t\tsize: D.cancelButtonSize ?? \"small\",\n\t\t\t\t\tonClick: b,\n\t\t\t\t\tchildren: /* @__PURE__ */ u(e, { text: k.cancel ?? \"Cancel\" })\n\t\t\t\t})\n\t\t\t}) : null\n\t\t]\n\t});\n}\n//#endregion\nexport { f as ProgressView };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useEffect as o, useState as s, useTheme as c } from \"@number10/jsx-core\";\nimport { jsx as l, jsxs as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/RatingBar.tsx\nfunction d(e) {\n\tswitch (e) {\n\t\tcase \"small\": return {\n\t\t\ticonSize: 16,\n\t\t\tfontSize: \"16px\"\n\t\t};\n\t\tcase \"large\": return {\n\t\t\ticonSize: 32,\n\t\t\tfontSize: \"32px\"\n\t\t};\n\t\tdefault: return {\n\t\t\ticonSize: 24,\n\t\t\tfontSize: \"24px\"\n\t\t};\n\t}\n}\nfunction f(e, t) {\n\treturn Math.max(0, Math.min(t, Math.round(e)));\n}\nfunction p(p) {\n\tlet { value: m, defaultValue: h = 0, max: g = 5, onChange: _, size: v, renderIcon: y, labels: b, disabled: x = !1, theme: S, alpha: C, ...w } = p, T = c(), E = S ? i(T ?? {}, S) : T, { props: D, nestedTheme: O } = a({\n\t\tcomponentName: \"RatingBar\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: E,\n\t\tknownComponents: n\n\t}), k = v ?? D.size ?? \"medium\", A = d(k), j = D.iconSize ?? A.iconSize, M = D.gap ?? 4, N = m !== void 0, [P, F] = s(f(m ?? h, g)), I = N ? f(m ?? 0, g) : P;\n\to(() => {\n\t\tN && F(f(m ?? 0, g));\n\t}, [\n\t\tN,\n\t\tm,\n\t\tg\n\t]);\n\tlet L = {\n\t\t...D.labels ?? {},\n\t\t...b ?? {}\n\t}, R = D.filledColor ?? \"#fbbf24\", z = D.emptyColor ?? \"#475569\", B = x ? D.disabledAlpha ?? .5 : C, V = (e) => {\n\t\tif (x) return;\n\t\tlet t = f(e, g);\n\t\tN || F(t), _?.(t);\n\t}, H = Array.from({ length: g }, (e, t) => t);\n\treturn /* @__PURE__ */ u(t, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: M,\n\t\t...w,\n\t\t...B === void 0 ? {} : { alpha: B },\n\t\ttheme: O,\n\t\tchildren: [H.map((n) => {\n\t\t\tlet r = n < I, i = y?.({\n\t\t\t\tfilled: r,\n\t\t\t\tindex: n,\n\t\t\t\tsize: k\n\t\t\t});\n\t\t\treturn /* @__PURE__ */ l(t, {\n\t\t\t\twidth: j,\n\t\t\t\theight: j,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tenableGestures: !x,\n\t\t\t\tonTouch: () => V(n + 1),\n\t\t\t\ttheme: O,\n\t\t\t\tchildren: i ?? /* @__PURE__ */ l(e, {\n\t\t\t\t\ttext: r ? \"★\" : \"☆\",\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tcolor: r ? R : z,\n\t\t\t\t\t\tfontSize: A.fontSize\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}, n);\n\t\t}), L.rating ? /* @__PURE__ */ l(e, {\n\t\t\ttext: L.rating,\n\t\t\tstyle: D.labelStyle\n\t\t}) : null]\n\t});\n}\n//#endregion\nexport { p as RatingBar };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { KNOWN_COMPONENTS as n, getGlobalThemeDefaults as r, mergeThemes as i, resolveComponentTheme as a, useEffect as o, useState as s, useTheme as c } from \"@number10/jsx-core\";\nimport { Fragment as l, jsx as u, jsxs as d } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/SegmentedControl.tsx\nfunction f(e, t) {\n\tif (t !== void 0) return e.find((e) => e.value === t);\n}\nfunction p(e, t, n) {\n\tif (t !== void 0) return f(e, t)?.value ?? \"\";\n\tlet r = f(e, n);\n\treturn r ? r.value : e.find((e) => !e.disabled)?.value ?? e[0]?.value ?? \"\";\n}\nfunction m(e, t, n = !1) {\n\treturn !n && !e.disabled && e.value !== t;\n}\nfunction h(...e) {\n\treturn Object.assign({}, ...e.filter(Boolean));\n}\nfunction g(...e) {\n\tlet t = Object.assign({}, ...e.filter(Boolean));\n\treturn Object.keys(t).length > 0 ? t : void 0;\n}\nfunction _(e) {\n\tlet { orientation: t, size: n, variant: r, segmentWidth: i, segmentHeight: a, segmentGap: o, segmentPadding: s, segmentCornerRadius: c, segmentStyle: l, segmentHoverStyle: u, segmentSelectedStyle: d, segmentDisabledStyle: f, textStyle: p, selectedTextStyle: m, disabledTextStyle: h, labelStyle: g, iconGap: _, iconSize: v, disabledAlpha: y, labelPosition: b, labels: x, ...S } = e;\n\treturn S;\n}\nfunction v(e) {\n\tswitch (e) {\n\t\tcase \"small\": return {\n\t\t\tsegmentWidth: 72,\n\t\t\tsegmentHeight: 28,\n\t\t\tsegmentPadding: {\n\t\t\t\tleft: 8,\n\t\t\t\tright: 8,\n\t\t\t\ttop: 4,\n\t\t\t\tbottom: 4\n\t\t\t},\n\t\t\ticonSize: 14,\n\t\t\ttextStyle: { fontSize: \"12px\" }\n\t\t};\n\t\tcase \"large\": return {\n\t\t\tsegmentWidth: 108,\n\t\t\tsegmentHeight: 40,\n\t\t\tsegmentPadding: {\n\t\t\t\tleft: 14,\n\t\t\t\tright: 14,\n\t\t\t\ttop: 8,\n\t\t\t\tbottom: 8\n\t\t\t},\n\t\t\ticonSize: 20,\n\t\t\ttextStyle: { fontSize: \"16px\" }\n\t\t};\n\t\tdefault: return {};\n\t}\n}\nfunction y(e) {\n\tswitch (e) {\n\t\tcase \"soft\": return {\n\t\t\tbackgroundColor: 988970,\n\t\t\tbackgroundAlpha: .78,\n\t\t\tborderColor: 3359061,\n\t\t\tsegmentStyle: {\n\t\t\t\tbackgroundColor: 1976635,\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tborderWidth: 0\n\t\t\t},\n\t\t\tsegmentHoverStyle: {\n\t\t\t\tbackgroundColor: 3359061,\n\t\t\t\tbackgroundAlpha: .7\n\t\t\t},\n\t\t\tsegmentSelectedStyle: {\n\t\t\t\tbackgroundColor: 3359061,\n\t\t\t\tbackgroundAlpha: 1,\n\t\t\t\tborderColor: 6583435,\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\ttextStyle: { color: \"#cbd5e1\" },\n\t\t\tselectedTextStyle: {\n\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t}\n\t\t};\n\t\tcase \"outline\": return {\n\t\t\tbackgroundColor: 0,\n\t\t\tbackgroundAlpha: 0,\n\t\t\tborderColor: 6333946,\n\t\t\tborderWidth: 1,\n\t\t\tsegmentStyle: {\n\t\t\t\tbackgroundColor: 0,\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tborderColor: 6333946,\n\t\t\t\tborderWidth: 0\n\t\t\t},\n\t\t\tsegmentHoverStyle: {\n\t\t\t\tbackgroundColor: 1920728,\n\t\t\t\tbackgroundAlpha: .12\n\t\t\t},\n\t\t\tsegmentSelectedStyle: {\n\t\t\t\tbackgroundColor: 1920728,\n\t\t\t\tbackgroundAlpha: .2,\n\t\t\t\tborderColor: 9684477,\n\t\t\t\tborderWidth: 1\n\t\t\t},\n\t\t\ttextStyle: { color: \"#bfdbfe\" },\n\t\t\tselectedTextStyle: {\n\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\tfontStyle: \"bold\"\n\t\t\t}\n\t\t};\n\t\tdefault: return {};\n\t}\n}\nfunction b(b) {\n\tlet { options: x, value: S, defaultValue: C, onChange: ee, orientation: te, size: ne, variant: w, label: T, labelPosition: E, labels: D, disabled: O = !1, segmentWidth: k, segmentHeight: A, renderOption: j, theme: M, alpha: N, ...re } = b, P = c(), ie = M ? i(P ?? {}, M) : P, { props: F, nestedTheme: I } = a({\n\t\tcomponentName: \"SegmentedControl\",\n\t\tglobalTheme: r(),\n\t\tlocalTheme: ie,\n\t\tknownComponents: n\n\t}), L = S !== void 0, [R, z] = s(p(x, S, C)), [B, V] = s(void 0), H = L ? p(x, S) : p(x, R);\n\to(() => {\n\t\t!L && R !== H && z(H);\n\t}, [\n\t\tL,\n\t\tR,\n\t\tH\n\t]);\n\tlet U = {\n\t\t...F.labels ?? {},\n\t\t...D ?? {}\n\t}, W = te ?? F.orientation ?? \"horizontal\", G = ne ?? F.size ?? \"medium\", K = w ?? F.variant ?? \"solid\", q = v(G), J = y(K), Y = E ?? F.labelPosition ?? \"none\", ae = k ?? q.segmentWidth ?? F.segmentWidth, oe = A ?? q.segmentHeight ?? F.segmentHeight, X = T ?? U.group, se = Y !== \"none\" && X !== void 0, ce = h(_(F), _(J)), Z = Y === \"left\" ? \"row\" : \"column\", le = W === \"horizontal\" ? \"row\" : \"column\", ue = F.segmentGap ?? 0, Q = g({\n\t\tcolor: \"#dbeafe\",\n\t\tfontSize: \"13px\"\n\t}, F.textStyle, J.textStyle, q.textStyle), de = g(Q, F.selectedTextStyle, J.selectedTextStyle), fe = g(Q, F.disabledTextStyle), pe = F.labelStyle ?? {\n\t\tcolor: \"#9fb3c8\",\n\t\tfontSize: \"13px\"\n\t}, $ = O ? F.disabledAlpha ?? .5 : N, me = (e) => {\n\t\tlet t = f(x, e);\n\t\t!t || !m(t, H, O) || (L || z(e), ee?.(e));\n\t}, he = (n, r) => {\n\t\tlet a = n.value === H, o = O || !!n.disabled, s = B === n.value, c = m(n, H, O), f = n.label ?? (n.icon ? void 0 : n.value), p = h({\n\t\t\theight: oe,\n\t\t\twidth: ae,\n\t\t\tpadding: q.segmentPadding ?? F.segmentPadding,\n\t\t\tcornerRadius: F.segmentCornerRadius\n\t\t}, F.segmentStyle, J.segmentStyle, s && !a && !o ? F.segmentHoverStyle : void 0, s && !a && !o ? J.segmentHoverStyle : void 0, a ? F.segmentSelectedStyle : void 0, a ? J.segmentSelectedStyle : void 0, o ? F.segmentDisabledStyle : void 0), g = o ? fe : a ? de : Q, _ = q.iconSize ?? F.iconSize, v = i(I, {\n\t\t\tText: g ? { style: g } : {},\n\t\t\tIcon: { ..._ === void 0 ? {} : { size: _ } }\n\t\t}), y = j?.({\n\t\t\toption: n,\n\t\t\tselected: a,\n\t\t\tdisabled: o,\n\t\t\thovered: s,\n\t\t\tindex: r,\n\t\t\tsize: G,\n\t\t\tvariant: K,\n\t\t\torientation: W,\n\t\t\t...g ? { textStyle: g } : {},\n\t\t\t..._ === void 0 ? {} : { iconSize: _ }\n\t\t}) ?? n.children, b = c && (F.segmentHoverStyle || J.segmentHoverStyle) ? {\n\t\t\tonHoverStart: () => V(n.value),\n\t\t\tonHoverEnd: () => V((e) => e === n.value ? void 0 : e)\n\t\t} : {};\n\t\treturn /* @__PURE__ */ u(t, {\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tgap: F.iconGap ?? 6,\n\t\t\t...p,\n\t\t\tenableGestures: c,\n\t\t\tonTouch: () => me(n.value),\n\t\t\t...b,\n\t\t\ttheme: v,\n\t\t\tchildren: y ?? /* @__PURE__ */ d(l, { children: [n.icon, f === void 0 ? null : /* @__PURE__ */ u(e, {\n\t\t\t\ttext: f,\n\t\t\t\t...g ? { style: g } : {}\n\t\t\t})] })\n\t\t}, n.value);\n\t}, ge = /* @__PURE__ */ u(t, {\n\t\t...ce,\n\t\tdirection: le,\n\t\tgap: ue,\n\t\t...$ === void 0 ? {} : { alpha: $ },\n\t\ttheme: I,\n\t\tchildren: x.map(he)\n\t});\n\treturn /* @__PURE__ */ d(t, {\n\t\t...re,\n\t\tdirection: Z,\n\t\talignItems: \"center\",\n\t\tgap: F.gap ?? 8,\n\t\ttheme: I,\n\t\tchildren: [se ? /* @__PURE__ */ u(e, {\n\t\t\ttext: X,\n\t\t\tstyle: pe\n\t\t}) : null, ge]\n\t});\n}\n//#endregion\nexport { b as SegmentedControl, f as findSegmentedControlOption, m as isSegmentedControlOptionSelectable, p as resolveSegmentedControlValue };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Divider as n } from \"./Divider.js\";\nimport { ScrollView as r } from \"./ScrollView.js\";\nimport { KNOWN_COMPONENTS as i, getGlobalThemeDefaults as a, mergeThemes as o, resolveComponentTheme as s, useTheme as c } from \"@number10/jsx-core\";\nimport { jsx as l, jsxs as u } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Sidebar.tsx\nfunction d(e) {\n\treturn e ? (Array.isArray(e) ? e.flat(Infinity) : [e]).filter((e) => !!e && typeof e == \"object\" && \"type\" in e) : [];\n}\nfunction f(f) {\n\tlet p = c(), m = f.theme ? o(p ?? {}, f.theme) : p, { props: h, nestedTheme: g } = s({\n\t\tcomponentName: \"Sidebar\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: m,\n\t\tknownComponents: i\n\t}), _ = h, v = f.variant ?? _.variant ?? \"solid\", y = f.size ?? _.size ?? \"md\", b = _.variants?.[v] ?? {}, x = _.sizes?.[y] ?? {}, { variants: ee, sizes: te, headerStyle: S, footerStyle: ne, sectionStyle: C, itemStyle: w, badgeStyle: T, dividerColor: re, dividerAlpha: ie, scrollable: ae, itemGap: E, sectionGap: D, variant: oe, size: se, ...O } = _, { header: k, footer: A, sections: j, scrollable: M, showDividers: N = !1, itemGap: P, sectionGap: F, theme: ce, children: I, ...L } = f, R = L.gap ?? x.gap ?? _.gap ?? O.gap, z = F ?? D ?? R ?? 8, B = P ?? E ?? 8, V = M ?? ae ?? !1, H = re ?? 13421772, U = {\n\t\t...O,\n\t\t...b,\n\t\t...x,\n\t\t...L,\n\t\tdirection: L.direction ?? \"column\",\n\t\talignItems: L.alignItems ?? \"start\",\n\t\tgap: R\n\t}, { titleStyle: W, ...G } = C ?? {}, { textStyle: K, active: q, disabledAlpha: J, ...Y } = w ?? {}, { textStyle: X, ...Z } = T ?? {}, le = (t) => t ? typeof t == \"string\" ? /* @__PURE__ */ l(e, {\n\t\ttext: t,\n\t\tstyle: W\n\t}) : t : null, ue = (n) => {\n\t\tif (n == null) return null;\n\t\tlet r = typeof n == \"number\" ? /* @__PURE__ */ l(e, {\n\t\t\ttext: `${n}`,\n\t\t\tstyle: X\n\t\t}) : n;\n\t\treturn /* @__PURE__ */ l(t, {\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\t...Z,\n\t\t\tpadding: Z.padding ?? 6,\n\t\t\tchildren: r\n\t\t});\n\t}, de = (n, r) => n?.length ? n.map((n, i) => {\n\t\tlet a = n.key ?? `${r ?? \"section\"}-item-${i}`, o = n.active ? q ?? {} : {}, s = n.disabled && J !== void 0 ? { alpha: J } : {}, c = n.content ?? (n.label ? /* @__PURE__ */ l(e, {\n\t\t\ttext: n.label,\n\t\t\tstyle: K\n\t\t}) : null), u = d(n.icon ?? null), f = d(c), p = d(ue(n.badge)), m = n.disabled ? void 0 : () => n.onSelect?.(n.key ?? a);\n\t\treturn /* @__PURE__ */ l(t, {\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tgap: Y.gap ?? B,\n\t\t\tenableGestures: !n.disabled,\n\t\t\t...m ? { onTouch: m } : {},\n\t\t\t...Y,\n\t\t\t...o,\n\t\t\t...s,\n\t\t\tchildren: [\n\t\t\t\t...u,\n\t\t\t\t...f,\n\t\t\t\t...p\n\t\t\t]\n\t\t}, a);\n\t}) : null, fe = (() => {\n\t\tif (!j?.length) return null;\n\t\tlet e = j.length - 1;\n\t\treturn j.map((r, i) => {\n\t\t\tlet a = r.key ?? `section-${i}`;\n\t\t\treturn /* @__PURE__ */ u(t, {\n\t\t\t\tdirection: \"column\",\n\t\t\t\tgap: z,\n\t\t\t\t...G,\n\t\t\t\tchildren: [\n\t\t\t\t\tle(r.title),\n\t\t\t\t\tr.content ?? null,\n\t\t\t\t\tde(r.items, a),\n\t\t\t\t\tr.footer ?? null,\n\t\t\t\t\tN && i < e ? /* @__PURE__ */ l(n, {\n\t\t\t\t\t\tcolor: H,\n\t\t\t\t\t\tthickness: 1,\n\t\t\t\t\t\tlength: \"100%\",\n\t\t\t\t\t\torientation: \"horizontal\"\n\t\t\t\t\t}) : null\n\t\t\t\t]\n\t\t\t}, a);\n\t\t});\n\t})(), Q = !!j?.length, pe = fe ?? (Q ? null : I) ?? null, me = Q ? I ?? null : null, $ = [...d(pe), ...d(me)];\n\treturn /* @__PURE__ */ u(t, {\n\t\t...U,\n\t\ttheme: g,\n\t\tbackgroundColor: _.backgroundColor,\n\t\tbackgroundAlpha: _.backgroundAlpha,\n\t\tpadding: _.padding,\n\t\tgap: _.gap,\n\t\tchildren: [\n\t\t\tk ? /* @__PURE__ */ l(t, {\n\t\t\t\t...S,\n\t\t\t\tchildren: k\n\t\t\t}) : null,\n\t\t\tV ? /* @__PURE__ */ l(r, {\n\t\t\t\tflex: 1,\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: \"fill\",\n\t\t\t\tshowVerticalSlider: \"auto\",\n\t\t\t\tshowHorizontalSlider: !1,\n\t\t\t\tsliderSize: \"tiny\",\n\t\t\t\ttheme: g,\n\t\t\t\tchildren: /* @__PURE__ */ l(t, {\n\t\t\t\t\tdirection: \"column\",\n\t\t\t\t\tgap: R,\n\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\tchildren: $\n\t\t\t\t})\n\t\t\t}) : $,\n\t\t\tA ? /* @__PURE__ */ l(t, {\n\t\t\t\t...ne,\n\t\t\t\tchildren: A\n\t\t\t}) : null\n\t\t]\n\t});\n}\n//#endregion\nexport { f as Sidebar };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { ScrollView as t } from \"./ScrollView.js\";\nimport { DeferredLayoutQueue as n, KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, mergeThemes as a, resolveComponentTheme as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u, useTheme as d } from \"@number10/jsx-core\";\nimport { jsx as f, jsxs as p } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Tabs.tsx\nfunction m(e) {\n\treturn null;\n}\nfunction h(e) {\n\treturn null;\n}\nvar g = (e) => e ? (Array.isArray(e) ? e.flat(Infinity) : [e]).filter((e) => !!e && typeof e == \"object\" && \"type\" in e) : [];\nfunction _(e, t) {\n\tif (e) {\n\t\tif (typeof e == \"function\") {\n\t\t\te(t);\n\t\t\treturn;\n\t\t}\n\t\te.current = t;\n\t}\n}\nfunction v(e) {\n\treturn Math.max(0, e?.__getLayoutSize?.().height ?? 0);\n}\nfunction y(y) {\n\tlet b = d(), x = y.theme ? a(b ?? {}, y.theme) : b, { props: S, nestedTheme: C } = o({\n\t\tcomponentName: \"Tabs\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: x,\n\t\tknownComponents: r\n\t}), [w, T] = u(y.defaultIndex ?? 0), E = y.activeIndex ?? w, { tabs: D, panels: O } = c(() => {\n\t\tlet e = g(y.children), t = [], n = [];\n\t\tfor (let r of e) r.type === m && t.push(r), r.type === h && n.push(r);\n\t\treturn {\n\t\t\ttabs: t,\n\t\t\tpanels: n\n\t\t};\n\t}, [y.children]), k = Math.min(D.length, O.length), A = k > 0 ? Math.min(Math.max(E, 0), k - 1) : 0, j = (e) => {\n\t\ty.activeIndex === void 0 && T(e), e !== A && y.onChange?.(e);\n\t}, M = S.tabListStyle ?? {}, N = S.tabStyle ?? {}, P = S.tabActiveStyle ?? {}, F = S.tabDisabledStyle ?? {}, I = S.panelStyle ?? {}, { activeIndex: L, children: R, defaultIndex: z, onChange: B, scrollableTabs: ee, tabListScrollProps: te, theme: ne, ...V } = y, H = O[A], U = H?.props ?? {}, W = H?.children ?? U.children, { children: re, ...G } = U, K = y.scrollableTabs ?? !0, q = y.tabListScrollProps ?? {}, [J, Y] = u(0), [X, Z] = u(0), Q = l(null);\n\ts(() => {\n\t\tlet e = !1;\n\t\treturn n.defer(() => {\n\t\t\tif (e) return;\n\t\t\tlet t = v(Q.current);\n\t\t\tt > 0 && Y((e) => Math.abs(e - t) < .5 ? e : t);\n\t\t}), () => {\n\t\t\te = !0;\n\t\t};\n\t}, [\n\t\ty.children,\n\t\tK,\n\t\tX\n\t]);\n\tlet $ = /* @__PURE__ */ f(e, {\n\t\tref: (e) => _(Q, e),\n\t\t...M,\n\t\tdirection: \"row\",\n\t\twidth: K ? \"auto\" : \"100%\",\n\t\tchildren: D.slice(0, k).map((t, n) => {\n\t\t\tlet r = t.props ?? {}, { disabled: i, enableGestures: a, onTouch: o, ...s } = r, c = t.children ?? r.children, l = n === A, u = {\n\t\t\t\t...N,\n\t\t\t\t...l ? P : {},\n\t\t\t\t...i ? F : {},\n\t\t\t\t...s\n\t\t\t}, d = t.__key ?? r.key ?? n;\n\t\t\treturn /* @__PURE__ */ f(e, {\n\t\t\t\t...u,\n\t\t\t\tenableGestures: !i && (a ?? !0),\n\t\t\t\tonTouch: (e) => {\n\t\t\t\t\ti || (j(n), o?.(e));\n\t\t\t\t},\n\t\t\t\tchildren: c\n\t\t\t}, d);\n\t\t})\n\t});\n\treturn /* @__PURE__ */ p(e, {\n\t\t...V,\n\t\t...S,\n\t\tdirection: \"column\",\n\t\ttheme: C,\n\t\tchildren: [K ? /* @__PURE__ */ f(t, {\n\t\t\twidth: \"100%\",\n\t\t\theight: J + X,\n\t\t\tshowHorizontalSlider: \"auto\",\n\t\t\tshowVerticalSlider: !1,\n\t\t\tsliderSize: \"nano\",\n\t\t\ttheme: C,\n\t\t\tonSliderSize: (e) => Z(e.height),\n\t\t\t...q,\n\t\t\tchildren: $\n\t\t}) : $, H ? /* @__PURE__ */ f(e, {\n\t\t\t...I,\n\t\t\t...G,\n\t\t\tchildren: W\n\t\t}) : null]\n\t});\n}\n//#endregion\nexport { m as Tab, h as TabPanel, y as Tabs };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Button as n } from \"./Button.js\";\nimport { Portal as r } from \"./Portal.js\";\nimport { WrapText as i } from \"./WrapText.js\";\nimport { KNOWN_COMPONENTS as a, getGlobalThemeDefaults as o, mergeThemes as s, resolveComponentTheme as c, useEffect as l, useMemo as u, useTheme as d, useViewportSize as f } from \"@number10/jsx-core\";\nimport { jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Toast.tsx\nfunction h(e) {\n\tlet t = e.startsWith(\"bottom\") ? \"end\" : \"start\";\n\treturn e.endsWith(\"left\") ? {\n\t\tjustifyContent: t,\n\t\talignItems: \"start\"\n\t} : e.endsWith(\"right\") ? {\n\t\tjustifyContent: t,\n\t\talignItems: \"end\"\n\t} : {\n\t\tjustifyContent: t,\n\t\talignItems: \"center\"\n\t};\n}\nfunction g(e, t) {\n\treturn e.autoDismiss === !1 ? 0 : e.duration ?? t;\n}\nfunction _(e) {\n\tif (typeof e == \"number\") return e * 2;\n\tif (!e) return 0;\n\tlet t = e;\n\treturn (t.left ?? 0) + (t.right ?? 0);\n}\nfunction v(e) {\n\treturn typeof e == \"number\" ? e : e ? e.horizontal ?? 0 : 0;\n}\nfunction y(e) {\n\tif (typeof e.width != \"number\") return;\n\tlet t = 2 + +!!e.hasPrefix + +!!e.hasClose, n = Math.max(0, t - 1) * e.gap, r = _(e.padding) + e.accentWidth + (e.hasPrefix ? e.prefixWidth : 0) + (e.hasClose ? e.closeButtonSize : 0) + n;\n\treturn Math.max(e.minContentWidth ?? 96, e.width - r);\n}\nfunction b(e) {\n\treturn Number.isFinite(e) && e > 0;\n}\nfunction x(r) {\n\tlet { variant: l, title: u, message: f, children: h, prefix: g, suffix: _, action: b, dismissible: x = !0, onDismiss: S, labels: C, theme: w, ...T } = r, E = d(), D = w ? s(E ?? {}, w) : E, { props: O, nestedTheme: k } = c({\n\t\tcomponentName: \"Toast\",\n\t\tglobalTheme: o(),\n\t\tlocalTheme: D,\n\t\tknownComponents: a\n\t}), A = l ?? O.variant ?? \"info\", j = O.variants?.[A] ?? {}, M = T.width ?? O.width ?? 320, N = T.padding ?? O.padding ?? {\n\t\tleft: 10,\n\t\tright: 10,\n\t\ttop: 9,\n\t\tbottom: 9\n\t}, P = v(T.gap ?? O.gap ?? 10), F = O.accentWidth ?? 4, I = O.prefixWidth ?? 24, L = O.closeButtonSize ?? 22, R = g ?? j.prefix, z = O.titleStyle || j.titleStyle ? {\n\t\t...O.titleStyle ?? {},\n\t\t...j.titleStyle ?? {}\n\t} : void 0, B = O.messageStyle || j.messageStyle ? {\n\t\t...O.messageStyle ?? {},\n\t\t...j.messageStyle ?? {}\n\t} : void 0, V = C?.close ?? O.labels?.close ?? \"x\", H = u !== void 0 || f !== void 0 || h !== void 0, U = x && S !== void 0, W = y({\n\t\twidth: M,\n\t\tpadding: N,\n\t\tgap: P,\n\t\taccentWidth: F,\n\t\thasPrefix: R !== void 0,\n\t\tprefixWidth: I,\n\t\thasClose: U,\n\t\tcloseButtonSize: L\n\t});\n\treturn /* @__PURE__ */ m(t, {\n\t\t...T,\n\t\tdirection: \"row\",\n\t\talignItems: \"stretch\",\n\t\tgap: P,\n\t\twidth: M,\n\t\tminHeight: T.minHeight ?? O.minHeight ?? 58,\n\t\tpadding: N,\n\t\tbackgroundColor: T.backgroundColor ?? j.backgroundColor ?? O.backgroundColor,\n\t\tbackgroundAlpha: T.backgroundAlpha ?? j.backgroundAlpha ?? O.backgroundAlpha,\n\t\tborderColor: T.borderColor ?? j.borderColor ?? O.borderColor,\n\t\tborderWidth: T.borderWidth ?? j.borderWidth ?? O.borderWidth,\n\t\tcornerRadius: T.cornerRadius ?? j.cornerRadius ?? O.cornerRadius,\n\t\ttheme: k,\n\t\tchildren: [\n\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\twidth: F,\n\t\t\t\tbackgroundColor: j.accentColor ?? j.borderColor ?? 3718648,\n\t\t\t\tcornerRadius: 2\n\t\t\t}),\n\t\t\tR && /* @__PURE__ */ p(t, {\n\t\t\t\twidth: I,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tpadding: { top: 1 },\n\t\t\t\tchildren: R\n\t\t\t}),\n\t\t\tH && /* @__PURE__ */ m(t, {\n\t\t\t\t...W === void 0 ? { flex: 1 } : {},\n\t\t\t\twidth: W ?? \"fill\",\n\t\t\t\tflexShrink: 1,\n\t\t\t\tgap: O.contentGap ?? 2,\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\toverflow: \"hidden\",\n\t\t\t\tchildren: [\n\t\t\t\t\tu !== void 0 && /* @__PURE__ */ p(e, {\n\t\t\t\t\t\ttext: u,\n\t\t\t\t\t\tstyle: z\n\t\t\t\t\t}),\n\t\t\t\t\tf !== void 0 && /* @__PURE__ */ p(i, {\n\t\t\t\t\t\ttext: f,\n\t\t\t\t\t\tstyle: B\n\t\t\t\t\t}),\n\t\t\t\t\th\n\t\t\t\t]\n\t\t\t}),\n\t\t\tb,\n\t\t\t_,\n\t\t\tU && /* @__PURE__ */ p(t, {\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tpadding: { top: 1 },\n\t\t\t\tchildren: /* @__PURE__ */ p(n, {\n\t\t\t\t\tvariant: \"ghost\",\n\t\t\t\t\tmaxWidth: L,\n\t\t\t\t\tmaxHeight: L,\n\t\t\t\t\tcornerRadius: L,\n\t\t\t\t\tpadding: 0,\n\t\t\t\t\tonClick: S,\n\t\t\t\t\tchildren: /* @__PURE__ */ p(e, {\n\t\t\t\t\t\ttext: V,\n\t\t\t\t\t\tstyle: O.closeTextStyle\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t]\n\t});\n}\nfunction S(e) {\n\tlet { items: n, position: i, width: m, gap: _, offset: v, duration: y, depth: S, labels: C, onDismiss: w, theme: T, ...E } = e, D = d(), O = T ? s(D ?? {}, T) : D, { props: k, nestedTheme: A } = c({\n\t\tcomponentName: \"NotificationStack\",\n\t\tglobalTheme: o(),\n\t\tlocalTheme: O,\n\t\tknownComponents: a\n\t}), j = f(), M = i ?? k.position ?? \"top-right\", N = y ?? k.duration ?? 4e3, P = _ ?? k.gap ?? 8, F = v ?? k.offset ?? 16, I = m ?? k.width ?? 320, L = u(() => n.map((e) => `${e.id}:${g(e, N)}`).join(\"|\"), [n, N]), R = h(M);\n\treturn l(() => {\n\t\tif (!w || n.length === 0) return;\n\t\tlet e = n.map((e) => {\n\t\t\tlet t = g(e, N);\n\t\t\treturn b(t) ? setTimeout(() => w(e.id), t) : null;\n\t\t}).filter((e) => e !== null);\n\t\treturn () => {\n\t\t\te.forEach((e) => clearTimeout(e));\n\t\t};\n\t}, [L, w]), /* @__PURE__ */ p(r, {\n\t\tdepth: S ?? k.depth ?? 1200,\n\t\tblockEvents: !1,\n\t\tchildren: /* @__PURE__ */ p(t, {\n\t\t\t...E,\n\t\t\twidth: j.width,\n\t\t\theight: j.height,\n\t\t\tdirection: \"column\",\n\t\t\tjustifyContent: R.justifyContent,\n\t\t\talignItems: R.alignItems,\n\t\t\tpadding: E.padding ?? F,\n\t\t\ttheme: A,\n\t\t\tchildren: /* @__PURE__ */ p(t, {\n\t\t\t\tdirection: \"column\",\n\t\t\t\tgap: P,\n\t\t\t\twidth: I,\n\t\t\t\tchildren: n.map((e) => /* @__PURE__ */ p(x, {\n\t\t\t\t\t...e.variant === void 0 ? {} : { variant: e.variant },\n\t\t\t\t\t...e.title === void 0 ? {} : { title: e.title },\n\t\t\t\t\t...e.message === void 0 ? {} : { message: e.message },\n\t\t\t\t\t...e.prefix === void 0 ? {} : { prefix: e.prefix },\n\t\t\t\t\t...e.suffix === void 0 ? {} : { suffix: e.suffix },\n\t\t\t\t\t...e.action === void 0 ? {} : { action: e.action },\n\t\t\t\t\t...e.dismissible === void 0 ? {} : { dismissible: e.dismissible },\n\t\t\t\t\t...w ? { onDismiss: () => w(e.id) } : {},\n\t\t\t\t\t...C === void 0 ? {} : { labels: C },\n\t\t\t\t\ttheme: A,\n\t\t\t\t\tchildren: e.content\n\t\t\t\t}, e.id))\n\t\t\t})\n\t\t})\n\t});\n}\n//#endregion\nexport { S as NotificationStack, x as Toast, g as getToastAutoDismissDuration, y as getToastContentWidth, h as resolveNotificationStackAlignment };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { ScrollView as n } from \"./ScrollView.js\";\nimport { KNOWN_COMPONENTS as r, getGlobalThemeDefaults as i, mergeThemes as a, resolveComponentTheme as o, useEffect as s, useMemo as c, useRef as l, useState as u, useTheme as d } from \"@number10/jsx-core\";\nimport { Fragment as f, jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/WheelPicker.tsx\nfunction ee(e, t) {\n\tif (t !== void 0) return e.find((e) => e.value === t);\n}\nfunction h(...e) {\n\tlet t = Object.assign({}, ...e.filter(Boolean));\n\treturn Object.keys(t).length > 0 ? t : void 0;\n}\nfunction g(e) {\n\tswitch (e) {\n\t\tcase \"small\": return {\n\t\t\titemHeight: 30,\n\t\t\ttextFontSize: \"13px\",\n\t\t\tselectedTextFontSize: \"14px\"\n\t\t};\n\t\tcase \"large\": return {\n\t\t\titemHeight: 52,\n\t\t\ttextFontSize: \"20px\",\n\t\t\tselectedTextFontSize: \"22px\"\n\t\t};\n\t\tdefault: return {\n\t\t\titemHeight: 40,\n\t\t\ttextFontSize: \"16px\",\n\t\t\tselectedTextFontSize: \"18px\"\n\t\t};\n\t}\n}\nfunction _(_) {\n\tlet { items: v, value: y, defaultValue: b, onChange: x, visibleItems: S = 5, size: C, renderItem: w, labels: te, disabled: T = !1, theme: E, alpha: D, width: O } = _, k = d(), ne = E ? a(k ?? {}, E) : k, { props: A, nestedTheme: j } = o({\n\t\tcomponentName: \"WheelPicker\",\n\t\tglobalTheme: i(),\n\t\tlocalTheme: ne,\n\t\tknownComponents: r\n\t}), M = g(C ?? A.size ?? \"medium\"), N = A.itemHeight ?? M.itemHeight, P = S * N, F = Math.floor(S / 2), I = y !== void 0, L = y ?? b ?? v[0]?.value ?? \"\", [re, R] = u(L);\n\ts(() => {\n\t\tI && R(y ?? \"\");\n\t}, [I, y]);\n\tlet z = I ? y ?? \"\" : re, B = {\n\t\t...A.labels ?? {},\n\t\t...te ?? {}\n\t}, V = h({\n\t\tfontSize: M.textFontSize,\n\t\t...A.textColor ? { color: A.textColor } : {}\n\t}, A.textStyle), H = V, U = h(V, A.disabledTextStyle), W = F * N, G = c(() => v.map((e, t) => W + t * N), [\n\t\tv,\n\t\tW,\n\t\tN\n\t]), K = c(() => v.findIndex((e) => e.value === L), [v, L]), q = l(!1), J = c(() => v.findIndex((e) => e.value === z), [v, z]), Y = l(I ? z : void 0), [X, Z] = u(void 0), Q = c(() => {\n\t\tif (X !== void 0) return { snapIndex: X };\n\t\tif (!q.current) return q.current = !0, { snapIndex: K >= 0 ? K : 0 };\n\t\tif (I && z !== Y.current) return Y.current = z, { snapIndex: J >= 0 ? J : 0 };\n\t\tY.current = I ? z : void 0;\n\t}, [\n\t\tX,\n\t\tK,\n\t\tI,\n\t\tz,\n\t\tJ\n\t]), ie = (e, t) => {\n\t\tlet n = ee(v, e);\n\t\t!n || n.disabled || T || (t !== void 0 && Z(t), I || R(e), x?.(e));\n\t}, ae = (e) => {\n\t\tZ(void 0);\n\t\tlet t = v[e];\n\t\tt && !t.disabled && !T && (I || R(t.value), x?.(t.value));\n\t}, oe = (n, r) => {\n\t\tlet i = n.value === z, a = T || !!n.disabled, o = a ? U : i ? H : V, s = w?.({\n\t\t\titem: n,\n\t\t\tselected: i,\n\t\t\tdisabled: a,\n\t\t\tindex: r,\n\t\t\tdistanceFromCenter: 0,\n\t\t\t...o ? { textStyle: o } : {}\n\t\t});\n\t\treturn /* @__PURE__ */ p(t, {\n\t\t\twidth: \"fill\",\n\t\t\theight: N,\n\t\t\tdirection: \"row\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tpadding: A.itemPadding,\n\t\t\tenableGestures: !a,\n\t\t\tonTouch: () => ie(n.value, r),\n\t\t\tchildren: s ?? /* @__PURE__ */ p(e, {\n\t\t\t\ttext: n.label,\n\t\t\t\t...o ? { style: o } : {}\n\t\t\t})\n\t\t}, n.value);\n\t}, $ = T ? A.disabledAlpha ?? .5 : D, se = B.empty ?? \"No items\";\n\treturn /* @__PURE__ */ p(t, {\n\t\twidth: O ?? \"fill\",\n\t\theight: P,\n\t\toverflow: \"hidden\",\n\t\tcornerRadius: A.cornerRadius ?? 8,\n\t\tbackgroundColor: A.backgroundColor,\n\t\tbackgroundAlpha: A.backgroundAlpha,\n\t\tborderColor: A.borderColor,\n\t\tborderWidth: A.borderWidth,\n\t\tdirection: \"stack\",\n\t\t...$ === void 0 ? {} : { alpha: $ },\n\t\ttheme: j,\n\t\tchildren: v.length === 0 ? /* @__PURE__ */ p(t, {\n\t\t\twidth: \"fill\",\n\t\t\theight: \"fill\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tchildren: /* @__PURE__ */ p(e, {\n\t\t\t\ttext: se,\n\t\t\t\t...V ? { style: V } : {}\n\t\t\t})\n\t\t}) : /* @__PURE__ */ m(f, { children: [\n\t\t\t/* @__PURE__ */ m(n, {\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: \"fill\",\n\t\t\t\tshowVerticalSlider: !1,\n\t\t\t\tshowHorizontalSlider: !1,\n\t\t\t\tmomentum: !0,\n\t\t\t\t...Q ? { scroll: Q } : {},\n\t\t\t\tsnap: {\n\t\t\t\t\tpositions: G,\n\t\t\t\t\tthreshold: N\n\t\t\t\t},\n\t\t\t\tsnapAlignment: \"center\",\n\t\t\t\tonSnap: ae,\n\t\t\t\ttheme: j,\n\t\t\t\tchildren: [\n\t\t\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\theight: W\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\t\t\tdirection: \"column\",\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\ttheme: j,\n\t\t\t\t\t\tchildren: v.map(oe)\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\t\t\twidth: \"fill\",\n\t\t\t\t\t\theight: W\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t}),\n\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: F * N,\n\t\t\t\tbackgroundColor: A.backgroundColor ?? 0,\n\t\t\t\tbackgroundAlpha: A.overlayAlpha ?? .85,\n\t\t\t\ty: 0\n\t\t\t}),\n\t\t\t/* @__PURE__ */ p(t, {\n\t\t\t\twidth: \"fill\",\n\t\t\t\theight: F * N,\n\t\t\t\tbackgroundColor: A.backgroundColor ?? 0,\n\t\t\t\tbackgroundAlpha: A.overlayAlpha ?? .85,\n\t\t\t\ty: P - F * N\n\t\t\t})\n\t\t] })\n\t});\n}\n//#endregion\nexport { _ as WheelPicker };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { View as t } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Button as n } from \"./Button.js\";\nimport { Divider as r } from \"./Divider.js\";\nimport { MenuButton as i } from \"./MenuButton.js\";\nimport { KNOWN_COMPONENTS as a, getGlobalThemeDefaults as o, mergeThemes as s, resolveComponentTheme as c, useEffect as l, useState as u, useTheme as d } from \"@number10/jsx-core\";\nimport { Fragment as f, jsx as p, jsxs as m } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Toolbar.tsx\nfunction h(e) {\n\treturn e.type === \"separator\";\n}\nfunction g(e) {\n\treturn e.type === \"toggle\";\n}\nfunction _(e) {\n\treturn e.type === \"menu\";\n}\nfunction v(e, t) {\n\treturn h(e) ? e.id ?? `separator-${t}` : e.id;\n}\nfunction y(e, t) {\n\tif (t) return e.some((e) => !h(e) && e.id === t) ? t : void 0;\n}\nfunction b(e) {\n\treturn e.find((e) => g(e) && !!e.defaultPressed)?.id;\n}\nfunction x(...e) {\n\tlet t = Object.assign({}, ...e.filter(Boolean));\n\treturn Object.keys(t).length > 0 ? t : void 0;\n}\nfunction S(e) {\n\tif (Array.isArray(e)) return e.map((e) => S(e));\n\tif (!e || typeof e != \"object\" || !(\"type\" in e)) return e;\n\tlet t = e, n = { type: t.type };\n\treturn t.props !== void 0 && (n.props = { ...t.props }), t.children !== void 0 && (n.children = t.children.map((e) => S(e))), t.__key !== void 0 && (n.__key = t.__key), t.__addConfig !== void 0 && (n.__addConfig = { ...t.__addConfig }), t.__memo !== void 0 && (n.__memo = t.__memo), t.__theme !== void 0 && (n.__theme = t.__theme), t.__staticChildren !== void 0 && (n.__staticChildren = t.__staticChildren), n;\n}\nfunction C(C) {\n\tlet { items: w, activeId: T, defaultActiveId: E, onSelect: D, onToggle: ee, orientation: te, density: ne, showLabels: re, disabled: O = !1, labels: ie, theme: k, alpha: ae } = C, A = d(), j = k ? s(A ?? {}, k) : A, { props: M, nestedTheme: N } = c({\n\t\tcomponentName: \"Toolbar\",\n\t\tglobalTheme: o(),\n\t\tlocalTheme: j,\n\t\tknownComponents: a\n\t}), P = T !== void 0, [F, I] = u(y(w, T ?? E) ?? b(w)), L = P ? y(w, T) : y(w, F);\n\tl(() => {\n\t\t!P && F !== L && I(L);\n\t}, [\n\t\tP,\n\t\tF,\n\t\tL\n\t]);\n\tlet R = {\n\t\t...M.labels ?? {},\n\t\t...ie ?? {}\n\t}, z = te ?? M.orientation ?? \"horizontal\", B = ne ?? M.density ?? \"normal\", V = M[B === \"compact\" ? \"compactItemWidth\" : \"itemWidth\"] ?? M.itemWidth ?? 42, H = M[B === \"compact\" ? \"compactItemHeight\" : \"itemHeight\"] ?? M.itemHeight ?? 36, U = (B === \"compact\" ? M.compactButtonSize : void 0) ?? M.buttonSize ?? \"small\", W = (B === \"compact\" ? M.compactIconSize : void 0) ?? M.iconSize ?? 18, G = re ?? B !== \"compact\", K = G ? void 0 : V, q = O ? M.disabledAlpha ?? .55 : ae, J = M.textStyle ?? {\n\t\tcolor: \"#e2e8f0\",\n\t\tfontSize: \"13px\"\n\t}, Y = x(J, M.activeTextStyle), X = x(J, M.disabledTextStyle), Z = M.menuIndicatorStyle ?? {\n\t\tcolor: \"#94a3b8\",\n\t\tfontSize: \"10px\"\n\t}, oe = z === \"horizontal\" ? \"row\" : \"column\", Q = z === \"horizontal\" ? \"vertical\" : \"horizontal\", se = M.separatorLength ?? (z === \"horizontal\" ? H : V), ce = (e) => {\n\t\tif (!(O || e.disabled)) {\n\t\t\tif (g(e)) {\n\t\t\t\tlet t = !((e.pressed ?? L === e.id) && e.allowDeselect);\n\t\t\t\t!P && e.pressed === void 0 && I(t ? e.id : void 0), e.onToggle?.(t, e.id), ee?.(e.id, t, e);\n\t\t\t}\n\t\t\te.onSelect?.(e.id), D?.(e.id, e);\n\t\t}\n\t}, $ = (t, n, r) => {\n\t\tif (t.children) return S(t.children);\n\t\tlet i = t.showLabel ?? G, a = r ? X : n ? Y : J;\n\t\treturn /* @__PURE__ */ m(f, { children: [\n\t\t\tt.icon ? S(t.icon) : null,\n\t\t\ti && t.label ? /* @__PURE__ */ p(e, {\n\t\t\t\ttext: t.label,\n\t\t\t\t...a ? { style: a } : {}\n\t\t\t}) : null,\n\t\t\t_(t) ? /* @__PURE__ */ p(e, {\n\t\t\t\ttext: R.menuIndicator ?? \"v\",\n\t\t\t\t...Z ? { style: Z } : {}\n\t\t\t}) : null\n\t\t] });\n\t}, le = (e, a) => {\n\t\tlet o = v(e, a);\n\t\tif (h(e)) return /* @__PURE__ */ p(t, {\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\ttheme: N,\n\t\t\tchildren: /* @__PURE__ */ p(r, {\n\t\t\t\torientation: Q,\n\t\t\t\tlength: e.length ?? se,\n\t\t\t\tthickness: e.thickness ?? M.separatorThickness ?? 1,\n\t\t\t\tcolor: M.separatorColor ?? 4674921\n\t\t\t})\n\t\t}, o);\n\t\tlet c = O || !!e.disabled, l = g(e) ? e.pressed ?? L === e.id : L === e.id, u = e.buttonVariant ?? (l ? M.activeButtonVariant ?? \"primary\" : _(e) ? M.menuButtonVariant ?? M.buttonVariant ?? \"secondary\" : M.buttonVariant ?? \"secondary\"), d = c ? X : l ? Y : J, f = s(N, { Button: {\n\t\t\t...d ? { textStyle: d } : {},\n\t\t\t...W === void 0 ? {} : { iconSize: W }\n\t\t} });\n\t\treturn _(e) ? /* @__PURE__ */ p(i, {\n\t\t\titems: e.items ?? [],\n\t\t\tonSelect: () => {\n\t\t\t\te.onSelect?.(e.id), D?.(e.id, e);\n\t\t\t},\n\t\t\tplacement: z === \"horizontal\" ? \"bottom-start\" : \"right-start\",\n\t\t\tdisabled: c,\n\t\t\ttheme: f,\n\t\t\ttrigger: ({ isOpen: r }) => /* @__PURE__ */ p(n, {\n\t\t\t\tvariant: u,\n\t\t\t\tsize: e.buttonSize ?? U,\n\t\t\t\tdisabled: c,\n\t\t\t\twidth: K,\n\t\t\t\theight: H,\n\t\t\t\ttheme: f,\n\t\t\t\tchildren: /* @__PURE__ */ p(t, {\n\t\t\t\t\tdirection: \"row\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t\tgap: M.gap ?? 6,\n\t\t\t\t\tchildren: $(e, r, c)\n\t\t\t\t})\n\t\t\t})\n\t\t}, o) : /* @__PURE__ */ p(n, {\n\t\t\twidth: K,\n\t\t\theight: H,\n\t\t\tvariant: u,\n\t\t\tsize: e.buttonSize ?? U,\n\t\t\tdisabled: c,\n\t\t\tonClick: () => ce(e),\n\t\t\ttheme: f,\n\t\t\tchildren: /* @__PURE__ */ p(t, {\n\t\t\t\tdirection: \"row\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\tgap: M.gap ?? 6,\n\t\t\t\tchildren: $(e, l, c)\n\t\t\t})\n\t\t}, o);\n\t};\n\treturn /* @__PURE__ */ p(t, {\n\t\tdirection: oe,\n\t\talignItems: \"center\",\n\t\tgap: M.itemGap ?? 6,\n\t\tpadding: M.padding ?? 4,\n\t\tbackgroundColor: M.backgroundColor,\n\t\tbackgroundAlpha: M.backgroundAlpha,\n\t\tborderColor: M.borderColor,\n\t\tborderWidth: M.borderWidth,\n\t\tcornerRadius: M.cornerRadius,\n\t\t...q === void 0 ? {} : { alpha: q },\n\t\ttheme: N,\n\t\tchildren: w.map(le)\n\t});\n}\nfunction w(e) {\n\treturn /* @__PURE__ */ p(C, { ...e });\n}\n//#endregion\nexport { w as ToolButtonGroup, C as Toolbar, v as getToolbarItemId, _ as isToolbarMenuItem, h as isToolbarSeparatorItem, g as isToolbarToggleItem, y as resolveToolbarActiveId };\n","import { Text as e } from \"./primitives/Text.js\";\nimport { VectorDrawContent as t } from \"./primitives/VectorDrawContent.js\";\nimport { View as n } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Easing as r, KNOWN_COMPONENTS as i, createTween as ee, getGlobalThemeDefaults as a, mergeThemes as o, numberToRgb as s, resolveComponentTheme as te, rgbToNumber as c, useEffect as l, useRef as u, useState as d, useSurface as ne, useTheme as re } from \"@number10/jsx-core\";\nimport { jsx as f, jsxs as p } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/Toggle.tsx\nfunction m(e, t, n) {\n\tlet r = s(e), i = s(t);\n\treturn c(Math.round(r.r + (i.r - r.r) * n), Math.round(r.g + (i.g - r.g) * n), Math.round(r.b + (i.b - r.b) * n));\n}\nfunction h(s) {\n\tlet c = re(), h = s.theme ? o(c ?? {}, s.theme) : c, { props: g, nestedTheme: _ } = te({\n\t\tcomponentName: \"Toggle\",\n\t\tglobalTheme: a(),\n\t\tlocalTheme: h,\n\t\tknownComponents: i\n\t}), v = g.width ?? 50, y = g.height ?? 28, b = g.thumbSize ?? 24, ie = g.trackColorOff ?? 10066329, x = g.trackColorOn ?? 5025616, ae = g.trackBorderColorOff ?? 7829367, oe = g.trackBorderColorOn ?? x, S = g.trackBorderWidth ?? 1, C = g.thumbColor ?? 16777215, w = g.thumbBorderColor ?? 13751771, T = g.thumbBorderWidth ?? 1, se = g.disabledColor ?? 6710886, E = g.disabledAlpha ?? .5, D = g.padding ?? 2, O = g.duration ?? 200, k = g.gap ?? 8, A = s.labelPosition ?? g.labelPosition ?? \"right\", j = b / 2, M = y / 2, N = D + j, P = v - D - j, F = s.checked ?? !1, [I, ce] = d(F), L = u(F), [R, z] = d(!1), [B, V] = d(F ? P : N), H = u(F ? P : N), [U, W] = d(+!!F), G = u(+!!F), K = u(null), q = ne()?.scheduler ?? null, J = u(q);\n\tq && J.current !== q && (J.current = q), l(() => {\n\t\tL.current = I;\n\t}, [I]), l(() => {\n\t\tH.current = B;\n\t}, [B]), l(() => {\n\t\tG.current = U;\n\t}, [U]), l(() => {\n\t\ts.checked !== void 0 && s.checked !== L.current && Y(s.checked);\n\t}, [\n\t\ts.checked,\n\t\tN,\n\t\tP,\n\t\tO\n\t]), l(() => {\n\t\tR || (V(I ? P : N), W(+!!I));\n\t}, [\n\t\tI,\n\t\tN,\n\t\tP,\n\t\tR\n\t]), l(() => () => {\n\t\tK.current?.stop(), K.current = null;\n\t}, []);\n\tlet Y = (e) => {\n\t\tlet t = J.current, n = G.current, i = H.current, a = +!!e, o = e ? P : N;\n\t\tif (K.current?.stop(), K.current = null, z(!0), ce(e), !t) {\n\t\t\tW(a), V(o), z(!1);\n\t\t\treturn;\n\t\t}\n\t\tK.current = ee({\n\t\t\tprogress: n,\n\t\t\tx: i\n\t\t}, {\n\t\t\tto: {\n\t\t\t\tprogress: a,\n\t\t\t\tx: o\n\t\t\t},\n\t\t\tduration: O,\n\t\t\tease: r.cubicOut,\n\t\t\tonUpdate: (e) => {\n\t\t\t\tW(e.progress), V(e.x);\n\t\t\t},\n\t\t\tonComplete: () => {\n\t\t\t\tW(a), V(o), z(!1), K.current = null;\n\t\t\t}\n\t\t}, t);\n\t}, le = () => {\n\t\tif (s.disabled || R) return;\n\t\tlet e = !L.current;\n\t\tY(e), s.onChange?.(e);\n\t}, X = s.disabled ? m(se, x, U) : m(ie, x, U), Z = m(ae, oe, U), Q = /* @__PURE__ */ p(n, {\n\t\tdirection: \"stack\",\n\t\twidth: v,\n\t\theight: y,\n\t\tenableGestures: !s.disabled,\n\t\tonTouch: le,\n\t\talpha: s.disabled ? E : 1,\n\t\tchildren: [/* @__PURE__ */ f(t, {\n\t\t\twidth: v,\n\t\t\theight: y,\n\t\t\tdependencies: [\n\t\t\t\tv,\n\t\t\t\ty,\n\t\t\t\tX,\n\t\t\t\tZ,\n\t\t\t\tS\n\t\t\t],\n\t\t\tonDraw: (e) => {\n\t\t\t\tlet t = S / 2;\n\t\t\t\te.clear(), e.fillStyle(X, 1).fillRoundedRect(0, 0, v, y, M), S > 0 && e.lineStyle(S, Z, 1).strokeRoundedRect(t, t, v - S, y - S, Math.max(0, M - t));\n\t\t\t}\n\t\t}), /* @__PURE__ */ f(t, {\n\t\t\twidth: b,\n\t\t\theight: b,\n\t\t\tx: B,\n\t\t\ty: y / 2,\n\t\t\tdependencies: [\n\t\t\t\tb,\n\t\t\t\tC,\n\t\t\t\tw,\n\t\t\t\tT\n\t\t\t],\n\t\t\tonDraw: (e) => {\n\t\t\t\te.clear().fillStyle(C, 1).fillCircle(0, 0, j), T > 0 && e.lineStyle(T, w, 1).strokeCircle(0, 0, Math.max(0, j - T / 2));\n\t\t\t}\n\t\t})]\n\t}), $ = s.label && A !== \"none\" ? /* @__PURE__ */ f(e, {\n\t\ttext: s.label,\n\t\tstyle: g.labelStyle,\n\t\talpha: s.disabled ? E : 1\n\t}) : null;\n\treturn !s.label || A === \"none\" ? /* @__PURE__ */ p(n, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: k,\n\t\ttheme: _,\n\t\tchildren: [\n\t\t\ts.prefix,\n\t\t\tQ,\n\t\t\ts.suffix\n\t\t]\n\t}) : /* @__PURE__ */ p(n, {\n\t\tdirection: \"row\",\n\t\talignItems: \"center\",\n\t\tgap: k,\n\t\ttheme: _,\n\t\tchildren: [\n\t\t\tA === \"left\" && $,\n\t\t\ts.prefix,\n\t\t\tQ,\n\t\t\ts.suffix,\n\t\t\tA === \"right\" && $\n\t\t]\n\t});\n}\n//#endregion\nexport { h as Toggle };\n","import { View as e } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { jsx as t } from \"@number10/jsx-core/jsx-runtime\";\n//#region src/TransformOriginView.tsx\nfunction n({ originX: n = .5, originY: r = .5, width: i, height: a, x: o = 0, y: s = 0, children: c, rotation: l, scale: u, scaleX: d, scaleY: f, backgroundColor: p, backgroundAlpha: m, cornerRadius: h, borderWidth: g, borderColor: _, borderAlpha: v, ...y }) {\n\tif (typeof i != \"number\" || typeof a != \"number\") throw Error(\"TransformOriginView requires numeric width and height\");\n\tlet b = i * n, x = a * r, S = {};\n\treturn l !== void 0 && (S.rotation = l), u !== void 0 && (S.scale = u), d !== void 0 && (S.scaleX = d), f !== void 0 && (S.scaleY = f), p !== void 0 && (S.backgroundColor = p), m !== void 0 && (S.backgroundAlpha = m), h !== void 0 && (S.cornerRadius = h), g !== void 0 && (S.borderWidth = g), _ !== void 0 && (S.borderColor = _), v !== void 0 && (S.borderAlpha = v), /* @__PURE__ */ t(e, {\n\t\tx: o,\n\t\ty: s,\n\t\twidth: i,\n\t\theight: a,\n\t\tpadding: 0,\n\t\tdirection: \"stack\",\n\t\t...y,\n\t\tchildren: /* @__PURE__ */ t(e, {\n\t\t\tx: b,\n\t\t\ty: x,\n\t\t\twidth: i,\n\t\t\theight: a,\n\t\t\tpadding: 0,\n\t\t\tdirection: \"stack\",\n\t\t\t...S,\n\t\t\tchildren: /* @__PURE__ */ t(e, {\n\t\t\t\tx: -b,\n\t\t\t\ty: -x,\n\t\t\t\twidth: i,\n\t\t\t\theight: a,\n\t\t\t\tpadding: 0,\n\t\t\t\tdirection: \"stack\",\n\t\t\t\tbackgroundAlpha: 0,\n\t\t\t\tchildren: c\n\t\t\t})\n\t\t})\n\t});\n}\n//#endregion\nexport { n as TransformOriginView };\n","import { buildPortableThemeDefaults as e, createPortableThemeDefaults as t, registerPortableDefaults as n } from \"./theme-defaults.js\";\nimport { Sprite as r } from \"./primitives/Sprite.js\";\nimport { Text as i } from \"./primitives/Text.js\";\nimport { VectorDrawContent as a } from \"./primitives/VectorDrawContent.js\";\nimport { View as o } from \"./primitives/View.js\";\nimport \"./primitives.js\";\nimport { Accordion as s } from \"./Accordion.js\";\nimport { Button as c } from \"./Button.js\";\nimport { Portal as l } from \"./Portal.js\";\nimport { useOverlayPresence as u } from \"./useOverlayPresence.js\";\nimport { Modal as d } from \"./Modal.js\";\nimport { Dialog as f } from \"./Dialog.js\";\nimport { WrapText as p } from \"./WrapText.js\";\nimport { AlertDialog as m } from \"./AlertDialog.js\";\nimport { DEFAULT_LABELS as h, DebugPanel as g, PRESET_METRICS as _, formatDefault as v, summarizeMap as y } from \"./DebugPanel.js\";\nimport { ContextMenu as b, Popover as x, calculateOverlayPosition as S } from \"./Popover.js\";\nimport { TextInput as C } from \"./TextInput.js\";\nimport { ActivityIndicator as w } from \"./ActivityIndicator.js\";\nimport { Badge as T, Tag as E, formatBadgeCount as D, getBadgeText as O } from \"./Badge.js\";\nimport { BottomSheet as k, BottomSheetDepth as A, BottomSheetHandle as j } from \"./BottomSheet.js\";\nimport { Checkbox as M, getNextCheckedState as N, normalizeCheckedState as P } from \"./Checkbox.js\";\nimport { RadioButton as F } from \"./RadioButton.js\";\nimport { RadioGroup as I } from \"./RadioGroup.js\";\nimport { RangeSlider as L, Slider as R } from \"./Slider.js\";\nimport { ColorPicker as z } from \"./ColorPicker.js\";\nimport { Divider as B } from \"./Divider.js\";\nimport { Dropdown as V } from \"./Dropdown.js\";\nimport { Image as H } from \"./Image.js\";\nimport { Icon as U, createIconComponent as W, useIconPreload as G } from \"./Icon.js\";\nimport { Joystick as K } from \"./Joystick.js\";\nimport { ScrollSlider as q, calculateSliderSize as J } from \"./ScrollSlider.js\";\nimport { ScrollView as Y, resolveScrollViewLayout as X } from \"./ScrollView.js\";\nimport { ListBox as Z, findListBoxItem as Q, resolveListBoxValue as $ } from \"./ListBox.js\";\nimport { MenuButton as ee } from \"./MenuButton.js\";\nimport { NineSlice as te } from \"./NineSlice.js\";\nimport { NineSliceButton as ne } from \"./NineSliceButton.js\";\nimport { NumberInput as re, NumberInputIndicator as ie, getNextNumberInputValue as ae, getNumberInputPrecision as oe, normalizeNumberInputValue as se } from \"./NumberInput.js\";\nimport { PalettePicker as ce, chunkPalettePickerColors as le, getPalettePickerContrastColor as ue, normalizePalettePickerColor as de, normalizePalettePickerColors as fe, resolvePalettePickerValue as pe } from \"./PalettePicker.js\";\nimport { ProgressBar as me, clampProgressValue as he, getProgressRatio as ge } from \"./ProgressBar.js\";\nimport { ProgressView as _e } from \"./ProgressView.js\";\nimport { RatingBar as ve } from \"./RatingBar.js\";\nimport { SegmentedControl as ye, findSegmentedControlOption as be, isSegmentedControlOptionSelectable as xe, resolveSegmentedControlValue as Se } from \"./SegmentedControl.js\";\nimport { Sidebar as Ce } from \"./Sidebar.js\";\nimport { Tab as we, TabPanel as Te, Tabs as Ee } from \"./Tabs.js\";\nimport { NotificationStack as De, Toast as Oe, getToastAutoDismissDuration as ke, getToastContentWidth as Ae, resolveNotificationStackAlignment as je } from \"./Toast.js\";\nimport { WheelPicker as Me } from \"./WheelPicker.js\";\nimport { ToolButtonGroup as Ne, Toolbar as Pe, getToolbarItemId as Fe, isToolbarMenuItem as Ie, isToolbarSeparatorItem as Le, isToolbarToggleItem as Re, resolveToolbarActiveId as ze } from \"./Toolbar.js\";\nimport { Toggle as Be } from \"./Toggle.js\";\nimport { TransformOriginView as Ve } from \"./TransformOriginView.js\";\nimport { useAtlas as He, useState as Ue, useTexture as We, useThemeTokens as Ge } from \"@number10/jsx-core\";\n//#region src/index.ts\nn();\n//#endregion\nexport { s as Accordion, w as ActivityIndicator, m as AlertDialog, T as Badge, k as BottomSheet, A as BottomSheetDepth, j as BottomSheetHandle, c as Button, M as Checkbox, z as ColorPicker, b as ContextMenu, h as DEFAULT_LABELS, g as DebugPanel, f as Dialog, B as Divider, V as Dropdown, U as Icon, H as Image, K as Joystick, Z as ListBox, ee as MenuButton, d as Modal, te as NineSlice, ne as NineSliceButton, De as NotificationStack, re as NumberInput, ie as NumberInputIndicator, _ as PRESET_METRICS, ce as PalettePicker, x as Popover, l as Portal, me as ProgressBar, _e as ProgressView, F as RadioButton, I as RadioGroup, L as RangeSlider, ve as RatingBar, q as ScrollSlider, Y as ScrollView, ye as SegmentedControl, Ce as Sidebar, R as Slider, r as Sprite, we as Tab, Te as TabPanel, Ee as Tabs, E as Tag, i as Text, C as TextInput, Oe as Toast, Be as Toggle, Ne as ToolButtonGroup, Pe as Toolbar, Ve as TransformOriginView, a as VectorDrawContent, o as View, Me as WheelPicker, p as WrapText, e as buildPortableThemeDefaults, S as calculateOverlayPosition, J as calculateSliderSize, le as chunkPalettePickerColors, he as clampProgressValue, W as createIconComponent, t as createPortableThemeDefaults, Q as findListBoxItem, be as findSegmentedControlOption, D as formatBadgeCount, v as formatDefault, O as getBadgeText, N as getNextCheckedState, ae as getNextNumberInputValue, oe as getNumberInputPrecision, ue as getPalettePickerContrastColor, ge as getProgressRatio, ke as getToastAutoDismissDuration, Ae as getToastContentWidth, Fe as getToolbarItemId, xe as isSegmentedControlOptionSelectable, Ie as isToolbarMenuItem, Le as isToolbarSeparatorItem, Re as isToolbarToggleItem, P as normalizeCheckedState, se as normalizeNumberInputValue, de as normalizePalettePickerColor, fe as normalizePalettePickerColors, n as registerPortableDefaults, $ as resolveListBoxValue, je as resolveNotificationStackAlignment, pe as resolvePalettePickerValue, X as resolveScrollViewLayout, Se as resolveSegmentedControlValue, ze as resolveToolbarActiveId, y as summarizeMap, He as useAtlas, G as useIconPreload, u as useOverlayPresence, Ue as useState, We as useTexture, Ge as useThemeTokens };\n","import { registerComponentThemeDefaults, createTextStyleTokens } from \"@number10/jsx-core\";\nfunction registerPrimitiveDefaults(name) {\n  registerComponentThemeDefaults(name, () => ({ alpha: 1, visible: true }));\n}\nfunction registerTextDefaults(name) {\n  registerComponentThemeDefaults(name, (colors) => ({\n    text: \"\",\n    alpha: 1,\n    visible: true,\n    style: createTextStyleTokens(colors.text.DEFAULT.toString()).DEFAULT\n  }));\n}\nfunction registerPhaserThemeDefaults() {\n  registerPrimitiveDefaults(\"view\");\n  registerTextDefaults(\"text\");\n  registerPrimitiveDefaults(\"nineslice\");\n  registerPrimitiveDefaults(\"NineSlice\");\n  registerPrimitiveDefaults(\"graphics\");\n  registerPrimitiveDefaults(\"Graphics\");\n  registerPrimitiveDefaults(\"vectorDraw\");\n  registerPrimitiveDefaults(\"tilesprite\");\n  registerPrimitiveDefaults(\"TileSprite\");\n  registerPrimitiveDefaults(\"particles\");\n  registerPrimitiveDefaults(\"Particles\");\n  registerComponentThemeDefaults(\"NineSliceButton\", () => ({}));\n}\nregisterPhaserThemeDefaults();\n//# sourceMappingURL=theme-defaults.js.map\n","import { themeRegistry as themeRegistry$1, getThemedProps as getThemedProps$1, defaultTheme as defaultTheme$1, createDefaultTheme as createDefaultTheme$1, createTheme as createTheme$1, mergeThemes as mergeThemes$1 } from \"@number10/jsx-core\";\nimport { setThemeRemountHandler } from \"@number10/jsx-core\";\nimport \"@number10/jsx-components\";\nimport \"./theme-defaults.js\";\nconst themeRegistry = themeRegistry$1;\nconst defaultTheme = defaultTheme$1;\nfunction createDefaultTheme(presetName = \"oceanBlue\", mode = \"light\") {\n  return createDefaultTheme$1(presetName, mode);\n}\nfunction mergeThemes(base, override) {\n  return mergeThemes$1(base, override);\n}\nfunction createTheme(theme, colorPreset) {\n  return createTheme$1(theme, colorPreset);\n}\nfunction getThemedProps(componentName, localTheme, explicitProps) {\n  return getThemedProps$1(\n    componentName,\n    localTheme,\n    explicitProps\n  );\n}\nexport {\n  createDefaultTheme,\n  createTheme,\n  defaultTheme,\n  getThemedProps,\n  mergeThemes,\n  setThemeRemountHandler,\n  themeRegistry\n};\n//# sourceMappingURL=theme.js.map\n","import \"phaser\";\nimport { themeRegistry } from \"../../theme.js\";\nimport { createBackgroundImage } from \"../backgroundImage.js\";\nfunction getTooltipTheme() {\n  return themeRegistry.getComponentTheme(\"Tooltip\");\n}\nconst tooltipStates = /* @__PURE__ */ new Map();\nfunction calculateTooltipPosition(targetBounds, position, offset, tooltipWidth, tooltipHeight) {\n  const viewport = {\n    width: window.innerWidth,\n    height: window.innerHeight\n  };\n  let x = 0;\n  let y = 0;\n  switch (position) {\n    case \"top\":\n      x = targetBounds.centerX - tooltipWidth / 2;\n      y = targetBounds.top - tooltipHeight - offset;\n      break;\n    case \"bottom\":\n      x = targetBounds.centerX - tooltipWidth / 2;\n      y = targetBounds.bottom + offset;\n      break;\n    case \"left\":\n      x = targetBounds.left - tooltipWidth - offset;\n      y = targetBounds.centerY - tooltipHeight / 2;\n      break;\n    case \"right\":\n      x = targetBounds.right + offset;\n      y = targetBounds.centerY - tooltipHeight / 2;\n      break;\n  }\n  x = Math.max(8, Math.min(x, viewport.width - tooltipWidth - 8));\n  y = Math.max(8, Math.min(y, viewport.height - tooltipHeight - 8));\n  return { x, y };\n}\nfunction showTooltip(scene, container, config) {\n  const state = tooltipStates.get(container);\n  if (!state || state.isVisible) return;\n  state.isVisible = true;\n  state.currentConfig = config;\n  const tooltipTheme = getTooltipTheme();\n  const position = config.position ?? tooltipTheme.position ?? \"top\";\n  const offset = config.offset ?? tooltipTheme.offset ?? 8;\n  const content = config.content;\n  const targetBounds = container.getBounds();\n  const textStyle = tooltipTheme.textStyle ?? {\n    fontSize: \"14px\",\n    fontFamily: \"Arial\",\n    color: \"#ffffff\",\n    padding: { x: 8, y: 4 }\n  };\n  const { backgroundColor: bgColor, ...styleWithoutBg } = textStyle;\n  const text = scene.add.text(\n    0,\n    0,\n    content,\n    styleWithoutBg\n  );\n  text.setOrigin(0.5);\n  const padding = textStyle.padding ?? { x: 8, y: 4 };\n  const paddingX = typeof padding === \"number\" ? padding : padding.x ?? 8;\n  const paddingY = typeof padding === \"number\" ? padding : padding.y ?? 4;\n  const textWidth = text.width;\n  const textHeight = text.height;\n  const bgWidth = textWidth + paddingX * 2;\n  const bgHeight = textHeight + paddingY * 2;\n  const bg = bgColor ?? \"#000000dd\";\n  let fillColor = 0;\n  let fillAlpha = 0.87;\n  if (typeof bg === \"string\") {\n    if (bg.startsWith(\"#\")) {\n      const hex = bg.slice(1);\n      if (hex.length === 8) {\n        fillColor = parseInt(hex.slice(0, 6), 16);\n        fillAlpha = parseInt(hex.slice(6, 8), 16) / 255;\n      } else if (hex.length === 6) {\n        fillColor = parseInt(hex, 16);\n        fillAlpha = 1;\n      }\n    }\n  }\n  const background = createBackgroundImage(\n    scene,\n    {\n      backgroundColor: fillColor,\n      backgroundAlpha: fillAlpha,\n      cornerRadius: tooltipTheme.cornerRadius ?? 6\n    },\n    bgWidth,\n    bgHeight\n  );\n  if (!background) {\n    text.destroy();\n    return;\n  }\n  background.setOrigin(0.5, 0.5);\n  const tooltipContainer = scene.add.container(0, 0, [background, text]);\n  tooltipContainer.setDepth(1e4);\n  const textBounds = tooltipContainer.getBounds();\n  const pos = calculateTooltipPosition(\n    targetBounds,\n    position,\n    offset,\n    textBounds.width,\n    textBounds.height\n  );\n  const themeAnim = tooltipTheme.animation || {};\n  const anim = config.animation || {};\n  const fadeInDuration = anim.fadeIn ?? themeAnim.fadeIn ?? 200;\n  const moveOffset = {\n    dx: anim.move?.dx ?? themeAnim.move?.dx ?? 0,\n    dy: anim.move?.dy ?? themeAnim.move?.dy ?? 0\n  };\n  const pulse = anim.pulse ?? themeAnim.pulse ?? false;\n  const pulseScale = anim.pulseScale ?? [0.75, 1.25];\n  tooltipContainer.setPosition(\n    pos.x + textBounds.width / 2 - moveOffset.dx,\n    pos.y + textBounds.height / 2 - moveOffset.dy\n  );\n  tooltipContainer.setAlpha(0);\n  state.tooltip = tooltipContainer;\n  const fadeTween = scene.tweens.add({\n    targets: tooltipContainer,\n    alpha: 1,\n    x: pos.x + textBounds.width / 2,\n    y: pos.y + textBounds.height / 2,\n    duration: fadeInDuration,\n    ease: \"Cubic.Out\"\n  });\n  state.activeTweens.push(fadeTween);\n  if (pulse) {\n    const pulseTween = scene.tweens.add({\n      targets: tooltipContainer,\n      scale: { from: pulseScale[0], to: pulseScale[1] },\n      duration: 600,\n      yoyo: true,\n      repeat: -1,\n      ease: \"Sine.InOut\"\n    });\n    state.activeTweens.push(pulseTween);\n  }\n  if (config.autoDismiss && config.autoDismiss > 0) {\n    state.autoDismissTimer = setTimeout(() => {\n      hideTooltip(container);\n    }, config.autoDismiss);\n  }\n}\nfunction hideTooltip(container) {\n  const state = tooltipStates.get(container);\n  if (!state || !state.isVisible) return;\n  state.isVisible = false;\n  const config = state.currentConfig;\n  state.currentConfig = null;\n  if (state.autoDismissTimer) {\n    clearTimeout(state.autoDismissTimer);\n    state.autoDismissTimer = null;\n  }\n  if (!state.tooltip) return;\n  const tooltip = state.tooltip;\n  const scene = tooltip.scene;\n  const tooltipTheme = getTooltipTheme();\n  const themeAnim = tooltipTheme.animation || {};\n  const anim = config?.animation || {};\n  const fadeOutDuration = anim.fadeOut ?? themeAnim.fadeOut ?? 200;\n  state.activeTweens.forEach((tween) => tween.stop());\n  state.activeTweens = [];\n  scene.tweens.add({\n    targets: tooltip,\n    alpha: 0,\n    duration: fadeOutDuration,\n    ease: \"Cubic.In\",\n    onComplete: () => {\n      tooltip.destroy();\n    }\n  });\n  state.tooltip = null;\n}\nfunction applyTooltip(scene, container, nextCallback, existingOnHoverStart, existingOnHoverEnd) {\n  if (!tooltipStates.has(container)) {\n    tooltipStates.set(container, {\n      isVisible: false,\n      tooltip: null,\n      activeTweens: [],\n      showTimer: null,\n      hideTimer: null,\n      autoDismissTimer: null,\n      currentConfig: null\n    });\n    container.once(\"destroy\", () => {\n      const state2 = tooltipStates.get(container);\n      if (state2) {\n        if (state2.showTimer) clearTimeout(state2.showTimer);\n        if (state2.hideTimer) clearTimeout(state2.hideTimer);\n        if (state2.autoDismissTimer) clearTimeout(state2.autoDismissTimer);\n        state2.activeTweens.forEach((tween) => tween.stop());\n        hideTooltip(container);\n        tooltipStates.delete(container);\n      }\n    });\n  }\n  const state = tooltipStates.get(container);\n  if (!state) {\n    throw new Error(\"applyTooltip: state not initialized\");\n  }\n  const tooltipTheme = getTooltipTheme();\n  const onHoverStart = (data) => {\n    if (existingOnHoverStart) existingOnHoverStart(data);\n    if (!nextCallback) return;\n    const result = nextCallback();\n    if (!result) return;\n    const config = typeof result === \"string\" ? { content: result } : result;\n    if (config.disabled) return;\n    if (state.hideTimer) {\n      clearTimeout(state.hideTimer);\n      state.hideTimer = null;\n    }\n    if (state.autoDismissTimer) {\n      clearTimeout(state.autoDismissTimer);\n      state.autoDismissTimer = null;\n    }\n    const showDelay = config.showDelay ?? tooltipTheme.showDelay ?? 500;\n    state.showTimer = setTimeout(() => {\n      showTooltip(scene, container, config);\n    }, showDelay);\n  };\n  const onHoverEnd = (data) => {\n    if (existingOnHoverEnd) existingOnHoverEnd(data);\n    if (state.showTimer) {\n      clearTimeout(state.showTimer);\n      state.showTimer = null;\n    }\n    const hideDelay = state.currentConfig?.hideDelay ?? tooltipTheme.hideDelay ?? 0;\n    if (hideDelay > 0) {\n      state.hideTimer = setTimeout(() => {\n        hideTooltip(container);\n      }, hideDelay);\n    } else {\n      hideTooltip(container);\n    }\n  };\n  return { onHoverStart, onHoverEnd };\n}\nexport {\n  applyTooltip\n};\n//# sourceMappingURL=applyTooltip.js.map\n","import { createBackgroundImage } from \"../backgroundImage.js\";\nfunction createBackground(scene, container, props) {\n  const hasBackground = props.backgroundColor !== void 0;\n  const hasBorder = (props.borderWidth ?? 0) > 0 && props.borderColor !== void 0;\n  const hasAdvanced = props.border !== void 0 && (typeof props.border.width === \"number\" ? props.border.width > 0 : true);\n  if (hasBackground || hasBorder || hasAdvanced) {\n    const width = typeof props.width === \"number\" ? props.width : 100;\n    const height = typeof props.height === \"number\" ? props.height : 100;\n    const background = createBackgroundImage(scene, props, width, height);\n    if (!background) return;\n    container.addAt(background, 0);\n    container.__background = background;\n  }\n}\nexport {\n  createBackground\n};\n//# sourceMappingURL=createBackground.js.map\n","import * as Phaser from \"phaser\";\nimport { getGestureManager } from \"../../gestures/gesture-manager.js\";\nfunction createGestures(scene, container, props) {\n  const hasAnyGesture = !!(props.onTouch || props.onTouchOutside || props.onTouchMove || props.onDoubleTap || props.onLongPress || props.onHoverStart || props.onHoverEnd || props.onWheel);\n  const shouldEnable = hasAnyGesture && props.enableGestures !== false;\n  if (!shouldEnable) {\n    return;\n  }\n  const manager = getGestureManager(scene);\n  const containerWithLayout = container;\n  const { width, height } = containerWithLayout.__getLayoutSize ? containerWithLayout.__getLayoutSize() : (() => {\n    const bounds = container.getBounds();\n    return { width: bounds.width || 100, height: bounds.height || 100 };\n  })();\n  const hitArea = new Phaser.Geom.Rectangle(0, 0, width, height);\n  const callbacks = {};\n  if (props.onTouch) callbacks.onTouch = props.onTouch;\n  if (props.onTouchOutside) callbacks.onTouchOutside = props.onTouchOutside;\n  if (props.onTouchMove) callbacks.onTouchMove = props.onTouchMove;\n  if (props.onDoubleTap) callbacks.onDoubleTap = props.onDoubleTap;\n  if (props.onLongPress) callbacks.onLongPress = props.onLongPress;\n  if (props.onHoverStart) callbacks.onHoverStart = props.onHoverStart;\n  if (props.onHoverEnd) callbacks.onHoverEnd = props.onHoverEnd;\n  if (props.onWheel) callbacks.onWheel = props.onWheel;\n  const config = {};\n  if (props.longPressDuration !== void 0) config.longPressDuration = props.longPressDuration;\n  if (props.doubleTapDelay !== void 0) config.doubleTapDelay = props.doubleTapDelay;\n  if (props.maxTouchDuration !== void 0) config.maxTouchDuration = props.maxTouchDuration;\n  manager.registerContainer(container, callbacks, hitArea, config);\n}\nexport {\n  createGestures\n};\n//# sourceMappingURL=createGestures.js.map\n","import { normalizeGap, getChildSize, parseSize, resolveSize } from \"@number10/jsx-core\";\nimport \"../../layout/phaser-layout-bridge.js\";\nfunction createLayout(container, props) {\n  container.__layoutProps = props;\n  container.__getLayoutSize = () => {\n    const currentProps = container.__layoutProps ?? props;\n    const children = container.list;\n    const direction = currentProps.direction ?? \"column\";\n    const paddingRaw = currentProps.padding ?? {};\n    const padding = typeof paddingRaw === \"number\" ? { left: paddingRaw, top: paddingRaw, right: paddingRaw, bottom: paddingRaw } : paddingRaw;\n    const paddingLeft = padding.left ?? 0;\n    const paddingTop = padding.top ?? 0;\n    const paddingRight = padding.right ?? 0;\n    const paddingBottom = padding.bottom ?? 0;\n    const gapNormalized = normalizeGap(currentProps.gap);\n    let maxWidth = 0;\n    let maxHeight = 0;\n    let totalMainSize = 0;\n    let childCount = 0;\n    for (const child of children) {\n      if (child.__isBackground) {\n        continue;\n      }\n      childCount++;\n      const marginRaw = child.__layoutProps?.margin ?? {};\n      const margin = typeof marginRaw === \"number\" ? { top: marginRaw, right: marginRaw, bottom: marginRaw, left: marginRaw } : marginRaw;\n      const marginTop = margin.top ?? 0;\n      const marginBottom = margin.bottom ?? 0;\n      const marginLeft = margin.left ?? 0;\n      const marginRight = margin.right ?? 0;\n      const childSize = getChildSize(child);\n      if (direction === \"row\") {\n        totalMainSize += marginLeft + childSize.width + marginRight;\n        const childTotalHeight = marginTop + childSize.height + marginBottom;\n        maxHeight = Math.max(maxHeight, childTotalHeight);\n      } else {\n        const childTotalWidth = marginLeft + childSize.width + marginRight;\n        maxWidth = Math.max(maxWidth, childTotalWidth);\n        totalMainSize += marginTop + childSize.height + marginBottom;\n      }\n    }\n    if (childCount > 1) {\n      const gapValue = direction === \"row\" ? gapNormalized.horizontal : gapNormalized.vertical;\n      totalMainSize += gapValue * (childCount - 1);\n    }\n    const defaultWidth = direction === \"row\" ? totalMainSize + paddingLeft + paddingRight : maxWidth + paddingLeft + paddingRight;\n    const defaultHeight = direction === \"row\" ? maxHeight + paddingTop + paddingBottom : totalMainSize + paddingTop + paddingBottom;\n    const parsedWidth = parseSize(currentProps.width);\n    const finalWidth = resolveSize(parsedWidth, void 0, defaultWidth);\n    const parsedHeight = parseSize(currentProps.height);\n    const finalHeight = resolveSize(parsedHeight, void 0, defaultHeight);\n    return {\n      width: finalWidth,\n      height: finalHeight\n    };\n  };\n}\nexport {\n  createLayout\n};\n//# sourceMappingURL=createLayout.js.map\n","import { DebugLogger } from \"@number10/jsx-core\";\nimport \"phaser\";\nimport { applyBackgroundProps } from \"../appliers/applyBackground.js\";\nimport { applyGesturesProps } from \"../appliers/applyGestures.js\";\nimport { applyLayoutProps } from \"../appliers/applyLayout.js\";\nimport { applyPhaserProps } from \"../appliers/applyPhaser.js\";\nimport { applyTooltip } from \"../appliers/applyTooltip.js\";\nimport { applyTransformProps } from \"../appliers/applyTransform.js\";\nimport { createBackground } from \"../creators/createBackground.js\";\nimport { createGestures } from \"../creators/createGestures.js\";\nimport { createLayout } from \"../creators/createLayout.js\";\nimport { createPhaser } from \"../creators/createPhaser.js\";\nimport { resolveAnimatableNumber, createTransform } from \"../creators/createTransform.js\";\nfunction normalizeBackgroundProps(props) {\n  const bgProps = props;\n  const hasBackground = bgProps.backgroundColor !== void 0;\n  const hasBorder = bgProps.borderColor !== void 0;\n  if (!hasBackground && !hasBorder) {\n    return props;\n  }\n  const normalized = { ...props };\n  if (hasBackground && bgProps.backgroundAlpha === void 0) {\n    normalized.backgroundAlpha = 1;\n  }\n  if (hasBorder) {\n    if (bgProps.borderWidth === void 0 || bgProps.borderWidth === 0) {\n      normalized.borderWidth = 1;\n    }\n    if (bgProps.borderAlpha === void 0 || bgProps.borderAlpha === 0) {\n      normalized.borderAlpha = 1;\n    }\n  }\n  return normalized;\n}\nconst viewCreator = (scene, props) => {\n  if (props.backgroundColor !== void 0 || props.cornerRadius !== void 0) {\n    DebugLogger.log(\"theme\", \"View Creator - Props received:\", {\n      backgroundColor: props.backgroundColor,\n      cornerRadius: props.cornerRadius,\n      width: props.width,\n      height: props.height\n    });\n  }\n  const normalizedProps = normalizeBackgroundProps(props);\n  const container = scene.add.container(\n    resolveAnimatableNumber(normalizedProps.x) ?? 0,\n    resolveAnimatableNumber(normalizedProps.y) ?? 0\n  );\n  createTransform(container, normalizedProps);\n  createPhaser(container, normalizedProps);\n  createBackground(\n    scene,\n    container,\n    normalizedProps\n  );\n  createLayout(container, normalizedProps);\n  if (normalizedProps.onTooltip) {\n    const handlers = applyTooltip(\n      scene,\n      container,\n      normalizedProps.onTooltip,\n      normalizedProps.onHoverStart,\n      normalizedProps.onHoverEnd\n    );\n    normalizedProps.onHoverStart = handlers.onHoverStart;\n    normalizedProps.onHoverEnd = handlers.onHoverEnd;\n  }\n  createGestures(scene, container, normalizedProps);\n  DebugLogger.log(\n    \"layout\",\n    \"View creator storing __layoutProps with padding:\",\n    normalizedProps.padding\n  );\n  return container;\n};\nconst viewPatcher = (node, prev, next) => {\n  const normalizedPrev = normalizeBackgroundProps(prev);\n  const normalizedNext = normalizeBackgroundProps(next);\n  applyTransformProps(node, normalizedPrev, normalizedNext);\n  applyPhaserProps(node, normalizedPrev, normalizedNext);\n  const container = node;\n  applyBackgroundProps(container, normalizedPrev, normalizedNext);\n  if (container.scene && container.scene.data) {\n    if (normalizedNext.onTooltip) {\n      const handlers = applyTooltip(\n        container.scene,\n        container,\n        normalizedNext.onTooltip,\n        normalizedNext.onHoverStart,\n        normalizedNext.onHoverEnd\n      );\n      normalizedNext.onHoverStart = handlers.onHoverStart;\n      normalizedNext.onHoverEnd = handlers.onHoverEnd;\n    }\n  }\n  if (container.scene && container.scene.data) {\n    applyGesturesProps(container.scene, container, normalizedPrev, normalizedNext);\n  }\n  applyLayoutProps(container, normalizedPrev, normalizedNext);\n};\nexport {\n  viewCreator,\n  viewPatcher\n};\n//# sourceMappingURL=view.js.map\n","import { register } from \"../host.js\";\nimport { graphicsPatcher, graphicsCreator } from \"./primitives/graphics.js\";\nimport { imagePatcher, imageCreator } from \"./primitives/image.js\";\nimport { nineSlicePatcher, nineSliceCreator } from \"./primitives/nineslice.js\";\nimport { particlesPatcher, particlesCreator } from \"./primitives/particles.js\";\nimport { spritePatcher, spriteCreator } from \"./primitives/sprite.js\";\nimport { textPatcher, textCreator } from \"./primitives/text.js\";\nimport { tileSpritePatcher, tileSpriteCreator } from \"./primitives/tilesprite.js\";\nimport { vectorDrawPatcher, vectorDrawCreator } from \"./primitives/vectorDraw.js\";\nimport { viewPatcher, viewCreator } from \"./primitives/view.js\";\nfunction registerBuiltins() {\n  register(\"view\", { create: viewCreator, patch: viewPatcher });\n  register(\"text\", { create: textCreator, patch: textPatcher });\n  register(\"nineslice\", { create: nineSliceCreator, patch: nineSlicePatcher });\n  register(\"particles\", { create: particlesCreator, patch: particlesPatcher });\n  register(\"sprite\", { create: spriteCreator, patch: spritePatcher });\n  register(\"image\", { create: imageCreator, patch: imagePatcher });\n  register(\"graphics\", { create: graphicsCreator, patch: graphicsPatcher });\n  register(\"vectorDraw\", { create: vectorDrawCreator, patch: vectorDrawPatcher });\n  register(\"tilesprite\", { create: tileSpriteCreator, patch: tileSpritePatcher });\n  register(\"View\", { create: viewCreator, patch: viewPatcher });\n  register(\"Text\", { create: textCreator, patch: textPatcher });\n  register(\"NineSlice\", { create: nineSliceCreator, patch: nineSlicePatcher });\n  register(\"Particles\", { create: particlesCreator, patch: particlesPatcher });\n  register(\"Sprite\", { create: spriteCreator, patch: spritePatcher });\n  register(\"Image\", { create: imageCreator, patch: imagePatcher });\n  register(\"Graphics\", { create: graphicsCreator, patch: graphicsPatcher });\n  register(\"TileSprite\", { create: tileSpriteCreator, patch: tileSpritePatcher });\n}\nexport {\n  registerBuiltins\n};\n//# sourceMappingURL=index.js.map\n","import { DeferredLayoutQueue } from \"@number10/jsx-core\";\nimport { isPhaserScene, isPhaserContainer } from \"./utils/phaser-guards.js\";\nclass RenderContext {\n  // @migration(audit:surface-access) Phase 7 — textureScene still needed for SVG/texture loading\n  constructor(scene) {\n    this.scene = scene;\n    this.textureScene = scene;\n  }\n  scene;\n  // Hook context stack (replaces global CURRENT)\n  currentCtx = null;\n  // Texture management per mount\n  textureScene = null;\n  textures = /* @__PURE__ */ new Map();\n  // Track if context is shutting down\n  isShuttingDown = false;\n  /**\n   * Check if context is shutting down\n   */\n  isShutdown() {\n    return this.isShuttingDown;\n  }\n  /**\n   * Mark context as shutting down\n   */\n  shutdown() {\n    this.isShuttingDown = true;\n  }\n  /**\n   * Get current hook context\n   */\n  getCurrent() {\n    return this.currentCtx;\n  }\n  /**\n   * Set current hook context\n   */\n  setCurrent(ctx) {\n    this.currentCtx = ctx;\n  }\n  /**\n   * Get texture scene.\n   * @migration(audit:surface-access) Phase 7 — Capability \"textures\", renderer-native for now\n   */\n  getTextureScene() {\n    return this.textureScene;\n  }\n  /**\n   * Get textures map\n   */\n  getTextures() {\n    return this.textures;\n  }\n  /**\n   * Defer a layout callback to next frame.\n   * Delegates to Core's DeferredLayoutQueue with a shutdown guard.\n   */\n  deferLayout(callback) {\n    if (this.isShuttingDown) return;\n    DeferredLayoutQueue.defer(callback);\n  }\n}\nconst contextStore = /* @__PURE__ */ new WeakMap();\nconst shutdownScenes = /* @__PURE__ */ new WeakSet();\nfunction getRenderContext(parentOrScene) {\n  const scene = isPhaserScene(parentOrScene) ? parentOrScene : parentOrScene.scene;\n  if (!scene || !scene.sys || !scene.sys.settings.active) {\n    throw new Error(\"getRenderContext: Invalid scene or inactive scene\");\n  }\n  const containerKey = isPhaserContainer(parentOrScene) ? `__rc_${parentOrScene.id ?? \"container\"}__` : \"__rc_scene__\";\n  let sceneContexts = contextStore.get(scene);\n  if (!sceneContexts) {\n    sceneContexts = /* @__PURE__ */ new Map();\n    contextStore.set(scene, sceneContexts);\n  }\n  let context = sceneContexts.get(containerKey);\n  if (!context) {\n    context = new RenderContext(scene);\n    sceneContexts.set(containerKey, context);\n    if (!shutdownScenes.has(scene)) {\n      shutdownScenes.add(scene);\n      scene.events.once(\"shutdown\", () => {\n        const contexts = contextStore.get(scene);\n        if (contexts) {\n          for (const [, ctx] of contexts) {\n            ctx.shutdown();\n          }\n          contextStore.delete(scene);\n        }\n      });\n    }\n  }\n  return context;\n}\nfunction getContextFromParent(parent) {\n  if (!parent) {\n    throw new Error(\"getContextFromParent: Parent is null or undefined\");\n  }\n  return getRenderContext(parent);\n}\nexport {\n  RenderContext,\n  getContextFromParent,\n  getRenderContext\n};\n//# sourceMappingURL=render-context.js.map\n","import { normalizeVNodeLike, createElement } from \"@number10/jsx-core/vdom\";\nfunction SceneWrapper(props) {\n  const { width, height, children } = props;\n  const child = normalizeVNodeLike(children);\n  return child ? createElement(\"View\", { width, height }, child) : createElement(\"View\", { width, height });\n}\nexport {\n  SceneWrapper\n};\n//# sourceMappingURL=SceneWrapper.js.map\n","import { defaultRadiusTokens, defaultSizeTokens, defaultSpacingTokens, createTextStyleTokens, getPresetWithMode, createDesignTokens } from \"@number10/jsx-core\";\nimport { themeRegistry } from \"../theme.js\";\nfunction resolveThemeTokens(localTheme) {\n  if (localTheme?.__colorPreset) {\n    const preset = getPresetWithMode(\n      localTheme.__colorPreset.name,\n      localTheme.__colorPreset.mode ?? \"light\"\n    );\n    return createDesignTokens(preset);\n  }\n  const colors = themeRegistry.getColorTokens();\n  if (colors) {\n    return {\n      colors,\n      textStyles: createTextStyleTokens(colors.text.DEFAULT.toString()),\n      spacing: defaultSpacingTokens,\n      sizes: defaultSizeTokens,\n      radius: defaultRadiusTokens\n    };\n  }\n  const fallback = getPresetWithMode(\"oceanBlue\", \"light\");\n  return createDesignTokens(fallback);\n}\nexport {\n  resolveThemeTokens\n};\n//# sourceMappingURL=resolve-theme-tokens.js.map\n","import * as Phaser from \"phaser\";\nimport { resolveThemeTokens } from \"./design-tokens/resolve-theme-tokens.js\";\nimport { getGestureManager } from \"./gestures/gesture-manager.js\";\nimport { isPhaserScene } from \"./utils/phaser-guards.js\";\nclass PhaserScheduler {\n  constructor(scene) {\n    this.scene = scene;\n  }\n  scene;\n  requestAnimationFrame(callback) {\n    const handler = (_time, delta) => callback(delta);\n    this.scene.events.once(\"update\", handler);\n    return {\n      cancel: () => this.scene.events.off(\"update\", handler)\n    };\n  }\n  onFrame(callback) {\n    const handler = (_time, delta) => callback(delta);\n    this.scene.events.on(\"update\", handler);\n    return {\n      cancel: () => this.scene.events.off(\"update\", handler)\n    };\n  }\n  setTimeout(callback, delay) {\n    const timer = this.scene.time.addEvent({\n      delay,\n      callback,\n      loop: false\n    });\n    return { cancel: () => timer.destroy() };\n  }\n  setInterval(callback, interval) {\n    const timer = this.scene.time.addEvent({\n      delay: interval,\n      callback,\n      loop: true\n    });\n    return { cancel: () => timer.destroy() };\n  }\n}\nconst PHASER_CAPABILITIES = /* @__PURE__ */ new Set([\n  \"gesture\",\n  \"input\",\n  \"textures\",\n  \"svg-textures\",\n  \"clipping\",\n  \"effects\",\n  \"fx\"\n]);\nconst viewportRegistry = {};\nfunction toFiniteNumber(value) {\n  return typeof value === \"number\" && Number.isFinite(value) ? value : void 0;\n}\nclass PhaserTextureResolver {\n  constructor(scene) {\n    this.scene = scene;\n  }\n  scene;\n  async load(key, url) {\n    if (this.scene.textures.exists(key)) return;\n    return new Promise((resolve) => {\n      this.scene.load.image(key, url);\n      this.scene.load.once(\"complete\", () => resolve());\n      if (!this.scene.load.isLoading()) {\n        this.scene.load.start();\n      }\n    });\n  }\n  async loadAtlas(key, imageUrl, dataUrl) {\n    if (this.scene.textures.exists(key)) return;\n    return new Promise((resolve) => {\n      this.scene.load.atlas(key, imageUrl, dataUrl);\n      this.scene.load.once(\"complete\", () => resolve());\n      if (!this.scene.load.isLoading()) {\n        this.scene.load.start();\n      }\n    });\n  }\n  async loadSVG(key, svg, width, height) {\n    if (this.scene.textures.exists(key)) return;\n    const { textureRegistry } = await import(\"./utils/texture-registry.js\");\n    await textureRegistry.requestTexture(this.scene, { key, svg, width, height });\n  }\n  isLoaded(key) {\n    return this.scene.textures.exists(key);\n  }\n  getFrameNames(key) {\n    const texture = this.scene.textures.get(key);\n    if (!texture) return [];\n    const frameNames = typeof texture.getFrameNames === \"function\" ? texture.getFrameNames() : texture.frames ? Object.keys(texture.frames) : [];\n    return frameNames.filter((name) => name !== \"__BASE\" && name !== \"__MISSING\");\n  }\n  getFrameRect(key, frame) {\n    const f = this.scene.textures.getFrame(key, frame);\n    if (!f) return void 0;\n    return { x: f.cutX, y: f.cutY, width: f.cutWidth, height: f.cutHeight };\n  }\n  getFrameInfo(key, frame) {\n    const f = this.scene.textures.getFrame(key, frame);\n    if (!f) return void 0;\n    const sourceWidth = toFiniteNumber(f.sourceSizeW) ?? toFiniteNumber(f.realWidth);\n    const sourceHeight = toFiniteNumber(f.sourceSizeH) ?? toFiniteNumber(f.realHeight);\n    const spriteX = toFiniteNumber(f.x);\n    const spriteY = toFiniteNumber(f.y);\n    const spriteW = toFiniteNumber(f.width) ?? toFiniteNumber(f.cutWidth);\n    const spriteH = toFiniteNumber(f.height) ?? toFiniteNumber(f.cutHeight);\n    return {\n      name: frame,\n      rect: {\n        x: toFiniteNumber(f.cutX) ?? 0,\n        y: toFiniteNumber(f.cutY) ?? 0,\n        width: toFiniteNumber(f.cutWidth) ?? 0,\n        height: toFiniteNumber(f.cutHeight) ?? 0\n      },\n      rotated: f.rotated === true,\n      trimmed: f.trimmed === true,\n      sourceSize: sourceWidth !== void 0 && sourceHeight !== void 0 ? { width: sourceWidth, height: sourceHeight } : void 0,\n      spriteSourceRect: spriteX !== void 0 && spriteY !== void 0 && spriteW !== void 0 && spriteH !== void 0 ? { x: spriteX, y: spriteY, w: spriteW, h: spriteH } : void 0\n    };\n  }\n  getTextureSize(key) {\n    const texture = this.scene.textures.get(key);\n    if (!texture) return void 0;\n    const [source] = texture.source;\n    if (!source) return void 0;\n    return { width: source.width, height: source.height };\n  }\n}\nfunction createPhaserSurfaceContext(scene, adapter, vdom) {\n  const context = {\n    viewport: {\n      width: scene.scale.width,\n      height: scene.scale.height\n    },\n    scheduler: new PhaserScheduler(scene),\n    capabilities: PHASER_CAPABILITIES,\n    themeTokens: resolveThemeTokens(void 0),\n    raw: scene,\n    textureLoader: new PhaserTextureResolver(scene),\n    debugSnapshotCollector: () => ({}),\n    ...adapter ? { adapter } : {},\n    ...vdom ? { vdom } : {}\n  };\n  viewportRegistry.viewport = context.viewport;\n  return context;\n}\nclass PhaserSurfaceAdapter {\n  /** All root surfaces managed by this adapter, keyed by id */\n  surfaces = /* @__PURE__ */ new Map();\n  /** Monotonic id source to avoid collisions after surfaces are destroyed */\n  nextSurfaceId = 1;\n  /** Portal root container per scene — high-depth container above normal UI */\n  portalRoots = /* @__PURE__ */ new Map();\n  /** Resize handlers registered per surface */\n  resizeHandlers = /* @__PURE__ */ new Map();\n  /** Destroy handlers registered per surface */\n  destroyHandlers = /* @__PURE__ */ new Map();\n  /** Track whether a surface is still alive (backed by live Phaser objects) */\n  alive = /* @__PURE__ */ new Set();\n  /** Renderer-bound VDOM operations — set by the runtime after construction */\n  vdom;\n  /**\n   * Set the renderer's VDOM operations.\n   * Called by the Phaser VDOM runtime after construction to avoid circular imports.\n   */\n  setVDOM(ops) {\n    this.vdom = ops;\n  }\n  createRoot(options) {\n    const id = options.id ?? `surface-${this.nextSurfaceId++}`;\n    const kind = options.kind ?? \"root\";\n    const zIndex = options.zIndex ?? (kind === \"root\" ? 0 : 100);\n    if (this.surfaces.has(id)) {\n      throw new Error(`Root surface \"${id}\" already exists`);\n    }\n    if (kind === \"portal\" && !options.parent) {\n      throw new Error(\"Portal root surfaces require a parent RootSurface\");\n    }\n    const target = options.target;\n    let scene;\n    if (kind === \"portal\" && options.parent) {\n      if (!options.parent.context?.raw) {\n        throw new Error(\n          \"Phaser portal root surfaces require a parent RootSurface with a valid context.raw (Phaser.Scene)\"\n        );\n      }\n      const parentScene = this.resolveScene(options.parent.context.raw);\n      scene = options.target ? this.resolveScene(options.target) : parentScene;\n      if (scene !== parentScene) {\n        throw new Error(\n          \"Phaser portal root surfaces must use the same Phaser.Scene as their parent\"\n        );\n      }\n    } else if (target) {\n      scene = this.resolveScene(target);\n    } else {\n      throw new Error(\"Root surfaces require a target (Phaser.Scene)\");\n    }\n    const context = createPhaserSurfaceContext(scene, this, this.vdom);\n    let rootContainer;\n    if (kind === \"root\") {\n      rootContainer = scene.add.container(0, 0);\n      rootContainer.setDepth(zIndex);\n    } else {\n      const portalRoot = this.getOrCreatePortalRoot(scene);\n      rootContainer = scene.add.container(0, 0);\n      rootContainer.setDepth(zIndex);\n      portalRoot.add(rootContainer);\n    }\n    rootContainer.__surfaceZIndex = zIndex;\n    const surface = {\n      id,\n      kind,\n      zIndex,\n      context,\n      root: rootContainer,\n      ...options.parent ? { parent: options.parent } : {}\n    };\n    const surfaceContext = { ...context, rootSurface: surface };\n    surface.context = surfaceContext;\n    rootContainer.__surfaceContext = surfaceContext;\n    this.surfaces.set(id, surface);\n    this.alive.add(id);\n    if (kind === \"portal\") {\n      this.resortPortalSurfaces(scene);\n    }\n    const onResize = (_gameSize) => {\n      const updatedContext = createPhaserSurfaceContext(scene, this, this.vdom);\n      surface.context = updatedContext;\n      rootContainer.__surfaceContext = updatedContext;\n    };\n    scene.scale.on(\"resize\", onResize);\n    this.resizeHandlers.set(id, {\n      cancel: () => scene.scale.off(\"resize\", onResize)\n    });\n    const onShutdown = () => {\n      this.unregisterSurface(surface);\n      if (surface.kind === \"portal\") {\n        this.cleanupPortalRootIfEmpty(surface);\n      }\n    };\n    scene.events.once(\"shutdown\", onShutdown);\n    this.destroyHandlers.set(id, {\n      cancel: () => scene.events.off(\"shutdown\", onShutdown)\n    });\n    return surface;\n  }\n  updateRoot(surface, options) {\n    const container = surface.root;\n    if (options.zIndex !== void 0) {\n      container.setDepth(options.zIndex);\n      surface.zIndex = options.zIndex;\n      container.__surfaceZIndex = options.zIndex;\n      if (surface.kind === \"portal\") {\n        const scene = surface.context.raw;\n        if (scene) {\n          this.resortPortalSurfaces(scene);\n        }\n      }\n    }\n    if (options.width !== void 0 || options.height !== void 0) {\n      const ctx = surface.context;\n      const viewport = {\n        width: options.width ?? ctx.viewport.width,\n        height: options.height ?? ctx.viewport.height\n      };\n      surface.context = { ...ctx, viewport };\n      surface.root.__surfaceContext = surface.context;\n    }\n  }\n  destroyRoot(surface) {\n    const childSurfaces = Array.from(this.surfaces.values()).filter((candidate) => {\n      return candidate.parent?.id === surface.id;\n    });\n    for (const childSurface of childSurfaces) {\n      this.destroyRoot(childSurface);\n    }\n    if (surface.kind === \"portal\") {\n      this.syncPortalEventBlocking(surface, false);\n    }\n    this.unregisterSurface(surface);\n    const container = surface.root;\n    container?.destroy();\n    if (surface.kind === \"portal\") {\n      this.cleanupPortalRootIfEmpty(surface);\n    }\n  }\n  sortRoots(roots) {\n    const sorted = [...roots].sort((a, b) => a.zIndex - b.zIndex);\n    for (const surface of sorted) {\n      const container = surface.root;\n      const parent = container.parentContainer;\n      if (parent) {\n        parent.remove(container, false);\n        parent.add(container);\n      } else {\n        const displayList = container.scene?.children;\n        if (displayList?.remove && displayList.add) {\n          displayList.remove(container, false);\n          displayList.add(container);\n        }\n      }\n    }\n  }\n  isAlive(surface) {\n    if (!this.alive.has(surface.id)) return false;\n    const scene = surface.context.raw;\n    return !!(scene && scene.sys && scene.sys.settings.active);\n  }\n  onDestroy(surface, callback) {\n    const scene = surface.context.raw;\n    scene.events.once(\"shutdown\", callback);\n    return {\n      cancel: () => scene.events.off(\"shutdown\", callback)\n    };\n  }\n  /**\n   * Find a root surface by its renderer-native target (Phaser.Scene).\n   * Returns the first root surface (kind='root') for the given scene.\n   *\n   * @migration(audit:scene-portal-mount) Phase 6B — enables Portal to find parent RootSurface.\n   */\n  getRootByTarget(target) {\n    const scene = target;\n    if (!scene) return void 0;\n    for (const surface of this.surfaces.values()) {\n      if (surface.context.raw === scene && surface.kind === \"root\") {\n        return surface;\n      }\n    }\n    return void 0;\n  }\n  syncPortalEventBlocking(surface, blockEvents) {\n    if (surface.kind !== \"portal\") return;\n    if (!this.alive.has(surface.id)) return;\n    const scene = surface.context.raw;\n    const container = surface.root;\n    if (!scene || !container) return;\n    const gestureManager = getGestureManager(scene);\n    if (!blockEvents) {\n      gestureManager.unregisterContainer(container);\n      return;\n    }\n    const hitArea = this.resolvePortalHitArea(container);\n    if (!hitArea) {\n      gestureManager.unregisterContainer(container);\n      return;\n    }\n    const callbacks = {\n      onTouch: (event) => {\n        event.stopPropagation();\n      },\n      onTouchMove: (event) => {\n        event.stopPropagation();\n      }\n    };\n    if (gestureManager.hasContainer(container)) {\n      gestureManager.updateCallbacks(container, callbacks);\n      gestureManager.updateHitArea(container, hitArea);\n      return;\n    }\n    gestureManager.registerContainer(container, callbacks, hitArea);\n  }\n  /**\n   * Get or create the high-depth portal root container for a scene.\n   * This is the parent container for all portal overlays in that scene.\n   */\n  getOrCreatePortalRoot(scene) {\n    if (!scene || !scene.add) {\n      throw new Error(\n        `[PhaserSurfaceAdapter] Cannot create portal root: scene is ${scene === null ? \"null\" : scene === void 0 ? \"undefined\" : \"missing .add\"}. Verify that the parent RootSurface was created with a valid Phaser.Scene target.`\n      );\n    }\n    let root = this.portalRoots.get(scene);\n    if (!root) {\n      root = scene.add.container(0, 0);\n      root.setDepth(999999);\n      root.__surfaceZIndex = 999999;\n      this.portalRoots.set(scene, root);\n    }\n    return root;\n  }\n  /**\n   * Keep portal siblings ordered by surface zIndex within the shared portal root.\n   * Phaser container children render primarily by list order, not by child depth.\n   */\n  resortPortalSurfaces(scene) {\n    const portalSurfaces = Array.from(this.surfaces.values()).filter(\n      (surface) => surface.kind === \"portal\" && surface.context.raw === scene\n    );\n    if (portalSurfaces.length <= 1) return;\n    this.sortRoots(portalSurfaces);\n  }\n  resolveScene(target) {\n    if (!isPhaserScene(target)) {\n      throw new Error(\"PhaserSurfaceAdapter requires a Phaser.Scene target\");\n    }\n    return target;\n  }\n  unregisterSurface(surface) {\n    this.alive.delete(surface.id);\n    this.surfaces.delete(surface.id);\n    this.resizeHandlers.get(surface.id)?.cancel();\n    this.resizeHandlers.delete(surface.id);\n    this.destroyHandlers.get(surface.id)?.cancel();\n    this.destroyHandlers.delete(surface.id);\n    if (this.surfaces.size === 0) {\n      delete viewportRegistry.viewport;\n    }\n  }\n  /**\n   * Clean up portal root container if no portal surfaces remain for its scene.\n   */\n  cleanupPortalRootIfEmpty(surface) {\n    const scene = surface.context.raw;\n    const hasPortalSurfaces = Array.from(this.surfaces.values()).some(\n      (s) => s.id !== surface.id && s.kind === \"portal\" && s.context.raw === scene\n    );\n    if (!hasPortalSurfaces) {\n      const root = this.portalRoots.get(scene);\n      if (root) {\n        root.destroy();\n        this.portalRoots.delete(scene);\n      }\n    }\n  }\n  resolvePortalHitArea(container) {\n    const children = this.getPortalChildren(container);\n    if (children.length === 0) return null;\n    let minX = Infinity;\n    let minY = Infinity;\n    let maxX = -Infinity;\n    let maxY = -Infinity;\n    for (const child of children) {\n      if (!this.isBoundsProvider(child)) continue;\n      const bounds = child.getBounds();\n      if (bounds.width <= 0 || bounds.height <= 0) continue;\n      minX = Math.min(minX, bounds.x);\n      minY = Math.min(minY, bounds.y);\n      maxX = Math.max(maxX, bounds.x + bounds.width);\n      maxY = Math.max(maxY, bounds.y + bounds.height);\n    }\n    if (!Number.isFinite(minX) || !Number.isFinite(minY)) {\n      return null;\n    }\n    const matrix = container.getWorldTransformMatrix().invert();\n    const topLeft = matrix.transformPoint(minX, minY);\n    const bottomRight = matrix.transformPoint(maxX, maxY);\n    return new Phaser.Geom.Rectangle(\n      Math.min(topLeft.x, bottomRight.x),\n      Math.min(topLeft.y, bottomRight.y),\n      Math.abs(bottomRight.x - topLeft.x),\n      Math.abs(bottomRight.y - topLeft.y)\n    );\n  }\n  getPortalChildren(container) {\n    const directChildren = Array.isArray(container.list) ? container.list : container.getAll?.() ?? [];\n    return directChildren.filter(\n      (child) => !!child && typeof child === \"object\" && \"active\" in child\n    );\n  }\n  isBoundsProvider(child) {\n    return typeof child.getBounds === \"function\";\n  }\n}\nexport {\n  PhaserSurfaceAdapter,\n  createPhaserSurfaceContext,\n  viewportRegistry\n};\n//# sourceMappingURL=phaser-surface-adapter.js.map\n","import * as Phaser from \"phaser\";\nimport { getGestureManager } from \"./gestures/gesture-manager.js\";\nimport { createPhaserSurfaceContext } from \"./phaser-surface-adapter.js\";\nimport { isPhaserScene, isPhaserContainer } from \"./utils/phaser-guards.js\";\nfunction findAttachedSurfaceContext(target) {\n  let current = target;\n  while (current) {\n    if (current.__surfaceContext) {\n      return current.__surfaceContext;\n    }\n    current = current.parentContainer;\n  }\n  return void 0;\n}\nfunction createDummyNode(parent) {\n  const scene = getSceneFromParent(parent);\n  if (!scene || typeof scene.add?.container !== \"function\") {\n    const dummy2 = {\n      visible: false,\n      setVisible: (_v) => dummy2,\n      destroy: () => {\n      },\n      list: [],\n      getAll: () => [],\n      add: () => dummy2,\n      remove: () => dummy2\n    };\n    return dummy2;\n  }\n  const dummy = scene.add.container(0, 0);\n  if (typeof dummy.setVisible === \"function\") {\n    dummy.setVisible(false);\n  } else {\n    dummy.visible = false;\n  }\n  return dummy;\n}\nfunction deriveHostContext(parent) {\n  const attachedContext = findAttachedSurfaceContext(parent);\n  if (attachedContext) {\n    return attachedContext;\n  }\n  const scene = getSceneFromParent(parent);\n  if (!scene || !scene.scale) {\n    return {\n      viewport: { width: 800, height: 600 },\n      scheduler: {\n        requestAnimationFrame: () => ({ cancel: () => {\n        } }),\n        onFrame: () => ({ cancel: () => {\n        } }),\n        setTimeout: () => ({ cancel: () => {\n        } }),\n        setInterval: () => ({ cancel: () => {\n        } })\n      },\n      capabilities: /* @__PURE__ */ new Set(),\n      raw: scene ?? parent\n    };\n  }\n  return createPhaserSurfaceContext(scene);\n}\nfunction attachSurfaceContext(target, context) {\n  target.__surfaceContext = context;\n}\nfunction extractScene(parent) {\n  if (isPhaserScene(parent)) {\n    return parent;\n  }\n  const go = parent;\n  return go.scene ?? null;\n}\nfunction isSceneTarget(target) {\n  return isPhaserScene(target);\n}\nfunction updateGestureHitAreaAfterLayout(container) {\n  const phaserContainer = container;\n  if (!container.__getLayoutSize) return;\n  try {\n    const scene = phaserContainer.scene;\n    if (!scene) return;\n    const manager = getGestureManager(scene);\n    if (!manager.hasContainer(phaserContainer)) return;\n    const width = container.width ?? 0;\n    const height = container.height ?? 0;\n    const hitArea = new Phaser.Geom.Rectangle(0, 0, width, height);\n    manager.updateHitArea(phaserContainer, hitArea);\n  } catch {\n  }\n}\nfunction getParentContentSize(parent) {\n  if (!isPhaserContainer(parent)) return void 0;\n  const container = parent;\n  if (!container.__getLayoutSize) return void 0;\n  const totalSize = container.__getLayoutSize();\n  const padding = container.__layoutProps?.padding ?? 0;\n  const normPadding = typeof padding === \"number\" ? { left: padding, right: padding, top: padding, bottom: padding } : {\n    left: padding.left ?? 0,\n    right: padding.right ?? 0,\n    top: padding.top ?? 0,\n    bottom: padding.bottom ?? 0\n  };\n  return {\n    width: totalSize.width - normPadding.left - normPadding.right,\n    height: totalSize.height - normPadding.top - normPadding.bottom\n  };\n}\nfunction clearContainer(container, destroy = true) {\n  const typed = container;\n  const children = typed.getAll?.() ?? [];\n  children.forEach((child) => {\n    typed.remove?.(child, destroy);\n  });\n}\nfunction getSceneFromParent(parent) {\n  if (isPhaserScene(parent)) {\n    return parent;\n  }\n  return parent.scene ?? null;\n}\nexport {\n  attachSurfaceContext,\n  clearContainer,\n  createDummyNode,\n  deriveHostContext,\n  extractScene,\n  getParentContentSize,\n  isSceneTarget,\n  updateGestureHitAreaAfterLayout\n};\n//# sourceMappingURL=phaser-bridges.js.map\n","import { host } from \"./host.js\";\nimport { createPhaserSurfaceContext } from \"./phaser-surface-adapter.js\";\nimport { isPhaserContainer, isPhaserScene } from \"./utils/phaser-guards.js\";\nclass PhaserHostAdapter {\n  create(type, props, ctx) {\n    const scene = this.extractScene(ctx);\n    const result = host.create(type, props, scene);\n    const depth = props.depth;\n    if (typeof depth === \"number\") {\n      this.applyDepth(result, depth);\n    }\n    return result;\n  }\n  patch(type, node, prev, next, _ctx) {\n    host.patch(type, node, prev, next);\n    const nextDepth = next.depth;\n    const prevDepth = prev.depth;\n    if (typeof nextDepth === \"number\" && nextDepth !== prevDepth) {\n      this.applyDepth(node, nextDepth);\n      this.resortParentByDepth(node);\n    }\n  }\n  append(parent, child, _ctx) {\n    host.append(parent, child);\n    this.resortContainerChildDepth(parent);\n  }\n  insertBefore(parent, child, before, _ctx) {\n    const parentContainer = parent;\n    if (!isPhaserContainer(parentContainer) || typeof parentContainer.addAt !== \"function\") {\n      host.append(parent, child);\n      return;\n    }\n    const childObj = child;\n    if (before) {\n      const list = parentContainer.list;\n      const index = list.indexOf(before);\n      if (index >= 0) {\n        parentContainer.addAt(childObj, index);\n        childObj.parent = parentContainer;\n        this.resortContainerChildDepth(parentContainer);\n        return;\n      }\n    }\n    host.append(parent, child);\n    this.resortContainerChildDepth(parentContainer);\n  }\n  remove(parent, child, _ctx) {\n    host.remove(parent, child);\n  }\n  getChildren(parent) {\n    if (isPhaserContainer(parent)) {\n      const container = parent;\n      return container.list ?? [];\n    }\n    if (isPhaserScene(parent)) {\n      const scene = parent;\n      return scene.children?.list ?? [];\n    }\n    return [];\n  }\n  isAlive(target) {\n    if (isPhaserScene(target)) {\n      const scene = target;\n      return !!scene.sys?.settings?.active;\n    }\n    const go = target;\n    if (!go) return false;\n    if (go.active === false) return false;\n    if (!go.scene) return false;\n    if (!go.scene.sys?.settings?.active) return false;\n    return true;\n  }\n  isSurface(target) {\n    return isPhaserScene(target);\n  }\n  // -----------------------------------------------------------------------\n  // Layout operations (Phase 6I)\n  // -----------------------------------------------------------------------\n  setPosition(node, x, y) {\n    const go = node;\n    go.setPosition(x, y);\n  }\n  setSize(node, width, height) {\n    const go = node;\n    if (go.setSize) {\n      go.setSize(width, height);\n    } else {\n      go.width = width;\n      go.height = height;\n    }\n  }\n  setDepth(node, depth) {\n    const go = node;\n    go.setDepth(depth);\n  }\n  setVisible(node, visible) {\n    const go = node;\n    go.setVisible(visible);\n  }\n  setAlpha(node, alpha) {\n    const go = node;\n    go.setAlpha(alpha);\n  }\n  getSurfaceContext(target) {\n    const scene = isPhaserScene(target) ? target : target.scene;\n    return createPhaserSurfaceContext(scene);\n  }\n  /**\n   * Extract Phaser.Scene from HostContext or HostParent fallback.\n   */\n  extractScene(ctx) {\n    const raw = ctx.raw;\n    if (raw && isPhaserScene(raw)) return raw;\n    if (raw && isPhaserContainer(raw)) return raw.scene;\n    throw new Error(\n      \"PhaserHostAdapter: HostContext.raw must be a Phaser.Scene or Phaser.GameObjects.Container\"\n    );\n  }\n  applyDepth(node, depth) {\n    node.setDepth?.(depth);\n    node.depth = depth;\n  }\n  resortParentByDepth(node) {\n    const parent = node.parentContainer ?? node.parent ?? null;\n    if (parent) {\n      this.resortContainerChildDepth(parent);\n    }\n  }\n  resortContainerChildDepth(parent) {\n    if (!isPhaserContainer(parent) || !Array.isArray(parent.list) || parent.list.length <= 1) return;\n    const decorated = parent.list.map((child, index) => ({ child, index }));\n    decorated.sort((a, b) => {\n      const depthA = this.getNodeDepth(a.child);\n      const depthB = this.getNodeDepth(b.child);\n      if (depthA !== depthB) return depthA - depthB;\n      return a.index - b.index;\n    });\n    parent.list.splice(0, parent.list.length, ...decorated.map((entry) => entry.child));\n  }\n  getNodeDepth(node) {\n    const depth = node.depth;\n    return typeof depth === \"number\" ? depth : 0;\n  }\n}\nexport {\n  PhaserHostAdapter\n};\n//# sourceMappingURL=phaser-host-adapter.js.map\n","import { createVDOMRuntime } from \"@number10/jsx-core/vdom\";\nimport { SceneWrapper } from \"./components/internal/SceneWrapper.js\";\nimport { isSceneTarget, getParentContentSize, attachSurfaceContext, deriveHostContext, createDummyNode, extractScene, updateGestureHitAreaAfterLayout } from \"./phaser-bridges.js\";\nimport { PhaserHostAdapter } from \"./phaser-host-adapter.js\";\nimport { PhaserSurfaceAdapter } from \"./phaser-surface-adapter.js\";\nimport { getRenderContext } from \"./render-context.js\";\nimport { getThemedProps, themeRegistry } from \"./theme.js\";\nimport { setThemeRemountHandler } from \"@number10/jsx-core\";\nfunction wrapRootVNode(type, props) {\n  const { width, height, disableAutoSize = false, key: _key, ...componentProps } = props;\n  if (disableAutoSize) {\n    return {\n      type,\n      props: { ...componentProps, width, height },\n      children: []\n    };\n  }\n  const componentVNode = {\n    type,\n    props: { ...componentProps, width, height },\n    children: []\n  };\n  return {\n    type: SceneWrapper,\n    props: { width, height, children: componentVNode },\n    children: [],\n    __theme: themeRegistry.getGlobalTheme()\n  };\n}\nconst phaserHostAdapter = new PhaserHostAdapter();\nconst phaserSurfaceAdapter = new PhaserSurfaceAdapter();\nconst phaserVDOMRuntime = createVDOMRuntime(\n  {\n    hostAdapter: phaserHostAdapter,\n    surfaceAdapter: phaserSurfaceAdapter\n  },\n  {\n    createDummyNode,\n    getHostContext: deriveHostContext,\n    resolveProps: (type, theme, props) => getThemedProps(type, theme, props),\n    attachSurfaceContext,\n    getParentContentSize,\n    afterLayout: (container, parent) => {\n      const renderContext = getRenderContext(parent);\n      renderContext.deferLayout(() => updateGestureHitAreaAfterLayout(container));\n    },\n    wrapRootVNode,\n    extractSurfaceTarget: (parent) => extractScene(parent) ?? parent,\n    isSurfaceTarget: isSceneTarget\n  }\n);\nphaserSurfaceAdapter.setVDOM({\n  mount: phaserVDOMRuntime.mount,\n  patchVNode: phaserVDOMRuntime.patchVNode,\n  unmount: phaserVDOMRuntime.unmount\n});\nsetThemeRemountHandler(() => {\n  phaserVDOMRuntime.remountAll();\n});\nexport {\n  phaserVDOMRuntime\n};\n//# sourceMappingURL=phaser-vdom-runtime.js.map\n","import { phaserVDOMRuntime } from \"./phaser-vdom-runtime.js\";\nconst {\n  createElement,\n  getHostAdapter,\n  getMountStats,\n  getSurfaceAdapter,\n  mount,\n  normalizeVNodeLike,\n  patchVNode,\n  remountAll,\n  setHostAdapter,\n  setSurfaceAdapter,\n  unmount\n} = phaserVDOMRuntime;\nfunction mountJSX(parentOrScene, type, props = { width: 0, height: 0 }) {\n  return phaserVDOMRuntime.mountJSX(parentOrScene, type, props);\n}\nfunction unmountJSX(target) {\n  phaserVDOMRuntime.unmountJSX(target);\n}\nexport {\n  createElement,\n  getHostAdapter,\n  getMountStats,\n  getSurfaceAdapter,\n  mount,\n  mountJSX,\n  normalizeVNodeLike,\n  patchVNode,\n  remountAll,\n  setHostAdapter,\n  setSurfaceAdapter,\n  unmount,\n  unmountJSX\n};\n//# sourceMappingURL=vdom.js.map\n","import { setUpdateHandler, withHooks as withHooks$1, getCurrentCtx, useTheme, useState, useEffect } from \"@number10/jsx-core\";\nimport { depsChanged, disposeCtx, getCurrentCtx as getCurrentCtx2, getCurrentOrThrow, setCurrentCtx, shallowEqual, shouldComponentUpdate, useCallback, useEffect as useEffect2, useForceRedraw, useLayoutEffect, useMemo, useRedraw, useRef, useState as useState2, useTheme as useTheme2 } from \"@number10/jsx-core\";\nimport { getContextFromParent } from \"./render-context.js\";\nimport { isPhaserScene } from \"./utils/phaser-guards.js\";\nimport { normalizeVNodeLike, patchVNode } from \"./vdom.js\";\nfunction getCurrent() {\n  return getCurrentCtx();\n}\nfunction withHooks(ctx, render) {\n  const renderContext = getContextFromParent(ctx.parent);\n  const prevMount = renderContext.getCurrent();\n  const result = withHooks$1(ctx, render, {\n    isAlive: () => {\n      const scene = isPhaserScene(ctx.parent) ? ctx.parent : ctx.parent.scene;\n      if (!scene || !scene.sys || !scene.sys.settings.active) return false;\n      if (renderContext.isShutdown()) return false;\n      return true;\n    },\n    onAfterRender: () => {\n      renderContext.setCurrent(prevMount);\n    }\n  });\n  renderContext.setCurrent(ctx);\n  return result;\n}\nfunction useScene() {\n  const ctx = getCurrent();\n  if (!ctx) throw new Error(\"useScene must be called within a component\");\n  const renderContext = getContextFromParent(ctx.parent);\n  return renderContext.scene;\n}\nfunction useViewportSize() {\n  const ctx = getCurrent();\n  const surfaceViewport = ctx?.surface?.viewport;\n  if (surfaceViewport) {\n    return surfaceViewport;\n  }\n  const scene = useScene();\n  const initialSize = { width: scene.scale.width, height: scene.scale.height };\n  const [size, setSize] = useState(initialSize);\n  useEffect(() => {\n    const onResize = () => {\n      setSize({ width: scene.scale.width, height: scene.scale.height });\n    };\n    scene.scale.on(\"resize\", onResize);\n    return () => {\n      scene.scale.off(\"resize\", onResize);\n    };\n  }, [scene]);\n  return size;\n}\nfunction getLayoutSize(container) {\n  if (!container) return void 0;\n  return container.__getLayoutSize?.();\n}\nfunction useLayoutSize(ref) {\n  return getLayoutSize(ref.current);\n}\nfunction getLayoutProps(container) {\n  if (!container) return void 0;\n  return container.__layoutProps;\n}\nfunction getBackgroundGraphics(container) {\n  if (!container) return void 0;\n  return container.__background;\n}\nfunction useBackgroundGraphics(ref) {\n  return getBackgroundGraphics(ref.current);\n}\nfunction getLayoutRect(container) {\n  if (!container) return void 0;\n  const size = getLayoutSize(container);\n  if (!size) return void 0;\n  return {\n    x: container.x ?? 0,\n    y: container.y ?? 0,\n    width: size.width,\n    height: size.height\n  };\n}\nfunction useLayoutRect(ref) {\n  return getLayoutRect(ref.current);\n}\nfunction getWorldLayoutRect(container) {\n  if (!container) return void 0;\n  const size = getLayoutSize(container);\n  if (!size) return void 0;\n  const matrix = container.getWorldTransformMatrix();\n  return {\n    x: matrix.tx,\n    y: matrix.ty,\n    width: size.width * Math.abs(matrix.scaleX),\n    height: size.height * Math.abs(matrix.scaleY)\n  };\n}\nfunction useWorldLayoutRect(ref) {\n  return getWorldLayoutRect(ref.current);\n}\nfunction usePhaserTheme() {\n  return useTheme();\n}\nconst phaserUpdateHandler = (c) => {\n  const ctx = c;\n  if (ctx.disposed) return;\n  const scene = isPhaserScene(ctx.parent) ? ctx.parent : ctx.parent.scene;\n  if (!scene || !scene.sys || !scene.sys.settings.active) return;\n  const componentProps = ctx.componentVNode.props ?? {};\n  const propsWithChildren = ctx.componentVNode.children?.length ? { ...componentProps, children: ctx.componentVNode.children } : componentProps;\n  const nextVNode = normalizeVNodeLike(withHooks(ctx, () => ctx.function(propsWithChildren)));\n  patchVNode(ctx.parent, ctx.vnode, nextVNode);\n  ctx.vnode = nextVNode;\n  for (const run of ctx.effects) run();\n};\nsetUpdateHandler(phaserUpdateHandler);\nexport {\n  depsChanged,\n  disposeCtx,\n  getCurrent,\n  getCurrentCtx2 as getCurrentCtx,\n  getCurrentOrThrow,\n  getLayoutProps,\n  getLayoutRect,\n  getLayoutSize,\n  getWorldLayoutRect,\n  setCurrentCtx,\n  shallowEqual,\n  shouldComponentUpdate,\n  useBackgroundGraphics,\n  useCallback,\n  useEffect2 as useEffect,\n  useForceRedraw,\n  useLayoutEffect,\n  useLayoutRect,\n  useLayoutSize,\n  useMemo,\n  usePhaserTheme,\n  useRedraw,\n  useRef,\n  useScene,\n  useState2 as useState,\n  useTheme2 as useTheme,\n  useViewportSize,\n  useWorldLayoutRect,\n  withHooks\n};\n//# sourceMappingURL=hooks.js.map\n","import { useRef, useEffect, stopAnimationEffect, EFFECT_DEFINITIONS, resolveEffectTransformOrigin, runEffect } from \"@number10/jsx-core\";\nimport \"phaser\";\nimport \"../hooks.js\";\nfunction transformPoint(x, y, scaleX, scaleY, rotation) {\n  const scaledX = x * scaleX;\n  const scaledY = y * scaleY;\n  const cos = Math.cos(rotation);\n  const sin = Math.sin(rotation);\n  return {\n    x: scaledX * cos - scaledY * sin,\n    y: scaledX * sin + scaledY * cos\n  };\n}\nfunction createPhaserTarget(obj, origin) {\n  const layoutNode = obj;\n  const originX = origin === \"center\" || origin === \"top-center\" ? 0.5 : 0;\n  const originY = origin === \"center\" ? 0.5 : 0;\n  const hasOrigin = originX !== 0 || originY !== 0;\n  const baseScaleX = 1;\n  const baseScaleY = 1;\n  const baseRotation = 0;\n  let refWidth = obj.width;\n  let refHeight = obj.height;\n  let refPivot = null;\n  function ensurePivot() {\n    if (refPivot) return true;\n    if (refWidth === 0) {\n      refWidth = obj.width;\n      refHeight = obj.height;\n    }\n    if (refWidth === 0) return false;\n    const px = refWidth * originX;\n    const py = refHeight * originY;\n    refPivot = transformPoint(px, py, baseScaleX, baseScaleY, baseRotation);\n    return true;\n  }\n  let intendedX = layoutNode.__layoutPosition?.x ?? obj.x;\n  let intendedY = layoutNode.__layoutPosition?.y ?? obj.y;\n  let layoutPositionRevision = layoutNode.__layoutPositionRevision ?? 0;\n  return {\n    onUpdate(values) {\n      if (!obj.active) return;\n      const nextLayoutRevision = layoutNode.__layoutPositionRevision ?? 0;\n      const layoutPositionChanged = nextLayoutRevision !== layoutPositionRevision;\n      if (layoutPositionChanged && layoutNode.__layoutPosition) {\n        intendedX = layoutNode.__layoutPosition.x;\n        intendedY = layoutNode.__layoutPosition.y;\n        layoutPositionRevision = nextLayoutRevision;\n      }\n      if (values.x !== void 0) intendedX = values.x;\n      if (values.y !== void 0) intendedY = values.y;\n      if (!hasOrigin || !ensurePivot()) {\n        if (values.x === void 0 && !layoutPositionChanged) intendedX = obj.x;\n        if (values.y === void 0 && !layoutPositionChanged) intendedY = obj.y;\n        if (values.x !== void 0) obj.x = intendedX;\n        if (values.y !== void 0) obj.y = intendedY;\n        if (values.scaleX !== void 0) obj.scaleX = values.scaleX;\n        if (values.scaleY !== void 0) obj.scaleY = values.scaleY;\n        if (values.rotation !== void 0) obj.rotation = values.rotation;\n        if (values.alpha !== void 0) obj.alpha = values.alpha;\n        return;\n      }\n      const existingPivot = transformPoint(\n        refWidth * originX,\n        refHeight * originY,\n        obj.scaleX,\n        obj.scaleY,\n        obj.rotation\n      );\n      if (values.x === void 0 && !layoutPositionChanged) {\n        intendedX = obj.x - (refPivot.x - existingPivot.x);\n      }\n      if (values.y === void 0 && !layoutPositionChanged) {\n        intendedY = obj.y - (refPivot.y - existingPivot.y);\n      }\n      const currentScaleX = values.scaleX ?? obj.scaleX;\n      const currentScaleY = values.scaleY ?? obj.scaleY;\n      const currentRotation = values.rotation ?? obj.rotation;\n      const curPivot = transformPoint(\n        refWidth * originX,\n        refHeight * originY,\n        currentScaleX,\n        currentScaleY,\n        currentRotation\n      );\n      const dx = refPivot.x - curPivot.x;\n      const dy = refPivot.y - curPivot.y;\n      obj.x = intendedX + dx;\n      obj.y = intendedY + dy;\n      if (values.scaleX !== void 0) obj.scaleX = values.scaleX;\n      if (values.scaleY !== void 0) obj.scaleY = values.scaleY;\n      if (values.rotation !== void 0) obj.rotation = values.rotation;\n      if (values.alpha !== void 0) obj.alpha = values.alpha;\n    },\n    getSnapshot() {\n      return {\n        // Return the logical target position, not the compensated render position.\n        // The engine may feed snapshot values back into later tween/spring frames.\n        // Using rendered x/y here would compound the origin offset on every step.\n        x: intendedX,\n        y: intendedY,\n        scaleX: obj.scaleX,\n        scaleY: obj.scaleY,\n        rotation: obj.rotation,\n        alpha: obj.alpha\n      };\n    },\n    getScheduler() {\n      let current = obj;\n      while (current) {\n        const ctx = current.__surfaceContext;\n        if (ctx?.scheduler) return ctx.scheduler;\n        current = current.parentContainer;\n      }\n      throw new Error(\"No HostScheduler found in Phaser game object tree\");\n    },\n    getSize() {\n      return { width: obj.width, height: obj.height };\n    }\n  };\n}\nfunction useGameObjectEffect(ref) {\n  const activeHandleRef = useRef(null);\n  const runCoreEffect = (name, config = {}) => {\n    if (!ref.current) return;\n    const def = EFFECT_DEFINITIONS[name];\n    if (!def) return;\n    const origin = resolveEffectTransformOrigin(name);\n    const target = createPhaserTarget(ref.current, origin);\n    const handle = runEffect(ref.current, target, def, config);\n    if (handle) {\n      activeHandleRef.current?.stop();\n      activeHandleRef.current = handle;\n    }\n  };\n  const stopEffects = () => {\n    if (!ref.current) return;\n    activeHandleRef.current?.stop();\n    activeHandleRef.current = null;\n    stopAnimationEffect(ref.current);\n  };\n  useEffect(() => {\n    return () => {\n      activeHandleRef.current?.stop();\n      activeHandleRef.current = null;\n      if (ref.current) stopAnimationEffect(ref.current);\n    };\n  }, []);\n  return { applyEffect: runCoreEffect, stopEffects };\n}\nexport {\n  createPhaserTarget,\n  useGameObjectEffect\n};\n//# sourceMappingURL=use-effect.js.map\n","import { registerEffectRunner, registerEffectStopRunner, EFFECT_DEFINITIONS, resolveEffectTransformOrigin, runEffect, stopAnimationEffect } from \"@number10/jsx-core\";\nimport * as Phaser from \"phaser\";\nimport { createPhaserTarget } from \"./use-effect.js\";\nfunction applyEffectOrigin(obj, effect) {\n  const origin = resolveEffectTransformOrigin(effect);\n  const originX = origin === \"center\" || origin === \"top-center\" ? 0.5 : 0;\n  const originY = origin === \"center\" ? 0.5 : 0;\n  const originable = obj;\n  if (typeof originable.setOrigin === \"function\") {\n    originable.setOrigin(originX, originY);\n  }\n}\nconst phaserEffectRunner = (node, effect, config) => {\n  if (!(node instanceof Phaser.GameObjects.Container)) return;\n  if (!node.scene) return;\n  const def = EFFECT_DEFINITIONS[effect];\n  if (!def) return;\n  applyEffectOrigin(node, effect);\n  const origin = resolveEffectTransformOrigin(effect);\n  const target = createPhaserTarget(node, origin);\n  runEffect(node, target, def, config ?? {});\n};\nregisterEffectRunner(phaserEffectRunner);\nconst phaserEffectStopRunner = (node) => {\n  if (!(node instanceof Phaser.GameObjects.Container)) return;\n  if (!node.scene) return;\n  stopAnimationEffect(node);\n};\nregisterEffectStopRunner(phaserEffectStopRunner);\n//# sourceMappingURL=phaser-effects-bridge.js.map\n","import * as Phaser from \"phaser\";\nimport { mountJSX } from \"./vdom.js\";\nfunction createPhaserJSXPlugin(config) {\n  const pluginKey = config.key ?? \"PhaserJSX\";\n  return {\n    key: pluginKey,\n    plugin: PhaserJSXPlugin,\n    start: true,\n    data: config\n  };\n}\nclass PhaserJSXPlugin extends Phaser.Plugins.BasePlugin {\n  config;\n  mountHandle;\n  container;\n  targetScene;\n  /**\n   * Constructor - receives plugin manager and optional mapping\n   */\n  constructor(pluginManager) {\n    super(pluginManager);\n  }\n  /**\n   * Init lifecycle - called first with config data\n   */\n  init(data) {\n    if (data) {\n      this.config = { ...data };\n    }\n  }\n  /**\n   * Start lifecycle - called when plugin should start\n   */\n  start() {\n    this.game.events.on(\"ready\", this.onGameReady, this);\n  }\n  /**\n   * Game ready handler - scene system is now initialized\n   */\n  onGameReady() {\n    const scenes = this.game.scene.scenes;\n    if (scenes.length > 0) {\n      const targetScene = scenes[0];\n      if (!targetScene) return;\n      this.targetScene = targetScene;\n      targetScene.events.once(\"create\", this.onSceneCreate, this);\n      if (targetScene.scene.isActive()) {\n        this.onSceneCreate();\n      }\n    } else {\n      console.warn(\"[PhaserJSX Plugin] No scenes found to mount JSX\");\n    }\n  }\n  /**\n   * Scene create handler - auto-mount JSX\n   */\n  onSceneCreate() {\n    const shouldAutoMount = this.config?.autoMount !== false;\n    if (shouldAutoMount && this.config?.component) {\n      this.mount();\n      if (this.config?.autoResize !== false) {\n        this.setupResizeHandler();\n      }\n    } else {\n      console.warn(\"[PhaserJSX Plugin] Auto-mount disabled or no component configured\");\n    }\n  }\n  /**\n   * Setup resize event handler\n   */\n  setupResizeHandler() {\n    if (!this.targetScene) return;\n    this.targetScene.scale.on(\"resize\", this.onResize, this);\n  }\n  /**\n   * Handle scene resize - update component props\n   */\n  onResize(gameSize) {\n    if (!this.mountHandle || !this.config?.component || !this.container) return;\n    const props = this.config.props || {};\n    const width = props.width ?? gameSize.width;\n    const height = props.height ?? gameSize.height;\n    this.mountHandle = mountJSX(this.container, this.config.component, {\n      ...props,\n      width,\n      height\n    });\n  }\n  /**\n   * Configure plugin\n   * Can be called from scene to set up component dynamically\n   */\n  configure(component, props) {\n    const newConfig = {\n      component\n    };\n    if (props !== void 0) {\n      newConfig.props = props;\n    }\n    this.config = {\n      ...this.config,\n      ...newConfig\n    };\n  }\n  /**\n   * Mount JSX component\n   */\n  mount() {\n    if (!this.targetScene) {\n      console.warn(\"[PhaserJSX Plugin] No scene available for mounting\");\n      return;\n    }\n    if (!this.config?.component) {\n      console.warn(\"[PhaserJSX Plugin] No component configured for mounting\");\n      return;\n    }\n    if (!this.container) {\n      const containerConfig = this.config.container || {};\n      this.container = this.targetScene.add.container(\n        containerConfig.x ?? 0,\n        containerConfig.y ?? 0\n      );\n      this.container.setDepth(containerConfig.depth ?? 100);\n    }\n    const props = this.config.props || {};\n    const width = props.width ?? this.targetScene.scale.width;\n    const height = props.height ?? this.targetScene.scale.height;\n    this.mountHandle = mountJSX(this.container, this.config.component, {\n      ...props,\n      width,\n      height\n    });\n  }\n  /**\n   * Unmount JSX component\n   */\n  unmount() {\n    if (this.mountHandle) {\n      this.mountHandle.unmount();\n      this.mountHandle = void 0;\n    }\n  }\n  /**\n   * Destroy lifecycle - cleanup\n   */\n  destroy() {\n    this.unmount();\n    if (this.container) {\n      this.container.destroy();\n      this.container = void 0;\n    }\n    this.game.events.off(\"ready\", this.onGameReady, this);\n    if (this.targetScene) {\n      this.targetScene.events.off(\"create\", this.onSceneCreate, this);\n      this.targetScene.scale.off(\"resize\", this.onResize, this);\n    }\n    this.targetScene = void 0;\n    this.config = void 0;\n    super.destroy();\n  }\n}\nexport {\n  PhaserJSXPlugin,\n  createPhaserJSXPlugin\n};\n//# sourceMappingURL=plugin.js.map\n","import \"phaser\";\nimport { useScene } from \"../hooks.js\";\nimport { useRef, useCallback, useEffect } from \"@number10/jsx-core\";\nfunction useCameraFX(cameraRef, options = {}) {\n  const scene = useScene();\n  const activeFxRef = useRef(/* @__PURE__ */ new Set());\n  const baseZoomRef = useRef(null);\n  const getCamera = useCallback(() => {\n    return cameraRef?.current ?? scene.cameras.main;\n  }, [cameraRef, scene]);\n  const applyCameraFX = useCallback(\n    (fx, config) => {\n      const camera = getCamera();\n      if (!camera) {\n        console.warn(\"[useCameraFX] No camera available\");\n        return;\n      }\n      if (baseZoomRef.current === null) {\n        baseZoomRef.current = camera.zoom;\n      }\n      const cleanup = fx(camera, config);\n      if (typeof cleanup === \"function\") {\n        activeFxRef.current.add(cleanup);\n      }\n    },\n    [getCamera]\n  );\n  const clearCameraFX = useCallback(() => {\n    const camera = getCamera();\n    activeFxRef.current.forEach((cleanup) => cleanup());\n    activeFxRef.current.clear();\n    if (!camera) return;\n    const cameraWithStops = camera;\n    if (typeof cameraWithStops.stopShake === \"function\") cameraWithStops.stopShake();\n    if (typeof cameraWithStops.stopFlash === \"function\") cameraWithStops.stopFlash();\n    if (typeof cameraWithStops.stopFade === \"function\") cameraWithStops.stopFade();\n    if (options.resetZoomOnClear !== false && baseZoomRef.current !== null) {\n      camera.setZoom(baseZoomRef.current);\n    }\n  }, [getCamera, options.resetZoomOnClear]);\n  useEffect(() => {\n    return () => clearCameraFX();\n  }, [clearCameraFX]);\n  return { applyCameraFX, clearCameraFX };\n}\nexport {\n  useCameraFX\n};\n//# sourceMappingURL=use-camera-fx.js.map\n","const _depthByGl = /* @__PURE__ */ new WeakMap();\nconst _prerenderHooked = /* @__PURE__ */ new WeakSet();\nfunction getDepth(gl) {\n  let d = _depthByGl.get(gl);\n  if (!d) {\n    d = { value: 0 };\n    _depthByGl.set(gl, d);\n  }\n  return d;\n}\nfunction ensurePrerenderReset(gl, game, resetFboState) {\n  if (_prerenderHooked.has(game)) return;\n  _prerenderHooked.add(game);\n  game.events.on(\"prerender\", () => {\n    const d = _depthByGl.get(gl);\n    if (d) d.value = 0;\n    resetFboState(gl);\n  });\n}\nexport {\n  ensurePrerenderReset,\n  getDepth\n};\n//# sourceMappingURL=stencil-clip-depth.js.map\n","const _fboPatchByGl = /* @__PURE__ */ new WeakMap();\nfunction resetFboPatchState(gl) {\n  const fbo = _fboPatchByGl.get(gl);\n  if (fbo) {\n    fbo.current = null;\n    fbo.saved = null;\n  }\n}\nfunction ensureFboPatch(gl) {\n  if (_fboPatchByGl.has(gl)) return;\n  const state = { current: null, saved: null };\n  _fboPatchByGl.set(gl, state);\n  const origBind = gl.bindFramebuffer.bind(gl);\n  gl.bindFramebuffer = (target, fb) => {\n    const wasMain = state.current === null;\n    const willBeMain = fb === null;\n    const enteringOffscreen = wasMain && !willBeMain;\n    const leavingOffscreen = !wasMain && willBeMain;\n    if (enteringOffscreen && gl.getParameter(gl.STENCIL_TEST)) {\n      state.saved = {\n        func: gl.getParameter(gl.STENCIL_FUNC),\n        ref: gl.getParameter(gl.STENCIL_REF),\n        valueMask: gl.getParameter(gl.STENCIL_VALUE_MASK),\n        fail: gl.getParameter(gl.STENCIL_FAIL),\n        zfail: gl.getParameter(gl.STENCIL_PASS_DEPTH_FAIL),\n        zpass: gl.getParameter(gl.STENCIL_PASS_DEPTH_PASS),\n        writeMask: gl.getParameter(gl.STENCIL_WRITEMASK)\n      };\n      gl.disable(gl.STENCIL_TEST);\n    }\n    origBind(target, fb);\n    state.current = fb;\n    if (leavingOffscreen && state.saved) {\n      gl.enable(gl.STENCIL_TEST);\n      gl.stencilFunc(state.saved.func, state.saved.ref, state.saved.valueMask);\n      gl.stencilOp(state.saved.fail, state.saved.zfail, state.saved.zpass);\n      gl.stencilMask(state.saved.writeMask);\n      state.saved = null;\n    }\n  };\n}\nexport {\n  ensureFboPatch,\n  resetFboPatchState\n};\n//# sourceMappingURL=stencil-clip-fbo-bridge.js.map\n","function savePhaserGLState(renderer) {\n  const glWrapper = renderer.glWrapper;\n  return {\n    activeTexture: glWrapper.state?.bindings?.activeTexture,\n    arrayBuffer: glWrapper.state?.bindings?.arrayBuffer ?? null,\n    program: glWrapper.state?.bindings?.program ?? null,\n    vao: glWrapper.state?.vao ?? null\n  };\n}\nfunction restorePhaserGLState(renderer, saved, fallbackActiveTexture) {\n  const glWrapper = renderer.glWrapper;\n  if (glWrapper.update) {\n    glWrapper.update(\n      {\n        bindings: {\n          activeTexture: saved.activeTexture ?? fallbackActiveTexture,\n          arrayBuffer: saved.arrayBuffer,\n          program: saved.program\n        },\n        vao: saved.vao\n      },\n      true\n    );\n    return;\n  }\n  glWrapper.updateBindingsActiveTexture?.(\n    {\n      bindings: {\n        activeTexture: saved.activeTexture ?? fallbackActiveTexture\n      }\n    },\n    true\n  );\n}\nconst ROUND_RECT_VERT_SRC = `\nattribute vec2 a_ndc;\nattribute vec2 a_loc;\nvarying vec2 v_loc;\nvoid main(){gl_Position=vec4(a_ndc,0.,1.);v_loc=a_loc;}\n`;\nconst ROUND_RECT_FRAG_SRC = `\nprecision mediump float;\nvarying vec2 v_loc;\nuniform vec2 u_halfSize;\nuniform vec4 u_radii;\nfloat sdRoundedBox(vec2 p,vec2 b,vec4 r){\n  r.xy=p.x>0.?r.yz:r.xw;\n  r.x =p.y>0.?r.y :r.x;\n  vec2 q=abs(p)-b+r.x;\n  return length(max(q,0.))+min(max(q.x,q.y),0.)-r.x;\n}\nvoid main(){\n  if(sdRoundedBox(v_loc,u_halfSize,u_radii)>0.)discard;\n  gl_FragColor=vec4(0.);\n}\n`;\nconst BITMAP_VERT_SRC = `\nattribute vec2 a_ndc;\nattribute vec2 a_uv;\nvarying vec2 v_uv;\nvoid main(){gl_Position=vec4(a_ndc,0.,1.);v_uv=a_uv;}\n`;\nconst BITMAP_FRAG_SRC = `\nprecision mediump float;\nvarying vec2 v_uv;\nuniform sampler2D u_texture;\nuniform float u_alphaThreshold;\nuniform float u_invertAlpha;\nvoid main(){\n  float a=texture2D(u_texture,v_uv).a;\n  bool keep=u_invertAlpha>0.5 ? a<u_alphaThreshold : a>=u_alphaThreshold;\n  if(!keep)discard;\n  gl_FragColor=vec4(0.);\n}\n`;\nconst _roundRectProgByGl = /* @__PURE__ */ new WeakMap();\nconst _bitmapProgByGl = /* @__PURE__ */ new WeakMap();\nfunction createProgram(gl, vertSrc, fragSrc) {\n  const vs = gl.createShader(gl.VERTEX_SHADER);\n  gl.shaderSource(vs, vertSrc);\n  gl.compileShader(vs);\n  const fs = gl.createShader(gl.FRAGMENT_SHADER);\n  gl.shaderSource(fs, fragSrc);\n  gl.compileShader(fs);\n  const prog = gl.createProgram();\n  gl.attachShader(prog, vs);\n  gl.attachShader(prog, fs);\n  gl.linkProgram(prog);\n  return prog;\n}\nfunction getRoundRectProg(gl) {\n  let prog = _roundRectProgByGl.get(gl);\n  if (prog) return prog;\n  prog = createProgram(gl, ROUND_RECT_VERT_SRC, ROUND_RECT_FRAG_SRC);\n  _roundRectProgByGl.set(gl, prog);\n  return prog;\n}\nfunction getBitmapProg(gl) {\n  let prog = _bitmapProgByGl.get(gl);\n  if (prog) return prog;\n  prog = createProgram(gl, BITMAP_VERT_SRC, BITMAP_FRAG_SRC);\n  _bitmapProgByGl.set(gl, prog);\n  return prog;\n}\nconst _roundRectLocsByProg = /* @__PURE__ */ new WeakMap();\nconst _bitmapLocsByProg = /* @__PURE__ */ new WeakMap();\nfunction getRoundRectShaderLocs(gl, prog) {\n  let l = _roundRectLocsByProg.get(prog);\n  if (!l) {\n    l = {\n      ndc: gl.getAttribLocation(prog, \"a_ndc\"),\n      loc: gl.getAttribLocation(prog, \"a_loc\"),\n      halfSize: gl.getUniformLocation(prog, \"u_halfSize\"),\n      radii: gl.getUniformLocation(prog, \"u_radii\")\n    };\n    _roundRectLocsByProg.set(prog, l);\n  }\n  return l;\n}\nfunction getBitmapShaderLocs(gl, prog) {\n  let l = _bitmapLocsByProg.get(prog);\n  if (!l) {\n    l = {\n      ndc: gl.getAttribLocation(prog, \"a_ndc\"),\n      uv: gl.getAttribLocation(prog, \"a_uv\"),\n      texture: gl.getUniformLocation(prog, \"u_texture\"),\n      alphaThreshold: gl.getUniformLocation(prog, \"u_alphaThreshold\"),\n      invertAlpha: gl.getUniformLocation(prog, \"u_invertAlpha\")\n    };\n    _bitmapLocsByProg.set(prog, l);\n  }\n  return l;\n}\nconst STRIDE = 16;\nfunction drawRoundRectMaskShape(gl, scene, matrix, cameraMatrix, offsetX, offsetY, w, h, logW, logH, radii, vertBuf, verts) {\n  const { a, b, c, d, tx, ty } = matrix;\n  const hw = w / 2;\n  const hh = h / 2;\n  const cx = offsetX + hw;\n  const cy = offsetY + hh;\n  const corners = [\n    [cx - hw, cy - hh],\n    [cx + hw, cy - hh],\n    [cx + hw, cy + hh],\n    [cx - hw, cy + hh]\n  ];\n  for (let i = 0; i < 4; i++) {\n    const corner = corners[i];\n    const lx = corner[0];\n    const ly = corner[1];\n    const wx = a * lx + c * ly + tx;\n    const wy = b * lx + d * ly + ty;\n    const sx = cameraMatrix ? cameraMatrix.getX(wx, wy) : wx;\n    const sy = cameraMatrix ? cameraMatrix.getY(wx, wy) : wy;\n    verts[i * 4 + 0] = sx / logW * 2 - 1;\n    verts[i * 4 + 1] = 1 - sy / logH * 2;\n    verts[i * 4 + 2] = lx - cx;\n    verts[i * 4 + 3] = ly - cy;\n  }\n  const prevProg = gl.getParameter(gl.CURRENT_PROGRAM);\n  const prevBuf = gl.getParameter(gl.ARRAY_BUFFER_BINDING);\n  const prevVAO = gl.getParameter(34229);\n  const prevActiveTextureUnit = gl.getParameter(gl.ACTIVE_TEXTURE) - gl.TEXTURE0;\n  const renderer = scene.renderer;\n  const savedPhaserState = savePhaserGLState(renderer);\n  gl.bindVertexArray(null);\n  gl.bindBuffer(gl.ARRAY_BUFFER, vertBuf);\n  gl.bufferSubData(gl.ARRAY_BUFFER, 0, verts);\n  const prog = getRoundRectProg(gl);\n  gl.useProgram(prog);\n  const locs = getRoundRectShaderLocs(gl, prog);\n  gl.enableVertexAttribArray(locs.ndc);\n  gl.vertexAttribPointer(locs.ndc, 2, gl.FLOAT, false, STRIDE, 0);\n  gl.enableVertexAttribArray(locs.loc);\n  gl.vertexAttribPointer(locs.loc, 2, gl.FLOAT, false, STRIDE, 8);\n  gl.uniform2f(locs.halfSize, hw, hh);\n  gl.uniform4f(locs.radii, radii[0], radii[1], radii[2], radii[3]);\n  gl.drawArrays(gl.TRIANGLE_FAN, 0, 4);\n  gl.disableVertexAttribArray(locs.ndc);\n  gl.disableVertexAttribArray(locs.loc);\n  gl.bindBuffer(gl.ARRAY_BUFFER, prevBuf);\n  gl.useProgram(prevProg);\n  gl.bindVertexArray(prevVAO);\n  restorePhaserGLState(renderer, savedPhaserState, prevActiveTextureUnit);\n}\nfunction isTextureFrame(value) {\n  return typeof value === \"object\" && value !== null && \"glTexture\" in value && \"u0\" in value;\n}\nfunction resolveBitmapFrame(scene, source) {\n  const frame = isTextureFrame(source.texture) ? source.texture : typeof source.texture === \"string\" ? scene.textures.getFrame(source.texture, source.frame) : source.texture.get(source.frame);\n  if (!frame?.glTexture?.webGLTexture) return null;\n  return {\n    glTexture: frame.glTexture,\n    width: source.width ?? frame.cutWidth ?? frame.realWidth,\n    height: source.height ?? frame.cutHeight ?? frame.realHeight,\n    u0: frame.u0,\n    v0: frame.v0,\n    u1: frame.u1,\n    v1: frame.v1\n  };\n}\nfunction drawBitmapMaskShape(gl, scene, matrix, cameraMatrix, source, frameInfo, logW, logH, vertBuf, verts) {\n  const { a, b, c, d, tx, ty } = matrix;\n  const x0 = source.offsetX;\n  const y0 = source.offsetY;\n  const x1 = x0 + frameInfo.width;\n  const y1 = y0 + frameInfo.height;\n  const corners = [\n    [x0, y0, frameInfo.u0, frameInfo.v0],\n    [x1, y0, frameInfo.u1, frameInfo.v0],\n    [x1, y1, frameInfo.u1, frameInfo.v1],\n    [x0, y1, frameInfo.u0, frameInfo.v1]\n  ];\n  for (let i = 0; i < 4; i++) {\n    const corner = corners[i];\n    const lx = corner[0];\n    const ly = corner[1];\n    const wx = a * lx + c * ly + tx;\n    const wy = b * lx + d * ly + ty;\n    const sx = cameraMatrix ? cameraMatrix.getX(wx, wy) : wx;\n    const sy = cameraMatrix ? cameraMatrix.getY(wx, wy) : wy;\n    verts[i * 4 + 0] = sx / logW * 2 - 1;\n    verts[i * 4 + 1] = 1 - sy / logH * 2;\n    verts[i * 4 + 2] = corner[2];\n    verts[i * 4 + 3] = corner[3];\n  }\n  const prevProg = gl.getParameter(gl.CURRENT_PROGRAM);\n  const prevBuf = gl.getParameter(gl.ARRAY_BUFFER_BINDING);\n  const prevVAO = gl.getParameter(34229);\n  const prevActiveTextureUnit = gl.getParameter(gl.ACTIVE_TEXTURE) - gl.TEXTURE0;\n  const renderer = scene.renderer;\n  const savedPhaserState = savePhaserGLState(renderer);\n  gl.bindVertexArray(null);\n  gl.bindBuffer(gl.ARRAY_BUFFER, vertBuf);\n  gl.bufferSubData(gl.ARRAY_BUFFER, 0, verts);\n  const prog = getBitmapProg(gl);\n  gl.useProgram(prog);\n  const locs = getBitmapShaderLocs(gl, prog);\n  gl.enableVertexAttribArray(locs.ndc);\n  gl.vertexAttribPointer(locs.ndc, 2, gl.FLOAT, false, STRIDE, 0);\n  gl.enableVertexAttribArray(locs.uv);\n  gl.vertexAttribPointer(locs.uv, 2, gl.FLOAT, false, STRIDE, 8);\n  const textureUnits = renderer.glTextureUnits;\n  const prevTexture = textureUnits.units[0] ?? null;\n  textureUnits.bind(frameInfo.glTexture, 0);\n  gl.uniform1i(locs.texture, 0);\n  gl.uniform1f(locs.alphaThreshold, source.alphaThreshold);\n  gl.uniform1f(locs.invertAlpha, source.invertAlpha ? 1 : 0);\n  gl.drawArrays(gl.TRIANGLE_FAN, 0, 4);\n  gl.disableVertexAttribArray(locs.ndc);\n  gl.disableVertexAttribArray(locs.uv);\n  textureUnits.bind(prevTexture, 0);\n  renderer.glWrapper.updateBindingsActiveTexture({\n    bindings: {\n      activeTexture: prevActiveTextureUnit\n    }\n  });\n  gl.bindBuffer(gl.ARRAY_BUFFER, prevBuf);\n  gl.useProgram(prevProg);\n  gl.bindVertexArray(prevVAO);\n  restorePhaserGLState(renderer, savedPhaserState, prevActiveTextureUnit);\n}\nfunction drawMaskShape(gl, scene, matrix, cameraMatrix, source, logW, logH, vertBuf, verts) {\n  if (source.kind === \"bitmap\") {\n    const frameInfo = resolveBitmapFrame(scene, source);\n    if (!frameInfo) return;\n    drawBitmapMaskShape(\n      gl,\n      scene,\n      matrix,\n      cameraMatrix,\n      source,\n      frameInfo,\n      logW,\n      logH,\n      vertBuf,\n      verts\n    );\n    return;\n  }\n  drawRoundRectMaskShape(\n    gl,\n    scene,\n    matrix,\n    cameraMatrix,\n    source.offsetX,\n    source.offsetY,\n    source.width,\n    source.height,\n    logW,\n    logH,\n    source.radii,\n    vertBuf,\n    verts\n  );\n}\nexport {\n  drawMaskShape\n};\n//# sourceMappingURL=stencil-clip-renderer.js.map\n","function resolveRadii(r) {\n  if (!r) return [0, 0, 0, 0];\n  if (typeof r === \"number\") return [r, r, r, r];\n  return [r.tl ?? 0, r.tr ?? 0, r.br ?? 0, r.bl ?? 0];\n}\nfunction isBitmapStencilClipSource(source) {\n  return source.kind === \"bitmap\";\n}\nfunction toRoundRectState(source) {\n  return {\n    kind: \"roundRect\",\n    width: source.width,\n    height: source.height,\n    offsetX: source.offsetX ?? 0,\n    offsetY: source.offsetY ?? 0,\n    radii: source.kind === \"rect\" ? [0, 0, 0, 0] : resolveRadii(source.cornerRadius)\n  };\n}\nfunction toBitmapState(source) {\n  return {\n    kind: \"bitmap\",\n    texture: source.texture,\n    frame: source.frame,\n    width: source.width,\n    height: source.height,\n    offsetX: source.offsetX ?? 0,\n    offsetY: source.offsetY ?? 0,\n    alphaThreshold: source.alphaThreshold ?? 0.5,\n    invertAlpha: source.invertAlpha ?? false\n  };\n}\nfunction toMaskState(source) {\n  return isBitmapStencilClipSource(source) ? toBitmapState(source) : toRoundRectState(source);\n}\nfunction mergeMaskState(current, update) {\n  if (isBitmapStencilClipSource(update)) {\n    if (current.kind !== \"bitmap\" || update.texture !== void 0) {\n      return toBitmapState(update);\n    }\n    return {\n      kind: \"bitmap\",\n      texture: current.texture,\n      frame: update.frame !== void 0 ? update.frame : current.frame,\n      width: update.width !== void 0 ? update.width : current.width,\n      height: update.height !== void 0 ? update.height : current.height,\n      offsetX: update.offsetX !== void 0 ? update.offsetX : current.offsetX,\n      offsetY: update.offsetY !== void 0 ? update.offsetY : current.offsetY,\n      alphaThreshold: update.alphaThreshold !== void 0 ? update.alphaThreshold : current.alphaThreshold,\n      invertAlpha: update.invertAlpha !== void 0 ? update.invertAlpha : current.invertAlpha\n    };\n  }\n  if (current.kind === \"bitmap\" && update.kind === void 0) {\n    const bitmapUpdate = update;\n    return {\n      kind: \"bitmap\",\n      texture: current.texture,\n      frame: bitmapUpdate.frame !== void 0 ? bitmapUpdate.frame : current.frame,\n      width: bitmapUpdate.width !== void 0 ? bitmapUpdate.width : current.width,\n      height: bitmapUpdate.height !== void 0 ? bitmapUpdate.height : current.height,\n      offsetX: bitmapUpdate.offsetX !== void 0 ? bitmapUpdate.offsetX : current.offsetX,\n      offsetY: bitmapUpdate.offsetY !== void 0 ? bitmapUpdate.offsetY : current.offsetY,\n      alphaThreshold: bitmapUpdate.alphaThreshold !== void 0 ? bitmapUpdate.alphaThreshold : current.alphaThreshold,\n      invertAlpha: bitmapUpdate.invertAlpha !== void 0 ? bitmapUpdate.invertAlpha : current.invertAlpha\n    };\n  }\n  if (current.kind === \"bitmap\") {\n    return toRoundRectState(update);\n  }\n  const roundUpdate = update;\n  return {\n    kind: \"roundRect\",\n    width: roundUpdate.width !== void 0 ? roundUpdate.width : current.width,\n    height: roundUpdate.height !== void 0 ? roundUpdate.height : current.height,\n    offsetX: roundUpdate.offsetX !== void 0 ? roundUpdate.offsetX : current.offsetX,\n    offsetY: roundUpdate.offsetY !== void 0 ? roundUpdate.offsetY : current.offsetY,\n    radii: roundUpdate.kind === \"rect\" ? [0, 0, 0, 0] : \"cornerRadius\" in roundUpdate ? resolveRadii(roundUpdate.cornerRadius) : current.radii\n  };\n}\nexport {\n  isBitmapStencilClipSource,\n  mergeMaskState,\n  toMaskState\n};\n//# sourceMappingURL=stencil-clip-state.js.map\n","import * as Phaser from \"phaser\";\nimport { ensurePrerenderReset, getDepth } from \"./stencil-clip-depth.js\";\nimport { ensureFboPatch, resetFboPatchState } from \"./stencil-clip-fbo-bridge.js\";\nimport { drawMaskShape } from \"./stencil-clip-renderer.js\";\nimport { toMaskState, mergeMaskState } from \"./stencil-clip-state.js\";\nimport { isBitmapStencilClipSource } from \"./stencil-clip-state.js\";\nconst STENCIL_HANDLE = /* @__PURE__ */ Symbol(\"stencilClipHandle\");\nfunction getStencilClipHandle(container) {\n  return container[STENCIL_HANDLE];\n}\nfunction clearStencilClip(container) {\n  getStencilClipHandle(container)?.destroy();\n}\nfunction applyStencilClip(container, source) {\n  const obj = container;\n  if (obj[STENCIL_HANDLE]) {\n    obj[STENCIL_HANDLE].update(source);\n    return obj[STENCIL_HANDLE];\n  }\n  if (container.scene.renderer.type !== Phaser.WEBGL) {\n    return { update() {\n    }, destroy() {\n    } };\n  }\n  const renderer = container.scene.renderer;\n  const gl = renderer.gl;\n  const glWrapper = renderer.glWrapper;\n  ensurePrerenderReset(gl, container.scene.game, resetFboPatchState);\n  ensureFboPatch(gl);\n  const previousArrayBuffer = glWrapper.state?.bindings?.arrayBuffer ?? null;\n  const vertBuf = gl.createBuffer();\n  gl.bindBuffer(gl.ARRAY_BUFFER, vertBuf);\n  gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(16), gl.DYNAMIC_DRAW);\n  gl.bindBuffer(gl.ARRAY_BUFFER, null);\n  glWrapper.updateBindingsArrayBuffer?.(\n    {\n      bindings: {\n        arrayBuffer: previousArrayBuffer\n      }\n    },\n    true\n  );\n  const verts = new Float32Array(16);\n  let maskSource = toMaskState(source);\n  let destroyed = false;\n  const wrapper = (webglRenderer, go, drawingContext, parentMatrix, renderStep = 0, displayList, displayListIndex) => {\n    const renderNext = () => {\n      go.renderWebGLStep(\n        webglRenderer,\n        go,\n        drawingContext,\n        parentMatrix,\n        renderStep + 1,\n        displayList,\n        displayListIndex\n      );\n    };\n    if (destroyed) {\n      renderNext();\n      return;\n    }\n    const matrix = container.getWorldTransformMatrix();\n    const context = drawingContext;\n    const cameraMatrix = context.camera?.getViewMatrix(!context.useCanvas);\n    const rn = webglRenderer.renderNodes;\n    const depth = getDepth(gl);\n    const myDepth = depth.value++;\n    const logW = webglRenderer.width;\n    const logH = webglRenderer.height;\n    rn.finishBatch();\n    if (myDepth === 0) gl.enable(gl.STENCIL_TEST);\n    gl.colorMask(false, false, false, false);\n    gl.stencilMask(255);\n    gl.stencilFunc(gl.EQUAL, myDepth, 255);\n    gl.stencilOp(gl.KEEP, gl.KEEP, gl.INCR);\n    drawMaskShape(gl, container.scene, matrix, cameraMatrix, maskSource, logW, logH, vertBuf, verts);\n    gl.colorMask(true, true, true, true);\n    gl.stencilFunc(gl.EQUAL, myDepth + 1, 255);\n    gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP);\n    gl.stencilMask(0);\n    renderNext();\n    rn.finishBatch();\n    gl.colorMask(false, false, false, false);\n    gl.stencilMask(255);\n    gl.stencilFunc(gl.EQUAL, myDepth + 1, 255);\n    gl.stencilOp(gl.KEEP, gl.KEEP, gl.DECR);\n    drawMaskShape(gl, container.scene, matrix, cameraMatrix, maskSource, logW, logH, vertBuf, verts);\n    gl.colorMask(true, true, true, true);\n    depth.value--;\n    if (myDepth === 0) {\n      gl.disable(gl.STENCIL_TEST);\n      gl.stencilMask(255);\n    } else {\n      gl.stencilFunc(gl.EQUAL, myDepth, 255);\n      gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP);\n      gl.stencilMask(0);\n    }\n  };\n  const handle = {\n    update(s) {\n      maskSource = mergeMaskState(maskSource, s);\n    },\n    destroy() {\n      if (destroyed) return;\n      destroyed = true;\n      gl.deleteBuffer(vertBuf);\n      const index = obj._renderSteps.indexOf(wrapper);\n      if (index !== -1) obj._renderSteps.splice(index, 1);\n      delete obj[STENCIL_HANDLE];\n    }\n  };\n  obj.addRenderStep(wrapper, 0);\n  obj[STENCIL_HANDLE] = handle;\n  return handle;\n}\nexport {\n  applyStencilClip,\n  clearStencilClip,\n  getStencilClipHandle,\n  isBitmapStencilClipSource\n};\n//# sourceMappingURL=stencil-clip.js.map\n","import * as Phaser from \"phaser\";\nimport { applyStencilClip, getStencilClipHandle, clearStencilClip } from \"./stencil-clip.js\";\nfunction addMethod(proto, methodName, fn) {\n  const hadOwn = Object.prototype.hasOwnProperty.call(proto, methodName);\n  const previous = proto[methodName];\n  if (!hadOwn) {\n    proto[methodName] = fn;\n  }\n  return {\n    restore: () => {\n      if (!hadOwn) {\n        delete proto[methodName];\n      } else {\n        proto[methodName] = previous;\n      }\n    }\n  };\n}\nfunction wrapMethod(proto, methodName, wrapper) {\n  const original = proto[methodName];\n  if (typeof original !== \"function\") {\n    return { restore() {\n    } };\n  }\n  const wrapped = function(...args) {\n    return wrapper(original, this, ...args);\n  };\n  proto[methodName] = wrapped;\n  return {\n    restore: () => {\n      proto[methodName] = original;\n    }\n  };\n}\nlet installed = false;\nlet restoreHandles = [];\nfunction canCreateStencilClipSource(source) {\n  if (source.kind === \"bitmap\") {\n    return source.texture !== void 0;\n  }\n  return source.width !== void 0 && source.height !== void 0;\n}\nfunction installStencilClipExtension() {\n  if (installed) return;\n  installed = true;\n  const proto = Phaser.GameObjects.Container.prototype;\n  restoreHandles.push(\n    addMethod(\n      proto,\n      \"setStencilClip\",\n      function(source) {\n        applyStencilClip(this, source);\n        return this;\n      }\n    )\n  );\n  restoreHandles.push(\n    addMethod(\n      proto,\n      \"updateStencilClip\",\n      function(source) {\n        const handle = getStencilClipHandle(this);\n        if (handle) handle.update(source);\n        else if (canCreateStencilClipSource(source)) applyStencilClip(this, source);\n        return this;\n      }\n    )\n  );\n  restoreHandles.push(\n    addMethod(proto, \"clearStencilClip\", function() {\n      clearStencilClip(this);\n      return this;\n    })\n  );\n  restoreHandles.push(\n    addMethod(proto, \"getStencilClipHandle\", function() {\n      return getStencilClipHandle(this);\n    })\n  );\n  restoreHandles.push(\n    wrapMethod(proto, \"destroy\", (original, self, ...args) => {\n      clearStencilClip(self);\n      return original.apply(self, args);\n    })\n  );\n}\nfunction uninstallStencilClipExtension() {\n  for (const handle of [...restoreHandles].reverse()) handle.restore();\n  restoreHandles = [];\n  installed = false;\n}\nexport {\n  installStencilClipExtension,\n  uninstallStencilClipExtension\n};\n//# sourceMappingURL=stencil-clip-extension.js.map\n","import \"phaser\";\nimport { installStencilClipExtension } from \"./stencil-clip-extension.js\";\nimport { uninstallStencilClipExtension } from \"./stencil-clip-extension.js\";\ninstallStencilClipExtension();\nexport {\n  installStencilClipExtension,\n  uninstallStencilClipExtension\n};\n//# sourceMappingURL=index.js.map\n","import \"../hooks.js\";\nimport { useRef, useEffect } from \"@number10/jsx-core\";\nfunction useFX(ref) {\n  const activeEffectsRef = useRef(/* @__PURE__ */ new Set());\n  useEffect(() => {\n    const obj = ref.current;\n    if (obj && typeof obj.enableFilters === \"function\") {\n      obj.enableFilters();\n    }\n  }, []);\n  useEffect(() => {\n    return () => {\n      activeEffectsRef.current.forEach((cleanup) => {\n        if (typeof cleanup === \"function\") {\n          cleanup();\n        } else if (cleanup?.destroy) {\n          cleanup.destroy();\n        }\n      });\n      activeEffectsRef.current.clear();\n    };\n  }, []);\n  const applyFX = (fxCreator, config, type = \"internal\") => {\n    const obj = ref.current;\n    if (!obj) {\n      console.warn(\"[useFX] No object found in ref\");\n      return;\n    }\n    const cleanupOrController = fxCreator(obj, config, type);\n    if (cleanupOrController) {\n      activeEffectsRef.current.add(cleanupOrController);\n    }\n  };\n  const clearFX = () => {\n    activeEffectsRef.current.forEach((cleanup) => {\n      if (typeof cleanup === \"function\") {\n        cleanup();\n      } else if (cleanup?.destroy) {\n        cleanup.destroy();\n      }\n    });\n    activeEffectsRef.current.clear();\n    const obj = ref.current;\n    if (obj?.filters) {\n      obj.filters.internal.clear();\n      obj.filters.external.clear();\n    }\n  };\n  return { applyFX, clearFX };\n}\nexport {\n  useFX\n};\n//# sourceMappingURL=use-fx.js.map\n","const createBlurFX = (obj, config, type = \"internal\") => {\n  const { quality = 0, x = 2, y = 2, strength = 1, color = 16777215, steps = 4 } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createBlurFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createBlurFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const blur = pipeline.addBlur(quality, x, y, strength, color, steps);\n  return blur;\n};\nexport {\n  createBlurFX\n};\n//# sourceMappingURL=blur.js.map\n","const createColorMatrixFX = (obj, config, type = \"internal\") => {\n  const { effect = \"grayscale\", amount = 1 } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createColorMatrixFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createColorMatrixFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const colorMatrixFilter = pipeline.addColorMatrix();\n  const cm = colorMatrixFilter.colorMatrix;\n  switch (effect) {\n    case \"grayscale\":\n      cm.grayscale(amount);\n      break;\n    case \"sepia\":\n      cm.sepia();\n      break;\n    case \"negative\":\n      cm.negative();\n      break;\n    case \"blackWhite\":\n      cm.blackWhite();\n      break;\n    case \"brown\":\n      cm.brown();\n      break;\n    case \"kodachrome\":\n      cm.kodachrome();\n      break;\n    case \"technicolor\":\n      cm.technicolor();\n      break;\n    case \"polaroid\":\n      cm.polaroid();\n      break;\n  }\n  return colorMatrixFilter;\n};\nexport {\n  createColorMatrixFX\n};\n//# sourceMappingURL=color-matrix.js.map\n","const createGlowFX = (obj, config, type = \"internal\") => {\n  const {\n    color = 16777215,\n    outerStrength = 4,\n    innerStrength = 0,\n    knockout = false,\n    quality = 0.1,\n    distance = 10\n  } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createGlowFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createGlowFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const glow = pipeline.addGlow(color, outerStrength, innerStrength, 1, knockout, quality, distance);\n  return glow;\n};\nexport {\n  createGlowFX\n};\n//# sourceMappingURL=glow.js.map\n","const createPixelateFX = (obj, config, type = \"internal\") => {\n  const { amount = 1 } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createPixelateFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createPixelateFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const pixelate = pipeline.addPixelate(amount);\n  return pixelate;\n};\nexport {\n  createPixelateFX\n};\n//# sourceMappingURL=pixelate.js.map\n","const createShadowFX = (obj, config, type = \"internal\") => {\n  const {\n    x = 0,\n    y = 1,\n    decay = 0.05,\n    power = 1,\n    color = 0,\n    samples = 6,\n    intensity = 1\n  } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createShadowFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createShadowFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const shadow = pipeline.addShadow(x, y, decay, power, color, samples, intensity);\n  return shadow;\n};\nexport {\n  createShadowFX\n};\n//# sourceMappingURL=shadow.js.map\n","const createVignetteFX = (obj, config, type = \"internal\") => {\n  const { strength = 0.5, radius = 0.5, x = 0.5, y = 0.5 } = config;\n  obj.enableFilters();\n  const filters = obj.filters;\n  if (!filters) {\n    console.warn(\"[createVignetteFX] Filters not available on this GameObject\");\n    return null;\n  }\n  const pipeline = type === \"internal\" ? filters.internal : filters.external;\n  if (!pipeline) {\n    console.warn(\"[createVignetteFX] FX pipeline not available on this GameObject\");\n    return null;\n  }\n  const vignette = pipeline.addVignette(x, y, radius, strength);\n  return vignette;\n};\nexport {\n  createVignetteFX\n};\n//# sourceMappingURL=vignette.js.map\n","import { createBlurFX } from \"./fx-creators/blur.js\";\nimport { createColorMatrixFX } from \"./fx-creators/color-matrix.js\";\nimport { createGlowFX } from \"./fx-creators/glow.js\";\nimport { createPixelateFX } from \"./fx-creators/pixelate.js\";\nimport { createShadowFX } from \"./fx-creators/shadow.js\";\nimport { createVignetteFX } from \"./fx-creators/vignette.js\";\nconst FX_REGISTRY = {\n  shadow: createShadowFX,\n  glow: createGlowFX,\n  blur: createBlurFX,\n  pixelate: createPixelateFX,\n  vignette: createVignetteFX,\n  grayscale: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"grayscale\" }, type),\n  sepia: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"sepia\" }, type),\n  negative: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"negative\" }, type),\n  blackWhite: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"blackWhite\" }, type),\n  brown: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"brown\" }, type),\n  kodachrome: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"kodachrome\" }, type),\n  technicolor: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"technicolor\" }, type),\n  polaroid: (obj, config, type) => createColorMatrixFX(obj, { ...config, effect: \"polaroid\" }, type)\n};\nconst DEFAULT_FX = \"grayscale\";\nfunction resolveFX(fxOrName) {\n  if (typeof fxOrName === \"function\") {\n    return fxOrName;\n  }\n  return FX_REGISTRY[fxOrName] ?? null;\n}\nfunction applyFXByName(applyFXFn, fxName, config = {}) {\n  const creator = resolveFX(fxName);\n  if (creator) {\n    applyFXFn(creator, config);\n  } else {\n    console.warn(`[applyFXByName] FX \"${fxName}\" not found in registry`);\n  }\n}\nexport {\n  DEFAULT_FX,\n  FX_REGISTRY,\n  applyFXByName,\n  resolveFX\n};\n//# sourceMappingURL=fx-registry.js.map\n","import \"../../hooks.js\";\nimport { createBlurFX } from \"../fx-creators/blur.js\";\nimport { useFX } from \"../use-fx.js\";\nimport { useEffect } from \"@number10/jsx-core\";\nfunction useBlur(ref, config = {}) {\n  const { applyFX, clearFX } = useFX(ref);\n  useEffect(() => {\n    if (!ref.current) return;\n    clearFX();\n    applyFX(createBlurFX, config);\n    return () => clearFX();\n  }, [ref, config, applyFX, clearFX]);\n  return { clearFX };\n}\nexport {\n  useBlur\n};\n//# sourceMappingURL=use-blur.js.map\n","import \"../../hooks.js\";\nimport { createGlowFX } from \"../fx-creators/glow.js\";\nimport { useFX } from \"../use-fx.js\";\nimport { useEffect } from \"@number10/jsx-core\";\nfunction useGlow(ref, config = {}) {\n  const { applyFX, clearFX } = useFX(ref);\n  useEffect(() => {\n    if (!ref.current) return;\n    clearFX();\n    applyFX(createGlowFX, config);\n    return () => clearFX();\n  }, [ref, config, applyFX, clearFX]);\n  return { clearFX };\n}\nexport {\n  useGlow\n};\n//# sourceMappingURL=use-glow.js.map\n","import \"../../hooks.js\";\nimport { createShadowFX } from \"../fx-creators/shadow.js\";\nimport { useFX } from \"../use-fx.js\";\nimport { useEffect } from \"@number10/jsx-core\";\nfunction useShadow(ref, config = {}) {\n  const { applyFX, clearFX } = useFX(ref);\n  useEffect(() => {\n    if (!ref.current) return;\n    clearFX();\n    applyFX(createShadowFX, config);\n    return () => clearFX();\n  }, [ref, config, applyFX, clearFX]);\n  return { clearFX };\n}\nexport {\n  useShadow\n};\n//# sourceMappingURL=use-shadow.js.map\n","import \"../hooks.js\";\nimport { buildEmitZoneFromLayout, buildDeathZonesFromLayout } from \"./emit-zone.js\";\nimport { isParticleEmitter, getFirstEmitter, applyEmitterConfig, applyEmitZone, applyDeathZone } from \"./utils.js\";\nimport { useCallback } from \"@number10/jsx-core\";\nfunction useParticles(ref) {\n  const getManager = useCallback(() => ref.current ?? null, [ref]);\n  const getEmitter = useCallback(() => {\n    const current = ref.current;\n    if (!current) return null;\n    if (isParticleEmitter(current)) return current;\n    return getFirstEmitter(current);\n  }, [ref]);\n  const start = useCallback(() => {\n    const emitter = getEmitter();\n    emitter?.start();\n  }, [getEmitter]);\n  const stop = useCallback(() => {\n    const emitter = getEmitter();\n    emitter?.stop();\n  }, [getEmitter]);\n  const explode = useCallback(\n    (count, x, y) => {\n      const emitter = getEmitter();\n      emitter?.explode(count, x, y);\n    },\n    [getEmitter]\n  );\n  const setConfig = useCallback(\n    (config) => {\n      const emitter = getEmitter();\n      applyEmitterConfig(emitter, config);\n    },\n    [getEmitter]\n  );\n  const setEmitZone = useCallback(\n    (zone, width, height) => {\n      const emitter = getEmitter();\n      const emitZone = buildEmitZoneFromLayout(zone, width, height);\n      applyEmitZone(emitter, emitZone);\n    },\n    [getEmitter]\n  );\n  const setDeathZones = useCallback(\n    (zones, width, height) => {\n      const emitter = getEmitter();\n      const manager = getManager();\n      const deathZones = buildDeathZonesFromLayout(zones, width, height, manager ?? void 0);\n      applyDeathZone(emitter, deathZones);\n    },\n    [getEmitter, getManager]\n  );\n  return {\n    getManager,\n    getEmitter,\n    start,\n    stop,\n    explode,\n    setConfig,\n    setEmitZone,\n    setDeathZones,\n    setExcludeZones: setDeathZones\n  };\n}\nexport {\n  useParticles\n};\n//# sourceMappingURL=use-particles.js.map\n","import * as Phaser from \"phaser\";\nconst DEFAULT_LOGO_KEY = \"phaser-jsx-logo\";\nconst DEFAULT_BACKGROUND = {\n  type: \"grid\",\n  animation: \"lemniscate\",\n  opacity: 0.15,\n  color: 4890367\n};\nlet sceneBackgroundTextureId = 0;\nfunction colorToCss(color) {\n  return `#${color.toString(16).padStart(6, \"0\")}`;\n}\nfunction createCanvasTexture(scene, width, height, draw) {\n  const textureKey = `__phaserjsx_scene_bg_${sceneBackgroundTextureId++}`;\n  const textureWidth = Math.max(1, Math.ceil(width));\n  const textureHeight = Math.max(1, Math.ceil(height));\n  const texture = scene.textures.createCanvas(textureKey, textureWidth, textureHeight);\n  if (!texture) {\n    throw new Error(\"Unable to create scene background texture\");\n  }\n  const canvas = texture.getSourceImage();\n  const ctx = canvas.getContext(\"2d\");\n  if (!ctx) {\n    throw new Error(\"Unable to create scene background canvas texture\");\n  }\n  ctx.clearRect(0, 0, textureWidth, textureHeight);\n  draw(ctx, textureWidth, textureHeight);\n  texture.refresh();\n  return textureKey;\n}\nfunction removeTexture(scene, textureKey) {\n  if (textureKey && scene.textures.exists(textureKey)) {\n    scene.textures.remove(textureKey);\n  }\n}\nfunction addSceneBackground(scene, config = DEFAULT_BACKGROUND) {\n  const bgConfig = config ?? DEFAULT_BACKGROUND;\n  if (bgConfig.type === \"none\") return null;\n  let background;\n  let backgroundTween;\n  const particleTweens = [];\n  const textureKeys = /* @__PURE__ */ new Set();\n  let resizeFn;\n  let destroyed = false;\n  const createGridBackground = () => {\n    const gridSize = 40;\n    const color = bgConfig.color ?? 4890367;\n    const opacity = bgConfig.opacity ?? 0.15;\n    const textureKey = createCanvasTexture(scene, gridSize, gridSize, (ctx, width, height) => {\n      ctx.globalAlpha = opacity;\n      ctx.strokeStyle = colorToCss(color);\n      ctx.lineWidth = 1;\n      ctx.beginPath();\n      ctx.moveTo(0.5, 0);\n      ctx.lineTo(0.5, height);\n      ctx.moveTo(0, 0.5);\n      ctx.lineTo(width, 0.5);\n      ctx.stroke();\n    });\n    textureKeys.add(textureKey);\n    const tile = scene.add.tileSprite(0, 0, scene.scale.width, scene.scale.height, textureKey);\n    tile.setOrigin(0, 0);\n    const moveGrid = (offsetX, offsetY) => {\n      tile.tilePositionX = -offsetX;\n      tile.tilePositionY = -offsetY;\n    };\n    tile.__redrawFn = moveGrid;\n    background = tile;\n    resizeFn = (width, height) => {\n      tile.setSize(width, height);\n    };\n  };\n  const createLogoBackground = () => {\n    const container = scene.add.container(scene.scale.width / 2, scene.scale.height / 2);\n    const opacity = bgConfig.opacity ?? 0.1;\n    const logoKey = bgConfig.logoKey ?? DEFAULT_LOGO_KEY;\n    const logo = scene.add.image(0, 0, logoKey);\n    logo.setAlpha(opacity);\n    logo.setScale(0.5);\n    container.add(logo);\n    background = container;\n    resizeFn = (width, height) => {\n      container.setPosition(width / 2, height / 2);\n    };\n  };\n  const createGradientBackground = () => {\n    const color1 = bgConfig.color ?? 4890367;\n    const color2 = bgConfig.colorSecondary ?? 7031551;\n    const opacity = bgConfig.opacity ?? 0.2;\n    const createGradientTexture = (width, height) => createCanvasTexture(scene, width, height, (ctx, textureWidth, textureHeight) => {\n      const gradient = ctx.createLinearGradient(0, 0, 0, textureHeight);\n      gradient.addColorStop(0, colorToCss(color1));\n      gradient.addColorStop(1, colorToCss(color2));\n      ctx.globalAlpha = opacity;\n      ctx.fillStyle = gradient;\n      ctx.fillRect(0, 0, textureWidth, textureHeight);\n    });\n    let textureKey = createGradientTexture(scene.scale.width, scene.scale.height);\n    textureKeys.add(textureKey);\n    const image = scene.add.image(0, 0, textureKey);\n    image.setOrigin(0, 0);\n    resizeFn = (width, height) => {\n      const previousTextureKey = textureKey;\n      textureKey = createGradientTexture(width, height);\n      textureKeys.add(textureKey);\n      image.setTexture(textureKey);\n      image.setDisplaySize(width, height);\n      textureKeys.delete(previousTextureKey);\n      removeTexture(scene, previousTextureKey);\n    };\n    background = image;\n  };\n  const createParticlesBackground = () => {\n    const container = scene.add.container(0, 0);\n    const particleCount = 20;\n    const color = bgConfig.color ?? 4890367;\n    const opacity = bgConfig.opacity ?? 0.1;\n    const particles = [];\n    for (let i = 0; i < particleCount; i += 1) {\n      const size = Phaser.Math.Between(2, 6);\n      const x = Phaser.Math.Between(0, scene.scale.width);\n      const y = Phaser.Math.Between(0, scene.scale.height);\n      const particle = scene.add.circle(x, y, size, color, opacity);\n      container.add(particle);\n      particles.push(particle);\n      particleTweens.push(\n        scene.tweens.add({\n          targets: particle,\n          y: particle.y + Phaser.Math.Between(-50, 50),\n          x: particle.x + Phaser.Math.Between(-50, 50),\n          alpha: opacity * 1.5,\n          duration: Phaser.Math.Between(2e3, 4e3),\n          yoyo: true,\n          repeat: -1,\n          ease: \"Sine.easeInOut\"\n        })\n      );\n    }\n    background = container;\n    resizeFn = (width, height) => {\n      for (const particle of particles) {\n        particle.setPosition(Phaser.Math.Between(0, width), Phaser.Math.Between(0, height));\n      }\n    };\n  };\n  switch (bgConfig.type) {\n    case \"grid\":\n      createGridBackground();\n      break;\n    case \"logo\":\n      createLogoBackground();\n      break;\n    case \"gradient\":\n      createGradientBackground();\n      break;\n    case \"particles\":\n      createParticlesBackground();\n      break;\n  }\n  if (!background) return null;\n  if (bgConfig.animation && bgConfig.animation !== \"static\") {\n    backgroundTween = applyAnimation(scene, background, bgConfig.animation);\n  }\n  const onResize = () => {\n    if (resizeFn) resizeFn(scene.scale.width, scene.scale.height);\n  };\n  const cleanup = () => {\n    if (destroyed) return;\n    destroyed = true;\n    backgroundTween?.stop();\n    for (const tween of particleTweens) {\n      tween.stop();\n    }\n    background?.destroy();\n    background = void 0;\n    for (const textureKey of textureKeys) {\n      removeTexture(scene, textureKey);\n    }\n    textureKeys.clear();\n    scene.scale.off(Phaser.Scale.Events.RESIZE, onResize);\n    scene.events.off(Phaser.Scenes.Events.SHUTDOWN, cleanup);\n    scene.events.off(Phaser.Scenes.Events.DESTROY, cleanup);\n  };\n  scene.scale.on(Phaser.Scale.Events.RESIZE, onResize);\n  scene.events.once(Phaser.Scenes.Events.SHUTDOWN, cleanup);\n  scene.events.once(Phaser.Scenes.Events.DESTROY, cleanup);\n  return {\n    background,\n    destroy: cleanup,\n    resize: (width, height) => {\n      if (resizeFn) resizeFn(width, height);\n    }\n  };\n}\nfunction applyAnimation(scene, target, animation) {\n  const redrawFn = target.__redrawFn;\n  switch (animation) {\n    case \"lemniscate\":\n      return redrawFn ? animateLemniscate(scene, redrawFn) : animatePulse(scene, target);\n    case \"wave\":\n      return redrawFn ? animateWave(scene, redrawFn) : animatePulse(scene, target);\n    case \"pulse\":\n      return animatePulse(scene, target);\n    case \"rotate\":\n      return animateRotate(scene, target);\n    case \"static\":\n    default:\n      return void 0;\n  }\n}\nfunction animateLemniscate(scene, drawFn) {\n  const amplitude = 30;\n  const duration = 8e3;\n  return scene.tweens.addCounter({\n    from: 0,\n    to: Math.PI * 2,\n    duration,\n    repeat: -1,\n    onUpdate: (tween) => {\n      const t = tween.getValue();\n      if (t !== null) {\n        const offsetX = amplitude * Math.cos(t);\n        const offsetY = amplitude * Math.sin(2 * t) / 2;\n        drawFn(offsetX, offsetY);\n      }\n    }\n  });\n}\nfunction animateWave(scene, drawFn) {\n  return scene.tweens.addCounter({\n    from: 0,\n    to: 40,\n    duration: 3e3,\n    yoyo: true,\n    repeat: -1,\n    onUpdate: (tween) => {\n      const offset = tween.getValue();\n      if (offset !== null) {\n        drawFn(offset, 0);\n      }\n    }\n  });\n}\nfunction animatePulse(scene, target) {\n  return scene.tweens.add({\n    targets: target,\n    scaleX: 1.1,\n    scaleY: 1.1,\n    duration: 2e3,\n    yoyo: true,\n    repeat: -1,\n    ease: \"Sine.easeInOut\"\n  });\n}\nfunction animateRotate(scene, target) {\n  return scene.tweens.add({\n    targets: target,\n    angle: 360,\n    duration: 2e4,\n    repeat: -1,\n    ease: \"Linear\"\n  });\n}\nexport {\n  DEFAULT_BACKGROUND,\n  addSceneBackground\n};\n//# sourceMappingURL=scene-backgrounds.js.map\n","function preprocessSvgForTinting(svg) {\n  return svg.replace(/fill=\"currentColor\"/gi, 'fill=\"#FFFFFF\"').replace(/fill='currentColor'/gi, \"fill='#FFFFFF'\").replace(/fill:\\s*currentColor/gi, \"fill: #FFFFFF\").replace(/stroke=\"currentColor\"/gi, 'stroke=\"#FFFFFF\"').replace(/stroke='currentColor'/gi, \"stroke='#FFFFFF'\").replace(/stroke:\\s*currentColor/gi, \"stroke: #FFFFFF\").replace(/fill=\"#000000\"/gi, 'fill=\"#FFFFFF\"').replace(/fill=\"#000\"/gi, 'fill=\"#FFFFFF\"').replace(/fill='#000000'/gi, \"fill='#FFFFFF'\").replace(/fill='#000'/gi, \"fill='#FFFFFF'\").replace(/stroke=\"#000000\"/gi, 'stroke=\"#FFFFFF\"').replace(/stroke=\"#000\"/gi, 'stroke=\"#FFFFFF\"').replace(/stroke='#000000'/gi, \"stroke='#FFFFFF'\").replace(/stroke='#000'/gi, \"stroke='#FFFFFF'\");\n}\nasync function svgToTexture(scene, key, svgOrUrl, width = 32, height = 32) {\n  const trimmed = svgOrUrl.trim();\n  let finalUrl;\n  let shouldRevokeUrl = false;\n  const isSvgString = trimmed.startsWith(\"<svg\") || trimmed.startsWith(\"<!--\");\n  if (isSvgString && trimmed.includes(\"<svg\")) {\n    const processedSvg = preprocessSvgForTinting(trimmed);\n    const blob = new Blob([processedSvg], { type: \"image/svg+xml\" });\n    finalUrl = URL.createObjectURL(blob);\n    shouldRevokeUrl = true;\n  } else {\n    finalUrl = svgOrUrl;\n  }\n  const img = await new Promise((resolve, reject) => {\n    const image = new Image();\n    image.crossOrigin = \"anonymous\";\n    image.onload = () => resolve(image);\n    image.onerror = () => reject(new Error(`Failed to load SVG: ${key}`));\n    image.src = finalUrl;\n  });\n  const canvas = document.createElement(\"canvas\");\n  canvas.width = width;\n  canvas.height = height;\n  const ctx = canvas.getContext(\"2d\");\n  if (!ctx) {\n    throw new Error(\"Failed to get canvas 2D context\");\n  }\n  ctx.clearRect(0, 0, width, height);\n  ctx.drawImage(img, 0, 0, width, height);\n  if (scene.textures.exists(key)) {\n    scene.textures.remove(key);\n  }\n  scene.textures.addCanvas(key, canvas);\n  if (shouldRevokeUrl) {\n    URL.revokeObjectURL(finalUrl);\n  }\n  const texture = scene.textures.get(key);\n  if (texture && texture.source[0]) {\n    texture.source[0].update();\n  }\n}\nexport {\n  svgToTexture\n};\n//# sourceMappingURL=svg-texture.js.map\n","import { summarizeMap } from \"@number10/jsx-components\";\nimport { useState, useEffect, DevConfig } from \"@number10/jsx-core\";\nimport * as Phaser from \"phaser\";\nimport { useScene } from \"../hooks.js\";\nimport { getMountStats } from \"../vdom.js\";\nfunction resolveRendererName(scene) {\n  const renderer = scene.renderer;\n  const canvasType = Phaser.CANVAS;\n  if (renderer.type === Phaser.WEBGL) return \"WebGL\";\n  if (canvasType !== void 0 && renderer.type === canvasType) return \"Canvas\";\n  if (renderer.constructor?.name) return renderer.constructor.name;\n  if (typeof renderer.type === \"number\") return `Type ${renderer.type}`;\n  return \"Unknown\";\n}\nfunction resolveTextureCount(scene) {\n  const manager = scene.textures;\n  const keys = typeof manager.getTextureKeys === \"function\" ? manager.getTextureKeys() : Object.keys(manager.list ?? {});\n  const internalKeys = /* @__PURE__ */ new Set([\"__DEFAULT\", \"__MISSING\", \"__NORMAL\", \"__WHITE\"]);\n  return keys.filter((key) => !internalKeys.has(key.toUpperCase())).length;\n}\nfunction resolveFrameStats(scene) {\n  const loop = scene.game.loop;\n  const rawFps = loop?.actualFps ?? loop?.fps ?? 0;\n  const rawFrameMs = loop?.delta ?? loop?.frameDelta ?? 0;\n  const fps = Number.isFinite(rawFps) ? Number(rawFps.toFixed(1)) : 0;\n  const frameMs = Number.isFinite(rawFrameMs) ? Number(rawFrameMs.toFixed(2)) : 0;\n  return { fps, frameMs };\n}\nfunction resolveDebugFlags() {\n  const debugConfig = DevConfig.debug;\n  if (!debugConfig.enabled) return \"off\";\n  const enabledFlags = Object.entries(debugConfig).filter(([key, value]) => key !== \"enabled\" && value).map(([key]) => key);\n  return enabledFlags.length ? enabledFlags.join(\",\") : \"enabled\";\n}\nfunction collectPhaserSnapshot(scene) {\n  const { fps, frameMs } = resolveFrameStats(scene);\n  const mountStats = getMountStats();\n  return {\n    fps,\n    frameMs,\n    phaserVersion: Phaser.VERSION,\n    renderer: resolveRendererName(scene),\n    viewport: `${scene.scale.width.toFixed(0)}x${scene.scale.height.toFixed(0)}`,\n    textureCount: resolveTextureCount(scene),\n    mountsTotal: mountStats.totalMounts,\n    mountsByType: summarizeMap(mountStats.byType),\n    mountsByParent: summarizeMap(mountStats.byParent),\n    mountsByKey: summarizeMap(mountStats.byKey),\n    debugFlags: resolveDebugFlags()\n  };\n}\nfunction usePhaserDebugSnapshot(intervalMs = 250) {\n  const scene = useScene();\n  const [snapshot, setSnapshot] = useState(collectPhaserSnapshot(scene));\n  useEffect(() => {\n    const delay = Math.max(50, intervalMs);\n    setSnapshot(collectPhaserSnapshot(scene));\n    const timer = window.setInterval(() => {\n      setSnapshot(collectPhaserSnapshot(scene));\n    }, delay);\n    return () => {\n      window.clearInterval(timer);\n    };\n  }, [scene, intervalMs]);\n  return snapshot;\n}\nexport {\n  collectPhaserSnapshot,\n  usePhaserDebugSnapshot\n};\n//# sourceMappingURL=DebugPanel.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nimport \"../../hooks.js\";\nimport { getThemedProps } from \"../../theme.js\";\nimport { useTheme } from \"@number10/jsx-core\";\nfunction Graphics(props) {\n  const localTheme = useTheme();\n  const { props: themed, nestedTheme } = getThemedProps(\"Graphics\", localTheme, props);\n  return /* @__PURE__ */ jsx(\"graphics\", { ...themed, theme: nestedTheme });\n}\nexport {\n  Graphics\n};\n//# sourceMappingURL=Graphics.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nimport \"../../hooks.js\";\nimport { getThemedProps } from \"../../theme.js\";\nimport { useTheme } from \"@number10/jsx-core\";\nfunction NineSlice(props) {\n  const localTheme = useTheme();\n  const { props: themed, nestedTheme } = getThemedProps(\"NineSlice\", localTheme, props);\n  return /* @__PURE__ */ jsx(\"nineslice\", { ...themed, theme: nestedTheme });\n}\nexport {\n  NineSlice\n};\n//# sourceMappingURL=NineSlice.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nfunction Particles(props) {\n  return /* @__PURE__ */ jsx(\"particles\", { ...props });\n}\nexport {\n  Particles\n};\n//# sourceMappingURL=Particles.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nimport { View } from \"@number10/jsx-components\";\nimport \"../../hooks.js\";\nimport { getRenderContext } from \"../../render-context.js\";\nimport { useRef, useState } from \"@number10/jsx-core\";\nfunction RefOriginView({\n  originX = 0.5,\n  originY = 0.5,\n  x = 0,\n  y = 0,\n  width,\n  height,\n  ref,\n  padding,\n  children,\n  ...viewProps\n}) {\n  const outerRef = useRef(null);\n  const [numericDimension, setNumericWidth] = useState({ x: 0, y: 0 });\n  const handleOuterRef = (container) => {\n    if (!container) return;\n    outerRef.current = container;\n    getRenderContext(container.scene).deferLayout(() => {\n      const width2 = container.width;\n      const height2 = container.height;\n      const actualWidth = Number.isNaN(width2) ? 0 : width2;\n      const actualHeight = Number.isNaN(height2) ? 0 : height2;\n      if (actualHeight !== numericDimension.y || actualWidth !== numericDimension.x)\n        setNumericWidth({ x: actualWidth, y: actualHeight });\n    });\n  };\n  const pivotX = numericDimension.x * originX;\n  const pivotY = numericDimension.y * originY;\n  const offsetX = -numericDimension.x * originX;\n  const offsetY = -numericDimension.y * originY;\n  return /* @__PURE__ */ jsx(\n    View,\n    {\n      ref: handleOuterRef,\n      direction: \"stack\",\n      width,\n      height,\n      x,\n      y,\n      padding,\n      children: /* @__PURE__ */ jsx(\n        View,\n        {\n          ref,\n          x: pivotX,\n          y: pivotY,\n          width: 0,\n          height: 0,\n          padding: { left: offsetX, top: offsetY },\n          margin: 0,\n          direction: \"stack\",\n          backgroundColor: 16746751,\n          children: /* @__PURE__ */ jsx(View, { width, height, ...viewProps, direction: \"stack\", padding: 0, margin: 0, children })\n        }\n      )\n    }\n  );\n}\nexport {\n  RefOriginView\n};\n//# sourceMappingURL=RefOriginView.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nimport \"../../hooks.js\";\nimport { getThemedProps } from \"../../theme.js\";\nimport { useTheme } from \"@number10/jsx-core\";\nfunction Sprite(props) {\n  const localTheme = useTheme();\n  const { props: themed, nestedTheme } = getThemedProps(\"Sprite\", localTheme, props);\n  return /* @__PURE__ */ jsx(\"sprite\", { ...themed, theme: nestedTheme });\n}\nexport {\n  Sprite\n};\n//# sourceMappingURL=Sprite.js.map\n","import { jsx } from \"@number10/jsx-core/jsx-runtime\";\nimport \"../../hooks.js\";\nimport { getThemedProps } from \"../../theme.js\";\nimport { useTheme } from \"@number10/jsx-core\";\nfunction TileSprite(props) {\n  const localTheme = useTheme();\n  const { props: themed, nestedTheme } = getThemedProps(\"TileSprite\", localTheme, props);\n  return /* @__PURE__ */ jsx(\"tilesprite\", { ...themed, theme: nestedTheme });\n}\nexport {\n  TileSprite\n};\n//# sourceMappingURL=TileSprite.js.map\n","import \"../hooks.js\";\nimport { themeRegistry } from \"../theme.js\";\nimport { useState, useEffect } from \"@number10/jsx-core\";\nfunction useColorMode() {\n  const [colorMode, setColorModeState] = useState(themeRegistry.getColorMode());\n  useEffect(() => {\n    const unsubscribe = themeRegistry.subscribe(() => {\n      setColorModeState(themeRegistry.getColorMode());\n    });\n    return unsubscribe;\n  }, []);\n  const setColorMode = (mode) => {\n    themeRegistry.setColorMode(mode);\n  };\n  const toggleColorMode = () => {\n    const newMode = colorMode === \"light\" ? \"dark\" : \"light\";\n    setColorMode(newMode);\n  };\n  return {\n    colorMode,\n    setColorMode,\n    toggleColorMode\n  };\n}\nexport {\n  useColorMode\n};\n//# sourceMappingURL=use-color-mode.js.map\n","import { useTheme, useRef, useState, getPresetWithMode, useEffect } from \"@number10/jsx-core\";\nimport \"../hooks.js\";\nimport { themeRegistry } from \"../theme.js\";\nfunction useColors() {\n  const localTheme = useTheme();\n  const localThemeRef = useRef(localTheme);\n  localThemeRef.current = localTheme;\n  const [colors, setColors] = useState(\n    localTheme?.__colorPreset ? getPresetWithMode(\n      localTheme.__colorPreset.name,\n      localTheme.__colorPreset.mode ?? \"light\"\n    ).colors : themeRegistry.getColorTokens()\n  );\n  useEffect(() => {\n    const unsubscribe = themeRegistry.subscribe(() => {\n      const current = localThemeRef.current;\n      if (current?.__colorPreset) {\n        const currentMode = themeRegistry.getColorMode();\n        const preset = getPresetWithMode(\n          current.__colorPreset.name,\n          currentMode\n        );\n        setColors(preset.colors);\n      } else {\n        setColors(themeRegistry.getColorTokens());\n      }\n    });\n    return unsubscribe;\n  }, []);\n  return colors;\n}\nfunction useThemeSubscription() {\n  const [, forceUpdate] = useState(0);\n  useEffect(() => {\n    const unsubscribe = themeRegistry.subscribe(() => {\n      forceUpdate((n) => n + 1);\n    });\n    return unsubscribe;\n  }, []);\n}\nexport {\n  useColors,\n  useThemeSubscription\n};\n//# sourceMappingURL=use-colors.js.map\n","import \"../hooks.js\";\nimport { themeRegistry } from \"../theme.js\";\nimport { resolveThemeTokens } from \"./resolve-theme-tokens.js\";\nimport { useTheme, useState, useEffect } from \"@number10/jsx-core\";\nfunction useThemeTokens() {\n  const localTheme = useTheme();\n  const getInitialTokens = () => resolveThemeTokens(localTheme);\n  const [tokens, setTokens] = useState(getInitialTokens());\n  const [, forceUpdate] = useState(0);\n  useEffect(() => {\n    const unsubscribe = themeRegistry.subscribe(() => {\n      const currentTheme = localTheme?.__colorPreset ? {\n        ...localTheme,\n        __colorPreset: { ...localTheme.__colorPreset, mode: themeRegistry.getColorMode() }\n      } : localTheme;\n      setTokens(resolveThemeTokens(currentTheme));\n      forceUpdate((n) => n + 1);\n    });\n    return unsubscribe;\n  }, [localTheme]);\n  return tokens;\n}\nexport {\n  useThemeTokens\n};\n//# sourceMappingURL=use-theme-tokens.js.map\n","class DOMInputElement {\n  input;\n  container;\n  scene;\n  scrollHandler;\n  resizeHandler;\n  throttledScrollHandler;\n  throttledResizeHandler;\n  intersectionObserver = null;\n  isDestroyed = false;\n  lastValues = { left: 0, top: 0, width: 0, height: 0 };\n  counter = 0;\n  scrollThrottleTimeout = null;\n  resizeThrottleTimeout = null;\n  constructor(container, config = {}) {\n    this.container = container;\n    this.scene = container.scene;\n    this.input = document.createElement(\"input\");\n    this.input.type = config.type ?? \"text\";\n    if (config.placeholder) this.input.placeholder = config.placeholder;\n    if (config.value) this.input.value = config.value;\n    if (config.disabled) this.input.disabled = config.disabled;\n    if (config.maxLength) this.input.maxLength = config.maxLength;\n    if (config.autocomplete) this.input.setAttribute(\"autocomplete\", config.autocomplete);\n    if (config.autocorrect) this.input.setAttribute(\"autocorrect\", config.autocorrect);\n    if (config.autocapitalize) this.input.setAttribute(\"autocapitalize\", config.autocapitalize);\n    if (config.spellcheck !== void 0)\n      this.input.setAttribute(\"spellcheck\", config.spellcheck.toString());\n    this.applyDefaultStyles();\n    if (config.styles) {\n      Object.assign(this.input.style, config.styles);\n    }\n    document.body.appendChild(this.input);\n    if (config.onInput) {\n      this.input.addEventListener(\"input\", (e) => {\n        config.onInput?.(this.input.value, e);\n      });\n    }\n    if (config.onKeyDown) {\n      this.input.addEventListener(\"keydown\", config.onKeyDown);\n    }\n    if (config.onKeyUp) {\n      this.input.addEventListener(\"keyup\", config.onKeyUp);\n    }\n    if (config.onFocus) {\n      this.input.addEventListener(\"focus\", (e) => {\n        config.onFocus?.(e);\n      });\n    }\n    if (config.onBlur) {\n      this.input.addEventListener(\"blur\", (e) => {\n        config.onBlur?.(e);\n      });\n    }\n    this.updatePosition();\n    this.scrollHandler = this.updatePosition.bind(this);\n    this.resizeHandler = this.updatePosition.bind(this);\n    this.throttledScrollHandler = this.throttle(this.scrollHandler, 20);\n    this.throttledResizeHandler = this.throttle(this.resizeHandler, 20);\n    document.addEventListener(\"scroll\", this.throttledScrollHandler, {\n      passive: true,\n      capture: true\n    });\n    window.addEventListener(\"resize\", this.throttledResizeHandler, { passive: true });\n    this.setupIntersectionObserver();\n    this.container.once(\"destroy\", () => {\n      this.destroy();\n    });\n    this.scene.events.once(\"shutdown\", () => {\n      this.destroy();\n    });\n  }\n  /**\n   * Setup IntersectionObserver to detect canvas position changes\n   */\n  setupIntersectionObserver() {\n    const canvas = this.scene.game.canvas;\n    this.intersectionObserver = new IntersectionObserver(\n      () => {\n        this.updatePosition();\n      },\n      {\n        threshold: [0, 0.1, 0.5, 0.9, 1]\n        // Trigger on various visibility changes\n      }\n    );\n    this.intersectionObserver.observe(canvas);\n  }\n  /**\n   * Throttle function to limit call frequency\n   * @param func - Function to throttle\n   * @param delay - Minimum delay between calls in ms\n   * @returns Throttled function\n   */\n  throttle(func, delay) {\n    let timeoutId = null;\n    return () => {\n      if (timeoutId !== null) return;\n      timeoutId = window.setTimeout(() => {\n        func();\n        timeoutId = null;\n      }, delay);\n    };\n  }\n  /**\n   * Apply default styles to input element\n   */\n  applyDefaultStyles() {\n    Object.assign(this.input.style, {\n      position: \"absolute\",\n      pointerEvents: \"auto\",\n      boxSizing: \"border-box\",\n      fontFamily: \"Arial, sans-serif\",\n      fontSize: \"16px\",\n      padding: \"0px\",\n      margin: \"0px\",\n      border: \"none\",\n      borderRadius: \"0px\",\n      backgroundColor: \"transparent\",\n      color: \"transparent\",\n      outline: \"none\",\n      caretColor: \"transparent\"\n    });\n    const styleId = \"phaserjsx-input-no-selection\";\n    if (!document.getElementById(styleId)) {\n      const style = document.createElement(\"style\");\n      style.id = styleId;\n      style.textContent = `\n        input[type=\"text\"]::selection,\n        input[type=\"password\"]::selection,\n        input[type=\"email\"]::selection {\n          background: transparent !important;\n          color: transparent !important;\n        }\n      `;\n      document.head.appendChild(style);\n    }\n  }\n  /**\n   * Update input element position to match Phaser container\n   */\n  updatePosition() {\n    if (this.isDestroyed || !this.container.scene) return;\n    const canvas = this.scene.game.canvas;\n    const canvasRect = canvas.getBoundingClientRect();\n    const worldTransform = this.container.getWorldTransformMatrix();\n    const worldX = worldTransform.tx;\n    const worldY = worldTransform.ty;\n    const containerWidth = this.container.width ?? 200;\n    const containerHeight = this.container.height ?? 40;\n    const scale = this.scene.game.scale;\n    const zoom = this.scene.cameras.main.zoom;\n    const left = Math.round(canvasRect.left + worldX * zoom * scale.displayScale.x);\n    const top = Math.round(canvasRect.top + worldY * zoom * scale.displayScale.y);\n    const width = Math.round(containerWidth * zoom * scale.displayScale.x);\n    const height = Math.round(containerHeight * zoom * scale.displayScale.y);\n    this.counter++;\n    if (this.lastValues.left === left && this.lastValues.top === top && this.lastValues.width === width && this.lastValues.height === height) {\n      return;\n    }\n    this.lastValues = { left, top, width, height };\n    this.input.style.left = `${left}px`;\n    this.input.style.top = `${top}px`;\n    this.input.style.width = `${width}px`;\n    this.input.style.height = `${height}px`;\n  }\n  /**\n   * Get the DOM input element\n   */\n  getElement() {\n    return this.input;\n  }\n  /**\n   * Set input value\n   */\n  setValue(value) {\n    if (!this.isDestroyed) {\n      this.input.value = value;\n    }\n  }\n  /**\n   * Get input value\n   */\n  getValue() {\n    return this.isDestroyed ? \"\" : this.input.value;\n  }\n  /**\n   * Focus the input\n   */\n  focus() {\n    if (!this.isDestroyed) {\n      this.input.focus();\n    }\n  }\n  /**\n   * Blur the input\n   */\n  blur() {\n    if (!this.isDestroyed) {\n      this.input.blur();\n    }\n  }\n  /**\n   * Set disabled state\n   */\n  setDisabled(disabled) {\n    if (!this.isDestroyed) {\n      this.input.disabled = disabled;\n    }\n  }\n  /**\n   * Set placeholder\n   */\n  setPlaceholder(placeholder) {\n    if (!this.isDestroyed) {\n      this.input.placeholder = placeholder;\n    }\n  }\n  /**\n   * Update styles\n   */\n  setStyles(styles) {\n    if (!this.isDestroyed) {\n      Object.assign(this.input.style, styles);\n    }\n  }\n  /**\n   * Destroy the input element and cleanup\n   */\n  destroy() {\n    if (this.isDestroyed) return;\n    this.isDestroyed = true;\n    if (this.scrollThrottleTimeout !== null) {\n      clearTimeout(this.scrollThrottleTimeout);\n    }\n    if (this.resizeThrottleTimeout !== null) {\n      clearTimeout(this.resizeThrottleTimeout);\n    }\n    if (this.intersectionObserver) {\n      this.intersectionObserver.disconnect();\n      this.intersectionObserver = null;\n    }\n    document.removeEventListener(\"scroll\", this.throttledScrollHandler, { capture: true });\n    window.removeEventListener(\"resize\", this.throttledResizeHandler);\n    if (this.input.parentElement) {\n      this.input.parentElement.removeChild(this.input);\n    }\n  }\n}\nexport {\n  DOMInputElement\n};\n//# sourceMappingURL=dom-input-manager.js.map\n","import { DOMInputElement } from \"./dom-input-manager.js\";\nclass KeyboardInputManager {\n  domInput = null;\n  container;\n  config;\n  constructor(container, config) {\n    this.container = container;\n    this.config = config;\n    this.create();\n  }\n  /**\n   * Create hidden DOM input element\n   */\n  create() {\n    const debugStyle = this.config.debug ? {\n      opacity: \"0.3\",\n      backgroundColor: \"rgba(0,0,0,0.3)\",\n      border: \"4px dashed red\",\n      color: \"white\"\n    } : {};\n    const domConfig = {\n      type: \"text\",\n      value: \"\",\n      ...this.config.disabled !== void 0 && { disabled: this.config.disabled },\n      ...this.config.maxLength !== void 0 && { maxLength: this.config.maxLength },\n      onInput: (value, event) => {\n        this.config.onInput?.(value, event);\n      },\n      onKeyDown: (event) => {\n        this.config.onKeyDown?.(event);\n      },\n      onKeyUp: (event) => {\n        this.config.onKeyUp?.(event);\n      },\n      onFocus: () => {\n        this.config.onFocus?.();\n      },\n      onBlur: () => {\n        this.config.onBlur?.();\n      },\n      styles: {\n        // need to debug until successful at all\n        opacity: \"0.0\",\n        // pointerEvents: 'none',\n        position: \"absolute\",\n        width: \"1px\",\n        height: \"1px\",\n        overflow: \"hidden\",\n        ...debugStyle\n      },\n      autocomplete: \"off\",\n      autocorrect: \"off\",\n      autocapitalize: \"off\",\n      spellcheck: false\n    };\n    this.domInput = new DOMInputElement(this.container, domConfig);\n  }\n  /**\n   * Update DOM input value programmatically\n   */\n  setValue(value) {\n    const element = this.domInput?.getElement();\n    if (element) {\n      element.value = value;\n    }\n  }\n  /**\n   * Focus the DOM input\n   */\n  focus() {\n    const element = this.domInput?.getElement();\n    if (element) {\n      element.focus();\n    }\n  }\n  /**\n   * Blur the DOM input\n   */\n  blur() {\n    const element = this.domInput?.getElement();\n    if (element) {\n      element.blur();\n    }\n  }\n  /**\n   * Check if DOM input is focused\n   */\n  isFocused() {\n    const element = this.domInput?.getElement();\n    return element === document.activeElement;\n  }\n  /**\n   * Set pointer events (auto when not focused, none when focused)\n   */\n  setPointerEvents(enabled) {\n    const element = this.domInput?.getElement();\n    if (element) {\n      element.style.pointerEvents = enabled ? \"auto\" : \"none\";\n    }\n  }\n  /**\n   * Destroy the DOM input\n   */\n  destroy() {\n    this.domInput?.destroy();\n    this.domInput = null;\n  }\n}\nexport {\n  KeyboardInputManager\n};\n//# sourceMappingURL=KeyboardInputManager.js.map\n","export * from \"@number10/jsx-core\";\nimport { DeferredLayoutQueue, Easing, LayoutBatchQueue, SPRING_PRESETS, SpringPhysics, animatedSignal, calculateLayout, computed, createTween, depsChanged, disposeCtx, getCurrentCtx, getCurrentOrThrow, isAnimatedSignal, setCurrentCtx, shallowEqual, shouldComponentUpdate, unwrapSignal, useAtlas, useCallback, useEffect, useForceRedraw, useLayoutEffect, useMemo, useRedraw, useRef, useSVGTexture, useSpring, useSprings, useState, useTexture, useTheme } from \"@number10/jsx-core\";\nimport { registerBuiltins } from \"./components/index.js\";\nimport \"./effects/phaser-effects-bridge.js\";\nimport { host, nodeRegistry, register } from \"./host.js\";\nimport { PhaserHostAdapter } from \"./phaser-host-adapter.js\";\nimport { PhaserSurfaceAdapter, createPhaserSurfaceContext, viewportRegistry } from \"./phaser-surface-adapter.js\";\nimport { PhaserVectorDrawContext } from \"./vector/PhaserVectorDrawContext.js\";\nimport { GestureManager, getGestureManager } from \"./gestures/gesture-manager.js\";\nimport { PhaserJSXPlugin, createPhaserJSXPlugin } from \"./plugin.js\";\nimport { RenderContext, getRenderContext } from \"./render-context.js\";\nimport { createElement, getHostAdapter, getMountStats, getSurfaceAdapter, mount, mountJSX, normalizeVNodeLike, patchVNode, remountAll, setHostAdapter, setSurfaceAdapter, unmount, unmountJSX } from \"./vdom.js\";\nimport { clearContainer, createDummyNode, deriveHostContext, extractScene, getParentContentSize, updateGestureHitAreaAfterLayout } from \"./phaser-bridges.js\";\nimport \"./layout/phaser-layout-bridge.js\";\nimport { Accordion, ActivityIndicator, AlertDialog, Badge, BottomSheet, BottomSheetDepth, BottomSheetHandle, Button, Checkbox, ColorPicker, ContextMenu, DebugPanel, Dialog, Divider, Dropdown, Icon, Image, Joystick, ListBox, MenuButton, Modal, NineSliceButton, NotificationStack, NumberInput, NumberInputIndicator, PalettePicker, Popover, Portal, ProgressBar, ProgressView, RadioButton, RadioGroup, RangeSlider, RatingBar, ScrollSlider, ScrollView, SegmentedControl, Sidebar, Slider, Tab, TabPanel, Tabs, Tag, Text, TextInput, Toast, Toggle, ToolButtonGroup, Toolbar, TransformOriginView, VectorDrawContent, View, WheelPicker, WrapText, calculateOverlayPosition, calculateSliderSize, chunkPalettePickerColors, createIconComponent, findListBoxItem, findSegmentedControlOption, formatBadgeCount, getBadgeText, getNextNumberInputValue, getNumberInputPrecision, getPalettePickerContrastColor, getToastAutoDismissDuration, getToolbarItemId, isSegmentedControlOptionSelectable, isToolbarMenuItem, isToolbarSeparatorItem, isToolbarToggleItem, normalizeNumberInputValue, normalizePalettePickerColor, normalizePalettePickerColors, resolveListBoxValue, resolveNotificationStackAlignment, resolvePalettePickerValue, resolveSegmentedControlValue, resolveToolbarActiveId, useIconPreload } from \"@number10/jsx-components\";\nimport { getCurrent, getLayoutProps, getLayoutRect, getLayoutSize, getWorldLayoutRect, useBackgroundGraphics, useLayoutRect, useLayoutSize, usePhaserTheme, useScene, useViewportSize, useWorldLayoutRect, withHooks } from \"./hooks.js\";\nimport { createDefaultTheme, createTheme, defaultTheme, getThemedProps, mergeThemes, themeRegistry } from \"./theme.js\";\nimport { useCameraFX } from \"./camera/use-camera-fx.js\";\nimport \"./clip/index.js\";\nimport { useGameObjectEffect } from \"./effects/use-effect.js\";\nimport { useFX } from \"./fx/use-fx.js\";\nimport { DEFAULT_FX, applyFXByName, FX_REGISTRY, resolveFX } from \"./fx/fx-registry.js\";\nimport { createBlurFX } from \"./fx/fx-creators/blur.js\";\nimport { createColorMatrixFX } from \"./fx/fx-creators/color-matrix.js\";\nimport { createGlowFX } from \"./fx/fx-creators/glow.js\";\nimport { createPixelateFX } from \"./fx/fx-creators/pixelate.js\";\nimport { createShadowFX } from \"./fx/fx-creators/shadow.js\";\nimport { createVignetteFX } from \"./fx/fx-creators/vignette.js\";\nimport { useBlur } from \"./fx/convenience-hooks/use-blur.js\";\nimport { useGlow } from \"./fx/convenience-hooks/use-glow.js\";\nimport { useShadow } from \"./fx/convenience-hooks/use-shadow.js\";\nimport { PARTICLE_PRESET_REGISTRY, resolveParticlePreset } from \"./particles/preset-registry.js\";\nimport { buildDeathZonesFromLayout, buildEmitZone, buildEmitZoneFromLayout } from \"./particles/emit-zone.js\";\nimport { useParticles } from \"./particles/use-particles.js\";\nimport { DEFAULT_BACKGROUND, addSceneBackground } from \"./scene-backgrounds.js\";\nimport { svgToTexture } from \"./utils/svg-texture.js\";\nimport { textCreator, textPatcher } from \"./components/primitives/text.js\";\nimport { viewCreator, viewPatcher } from \"./components/primitives/view.js\";\nimport { collectPhaserSnapshot, usePhaserDebugSnapshot } from \"./components/DebugPanel.js\";\nimport { Graphics } from \"./components/custom/Graphics.js\";\nimport { NineSlice } from \"./components/custom/NineSlice.js\";\nimport { Particles } from \"./components/custom/Particles.js\";\nimport { RefOriginView } from \"./components/custom/RefOriginView.js\";\nimport { Sprite } from \"./components/custom/Sprite.js\";\nimport { TileSprite } from \"./components/custom/TileSprite.js\";\nimport { useColorMode } from \"./colors/use-color-mode.js\";\nimport { useColors, useThemeSubscription } from \"./colors/use-colors.js\";\nimport { useThemeTokens } from \"./design-tokens/use-theme-tokens.js\";\nimport { DOMInputElement } from \"./utils/dom-input-manager.js\";\nimport { KeyboardInputManager } from \"./utils/KeyboardInputManager.js\";\nimport { isPhaserContainer, isPhaserScene } from \"./utils/phaser-guards.js\";\nimport { applyCanvasClip } from \"./clip/canvas-clip.js\";\nimport { applyStencilClip, clearStencilClip, getStencilClipHandle } from \"./clip/stencil-clip.js\";\nimport { installStencilClipExtension, uninstallStencilClipExtension } from \"./clip/stencil-clip-extension.js\";\nimport { isBitmapStencilClipSource } from \"./clip/stencil-clip-state.js\";\nregisterBuiltins();\nexport {\n  Accordion,\n  ActivityIndicator,\n  AlertDialog,\n  Badge,\n  BottomSheet,\n  BottomSheetDepth,\n  BottomSheetHandle,\n  Button,\n  Checkbox,\n  ColorPicker,\n  ContextMenu,\n  DEFAULT_BACKGROUND,\n  DEFAULT_FX,\n  DOMInputElement,\n  DebugPanel,\n  DeferredLayoutQueue,\n  Dialog,\n  Divider,\n  Dropdown,\n  Easing,\n  GestureManager,\n  Graphics,\n  Icon,\n  Image,\n  Joystick,\n  KeyboardInputManager,\n  LayoutBatchQueue,\n  ListBox,\n  MenuButton,\n  Modal,\n  NineSlice,\n  NineSliceButton,\n  NotificationStack,\n  NumberInput,\n  NumberInputIndicator,\n  PARTICLE_PRESET_REGISTRY,\n  PalettePicker,\n  Particles,\n  PhaserHostAdapter,\n  PhaserJSXPlugin,\n  PhaserSurfaceAdapter,\n  PhaserVectorDrawContext,\n  Popover,\n  Portal,\n  ProgressBar,\n  ProgressView,\n  RadioButton,\n  RadioGroup,\n  RangeSlider,\n  RatingBar,\n  RefOriginView,\n  RenderContext,\n  SPRING_PRESETS,\n  ScrollSlider,\n  ScrollView,\n  SegmentedControl,\n  Sidebar,\n  Slider,\n  SpringPhysics,\n  Sprite,\n  Tab,\n  TabPanel,\n  Tabs,\n  Tag,\n  Text,\n  TextInput,\n  TileSprite,\n  Toast,\n  Toggle,\n  ToolButtonGroup,\n  Toolbar,\n  TransformOriginView,\n  VectorDrawContent,\n  View,\n  WheelPicker,\n  WrapText,\n  addSceneBackground,\n  animatedSignal,\n  applyCanvasClip,\n  applyFXByName,\n  applyStencilClip,\n  buildDeathZonesFromLayout,\n  buildEmitZone,\n  buildEmitZoneFromLayout,\n  calculateLayout,\n  calculateOverlayPosition,\n  calculateSliderSize,\n  chunkPalettePickerColors,\n  clearContainer,\n  clearStencilClip,\n  collectPhaserSnapshot,\n  computed,\n  createBlurFX,\n  createColorMatrixFX,\n  createDefaultTheme,\n  createDummyNode,\n  createElement,\n  createGlowFX,\n  createIconComponent,\n  createPhaserJSXPlugin,\n  createPhaserSurfaceContext,\n  createPixelateFX,\n  createShadowFX,\n  createTheme,\n  createTween,\n  createVignetteFX,\n  defaultTheme,\n  depsChanged,\n  deriveHostContext,\n  disposeCtx,\n  extractScene,\n  findListBoxItem,\n  findSegmentedControlOption,\n  formatBadgeCount,\n  FX_REGISTRY as fxRegistry,\n  getBadgeText,\n  getCurrent,\n  getCurrentCtx,\n  getCurrentOrThrow,\n  getGestureManager,\n  getHostAdapter,\n  getLayoutProps,\n  getLayoutRect,\n  getLayoutSize,\n  getMountStats,\n  getNextNumberInputValue,\n  getNumberInputPrecision,\n  getPalettePickerContrastColor,\n  getParentContentSize,\n  getRenderContext,\n  getStencilClipHandle,\n  getSurfaceAdapter,\n  getThemedProps,\n  getToastAutoDismissDuration,\n  getToolbarItemId,\n  getWorldLayoutRect,\n  host,\n  installStencilClipExtension,\n  isAnimatedSignal,\n  isBitmapStencilClipSource,\n  isPhaserContainer,\n  isPhaserScene,\n  isSegmentedControlOptionSelectable,\n  isToolbarMenuItem,\n  isToolbarSeparatorItem,\n  isToolbarToggleItem,\n  mergeThemes,\n  mount,\n  mountJSX,\n  nodeRegistry,\n  normalizeNumberInputValue,\n  normalizePalettePickerColor,\n  normalizePalettePickerColors,\n  normalizeVNodeLike,\n  patchVNode,\n  register,\n  remountAll,\n  resolveFX,\n  resolveListBoxValue,\n  resolveNotificationStackAlignment,\n  resolvePalettePickerValue,\n  resolveParticlePreset,\n  resolveSegmentedControlValue,\n  resolveToolbarActiveId,\n  setCurrentCtx,\n  setHostAdapter,\n  setSurfaceAdapter,\n  shallowEqual,\n  shouldComponentUpdate,\n  svgToTexture,\n  textCreator,\n  textPatcher,\n  themeRegistry,\n  uninstallStencilClipExtension,\n  unmount,\n  unmountJSX,\n  unwrapSignal,\n  updateGestureHitAreaAfterLayout,\n  useAtlas,\n  useBackgroundGraphics,\n  useBlur,\n  useCallback,\n  useCameraFX,\n  useColorMode,\n  useColors,\n  useEffect,\n  useFX,\n  useForceRedraw,\n  useGameObjectEffect,\n  useGlow,\n  useIconPreload,\n  useLayoutEffect,\n  useLayoutRect,\n  useLayoutSize,\n  useMemo,\n  useParticles,\n  usePhaserDebugSnapshot,\n  usePhaserTheme,\n  useRedraw,\n  useRef,\n  useSVGTexture,\n  useScene,\n  useShadow,\n  useSpring,\n  useSprings,\n  useState,\n  useTexture,\n  useTheme,\n  useThemeSubscription,\n  useThemeTokens,\n  useViewportSize,\n  useWorldLayoutRect,\n  viewCreator,\n  viewPatcher,\n  viewportRegistry,\n  withHooks\n};\n//# sourceMappingURL=index.js.map\n"],"x_google_ignoreList":[31],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc,OAAO;CAC5B,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,MAAM,QAAQ;CACd,OAAO,MAAM,QAAQ,QAAQ,MAAM,QAAQ,KAAK,KAAK,OAAO,MAAM,QAAQ,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